studyStudent.vue 889 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431
  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" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" content="收缩" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <span>随机码:{{ inviteCode }}</span>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="cru_selectBox">
  83. <div
  84. style="background: #fff; margin: 0 10px; border-radius: 8px"
  85. v-for="(item, stageIndex) in navList"
  86. :key="stageIndex"
  87. >
  88. <div
  89. class="stageBoxCss"
  90. @click="get(stageIndex)"
  91. :class="{
  92. // stageBoxIsCss: stageIndex == courseType,
  93. }"
  94. >
  95. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  96. <div>阶段{{ stageIndex + 1 }}</div>
  97. <el-tooltip
  98. effect="light"
  99. :content="item.dyName"
  100. placement="top"
  101. >
  102. <div>
  103. {{ item.dyName }}
  104. </div>
  105. </el-tooltip>
  106. </div>
  107. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  108. <img src="../assets/icon/newIcons/downC.png" alt />
  109. </div> -->
  110. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  111. <img src="../assets/icon/newIcons/right.png" alt />
  112. </div>
  113. </div>
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType,
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  129. @click="openTask(stageIndex, navIndex, nav.id)"
  130. >
  131. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  132. </div>
  133. <div
  134. class="closeTri1"
  135. v-else
  136. @click="openTask(stageIndex, navIndex, nav.id)"
  137. >
  138. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  139. </div>
  140. </div>
  141. <div v-else class="noToolBlue"></div>
  142. <div
  143. @click="openTask(stageIndex, navIndex, nav.id)"
  144. class="navItemList"
  145. :class="{
  146. isItemList:
  147. navIndex == taskCount &&
  148. nav.id == navId &&
  149. stageIndex == courseType,
  150. }"
  151. >
  152. <div>任务{{ navIndex + 1 }}:</div>
  153. <el-tooltip
  154. effect="light"
  155. :content="nav.taskName"
  156. placement="top"
  157. >
  158. <div
  159. :style="{
  160. width:
  161. IsLookOpen &&
  162. !(
  163. navIndex == taskCount &&
  164. nav.id == navId &&
  165. stageIndex == courseType
  166. )
  167. ? 'calc(100% - 75px)'
  168. : 'auto',
  169. }"
  170. >
  171. {{ nav.taskName }}
  172. </div>
  173. </el-tooltip>
  174. </div>
  175. <div class="lockTaskIcon">
  176. <img
  177. src="../assets/lock.png"
  178. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  179. courseDetail.course_teacher.indexOf(userid) ==-1"
  180. alt=""
  181. />
  182. </div>
  183. </div>
  184. <div
  185. v-if="nav.tool[0].tool != undefined"
  186. class="toolChild"
  187. :class="{ toolActive: nav.isOpen }"
  188. >
  189. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  190. <div
  191. class="gjCss"
  192. :class="{ isGjCss: t.isTool }"
  193. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  194. >
  195. <div>工具{{ toolIndex + 1 }}:</div>
  196. <div v-if="t.tool == 58">模拟驾驶</div>
  197. <div v-if="t.tool == 59">路径搜索</div>
  198. <div v-if="t.tool == 60">深度学习</div>
  199. <div v-if="t.tool == 10">倒计时</div>
  200. <div v-if="t.tool == 65">挑人</div>
  201. <div v-if="t.tool == 7">思维网格</div>
  202. <div v-if="t.tool == 1">电子白板</div>
  203. <div v-if="t.tool == 52">文档</div>
  204. <div v-if="t.tool == 3">思维导图</div>
  205. <div v-if="t.tool == 48">表格</div>
  206. <div v-if="t.tool == 49">学生分组</div>
  207. <div v-if="t.tool == 4">问卷调查</div>
  208. <div v-if="t.tool == 45">选择题</div>
  209. <div v-if="t.tool == 15">问答</div>
  210. <div v-if="t.tool == 16">作业提交</div>
  211. <div v-if="t.tool == 50">批量上传</div>
  212. <div v-if="t.tool == 41">选择匹配</div>
  213. <div v-if="t.tool == 47">排序</div>
  214. <div v-if="t.tool == 40">个人评价</div>
  215. <div v-if="t.tool == 18">训练平台</div>
  216. <div v-if="t.tool == 21">AIoT Blockly</div>
  217. <div v-if="t.tool == 23">AI Python</div>
  218. <div v-if="t.tool == 24">AI Blockly</div>
  219. <div v-if="t.tool == 32">源码编辑</div>
  220. <div v-if="t.tool == 57">CocoPi</div>
  221. <div v-if="t.tool == 63">海龟编程</div>
  222. <div v-if="t.tool == 28">翻译</div>
  223. <div v-if="t.tool == 31">数字画板</div>
  224. <div v-if="t.tool == 39">GeoGebra</div>
  225. <div v-if="t.tool == 66">公式编辑</div>
  226. <div v-if="t.tool == 67">分子结构</div>
  227. <div v-if="t.tool == 68">时间轴</div>
  228. <div v-if="t.tool == 69">英语写作</div>
  229. <div v-if="t.tool == 70">英语口语</div>
  230. <div v-if="t.tool == 25">目标管理</div>
  231. <div v-if="t.tool == 26">课程设计</div>
  232. <div v-if="t.tool == 62">交互视频</div>
  233. <div v-if="t.tool == 71">AI智能体</div>
  234. <div v-if="t.tool == 72">应用中心</div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- :class="{ navLeftCss: !mlDialog }" -->
  244. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  245. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  246. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  247. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  248. <div>任务{{ taskCount + 1 }}</div>
  249. <el-tooltip
  250. effect="light"
  251. :content="
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  253. "
  254. placement="top"
  255. >
  256. <div>
  257. {{
  258. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  259. .task
  260. }}
  261. </div>
  262. </el-tooltip>
  263. </div>
  264. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  265. <div class="btnLeft">
  266. <el-tooltip effect="light" content="刷新" placement="top">
  267. <div class="reBtnIcon" @click="refreshCourse">
  268. <span>刷新</span>
  269. </div>
  270. </el-tooltip>
  271. <el-tooltip effect="light" content="评论" placement="top">
  272. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  273. <span>评论</span>
  274. </div>
  275. </el-tooltip>
  276. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  277. <el-tooltip effect="light" content="录制" placement="top">
  278. <div class="vedioIcon" @click="startRecording">
  279. <span>录制</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. <div v-else-if="tType == 1 || tType == 4">
  284. <el-tooltip effect="light" content="下载" placement="top">
  285. <div class="vedioIcon1" @click="stopRecording">
  286. <span>下载</span>
  287. </div>
  288. </el-tooltip>
  289. </div>
  290. </div>
  291. <div class="btnRight">
  292. <div
  293. class="last"
  294. @click="nextOrpreSteps(0)"
  295. v-if="!(IsFollow && tType == 2)"
  296. @mouseover="isHovered = true"
  297. @mouseout="isHovered = false"
  298. >
  299. <div class="lastImg">
  300. <img
  301. :src="
  302. isHovered
  303. ? require('../assets/icon/newIcons/whiteLast.png')
  304. : require('../assets/icon/newIcons/last.png')
  305. "
  306. alt=""
  307. />
  308. </div>
  309. <div class="lastText">上一步</div>
  310. </div>
  311. <div
  312. class="last"
  313. @click="nextOrpreSteps(1)"
  314. v-if="!(IsFollow && tType == 2)"
  315. @mouseover="isHovered1 = true"
  316. @mouseout="isHovered1 = false"
  317. >
  318. <div class="lastText">下一步</div>
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered1
  323. ? require('../assets/icon/newIcons/whiteNext.png')
  324. : require('../assets/icon/newIcons/next.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. </div>
  330. <div
  331. class="last"
  332. @click="juriVisible = true"
  333. v-if="tType == 1"
  334. @mouseover="isHovered2 = true"
  335. @mouseout="isHovered2 = false"
  336. >
  337. <div class="lastImg">
  338. <img
  339. :src="
  340. isHovered2
  341. ? require('../assets/icon/newIcons/whiteLock.png')
  342. : require('../assets/icon/newIcons/lock.png')
  343. "
  344. alt=""
  345. />
  346. </div>
  347. <div class="lastText">权限</div>
  348. </div>
  349. <div
  350. class="returnBtn1 returnIcon"
  351. @click.stop="
  352. goTo(
  353. '/courseDetail?userid=' +
  354. userid +
  355. '&oid=' +
  356. oid +
  357. '&org=' +
  358. org +
  359. '&cid=' +
  360. classId +
  361. '&courseId=' +
  362. id +
  363. '&tType=' +
  364. tType +
  365. '&screenType=' +
  366. screenType
  367. )
  368. "
  369. >
  370. <div class="lastImg">
  371. <img src="../assets/icon/newIcon/return.png" alt="" />
  372. </div>
  373. <div class="lastText" style="color: #000">返回</div>
  374. </div>
  375. </div>
  376. <!-- <div
  377. class="returnBtn lockIcon"
  378. @click="juriVisible = true"
  379. v-if="tType == 1"
  380. >
  381. 权限
  382. </div>
  383. <div
  384. class="returnBtn vedioIcon"
  385. @click="startRecording"
  386. v-if="!videoStart && (tType == 1 || tType == 4)"
  387. >
  388. 录制
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="stopRecording"
  393. v-else-if="tType == 1 || tType == 4"
  394. style="background: #ee5255"
  395. >
  396. 下载
  397. </div>
  398. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  399. 评论
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(0)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 上一步
  407. </div>
  408. <div
  409. class="returnBtn"
  410. @click="nextOrpreSteps(1)"
  411. v-if="!(IsFollow && tType == 2)"
  412. >
  413. 下一步
  414. </div>
  415. <div class="returnBtn" @click="refreshCourse">刷新</div>
  416. <div
  417. class="returnBtn returnIcon"
  418. @click.stop="
  419. goTo(
  420. '/courseDetail?userid=' +
  421. userid +
  422. '&oid=' +
  423. oid +
  424. '&org=' +
  425. org +
  426. '&cid=' +
  427. classId +
  428. '&courseId=' +
  429. id +
  430. '&tType=' +
  431. tType +
  432. '&screenType=' +
  433. screenType
  434. )
  435. "
  436. >
  437. 返回
  438. </div> -->
  439. </div>
  440. </div>
  441. <div
  442. class="isNoMessage"
  443. v-if="
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .chapterData.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .toolChoose[0].tool.length == 0 &&
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail == '' &&
  450. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  451. .eList &&
  452. !(
  453. courseDetail.userid == userid ||
  454. (courseDetail.course_teacher &&
  455. courseDetail.course_teacher.indexOf(userid) != -1)
  456. )
  457. "
  458. >
  459. <img src="../assets/icon/isNoMessage.png" alt />
  460. </div>
  461. <div class="study_top" :class="{ pzClass: pzDialog }">
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[taskCount].length > 0 ||
  468. fileC[taskCount].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. .taskDetail != ''
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. class="renderedFor"
  487. >
  488. <div
  489. style="
  490. padding: 15px 0;
  491. line-height: 29px;
  492. font-size: 18px;
  493. color: #0e1e33;
  494. "
  495. class="cont"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail != ''
  499. "
  500. v-html="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail
  503. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  504. taskCount
  505. ].taskDetail)
  506. : '暂无描述'
  507. "
  508. ></div>
  509. </div>
  510. </div>
  511. <div
  512. class="student_head"
  513. v-if="
  514. vChapterData[taskCount].length > 0 ||
  515. fileC[taskCount].length > 0
  516. "
  517. >
  518. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  519. <div
  520. :class="
  521. contentDialog == false
  522. ? 'box_course isContentCss'
  523. : 'box_course'
  524. "
  525. v-if="
  526. vChapterData.length > 0 &&
  527. vChapterData[taskCount] &&
  528. showType !== ''
  529. "
  530. >
  531. <div class="wheel" style="height: auto" v-if="showType === 0">
  532. <div
  533. class="workd_media"
  534. style="height: 650px; width: calc(100% - 50px)"
  535. >
  536. <video-player
  537. class="video-player vjs-custom-skin notop"
  538. :class="contentDialog == false ? 'isAllWidth' : ''"
  539. :playsinline="true"
  540. :options="playerO[taskCount]"
  541. @play="onPlayerPlay($event)"
  542. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  543. ></video-player>
  544. </div>
  545. </div>
  546. <div
  547. class="wheel"
  548. v-if="showType == 1"
  549. style="
  550. box-shadow: 0 0 6px 1px #f2f2f2;
  551. width: 95%;
  552. margin: 0 auto;
  553. background: #f1f1f1;
  554. "
  555. >
  556. <div class="title">查看文档</div>
  557. <el-form class="textBox">
  558. <el-form-item class="textTitle">
  559. <div style="font-size: 22px">
  560. {{ text.name }}
  561. </div>
  562. </el-form-item>
  563. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  564. <div v-html="text.url" class="textContent cont"></div>
  565. </el-form>
  566. </div>
  567. <div
  568. class="wheel"
  569. v-if="
  570. pptImgUrl1.indexOf(
  571. 'https://view.officeapps.live.com/op/view.aspx?src='
  572. ) != -1 && showType == 2
  573. "
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <iframe
  577. style="width: 100%; height: 100%; border: none"
  578. :src="pptImgUrl1"
  579. ></iframe>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-else-if="showType == 2"
  584. style="width: 95%; margin: 0 auto"
  585. >
  586. <iframe
  587. style="width: 100%; height: 100%; border: none"
  588. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  589. :key="diffKey"
  590. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  591. :src="pptImgUrl1"
  592. ></iframe>
  593. <iframe
  594. style="width: 100%; height: 100%; border: none"
  595. security="restricted"
  596. v-else
  597. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  598. :src="pptImgUrl1"
  599. ></iframe>
  600. </div>
  601. <div
  602. class="wheel"
  603. v-if="showType === 16"
  604. style="width: 95%; margin: 0 auto"
  605. >
  606. <iframe
  607. style="width: 100%; height: 100%; border: none"
  608. :src="pptImgUrl1"
  609. ></iframe>
  610. </div>
  611. <div
  612. class="wheel"
  613. v-if="showType == 3"
  614. style="width: 95%; margin: 0 auto"
  615. >
  616. <pdf
  617. :pdfUrl="pptImgUrl1"
  618. style="width: 100%; height: 100%; overflow: auto"
  619. ></pdf>
  620. </div>
  621. <div
  622. class="wheel"
  623. v-if="showType == 4"
  624. style="width: 95%; margin: 0 auto"
  625. >
  626. <el-image
  627. :src="pptImgUrl1"
  628. fit="contain"
  629. style="width: 100%; height: 100%; cursor: pointer"
  630. @click="previewImg(pptImgUrl1)"
  631. ></el-image>
  632. </div>
  633. </div>
  634. <div
  635. class="pButton"
  636. style="position: absolute; right: 20px; top: 0; z-index: 998"
  637. v-if="!contentDialog"
  638. @click="setContent(true)"
  639. >
  640. <!-- 批 -->
  641. <img
  642. src="../assets/icon/newIcons/isLeft.png"
  643. style="width: 45px"
  644. alt=""
  645. />
  646. </div>
  647. <div
  648. v-if="contentDialog == true"
  649. :style="{
  650. width:
  651. (vChapterData[taskCount].length > 0 ||
  652. fileC[taskCount].length > 0) &&
  653. showType === ''
  654. ? 'calc(100%)'
  655. : '300px',
  656. margin:
  657. (vChapterData[taskCount].length > 0 ||
  658. fileC[taskCount].length > 0) &&
  659. showType === ''
  660. ? '0 15px'
  661. : '0 15px 0 0',
  662. }"
  663. >
  664. <div
  665. class="vedioList"
  666. v-if="
  667. vChapterData[taskCount].length > 0 ||
  668. fileC[taskCount].length > 0
  669. "
  670. style="height: 650px"
  671. >
  672. <div class="navCorOpenBox">
  673. <div class="navTitile">内容列表:</div>
  674. <div class="navCorOpen" @click="setContent(false)">
  675. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  676. </div>
  677. </div>
  678. <div class="navBox">
  679. <div
  680. v-show="
  681. vChapterData[taskCount].length > 0 ||
  682. fileC[taskCount].length > 0
  683. "
  684. style="padding: 10px 0 25px 0"
  685. >
  686. <div
  687. class="vedioTimeBox"
  688. v-for="(vitem, vindex) in vChapterData[taskCount]"
  689. :key="vindex + '1'"
  690. >
  691. <div class="navListItem" v-if="vitem.type == 2">
  692. <div
  693. @click="lookVedio(vitem.url, vindex)"
  694. class="navText"
  695. :class="isClickNav == vindex ? 'isClickNav' : ''"
  696. >
  697. <span v-if="vitem.text">{{ vitem.text }}-</span
  698. >{{ vitem.name }}
  699. </div>
  700. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  701. <img src="../assets/icon/newIcon/down.png" alt />
  702. </div> -->
  703. </div>
  704. <div class="navListItem" v-if="vitem.type == 6">
  705. <div
  706. @click="lookText(taskCount, vindex)"
  707. class="navText"
  708. :class="isClickNav == vindex ? 'isClickNav' : ''"
  709. >
  710. {{ vitem.name }}.doc
  711. </div>
  712. <div
  713. class="downIcon"
  714. @click="checkFileFull1(vitem.type, vitem)"
  715. >
  716. <img
  717. src="../assets/icon/newIcon/allScreen.png"
  718. alt
  719. />
  720. </div>
  721. </div>
  722. <div
  723. class="navListItem"
  724. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  725. >
  726. <div
  727. @click="doUrl(vitem.url, vindex)"
  728. class="navText"
  729. :class="isClickNav == vindex ? 'isClickNav' : ''"
  730. >
  731. {{ vitem.title ? vitem.title : vitem.url }}
  732. </div>
  733. <div
  734. class="downIcon"
  735. @click="checkFileFull1(vitem.type, vitem)"
  736. >
  737. <img
  738. src="../assets/icon/newIcon/allScreen.png"
  739. alt
  740. />
  741. </div>
  742. </div>
  743. <div class="navListItem" v-if="vitem.type == 3">
  744. <div
  745. @click="downFile(vitem, vindex)"
  746. class="navText"
  747. :class="isClickNav == vindex ? 'isClickNav' : ''"
  748. >
  749. <span v-if="vitem.text">{{ vitem.text }}-</span
  750. >{{ vitem.name }}
  751. </div>
  752. <div
  753. class="downIcon"
  754. @click="checkFileFull1(vitem.type, vitem)"
  755. >
  756. <img
  757. src="../assets/icon/newIcon/allScreen.png"
  758. alt
  759. />
  760. </div>
  761. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  762. <img src="../assets/icon/newIcon/down.png" alt />
  763. </div> -->
  764. </div>
  765. <div class="navListItem" v-if="vitem.type == 12">
  766. <div class="navText" @click="downloadFile2(vitem)">
  767. <span v-if="vitem.text">{{ vitem.text }}-</span
  768. >{{ vitem.name }}
  769. </div>
  770. <div
  771. class="downIcon"
  772. @click="checkFileFull1(vitem.type, vitem)"
  773. >
  774. <img
  775. src="../assets/icon/newIcon/allScreen.png"
  776. alt
  777. />
  778. </div>
  779. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  780. <img src="../assets/icon/newIcon/down.png" alt />
  781. </div> -->
  782. </div>
  783. <div class="navListItem" v-if="vitem.type == 13">
  784. <div
  785. class="navText"
  786. @click="checkPhoto(vitem, vindex)"
  787. :class="isClickNav == vindex ? 'isClickNav' : ''"
  788. >
  789. {{ vitem.name }}
  790. </div>
  791. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  792. <img src="../assets/icon/newIcon/down.png" alt />
  793. </div> -->
  794. </div>
  795. <div class="navListItem" v-if="vitem.type == 16">
  796. <div
  797. class="navText"
  798. @click="checkHtml(vitem, vindex)"
  799. :class="isClickNav == vindex ? 'isClickNav' : ''"
  800. >
  801. {{ vitem.name }}
  802. </div>
  803. <div
  804. class="downIcon"
  805. @click="checkFileFull1(vitem.type, vitem)"
  806. >
  807. <img
  808. src="../assets/icon/newIcon/allScreen.png"
  809. alt
  810. />
  811. </div>
  812. </div>
  813. <div class="navListItem" v-if="vitem.type == 17">
  814. <div
  815. class="navText"
  816. @click="checkHtml(vitem, vindex)"
  817. :class="isClickNav == vindex ? 'isClickNav' : ''"
  818. >
  819. {{ vitem.name }}
  820. </div>
  821. <div
  822. class="downIcon"
  823. @click="checkFileFull1(vitem.type, vitem)"
  824. >
  825. <img
  826. src="../assets/icon/newIcon/allScreen.png"
  827. alt
  828. />
  829. </div>
  830. </div>
  831. </div>
  832. <div
  833. class="fileC_box"
  834. v-if="fileC[taskCount].length > 0"
  835. >
  836. <div class="fileC_title">以下文件不支持预览</div>
  837. <div
  838. class="vedioTimeBox"
  839. v-for="(vitem, vindex) in fileC[taskCount]"
  840. :key="vindex + '1'"
  841. >
  842. <div class="navListItem" v-if="vitem.type == 12">
  843. <div class="navText" style="color: #acb4bf">
  844. <span v-if="vitem.text">{{ vitem.text }}-</span
  845. >{{ vitem.name }}
  846. </div>
  847. <!-- <div
  848. class="downIcon"
  849. @click="downloadFile2(vitem)"
  850. >
  851. <img
  852. src="../assets/icon/newIcon/down.png"
  853. alt
  854. />
  855. </div> -->
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. <div style="width: calc(100% - 315px)">
  865. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  866. <!-- <el-button
  867. type="primary"
  868. class="newButton"
  869. @click="checkFileFull(showType, pptImgUrl1)"
  870. >全屏查看</el-button
  871. >
  872. <el-button
  873. type="primary"
  874. class="newButton"
  875. @click="downloadFile(pptImgUrl1)"
  876. v-if="showType != 2"
  877. >文件下载</el-button
  878. > -->
  879. <el-button
  880. class="newButton"
  881. v-if="
  882. showType == 2 &&
  883. pptImgUrl1.indexOf(
  884. 'https://view.officeapps.live.com/op/view.aspx?src='
  885. ) == -1
  886. "
  887. type="primary"
  888. @click="openLine(pptImgUrl1)"
  889. >打开链接
  890. </el-button>
  891. </div>
  892. <!-- <div
  893. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  894. v-if="showType == 1"
  895. >
  896. <el-button
  897. type="primary"
  898. class="newButton"
  899. @click="checkFileFull(showType, text)"
  900. >全屏查看</el-button
  901. >
  902. </div> -->
  903. </div>
  904. </div>
  905. </div>
  906. <div class="student_body" v-resize="resize">
  907. <div
  908. class="vedioBox"
  909. :style="{
  910. borderRadius:
  911. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  912. .taskDetail == '' &&
  913. vChapterData[taskCount].length == 0 &&
  914. fileC[taskCount].length == 0
  915. ? '0 0 20px 20px'
  916. : '20px',
  917. }"
  918. v-if="
  919. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  920. .toolChoose[0].tool &&
  921. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  922. .toolChoose[0].tool.length > 0
  923. "
  924. >
  925. <div
  926. class="toolHeng2"
  927. style="position: relative"
  928. v-if="
  929. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  930. .toolChoose[0].tool &&
  931. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  932. .toolChoose[0].tool.length &&
  933. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  934. .toolChoose[0].tool.length > 0
  935. "
  936. >
  937. <div class="workNav">工作区</div>
  938. <div
  939. class="filebox"
  940. style="flex-wrap: nowrap"
  941. v-for="(tool, toolIndex) in chapInfoList[courseType]
  942. .chapterInfo[0].taskJson[taskCount].toolChoose"
  943. :key="toolIndex"
  944. >
  945. <div class="bzBox">
  946. <div class="yCss"></div>
  947. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  948. 工具{{ toolIndex + 1 }}
  949. </div>
  950. <div
  951. v-if="timeWorkList[toolIndex].length > 0"
  952. style="margin: 0 0 0 10px"
  953. >
  954. {{
  955. timeWorkList[toolIndex][0].time
  956. ? "时间:" + timeWorkList[toolIndex][0].time
  957. : ""
  958. }}
  959. </div>
  960. </div>
  961. <div class="toolBox">
  962. <div>
  963. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  964. :key="indexTool"-->
  965. <!-- <div class="iframeBox">
  966. <div
  967. class="addPoint isBorder"
  968. v-for="(tooC, toolCIndex) in tool.tool"
  969. :key="toolCIndex"
  970. >
  971. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  972. <div
  973. class="iframeName"
  974. >
  975. 电子白板
  976. </div>
  977. <iframe
  978. src="https://iwb.cocorobo.cn/"
  979. ref="whiteBoard"
  980. ></iframe>
  981. </div>
  982. </div>
  983. </div>-->
  984. <div class="noiframeBox">
  985. <div
  986. class="addPoint"
  987. v-for="(tooC, toolCIndex) in tool.tool"
  988. :key="toolCIndex"
  989. >
  990. <div v-if="tooC == 1">
  991. <img
  992. src="../assets/icon/secondToolList/whiteBoard.png"
  993. alt
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. />
  996. <div style="margin: 5px 0">电子白板</div>
  997. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  998. style="position: absolute;right: 33px;top: -30px;">
  999. 分析
  1000. </div>
  1001. </div>
  1002. <div v-if="tooC == 3">
  1003. <img
  1004. src="../assets/icon/secondToolList/mindMapping.png"
  1005. alt
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. />
  1008. <div style="margin: 5px 0">思维导图</div>
  1009. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1010. style="position: absolute;right: 33px;top: -30px;">
  1011. 分析
  1012. </div>
  1013. </div>
  1014. <div v-if="tooC == 6">
  1015. <img
  1016. src="../assets/icon/secondToolList/doc.png"
  1017. alt
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. />
  1020. <div style="margin: 5px 0">协同文档</div>
  1021. </div>
  1022. <div v-if="tooC == 7">
  1023. <img
  1024. src="../assets/icon/secondToolList/mindNetwork.png"
  1025. alt
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. />
  1028. <div style="margin: 5px 0">思维网格</div>
  1029. <!-- && worksStudent[toolIndex].length>0 -->
  1030. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 8">
  1036. <img
  1037. src="../assets/icon/secondToolList/library.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">素材库</div>
  1042. </div>
  1043. <div v-if="tooC == 17">
  1044. <img
  1045. src="../assets/icon/secondToolList/library.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">学习资料</div>
  1050. </div>
  1051. <div v-if="tooC == 2">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/secondToolList/note.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">便签</div>
  1058. </div>
  1059. <div v-if="tooC == 4">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/thirdToolList/ask.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">问卷调查</div>
  1066. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1067. style="position: absolute;right: 153px;top: -30px;">
  1068. 分析
  1069. </div>
  1070. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1071. style="position: absolute;right: 33px;top: -30px;">
  1072. 统计分析
  1073. </div>
  1074. </div>
  1075. <div v-if="tooC == 45">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/thirdToolList/choose.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">选择题</div>
  1082. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1083. style="position: absolute;right: 33px;top: -30px;">
  1084. 分析
  1085. </div>
  1086. </div>
  1087. <!-- <div v-if="tooC == 5">
  1088. <img
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. src="../assets/icon/thirdToolList/score.png"
  1091. alt
  1092. />
  1093. <div style="margin: 5px 0">量规评分</div>
  1094. </div> -->
  1095. <div v-if="tooC == 10">
  1096. <img
  1097. @click="addTools(tooC, toolIndex, taskCount)"
  1098. src="../assets/icon/thirdToolList/time.png"
  1099. alt
  1100. />
  1101. <div style="margin: 5px 0">倒计时</div>
  1102. </div>
  1103. <div v-if="tooC == 15">
  1104. <img
  1105. @click="addTools(tooC, toolIndex, taskCount)"
  1106. src="../assets/icon/thirdToolList/answer.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">问答</div>
  1110. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1111. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1112. 分析
  1113. </div>
  1114. </div>
  1115. <div v-if="tooC == 26">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/thirdToolList/courseDesign.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">课程设计</div>
  1122. </div>
  1123. <div v-if="tooC == 18">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/thirdToolList/trainPlatform.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">训练服务器</div>
  1130. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1131. style="position: absolute;right: 33px;top: -30px;">
  1132. 分析
  1133. </div>
  1134. </div>
  1135. <div v-if="tooC == 16">
  1136. <img
  1137. @click="addTools(tooC, toolIndex, taskCount)"
  1138. src="../assets/icon/thirdToolList/work.png"
  1139. alt
  1140. />
  1141. <div style="margin: 5px 0">作业提交</div>
  1142. </div>
  1143. <div v-if="tooC == 50">
  1144. <img
  1145. @click="addTools(tooC, toolIndex, taskCount)"
  1146. src="../assets/icon/thirdToolList/plwork.png"
  1147. alt
  1148. />
  1149. <div style="margin: 5px 0">批量上传</div>
  1150. </div>
  1151. <div v-if="tooC == 21">
  1152. <img
  1153. @click="addTools(tooC, toolIndex, taskCount)"
  1154. src="../assets/icon/fourthToolList/program.png"
  1155. alt
  1156. />
  1157. <div style="margin: 5px 0">AIoT Blockly</div>
  1158. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1159. style="position: absolute;right: 33px;top: -30px;">
  1160. 分析
  1161. </div>
  1162. </div>
  1163. <!-- <div v-if="tooC == 22">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../assets/icon/fourthToolList/program.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">AI体验</div>
  1170. </div> -->
  1171. <div v-if="tooC == 23">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">AI Python</div>
  1178. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1179. style="position: absolute;right: 33px;top: -30px;">
  1180. 分析
  1181. </div>
  1182. </div>
  1183. <div v-if="tooC == 24">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../assets/icon/fourthToolList/AIprogram.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">AI Blockly</div>
  1190. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1191. style="position: absolute;right: 33px;top: -30px;">
  1192. 分析
  1193. </div>
  1194. </div>
  1195. <div v-if="tooC == 25">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../assets/icon/thirdToolList/evalua.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">目标管理</div>
  1202. </div>
  1203. <div v-if="tooC == 31">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../assets/icon/secondToolList/networkPanel.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">数学画板</div>
  1210. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1211. style="position: absolute;right: 33px;top: -30px;">
  1212. 分析
  1213. </div>
  1214. </div>
  1215. <div v-if="tooC == 28">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../assets/icon/secondToolList/translation.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">翻译</div>
  1222. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1223. style="position: absolute;right: 33px;top: -30px;">
  1224. 分析
  1225. </div>
  1226. </div>
  1227. <div v-if="tooC == 37">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../assets/icon/secondToolList/mohe.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">魔盒识字</div>
  1234. </div>
  1235. <div v-if="tooC == 38">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../assets/icon/secondToolList/24game.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">24点</div>
  1242. </div>
  1243. <div v-if="tooC == 39">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../assets/icon/secondToolList/GeoGebra.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">GeoGebra</div>
  1250. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1251. style="position: absolute;right: 33px;top: -30px;">
  1252. 分析
  1253. </div>
  1254. </div>
  1255. <div v-if="tooC == 32">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../assets/icon/thirdToolList/code.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">源码编辑</div>
  1262. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1263. style="position: absolute;right: 153px;top: -42px;">
  1264. 分析
  1265. </div>
  1266. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1267. style="position: absolute;left: 110px;bottom: 30px;">
  1268. 上传文件
  1269. <input type="file" accept="*" style="display: none"
  1270. @change="beforeUpload1($event, 7, toolIndex)" />
  1271. </div> -->
  1272. </div>
  1273. <div v-if="tooC == 40">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/secondToolList/eval.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">个人评价</div>
  1280. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1281. style="position: absolute;right: 33px;top: -30px;">
  1282. 分析
  1283. </div>
  1284. </div>
  1285. <div v-if="tooC == 41">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../assets/icon/thirdToolList/select.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">选择匹配</div>
  1292. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1293. style="position: absolute;right: 33px;top: -30px;">
  1294. 分析
  1295. </div>
  1296. </div>
  1297. <div v-if="tooC == 44">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/thirdToolList/hanClass.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">汉字宫</div>
  1304. </div>
  1305. <div v-if="tooC == 47">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/fourthToolList/conSentences.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">排序</div>
  1312. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1313. style="position: absolute;right: 33px;top: -30px;">
  1314. 分析
  1315. </div>
  1316. </div>
  1317. <div v-if="tooC == 48">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../assets/icon/fourthToolList/table.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">表格</div>
  1324. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1325. style="position: absolute;right: 33px;top: -30px;">
  1326. 分析
  1327. </div>
  1328. </div>
  1329. <div v-if="tooC == 52">
  1330. <img
  1331. @click="addTools(tooC, toolIndex, taskCount)"
  1332. src="../assets/icon/fourthToolList/text.png"
  1333. alt
  1334. />
  1335. <div style="margin: 5px 0">文档</div>
  1336. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1337. style="position: absolute;right: 33px;top: -30px;">
  1338. 分析
  1339. </div>
  1340. </div>
  1341. <div v-if="tooC == 49">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../assets/icon/fourthToolList/group.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">学生分组</div>
  1348. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1349. style="position: absolute;right: 33px;top: -30px;">
  1350. 分析
  1351. </div>
  1352. </div>
  1353. <div v-if="tooC == 57">
  1354. <img
  1355. @click="addTools(tooC, toolIndex, taskCount)"
  1356. src="../assets/icon/fourthToolList/cocopi.png"
  1357. alt
  1358. />
  1359. <div style="margin: 5px 0">CocoPi</div>
  1360. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1361. style="position: absolute;right: 33px;top: -30px;">
  1362. 分析
  1363. </div>
  1364. </div>
  1365. <div v-if="tooC == 58">
  1366. <img
  1367. @click="addTools(tooC, toolIndex, taskCount)"
  1368. src="../assets/icon/fourthToolList/car.png"
  1369. alt
  1370. />
  1371. <div style="margin: 5px 0">模拟驾驶</div>
  1372. </div>
  1373. <div v-if="tooC == 59">
  1374. <img
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. src="../assets/icon/fourthToolList/lineSearch.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">路径搜索</div>
  1380. </div>
  1381. <div v-if="tooC == 60">
  1382. <img
  1383. @click="addTools(tooC, toolIndex, taskCount)"
  1384. src="../assets/icon/fourthToolList/deepLearning.png"
  1385. alt
  1386. />
  1387. <div style="margin: 5px 0">深度学习</div>
  1388. </div>
  1389. <div v-if="tooC == 61">
  1390. <img
  1391. @click="addTools(tooC, toolIndex, taskCount)"
  1392. src="../assets/icon/fourthToolList/allHistory.png"
  1393. alt
  1394. />
  1395. <div style="margin: 5px 0">全历史</div>
  1396. </div>
  1397. <div v-if="tooC == 62">
  1398. <img
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. src="../assets/icon/fourthToolList/interVideo.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">交互视频</div>
  1404. </div>
  1405. <div v-if="tooC == 63">
  1406. <img
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. src="../assets/icon/fourthToolList/Wood.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">海龟编程</div>
  1412. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1413. style="position: absolute;right: 33px;top: -30px;">
  1414. 分析
  1415. </div>
  1416. </div>
  1417. <div v-if="tooC == 71">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../assets/icon/fourthToolList/chatgpt.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">AI智能体</div>
  1424. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1425. style="position: absolute;right: 33px;top: -30px;">
  1426. 分析
  1427. </div>
  1428. </div>
  1429. <div v-if="tooC == 72">
  1430. <img
  1431. style="height: 85px;object-fit: cover;"
  1432. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. :src="tool.appJson.json.icon"
  1435. alt
  1436. />
  1437. <img
  1438. v-else
  1439. @click="addTools(tooC, toolIndex, taskCount)"
  1440. src="../assets/icon/firstToolList/appStore.png"
  1441. alt
  1442. />
  1443. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1444. <!-- content to trigger tooltip here -->
  1445. <div class="Ovh">
  1446. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1447. </div>
  1448. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1449. style="position: absolute;right: 33px;top: -30px;">
  1450. 分析
  1451. </div>
  1452. </el-tooltip>
  1453. </div>
  1454. <div v-if="tooC == 65">
  1455. <img
  1456. @click="addTools(tooC, toolIndex, taskCount)"
  1457. src="../assets/icon/firstToolList/pickPeople.png"
  1458. alt
  1459. />
  1460. <div style="margin: 5px 0">挑人</div>
  1461. </div>
  1462. <div v-if="tooC == 66">
  1463. <img
  1464. @click="addTools(tooC, toolIndex, taskCount)"
  1465. src="../assets/icon/secondToolList/formulaEdi.png"
  1466. alt
  1467. />
  1468. <div style="margin: 5px 0">公式编辑</div>
  1469. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1470. style="position: absolute;right: 33px;top: -30px;">
  1471. 分析
  1472. </div>
  1473. </div>
  1474. <div v-if="tooC == 67">
  1475. <img
  1476. @click="addTools(tooC, toolIndex, taskCount)"
  1477. src="../assets/icon/secondToolList/molStr.png"
  1478. alt
  1479. />
  1480. <div style="margin: 5px 0">分子结构</div>
  1481. </div>
  1482. <div v-if="tooC == 68">
  1483. <img
  1484. @click="addTools(tooC, toolIndex, taskCount)"
  1485. src="../assets/icon/secondToolList/timeAxis.png"
  1486. alt
  1487. />
  1488. <div style="margin: 5px 0">时间轴</div>
  1489. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1490. style="position: absolute;right: 33px;top: -30px;">
  1491. 分析
  1492. </div> -->
  1493. </div>
  1494. <div v-if="tooC == 69">
  1495. <img
  1496. @click="addTools(tooC, toolIndex, taskCount)"
  1497. src="../assets/icon/secondToolList/english.png"
  1498. alt
  1499. />
  1500. <div style="margin: 5px 0">英语写作</div>
  1501. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1502. style="position: absolute;right: 33px;top: -30px;">
  1503. 分析
  1504. </div>
  1505. </div>
  1506. <div v-if="tooC == 70">
  1507. <img
  1508. @click="addTools(tooC, toolIndex, taskCount)"
  1509. src="../assets/icon/thirdToolList/englishVoice.png"
  1510. alt
  1511. />
  1512. <div style="margin: 5px 0">英语口语</div>
  1513. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1514. style="position: absolute;right: 33px;top: -30px;">
  1515. 分析
  1516. </div>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1522. <!-- <div class="toolTitle">工具描述</div> -->
  1523. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1524. <div style="height:100%;"
  1525. v-html="renderedFormula(tool.toolDetail)"
  1526. v-if="toolDetailIndex != toolIndex"
  1527. ></div>
  1528. <div v-else @click.stop="" style="height:100%;">
  1529. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1530. </div>
  1531. </div>
  1532. <el-button
  1533. type="primary"
  1534. v-if="tool.tool[0] == 32"
  1535. style="position: absolute; right: 30px; top: -45px"
  1536. @click="addImg($event)"
  1537. >上传作业<input
  1538. type="file"
  1539. accept="*"
  1540. style="display: none"
  1541. @change="beforeUpload1($event, 7, toolIndex)"
  1542. /></el-button>
  1543. <el-button
  1544. type="primary"
  1545. v-if="tool.tool[0] == 15"
  1546. style="position: absolute; right: 30px; top: -45px"
  1547. @click="openWordCloud(toolIndex)"
  1548. >生成词云</el-button
  1549. >
  1550. <el-button
  1551. type="primary"
  1552. v-if="
  1553. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1554. "
  1555. style="position: absolute; right: 30px; top: -45px"
  1556. @click="uploadWorks(toolIndex)"
  1557. >导出作业</el-button
  1558. >
  1559. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1560. position: absolute;
  1561. right: 30px;
  1562. transform: translateY(-130%);
  1563. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1564. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1565. </div>
  1566. <div
  1567. v-if="
  1568. tType &&
  1569. tType == 2 &&
  1570. !sIsOpen &&
  1571. tool.tool.indexOf(16) != -1
  1572. "
  1573. class="worksBox"
  1574. >
  1575. <div
  1576. class="zuoyeYulan"
  1577. v-if="workStudent[toolIndex].length > 0"
  1578. >
  1579. <span class="worksTitle">作业预览</span>
  1580. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1581. </div>
  1582. <div
  1583. class="worksDetailBox"
  1584. v-if="workStudent[toolIndex].length > 0"
  1585. >
  1586. <div
  1587. class="works"
  1588. style="
  1589. width: 200px;
  1590. height: 140px;
  1591. margin: 10px 10px 10px 0;
  1592. box-shadow: 0 0 6px 1px #dfdada;
  1593. "
  1594. v-for="(w, wIndex) in workStudent[toolIndex]"
  1595. :key="wIndex"
  1596. >
  1597. <div class="workImg" v-if="w.type == 0">
  1598. <img
  1599. :src="w.works"
  1600. @click="previewImg(w.works,w)"
  1601. alt
  1602. />
  1603. <div
  1604. class="answerScore"
  1605. v-if="w.score"
  1606. @click.stop="openScore(w)"
  1607. :class="{
  1608. rightW:
  1609. w.userid == userid || tType == 1 || tType == 4,
  1610. }"
  1611. >
  1612. {{ JSON.parse(w.score).wScore }}分
  1613. </div>
  1614. <div
  1615. class="answerScore"
  1616. @click.stop="openScore(w)"
  1617. v-else-if="courseDetail.userid == userid"
  1618. :class="{
  1619. rightW:
  1620. w.userid == userid || tType == 1 || tType == 4,
  1621. }"
  1622. >
  1623. 评分
  1624. </div>
  1625. <img
  1626. class="deleteImg"
  1627. src="../assets/deleteworks.png"
  1628. v-if="
  1629. w.userid == userid || tType == 1 || tType == 4
  1630. "
  1631. @click.stop="deleteWorks(w.wid)"
  1632. alt
  1633. />
  1634. </div>
  1635. <div class="workImg" v-if="w.type == 1">
  1636. <img :src="word" @click="openFile(w.works,w)" alt />
  1637. <div
  1638. class="answerScore"
  1639. v-if="w.score"
  1640. @click.stop="openScore(w)"
  1641. :class="{
  1642. rightW:
  1643. w.userid == userid || tType == 1 || tType == 4,
  1644. }"
  1645. >
  1646. {{ JSON.parse(w.score).wScore }}分
  1647. </div>
  1648. <div
  1649. class="answerScore"
  1650. @click.stop="openScore(w)"
  1651. v-else-if="courseDetail.userid == userid"
  1652. :class="{
  1653. rightW:
  1654. w.userid == userid || tType == 1 || tType == 4,
  1655. }"
  1656. >
  1657. 评分
  1658. </div>
  1659. <img
  1660. class="deleteImg"
  1661. src="../assets/deleteworks.png"
  1662. v-if="
  1663. w.userid == userid || tType == 1 || tType == 4
  1664. "
  1665. @click.stop="deleteWorks(w.wid)"
  1666. alt
  1667. />
  1668. </div>
  1669. <div class="workImg" v-if="w.type == 3">
  1670. <img
  1671. style="cursor: pointer"
  1672. :src="video"
  1673. @click="openVideo(w)"
  1674. alt
  1675. />
  1676. <div
  1677. class="answerScore"
  1678. v-if="w.score"
  1679. @click.stop="openScore(w)"
  1680. :class="{
  1681. rightW:
  1682. w.userid == userid || tType == 1 || tType == 4,
  1683. }"
  1684. >
  1685. {{ JSON.parse(w.score).wScore }}分
  1686. </div>
  1687. <div
  1688. class="answerScore"
  1689. @click.stop="openScore(w)"
  1690. v-else-if="courseDetail.userid == userid"
  1691. :class="{
  1692. rightW:
  1693. w.userid == userid || tType == 1 || tType == 4,
  1694. }"
  1695. >
  1696. 评分
  1697. </div>
  1698. <img
  1699. class="deleteImg"
  1700. src="../assets/deleteworks.png"
  1701. v-if="
  1702. w.userid == userid || tType == 1 || tType == 4
  1703. "
  1704. @click.stop="deleteWorks(w.wid)"
  1705. alt
  1706. />
  1707. </div>
  1708. <div class="workImg" v-if="w.type == 12">
  1709. <img
  1710. style="cursor: pointer"
  1711. :src="word2"
  1712. @click="downloadFile(w.works,w.userid)"
  1713. alt
  1714. />
  1715. <div
  1716. class="answerScore"
  1717. v-if="w.score"
  1718. @click.stop="openScore(w)"
  1719. :class="{
  1720. rightW:
  1721. w.userid == userid || tType == 1 || tType == 4,
  1722. }"
  1723. >
  1724. {{ JSON.parse(w.score).wScore }}分
  1725. </div>
  1726. <div
  1727. class="answerScore"
  1728. @click.stop="openScore(w)"
  1729. v-else-if="courseDetail.userid == userid"
  1730. :class="{
  1731. rightW:
  1732. w.userid == userid || tType == 1 || tType == 4,
  1733. }"
  1734. >
  1735. 评分
  1736. </div>
  1737. <img
  1738. class="deleteImg"
  1739. src="../assets/deleteworks.png"
  1740. v-if="
  1741. w.userid == userid || tType == 1 || tType == 4
  1742. "
  1743. @click.stop="deleteWorks(w.wid)"
  1744. alt
  1745. />
  1746. </div>
  1747. <div class="worksName">
  1748. <div>{{ w.sName }}</div>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. </div>
  1753. <div
  1754. v-if="
  1755. tType &&
  1756. tType == 2 &&
  1757. !sIsOpen &&
  1758. tool.tool.indexOf(32) != -1
  1759. "
  1760. class="worksBox"
  1761. >
  1762. <div
  1763. class="zuoyeYulan"
  1764. v-if="workStudent[toolIndex].length > 0"
  1765. >
  1766. <span class="worksTitle">作业预览</span>
  1767. </div>
  1768. <div
  1769. class="worksDetailBox"
  1770. v-if="workStudent[toolIndex].length > 0"
  1771. >
  1772. <div
  1773. class="works"
  1774. style="
  1775. width: 200px;
  1776. height: 140px;
  1777. margin: 10px 10px 10px 0;
  1778. box-shadow: 0 0 6px 1px #dfdada;
  1779. "
  1780. v-for="(w, wIndex) in workStudent[toolIndex]"
  1781. :key="wIndex"
  1782. >
  1783. <div class="workImg">
  1784. <img
  1785. :src="word2"
  1786. @click="downloadFile(w.works,w.userid)"
  1787. alt
  1788. />
  1789. <div
  1790. class="answerScore"
  1791. v-if="w.score"
  1792. @click.stop="openScore(w)"
  1793. :class="{
  1794. rightW:
  1795. w.userid == userid || tType == 1 || tType == 4,
  1796. }"
  1797. >
  1798. {{ JSON.parse(w.score).wScore }}分
  1799. </div>
  1800. <div
  1801. class="answerScore"
  1802. @click.stop="openScore(w)"
  1803. v-else-if="courseDetail.userid == userid"
  1804. :class="{
  1805. rightW:
  1806. w.userid == userid || tType == 1 || tType == 4,
  1807. }"
  1808. >
  1809. 评分
  1810. </div>
  1811. <img
  1812. class="deleteImg"
  1813. src="../assets/deleteworks.png"
  1814. v-if="
  1815. w.userid == userid || tType == 1 || tType == 4
  1816. "
  1817. @click.stop="deleteWorks(w.wid)"
  1818. alt
  1819. />
  1820. </div>
  1821. <div class="worksName">
  1822. <div>{{ w.sName }}</div>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. <div
  1828. v-if="
  1829. tType &&
  1830. tType == 2 &&
  1831. !sIsOpen &&
  1832. tool.tool.indexOf(57) != -1
  1833. "
  1834. class="worksBox"
  1835. >
  1836. <div
  1837. class="zuoyeYulan"
  1838. v-if="workStudent[toolIndex].length > 0"
  1839. >
  1840. <span class="worksTitle">作业预览</span>
  1841. </div>
  1842. <div
  1843. class="worksDetailBox"
  1844. v-if="workStudent[toolIndex].length > 0"
  1845. >
  1846. <div
  1847. class="works"
  1848. style="
  1849. width: 200px;
  1850. height: 140px;
  1851. margin: 10px 10px 10px 0;
  1852. box-shadow: 0 0 6px 1px #dfdada;
  1853. "
  1854. v-for="(w, wIndex) in workStudent[toolIndex]"
  1855. :key="wIndex"
  1856. >
  1857. <div class="workImg">
  1858. <img
  1859. :src="word2"
  1860. @click="downloadFile(w.works,w.userid)"
  1861. v-if="w.type == 12"
  1862. alt
  1863. />
  1864. <img
  1865. :src="word2"
  1866. @click="
  1867. openCocoPi(57, toolIndex, w.userid, w.sName)
  1868. "
  1869. v-else-if="w.type == 15"
  1870. alt
  1871. />
  1872. <div
  1873. class="answerScore"
  1874. v-if="w.score"
  1875. @click.stop="openScore(w)"
  1876. :class="{
  1877. rightW:
  1878. w.userid == userid || tType == 1 || tType == 4,
  1879. }"
  1880. >
  1881. {{ JSON.parse(w.score).wScore }}分
  1882. </div>
  1883. <div
  1884. class="answerScore"
  1885. @click.stop="openScore(w)"
  1886. v-else-if="courseDetail.userid == userid"
  1887. :class="{
  1888. rightW:
  1889. w.userid == userid || tType == 1 || tType == 4,
  1890. }"
  1891. >
  1892. 评分
  1893. </div>
  1894. <img
  1895. class="deleteImg"
  1896. src="../assets/deleteworks.png"
  1897. v-if="
  1898. w.userid == userid || tType == 1 || tType == 4
  1899. "
  1900. @click.stop="deleteWorks(w.wid)"
  1901. alt
  1902. />
  1903. </div>
  1904. <div class="worksName">
  1905. <div>{{ w.sName }}</div>
  1906. </div>
  1907. </div>
  1908. </div>
  1909. </div>
  1910. <div
  1911. v-if="
  1912. tType &&
  1913. tType == 2 &&
  1914. !sIsOpen &&
  1915. tool.tool.indexOf(4) != -1
  1916. "
  1917. class="worksBox"
  1918. >
  1919. <div
  1920. class="zuoyeYulan"
  1921. v-if="workStudent[toolIndex].length > 0"
  1922. >
  1923. <span class="worksTitle">作业预览</span>
  1924. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1925. </div>
  1926. <div
  1927. class="worksDetailBox"
  1928. v-if="workStudent[toolIndex].length > 0"
  1929. >
  1930. <div
  1931. class="isWorksName2"
  1932. v-for="(w, wIndex) in workStudent[toolIndex]"
  1933. :key="wIndex"
  1934. @click="
  1935. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1936. "
  1937. >
  1938. {{ w.sName }}
  1939. <img
  1940. class="deleteImg deleteImg2"
  1941. src="../assets/deleteworks.png"
  1942. v-if="w.userid == userid || tType == 1 || tType == 4"
  1943. @click.stop="deleteWorks(w.wid)"
  1944. alt
  1945. />
  1946. </div>
  1947. <!-- <div
  1948. class="works"
  1949. style="
  1950. width: 200px;
  1951. height: 140px;
  1952. border-radius: 10px;
  1953. box-shadow: 0 0 6px 1px #dfdada;
  1954. overflow: hidden;
  1955. "
  1956. v-for="(w, wIndex) in workStudent[toolIndex]"
  1957. :key="wIndex"
  1958. >
  1959. <div class="workImg">
  1960. <img
  1961. src="../assets/icon/works/noImg.png"
  1962. @click="
  1963. openTools(
  1964. 4,
  1965. toolIndex,
  1966. taskCount,
  1967. w.works,
  1968. w.sName
  1969. )
  1970. "
  1971. alt
  1972. />
  1973. </div>
  1974. <div class="worksName">
  1975. <div>{{ w.sName }}</div>
  1976. <div>{{ w.time }}</div>
  1977. </div>
  1978. </div> -->
  1979. </div>
  1980. </div>
  1981. <div
  1982. v-if="
  1983. tType &&
  1984. ((tType == 2 && sIsOpen == true) ||
  1985. tType == 1 ||
  1986. tType == 4) &&
  1987. tool.tool.indexOf(62) != -1
  1988. "
  1989. class="worksBox"
  1990. >
  1991. <div
  1992. class="zuoyeYulan"
  1993. v-if="
  1994. worksStudent.length &&
  1995. worksStudent[toolIndex].length > 0
  1996. "
  1997. >
  1998. <div class="worksTop">
  1999. <div>作业预览</div>
  2000. <div
  2001. class="corOpen"
  2002. @click="contract(toolIndex)"
  2003. v-if="
  2004. (isCloseList[toolIndex].isCloseBoolean) &&
  2005. isCloseList[toolIndex].isClose == 0
  2006. "
  2007. >
  2008. 折叠
  2009. </div>
  2010. <div
  2011. class="corOpen"
  2012. @click="contract(toolIndex)"
  2013. v-if="isCloseList[toolIndex].isClose == 1"
  2014. >
  2015. 展开
  2016. </div>
  2017. </div>
  2018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2019. </div>
  2020. <div>
  2021. <div
  2022. :id="'tool-' + toolIndex"
  2023. :style="{
  2024. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2025. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2026. }"
  2027. class="worksDetailBox"
  2028. v-if="
  2029. worksStudent.length &&
  2030. worksStudent[toolIndex].length > 0
  2031. "
  2032. >
  2033. <div
  2034. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2035. :key="wIndex"
  2036. class="isWorksName2"
  2037. @click="
  2038. openTools(
  2039. 62,
  2040. toolIndex,
  2041. taskCount,
  2042. w.works,
  2043. w.sName
  2044. )
  2045. "
  2046. >
  2047. {{ w.sName }}
  2048. <img
  2049. class="deleteImg deleteImg2"
  2050. src="../assets/deleteworks.png"
  2051. v-if="
  2052. w.userid == userid || tType == 1 || tType == 4
  2053. "
  2054. @click.stop="deleteWorks(w.wid)"
  2055. alt
  2056. />
  2057. </div>
  2058. </div>
  2059. </div>
  2060. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2061. 未提交
  2062. </div>
  2063. <div
  2064. class="noWorksS"
  2065. v-if="noWorksS && noWorksS[toolIndex].length"
  2066. >
  2067. <div
  2068. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2069. :key="sIndex"
  2070. class="noWorksName"
  2071. >
  2072. <el-tooltip effect="dark" :content="s.student" placement="top">
  2073. <span>{{ s.student }}</span>
  2074. </el-tooltip>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. <div
  2079. v-if="
  2080. tType &&
  2081. tType == 2 &&
  2082. !sIsOpen &&
  2083. tool.tool.indexOf(62) != -1
  2084. "
  2085. class="worksBox"
  2086. >
  2087. <div
  2088. class="zuoyeYulan"
  2089. v-if="workStudent[toolIndex].length > 0"
  2090. >
  2091. <span class="worksTitle">作业预览</span>
  2092. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2093. </div>
  2094. <div
  2095. class="worksDetailBox"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <div
  2099. class="isWorksName2"
  2100. v-for="(w, wIndex) in workStudent[toolIndex]"
  2101. :key="wIndex"
  2102. @click="
  2103. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2104. "
  2105. >
  2106. {{ w.sName }}
  2107. <img
  2108. class="deleteImg deleteImg2"
  2109. src="../assets/deleteworks.png"
  2110. v-if="w.userid == userid || tType == 1 || tType == 4"
  2111. @click.stop="deleteWorks(w.wid)"
  2112. alt
  2113. />
  2114. </div>
  2115. </div>
  2116. </div>
  2117. <div
  2118. v-if="
  2119. tType &&
  2120. tType == 2 &&
  2121. !sIsOpen &&
  2122. tool.tool.indexOf(45) != -1
  2123. "
  2124. class="worksBox"
  2125. >
  2126. <div
  2127. class="zuoyeYulan"
  2128. v-if="workStudent[toolIndex].length > 0"
  2129. >
  2130. <span class="worksTitle">作业预览</span>
  2131. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2132. </div>
  2133. <div
  2134. class="worksDetailBox"
  2135. v-if="workStudent[toolIndex].length > 0"
  2136. >
  2137. <div
  2138. class="isWorksName2"
  2139. v-for="(w, wIndex) in workStudent[toolIndex]"
  2140. :key="wIndex"
  2141. @click="
  2142. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2143. "
  2144. >
  2145. {{ w.sName }}
  2146. <img
  2147. class="deleteImg deleteImg2"
  2148. src="../assets/deleteworks.png"
  2149. v-if="w.userid == userid || tType == 1 || tType == 4"
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. v-if="
  2158. tType &&
  2159. tType == 2 &&
  2160. !sIsOpen &&
  2161. tool.tool.indexOf(69) != -1
  2162. "
  2163. class="worksBox"
  2164. >
  2165. <div
  2166. class="zuoyeYulan"
  2167. v-if="workStudent[toolIndex].length > 0"
  2168. >
  2169. <span class="worksTitle">作业预览</span>
  2170. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2171. </div>
  2172. <div
  2173. class="worksDetailBox"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <div
  2177. class="isWorksName2"
  2178. v-for="(w, wIndex) in workStudent[toolIndex]"
  2179. :key="wIndex"
  2180. @click="
  2181. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2182. "
  2183. >
  2184. {{ w.sName }}
  2185. <img
  2186. class="deleteImg deleteImg2"
  2187. src="../assets/deleteworks.png"
  2188. v-if="w.userid == userid || tType == 1 || tType == 4"
  2189. @click.stop="deleteWorks(w.wid)"
  2190. alt
  2191. />
  2192. </div>
  2193. </div>
  2194. </div>
  2195. <div
  2196. v-if="
  2197. tType &&
  2198. tType == 2 &&
  2199. !sIsOpen &&
  2200. tool.tool.indexOf(15) != -1
  2201. "
  2202. class="worksBox"
  2203. >
  2204. <div
  2205. class="zuoyeYulan"
  2206. v-if="workStudent[toolIndex].length > 0"
  2207. >
  2208. <span class="worksTitle">作业预览</span>
  2209. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2210. </div>
  2211. <div
  2212. class="worksDetailBox"
  2213. v-if="workStudent[toolIndex].length > 0"
  2214. >
  2215. <div
  2216. class="works"
  2217. v-for="(w, wIndex) in workStudent[toolIndex]"
  2218. :key="wIndex"
  2219. >
  2220. <div class="workImg">
  2221. <!-- <img
  2222. src="../assets/icon/works/noImg.png"
  2223. @click="openTools(15, toolIndex, taskCount, w.works)"
  2224. alt=""
  2225. />-->
  2226. <div class="answerBg">
  2227. <!-- <div>{{ w.sName }}</div> -->
  2228. <el-tooltip
  2229. class="item"
  2230. effect="light"
  2231. :content="JSON.parse(w.works)[0].answer"
  2232. placement="top"
  2233. >
  2234. <div class="answerContent">
  2235. {{ JSON.parse(w.works)[0].answer }}
  2236. </div>
  2237. </el-tooltip>
  2238. <div
  2239. class="answerScore"
  2240. v-if="w.score"
  2241. @click.stop="openScore(w)"
  2242. :class="{
  2243. rightW:
  2244. w.userid == userid ||
  2245. tType == 1 ||
  2246. tType == 4,
  2247. }"
  2248. >
  2249. {{ JSON.parse(w.score).wScore }}分
  2250. </div>
  2251. <div
  2252. class="answerScore"
  2253. @click.stop="openScore(w)"
  2254. v-else-if="courseDetail.userid == userid"
  2255. :class="{
  2256. rightW:
  2257. w.userid == userid ||
  2258. tType == 1 ||
  2259. tType == 4,
  2260. }"
  2261. >
  2262. 评分
  2263. </div>
  2264. <img
  2265. class="deleteImg"
  2266. src="../assets/deleteworks.png"
  2267. v-if="
  2268. w.userid == userid || tType == 1 || tType == 4
  2269. "
  2270. @click.stop="deleteWorks(w.wid)"
  2271. alt
  2272. />
  2273. </div>
  2274. <div class="comment">
  2275. <div class="worksName">
  2276. <div>{{ w.sName }}</div>
  2277. </div>
  2278. </div>
  2279. </div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. <div
  2284. v-if="
  2285. tType &&
  2286. tType == 2 &&
  2287. !sIsOpen &&
  2288. tool.tool.indexOf(1) != -1
  2289. "
  2290. class="worksBox"
  2291. >
  2292. <div
  2293. class="zuoyeYulan"
  2294. v-if="workStudent[toolIndex].length > 0"
  2295. >
  2296. <span class="worksTitle">作业预览</span>
  2297. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2298. </div>
  2299. <div
  2300. class="worksDetailBox"
  2301. v-if="workStudent[toolIndex].length > 0"
  2302. >
  2303. <div
  2304. class="works"
  2305. style="
  2306. width: 200px;
  2307. height: 140px;
  2308. margin: 10px 10px 10px 0;
  2309. box-shadow: 0 0 6px 1px #dfdada;
  2310. "
  2311. v-for="(w, wIndex) in workStudent[toolIndex]"
  2312. :key="wIndex"
  2313. >
  2314. <div class="workImg">
  2315. <img
  2316. :src="w.works"
  2317. @click="previewImg(w.works,w)"
  2318. alt
  2319. />
  2320. <div
  2321. class="answerScore"
  2322. v-if="w.score"
  2323. @click.stop="openScore(w)"
  2324. :class="{
  2325. rightW:
  2326. w.userid == userid || tType == 1 || tType == 4,
  2327. }"
  2328. >
  2329. {{ JSON.parse(w.score).wScore }}分
  2330. </div>
  2331. <div
  2332. class="answerScore"
  2333. @click.stop="openScore(w)"
  2334. v-else-if="courseDetail.userid == userid"
  2335. :class="{
  2336. rightW:
  2337. w.userid == userid || tType == 1 || tType == 4,
  2338. }"
  2339. >
  2340. 评分
  2341. </div>
  2342. <img
  2343. class="deleteImg"
  2344. src="../assets/deleteworks.png"
  2345. v-if="
  2346. w.userid == userid || tType == 1 || tType == 4
  2347. "
  2348. @click.stop="deleteWorks(w.wid)"
  2349. alt
  2350. />
  2351. </div>
  2352. <div class="worksName">
  2353. <div>{{ w.sName }}</div>
  2354. </div>
  2355. </div>
  2356. </div>
  2357. </div>
  2358. <div
  2359. v-if="
  2360. tType &&
  2361. tType == 2 &&
  2362. !sIsOpen &&
  2363. tool.tool.indexOf(3) != -1
  2364. "
  2365. class="worksBox"
  2366. >
  2367. <div
  2368. class="zuoyeYulan"
  2369. v-if="workStudent[toolIndex].length > 0"
  2370. >
  2371. <span class="worksTitle">作业预览</span>
  2372. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2373. </div>
  2374. <div
  2375. class="worksDetailBox"
  2376. v-if="workStudent[toolIndex].length > 0"
  2377. >
  2378. <div
  2379. class="works"
  2380. style="
  2381. width: 200px;
  2382. height: 140px;
  2383. margin: 10px 10px 10px 0;
  2384. box-shadow: 0 0 6px 1px #dfdada;
  2385. "
  2386. v-for="(w, wIndex) in workStudent[toolIndex]"
  2387. :key="wIndex"
  2388. >
  2389. <div class="workImg">
  2390. <img
  2391. :src="w.works"
  2392. @click="previewImg(w.works,w)"
  2393. alt
  2394. />
  2395. <div
  2396. class="answerScore"
  2397. v-if="w.score"
  2398. @click.stop="openScore(w)"
  2399. :class="{
  2400. rightW:
  2401. w.userid == userid || tType == 1 || tType == 4,
  2402. }"
  2403. >
  2404. {{ JSON.parse(w.score).wScore }}分
  2405. </div>
  2406. <div
  2407. class="answerScore"
  2408. @click.stop="openScore(w)"
  2409. v-else-if="courseDetail.userid == userid"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid || tType == 1 || tType == 4,
  2413. }"
  2414. >
  2415. 评分
  2416. </div>
  2417. <img
  2418. class="deleteImg"
  2419. src="../assets/deleteworks.png"
  2420. v-if="
  2421. w.userid == userid || tType == 1 || tType == 4
  2422. "
  2423. @click.stop="deleteWorks(w.wid)"
  2424. alt
  2425. />
  2426. </div>
  2427. <div class="worksName">
  2428. <div>{{ w.sName }}</div>
  2429. </div>
  2430. </div>
  2431. </div>
  2432. </div>
  2433. <div
  2434. v-if="
  2435. tType &&
  2436. tType == 2 &&
  2437. !sIsOpen &&
  2438. tool.tool.indexOf(6) != -1
  2439. "
  2440. class="worksBox"
  2441. >
  2442. <div
  2443. class="zuoyeYulan"
  2444. v-if="workStudent[toolIndex].length > 0"
  2445. >
  2446. <span class="worksTitle">作业预览</span>
  2447. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2448. </div>
  2449. <div
  2450. class="worksDetailBox"
  2451. v-if="workStudent[toolIndex].length > 0"
  2452. >
  2453. <div
  2454. class="works"
  2455. style="
  2456. width: 200px;
  2457. height: 140px;
  2458. margin: 10px 10px 10px 0;
  2459. box-shadow: 0 0 6px 1px #dfdada;
  2460. "
  2461. v-for="(w, wIndex) in workStudent[toolIndex]"
  2462. :key="wIndex"
  2463. >
  2464. <div class="workImg">
  2465. <img
  2466. :src="w.works"
  2467. @click="previewImg(w.works,w)"
  2468. alt
  2469. />
  2470. <div
  2471. class="answerScore"
  2472. v-if="w.score"
  2473. @click.stop="openScore(w)"
  2474. :class="{
  2475. rightW:
  2476. w.userid == userid || tType == 1 || tType == 4,
  2477. }"
  2478. >
  2479. {{ JSON.parse(w.score).wScore }}分
  2480. </div>
  2481. <div
  2482. class="answerScore"
  2483. @click.stop="openScore(w)"
  2484. v-else-if="courseDetail.userid == userid"
  2485. :class="{
  2486. rightW:
  2487. w.userid == userid || tType == 1 || tType == 4,
  2488. }"
  2489. >
  2490. 评分
  2491. </div>
  2492. <img
  2493. class="deleteImg"
  2494. src="../assets/deleteworks.png"
  2495. v-if="
  2496. w.userid == userid || tType == 1 || tType == 4
  2497. "
  2498. @click.stop="deleteWorks(w.wid)"
  2499. alt
  2500. />
  2501. </div>
  2502. <div class="worksName">
  2503. <div>{{ w.sName }}</div>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. <div
  2509. v-if="
  2510. tType &&
  2511. tType == 2 &&
  2512. !sIsOpen &&
  2513. tool.tool.indexOf(7) != -1
  2514. "
  2515. class="worksBox"
  2516. >
  2517. <div
  2518. class="zuoyeYulan"
  2519. v-if="workStudent[toolIndex].length > 0"
  2520. >
  2521. <span class="worksTitle">作业预览</span>
  2522. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2523. </div>
  2524. <div
  2525. class="worksDetailBox"
  2526. v-if="workStudent[toolIndex].length > 0"
  2527. >
  2528. <div
  2529. class="works"
  2530. style="
  2531. width: 200px;
  2532. height: 140px;
  2533. margin: 10px 10px 10px 0;
  2534. box-shadow: 0 0 6px 1px #dfdada;
  2535. "
  2536. v-for="(w, wIndex) in workStudent[toolIndex]"
  2537. :key="wIndex"
  2538. >
  2539. <div class="workImg">
  2540. <img
  2541. :src="w.works"
  2542. @click="previewImg(w.works,w)"
  2543. alt
  2544. />
  2545. <div
  2546. class="answerScore"
  2547. v-if="w.score"
  2548. @click.stop="openScore(w)"
  2549. :class="{
  2550. rightW:
  2551. w.userid == userid || tType == 1 || tType == 4,
  2552. }"
  2553. >
  2554. {{ JSON.parse(w.score).wScore }}分
  2555. </div>
  2556. <div
  2557. class="answerScore"
  2558. @click.stop="openScore(w)"
  2559. v-else-if="courseDetail.userid == userid"
  2560. :class="{
  2561. rightW:
  2562. w.userid == userid || tType == 1 || tType == 4,
  2563. }"
  2564. >
  2565. 评分
  2566. </div>
  2567. <img
  2568. class="deleteImg"
  2569. src="../assets/deleteworks.png"
  2570. v-if="
  2571. w.userid == userid || tType == 1 || tType == 4
  2572. "
  2573. @click.stop="deleteWorks(w.wid)"
  2574. alt
  2575. />
  2576. </div>
  2577. <div class="worksName">
  2578. <div>{{ w.sName }}</div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. <div
  2584. v-if="
  2585. tType &&
  2586. tType == 2 &&
  2587. !sIsOpen &&
  2588. tool.tool.indexOf(26) != -1
  2589. "
  2590. class="worksBox"
  2591. >
  2592. <div
  2593. class="zuoyeYulan"
  2594. v-if="workStudent[toolIndex].length > 0"
  2595. >
  2596. <span class="worksTitle">作业预览</span>
  2597. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2598. </div>
  2599. <div
  2600. class="worksDetailBox"
  2601. v-if="workStudent[toolIndex].length > 0"
  2602. >
  2603. <div
  2604. class="works"
  2605. style="
  2606. width: 200px;
  2607. height: 140px;
  2608. margin: 10px 10px 10px 0;
  2609. box-shadow: 0 0 6px 1px #dfdada;
  2610. "
  2611. v-for="(w, wIndex) in workStudent[toolIndex]"
  2612. :key="wIndex"
  2613. >
  2614. <div class="workImg">
  2615. <img
  2616. :src="w.works"
  2617. @click="previewImg(w.works,w)"
  2618. alt
  2619. />
  2620. <img
  2621. class="deleteImg"
  2622. src="../assets/deleteworks.png"
  2623. v-if="
  2624. w.userid == userid || tType == 1 || tType == 4
  2625. "
  2626. @click.stop="deleteWorks(w.wid)"
  2627. alt
  2628. />
  2629. </div>
  2630. <div class="worksName">
  2631. <div>{{ w.sName }}</div>
  2632. </div>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. <div
  2637. v-if="
  2638. tType &&
  2639. ((tType == 2 && sIsOpen == true) ||
  2640. tType == 1 ||
  2641. tType == 4) &&
  2642. tool.tool.indexOf(16) != -1
  2643. "
  2644. class="worksBox"
  2645. >
  2646. <div
  2647. class="zuoyeYulan"
  2648. v-if="
  2649. (worksStudent.length &&
  2650. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2651. "
  2652. >
  2653. <div class="worksTop">
  2654. <div>作业预览</div>
  2655. <div
  2656. class="corOpen"
  2657. @click="contract(toolIndex)"
  2658. v-if="
  2659. (isCloseList[toolIndex].isCloseBoolean) &&
  2660. isCloseList[toolIndex].isClose == 0
  2661. "
  2662. >
  2663. 折叠
  2664. </div>
  2665. <div
  2666. class="corOpen"
  2667. @click="contract(toolIndex)"
  2668. v-if="isCloseList[toolIndex].isClose == 1"
  2669. >
  2670. 展开
  2671. </div>
  2672. </div>
  2673. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2674. </div>
  2675. <div
  2676. class="group_workBox"
  2677. v-for="(g, gindex) in courseGroup.group"
  2678. :key="gindex"
  2679. >
  2680. <div class="group_box">
  2681. <div class="group_title">
  2682. <el-tooltip
  2683. class="item"
  2684. effect="light"
  2685. :content="g.name"
  2686. placement="top"
  2687. >
  2688. <div class="group_name">{{ g.name }}</div>
  2689. </el-tooltip>
  2690. </div>
  2691. <div
  2692. class="group_work"
  2693. v-if="
  2694. g.works &&
  2695. g.works.length &&
  2696. g.works[toolIndex].length
  2697. "
  2698. >
  2699. <div
  2700. class="works"
  2701. style="
  2702. width: 200px;
  2703. height: 140px;
  2704. margin: 10px 10px 10px 0;
  2705. border-radius: 15px;
  2706. box-shadow: 0 0 6px 1px #dfdada;
  2707. "
  2708. v-for="(w, wIndex) in g.works[toolIndex]"
  2709. :key="wIndex"
  2710. :class="w.type == 1 ? 'isTypeOne' : ''"
  2711. >
  2712. <div class="workImg" v-if="w.type == 0">
  2713. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2714. <img
  2715. :src="w.works"
  2716. @click="previewImg(w.works,w)"
  2717. alt
  2718. />
  2719. <div
  2720. class="answerScore"
  2721. v-if="w.score"
  2722. @click.stop="openScore(w)"
  2723. :class="{
  2724. rightW:
  2725. w.userid == userid ||
  2726. tType == 1 ||
  2727. tType == 4 ||
  2728. w.ateacher == userid,
  2729. }"
  2730. >
  2731. {{ JSON.parse(w.score).wScore }}分
  2732. </div>
  2733. <div
  2734. class="answerScore"
  2735. @click.stop="openScore(w)"
  2736. v-else-if="courseDetail.userid == userid"
  2737. :class="{
  2738. rightW:
  2739. w.userid == userid ||
  2740. tType == 1 ||
  2741. tType == 4 ||
  2742. w.ateacher == userid,
  2743. }"
  2744. >
  2745. 评分
  2746. </div>
  2747. <img
  2748. class="deleteImg"
  2749. src="../assets/deleteworks.png"
  2750. v-if="
  2751. w.userid == userid || tType == 1 || tType == 4
  2752. "
  2753. @click.stop="deleteWorks(w.wid)"
  2754. alt
  2755. />
  2756. </div>
  2757. <div class="workImg" v-if="w.type == 1">
  2758. <img :src="word" @click="openFile(w.works,w)" alt />
  2759. <!-- @click="openFile(w.works)" -->
  2760. <div
  2761. class="answerScore"
  2762. v-if="w.score"
  2763. @click.stop="openScore(w)"
  2764. :class="{
  2765. rightW:
  2766. w.userid == userid ||
  2767. tType == 1 ||
  2768. tType == 4 ||
  2769. w.ateacher == userid,
  2770. }"
  2771. >
  2772. {{ JSON.parse(w.score).wScore }}分
  2773. </div>
  2774. <div
  2775. class="answerScore"
  2776. @click.stop="openScore(w)"
  2777. v-else-if="courseDetail.userid == userid"
  2778. :class="{
  2779. rightW:
  2780. w.userid == userid ||
  2781. tType == 1 ||
  2782. tType == 4 ||
  2783. w.ateacher == userid,
  2784. }"
  2785. >
  2786. 评分
  2787. </div>
  2788. <img
  2789. class="deleteImg"
  2790. src="../assets/deleteworks.png"
  2791. v-if="
  2792. w.userid == userid || tType == 1 || tType == 4
  2793. "
  2794. @click.stop="deleteWorks(w.wid)"
  2795. alt
  2796. />
  2797. </div>
  2798. <div class="workImg" v-if="w.type == 3">
  2799. <img
  2800. style="cursor: pointer"
  2801. :src="video"
  2802. @click="openVideo(w)"
  2803. alt
  2804. />
  2805. <!-- @click="openVideo(w.works)" -->
  2806. <div
  2807. class="answerScore"
  2808. v-if="w.score"
  2809. @click.stop="openScore(w)"
  2810. :class="{
  2811. rightW:
  2812. w.userid == userid ||
  2813. tType == 1 ||
  2814. tType == 4 ||
  2815. w.ateacher == userid,
  2816. }"
  2817. >
  2818. {{ JSON.parse(w.score).wScore }}分
  2819. </div>
  2820. <div
  2821. class="answerScore"
  2822. @click.stop="openScore(w)"
  2823. v-else-if="courseDetail.userid == userid"
  2824. :class="{
  2825. rightW:
  2826. w.userid == userid ||
  2827. tType == 1 ||
  2828. tType == 4 ||
  2829. w.ateacher == userid,
  2830. }"
  2831. >
  2832. 评分
  2833. </div>
  2834. <img
  2835. class="deleteImg"
  2836. src="../assets/deleteworks.png"
  2837. v-if="
  2838. w.userid == userid || tType == 1 || tType == 4
  2839. "
  2840. @click.stop="deleteWorks(w.wid)"
  2841. alt
  2842. />
  2843. </div>
  2844. <div class="workImg" v-if="w.type == 12">
  2845. <img
  2846. style="cursor: pointer"
  2847. :src="word2"
  2848. @click="downloadFile(w.works,w.userid)"
  2849. alt
  2850. />
  2851. <!-- @click="openVideo(w.works)" -->
  2852. <div
  2853. class="answerScore"
  2854. v-if="w.score"
  2855. @click.stop="openScore(w)"
  2856. :class="{
  2857. rightW:
  2858. w.userid == userid ||
  2859. tType == 1 ||
  2860. tType == 4 ||
  2861. w.ateacher == userid,
  2862. }"
  2863. >
  2864. {{ JSON.parse(w.score).wScore }}分
  2865. </div>
  2866. <div
  2867. class="answerScore"
  2868. @click.stop="openScore(w)"
  2869. v-else-if="courseDetail.userid == userid"
  2870. :class="{
  2871. rightW:
  2872. w.userid == userid ||
  2873. tType == 1 ||
  2874. tType == 4 ||
  2875. w.ateacher == userid,
  2876. }"
  2877. >
  2878. 评分
  2879. </div>
  2880. <img
  2881. class="deleteImg"
  2882. src="../assets/deleteworks.png"
  2883. v-if="
  2884. w.userid == userid || tType == 1 || tType == 4
  2885. "
  2886. @click.stop="deleteWorks(w.wid)"
  2887. alt
  2888. />
  2889. </div>
  2890. <div class="comment" style="min-width: 200px">
  2891. <div class="worksName">
  2892. <div>{{ w.sName }}</div>
  2893. </div>
  2894. <div class="commentList">
  2895. <div class="commentList">
  2896. <div
  2897. class="commentImg"
  2898. @click="
  2899. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2900. "
  2901. >
  2902. <img
  2903. :src="w.isLikes == true ? likes : noLikes"
  2904. alt=""
  2905. />
  2906. </div>
  2907. <div>{{ w.likesCount }}</div>
  2908. </div>
  2909. <div
  2910. class="commentList"
  2911. style="margin-right: 15px"
  2912. >
  2913. <div
  2914. class="commentImg"
  2915. @click="
  2916. commentOther(
  2917. w,
  2918. toolIndex,
  2919. wIndex,
  2920. null,
  2921. g.id
  2922. )
  2923. "
  2924. >
  2925. <img
  2926. src="../assets/icon/comment/comment.png"
  2927. alt=""
  2928. />
  2929. </div>
  2930. <div>{{ w.commentCount }}</div>
  2931. </div>
  2932. </div>
  2933. </div>
  2934. </div>
  2935. </div>
  2936. <div class="group_work" v-else>暂无提交作业</div>
  2937. </div>
  2938. </div>
  2939. <div
  2940. :id="'tool-' + toolIndex"
  2941. :style="{
  2942. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2943. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2944. }"
  2945. class="worksDetailBox"
  2946. v-if="
  2947. worksStudent.length &&
  2948. worksStudent[toolIndex].length > 0
  2949. "
  2950. >
  2951. <div
  2952. class="works"
  2953. style="
  2954. width: 200px;
  2955. height: 140px;
  2956. margin: 10px 10px 10px 0;
  2957. border-radius: 15px;
  2958. box-shadow: 0 0 6px 1px #dfdada;
  2959. "
  2960. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2961. :key="wIndex"
  2962. :class="w.type == 1 ? 'isTypeOne' : ''"
  2963. >
  2964. <div class="workImg" v-if="w.type == 0">
  2965. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2966. <img
  2967. :src="w.works"
  2968. @click="previewImg(w.works,w)"
  2969. alt
  2970. />
  2971. <div
  2972. class="answerScore"
  2973. v-if="w.score"
  2974. @click.stop="openScore(w)"
  2975. :class="{
  2976. rightW:
  2977. w.userid == userid ||
  2978. tType == 1 ||
  2979. tType == 4 ||
  2980. w.ateacher == userid,
  2981. }"
  2982. >
  2983. {{ JSON.parse(w.score).wScore }}分
  2984. </div>
  2985. <div
  2986. class="answerScore"
  2987. @click.stop="openScore(w)"
  2988. v-else-if="courseDetail.userid == userid"
  2989. :class="{
  2990. rightW:
  2991. w.userid == userid ||
  2992. tType == 1 ||
  2993. tType == 4 ||
  2994. w.ateacher == userid,
  2995. }"
  2996. >
  2997. 评分
  2998. </div>
  2999. <img
  3000. class="deleteImg"
  3001. src="../assets/deleteworks.png"
  3002. v-if="
  3003. w.userid == userid || tType == 1 || tType == 4
  3004. "
  3005. @click.stop="deleteWorks(w.wid)"
  3006. alt
  3007. />
  3008. </div>
  3009. <div class="workImg" v-if="w.type == 1">
  3010. <img :src="word" @click="openFile(w.works,w)" alt />
  3011. <!-- @click="openFile(w.works)" -->
  3012. <div
  3013. class="answerScore"
  3014. v-if="w.score"
  3015. @click.stop="openScore(w)"
  3016. :class="{
  3017. rightW:
  3018. w.userid == userid ||
  3019. tType == 1 ||
  3020. tType == 4 ||
  3021. w.ateacher == userid,
  3022. }"
  3023. >
  3024. {{ JSON.parse(w.score).wScore }}分
  3025. </div>
  3026. <div
  3027. class="answerScore"
  3028. @click.stop="openScore(w)"
  3029. v-else-if="courseDetail.userid == userid"
  3030. :class="{
  3031. rightW:
  3032. w.userid == userid ||
  3033. tType == 1 ||
  3034. tType == 4 ||
  3035. w.ateacher == userid,
  3036. }"
  3037. >
  3038. 评分
  3039. </div>
  3040. <img
  3041. class="deleteImg"
  3042. src="../assets/deleteworks.png"
  3043. v-if="
  3044. w.userid == userid || tType == 1 || tType == 4
  3045. "
  3046. @click.stop="deleteWorks(w.wid)"
  3047. alt
  3048. />
  3049. </div>
  3050. <div class="workImg" v-if="w.type == 3">
  3051. <img
  3052. style="cursor: pointer"
  3053. :src="video"
  3054. @click="openVideo(w)"
  3055. alt
  3056. />
  3057. <!-- @click="openVideo(w.works)" -->
  3058. <div
  3059. class="answerScore"
  3060. v-if="w.score"
  3061. @click.stop="openScore(w)"
  3062. :class="{
  3063. rightW:
  3064. w.userid == userid ||
  3065. tType == 1 ||
  3066. tType == 4 ||
  3067. w.ateacher == userid,
  3068. }"
  3069. >
  3070. {{ JSON.parse(w.score).wScore }}分
  3071. </div>
  3072. <div
  3073. class="answerScore"
  3074. @click.stop="openScore(w)"
  3075. v-else-if="courseDetail.userid == userid"
  3076. :class="{
  3077. rightW:
  3078. w.userid == userid ||
  3079. tType == 1 ||
  3080. tType == 4 ||
  3081. w.ateacher == userid,
  3082. }"
  3083. >
  3084. 评分
  3085. </div>
  3086. <img
  3087. class="deleteImg"
  3088. src="../assets/deleteworks.png"
  3089. v-if="
  3090. w.userid == userid || tType == 1 || tType == 4
  3091. "
  3092. @click.stop="deleteWorks(w.wid)"
  3093. alt
  3094. />
  3095. </div>
  3096. <div class="workImg" v-if="w.type == 12">
  3097. <img
  3098. style="cursor: pointer"
  3099. :src="word2"
  3100. @click="downloadFile(w.works,w.userid)"
  3101. alt
  3102. />
  3103. <!-- @click="openVideo(w.works)" -->
  3104. <div
  3105. class="answerScore"
  3106. v-if="w.score"
  3107. @click.stop="openScore(w)"
  3108. :class="{
  3109. rightW:
  3110. w.userid == userid ||
  3111. tType == 1 ||
  3112. tType == 4 ||
  3113. w.ateacher == userid,
  3114. }"
  3115. >
  3116. {{ JSON.parse(w.score).wScore }}分
  3117. </div>
  3118. <div
  3119. class="answerScore"
  3120. @click.stop="openScore(w)"
  3121. v-else-if="courseDetail.userid == userid"
  3122. :class="{
  3123. rightW:
  3124. w.userid == userid ||
  3125. tType == 1 ||
  3126. tType == 4 ||
  3127. w.ateacher == userid,
  3128. }"
  3129. >
  3130. 评分
  3131. </div>
  3132. <img
  3133. class="deleteImg"
  3134. src="../assets/deleteworks.png"
  3135. v-if="
  3136. w.userid == userid || tType == 1 || tType == 4
  3137. "
  3138. @click.stop="deleteWorks(w.wid)"
  3139. alt
  3140. />
  3141. </div>
  3142. <div class="comment" style="min-width: 200px">
  3143. <div class="worksName">
  3144. <div>{{ w.sName }}</div>
  3145. </div>
  3146. <div class="commentList">
  3147. <div class="commentList">
  3148. <div
  3149. class="commentImg"
  3150. @click="
  3151. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3152. "
  3153. >
  3154. <img
  3155. :src="w.isLikes == true ? likes : noLikes"
  3156. alt=""
  3157. />
  3158. </div>
  3159. <div>{{ w.likesCount }}</div>
  3160. </div>
  3161. <div class="commentList" style="margin-right: 15px">
  3162. <div
  3163. class="commentImg"
  3164. @click="commentOther(w, toolIndex, wIndex)"
  3165. >
  3166. <img
  3167. src="../assets/icon/comment/comment.png"
  3168. alt=""
  3169. />
  3170. </div>
  3171. <div>{{ w.commentCount }}</div>
  3172. </div>
  3173. </div>
  3174. </div>
  3175. </div>
  3176. </div>
  3177. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3178. 未提交
  3179. </div>
  3180. <div
  3181. class="noWorksS"
  3182. v-if="noWorksS && noWorksS[toolIndex].length"
  3183. >
  3184. <div
  3185. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3186. :key="sIndex"
  3187. class="noWorksName"
  3188. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3189. >
  3190. <el-tooltip effect="dark" :content="s.student" placement="top">
  3191. <span>{{ s.student }}</span>
  3192. </el-tooltip>
  3193. </div>
  3194. </div>
  3195. </div>
  3196. <div
  3197. v-if="
  3198. tType &&
  3199. ((tType == 2 && sIsOpen == true) ||
  3200. tType == 1 ||
  3201. tType == 4) &&
  3202. tool.tool.indexOf(70) != -1
  3203. "
  3204. class="worksBox"
  3205. >
  3206. <div
  3207. class="zuoyeYulan"
  3208. v-if="
  3209. (worksStudent.length &&
  3210. worksStudent[toolIndex].length > 0)
  3211. "
  3212. >
  3213. <div class="worksTop">
  3214. <div>作业预览</div>
  3215. <div
  3216. class="corOpen"
  3217. @click="contract(toolIndex)"
  3218. v-if="
  3219. (isCloseList[toolIndex].isCloseBoolean) &&
  3220. isCloseList[toolIndex].isClose == 0
  3221. "
  3222. >
  3223. 折叠
  3224. </div>
  3225. <div
  3226. class="corOpen"
  3227. @click="contract(toolIndex)"
  3228. v-if="isCloseList[toolIndex].isClose == 1"
  3229. >
  3230. 展开
  3231. </div>
  3232. </div>
  3233. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3234. </div>
  3235. <div
  3236. :id="'tool-' + toolIndex"
  3237. :style="{
  3238. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3239. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3240. }"
  3241. class="worksDetailBox"
  3242. v-if="
  3243. worksStudent.length &&
  3244. worksStudent[toolIndex].length > 0
  3245. "
  3246. >
  3247. <div
  3248. class="works"
  3249. style="
  3250. width: 200px;
  3251. height: 140px;
  3252. margin: 10px 10px 10px 0;
  3253. border-radius: 15px;
  3254. box-shadow: 0 0 6px 1px #dfdada;
  3255. "
  3256. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3257. :key="wIndex"
  3258. :class="w.type == 1 ? 'isTypeOne' : ''"
  3259. >
  3260. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3261. <img :src="word" alt />
  3262. <img
  3263. class="deleteImg"
  3264. src="../assets/deleteworks.png"
  3265. v-if="
  3266. w.userid == userid || tType == 1 || tType == 4
  3267. "
  3268. @click.stop="deleteWorks(w.wid)"
  3269. alt
  3270. />
  3271. </div>
  3272. <div class="comment" style="min-width: 200px">
  3273. <div class="worksName">
  3274. <div>{{ w.sName }}</div>
  3275. </div>
  3276. </div>
  3277. </div>
  3278. </div>
  3279. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3280. 未提交
  3281. </div>
  3282. <div
  3283. class="noWorksS"
  3284. v-if="noWorksS && noWorksS[toolIndex].length"
  3285. >
  3286. <div
  3287. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3288. :key="sIndex"
  3289. class="noWorksName"
  3290. >
  3291. <el-tooltip effect="dark" :content="s.student" placement="top">
  3292. <span>{{ s.student }}</span>
  3293. </el-tooltip>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. <div
  3298. v-if="
  3299. tType &&
  3300. tType == 2 &&
  3301. !sIsOpen &&
  3302. tool.tool.indexOf(70) != -1
  3303. "
  3304. class="worksBox"
  3305. >
  3306. <div
  3307. class="zuoyeYulan"
  3308. v-if="workStudent[toolIndex].length > 0"
  3309. >
  3310. <span class="worksTitle">作业预览</span>
  3311. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3312. </div>
  3313. <div
  3314. class="worksDetailBox"
  3315. v-if="workStudent[toolIndex].length > 0"
  3316. >
  3317. <div
  3318. class="works"
  3319. style="
  3320. width: 200px;
  3321. height: 140px;
  3322. margin: 10px 10px 10px 0;
  3323. box-shadow: 0 0 6px 1px #dfdada;
  3324. "
  3325. v-for="(w, wIndex) in workStudent[toolIndex]"
  3326. :key="wIndex"
  3327. >
  3328. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3329. <img :src="word" alt />
  3330. <img
  3331. class="deleteImg"
  3332. src="../assets/deleteworks.png"
  3333. v-if="
  3334. w.userid == userid || tType == 1 || tType == 4
  3335. "
  3336. @click.stop="deleteWorks(w.wid)"
  3337. alt
  3338. />
  3339. </div>
  3340. <div class="worksName">
  3341. <div>{{ w.sName }}</div>
  3342. </div>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. ((tType == 2 && sIsOpen == true) ||
  3350. tType == 1 ||
  3351. tType == 4) &&
  3352. tool.tool.indexOf(32) != -1
  3353. "
  3354. class="worksBox"
  3355. >
  3356. <div
  3357. class="zuoyeYulan"
  3358. v-if="
  3359. worksStudent.length &&
  3360. worksStudent[toolIndex].length > 0
  3361. "
  3362. >
  3363. <div class="worksTop">
  3364. <div>作业预览</div>
  3365. <div
  3366. class="corOpen"
  3367. @click="contract(toolIndex)"
  3368. v-if="
  3369. (isCloseList[toolIndex].isCloseBoolean) &&
  3370. isCloseList[toolIndex].isClose == 0
  3371. "
  3372. >
  3373. 折叠
  3374. </div>
  3375. <div
  3376. class="corOpen"
  3377. @click="contract(toolIndex)"
  3378. v-if="isCloseList[toolIndex].isClose == 1"
  3379. >
  3380. 展开
  3381. </div>
  3382. </div>
  3383. </div>
  3384. <div
  3385. :id="'tool-' + toolIndex"
  3386. class="worksDetailBox"
  3387. :style="{
  3388. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3389. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3390. }"
  3391. v-if="
  3392. worksStudent.length &&
  3393. worksStudent[toolIndex].length > 0
  3394. "
  3395. >
  3396. <div
  3397. class="works"
  3398. style="
  3399. width: 200px;
  3400. height: 140px;
  3401. margin: 10px 10px 10px 0;
  3402. border-radius: 15px;
  3403. box-shadow: 0 0 6px 1px #dfdada;
  3404. "
  3405. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3406. :key="wIndex"
  3407. :class="w.type == 1 ? 'isTypeOne' : ''"
  3408. >
  3409. <div class="workImg">
  3410. <img
  3411. :src="word2"
  3412. @click="downloadFile(w.works,w.userid)"
  3413. alt
  3414. />
  3415. <div
  3416. class="answerScore"
  3417. v-if="w.score"
  3418. @click.stop="openScore(w)"
  3419. :class="{
  3420. rightW:
  3421. w.userid == userid ||
  3422. tType == 1 ||
  3423. tType == 4 ||
  3424. w.ateacher == userid,
  3425. }"
  3426. >
  3427. {{ JSON.parse(w.score).wScore }}分
  3428. </div>
  3429. <div
  3430. class="answerScore"
  3431. @click.stop="openScore(w)"
  3432. v-else-if="courseDetail.userid == userid"
  3433. :class="{
  3434. rightW:
  3435. w.userid == userid ||
  3436. tType == 1 ||
  3437. tType == 4 ||
  3438. w.ateacher == userid,
  3439. }"
  3440. >
  3441. 评分
  3442. </div>
  3443. <img
  3444. class="deleteImg"
  3445. src="../assets/deleteworks.png"
  3446. v-if="
  3447. w.userid == userid || tType == 1 || tType == 4
  3448. "
  3449. @click.stop="deleteWorks(w.wid)"
  3450. alt
  3451. />
  3452. </div>
  3453. <div class="comment" style="min-width: 200px">
  3454. <div class="worksName">
  3455. <div>{{ w.sName }}</div>
  3456. </div>
  3457. <div class="commentList">
  3458. <div class="commentList">
  3459. <div
  3460. class="commentImg"
  3461. @click="
  3462. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3463. "
  3464. >
  3465. <img
  3466. :src="w.isLikes == true ? likes : noLikes"
  3467. alt=""
  3468. />
  3469. </div>
  3470. <div>{{ w.likesCount }}</div>
  3471. </div>
  3472. <div class="commentList" style="margin-right: 15px">
  3473. <div
  3474. class="commentImg"
  3475. @click="commentOther(w, toolIndex, wIndex)"
  3476. >
  3477. <img
  3478. src="../assets/icon/comment/comment.png"
  3479. alt=""
  3480. />
  3481. </div>
  3482. <div>{{ w.commentCount }}</div>
  3483. </div>
  3484. </div>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3489. 未提交
  3490. </div>
  3491. <div
  3492. class="noWorksS"
  3493. v-if="noWorksS && noWorksS[toolIndex].length"
  3494. >
  3495. <div
  3496. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3497. :key="sIndex"
  3498. class="noWorksName"
  3499. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3500. >
  3501. <el-tooltip effect="dark" :content="s.student" placement="top">
  3502. <span>{{ s.student }}</span>
  3503. </el-tooltip>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. <div
  3508. v-if="
  3509. tType &&
  3510. ((tType == 2 && sIsOpen == true) ||
  3511. tType == 1 ||
  3512. tType == 4) &&
  3513. tool.tool.indexOf(57) != -1
  3514. "
  3515. class="worksBox"
  3516. >
  3517. <div
  3518. class="zuoyeYulan"
  3519. v-if="
  3520. worksStudent.length &&
  3521. worksStudent[toolIndex].length > 0
  3522. "
  3523. >
  3524. <div class="worksTop">
  3525. <div>作业预览</div>
  3526. <div
  3527. class="corOpen"
  3528. @click="contract(toolIndex)"
  3529. v-if="
  3530. (isCloseList[toolIndex].isCloseBoolean) &&
  3531. isCloseList[toolIndex].isClose == 0
  3532. "
  3533. >
  3534. 折叠
  3535. </div>
  3536. <div
  3537. class="corOpen"
  3538. @click="contract(toolIndex)"
  3539. v-if="isCloseList[toolIndex].isClose == 1"
  3540. >
  3541. 展开
  3542. </div>
  3543. </div>
  3544. </div>
  3545. <div
  3546. :id="'tool-' + toolIndex"
  3547. class="worksDetailBox"
  3548. :style="{
  3549. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3550. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3551. }"
  3552. v-if="
  3553. worksStudent.length &&
  3554. worksStudent[toolIndex].length > 0
  3555. "
  3556. >
  3557. <div
  3558. class="works"
  3559. style="
  3560. width: 200px;
  3561. height: 140px;
  3562. margin: 10px 10px 10px 0;
  3563. border-radius: 15px;
  3564. box-shadow: 0 0 6px 1px #dfdada;
  3565. "
  3566. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3567. :key="wIndex"
  3568. :class="w.type == 1 ? 'isTypeOne' : ''"
  3569. >
  3570. <div class="workImg">
  3571. <img
  3572. :src="word2"
  3573. @click="downloadFile(w.works,w.userid)"
  3574. v-if="w.type == 12"
  3575. alt
  3576. />
  3577. <img
  3578. :src="word2"
  3579. @click="
  3580. openCocoPi(57, toolIndex, w.userid, w.sName)
  3581. "
  3582. v-else-if="w.type == 15"
  3583. alt
  3584. />
  3585. <div
  3586. class="answerScore"
  3587. v-if="w.score"
  3588. @click.stop="openScore(w)"
  3589. :class="{
  3590. rightW:
  3591. w.userid == userid ||
  3592. tType == 1 ||
  3593. tType == 4 ||
  3594. w.ateacher == userid,
  3595. }"
  3596. >
  3597. {{ JSON.parse(w.score).wScore }}分
  3598. </div>
  3599. <div
  3600. class="answerScore"
  3601. @click.stop="openScore(w)"
  3602. v-else-if="courseDetail.userid == userid"
  3603. :class="{
  3604. rightW:
  3605. w.userid == userid ||
  3606. tType == 1 ||
  3607. tType == 4 ||
  3608. w.ateacher == userid,
  3609. }"
  3610. >
  3611. 评分
  3612. </div>
  3613. <img
  3614. class="deleteImg"
  3615. src="../assets/deleteworks.png"
  3616. v-if="
  3617. w.userid == userid || tType == 1 || tType == 4
  3618. "
  3619. @click.stop="deleteWorks(w.wid)"
  3620. alt
  3621. />
  3622. </div>
  3623. <div class="comment" style="min-width: 200px">
  3624. <div class="worksName">
  3625. <div>{{ w.sName }}</div>
  3626. </div>
  3627. <div class="commentList">
  3628. <div class="commentList">
  3629. <div
  3630. class="commentImg"
  3631. @click="
  3632. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3633. "
  3634. >
  3635. <img
  3636. :src="w.isLikes == true ? likes : noLikes"
  3637. alt=""
  3638. />
  3639. </div>
  3640. <div>{{ w.likesCount }}</div>
  3641. </div>
  3642. <div class="commentList" style="margin-right: 15px">
  3643. <div
  3644. class="commentImg"
  3645. @click="commentOther(w, toolIndex, wIndex)"
  3646. >
  3647. <img
  3648. src="../assets/icon/comment/comment.png"
  3649. alt=""
  3650. />
  3651. </div>
  3652. <div>{{ w.commentCount }}</div>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3659. 未提交
  3660. </div>
  3661. <div
  3662. class="noWorksS"
  3663. v-if="noWorksS && noWorksS[toolIndex].length"
  3664. >
  3665. <div
  3666. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3667. :key="sIndex"
  3668. class="noWorksName"
  3669. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3670. >
  3671. <el-tooltip effect="dark" :content="s.student" placement="top">
  3672. <span>{{ s.student }}</span>
  3673. </el-tooltip>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. <div
  3678. v-if="
  3679. tType &&
  3680. ((tType == 2 && sIsOpen == true) ||
  3681. tType == 1 ||
  3682. tType == 4) &&
  3683. tool.tool.indexOf(72) != -1
  3684. "
  3685. class="worksBox"
  3686. >
  3687. <div
  3688. class="zuoyeYulan"
  3689. v-if="
  3690. worksStudent.length &&
  3691. worksStudent[toolIndex].length > 0
  3692. "
  3693. >
  3694. <div class="worksTop">
  3695. <div>作业预览</div>
  3696. <div
  3697. class="corOpen"
  3698. @click="contract(toolIndex)"
  3699. v-if="
  3700. isCloseList[toolIndex].isCloseBoolean &&
  3701. isCloseList[toolIndex].isClose == 0
  3702. "
  3703. >
  3704. 折叠
  3705. </div>
  3706. <div
  3707. class="corOpen"
  3708. @click="contract(toolIndex)"
  3709. v-if="isCloseList[toolIndex].isClose == 1"
  3710. >
  3711. 展开
  3712. </div>
  3713. </div>
  3714. </div>
  3715. <div
  3716. :id="'tool-' + toolIndex"
  3717. :style="{
  3718. height:
  3719. isCloseList[toolIndex].isClose == 1
  3720. ? retrnToolHeight('tool-' + toolIndex)
  3721. : 'auto',
  3722. overflow:
  3723. isCloseList[toolIndex].isClose == 1
  3724. ? 'hidden'
  3725. : 'unset'
  3726. }"
  3727. class="worksDetailBox"
  3728. v-if="
  3729. worksStudent.length &&
  3730. worksStudent[toolIndex].length > 0
  3731. "
  3732. >
  3733. <div
  3734. class="works"
  3735. style="
  3736. width: 200px;
  3737. height: 140px;
  3738. margin: 10px 10px 10px 0;
  3739. border-radius: 15px;
  3740. box-shadow: 0 0 6px 1px #dfdada;
  3741. "
  3742. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3743. :key="wIndex"
  3744. :class="w.type == 1 ? 'isTypeOne' : ''"
  3745. >
  3746. <div class="workImg">
  3747. <!-- <img
  3748. :src="word2"
  3749. @click="downloadFile(w.works)"
  3750. v-if="w.type == 12"
  3751. alt
  3752. /> -->
  3753. <img
  3754. :src="word2"
  3755. @click="
  3756. openCocoFlow(w)
  3757. "
  3758. alt
  3759. />
  3760. <div
  3761. class="answerScore"
  3762. v-if="w.score"
  3763. @click.stop="openScore(w)"
  3764. :class="{
  3765. rightW:
  3766. w.userid == userid ||
  3767. tType == 1 ||
  3768. tType == 4 ||
  3769. w.ateacher == userid
  3770. }"
  3771. >
  3772. {{ JSON.parse(w.score).wScore }}分
  3773. </div>
  3774. <div
  3775. class="answerScore"
  3776. @click.stop="openScore(w)"
  3777. v-else-if="
  3778. courseDetail.userid == userid &&
  3779. courseDetail.state != 5 &&
  3780. chapInfoList[courseType].chapterInfo[0]
  3781. .taskJson[taskCount].eList &&
  3782. chapInfoList[courseType].chapterInfo[0]
  3783. .taskJson[taskCount].eList.length
  3784. "
  3785. :class="{
  3786. rightW:
  3787. w.userid == userid ||
  3788. tType == 1 ||
  3789. tType == 4 ||
  3790. w.ateacher == userid
  3791. }"
  3792. >
  3793. 评分
  3794. </div>
  3795. <img
  3796. class="deleteImg"
  3797. src="../assets/deleteworks.png"
  3798. v-if="
  3799. w.userid == userid || tType == 1 || tType == 4
  3800. "
  3801. @click.stop="deleteWorks(w.wid)"
  3802. alt
  3803. />
  3804. </div>
  3805. <div class="comment" style="min-width: 200px">
  3806. <div class="worksName">
  3807. <div>{{ w.sName }}</div>
  3808. </div>
  3809. <div class="commentList">
  3810. <div class="commentList">
  3811. <div
  3812. class="commentImg"
  3813. @click="
  3814. isLikes(
  3815. w.wid,
  3816. userid,
  3817. 1,
  3818. null,
  3819. w.isLikes,
  3820. w.sName
  3821. )
  3822. "
  3823. >
  3824. <img
  3825. :src="w.isLikes == true ? likes : noLikes"
  3826. alt=""
  3827. />
  3828. </div>
  3829. <div>{{ w.likesCount }}</div>
  3830. </div>
  3831. <div class="commentList" style="margin-right: 15px">
  3832. <div
  3833. class="commentImg"
  3834. @click="commentOther(w, toolIndex, wIndex)"
  3835. >
  3836. <img
  3837. src="../assets/icon/comment/comment.png"
  3838. alt=""
  3839. />
  3840. </div>
  3841. <div>{{ w.commentCount }}</div>
  3842. </div>
  3843. </div>
  3844. </div>
  3845. </div>
  3846. </div>
  3847. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3848. 未提交
  3849. </div>
  3850. <div
  3851. class="noWorksS"
  3852. v-if="noWorksS && noWorksS[toolIndex].length"
  3853. >
  3854. <div
  3855. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3856. :key="sIndex"
  3857. class="noWorksName2"
  3858. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3859. >
  3860. <el-tooltip
  3861. effect="dark"
  3862. :content="s.student"
  3863. placement="top"
  3864. >
  3865. <span>{{ s.student }}</span>
  3866. </el-tooltip>
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div
  3871. v-if="
  3872. tType &&
  3873. tType == 2 &&
  3874. !sIsOpen &&
  3875. tool.tool.indexOf(72) != -1
  3876. "
  3877. class="worksBox"
  3878. >
  3879. <div
  3880. class="zuoyeYulan"
  3881. v-if="workStudent[toolIndex].length > 0"
  3882. >
  3883. <span class="worksTitle">作业预览</span>
  3884. </div>
  3885. <div
  3886. class="worksDetailBox"
  3887. v-if="workStudent[toolIndex].length > 0"
  3888. >
  3889. <div
  3890. class="works"
  3891. style="
  3892. width: 200px;
  3893. height: 140px;
  3894. margin: 10px 10px 10px 0;
  3895. box-shadow: 0 0 6px 1px #dfdada;
  3896. "
  3897. v-for="(w, wIndex) in workStudent[toolIndex]"
  3898. :key="wIndex"
  3899. >
  3900. <div class="workImg">
  3901. <!-- <img
  3902. :src="word2"
  3903. @click="downloadFile(w.works)"
  3904. v-if="w.type == 12"
  3905. alt
  3906. /> -->
  3907. <img
  3908. :src="word2"
  3909. @click="
  3910. openCocoFlow(w)
  3911. "
  3912. alt
  3913. />
  3914. <div
  3915. class="answerScore"
  3916. v-if="w.score"
  3917. @click.stop="openScore(w)"
  3918. :class="{
  3919. rightW:
  3920. w.userid == userid || tType == 1 || tType == 4
  3921. }"
  3922. >
  3923. {{ JSON.parse(w.score).wScore }}分
  3924. </div>
  3925. <div
  3926. class="answerScore"
  3927. @click.stop="openScore(w)"
  3928. v-else-if="courseDetail.userid == userid"
  3929. :class="{
  3930. rightW:
  3931. w.userid == userid || tType == 1 || tType == 4
  3932. }"
  3933. >
  3934. 评分
  3935. </div>
  3936. <img
  3937. class="deleteImg"
  3938. src="../assets/deleteworks.png"
  3939. v-if="
  3940. w.userid == userid || tType == 1 || tType == 4
  3941. "
  3942. @click.stop="deleteWorks(w.wid)"
  3943. alt
  3944. />
  3945. </div>
  3946. <div class="worksName">
  3947. <div>{{ w.sName }}</div>
  3948. </div>
  3949. </div>
  3950. </div>
  3951. </div>
  3952. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3953. <div
  3954. class="zuoyeYulan"
  3955. v-if="
  3956. worksStudent.length &&
  3957. worksStudent[toolIndex].length > 0
  3958. "
  3959. >
  3960. <span class="worksTitle">作业预览</span>
  3961. <div
  3962. class="corOpen"
  3963. @click="contract(toolIndex)"
  3964. v-if="
  3965. (isCloseList[toolIndex].isCloseBoolean) &&
  3966. isCloseList[toolIndex].isClose == 0
  3967. "
  3968. >
  3969. 折叠
  3970. </div>
  3971. <div
  3972. class="corOpen"
  3973. @click="contract(toolIndex)"
  3974. v-if="isCloseList[toolIndex].isClose == 1"
  3975. >
  3976. 展开
  3977. </div>
  3978. </div>
  3979. <div
  3980. :id="'tool-' + toolIndex"
  3981. :style="{
  3982. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3983. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3984. }"
  3985. class="worksDetailBox"
  3986. v-if="
  3987. worksStudent.length &&
  3988. worksStudent[toolIndex].length > 0
  3989. "
  3990. >
  3991. <div
  3992. class="works"
  3993. style="
  3994. width: 200px;
  3995. height: 140px;
  3996. margin: 10px 10px 10px 0;
  3997. border-radius: 15px;
  3998. box-shadow: 0 0 6px 1px #dfdada;
  3999. "
  4000. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4001. :key="wIndex"
  4002. :class="w.type == 1 ? 'isTypeOne' : ''"
  4003. >
  4004. <div class="workImg" v-if="w.type == 0">
  4005. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4006. <img
  4007. :src="w.works"
  4008. @click="previewImg(w.works,w)"
  4009. alt
  4010. />
  4011. <div
  4012. class="answerScore"
  4013. v-if="w.score"
  4014. @click.stop="openScore(w)"
  4015. :class="{
  4016. rightW:
  4017. w.userid == userid ||
  4018. tType == 1 ||
  4019. tType == 4 ||
  4020. w.ateacher == userid,
  4021. }"
  4022. >
  4023. {{ JSON.parse(w.score).wScore }}分
  4024. </div>
  4025. <div
  4026. class="answerScore"
  4027. @click.stop="openScore(w)"
  4028. v-else-if="courseDetail.userid == userid"
  4029. :class="{
  4030. rightW:
  4031. w.userid == userid ||
  4032. tType == 1 ||
  4033. tType == 4 ||
  4034. w.ateacher == userid,
  4035. }"
  4036. >
  4037. 评分
  4038. </div>
  4039. <img
  4040. class="deleteImg"
  4041. src="../assets/deleteworks.png"
  4042. v-if="
  4043. w.userid == userid || tType == 1 || tType == 4
  4044. "
  4045. @click.stop="deleteWorks(w.wid)"
  4046. alt
  4047. />
  4048. </div>
  4049. <div
  4050. class="workImg"
  4051. style="cursor: pointer"
  4052. v-if="w.type == 1"
  4053. >
  4054. <img :src="word" @click="openFile(w.works,w)" alt />
  4055. <!-- @click="openFile(w.works)" -->
  4056. <div
  4057. class="answerScore"
  4058. v-if="w.score"
  4059. @click.stop="openScore(w)"
  4060. :class="{
  4061. rightW:
  4062. w.userid == userid ||
  4063. tType == 1 ||
  4064. tType == 4 ||
  4065. w.ateacher == userid,
  4066. }"
  4067. >
  4068. {{ JSON.parse(w.score).wScore }}分
  4069. </div>
  4070. <div
  4071. class="answerScore"
  4072. @click.stop="openScore(w)"
  4073. v-else-if="courseDetail.userid == userid"
  4074. :class="{
  4075. rightW:
  4076. w.userid == userid ||
  4077. tType == 1 ||
  4078. tType == 4 ||
  4079. w.ateacher == userid,
  4080. }"
  4081. >
  4082. 评分
  4083. </div>
  4084. <img
  4085. class="deleteImg"
  4086. src="../assets/deleteworks.png"
  4087. v-if="
  4088. w.userid == userid || tType == 1 || tType == 4
  4089. "
  4090. @click.stop="deleteWorks(w.wid)"
  4091. alt
  4092. />
  4093. </div>
  4094. <div class="workImg" v-if="w.type == 3">
  4095. <img
  4096. style="cursor: pointer"
  4097. :src="video"
  4098. @click="openVideo(w)"
  4099. alt
  4100. />
  4101. <!-- @click="openVideo(w.works)" -->
  4102. <div
  4103. class="answerScore"
  4104. v-if="w.score"
  4105. @click.stop="openScore(w)"
  4106. :class="{
  4107. rightW:
  4108. w.userid == userid ||
  4109. tType == 1 ||
  4110. tType == 4 ||
  4111. w.ateacher == userid,
  4112. }"
  4113. >
  4114. {{ JSON.parse(w.score).wScore }}分
  4115. </div>
  4116. <div
  4117. class="answerScore"
  4118. @click.stop="openScore(w)"
  4119. v-else-if="courseDetail.userid == userid"
  4120. :class="{
  4121. rightW:
  4122. w.userid == userid ||
  4123. tType == 1 ||
  4124. tType == 4 ||
  4125. w.ateacher == userid,
  4126. }"
  4127. >
  4128. 评分
  4129. </div>
  4130. <img
  4131. class="deleteImg"
  4132. src="../assets/deleteworks.png"
  4133. v-if="
  4134. w.userid == userid || tType == 1 || tType == 4
  4135. "
  4136. @click.stop="deleteWorks(w.wid)"
  4137. alt
  4138. />
  4139. </div>
  4140. <div class="comment" style="min-width: 200px">
  4141. <div class="worksName">
  4142. <div
  4143. style="cursor: pointer"
  4144. @click="
  4145. openSname(w.sName, w.wid, toolIndex, w.userid)
  4146. "
  4147. >
  4148. {{ w.sName }}
  4149. </div>
  4150. </div>
  4151. <div class="commentList">
  4152. <div class="commentList">
  4153. <div
  4154. class="commentImg"
  4155. @click="
  4156. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4157. "
  4158. >
  4159. <img
  4160. :src="w.isLikes == true ? likes : noLikes"
  4161. alt=""
  4162. />
  4163. </div>
  4164. <div>{{ w.likesCount }}</div>
  4165. </div>
  4166. <div class="commentList" style="margin-right: 15px">
  4167. <div
  4168. class="commentImg"
  4169. @click="commentOther(w, toolIndex, wIndex)"
  4170. >
  4171. <img
  4172. src="../assets/icon/comment/comment.png"
  4173. alt=""
  4174. />
  4175. </div>
  4176. <div>{{ w.commentCount }}</div>
  4177. </div>
  4178. </div>
  4179. </div>
  4180. </div>
  4181. </div>
  4182. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4183. 未提交
  4184. </div>
  4185. <div
  4186. class="noWorksS"
  4187. v-if="noWorksS && noWorksS[toolIndex].length"
  4188. >
  4189. <div
  4190. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4191. :key="sIndex"
  4192. class="noWorksName"
  4193. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4194. >
  4195. <el-tooltip effect="dark" :content="s.student" placement="top">
  4196. <span>{{ s.student }}</span>
  4197. </el-tooltip>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. <div
  4202. v-if="
  4203. tType &&
  4204. ((tType == 2 && sIsOpen == true) ||
  4205. tType == 1 ||
  4206. tType == 4) &&
  4207. tool.tool.indexOf(4) != -1 &&
  4208. (tool.askJson[0].answer ||
  4209. tool.askJson[0].answer === 0) &&
  4210. checkJson[toolIndex].length
  4211. "
  4212. class="xuan_right_box"
  4213. >
  4214. <div
  4215. class="tool_right_box"
  4216. v-for="(item, index) in tool.askJson"
  4217. :key="index"
  4218. >
  4219. <div style="width: calc(100% - 30px);">
  4220. <el-tooltip
  4221. effect="light"
  4222. :content="index + 1 + '、' + item.askstitle"
  4223. placement="top"
  4224. popper-class="text_tooltip"
  4225. >
  4226. <div
  4227. style="
  4228. width: calc(100% - 130px);
  4229. display: block;
  4230. white-space: nowrap;
  4231. overflow: hidden;
  4232. text-overflow: ellipsis;
  4233. word-break: break-word;
  4234. cursor: pointer;
  4235. "
  4236. >
  4237. {{ index + 1 + "、" + item.askstitle }}
  4238. </div>
  4239. </el-tooltip>
  4240. </div>
  4241. <div class="right_box_xuan">
  4242. <span>正确率</span>
  4243. <span>{{
  4244. (checkJson[toolIndex][index].right
  4245. ? checkJson[toolIndex][index].right
  4246. : 0) + "%"
  4247. }}</span>
  4248. </div>
  4249. </div>
  4250. </div>
  4251. <div
  4252. class="xuan_right_box"
  4253. style="background: unset; padding: 0 10px"
  4254. v-if="
  4255. tType &&
  4256. ((tType == 2 && sIsOpen == true) ||
  4257. tType == 1 ||
  4258. tType == 4) &&
  4259. tool.tool.indexOf(4) != -1
  4260. "
  4261. >
  4262. <AskStatic
  4263. v-if="
  4264. worksStudent.length &&
  4265. worksStudent[toolIndex].length > 0
  4266. "
  4267. :askJSON="tool"
  4268. :checkJson="checkJson[toolIndex]"
  4269. ></AskStatic>
  4270. </div>
  4271. <div
  4272. v-if="
  4273. tType &&
  4274. ((tType == 2 && sIsOpen == true) ||
  4275. tType == 1 ||
  4276. tType == 4) &&
  4277. tool.tool.indexOf(4) != -1
  4278. "
  4279. class="worksBox"
  4280. >
  4281. <div
  4282. class="zuoyeYulan"
  4283. v-if="
  4284. worksStudent.length &&
  4285. worksStudent[toolIndex].length > 0
  4286. "
  4287. >
  4288. <div class="worksTop">
  4289. <div>作业预览</div>
  4290. <div
  4291. class="corOpen"
  4292. @click="contract(toolIndex)"
  4293. v-if="
  4294. (isCloseList[toolIndex].isCloseBoolean) &&
  4295. isCloseList[toolIndex].isClose == 0
  4296. "
  4297. >
  4298. 折叠
  4299. </div>
  4300. <div
  4301. class="corOpen"
  4302. @click="contract(toolIndex)"
  4303. v-if="isCloseList[toolIndex].isClose == 1"
  4304. >
  4305. 展开
  4306. </div>
  4307. </div>
  4308. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4309. </div>
  4310. <div>
  4311. <div
  4312. :id="'tool-' + toolIndex"
  4313. :style="{
  4314. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4315. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4316. }"
  4317. class="worksDetailBox"
  4318. v-if="
  4319. worksStudent.length &&
  4320. worksStudent[toolIndex].length > 0
  4321. "
  4322. >
  4323. <div
  4324. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4325. :key="wIndex"
  4326. class="isWorksName2"
  4327. @click="
  4328. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4329. "
  4330. >
  4331. {{ w.sName }}
  4332. <img
  4333. class="deleteImg deleteImg2"
  4334. src="../assets/deleteworks.png"
  4335. v-if="
  4336. w.userid == userid || tType == 1 || tType == 4
  4337. "
  4338. @click.stop="deleteWorks(w.wid)"
  4339. alt
  4340. />
  4341. </div>
  4342. <!-- <div class="works" style="
  4343. width: 200px;
  4344. height: 140px;
  4345. border-radius: 10px;
  4346. box-shadow: 0 0 6px 1px #dfdada;
  4347. overflow: hidden;
  4348. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4349. <div class="workImg">
  4350. <img src="../assets/icon/works/noImg.png" @click="
  4351. openTools(
  4352. 4,
  4353. toolIndex,
  4354. taskCount,
  4355. w.works,
  4356. w.sName
  4357. )
  4358. " alt />
  4359. </div>
  4360. <div class="worksName">
  4361. <div>{{ w.sName }}</div>
  4362. <div>{{ w.time }}</div>
  4363. </div>
  4364. </div> -->
  4365. </div>
  4366. </div>
  4367. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4368. 未提交
  4369. </div>
  4370. <div
  4371. class="noWorksS"
  4372. v-if="noWorksS && noWorksS[toolIndex].length"
  4373. >
  4374. <div
  4375. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4376. :key="sIndex"
  4377. class="noWorksName"
  4378. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4379. >
  4380. <el-tooltip effect="dark" :content="s.student" placement="top">
  4381. <span>{{ s.student }}</span>
  4382. </el-tooltip>
  4383. </div>
  4384. </div>
  4385. </div>
  4386. <div
  4387. v-if="
  4388. tType &&
  4389. ((tType == 2 && sIsOpen == true) ||
  4390. tType == 1 ||
  4391. tType == 4) &&
  4392. tool.tool.indexOf(45) != -1 &&
  4393. (tool.testJson.testJson[0].answer ||
  4394. tool.testJson.testJson[0].answer === 0) &&
  4395. checkJson[toolIndex].length
  4396. "
  4397. class="xuan_right_box"
  4398. >
  4399. <div
  4400. class="tool_right_box"
  4401. v-for="(item, index) in tool.testJson.testJson"
  4402. :key="index"
  4403. >
  4404. <div class="right_box_xuan" style="margin-right: 10px">
  4405. <span>正确率</span>
  4406. <span>{{
  4407. (checkJson[toolIndex][index].right
  4408. ? checkJson[toolIndex][index].right
  4409. : 0) + "%"
  4410. }}</span>
  4411. </div>
  4412. <div style="width: calc(100% - 30px);">
  4413. <el-tooltip
  4414. effect="light"
  4415. :content="index + 1 + '、' + item.teststitle"
  4416. placement="top"
  4417. popper-class="text_tooltip"
  4418. >
  4419. <div
  4420. style="
  4421. width: calc(100% - 130px);
  4422. display: flex;
  4423. white-space: nowrap;
  4424. overflow: hidden;
  4425. text-overflow: ellipsis;
  4426. word-break: break-word;
  4427. cursor: pointer;
  4428. "
  4429. class="renderedFor"
  4430. >
  4431. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4432. </div>
  4433. </el-tooltip>
  4434. </div>
  4435. </div>
  4436. </div>
  4437. <div
  4438. class="xuan_right_box"
  4439. style="background: unset; padding: 0 10px; width: 91.5%"
  4440. v-if="
  4441. tType &&
  4442. ((tType == 2 && sIsOpen == true) ||
  4443. tType == 1 ||
  4444. tType == 4) &&
  4445. tool.tool.indexOf(45) != -1
  4446. "
  4447. >
  4448. <AskStatic2
  4449. v-if="
  4450. worksStudent.length &&
  4451. worksStudent[toolIndex].length > 0
  4452. "
  4453. :askJSON="tool"
  4454. :checkJson="checkJson[toolIndex]"
  4455. ></AskStatic2>
  4456. </div>
  4457. <div
  4458. v-if="
  4459. tType &&
  4460. ((tType == 2 && sIsOpen == true) ||
  4461. tType == 1 ||
  4462. tType == 4) &&
  4463. tool.tool.indexOf(45) != -1
  4464. "
  4465. class="worksBox"
  4466. >
  4467. <div
  4468. class="zuoyeYulan"
  4469. v-if="
  4470. worksStudent.length &&
  4471. worksStudent[toolIndex].length > 0
  4472. "
  4473. >
  4474. <div class="worksTop">
  4475. <div>作业预览</div>
  4476. <div
  4477. class="corOpen"
  4478. @click="contract(toolIndex)"
  4479. v-if="
  4480. (isCloseList[toolIndex].isCloseBoolean) &&
  4481. isCloseList[toolIndex].isClose == 0
  4482. "
  4483. >
  4484. 折叠
  4485. </div>
  4486. <div
  4487. class="corOpen"
  4488. @click="contract(toolIndex)"
  4489. v-if="isCloseList[toolIndex].isClose == 1"
  4490. >
  4491. 展开
  4492. </div>
  4493. </div>
  4494. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4495. </div>
  4496. <div>
  4497. <div
  4498. :id="'tool-' + toolIndex"
  4499. :style="{
  4500. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4501. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4502. }"
  4503. class="worksDetailBox"
  4504. v-if="
  4505. worksStudent.length &&
  4506. worksStudent[toolIndex].length > 0
  4507. "
  4508. >
  4509. <div
  4510. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4511. :key="wIndex"
  4512. class="isWorksName2"
  4513. @click="
  4514. openTools(
  4515. 45,
  4516. toolIndex,
  4517. taskCount,
  4518. w.works,
  4519. w.sName
  4520. )
  4521. "
  4522. >
  4523. {{ w.sName }}
  4524. <img
  4525. class="deleteImg deleteImg2"
  4526. src="../assets/deleteworks.png"
  4527. v-if="
  4528. w.userid == userid || tType == 1 || tType == 4
  4529. "
  4530. @click.stop="deleteWorks(w.wid)"
  4531. alt
  4532. />
  4533. </div>
  4534. </div>
  4535. </div>
  4536. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4537. 未提交
  4538. </div>
  4539. <div
  4540. class="noWorksS"
  4541. v-if="noWorksS && noWorksS[toolIndex].length"
  4542. >
  4543. <div
  4544. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4545. :key="sIndex"
  4546. class="noWorksName"
  4547. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4548. >
  4549. <el-tooltip effect="dark" :content="s.student" placement="top">
  4550. <span>{{ s.student }}</span>
  4551. </el-tooltip>
  4552. </div>
  4553. </div>
  4554. </div>
  4555. <div
  4556. v-if="
  4557. tType &&
  4558. ((tType == 2 && sIsOpen == true) ||
  4559. tType == 1 ||
  4560. tType == 4) &&
  4561. tool.tool.indexOf(69) != -1
  4562. "
  4563. class="worksBox"
  4564. >
  4565. <div
  4566. class="zuoyeYulan"
  4567. v-if="
  4568. worksStudent.length &&
  4569. worksStudent[toolIndex].length > 0
  4570. "
  4571. >
  4572. <div class="worksTop">
  4573. <div>作业预览</div>
  4574. <div
  4575. class="corOpen"
  4576. @click="contract(toolIndex)"
  4577. v-if="
  4578. (isCloseList[toolIndex].isCloseBoolean) &&
  4579. isCloseList[toolIndex].isClose == 0
  4580. "
  4581. >
  4582. 折叠
  4583. </div>
  4584. <div
  4585. class="corOpen"
  4586. @click="contract(toolIndex)"
  4587. v-if="isCloseList[toolIndex].isClose == 1"
  4588. >
  4589. 展开
  4590. </div>
  4591. </div>
  4592. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4593. </div>
  4594. <div>
  4595. <div
  4596. :id="'tool-' + toolIndex"
  4597. :style="{
  4598. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4599. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4600. }"
  4601. class="worksDetailBox"
  4602. v-if="
  4603. worksStudent.length &&
  4604. worksStudent[toolIndex].length > 0
  4605. "
  4606. >
  4607. <div
  4608. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4609. :key="wIndex"
  4610. class="isWorksName2"
  4611. style="width: 160px;height: 65px;line-height: 65px;"
  4612. @click="
  4613. openTools(
  4614. 69,
  4615. toolIndex,
  4616. taskCount,
  4617. w.works,
  4618. w.sName,
  4619. w.wid
  4620. )
  4621. "
  4622. >
  4623. {{ w.sName }}
  4624. <img
  4625. class="deleteImg1"
  4626. src="../assets/evaEnglish.png"
  4627. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4628. alt
  4629. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4630. />
  4631. <img
  4632. class="deleteImg deleteImg2"
  4633. src="../assets/deleteworks.png"
  4634. v-if="
  4635. w.userid == userid || tType == 1 || tType == 4
  4636. "
  4637. @click.stop="deleteWorks(w.wid)"
  4638. alt
  4639. />
  4640. </div>
  4641. </div>
  4642. </div>
  4643. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4644. 未提交
  4645. </div>
  4646. <div
  4647. class="noWorksS"
  4648. v-if="noWorksS && noWorksS[toolIndex].length"
  4649. >
  4650. <div
  4651. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4652. :key="sIndex"
  4653. class="noWorksName"
  4654. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4655. >
  4656. <el-tooltip effect="dark" :content="s.student" placement="top">
  4657. <span>{{ s.student }}</span>
  4658. </el-tooltip>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div
  4663. v-if="
  4664. tType &&
  4665. ((tType == 2 && sIsOpen == true) ||
  4666. tType == 1 ||
  4667. tType == 4) &&
  4668. tool.tool.indexOf(15) != -1
  4669. "
  4670. class="worksBox"
  4671. >
  4672. <div
  4673. class="zuoyeYulan"
  4674. v-if="
  4675. (worksStudent.length &&
  4676. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4677. "
  4678. >
  4679. <div class="worksTop">
  4680. <div>作业预览</div>
  4681. <div
  4682. class="corOpen"
  4683. @click="contract(toolIndex)"
  4684. v-if="
  4685. (isCloseList[toolIndex].isCloseBoolean) &&
  4686. isCloseList[toolIndex].isClose == 0
  4687. "
  4688. >
  4689. 折叠
  4690. </div>
  4691. <div
  4692. class="corOpen"
  4693. @click="contract(toolIndex)"
  4694. v-if="isCloseList[toolIndex].isClose == 1"
  4695. >
  4696. 展开
  4697. </div>
  4698. </div>
  4699. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4700. </div>
  4701. <div
  4702. class="group_workBox"
  4703. v-for="(g, gindex) in courseGroup.group"
  4704. :key="gindex"
  4705. >
  4706. <div class="group_box">
  4707. <div class="group_title">
  4708. <el-tooltip
  4709. class="item"
  4710. effect="light"
  4711. :content="g.name"
  4712. placement="top"
  4713. >
  4714. <div class="group_name">{{ g.name }}</div>
  4715. </el-tooltip>
  4716. </div>
  4717. <div
  4718. class="group_work"
  4719. v-if="
  4720. g.works &&
  4721. g.works.length &&
  4722. g.works[toolIndex].length
  4723. "
  4724. >
  4725. <div
  4726. class="works"
  4727. v-for="(w, wIndex) in g.works[toolIndex]"
  4728. :key="wIndex"
  4729. >
  4730. <div
  4731. class="workImg"
  4732. style="
  4733. border-radius: 15px;
  4734. box-shadow: 0px 0px 5px 5px #eee;
  4735. "
  4736. >
  4737. <div
  4738. class="answerBg"
  4739. style="border-radius: 15px 15px 0 0"
  4740. @click="
  4741. commentOther(w, toolIndex, wIndex, null, g.id)
  4742. "
  4743. >
  4744. <div class="answerContent">
  4745. {{ JSON.parse(w.works)[0].answer }}
  4746. </div>
  4747. <div
  4748. class="answerScore"
  4749. v-if="w.score"
  4750. @click.stop="openScore(w)"
  4751. :class="{
  4752. rightW:
  4753. w.userid == userid ||
  4754. tType == 1 ||
  4755. tType == 4,
  4756. }"
  4757. >
  4758. {{ JSON.parse(w.score).wScore }}分
  4759. </div>
  4760. <div
  4761. class="answerScore"
  4762. @click.stop="openScore(w)"
  4763. v-else-if="courseDetail.userid == userid"
  4764. :class="{
  4765. rightW:
  4766. w.userid == userid ||
  4767. tType == 1 ||
  4768. tType == 4,
  4769. }"
  4770. >
  4771. 评分
  4772. </div>
  4773. <img
  4774. class="deleteImg"
  4775. src="../assets/deleteworks.png"
  4776. v-if="
  4777. w.userid == userid ||
  4778. tType == 1 ||
  4779. tType == 4
  4780. "
  4781. @click.stop="deleteWorks(w.wid)"
  4782. alt
  4783. />
  4784. </div>
  4785. <div class="comment">
  4786. <div class="worksName">
  4787. <div>{{ w.sName }}</div>
  4788. </div>
  4789. <div class="commentList">
  4790. <div
  4791. class="commentImg"
  4792. @click="
  4793. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4794. "
  4795. >
  4796. <img
  4797. :src="w.isLikes == true ? likes : noLikes"
  4798. alt=""
  4799. />
  4800. </div>
  4801. <div>{{ w.likesCount }}</div>
  4802. </div>
  4803. <div
  4804. class="commentList"
  4805. style="margin-right: 15px"
  4806. >
  4807. <div
  4808. class="commentImg"
  4809. @click="
  4810. commentOther(
  4811. w,
  4812. toolIndex,
  4813. wIndex,
  4814. null,
  4815. g.id
  4816. )
  4817. "
  4818. >
  4819. <img
  4820. src="../assets/icon/comment/comment.png"
  4821. alt=""
  4822. />
  4823. </div>
  4824. <div>{{ w.commentCount }}</div>
  4825. </div>
  4826. </div>
  4827. </div>
  4828. </div>
  4829. </div>
  4830. <div class="group_work" v-else>暂无提交作业</div>
  4831. </div>
  4832. </div>
  4833. <div
  4834. :id="'tool-' + toolIndex"
  4835. :style="{
  4836. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4837. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4838. }"
  4839. class="worksDetailBox"
  4840. v-if="
  4841. worksStudent.length &&
  4842. worksStudent[toolIndex].length > 0
  4843. "
  4844. >
  4845. <div
  4846. class="works"
  4847. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4848. :key="wIndex"
  4849. >
  4850. <div
  4851. class="workImg"
  4852. style="
  4853. border-radius: 15px;
  4854. box-shadow: 0px 0px 5px 5px #eee;
  4855. "
  4856. >
  4857. <!-- <img
  4858. src="../assets/icon/works/noImg.png"
  4859. @click="openTools(15, toolIndex, taskCount, w.works)"
  4860. alt=""
  4861. />-->
  4862. <div
  4863. class="answerBg"
  4864. style="border-radius: 15px 15px 0 0"
  4865. @click="commentOther(w, toolIndex, wIndex)"
  4866. >
  4867. <!-- <div>{{ w.sName }}</div> -->
  4868. <div class="answerContent">
  4869. {{ JSON.parse(w.works)[0].answer }}
  4870. </div>
  4871. <div
  4872. class="answerScore"
  4873. v-if="w.score"
  4874. @click.stop="openScore(w)"
  4875. :class="{
  4876. rightW:
  4877. w.userid == userid ||
  4878. tType == 1 ||
  4879. tType == 4,
  4880. }"
  4881. >
  4882. {{ JSON.parse(w.score).wScore }}分
  4883. </div>
  4884. <div
  4885. class="answerScore"
  4886. @click.stop="openScore(w)"
  4887. v-else-if="courseDetail.userid == userid"
  4888. :class="{
  4889. rightW:
  4890. w.userid == userid ||
  4891. tType == 1 ||
  4892. tType == 4,
  4893. }"
  4894. >
  4895. 评分
  4896. </div>
  4897. <img
  4898. class="deleteImg"
  4899. src="../assets/deleteworks.png"
  4900. v-if="
  4901. w.userid == userid || tType == 1 || tType == 4
  4902. "
  4903. @click.stop="deleteWorks(w.wid)"
  4904. alt
  4905. />
  4906. </div>
  4907. <div class="comment">
  4908. <div class="worksName">
  4909. <div>{{ w.sName }}</div>
  4910. </div>
  4911. <div class="commentList">
  4912. <div
  4913. class="commentImg"
  4914. @click="
  4915. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4916. "
  4917. >
  4918. <img
  4919. :src="w.isLikes == true ? likes : noLikes"
  4920. alt=""
  4921. />
  4922. </div>
  4923. <div>{{ w.likesCount }}</div>
  4924. </div>
  4925. <div class="commentList" style="margin-right: 15px">
  4926. <div
  4927. class="commentImg"
  4928. @click="commentOther(w, toolIndex, wIndex)"
  4929. >
  4930. <img
  4931. src="../assets/icon/comment/comment.png"
  4932. alt=""
  4933. />
  4934. </div>
  4935. <div>{{ w.commentCount }}</div>
  4936. </div>
  4937. </div>
  4938. </div>
  4939. </div>
  4940. </div>
  4941. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4942. 未提交
  4943. </div>
  4944. <div
  4945. class="noWorksS"
  4946. v-if="noWorksS && noWorksS[toolIndex].length"
  4947. >
  4948. <div
  4949. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4950. :key="sIndex"
  4951. class="noWorksName"
  4952. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4953. >
  4954. <el-tooltip effect="dark" :content="s.student" placement="top">
  4955. <span>{{ s.student }}</span>
  4956. </el-tooltip>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. <div
  4961. v-if="
  4962. tType &&
  4963. ((tType == 2 && sIsOpen == true) ||
  4964. tType == 1 ||
  4965. tType == 4) &&
  4966. tool.tool.indexOf(1) != -1
  4967. "
  4968. class="worksBox"
  4969. >
  4970. <div
  4971. class="zuoyeYulan"
  4972. v-if="
  4973. (worksStudent.length &&
  4974. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4975. "
  4976. >
  4977. <div class="worksTop">
  4978. <div>作业预览</div>
  4979. <div
  4980. class="corOpen"
  4981. @click="contract(toolIndex)"
  4982. v-if="
  4983. (isCloseList[toolIndex].isCloseBoolean) &&
  4984. isCloseList[toolIndex].isClose == 0
  4985. "
  4986. >
  4987. 折叠
  4988. </div>
  4989. <div
  4990. class="corOpen"
  4991. @click="contract(toolIndex)"
  4992. v-if="isCloseList[toolIndex].isClose == 1"
  4993. >
  4994. 展开
  4995. </div>
  4996. </div>
  4997. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4998. </div>
  4999. <div
  5000. class="group_workBox"
  5001. v-for="(g, gindex) in courseGroup.group"
  5002. :key="gindex"
  5003. >
  5004. <div class="group_box">
  5005. <div class="group_title">
  5006. <el-tooltip
  5007. class="item"
  5008. effect="light"
  5009. :content="g.name"
  5010. placement="top"
  5011. >
  5012. <div class="group_name">{{ g.name }}</div>
  5013. </el-tooltip>
  5014. </div>
  5015. <div
  5016. class="group_work"
  5017. v-if="
  5018. g.works &&
  5019. g.works.length &&
  5020. g.works[toolIndex].length
  5021. "
  5022. >
  5023. <div
  5024. class="works"
  5025. style="
  5026. width: 200px;
  5027. height: 140px;
  5028. margin: 10px 10px 10px 0;
  5029. border-radius: 15px;
  5030. box-shadow: 0 0 6px 1px #dfdada;
  5031. "
  5032. v-for="(w, wIndex) in g.works[toolIndex]"
  5033. :key="wIndex"
  5034. :class="w.type == 1 ? 'isTypeOne' : ''"
  5035. >
  5036. <div class="workImg">
  5037. <img
  5038. :src="w.works"
  5039. @click="previewImg(w.works,w)"
  5040. alt
  5041. />
  5042. <div
  5043. class="answerScore"
  5044. v-if="w.score"
  5045. @click.stop="openScore(w)"
  5046. :class="{
  5047. rightW:
  5048. w.userid == userid ||
  5049. tType == 1 ||
  5050. tType == 4,
  5051. }"
  5052. >
  5053. {{ JSON.parse(w.score).wScore }}分
  5054. </div>
  5055. <div
  5056. class="answerScore"
  5057. @click.stop="openScore(w)"
  5058. v-else-if="courseDetail.userid == userid"
  5059. :class="{
  5060. rightW:
  5061. w.userid == userid ||
  5062. tType == 1 ||
  5063. tType == 4,
  5064. }"
  5065. >
  5066. 评分
  5067. </div>
  5068. <img
  5069. class="deleteImg"
  5070. src="../assets/deleteworks.png"
  5071. v-if="
  5072. w.userid == userid || tType == 1 || tType == 4
  5073. "
  5074. @click.stop="deleteWorks(w.wid)"
  5075. alt
  5076. />
  5077. </div>
  5078. <div class="comment" style="min-width: 200px">
  5079. <div class="worksName">
  5080. <div>{{ w.sName }}</div>
  5081. </div>
  5082. <div class="commentList">
  5083. <div class="commentList">
  5084. <div
  5085. class="commentImg"
  5086. @click="
  5087. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5088. "
  5089. >
  5090. <img
  5091. :src="w.isLikes == true ? likes : noLikes"
  5092. alt=""
  5093. />
  5094. </div>
  5095. <div>{{ w.likesCount }}</div>
  5096. </div>
  5097. <div
  5098. class="commentList"
  5099. style="margin-right: 15px"
  5100. >
  5101. <div
  5102. class="commentImg"
  5103. @click="
  5104. commentOther(
  5105. w,
  5106. toolIndex,
  5107. wIndex,
  5108. null,
  5109. g.id
  5110. )
  5111. "
  5112. >
  5113. <img
  5114. src="../assets/icon/comment/comment.png"
  5115. alt=""
  5116. />
  5117. </div>
  5118. <div>{{ w.commentCount }}</div>
  5119. </div>
  5120. </div>
  5121. </div>
  5122. </div>
  5123. </div>
  5124. <div class="group_work" v-else>暂无提交作业</div>
  5125. </div>
  5126. </div>
  5127. <div
  5128. :id="'tool-' + toolIndex"
  5129. :style="{
  5130. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5131. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5132. }"
  5133. class="worksDetailBox"
  5134. v-if="
  5135. worksStudent.length &&
  5136. worksStudent[toolIndex].length > 0
  5137. "
  5138. >
  5139. <div
  5140. class="works"
  5141. style="
  5142. width: 200px;
  5143. height: 140px;
  5144. margin: 10px 10px 10px 0;
  5145. border-radius: 15px;
  5146. box-shadow: 0 0 6px 1px #dfdada;
  5147. "
  5148. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5149. :key="wIndex"
  5150. >
  5151. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5152. <div class="workImg">
  5153. <img
  5154. :src="w.works"
  5155. @click="previewImg(w.works,w)"
  5156. alt
  5157. />
  5158. <div
  5159. class="answerScore"
  5160. v-if="w.score"
  5161. @click.stop="openScore(w)"
  5162. :class="{
  5163. rightW:
  5164. w.userid == userid || tType == 1 || tType == 4,
  5165. }"
  5166. >
  5167. {{ JSON.parse(w.score).wScore }}分
  5168. </div>
  5169. <div
  5170. class="answerScore"
  5171. @click.stop="openScore(w)"
  5172. v-else-if="courseDetail.userid == userid"
  5173. :class="{
  5174. rightW:
  5175. w.userid == userid || tType == 1 || tType == 4,
  5176. }"
  5177. >
  5178. 评分
  5179. </div>
  5180. <img
  5181. class="deleteImg"
  5182. src="../assets/deleteworks.png"
  5183. v-if="
  5184. w.userid == userid || tType == 1 || tType == 4
  5185. "
  5186. @click.stop="deleteWorks(w.wid)"
  5187. alt
  5188. />
  5189. </div>
  5190. <div class="comment" style="min-width: 200px">
  5191. <div class="worksName">
  5192. <div>{{ w.sName }}</div>
  5193. </div>
  5194. <div class="commentList">
  5195. <div class="commentList">
  5196. <div
  5197. class="commentImg"
  5198. @click="
  5199. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5200. "
  5201. >
  5202. <img
  5203. :src="w.isLikes == true ? likes : noLikes"
  5204. alt=""
  5205. />
  5206. </div>
  5207. <div>{{ w.likesCount }}</div>
  5208. </div>
  5209. <div class="commentList" style="margin-right: 15px">
  5210. <div
  5211. class="commentImg"
  5212. @click="commentOther(w, toolIndex, wIndex)"
  5213. >
  5214. <img
  5215. src="../assets/icon/comment/comment.png"
  5216. alt=""
  5217. />
  5218. </div>
  5219. <div>{{ w.commentCount }}</div>
  5220. </div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5226. 未提交
  5227. </div>
  5228. <div
  5229. class="noWorksS"
  5230. v-if="noWorksS && noWorksS[toolIndex].length"
  5231. >
  5232. <div
  5233. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5234. :key="sIndex"
  5235. class="noWorksName"
  5236. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5237. >
  5238. <el-tooltip effect="dark" :content="s.student" placement="top">
  5239. <span>{{ s.student }}</span>
  5240. </el-tooltip>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. <div
  5245. v-if="
  5246. tType &&
  5247. ((tType == 2 && sIsOpen == true) ||
  5248. tType == 1 ||
  5249. tType == 4) &&
  5250. tool.tool.indexOf(3) != -1
  5251. "
  5252. class="worksBox"
  5253. >
  5254. <div
  5255. class="zuoyeYulan"
  5256. v-if="
  5257. (worksStudent.length &&
  5258. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5259. "
  5260. >
  5261. <div class="worksTop">
  5262. <div>作业预览</div>
  5263. <div
  5264. class="corOpen"
  5265. @click="contract(toolIndex)"
  5266. v-if="
  5267. (isCloseList[toolIndex].isCloseBoolean) &&
  5268. isCloseList[toolIndex].isClose == 0
  5269. "
  5270. >
  5271. 折叠
  5272. </div>
  5273. <div
  5274. class="corOpen"
  5275. @click="contract(toolIndex)"
  5276. v-if="isCloseList[toolIndex].isClose == 1"
  5277. >
  5278. 展开
  5279. </div>
  5280. </div>
  5281. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5282. </div>
  5283. <div
  5284. class="group_workBox"
  5285. v-for="(g, gindex) in courseGroup.group"
  5286. :key="gindex"
  5287. >
  5288. <div class="group_box">
  5289. <div class="group_title">
  5290. <el-tooltip
  5291. class="item"
  5292. effect="light"
  5293. :content="g.name"
  5294. placement="top"
  5295. >
  5296. <div class="group_name">{{ g.name }}</div>
  5297. </el-tooltip>
  5298. </div>
  5299. <div
  5300. class="group_work"
  5301. v-if="
  5302. g.works &&
  5303. g.works.length &&
  5304. g.works[toolIndex].length
  5305. "
  5306. >
  5307. <div
  5308. class="works"
  5309. style="
  5310. width: 200px;
  5311. height: 140px;
  5312. margin: 10px 10px 10px 0;
  5313. border-radius: 15px;
  5314. box-shadow: 0 0 6px 1px #dfdada;
  5315. "
  5316. v-for="(w, wIndex) in g.works[toolIndex]"
  5317. :key="wIndex"
  5318. :class="w.type == 1 ? 'isTypeOne' : ''"
  5319. >
  5320. <div class="workImg">
  5321. <img
  5322. :src="w.works"
  5323. @click="previewImg(w.works,w)"
  5324. alt
  5325. />
  5326. <div
  5327. class="answerScore"
  5328. v-if="w.score"
  5329. @click.stop="openScore(w)"
  5330. :class="{
  5331. rightW:
  5332. w.userid == userid ||
  5333. tType == 1 ||
  5334. tType == 4,
  5335. }"
  5336. >
  5337. {{ JSON.parse(w.score).wScore }}分
  5338. </div>
  5339. <div
  5340. class="answerScore"
  5341. @click.stop="openScore(w)"
  5342. v-else-if="courseDetail.userid == userid"
  5343. :class="{
  5344. rightW:
  5345. w.userid == userid ||
  5346. tType == 1 ||
  5347. tType == 4,
  5348. }"
  5349. >
  5350. 评分
  5351. </div>
  5352. <img
  5353. class="deleteImg"
  5354. src="../assets/deleteworks.png"
  5355. v-if="
  5356. w.userid == userid || tType == 1 || tType == 4
  5357. "
  5358. @click.stop="deleteWorks(w.wid)"
  5359. alt
  5360. />
  5361. </div>
  5362. <div class="comment" style="min-width: 200px">
  5363. <div class="worksName">
  5364. <div>{{ w.sName }}</div>
  5365. </div>
  5366. <div class="commentList">
  5367. <div class="commentList">
  5368. <div
  5369. class="commentImg"
  5370. @click="
  5371. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5372. "
  5373. >
  5374. <img
  5375. :src="w.isLikes == true ? likes : noLikes"
  5376. alt=""
  5377. />
  5378. </div>
  5379. <div>{{ w.likesCount }}</div>
  5380. </div>
  5381. <div
  5382. class="commentList"
  5383. style="margin-right: 15px"
  5384. >
  5385. <div
  5386. class="commentImg"
  5387. @click="
  5388. commentOther(
  5389. w,
  5390. toolIndex,
  5391. wIndex,
  5392. null,
  5393. g.id
  5394. )
  5395. "
  5396. >
  5397. <img
  5398. src="../assets/icon/comment/comment.png"
  5399. alt=""
  5400. />
  5401. </div>
  5402. <div>{{ w.commentCount }}</div>
  5403. </div>
  5404. </div>
  5405. </div>
  5406. </div>
  5407. </div>
  5408. <div class="group_work" v-else>暂无提交作业</div>
  5409. </div>
  5410. </div>
  5411. <div
  5412. :id="'tool-' + toolIndex"
  5413. :style="{
  5414. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5415. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5416. }"
  5417. class="worksDetailBox"
  5418. v-if="
  5419. worksStudent.length &&
  5420. worksStudent[toolIndex].length > 0
  5421. "
  5422. >
  5423. <div
  5424. class="works"
  5425. style="
  5426. width: 200px;
  5427. height: 140px;
  5428. margin: 10px 10px 10px 0;
  5429. border-radius: 15px;
  5430. box-shadow: 0 0 6px 1px #dfdada;
  5431. "
  5432. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5433. :key="wIndex"
  5434. >
  5435. <!-- @click="previewImg(w.works)" -->
  5436. <div class="workImg">
  5437. <img
  5438. :src="w.works"
  5439. @click="previewImg(w.works,w)"
  5440. alt
  5441. />
  5442. <div
  5443. class="answerScore"
  5444. v-if="w.score"
  5445. @click.stop="openScore(w)"
  5446. :class="{
  5447. rightW:
  5448. w.userid == userid || tType == 1 || tType == 4,
  5449. }"
  5450. >
  5451. {{ JSON.parse(w.score).wScore }}分
  5452. </div>
  5453. <div
  5454. class="answerScore"
  5455. @click.stop="openScore(w)"
  5456. v-else-if="courseDetail.userid == userid"
  5457. :class="{
  5458. rightW:
  5459. w.userid == userid || tType == 1 || tType == 4,
  5460. }"
  5461. >
  5462. 评分
  5463. </div>
  5464. <img
  5465. class="deleteImg"
  5466. src="../assets/deleteworks.png"
  5467. v-if="
  5468. w.userid == userid || tType == 1 || tType == 4
  5469. "
  5470. @click.stop="deleteWorks(w.wid)"
  5471. alt
  5472. />
  5473. </div>
  5474. <div class="comment" style="min-width: 200px">
  5475. <div class="worksName">
  5476. <div>{{ w.sName }}</div>
  5477. </div>
  5478. <div class="commentList">
  5479. <div class="commentList">
  5480. <div
  5481. class="commentImg"
  5482. @click="
  5483. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5484. "
  5485. >
  5486. <img
  5487. :src="w.isLikes == true ? likes : noLikes"
  5488. alt=""
  5489. />
  5490. </div>
  5491. <div>{{ w.likesCount }}</div>
  5492. </div>
  5493. <div class="commentList" style="margin-right: 15px">
  5494. <div
  5495. class="commentImg"
  5496. @click="commentOther(w, toolIndex, wIndex)"
  5497. >
  5498. <img
  5499. src="../assets/icon/comment/comment.png"
  5500. alt=""
  5501. />
  5502. </div>
  5503. <div>{{ w.commentCount }}</div>
  5504. </div>
  5505. </div>
  5506. </div>
  5507. </div>
  5508. </div>
  5509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5510. 未提交
  5511. </div>
  5512. <div
  5513. class="noWorksS"
  5514. v-if="noWorksS && noWorksS[toolIndex].length"
  5515. >
  5516. <div
  5517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5518. :key="sIndex"
  5519. class="noWorksName"
  5520. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5521. >
  5522. <el-tooltip effect="dark" :content="s.student" placement="top">
  5523. <span>{{ s.student }}</span>
  5524. </el-tooltip>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. <div
  5529. v-if="
  5530. tType &&
  5531. ((tType == 2 && sIsOpen == true) ||
  5532. tType == 1 ||
  5533. tType == 4) &&
  5534. tool.tool.indexOf(6) != -1
  5535. "
  5536. class="worksBox"
  5537. >
  5538. <div
  5539. class="zuoyeYulan"
  5540. v-if="
  5541. (worksStudent.length &&
  5542. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5543. "
  5544. >
  5545. <div class="worksTop">
  5546. <div>作业预览</div>
  5547. <div
  5548. class="corOpen"
  5549. @click="contract(toolIndex)"
  5550. v-if="
  5551. (isCloseList[toolIndex].isCloseBoolean) &&
  5552. isCloseList[toolIndex].isClose == 0
  5553. "
  5554. >
  5555. 折叠
  5556. </div>
  5557. <div
  5558. class="corOpen"
  5559. @click="contract(toolIndex)"
  5560. v-if="isCloseList[toolIndex].isClose == 1"
  5561. >
  5562. 展开
  5563. </div>
  5564. </div>
  5565. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5566. </div>
  5567. <div
  5568. class="group_workBox"
  5569. v-for="(g, gindex) in courseGroup.group"
  5570. :key="gindex"
  5571. >
  5572. <div class="group_box">
  5573. <div class="group_title">
  5574. <el-tooltip
  5575. class="item"
  5576. effect="light"
  5577. :content="g.name"
  5578. placement="top"
  5579. >
  5580. <div class="group_name">{{ g.name }}</div>
  5581. </el-tooltip>
  5582. </div>
  5583. <div
  5584. class="group_work"
  5585. v-if="
  5586. g.works &&
  5587. g.works.length &&
  5588. g.works[toolIndex].length
  5589. "
  5590. >
  5591. <div
  5592. class="works"
  5593. style="
  5594. width: 200px;
  5595. height: 140px;
  5596. margin: 10px 10px 10px 0;
  5597. border-radius: 15px;
  5598. box-shadow: 0 0 6px 1px #dfdada;
  5599. "
  5600. v-for="(w, wIndex) in g.works[toolIndex]"
  5601. :key="wIndex"
  5602. :class="w.type == 1 ? 'isTypeOne' : ''"
  5603. >
  5604. <div class="workImg">
  5605. <img
  5606. :src="w.works"
  5607. @click="previewImg(w.works,w)"
  5608. alt
  5609. />
  5610. <div
  5611. class="answerScore"
  5612. v-if="w.score"
  5613. @click.stop="openScore(w)"
  5614. :class="{
  5615. rightW:
  5616. w.userid == userid ||
  5617. tType == 1 ||
  5618. tType == 4,
  5619. }"
  5620. >
  5621. {{ JSON.parse(w.score).wScore }}分
  5622. </div>
  5623. <div
  5624. class="answerScore"
  5625. @click.stop="openScore(w)"
  5626. v-else-if="courseDetail.userid == userid"
  5627. :class="{
  5628. rightW:
  5629. w.userid == userid ||
  5630. tType == 1 ||
  5631. tType == 4,
  5632. }"
  5633. >
  5634. 评分
  5635. </div>
  5636. <img
  5637. class="deleteImg"
  5638. src="../assets/deleteworks.png"
  5639. v-if="
  5640. w.userid == userid || tType == 1 || tType == 4
  5641. "
  5642. @click.stop="deleteWorks(w.wid)"
  5643. alt
  5644. />
  5645. </div>
  5646. <div class="comment" style="min-width: 200px">
  5647. <div class="worksName">
  5648. <div>{{ w.sName }}</div>
  5649. </div>
  5650. <div class="commentList">
  5651. <div class="commentList">
  5652. <div
  5653. class="commentImg"
  5654. @click="
  5655. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5656. "
  5657. >
  5658. <img
  5659. :src="w.isLikes == true ? likes : noLikes"
  5660. alt=""
  5661. />
  5662. </div>
  5663. <div>{{ w.likesCount }}</div>
  5664. </div>
  5665. <div
  5666. class="commentList"
  5667. style="margin-right: 15px"
  5668. >
  5669. <div
  5670. class="commentImg"
  5671. @click="
  5672. commentOther(
  5673. w,
  5674. toolIndex,
  5675. wIndex,
  5676. null,
  5677. g.id
  5678. )
  5679. "
  5680. >
  5681. <img
  5682. src="../assets/icon/comment/comment.png"
  5683. alt=""
  5684. />
  5685. </div>
  5686. <div>{{ w.commentCount }}</div>
  5687. </div>
  5688. </div>
  5689. </div>
  5690. </div>
  5691. </div>
  5692. <div class="group_work" v-else>暂无提交作业</div>
  5693. </div>
  5694. </div>
  5695. <div
  5696. :id="'tool-' + toolIndex"
  5697. :style="{
  5698. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5699. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5700. }"
  5701. class="worksDetailBox"
  5702. v-if="
  5703. worksStudent.length &&
  5704. worksStudent[toolIndex].length > 0
  5705. "
  5706. >
  5707. <div
  5708. class="works"
  5709. style="
  5710. width: 200px;
  5711. height: 140px;
  5712. margin: 10px 10px 10px 0;
  5713. border-radius: 15px;
  5714. box-shadow: 0 0 6px 1px #dfdada;
  5715. "
  5716. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5717. :key="wIndex"
  5718. >
  5719. <!-- @click="previewImg(w.works)" -->
  5720. <div class="workImg">
  5721. <img
  5722. :src="w.works"
  5723. @click="previewImg(w.works,w)"
  5724. alt
  5725. />
  5726. <div
  5727. class="answerScore"
  5728. v-if="w.score"
  5729. @click.stop="openScore(w)"
  5730. :class="{
  5731. rightW:
  5732. w.userid == userid || tType == 1 || tType == 4,
  5733. }"
  5734. >
  5735. {{ JSON.parse(w.score).wScore }}分
  5736. </div>
  5737. <div
  5738. class="answerScore"
  5739. @click.stop="openScore(w)"
  5740. v-else-if="courseDetail.userid == userid"
  5741. :class="{
  5742. rightW:
  5743. w.userid == userid || tType == 1 || tType == 4,
  5744. }"
  5745. >
  5746. 评分
  5747. </div>
  5748. <img
  5749. class="deleteImg"
  5750. src="../assets/deleteworks.png"
  5751. v-if="
  5752. w.userid == userid || tType == 1 || tType == 4
  5753. "
  5754. @click.stop="deleteWorks(w.wid)"
  5755. alt
  5756. />
  5757. </div>
  5758. <div class="comment" style="min-width: 200px">
  5759. <div class="worksName">
  5760. <div>{{ w.sName }}</div>
  5761. </div>
  5762. <div class="commentList">
  5763. <div class="commentList">
  5764. <div
  5765. class="commentImg"
  5766. @click="
  5767. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5768. "
  5769. >
  5770. <img
  5771. :src="w.isLikes == true ? likes : noLikes"
  5772. alt=""
  5773. />
  5774. </div>
  5775. <div>{{ w.likesCount }}</div>
  5776. </div>
  5777. <div class="commentList" style="margin-right: 15px">
  5778. <div
  5779. class="commentImg"
  5780. @click="commentOther(w, toolIndex, wIndex)"
  5781. >
  5782. <img
  5783. src="../assets/icon/comment/comment.png"
  5784. alt=""
  5785. />
  5786. </div>
  5787. <div>{{ w.commentCount }}</div>
  5788. </div>
  5789. </div>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5794. 未提交
  5795. </div>
  5796. <div
  5797. class="noWorksS"
  5798. v-if="noWorksS && noWorksS[toolIndex].length"
  5799. >
  5800. <div
  5801. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5802. :key="sIndex"
  5803. class="noWorksName"
  5804. >
  5805. <el-tooltip effect="dark" :content="s.student" placement="top">
  5806. <span>{{ s.student }}</span>
  5807. </el-tooltip>
  5808. </div>
  5809. </div>
  5810. </div>
  5811. <div
  5812. v-if="
  5813. tType &&
  5814. ((tType == 2 && sIsOpen == true) ||
  5815. tType == 1 ||
  5816. tType == 4) &&
  5817. tool.tool.indexOf(7) != -1
  5818. "
  5819. class="worksBox"
  5820. >
  5821. <div
  5822. class="zuoyeYulan"
  5823. v-if="
  5824. (worksStudent.length &&
  5825. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5826. "
  5827. >
  5828. <div class="worksTop">
  5829. <div>作业预览</div>
  5830. <div
  5831. class="corOpen"
  5832. @click="contract(toolIndex)"
  5833. v-if="
  5834. (isCloseList[toolIndex].isCloseBoolean) &&
  5835. isCloseList[toolIndex].isClose == 0
  5836. "
  5837. >
  5838. 折叠
  5839. </div>
  5840. <div
  5841. class="corOpen"
  5842. @click="contract(toolIndex)"
  5843. v-if="isCloseList[toolIndex].isClose == 1"
  5844. >
  5845. 展开
  5846. </div>
  5847. </div>
  5848. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5849. </div>
  5850. <div
  5851. class="group_workBox"
  5852. v-for="(g, gindex) in courseGroup.group"
  5853. :key="gindex"
  5854. >
  5855. <div class="group_box">
  5856. <div class="group_title">
  5857. <el-tooltip
  5858. class="item"
  5859. effect="light"
  5860. :content="g.name"
  5861. placement="top"
  5862. >
  5863. <div class="group_name">{{ g.name }}</div>
  5864. </el-tooltip>
  5865. </div>
  5866. <div
  5867. class="group_work"
  5868. v-if="
  5869. g.works &&
  5870. g.works.length &&
  5871. g.works[toolIndex].length
  5872. "
  5873. >
  5874. <div
  5875. class="works"
  5876. style="
  5877. width: 200px;
  5878. height: 140px;
  5879. margin: 10px 10px 10px 0;
  5880. border-radius: 15px;
  5881. box-shadow: 0 0 6px 1px #dfdada;
  5882. "
  5883. v-for="(w, wIndex) in g.works[toolIndex]"
  5884. :key="wIndex"
  5885. :class="w.type == 1 ? 'isTypeOne' : ''"
  5886. >
  5887. <div class="workImg">
  5888. <img
  5889. :src="w.works"
  5890. @click="previewImg(w.works,w)"
  5891. alt
  5892. />
  5893. <div
  5894. class="answerScore"
  5895. v-if="w.score"
  5896. @click.stop="openScore(w)"
  5897. :class="{
  5898. rightW:
  5899. w.userid == userid ||
  5900. tType == 1 ||
  5901. tType == 4,
  5902. }"
  5903. >
  5904. {{ JSON.parse(w.score).wScore }}分
  5905. </div>
  5906. <div
  5907. class="answerScore"
  5908. @click.stop="openScore(w)"
  5909. v-else-if="courseDetail.userid == userid"
  5910. :class="{
  5911. rightW:
  5912. w.userid == userid ||
  5913. tType == 1 ||
  5914. tType == 4,
  5915. }"
  5916. >
  5917. 评分
  5918. </div>
  5919. <img
  5920. class="deleteImg"
  5921. src="../assets/deleteworks.png"
  5922. v-if="
  5923. w.userid == userid || tType == 1 || tType == 4
  5924. "
  5925. @click.stop="deleteWorks(w.wid)"
  5926. alt
  5927. />
  5928. </div>
  5929. <div class="comment" style="min-width: 200px">
  5930. <div class="worksName">
  5931. <div>{{ w.sName }}</div>
  5932. </div>
  5933. <div class="commentList">
  5934. <div class="commentList">
  5935. <div
  5936. class="commentImg"
  5937. @click="
  5938. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5939. "
  5940. >
  5941. <img
  5942. :src="w.isLikes == true ? likes : noLikes"
  5943. alt=""
  5944. />
  5945. </div>
  5946. <div>{{ w.likesCount }}</div>
  5947. </div>
  5948. <div
  5949. class="commentList"
  5950. style="margin-right: 15px"
  5951. >
  5952. <div
  5953. class="commentImg"
  5954. @click="
  5955. commentOther(
  5956. w,
  5957. toolIndex,
  5958. wIndex,
  5959. null,
  5960. g.id
  5961. )
  5962. "
  5963. >
  5964. <img
  5965. src="../assets/icon/comment/comment.png"
  5966. alt=""
  5967. />
  5968. </div>
  5969. <div>{{ w.commentCount }}</div>
  5970. </div>
  5971. </div>
  5972. </div>
  5973. </div>
  5974. </div>
  5975. <div class="group_work" v-else>暂无提交作业</div>
  5976. </div>
  5977. </div>
  5978. <div
  5979. :id="'tool-' + toolIndex"
  5980. :style="{
  5981. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5982. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5983. }"
  5984. class="worksDetailBox"
  5985. v-if="
  5986. worksStudent.length &&
  5987. worksStudent[toolIndex].length > 0
  5988. "
  5989. >
  5990. <div
  5991. class="works"
  5992. style="
  5993. width: 200px;
  5994. height: 140px;
  5995. margin: 10px 10px 10px 0;
  5996. border-radius: 15px;
  5997. box-shadow: 0 0 6px 1px #dfdada;
  5998. "
  5999. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6000. :key="wIndex"
  6001. >
  6002. <!-- @click="previewImg(w.works)" -->
  6003. <div class="workImg">
  6004. <img
  6005. :src="w.works"
  6006. @click="previewImg(w.works,w)"
  6007. alt
  6008. />
  6009. <div
  6010. class="answerScore"
  6011. v-if="w.score"
  6012. @click.stop="openScore(w)"
  6013. :class="{
  6014. rightW:
  6015. w.userid == userid || tType == 1 || tType == 4,
  6016. }"
  6017. >
  6018. {{ JSON.parse(w.score).wScore }}分
  6019. </div>
  6020. <div
  6021. class="answerScore"
  6022. @click.stop="openScore(w)"
  6023. v-else-if="courseDetail.userid == userid"
  6024. :class="{
  6025. rightW:
  6026. w.userid == userid || tType == 1 || tType == 4,
  6027. }"
  6028. >
  6029. 评分
  6030. </div>
  6031. <img
  6032. class="deleteImg"
  6033. src="../assets/deleteworks.png"
  6034. v-if="
  6035. w.userid == userid || tType == 1 || tType == 4
  6036. "
  6037. @click.stop="deleteWorks(w.wid)"
  6038. alt
  6039. />
  6040. </div>
  6041. <div class="comment" style="min-width: 200px">
  6042. <div class="worksName">
  6043. <div>{{ w.sName }}</div>
  6044. </div>
  6045. <div class="commentList">
  6046. <div class="commentList">
  6047. <div
  6048. class="commentImg"
  6049. @click="
  6050. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6051. "
  6052. >
  6053. <img
  6054. :src="w.isLikes == true ? likes : noLikes"
  6055. alt=""
  6056. />
  6057. </div>
  6058. <div>{{ w.likesCount }}</div>
  6059. </div>
  6060. <div class="commentList" style="margin-right: 15px">
  6061. <div
  6062. class="commentImg"
  6063. @click="commentOther(w, toolIndex, wIndex)"
  6064. >
  6065. <img
  6066. src="../assets/icon/comment/comment.png"
  6067. alt=""
  6068. />
  6069. </div>
  6070. <div>{{ w.commentCount }}</div>
  6071. </div>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. </div>
  6076. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6077. 未提交
  6078. </div>
  6079. <div
  6080. class="noWorksS"
  6081. v-if="noWorksS && noWorksS[toolIndex].length"
  6082. >
  6083. <div
  6084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6085. :key="sIndex"
  6086. class="noWorksName"
  6087. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6088. >
  6089. <el-tooltip effect="dark" :content="s.student" placement="top">
  6090. <span>{{ s.student }}</span>
  6091. </el-tooltip>
  6092. </div>
  6093. </div>
  6094. </div>
  6095. <div
  6096. v-if="
  6097. tType &&
  6098. ((tType == 2 && sIsOpen == true) ||
  6099. tType == 1 ||
  6100. tType == 4) &&
  6101. tool.tool.indexOf(26) != -1
  6102. "
  6103. class="worksBox"
  6104. >
  6105. <div
  6106. class="zuoyeYulan"
  6107. v-if="
  6108. worksStudent.length &&
  6109. worksStudent[toolIndex].length > 0
  6110. "
  6111. >
  6112. <div class="worksTop">
  6113. <div>作业预览</div>
  6114. <div
  6115. class="corOpen"
  6116. @click="contract(toolIndex)"
  6117. v-if="
  6118. (isCloseList[toolIndex].isCloseBoolean) &&
  6119. isCloseList[toolIndex].isClose == 0
  6120. "
  6121. >
  6122. 折叠
  6123. </div>
  6124. <div
  6125. class="corOpen"
  6126. @click="contract(toolIndex)"
  6127. v-if="isCloseList[toolIndex].isClose == 1"
  6128. >
  6129. 展开
  6130. </div>
  6131. </div>
  6132. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6133. </div>
  6134. <div
  6135. :id="'tool-' + toolIndex"
  6136. :style="{
  6137. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6138. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6139. }"
  6140. class="worksDetailBox"
  6141. v-if="
  6142. worksStudent.length &&
  6143. worksStudent[toolIndex].length > 0
  6144. "
  6145. >
  6146. <div
  6147. class="works"
  6148. style="width: 240px; height: 140px; overflow: hidden"
  6149. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6150. :key="wIndex"
  6151. :class="w.type == 1 ? 'isTypeOne' : ''"
  6152. >
  6153. <div class="workImg" v-if="w.type == 0">
  6154. <img
  6155. :src="w.works"
  6156. @click="previewImg(w.works,w)"
  6157. alt
  6158. />
  6159. <img
  6160. class="deleteImg"
  6161. src="../assets/deleteworks.png"
  6162. v-if="
  6163. w.userid == userid || tType == 1 || tType == 4
  6164. "
  6165. @click.stop="deleteWorks(w.wid)"
  6166. alt
  6167. />
  6168. </div>
  6169. <div class="workImg" v-if="w.type == 1">
  6170. <img :src="word" @click="openFile(w.works,w)" alt />
  6171. <img
  6172. class="deleteImg"
  6173. src="../assets/deleteworks.png"
  6174. v-if="
  6175. w.userid == userid || tType == 1 || tType == 4
  6176. "
  6177. @click.stop="deleteWorks(w.wid)"
  6178. alt
  6179. />
  6180. </div>
  6181. <div class="worksName">
  6182. <div>{{ w.sName }}</div>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6187. 未提交
  6188. </div>
  6189. <div
  6190. class="noWorksS"
  6191. v-if="noWorksS && noWorksS[toolIndex].length"
  6192. >
  6193. <div
  6194. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6195. :key="sIndex"
  6196. class="noWorksName"
  6197. >
  6198. <el-tooltip effect="dark" :content="s.student" placement="top">
  6199. <span>{{ s.student }}</span>
  6200. </el-tooltip>
  6201. </div>
  6202. </div>
  6203. </div>
  6204. <div
  6205. v-if="
  6206. tType &&
  6207. ((tType == 2 && sIsOpen == true) ||
  6208. tType == 1 ||
  6209. tType == 4) &&
  6210. tool.tool.indexOf(40) != -1
  6211. "
  6212. class="worksBox"
  6213. >
  6214. <div
  6215. class="zuoyeYulan"
  6216. v-if="
  6217. worksStudent.length &&
  6218. worksStudent[toolIndex].length > 0
  6219. "
  6220. >
  6221. <div class="worksTop">
  6222. <div>作业预览</div>
  6223. <div
  6224. class="corOpen"
  6225. @click="contract(toolIndex)"
  6226. v-if="
  6227. (isCloseList[toolIndex].isCloseBoolean) &&
  6228. isCloseList[toolIndex].isClose == 0
  6229. "
  6230. >
  6231. 折叠
  6232. </div>
  6233. <div
  6234. class="corOpen"
  6235. @click="contract(toolIndex)"
  6236. v-if="isCloseList[toolIndex].isClose == 1"
  6237. >
  6238. 展开
  6239. </div>
  6240. </div>
  6241. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6242. </div>
  6243. <div
  6244. :id="'tool-' + toolIndex"
  6245. :style="{
  6246. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6247. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6248. }"
  6249. class="worksDetailBox"
  6250. v-if="
  6251. worksStudent.length &&
  6252. worksStudent[toolIndex].length > 0
  6253. "
  6254. >
  6255. <div
  6256. class="works"
  6257. style="
  6258. width: 200px;
  6259. height: 140px;
  6260. margin: 10px 10px 10px 0;
  6261. border-radius: 15px;
  6262. box-shadow: 0 0 6px 1px #dfdada;
  6263. "
  6264. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6265. :key="wIndex"
  6266. :class="w.type == 1 ? 'isTypeOne' : ''"
  6267. >
  6268. <div class="workImg">
  6269. <img
  6270. src="../assets/icon/works/noImg.png"
  6271. @click="openPj(w.works, toolIndex)"
  6272. alt
  6273. />
  6274. <img
  6275. class="deleteImg"
  6276. src="../assets/deleteworks.png"
  6277. v-if="
  6278. w.userid == userid || tType == 1 || tType == 4
  6279. "
  6280. @click.stop="deleteWorks(w.wid)"
  6281. alt
  6282. />
  6283. </div>
  6284. <div class="comment" style="min-width: 200px">
  6285. <div class="worksName">
  6286. <div>{{ w.sName }}</div>
  6287. </div>
  6288. <div class="commentList">
  6289. <div class="commentList">
  6290. <div
  6291. class="commentImg"
  6292. @click="
  6293. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6294. "
  6295. >
  6296. <img
  6297. :src="w.isLikes == true ? likes : noLikes"
  6298. alt=""
  6299. />
  6300. </div>
  6301. <div>{{ w.likesCount }}</div>
  6302. </div>
  6303. <div class="commentList" style="margin-right: 15px">
  6304. <div
  6305. class="commentImg"
  6306. @click="commentOther(w, toolIndex, wIndex)"
  6307. >
  6308. <img
  6309. src="../assets/icon/comment/comment.png"
  6310. alt=""
  6311. />
  6312. </div>
  6313. <div>{{ w.commentCount }}</div>
  6314. </div>
  6315. </div>
  6316. </div>
  6317. </div>
  6318. </div>
  6319. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6320. 未提交
  6321. </div>
  6322. <div
  6323. class="noWorksS"
  6324. v-if="noWorksS && noWorksS[toolIndex].length"
  6325. >
  6326. <div
  6327. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6328. :key="sIndex"
  6329. class="noWorksName"
  6330. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6331. >
  6332. <el-tooltip effect="dark" :content="s.student" placement="top">
  6333. <span>{{ s.student }}</span>
  6334. </el-tooltip>
  6335. </div>
  6336. </div>
  6337. </div>
  6338. <div
  6339. v-if="
  6340. tType &&
  6341. tType == 2 &&
  6342. !sIsOpen &&
  6343. tool.tool.indexOf(40) != -1
  6344. "
  6345. class="worksBox"
  6346. >
  6347. <div
  6348. class="zuoyeYulan"
  6349. v-if="workStudent[toolIndex].length > 0"
  6350. >
  6351. <span class="worksTitle">作业预览</span>
  6352. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6353. </div>
  6354. <div
  6355. class="worksDetailBox"
  6356. v-if="workStudent[toolIndex].length > 0"
  6357. >
  6358. <div
  6359. class="works"
  6360. style="
  6361. width: 200px;
  6362. height: 140px;
  6363. margin: 10px 10px 10px 0;
  6364. "
  6365. v-for="(w, wIndex) in workStudent[toolIndex]"
  6366. :key="wIndex"
  6367. >
  6368. <div class="workImg">
  6369. <img
  6370. src="../assets/icon/works/noImg.png"
  6371. @click="openPj(w.works, toolIndex)"
  6372. alt
  6373. />
  6374. <img
  6375. class="deleteImg"
  6376. src="../assets/deleteworks.png"
  6377. v-if="
  6378. w.userid == userid || tType == 1 || tType == 4
  6379. "
  6380. @click.stop="deleteWorks(w.wid)"
  6381. alt
  6382. />
  6383. </div>
  6384. <div class="worksName">
  6385. <div>{{ w.sName }}</div>
  6386. </div>
  6387. </div>
  6388. </div>
  6389. </div>
  6390. <div
  6391. v-if="
  6392. tType &&
  6393. ((tType == 2 && sIsOpen == true) ||
  6394. tType == 1 ||
  6395. tType == 4) &&
  6396. tool.tool.indexOf(41) != -1
  6397. "
  6398. >
  6399. <AnswerData2
  6400. v-if="
  6401. worksStudent.length &&
  6402. worksStudent[toolIndex].length > 0
  6403. "
  6404. :problemJson="tool.selectJson.answer"
  6405. :people="worksStudent[toolIndex]"
  6406. ></AnswerData2>
  6407. </div>
  6408. <div
  6409. v-if="
  6410. tType &&
  6411. ((tType == 2 && sIsOpen == true) ||
  6412. tType == 1 ||
  6413. tType == 4) &&
  6414. tool.tool.indexOf(41) != -1
  6415. "
  6416. class="worksBox"
  6417. >
  6418. <div
  6419. class="zuoyeYulan"
  6420. v-if="
  6421. worksStudent.length &&
  6422. worksStudent[toolIndex].length > 0
  6423. "
  6424. >
  6425. <div class="worksTop">
  6426. <div>作业预览</div>
  6427. <div
  6428. class="corOpen"
  6429. @click="contract(toolIndex)"
  6430. v-if="
  6431. (isCloseList[toolIndex].isCloseBoolean) &&
  6432. isCloseList[toolIndex].isClose == 0
  6433. "
  6434. >
  6435. 折叠
  6436. </div>
  6437. <div
  6438. class="corOpen"
  6439. @click="contract(toolIndex)"
  6440. v-if="isCloseList[toolIndex].isClose == 1"
  6441. >
  6442. 展开
  6443. </div>
  6444. </div>
  6445. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6446. </div>
  6447. <div
  6448. :id="'tool-' + toolIndex"
  6449. :style="{
  6450. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6451. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6452. }"
  6453. class="worksDetailBox"
  6454. v-if="
  6455. worksStudent.length &&
  6456. worksStudent[toolIndex].length > 0
  6457. "
  6458. >
  6459. <div
  6460. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6461. :key="wIndex"
  6462. class="isWorksName2"
  6463. @click="openXz(w, toolIndex)"
  6464. >
  6465. {{ w.sName }}
  6466. <img
  6467. class="deleteImg deleteImg2"
  6468. src="../assets/deleteworks.png"
  6469. v-if="w.userid == userid || tType == 1 || tType == 4"
  6470. @click.stop="deleteWorks(w.wid)"
  6471. alt
  6472. />
  6473. </div>
  6474. <!-- <div
  6475. class="works"
  6476. style="
  6477. width: 200px;
  6478. height: 140px;
  6479. margin: 10px 10px 10px 0;
  6480. border-radius: 15px;
  6481. box-shadow: 0 0 6px 1px #dfdada;
  6482. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6483. :class="w.type == 5 ? 'isTypeOne' : ''">
  6484. <div class="workImg">
  6485. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6486. </div>
  6487. <div class="worksName">
  6488. <div>{{ w.sName }}</div>
  6489. </div>
  6490. </div> -->
  6491. </div>
  6492. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6493. 未提交
  6494. </div>
  6495. <div
  6496. class="noWorksS"
  6497. v-if="noWorksS && noWorksS[toolIndex].length"
  6498. >
  6499. <div
  6500. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6501. :key="sIndex"
  6502. class="noWorksName"
  6503. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6504. >
  6505. <el-tooltip effect="dark" :content="s.student" placement="top">
  6506. <span>{{ s.student }}</span>
  6507. </el-tooltip>
  6508. </div>
  6509. </div>
  6510. </div>
  6511. <div
  6512. v-if="
  6513. tType &&
  6514. tType == 2 &&
  6515. !sIsOpen &&
  6516. tool.tool.indexOf(41) != -1
  6517. "
  6518. class="worksBox"
  6519. >
  6520. <div
  6521. class="zuoyeYulan"
  6522. v-if="workStudent[toolIndex].length > 0"
  6523. >
  6524. <span class="worksTitle">作业预览</span>
  6525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6526. </div>
  6527. <div
  6528. class="worksDetailBox"
  6529. v-if="workStudent[toolIndex].length > 0"
  6530. >
  6531. <div
  6532. class="works"
  6533. style="
  6534. width: 200px;
  6535. height: 140px;
  6536. margin: 10px 10px 10px 0;
  6537. "
  6538. v-for="(w, wIndex) in workStudent[toolIndex]"
  6539. :key="wIndex"
  6540. >
  6541. <div class="workImg">
  6542. <img
  6543. src="../assets/icon/works/noImg.png"
  6544. @click="openXz(w, toolIndex)"
  6545. alt
  6546. />
  6547. <img
  6548. class="deleteImg"
  6549. src="../assets/deleteworks.png"
  6550. v-if="
  6551. w.userid == userid || tType == 1 || tType == 4
  6552. "
  6553. @click.stop="deleteWorks(w.wid)"
  6554. alt
  6555. />
  6556. </div>
  6557. <div class="worksName">
  6558. <div>{{ w.sName }}</div>
  6559. </div>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. <div v-if="false" class="xuan_right_box">
  6564. <div
  6565. class="tool_right_box"
  6566. v-for="(item, index) in tool.sentenceList"
  6567. :key="index"
  6568. >
  6569. <div>
  6570. <span
  6571. style="word-break: break-all; white-space: normal"
  6572. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6573. >
  6574. </div>
  6575. <div class="right_box_xuan">
  6576. <span>正确率</span>
  6577. <span>{{
  6578. (checkJson[toolIndex][index].right
  6579. ? checkJson[toolIndex][index].right
  6580. : 0) + "%"
  6581. }}</span>
  6582. </div>
  6583. <div class="right_box_xuan">
  6584. <span>答对人数</span>
  6585. <span>{{
  6586. checkJson[toolIndex][index].rightPerson.length
  6587. }}</span>
  6588. </div>
  6589. </div>
  6590. </div>
  6591. <div
  6592. v-if="
  6593. tType &&
  6594. ((tType == 2 && sIsOpen == true) ||
  6595. tType == 1 ||
  6596. tType == 4) &&
  6597. tool.tool.indexOf(47) != -1
  6598. "
  6599. >
  6600. <!-- <AnswerData
  6601. v-if="
  6602. checkJson[toolIndex].length &&
  6603. (tool.sentenceList || tool.sentenceList.length > 0)
  6604. "
  6605. :people="checkJson[toolIndex]"
  6606. ></AnswerData> -->
  6607. <sortToolWorkShow v-if="
  6608. worksStudent[toolIndex].length
  6609. "
  6610. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6611. </div>
  6612. <div
  6613. v-if="
  6614. tType &&
  6615. tType == 2 &&
  6616. !sIsOpen &&
  6617. tool.tool.indexOf(47) != -1
  6618. "
  6619. class="worksBox"
  6620. >
  6621. <div
  6622. class="zuoyeYulan"
  6623. v-if="workStudent[toolIndex].length > 0"
  6624. >
  6625. <span class="worksTitle">作业预览</span>
  6626. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6627. </div>
  6628. <div
  6629. class="worksDetailBox"
  6630. v-if="workStudent[toolIndex].length > 0"
  6631. >
  6632. <div
  6633. class="works"
  6634. style="
  6635. width: 200px;
  6636. height: 140px;
  6637. margin: 10px 10px 10px 0;
  6638. "
  6639. v-for="(w, wIndex) in workStudent[toolIndex]"
  6640. :key="wIndex"
  6641. >
  6642. <!-- @click="openXz(w, toolIndex)" -->
  6643. <div class="workImg" @click="openSen(w, toolIndex)">
  6644. <img src="../assets/icon/works/noImg.png" alt />
  6645. <img
  6646. class="deleteImg"
  6647. src="../assets/deleteworks.png"
  6648. v-if="
  6649. w.userid == userid || tType == 1 || tType == 4
  6650. "
  6651. @click.stop="deleteWorks(w.wid)"
  6652. alt
  6653. />
  6654. </div>
  6655. <div class="worksName">
  6656. <div>
  6657. {{ w.sName }}
  6658. </div>
  6659. </div>
  6660. </div>
  6661. </div>
  6662. </div>
  6663. <div
  6664. v-if="
  6665. tType &&
  6666. ((tType == 2 && sIsOpen == true) ||
  6667. tType == 1 ||
  6668. tType == 4) &&
  6669. tool.tool.indexOf(47) != -1
  6670. "
  6671. class="worksBox"
  6672. >
  6673. <div
  6674. class="zuoyeYulan"
  6675. v-if="
  6676. worksStudent.length &&
  6677. worksStudent[toolIndex].length > 0
  6678. "
  6679. >
  6680. <div class="worksTop">
  6681. <div>作业预览</div>
  6682. <div
  6683. class="corOpen"
  6684. @click="contract(toolIndex)"
  6685. v-if="
  6686. (isCloseList[toolIndex].isCloseBoolean) &&
  6687. isCloseList[toolIndex].isClose == 0
  6688. "
  6689. >
  6690. 折叠
  6691. </div>
  6692. <div
  6693. class="corOpen"
  6694. @click="contract(toolIndex)"
  6695. v-if="isCloseList[toolIndex].isClose == 1"
  6696. >
  6697. 展开
  6698. </div>
  6699. </div>
  6700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6701. </div>
  6702. <div
  6703. :id="'tool-' + toolIndex"
  6704. :style="{
  6705. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6706. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6707. }"
  6708. class="worksDetailBox"
  6709. v-if="
  6710. worksStudent.length &&
  6711. worksStudent[toolIndex].length > 0
  6712. "
  6713. >
  6714. <!-- @click="openXz(w, toolIndex)" -->
  6715. <div
  6716. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6717. :key="wIndex"
  6718. class="isWorksName2"
  6719. @click="openSen(w, toolIndex)"
  6720. >
  6721. {{ w.sName }}
  6722. <img
  6723. class="deleteImg deleteImg2"
  6724. src="../assets/deleteworks.png"
  6725. v-if="w.userid == userid || tType == 1 || tType == 4"
  6726. @click.stop="deleteWorks(w.wid)"
  6727. alt
  6728. />
  6729. </div>
  6730. </div>
  6731. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6732. 未提交
  6733. </div>
  6734. <div
  6735. class="noWorksS"
  6736. v-if="noWorksS && noWorksS[toolIndex].length"
  6737. >
  6738. <div
  6739. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6740. :key="sIndex"
  6741. class="noWorksName"
  6742. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6743. >
  6744. <el-tooltip effect="dark" :content="s.student" placement="top">
  6745. <span>{{ s.student }}</span>
  6746. </el-tooltip>
  6747. </div>
  6748. </div>
  6749. </div>
  6750. <div
  6751. v-if="
  6752. tType &&
  6753. ((tType == 2 && sIsOpen == true) ||
  6754. tType == 1 ||
  6755. tType == 4) &&
  6756. tool.tool.indexOf(48) != -1
  6757. "
  6758. class="worksBox"
  6759. >
  6760. <div
  6761. class="zuoyeYulan"
  6762. v-if="
  6763. worksStudent.length &&
  6764. worksStudent[toolIndex].length > 0
  6765. "
  6766. >
  6767. <div class="worksTop">
  6768. <div>作业预览</div>
  6769. <div
  6770. class="corOpen"
  6771. @click="contract(toolIndex)"
  6772. v-if="
  6773. (isCloseList[toolIndex].isCloseBoolean) &&
  6774. isCloseList[toolIndex].isClose == 0
  6775. "
  6776. >
  6777. 折叠
  6778. </div>
  6779. <div
  6780. class="corOpen"
  6781. @click="contract(toolIndex)"
  6782. v-if="isCloseList[toolIndex].isClose == 1"
  6783. >
  6784. 展开
  6785. </div>
  6786. </div>
  6787. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6788. </div>
  6789. <div
  6790. :id="'tool-' + toolIndex"
  6791. :style="{
  6792. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6793. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6794. }"
  6795. class="worksDetailBox"
  6796. v-if="
  6797. worksStudent.length &&
  6798. worksStudent[toolIndex].length > 0
  6799. "
  6800. >
  6801. <div
  6802. class="works"
  6803. style="
  6804. width: 200px;
  6805. height: 140px;
  6806. margin: 10px 10px 10px 0;
  6807. border-radius: 15px;
  6808. box-shadow: 0 0 6px 1px #dfdada;
  6809. "
  6810. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6811. :key="wIndex"
  6812. :class="w.type == 1 ? 'isTypeOne' : ''"
  6813. >
  6814. <div class="workImg">
  6815. <img :src="word" @click="openTable(w)" alt />
  6816. <!-- @click="openFile(w.works)" -->
  6817. <div
  6818. class="answerScore"
  6819. v-if="w.score"
  6820. @click.stop="openScore(w)"
  6821. :class="{
  6822. rightW:
  6823. w.userid == userid ||
  6824. tType == 1 ||
  6825. tType == 4 ||
  6826. w.ateacher == userid,
  6827. }"
  6828. >
  6829. {{ JSON.parse(w.score).wScore }}分
  6830. </div>
  6831. <div
  6832. class="answerScore"
  6833. @click.stop="openScore(w)"
  6834. v-else-if="courseDetail.userid == userid"
  6835. :class="{
  6836. rightW:
  6837. w.userid == userid ||
  6838. tType == 1 ||
  6839. tType == 4 ||
  6840. w.ateacher == userid,
  6841. }"
  6842. >
  6843. 评分
  6844. </div>
  6845. <img
  6846. class="deleteImg"
  6847. src="../assets/deleteworks.png"
  6848. v-if="
  6849. w.userid == userid || tType == 1 || tType == 4
  6850. "
  6851. @click.stop="deleteWorks(w.wid)"
  6852. alt
  6853. />
  6854. </div>
  6855. <div class="comment" style="min-width: 200px">
  6856. <div class="worksName">
  6857. <div>{{ w.sName }}</div>
  6858. </div>
  6859. <div class="commentList">
  6860. <div class="commentList">
  6861. <div
  6862. class="commentImg"
  6863. @click="
  6864. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6865. "
  6866. >
  6867. <img
  6868. :src="w.isLikes == true ? likes : noLikes"
  6869. alt=""
  6870. />
  6871. </div>
  6872. <div>{{ w.likesCount }}</div>
  6873. </div>
  6874. <div class="commentList" style="margin-right: 15px">
  6875. <div
  6876. class="commentImg"
  6877. @click="commentOther(w, toolIndex, wIndex)"
  6878. >
  6879. <img
  6880. src="../assets/icon/comment/comment.png"
  6881. alt=""
  6882. />
  6883. </div>
  6884. <div>{{ w.commentCount }}</div>
  6885. </div>
  6886. </div>
  6887. </div>
  6888. </div>
  6889. </div>
  6890. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6891. 未提交
  6892. </div>
  6893. <div
  6894. class="noWorksS"
  6895. v-if="noWorksS && noWorksS[toolIndex].length"
  6896. >
  6897. <div
  6898. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6899. :key="sIndex"
  6900. class="noWorksName"
  6901. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6902. >
  6903. <el-tooltip effect="dark" :content="s.student" placement="top">
  6904. <span>{{ s.student }}</span>
  6905. </el-tooltip>
  6906. </div>
  6907. </div>
  6908. </div>
  6909. <div
  6910. v-if="
  6911. tType &&
  6912. tType == 2 &&
  6913. !sIsOpen &&
  6914. tool.tool.indexOf(48) != -1
  6915. "
  6916. class="worksBox"
  6917. >
  6918. <div
  6919. class="zuoyeYulan"
  6920. v-if="workStudent[toolIndex].length > 0"
  6921. >
  6922. <span class="worksTitle">作业预览</span>
  6923. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6924. </div>
  6925. <div
  6926. class="worksDetailBox"
  6927. v-if="workStudent[toolIndex].length > 0"
  6928. >
  6929. <div
  6930. class="works"
  6931. style="
  6932. width: 200px;
  6933. height: 140px;
  6934. margin: 10px 10px 10px 0;
  6935. box-shadow: 0 0 6px 1px #dfdada;
  6936. "
  6937. v-for="(w, wIndex) in workStudent[toolIndex]"
  6938. :key="wIndex"
  6939. >
  6940. <div class="workImg">
  6941. <img :src="word" @click="openTable(w)" alt />
  6942. <div
  6943. class="answerScore"
  6944. v-if="w.score"
  6945. @click.stop="openScore(w)"
  6946. :class="{
  6947. rightW:
  6948. w.userid == userid || tType == 1 || tType == 4,
  6949. }"
  6950. >
  6951. {{ JSON.parse(w.score).wScore }}分
  6952. </div>
  6953. <div
  6954. class="answerScore"
  6955. @click.stop="openScore(w)"
  6956. v-else-if="courseDetail.userid == userid"
  6957. :class="{
  6958. rightW:
  6959. w.userid == userid || tType == 1 || tType == 4,
  6960. }"
  6961. >
  6962. 评分
  6963. </div>
  6964. <img
  6965. class="deleteImg"
  6966. src="../assets/deleteworks.png"
  6967. v-if="
  6968. w.userid == userid || tType == 1 || tType == 4
  6969. "
  6970. @click.stop="deleteWorks(w.wid)"
  6971. alt
  6972. />
  6973. </div>
  6974. <div class="worksName">
  6975. <div>{{ w.sName }}</div>
  6976. </div>
  6977. </div>
  6978. </div>
  6979. </div>
  6980. <div
  6981. v-if="
  6982. tType &&
  6983. ((tType == 2 && sIsOpen == true) ||
  6984. tType == 1 ||
  6985. tType == 4) &&
  6986. tool.tool.indexOf(52) != -1
  6987. "
  6988. class="worksBox"
  6989. >
  6990. <div
  6991. class="zuoyeYulan"
  6992. v-if="
  6993. worksStudent.length &&
  6994. worksStudent[toolIndex].length > 0
  6995. "
  6996. >
  6997. <div class="worksTop">
  6998. <div>作业预览</div>
  6999. <div
  7000. class="corOpen"
  7001. @click="contract(toolIndex)"
  7002. v-if="
  7003. (isCloseList[toolIndex].isCloseBoolean) &&
  7004. isCloseList[toolIndex].isClose == 0
  7005. "
  7006. >
  7007. 折叠
  7008. </div>
  7009. <div
  7010. class="corOpen"
  7011. @click="contract(toolIndex)"
  7012. v-if="isCloseList[toolIndex].isClose == 1"
  7013. >
  7014. 展开
  7015. </div>
  7016. </div>
  7017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7018. </div>
  7019. <div
  7020. :id="'tool-' + toolIndex"
  7021. :style="{
  7022. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7023. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7024. }"
  7025. class="worksDetailBox"
  7026. v-if="
  7027. worksStudent.length &&
  7028. worksStudent[toolIndex].length > 0
  7029. "
  7030. >
  7031. <div
  7032. class="works"
  7033. style="
  7034. width: 200px;
  7035. height: 140px;
  7036. margin: 10px 10px 10px 0;
  7037. border-radius: 15px;
  7038. box-shadow: 0 0 6px 1px #dfdada;
  7039. "
  7040. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7041. :key="wIndex"
  7042. :class="w.type == 1 ? 'isTypeOne' : ''"
  7043. >
  7044. <div class="workImg">
  7045. <img :src="word" @click="openWord(w)" alt />
  7046. <!-- @click="openFile(w.works)" -->
  7047. <div
  7048. class="answerScore"
  7049. v-if="w.score"
  7050. @click.stop="openScore(w)"
  7051. :class="{
  7052. rightW:
  7053. w.userid == userid ||
  7054. tType == 1 ||
  7055. tType == 4 ||
  7056. w.ateacher == userid,
  7057. }"
  7058. >
  7059. {{ JSON.parse(w.score).wScore }}分
  7060. </div>
  7061. <div
  7062. class="answerScore"
  7063. @click.stop="openScore(w)"
  7064. v-else-if="courseDetail.userid == userid"
  7065. :class="{
  7066. rightW:
  7067. w.userid == userid ||
  7068. tType == 1 ||
  7069. tType == 4 ||
  7070. w.ateacher == userid,
  7071. }"
  7072. >
  7073. 评分
  7074. </div>
  7075. <img
  7076. class="deleteImg"
  7077. src="../assets/deleteworks.png"
  7078. v-if="
  7079. w.userid == userid || tType == 1 || tType == 4
  7080. "
  7081. @click.stop="deleteWorks(w.wid)"
  7082. alt
  7083. />
  7084. </div>
  7085. <div class="comment" style="min-width: 200px">
  7086. <div class="worksName">
  7087. <div>{{ w.sName }}</div>
  7088. </div>
  7089. <div class="commentList">
  7090. <div class="commentList">
  7091. <div
  7092. class="commentImg"
  7093. @click="
  7094. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7095. "
  7096. >
  7097. <img
  7098. :src="w.isLikes == true ? likes : noLikes"
  7099. alt=""
  7100. />
  7101. </div>
  7102. <div>{{ w.likesCount }}</div>
  7103. </div>
  7104. <div class="commentList" style="margin-right: 15px">
  7105. <div
  7106. class="commentImg"
  7107. @click="commentOther(w, toolIndex, wIndex)"
  7108. >
  7109. <img
  7110. src="../assets/icon/comment/comment.png"
  7111. alt=""
  7112. />
  7113. </div>
  7114. <div>{{ w.commentCount }}</div>
  7115. </div>
  7116. </div>
  7117. </div>
  7118. </div>
  7119. </div>
  7120. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7121. 未提交
  7122. </div>
  7123. <div
  7124. class="noWorksS"
  7125. v-if="noWorksS && noWorksS[toolIndex].length"
  7126. >
  7127. <div
  7128. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7129. :key="sIndex"
  7130. class="noWorksName"
  7131. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7132. >
  7133. <el-tooltip effect="dark" :content="s.student" placement="top">
  7134. <span>{{ s.student }}</span>
  7135. </el-tooltip>
  7136. </div>
  7137. </div>
  7138. </div>
  7139. <div
  7140. v-if="
  7141. tType &&
  7142. tType == 2 &&
  7143. !sIsOpen &&
  7144. tool.tool.indexOf(52) != -1
  7145. "
  7146. class="worksBox"
  7147. >
  7148. <div
  7149. class="zuoyeYulan"
  7150. v-if="workStudent[toolIndex].length > 0"
  7151. >
  7152. <span class="worksTitle">作业预览</span>
  7153. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7154. </div>
  7155. <div
  7156. class="worksDetailBox"
  7157. v-if="workStudent[toolIndex].length > 0"
  7158. >
  7159. <div
  7160. class="works"
  7161. style="
  7162. width: 200px;
  7163. height: 140px;
  7164. margin: 10px 10px 10px 0;
  7165. box-shadow: 0 0 6px 1px #dfdada;
  7166. "
  7167. v-for="(w, wIndex) in workStudent[toolIndex]"
  7168. :key="wIndex"
  7169. >
  7170. <div class="workImg">
  7171. <img :src="word" @click="openWord(w)" alt />
  7172. <div
  7173. class="answerScore"
  7174. v-if="w.score"
  7175. @click.stop="openScore(w)"
  7176. :class="{
  7177. rightW:
  7178. w.userid == userid || tType == 1 || tType == 4,
  7179. }"
  7180. >
  7181. {{ JSON.parse(w.score).wScore }}分
  7182. </div>
  7183. <div
  7184. class="answerScore"
  7185. @click.stop="openScore(w)"
  7186. v-else-if="courseDetail.userid == userid"
  7187. :class="{
  7188. rightW:
  7189. w.userid == userid || tType == 1 || tType == 4,
  7190. }"
  7191. >
  7192. 评分
  7193. </div>
  7194. <img
  7195. class="deleteImg"
  7196. src="../assets/deleteworks.png"
  7197. v-if="
  7198. w.userid == userid || tType == 1 || tType == 4
  7199. "
  7200. @click.stop="deleteWorks(w.wid)"
  7201. alt
  7202. />
  7203. </div>
  7204. <div class="worksName">
  7205. <div>{{ w.sName }}</div>
  7206. </div>
  7207. </div>
  7208. </div>
  7209. </div>
  7210. <div
  7211. v-if="tool.tool.indexOf(49) != -1"
  7212. class="xuan_right_box"
  7213. style="margin: 0 15px 0 25px; width: 93%"
  7214. >
  7215. <div
  7216. v-if="courseDetail.userid == userid"
  7217. style="
  7218. display: flex;
  7219. justify-content: flex-end;
  7220. margin-right: 10px;
  7221. "
  7222. >
  7223. <el-button
  7224. type="primary"
  7225. size="small"
  7226. @click="addTools(49, toolIndex, taskCount)"
  7227. >分组设置</el-button
  7228. >
  7229. </div>
  7230. <div
  7231. v-if="groupStudentUid[toolIndex]"
  7232. class="group_staic_box"
  7233. >
  7234. <div
  7235. v-for="(gp, gd) in tool.groupJson.group"
  7236. :key="gd"
  7237. class="group_staic"
  7238. >
  7239. <span> {{ gp.name }}</span>
  7240. <span>
  7241. 目前人数{{
  7242. groupStudentUid[toolIndex][gd].length
  7243. }}人</span
  7244. >
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7249. <div
  7250. class="zuoyeYulan"
  7251. v-if="
  7252. worksStudent.length &&
  7253. worksStudent[toolIndex].length > 0
  7254. "
  7255. >
  7256. <span class="worksTitle">作业预览</span>
  7257. </div>
  7258. <div>
  7259. <div
  7260. class="group_workBox"
  7261. v-for="(g, gindex) in tool.groupJson.group"
  7262. :key="gindex"
  7263. >
  7264. <div
  7265. class="group_box"
  7266. v-if="
  7267. groupStudentUid[toolIndex] &&
  7268. worksStudent[toolIndex] &&
  7269. (worksStudent[toolIndex][gindex].length ||
  7270. groupStudentUid[toolIndex][gindex].indexOf(
  7271. userid
  7272. ) != -1)
  7273. "
  7274. >
  7275. <div class="group_title">
  7276. <el-tooltip
  7277. class="item"
  7278. effect="light"
  7279. :content="g.name"
  7280. placement="top"
  7281. >
  7282. <div class="group_name">{{ g.name }}</div>
  7283. </el-tooltip>
  7284. <el-button
  7285. type="primary"
  7286. v-if="
  7287. groupStudentUid[toolIndex][gindex].indexOf(
  7288. userid
  7289. ) != -1
  7290. "
  7291. @click="groupUpload(toolIndex, taskCount, gindex)"
  7292. >上传作业</el-button
  7293. >
  7294. </div>
  7295. <div class="group_work">
  7296. <div
  7297. class="works"
  7298. style="
  7299. width: 200px;
  7300. height: 140px;
  7301. margin: 10px 10px 10px 0;
  7302. border-radius: 15px;
  7303. box-shadow: 0 0 6px 1px #dfdada;
  7304. "
  7305. v-for="(w, wIndex) in worksStudent[toolIndex][
  7306. gindex
  7307. ]"
  7308. :key="wIndex"
  7309. :class="w.type == 1 ? 'isTypeOne' : ''"
  7310. >
  7311. <div class="workImg" v-if="w.type == 0">
  7312. <img
  7313. :src="w.works"
  7314. @click="previewImg(w.works,w)"
  7315. alt
  7316. />
  7317. <div
  7318. class="answerScore"
  7319. v-if="w.score"
  7320. @click.stop="openScore(w)"
  7321. :class="{
  7322. rightW:
  7323. w.userid == userid ||
  7324. tType == 1 ||
  7325. tType == 4 ||
  7326. w.ateacher == userid,
  7327. }"
  7328. >
  7329. {{ JSON.parse(w.score).wScore }}分
  7330. </div>
  7331. <div
  7332. class="answerScore"
  7333. @click.stop="openScore(w)"
  7334. v-else-if="courseDetail.userid == userid"
  7335. :class="{
  7336. rightW:
  7337. w.userid == userid ||
  7338. tType == 1 ||
  7339. tType == 4 ||
  7340. w.ateacher == userid,
  7341. }"
  7342. >
  7343. 评分
  7344. </div>
  7345. <img
  7346. class="deleteImg"
  7347. src="../assets/deleteworks.png"
  7348. v-if="
  7349. w.userid == userid ||
  7350. tType == 1 ||
  7351. tType == 4
  7352. "
  7353. @click.stop="deleteWorks(w.wid)"
  7354. alt
  7355. />
  7356. </div>
  7357. <div class="workImg" v-if="w.type == 1">
  7358. <img
  7359. :src="word"
  7360. @click="openFile(w.works,w)"
  7361. alt
  7362. />
  7363. <!-- @click="openFile(w.works)" -->
  7364. <div
  7365. class="answerScore"
  7366. v-if="w.score"
  7367. @click.stop="openScore(w)"
  7368. :class="{
  7369. rightW:
  7370. w.userid == userid ||
  7371. tType == 1 ||
  7372. tType == 4 ||
  7373. w.ateacher == userid,
  7374. }"
  7375. >
  7376. {{ JSON.parse(w.score).wScore }}分
  7377. </div>
  7378. <div
  7379. class="answerScore"
  7380. @click.stop="openScore(w)"
  7381. v-else-if="courseDetail.userid == userid"
  7382. :class="{
  7383. rightW:
  7384. w.userid == userid ||
  7385. tType == 1 ||
  7386. tType == 4 ||
  7387. w.ateacher == userid,
  7388. }"
  7389. >
  7390. 评分
  7391. </div>
  7392. <img
  7393. class="deleteImg"
  7394. src="../assets/deleteworks.png"
  7395. v-if="
  7396. w.userid == userid ||
  7397. tType == 1 ||
  7398. tType == 4
  7399. "
  7400. @click.stop="deleteWorks(w.wid)"
  7401. alt
  7402. />
  7403. </div>
  7404. <div class="workImg" v-if="w.type == 3">
  7405. <img
  7406. style="cursor: pointer"
  7407. :src="video"
  7408. @click="openVideo(w)"
  7409. alt
  7410. />
  7411. <!-- @click="openVideo(w.works)" -->
  7412. <div
  7413. class="answerScore"
  7414. v-if="w.score"
  7415. @click.stop="openScore(w)"
  7416. :class="{
  7417. rightW:
  7418. w.userid == userid ||
  7419. tType == 1 ||
  7420. tType == 4 ||
  7421. w.ateacher == userid,
  7422. }"
  7423. >
  7424. {{ JSON.parse(w.score).wScore }}分
  7425. </div>
  7426. <div
  7427. class="answerScore"
  7428. @click.stop="openScore(w)"
  7429. v-else-if="courseDetail.userid == userid"
  7430. :class="{
  7431. rightW:
  7432. w.userid == userid ||
  7433. tType == 1 ||
  7434. tType == 4 ||
  7435. w.ateacher == userid,
  7436. }"
  7437. >
  7438. 评分
  7439. </div>
  7440. <img
  7441. class="deleteImg"
  7442. src="../assets/deleteworks.png"
  7443. v-if="
  7444. w.userid == userid ||
  7445. tType == 1 ||
  7446. tType == 4
  7447. "
  7448. @click.stop="deleteWorks(w.wid)"
  7449. alt
  7450. />
  7451. </div>
  7452. <div class="workImg" v-if="w.type == 12">
  7453. <img
  7454. style="cursor: pointer"
  7455. :src="word2"
  7456. @click="downloadFile(w.works,w.userid)"
  7457. alt
  7458. />
  7459. <!-- @click="openVideo(w.works)" -->
  7460. <div
  7461. class="answerScore"
  7462. v-if="w.score"
  7463. @click.stop="openScore(w)"
  7464. :class="{
  7465. rightW:
  7466. w.userid == userid ||
  7467. tType == 1 ||
  7468. tType == 4 ||
  7469. w.ateacher == userid,
  7470. }"
  7471. >
  7472. {{ JSON.parse(w.score).wScore }}分
  7473. </div>
  7474. <div
  7475. class="answerScore"
  7476. @click.stop="openScore(w)"
  7477. v-else-if="courseDetail.userid == userid"
  7478. :class="{
  7479. rightW:
  7480. w.userid == userid ||
  7481. tType == 1 ||
  7482. tType == 4 ||
  7483. w.ateacher == userid,
  7484. }"
  7485. >
  7486. 评分
  7487. </div>
  7488. <img
  7489. class="deleteImg"
  7490. src="../assets/deleteworks.png"
  7491. v-if="
  7492. w.userid == userid ||
  7493. tType == 1 ||
  7494. tType == 4
  7495. "
  7496. @click.stop="deleteWorks(w.wid)"
  7497. alt
  7498. />
  7499. </div>
  7500. <div class="comment" style="min-width: 200px">
  7501. <div class="worksName">
  7502. <div>{{ w.sName }}</div>
  7503. </div>
  7504. <div class="commentList">
  7505. <div class="commentList">
  7506. <div
  7507. class="commentImg"
  7508. @click="
  7509. isLikes(
  7510. w.wid,
  7511. userid,
  7512. 1,
  7513. null,
  7514. w.isLikes,
  7515. w.sName
  7516. )
  7517. "
  7518. >
  7519. <img
  7520. :src="
  7521. w.isLikes == true ? likes : noLikes
  7522. "
  7523. alt=""
  7524. />
  7525. </div>
  7526. <div>{{ w.likesCount }}</div>
  7527. </div>
  7528. <div
  7529. class="commentList"
  7530. style="margin-right: 15px"
  7531. >
  7532. <div
  7533. class="commentImg"
  7534. @click="
  7535. commentOther(
  7536. w,
  7537. toolIndex,
  7538. wIndex,
  7539. gindex
  7540. )
  7541. "
  7542. >
  7543. <img
  7544. src="../assets/icon/comment/comment.png"
  7545. alt=""
  7546. />
  7547. </div>
  7548. <div>{{ w.commentCount }}</div>
  7549. </div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7560. 上传文件
  7561. <input
  7562. type="file"
  7563. accept="image/png, image/gif, image/jpeg"
  7564. style="display: none"
  7565. @change="beforeUpload1($event, 2, index)"
  7566. />
  7567. </div>-->
  7568. </div>
  7569. </div>
  7570. <!-- <div
  7571. class="vedioBox"
  7572. style="margin-top: 10px"
  7573. v-if="
  7574. courseDetail.userid == userid ||
  7575. (courseDetail.course_teacher &&
  7576. courseDetail.course_teacher.indexOf(userid) != -1)
  7577. "
  7578. :style="{
  7579. borderRadius:
  7580. !(
  7581. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7582. .toolChoose[0].tool &&
  7583. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7584. .toolChoose[0].tool.length > 0
  7585. ) &&
  7586. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7587. .taskDetail == '' &&
  7588. vChapterData[taskCount].length == 0 &&
  7589. fileC[taskCount].length == 0
  7590. ? '0 0 20px 20px'
  7591. : '20px',
  7592. }"
  7593. >
  7594. <div
  7595. class="queTop"
  7596. @click="isClose = !isClose"
  7597. style="
  7598. padding: 15px 0 15px 37px;
  7599. justify-content: space-between;
  7600. "
  7601. >
  7602. <div class="queTopTitle">新增工具</div>
  7603. <div class="queTopRight">
  7604. <div class="queTopClose" v-if="isClose == 0">
  7605. 展开
  7606. <div class="closeImg">
  7607. <img src="../assets/icon/newIcon/close.png" alt="" />
  7608. </div>
  7609. </div>
  7610. <div class="queTopClose" v-if="isClose == 1">
  7611. 折叠
  7612. <div class="openImg">
  7613. <img src="../assets/icon/newIcon/open.png" alt="" />
  7614. </div>
  7615. </div>
  7616. <el-button
  7617. style="margin: 0 30px 0 auto"
  7618. type="primary"
  7619. size="small"
  7620. v-if="isClose == 1 && checktoolArray.length > 0"
  7621. @click.stop="addToolChoose"
  7622. >确定</el-button
  7623. >
  7624. </div>
  7625. </div>
  7626. <div
  7627. class="tool_work_box"
  7628. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7629. >
  7630. <div class="tool_box">
  7631. <div class="tool_type_box">
  7632. <div class="chooseWho">
  7633. <div
  7634. :class="toolType == 0 ? 'isChooseActive' : ''"
  7635. @click="(toolType = 0), $forceUpdate()"
  7636. >
  7637. 互动类
  7638. </div>
  7639. <div
  7640. :class="toolType == 1 ? 'isChooseActive' : ''"
  7641. @click="(toolType = 1), $forceUpdate()"
  7642. >
  7643. 思维类
  7644. </div>
  7645. <div
  7646. :class="toolType == 2 ? 'isChooseActive' : ''"
  7647. @click="(toolType = 2), $forceUpdate()"
  7648. >
  7649. 测评类
  7650. </div>
  7651. <div
  7652. :class="toolType == 3 ? 'isChooseActive' : ''"
  7653. @click="(toolType = 3), $forceUpdate()"
  7654. >
  7655. 编程类
  7656. </div>
  7657. <div
  7658. :class="toolType == 5 ? 'isChooseActive' : ''"
  7659. @click="(toolType = 5), $forceUpdate()"
  7660. >
  7661. 学科类
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div>
  7666. <div class="toolSort" v-if="toolType == 0">
  7667. <div class="tool">
  7668. <div class="whiteBIcon" @click="addTools2(10)">
  7669. <img
  7670. src="../assets/icon/thirdToolList/time.png"
  7671. alt
  7672. />
  7673. <div style="margin: 5px 0">倒计时</div>
  7674. </div>
  7675. <div class="check" @click="addTools2(10)">
  7676. <img
  7677. src="../assets/icon/checkNo.png"
  7678. alt
  7679. v-if="checktoolArray.indexOf(10) == -1"
  7680. />
  7681. <div class="checkDiv" v-else>
  7682. <img src="../assets/icon/checkedIs.png" alt /><span
  7683. >已选择</span
  7684. >
  7685. </div>
  7686. </div>
  7687. </div>
  7688. <div class="tool">
  7689. <div class="whiteBIcon" @click="addTools2(65)">
  7690. <img
  7691. src="../assets/icon/firstToolList/pickPeople.png"
  7692. alt
  7693. />
  7694. <div style="margin: 5px 0">挑人</div>
  7695. </div>
  7696. <div class="check" @click="addTools2(65)">
  7697. <img
  7698. src="../assets/icon/checkNo.png"
  7699. alt
  7700. v-if="checktoolArray.indexOf(65) == -1"
  7701. />
  7702. <div class="checkDiv" v-else>
  7703. <img src="../assets/icon/checkedIs.png" alt /><span
  7704. >已选择</span
  7705. >
  7706. </div>
  7707. </div>
  7708. </div>
  7709. </div>
  7710. <div class="toolSort" v-if="toolType == 1">
  7711. <div class="tool">
  7712. <div class="whiteBIcon" @click="addTools2(7)">
  7713. <img
  7714. src="../assets/icon/secondToolList/mindNetwork.png"
  7715. alt
  7716. />
  7717. <div style="margin: 5px 0">思维网格</div>
  7718. </div>
  7719. <div class="check" @click="addTools2(7)">
  7720. <img
  7721. src="../assets/icon/checkNo.png"
  7722. alt
  7723. v-if="checktoolArray.indexOf(7) == -1"
  7724. />
  7725. <div class="checkDiv" v-else>
  7726. <img src="../assets/icon/checkedIs.png" alt /><span
  7727. >已选择</span
  7728. >
  7729. </div>
  7730. </div>
  7731. </div>
  7732. <div class="tool">
  7733. <div class="whiteBIcon" @click="addTools2(1)">
  7734. <img
  7735. src="../assets/icon/secondToolList/whiteBoard.png"
  7736. alt
  7737. />
  7738. <div style="margin: 5px 0">电子白板</div>
  7739. </div>
  7740. <div class="check" @click="addTools2(1)">
  7741. <img
  7742. src="../assets/icon/checkNo.png"
  7743. alt
  7744. v-if="checktoolArray.indexOf(1) == -1"
  7745. />
  7746. <div class="checkDiv" v-else>
  7747. <img src="../assets/icon/checkedIs.png" alt /><span
  7748. >已选择</span
  7749. >
  7750. </div>
  7751. </div>
  7752. </div>
  7753. <div class="tool">
  7754. <div class="whiteBIcon" @click="addTools2(52)">
  7755. <img
  7756. src="../assets/icon/fourthToolList/text.png"
  7757. alt
  7758. />
  7759. <div style="margin: 5px 0">文档</div>
  7760. </div>
  7761. <div class="check" @click="addTools2(52)">
  7762. <img
  7763. src="../assets/icon/checkNo.png"
  7764. alt
  7765. v-if="checktoolArray.indexOf(52) == -1"
  7766. />
  7767. <div class="checkDiv" v-else>
  7768. <img src="../assets/icon/checkedIs.png" alt /><span
  7769. >已选择</span
  7770. >
  7771. </div>
  7772. </div>
  7773. </div>
  7774. <div class="tool">
  7775. <div class="whiteBIcon" @click="addTools2(3)">
  7776. <img
  7777. src="../assets/icon/secondToolList/mindMapping.png"
  7778. alt
  7779. />
  7780. <div style="margin: 5px 0">思维导图</div>
  7781. </div>
  7782. <div class="check" @click="addTools2(3)">
  7783. <img
  7784. src="../assets/icon/checkNo.png"
  7785. alt
  7786. v-if="checktoolArray.indexOf(3) == -1"
  7787. />
  7788. <div class="checkDiv" v-else>
  7789. <img src="../assets/icon/checkedIs.png" alt /><span
  7790. >已选择</span
  7791. >
  7792. </div>
  7793. </div>
  7794. </div>
  7795. <div class="tool">
  7796. <div class="whiteBIcon" @click="addTools2(48)">
  7797. <img
  7798. src="../assets/icon/fourthToolList/table.png"
  7799. alt
  7800. />
  7801. <div style="margin: 5px 0">表格</div>
  7802. </div>
  7803. <div class="check" @click="addTools2(48)">
  7804. <img
  7805. src="../assets/icon/checkNo.png"
  7806. alt
  7807. v-if="checktoolArray.indexOf(48) == -1"
  7808. />
  7809. <div class="checkDiv" v-else>
  7810. <img src="../assets/icon/checkedIs.png" alt /><span
  7811. >已选择</span
  7812. >
  7813. </div>
  7814. </div>
  7815. </div>
  7816. </div>
  7817. <div class="toolSort" v-if="toolType == 6">
  7818. <div v-show="tooC == 49">
  7819. <img
  7820. @click="addTools(tooC, toolIndex, taskCount)"
  7821. src="../assets/icon/fourthToolList/group.png"
  7822. alt
  7823. />
  7824. <div style="margin: 5px 0">学生分组</div>
  7825. </div>
  7826. </div>
  7827. <div class="toolSort" v-if="toolType == 2">
  7828. <div class="tool">
  7829. <div class="whiteBIcon" @click="addTools2(16)">
  7830. <img
  7831. src="../assets/icon/thirdToolList/work.png"
  7832. alt
  7833. />
  7834. <div style="margin: 5px 0">作业提交</div>
  7835. </div>
  7836. <div class="check" @click="addTools2(16)">
  7837. <img
  7838. src="../assets/icon/checkNo.png"
  7839. alt
  7840. v-if="checktoolArray.indexOf(16) == -1"
  7841. />
  7842. <div class="checkDiv" v-else>
  7843. <img src="../assets/icon/checkedIs.png" alt /><span
  7844. >已选择</span
  7845. >
  7846. </div>
  7847. </div>
  7848. </div>
  7849. <div class="tool">
  7850. <div class="whiteBIcon" @click="addTools2(50)">
  7851. <img
  7852. src="../assets/icon/thirdToolList/plwork.png"
  7853. alt
  7854. />
  7855. <div style="margin: 5px 0">批量上传</div>
  7856. </div>
  7857. <div class="check" @click="addTools2(50)">
  7858. <img
  7859. src="../assets/icon/checkNo.png"
  7860. alt
  7861. v-if="checktoolArray.indexOf(50) == -1"
  7862. />
  7863. <div class="checkDiv" v-else>
  7864. <img src="../assets/icon/checkedIs.png" alt /><span
  7865. >已选择</span
  7866. >
  7867. </div>
  7868. </div>
  7869. </div>
  7870. </div>
  7871. <div class="toolSort" v-if="toolType == 3">
  7872. <div class="tool">
  7873. <div class="whiteBIcon" @click="addTools2(18)">
  7874. <img
  7875. src="../assets/icon/thirdToolList/trainPlatform.png"
  7876. alt
  7877. />
  7878. <div style="margin: 5px 0">训练平台</div>
  7879. </div>
  7880. <div class="check" @click="addTools2(18)">
  7881. <img
  7882. src="../assets/icon/checkNo.png"
  7883. alt
  7884. v-if="checktoolArray.indexOf(18) == -1"
  7885. />
  7886. <div class="checkDiv" v-else>
  7887. <img src="../assets/icon/checkedIs.png" alt /><span
  7888. >已选择</span
  7889. >
  7890. </div>
  7891. </div>
  7892. </div>
  7893. <div class="tool">
  7894. <div class="whiteBIcon" @click="addTools2(21)">
  7895. <img
  7896. src="../assets/icon/fourthToolList/program.png"
  7897. alt
  7898. />
  7899. <div style="margin: 5px 0">AIoT Blockly</div>
  7900. </div>
  7901. <div class="check" @click="addTools2(21)">
  7902. <img
  7903. src="../assets/icon/checkNo.png"
  7904. alt
  7905. v-if="checktoolArray.indexOf(21) == -1"
  7906. />
  7907. <div class="checkDiv" v-else>
  7908. <img src="../assets/icon/checkedIs.png" alt /><span
  7909. >已选择</span
  7910. >
  7911. </div>
  7912. </div>
  7913. </div>
  7914. <div class="tool">
  7915. <div class="whiteBIcon" @click="addTools2(23)">
  7916. <img
  7917. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7918. alt
  7919. />
  7920. <div style="margin: 5px 0">AI Python</div>
  7921. </div>
  7922. <div class="check" @click="addTools2(23)">
  7923. <img
  7924. src="../assets/icon/checkNo.png"
  7925. alt
  7926. v-if="checktoolArray.indexOf(23) == -1"
  7927. />
  7928. <div class="checkDiv" v-else>
  7929. <img src="../assets/icon/checkedIs.png" alt /><span
  7930. >已选择</span
  7931. >
  7932. </div>
  7933. </div>
  7934. </div>
  7935. <div class="tool">
  7936. <div class="whiteBIcon" @click="addTools2(24)">
  7937. <img
  7938. src="../assets/icon/fourthToolList/AIprogram.png"
  7939. alt
  7940. />
  7941. <div style="margin: 5px 0">AI Blockly</div>
  7942. </div>
  7943. <div class="check" @click="addTools2(24)">
  7944. <img
  7945. src="../assets/icon/checkNo.png"
  7946. alt
  7947. v-if="checktoolArray.indexOf(24) == -1"
  7948. />
  7949. <div class="checkDiv" v-else>
  7950. <img src="../assets/icon/checkedIs.png" alt /><span
  7951. >已选择</span
  7952. >
  7953. </div>
  7954. </div>
  7955. </div>
  7956. <div class="tool">
  7957. <div class="whiteBIcon" @click="addTools2(32)">
  7958. <img
  7959. src="../assets/icon/thirdToolList/code.png"
  7960. alt
  7961. />
  7962. <div style="margin: 5px 0">源码编辑</div>
  7963. </div>
  7964. <div class="check" @click="addTools2(32)">
  7965. <img
  7966. src="../assets/icon/checkNo.png"
  7967. alt
  7968. v-if="checktoolArray.indexOf(32) == -1"
  7969. />
  7970. <div class="checkDiv" v-else>
  7971. <img src="../assets/icon/checkedIs.png" alt /><span
  7972. >已选择</span
  7973. >
  7974. </div>
  7975. </div>
  7976. </div>
  7977. <div class="tool">
  7978. <div class="whiteBIcon" @click="addTools2(57)">
  7979. <img
  7980. src="../assets/icon/fourthToolList/cocopi.png"
  7981. alt
  7982. />
  7983. <div style="margin: 5px 0">CocoPi</div>
  7984. </div>
  7985. <div class="check" @click="addTools2(57)">
  7986. <img
  7987. src="../assets/icon/checkNo.png"
  7988. alt
  7989. v-if="checktoolArray.indexOf(57) == -1"
  7990. />
  7991. <div class="checkDiv" v-else>
  7992. <img src="../assets/icon/checkedIs.png" alt /><span
  7993. >已选择</span
  7994. >
  7995. </div>
  7996. </div>
  7997. </div>
  7998. <div class="tool">
  7999. <div class="whiteBIcon" @click="addTools2(63)">
  8000. <img
  8001. src="../assets/icon/fourthToolList/Wood.png"
  8002. alt
  8003. />
  8004. <div style="margin: 5px 0">海龟编程</div>
  8005. </div>
  8006. <div class="check" @click="addTools2(63)">
  8007. <img
  8008. src="../assets/icon/checkNo.png"
  8009. alt
  8010. v-if="checktoolArray.indexOf(63) == -1"
  8011. />
  8012. <div class="checkDiv" v-else>
  8013. <img src="../assets/icon/checkedIs.png" alt /><span
  8014. >已选择</span
  8015. >
  8016. </div>
  8017. </div>
  8018. </div>
  8019. </div>
  8020. <div class="toolSort" v-if="toolType == 5">
  8021. <div class="tool">
  8022. <div class="whiteBIcon" @click="addTools2(28)">
  8023. <img
  8024. src="../assets/icon/secondToolList/translation.png"
  8025. alt
  8026. />
  8027. <div style="margin: 5px 0">翻译</div>
  8028. </div>
  8029. <div class="check" @click="addTools2(28)">
  8030. <img
  8031. src="../assets/icon/checkNo.png"
  8032. alt
  8033. v-if="checktoolArray.indexOf(28) == -1"
  8034. />
  8035. <div class="checkDiv" v-else>
  8036. <img src="../assets/icon/checkedIs.png" alt /><span
  8037. >已选择</span
  8038. >
  8039. </div>
  8040. </div>
  8041. </div>
  8042. <div class="tool">
  8043. <div class="whiteBIcon" @click="addTools2(31)">
  8044. <img
  8045. src="../assets/icon/secondToolList/networkPanel.png"
  8046. alt
  8047. />
  8048. <div style="margin: 5px 0">数字画板</div>
  8049. </div>
  8050. <div class="check" @click="addTools2(31)">
  8051. <img
  8052. src="../assets/icon/checkNo.png"
  8053. alt
  8054. v-if="checktoolArray.indexOf(31) == -1"
  8055. />
  8056. <div class="checkDiv" v-else>
  8057. <img src="../assets/icon/checkedIs.png" alt /><span
  8058. >已选择</span
  8059. >
  8060. </div>
  8061. </div>
  8062. </div>
  8063. <div class="tool">
  8064. <div class="whiteBIcon" @click="addTools2(39)">
  8065. <img
  8066. src="../assets/icon/secondToolList/GeoGebra.png"
  8067. alt
  8068. />
  8069. <div style="margin: 5px 0">GeoGebra</div>
  8070. </div>
  8071. <div class="check" @click="addTools2(39)">
  8072. <img
  8073. src="../assets/icon/checkNo.png"
  8074. alt
  8075. v-if="checktoolArray.indexOf(39) == -1"
  8076. />
  8077. <div class="checkDiv" v-else>
  8078. <img src="../assets/icon/checkedIs.png" alt /><span
  8079. >已选择</span
  8080. >
  8081. </div>
  8082. </div>
  8083. </div>
  8084. <div class="tool">
  8085. <div class="whiteBIcon" @click="addTools2(66)">
  8086. <img
  8087. src="../assets/icon/secondToolList/formulaEdi.png"
  8088. alt
  8089. />
  8090. <div style="margin: 5px 0">公式编辑</div>
  8091. </div>
  8092. <div class="check" @click="addTools2(66)">
  8093. <img
  8094. src="../assets/icon/checkNo.png"
  8095. alt
  8096. v-if="checktoolArray.indexOf(66) == -1"
  8097. />
  8098. <div class="checkDiv" v-else>
  8099. <img src="../assets/icon/checkedIs.png" alt /><span
  8100. >已选择</span
  8101. >
  8102. </div>
  8103. </div>
  8104. </div>
  8105. <div class="tool">
  8106. <div class="whiteBIcon" @click="addTools2(67)">
  8107. <img
  8108. src="../assets/icon/secondToolList/molStr.png"
  8109. alt
  8110. />
  8111. <div style="margin: 5px 0">分子结构</div>
  8112. </div>
  8113. <div class="check" @click="addTools2(67)">
  8114. <img
  8115. src="../assets/icon/checkNo.png"
  8116. alt
  8117. v-if="checktoolArray.indexOf(67) == -1"
  8118. />
  8119. <div class="checkDiv" v-else>
  8120. <img src="../assets/icon/checkedIs.png" alt /><span
  8121. >已选择</span
  8122. >
  8123. </div>
  8124. </div>
  8125. </div>
  8126. <div class="tool">
  8127. <div class="whiteBIcon" @click="addTools2(68)">
  8128. <img
  8129. src="../assets/icon/secondToolList/timeAxis.png"
  8130. alt
  8131. />
  8132. <div style="margin: 5px 0">时间轴</div>
  8133. </div>
  8134. <div class="check" @click="addTools2(68)">
  8135. <img
  8136. src="../assets/icon/checkNo.png"
  8137. alt
  8138. v-if="checktoolArray.indexOf(68) == -1"
  8139. />
  8140. <div class="checkDiv" v-else>
  8141. <img src="../assets/icon/checkedIs.png" alt /><span
  8142. >已选择</span
  8143. >
  8144. </div>
  8145. </div>
  8146. </div>
  8147. </div>
  8148. <div class="toolSort" v-if="toolType == 7">
  8149. <div class="tool">
  8150. <div class="whiteBIcon" @click="addTools2(40)">
  8151. <img
  8152. src="../assets/icon/secondToolList/eval.png"
  8153. alt
  8154. />
  8155. <div style="margin: 5px 0">个人评价</div>
  8156. </div>
  8157. <div class="check" @click="addTools2(40)">
  8158. <img
  8159. src="../assets/icon/checkNo.png"
  8160. alt
  8161. v-if="checktoolArray.indexOf(40) == -1"
  8162. />
  8163. <div class="checkDiv" v-else>
  8164. <img src="../assets/icon/checkedIs.png" alt /><span
  8165. >已选择</span
  8166. >
  8167. </div>
  8168. </div>
  8169. </div>
  8170. </div>
  8171. <div class="toolSort" v-if="toolType == 4">
  8172. <div class="tool">
  8173. <div class="whiteBIcon" @click="addTools2(26)">
  8174. <img
  8175. src="../assets/icon/thirdToolList/courseDesign.png"
  8176. alt
  8177. />
  8178. <div style="margin: 5px 0">课程设计</div>
  8179. </div>
  8180. <div class="check" @click="addTools2(26)">
  8181. <img
  8182. src="../assets/icon/checkNo.png"
  8183. alt
  8184. v-if="checktoolArray.indexOf(26) == -1"
  8185. />
  8186. <div class="checkDiv" v-else>
  8187. <img src="../assets/icon/checkedIs.png" alt /><span
  8188. >已选择</span
  8189. >
  8190. </div>
  8191. </div>
  8192. </div>
  8193. <div class="tool">
  8194. <div class="whiteBIcon" @click="addTools2(25)">
  8195. <img
  8196. src="../assets/icon/thirdToolList/evalua.png"
  8197. alt
  8198. />
  8199. <div style="margin: 5px 0">目标管理</div>
  8200. </div>
  8201. <div class="check" @click="addTools2(25)">
  8202. <img
  8203. src="../assets/icon/checkNo.png"
  8204. alt
  8205. v-if="checktoolArray.indexOf(25) == -1"
  8206. />
  8207. <div class="checkDiv" v-else>
  8208. <img src="../assets/icon/checkedIs.png" alt /><span
  8209. >已选择</span
  8210. >
  8211. </div>
  8212. </div>
  8213. </div>
  8214. </div>
  8215. </div>
  8216. </div>
  8217. </div>
  8218. </div> -->
  8219. <div
  8220. class="vedioBox"
  8221. style="margin-top: 10px; border-radius: 20px"
  8222. v-if="
  8223. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8224. .eList &&
  8225. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8226. .eList.length &&
  8227. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8228. .eList.length > 0 &&
  8229. tType != 2
  8230. "
  8231. >
  8232. <div
  8233. class="queTop"
  8234. style="
  8235. font-size: 20px;
  8236. padding: 15px 0 15px 37px;
  8237. font-weight: bold;
  8238. "
  8239. >
  8240. <!-- <div class="question" style="width: 30px">
  8241. <img src="../assets/icon/toolIcon.png" alt />
  8242. </div>
  8243. <div class="queTitle">
  8244. <div>工具</div>
  8245. </div>-->
  8246. 评一评
  8247. </div>
  8248. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8249. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8250. <el-table
  8251. :data="
  8252. chapInfoList[courseType].chapterInfo[0].taskJson[
  8253. taskCount
  8254. ].eList
  8255. "
  8256. :header-cell-style="{ background: '#F0F4FA' }"
  8257. :row-class-name="tableRowClassName"
  8258. border
  8259. stripe
  8260. style="width: 100%"
  8261. >
  8262. <el-table-column
  8263. label="评价名称"
  8264. align="center"
  8265. >
  8266. <template slot-scope="scope"
  8267. ><div>{{ scope.row.value }}</div></template
  8268. >
  8269. </el-table-column>
  8270. <el-table-column
  8271. label="评价描述"
  8272. align="center"
  8273. >
  8274. <template slot-scope="scope"
  8275. ><div>
  8276. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8277. </div></template
  8278. >
  8279. </el-table-column>
  8280. <el-table-column label="目标" align="center">
  8281. <template slot-scope="scope"
  8282. ><div>
  8283. {{
  8284. scope.row.target
  8285. ? scope.row.target[scope.row.target.length - 1]
  8286. : "-"
  8287. }}
  8288. </div></template
  8289. ></el-table-column
  8290. >
  8291. </el-table>
  8292. <!-- <div
  8293. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8294. .chapterInfo[0].taskJson[taskCount].eList"
  8295. :key="eIndex"
  8296. class="elist_input_box"
  8297. >
  8298. <div style="width: 95%">
  8299. <div
  8300. style="
  8301. display: flex;
  8302. flex-direction: row;
  8303. flex-wrap: nowrap;
  8304. align-items: center;
  8305. "
  8306. >
  8307. <div style="max-width: calc(100% - 285px)">
  8308. <span>{{ eItem.value }}</span>
  8309. </div>
  8310. <div
  8311. style="
  8312. padding-left: 25px;
  8313. display: flex;
  8314. flex-direction: row;
  8315. align-items: center;
  8316. "
  8317. >
  8318. <el-rate
  8319. v-model="eItem.score"
  8320. :colors="colors"
  8321. disabled
  8322. ></el-rate>
  8323. </div>
  8324. </div>
  8325. <div class="elist_inptu_text" style="padding-left: 10px">
  8326. <span v-if="eItem.detail != ''">{{
  8327. eItem.detail
  8328. }}</span>
  8329. <span v-else style="color: #b2b1b3; font-size: 14px"
  8330. >暂无描述...</span
  8331. >
  8332. </div>
  8333. </div>
  8334. </div> -->
  8335. </div>
  8336. <div
  8337. v-if="evalua"
  8338. style="
  8339. border: 1px solid #e5e5e5;
  8340. max-width: 650px;
  8341. width: 100%;
  8342. margin-top: 20px;
  8343. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8344. "
  8345. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8346. >
  8347. <div class="e_add_top">
  8348. <div class="e_add_title" style="width: 100%">
  8349. <!-- <span>目标管理名称</span> -->
  8350. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8351. <img
  8352. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8353. src="../assets/line.png"
  8354. class="cru_line"
  8355. style="
  8356. width: 125px;
  8357. height: 20px;
  8358. bottom: -10px;
  8359. left: 5px;
  8360. "
  8361. />
  8362. <!-- <el-input
  8363. v-model="eTitle"
  8364. placeholder="请输入名称"
  8365. @change="setMindData"
  8366. ></el-input>-->
  8367. <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>
  8368. <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>
  8369. </div>
  8370. </div>
  8371. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8372. <div class="e_add_list_pbox">
  8373. <div class="e_add_list_pbox_title">
  8374. <!-- <span class="type_title">切换模式</span> -->
  8375. <div class="type_content">
  8376. <span
  8377. :class="{ active: typeMode == 1 }"
  8378. @click="typeMode = 1"
  8379. >目标树</span
  8380. >
  8381. <span
  8382. :class="{ active: typeMode == 2 }"
  8383. @click="typeMode = 2"
  8384. >目标罗盘</span
  8385. >
  8386. <!-- <span
  8387. :class="{ active: typeMode == 3 }"
  8388. @click="typeMode = 3"
  8389. >目标看板</span
  8390. > -->
  8391. </div>
  8392. </div>
  8393. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8394. <Mind
  8395. :showBar="false"
  8396. :mindData="data"
  8397. style="width: 100%"
  8398. v-show="typeMode == 1"
  8399. ></Mind>
  8400. <Sunburst
  8401. :Josn="eJson"
  8402. :num="eJSONNum"
  8403. style="width: 100%"
  8404. v-if="typeMode == 2"
  8405. ></Sunburst>
  8406. <SeeBoard
  8407. :Josn="eJson"
  8408. :num="eJSONNum"
  8409. :ename="eTitle"
  8410. style="width: 100%"
  8411. v-if="typeMode == 3"
  8412. >
  8413. </SeeBoard>
  8414. </div>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. </div>
  8419. </div>
  8420. <!-- <div
  8421. class="project_box"
  8422. style="margin-top: 15px; padding-bottom: 30px"
  8423. >
  8424. <div
  8425. style="
  8426. display: flex;
  8427. flex-wrap: nowrap;
  8428. flex-direction: column;
  8429. position: relative;
  8430. "
  8431. >
  8432. <div class="queTop">
  8433. <div class="question">
  8434. <img src="../assets/icon/homeWork.png" alt="" />
  8435. </div>
  8436. <div class="queTitle">
  8437. <div>作业提交<span>(提交图文视频等)</span></div>
  8438. <div>:任务:{{ task.task }}</div>
  8439. </div>
  8440. </div>
  8441. <div class="ediBottom">
  8442. <div
  8443. class="addEditor"
  8444. style="margin-top: 23px"
  8445. @click="openAddWork"
  8446. v-if="!isNoHomeWork"
  8447. >
  8448. 选择文件
  8449. </div>
  8450. <div
  8451. class="addEditor"
  8452. style="margin-top: 23px"
  8453. @click="openAddWork"
  8454. v-else
  8455. >
  8456. 已提交
  8457. </div>
  8458. </div>
  8459. </div>
  8460. </div>-->
  8461. </div>
  8462. </div>
  8463. <el-dialog
  8464. title="作业提交"
  8465. :visible.sync="dialogVisible"
  8466. :append-to-body="true"
  8467. width="500px"
  8468. :before-close="handleClose"
  8469. class="dialog_change"
  8470. >
  8471. <div class="marginT">
  8472. <div>上传文件</div>
  8473. <div style="display: flex; gap: 10px">
  8474. <div
  8475. class="chapter_add"
  8476. @click="addImg($event)"
  8477. v-if="studyJuri[0].cover.length == 0"
  8478. >
  8479. <div class="up_photo">
  8480. <img src="../assets/icon/uploadImg.png" alt />
  8481. </div>
  8482. <!-- <input
  8483. type="file"
  8484. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8485. style="display: none"
  8486. @change="beforeUpload1($event, 1)"
  8487. /> -->
  8488. <input
  8489. type="file"
  8490. accept="*"
  8491. style="display: none"
  8492. @change="beforeUpload1($event, 1)"
  8493. />
  8494. <!-- <input
  8495. type="file"
  8496. accept="image/*"
  8497. capture="camera"
  8498. style="display: none"
  8499. @change="beforeUpload1($event, 1)"
  8500. /> -->
  8501. </div>
  8502. <div
  8503. class="chapter_add"
  8504. @click="addImg($event)"
  8505. v-if="studyJuri[0].cover.length == 0"
  8506. >
  8507. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8508. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8509. </div>
  8510. <input
  8511. type="file"
  8512. accept="image/*"
  8513. capture="camera"
  8514. style="display: none"
  8515. @change="beforeUpload1($event, 1)"
  8516. />
  8517. </div>
  8518. </div>
  8519. <div
  8520. class="chapter_add"
  8521. style="
  8522. display: flex;
  8523. width: 100%;
  8524. flex-direction: row;
  8525. flex-wrap: wrap;
  8526. justify-content: flex-start;
  8527. padding: 15px 0;
  8528. "
  8529. v-if="studyJuri[0].cover.length > 0"
  8530. >
  8531. <div class="upCover">
  8532. <img
  8533. :src="studyJuri[0].cover[0].url"
  8534. alt
  8535. v-if="fileType == 0"
  8536. />
  8537. <img :src="word" alt v-else-if="fileType == 1" />
  8538. <img :src="video" alt v-else-if="fileType == 2" />
  8539. <img :src="word2" alt v-else-if="fileType == 3" />
  8540. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8541. <div class="deleteWord" @click="clean(1)">
  8542. <img src="../assets/icon/deleteWorks.png" alt />
  8543. </div>
  8544. </div>
  8545. </div>
  8546. </div>
  8547. <div
  8548. class="upload_send"
  8549. @click="addCourseWorks(taskCount)"
  8550. v-if="!proVisible"
  8551. >
  8552. 提交
  8553. </div>
  8554. </el-dialog>
  8555. </div>
  8556. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8557. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @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(
  8558. '/courseDetail?userid=' +
  8559. userid +
  8560. '&oid=' +
  8561. oid +
  8562. '&org=' +
  8563. org +
  8564. '&cid=' +
  8565. classId +
  8566. '&courseId=' +
  8567. id +
  8568. '&tType=' +
  8569. tType +
  8570. '&screenType=' +
  8571. screenType+
  8572. '&role=' +
  8573. role
  8574. )"></classRoomHelper>
  8575. <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(
  8576. '/courseDetail?userid=' +
  8577. userid +
  8578. '&oid=' +
  8579. oid +
  8580. '&org=' +
  8581. org +
  8582. '&cid=' +
  8583. classId +
  8584. '&courseId=' +
  8585. id +
  8586. '&tType=' +
  8587. tType +
  8588. '&screenType=' +
  8589. screenType+
  8590. '&role=' +
  8591. role
  8592. )"></studentClassRoomHelper>
  8593. </div>
  8594. <div
  8595. class="pButton"
  8596. @click="(pzDialog = true), selectPz()"
  8597. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8598. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8599. >
  8600. <!-- 批 -->
  8601. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8602. </div>
  8603. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8604. <div class="pzTop2">
  8605. <!-- <div>评论</div>
  8606. <div @click="pzDialog = false">
  8607. <img src="../assets/close1.png" alt="" />
  8608. </div> -->
  8609. <div class="checkbox">
  8610. <!-- <div class="check" style="font-size: 25px; position: unset">
  8611. 评论
  8612. </div> -->
  8613. <div class="cb-tabList">
  8614. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8615. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8616. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8617. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8618. </div>
  8619. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8620. <el-option label="时间降序" :value="1"></el-option>
  8621. <el-option label="时间升序" :value="2"></el-option>
  8622. <el-option label="我的评课" :value="3"></el-option>
  8623. </el-select>
  8624. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8625. </div>
  8626. </div>
  8627. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8628. <div class="pzListBox" v-if="pzList && pzList.length">
  8629. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8630. <div class="pzNavTop">
  8631. <div>评</div>
  8632. <div>
  8633. {{
  8634. pz.username && pz.username.length > 5
  8635. ? pz.username.substring(0, 5) + "..."
  8636. : pz.username
  8637. }}的评论
  8638. </div>
  8639. <div
  8640. class="pzDelete"
  8641. v-if="pz.userid == userid"
  8642. @click="deletePz(pz.id)"
  8643. >
  8644. 删除
  8645. </div>
  8646. </div>
  8647. <div
  8648. @click="checkImg(getImgList(pz.content))"
  8649. class="pzContent cont"
  8650. v-html="pz.content"
  8651. v-if="pz.type == '1'"
  8652. ></div>
  8653. <div class="pzContent" v-if="pz.type == '2'">
  8654. <audio :src="pz.content" controls="controls" ref="audio">
  8655. Your browser does not support the audio element.
  8656. </audio>
  8657. </div>
  8658. <div class="pzContent" v-if="pz.type == '3'">
  8659. <img
  8660. :src="pz.content"
  8661. style="width: 90%; margin: 0 auto; display: block"
  8662. @click="previewImg(pz.content)"
  8663. />
  8664. </div>
  8665. <div class="timeAndReply">
  8666. <div class="time">
  8667. {{ pz.time }}
  8668. </div>
  8669. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8670. </div>
  8671. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8672. <div
  8673. v-for="(h, hIndex) in pz.hfList"
  8674. :key="hIndex"
  8675. class="hfItem"
  8676. >
  8677. <div class="whoReplyWho">
  8678. <div class="hfName">{{ h.username }}</div>
  8679. <div class="hfImg">
  8680. <img src="../assets/icon/newIcons/right.png" alt="" />
  8681. </div>
  8682. <div class="hfName">{{ pz.username }}</div>
  8683. </div>
  8684. <div class="hfContent" v-html="h.content"></div>
  8685. <div class="hfBottom">
  8686. <div class="hfTime">{{ h.time }}</div>
  8687. <div
  8688. class="deleteHfItem"
  8689. @click="deleteReply(h.id)"
  8690. v-if="userid == h.userid"
  8691. >
  8692. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8693. </div>
  8694. </div>
  8695. </div>
  8696. </div>
  8697. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8698. <div class="replyInput">
  8699. <el-input v-model="reply[pzIndex]"></el-input>
  8700. </div>
  8701. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8702. </div> -->
  8703. </div>
  8704. </div>
  8705. <div class="noPz" v-else>
  8706. <img src="../assets/icon/noPz.png" alt="" />
  8707. </div>
  8708. <div class="addPzButton">
  8709. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8710. 添加评论
  8711. </div>
  8712. <!-- <div class="img1">
  8713. <div @click="(addPzDialog = true), (pzType = 2)">
  8714. <img src="../assets/audio.png" /><span>音频</span>
  8715. </div>
  8716. </div> -->
  8717. </div>
  8718. </div>
  8719. <div class="scoreList" v-if="commentTagShow==1">
  8720. <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"/>
  8721. </div>
  8722. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8723. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8724. </div>
  8725. </div>
  8726. <div
  8727. v-if="toolDialogVisible == true"
  8728. class="toolMask"
  8729. @click="toolDialogVisible = false"
  8730. ></div>
  8731. <div v-if="toolDialogVisible == true" class="addToolCss">
  8732. <div class="toolTop">
  8733. <div style="font-weight: bold">新增工具</div>
  8734. <div @click="toolDialogVisible = false">
  8735. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8736. </div>
  8737. </div>
  8738. <div class="tool_box">
  8739. <div class="tool_type_box">
  8740. <div class="chooseWho">
  8741. <div
  8742. :class="toolType == 0 ? 'isChooseActive' : ''"
  8743. @click="(toolType = 0), $forceUpdate()"
  8744. >
  8745. 互动类
  8746. </div>
  8747. <div
  8748. :class="toolType == 1 ? 'isChooseActive' : ''"
  8749. @click="(toolType = 1), $forceUpdate()"
  8750. >
  8751. 思维类
  8752. </div>
  8753. <div
  8754. :class="toolType == 2 ? 'isChooseActive' : ''"
  8755. @click="(toolType = 2), $forceUpdate()"
  8756. >
  8757. 测评类
  8758. </div>
  8759. <div
  8760. :class="toolType == 3 ? 'isChooseActive' : ''"
  8761. @click="(toolType = 3), $forceUpdate()"
  8762. >
  8763. 编程类
  8764. </div>
  8765. <div
  8766. :class="toolType == 5 ? 'isChooseActive' : ''"
  8767. @click="(toolType = 5), $forceUpdate()"
  8768. >
  8769. 学科类
  8770. </div>
  8771. </div>
  8772. </div>
  8773. <div>
  8774. <div class="toolSort" v-if="toolType == 0">
  8775. <div
  8776. class="tool"
  8777. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8778. @click="addTools2(10)"
  8779. >
  8780. <div class="whiteBIcon">
  8781. <img src="../assets/icon/thirdToolList/time.png" alt />
  8782. <div style="margin: 5px 0">倒计时</div>
  8783. </div>
  8784. <div class="check">
  8785. <div
  8786. v-if="checktoolArray.indexOf(10) == -1"
  8787. class="noChoose"
  8788. ></div>
  8789. <div v-else class="isChoose"></div>
  8790. </div>
  8791. </div>
  8792. <div
  8793. class="tool"
  8794. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8795. @click="addTools2(65)"
  8796. >
  8797. <div class="whiteBIcon">
  8798. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8799. <div style="margin: 5px 0">挑人</div>
  8800. </div>
  8801. <div class="check">
  8802. <div
  8803. v-if="checktoolArray.indexOf(65) == -1"
  8804. class="noChoose"
  8805. ></div>
  8806. <div v-else class="isChoose"></div>
  8807. </div>
  8808. </div>
  8809. </div>
  8810. <div class="toolSort" v-if="toolType == 1">
  8811. <div
  8812. class="tool"
  8813. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8814. @click="addTools2(7)"
  8815. >
  8816. <div class="whiteBIcon">
  8817. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8818. <div style="margin: 5px 0">思维网格</div>
  8819. </div>
  8820. <div class="check">
  8821. <div
  8822. v-if="checktoolArray.indexOf(7) == -1"
  8823. class="noChoose"
  8824. ></div>
  8825. <div v-else class="isChoose"></div>
  8826. </div>
  8827. </div>
  8828. <div
  8829. class="tool"
  8830. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8831. @click="addTools2(1)"
  8832. >
  8833. <div class="whiteBIcon">
  8834. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8835. <div style="margin: 5px 0">电子白板</div>
  8836. </div>
  8837. <div class="check">
  8838. <div
  8839. v-if="checktoolArray.indexOf(1) == -1"
  8840. class="noChoose"
  8841. ></div>
  8842. <div v-else class="isChoose"></div>
  8843. </div>
  8844. </div>
  8845. <div
  8846. class="tool"
  8847. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8848. @click="addTools2(52)"
  8849. >
  8850. <div class="whiteBIcon">
  8851. <img src="../assets/icon/fourthToolList/text.png" alt />
  8852. <div style="margin: 5px 0">文档</div>
  8853. </div>
  8854. <div class="check">
  8855. <div
  8856. v-if="checktoolArray.indexOf(52) == -1"
  8857. class="noChoose"
  8858. ></div>
  8859. <div v-else class="isChoose"></div>
  8860. </div>
  8861. </div>
  8862. <div
  8863. class="tool"
  8864. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8865. @click="addTools2(3)"
  8866. >
  8867. <div class="whiteBIcon">
  8868. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8869. <div style="margin: 5px 0">思维导图</div>
  8870. </div>
  8871. <div class="check">
  8872. <div
  8873. v-if="checktoolArray.indexOf(3) == -1"
  8874. class="noChoose"
  8875. ></div>
  8876. <div v-else class="isChoose"></div>
  8877. </div>
  8878. </div>
  8879. <div
  8880. class="tool"
  8881. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8882. @click="addTools2(48)"
  8883. >
  8884. <div class="whiteBIcon">
  8885. <img src="../assets/icon/fourthToolList/table.png" alt />
  8886. <div style="margin: 5px 0">表格</div>
  8887. </div>
  8888. <div class="check">
  8889. <div
  8890. v-if="checktoolArray.indexOf(48) == -1"
  8891. class="noChoose"
  8892. ></div>
  8893. <div v-else class="isChoose"></div>
  8894. </div>
  8895. </div>
  8896. </div>
  8897. <div class="toolSort" v-if="toolType == 6">
  8898. <div v-show="tooC == 49">
  8899. <img
  8900. @click="addTools(tooC, toolIndex, taskCount)"
  8901. src="../assets/icon/fourthToolList/group.png"
  8902. alt
  8903. />
  8904. <div style="margin: 5px 0">学生分组</div>
  8905. </div>
  8906. </div>
  8907. <div class="toolSort" v-if="toolType == 2">
  8908. <div
  8909. class="tool"
  8910. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8911. @click="addTools2(16)"
  8912. >
  8913. <div class="whiteBIcon">
  8914. <img src="../assets/icon/thirdToolList/work.png" alt />
  8915. <div style="margin: 5px 0">作业提交</div>
  8916. </div>
  8917. <div class="check">
  8918. <div
  8919. v-if="checktoolArray.indexOf(16) == -1"
  8920. class="noChoose"
  8921. ></div>
  8922. <div v-else class="isChoose"></div>
  8923. </div>
  8924. </div>
  8925. <div
  8926. class="tool"
  8927. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8928. @click="addTools2(50)"
  8929. >
  8930. <div class="whiteBIcon">
  8931. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8932. <div style="margin: 5px 0">批量上传</div>
  8933. </div>
  8934. <div class="check">
  8935. <div
  8936. v-if="checktoolArray.indexOf(50) == -1"
  8937. class="noChoose"
  8938. ></div>
  8939. <div v-else class="isChoose"></div>
  8940. </div>
  8941. </div>
  8942. </div>
  8943. <div class="toolSort" v-if="toolType == 3">
  8944. <div
  8945. class="tool"
  8946. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8947. @click="addTools2(18)"
  8948. >
  8949. <div class="whiteBIcon">
  8950. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8951. <div style="margin: 5px 0">训练平台</div>
  8952. </div>
  8953. <div class="check">
  8954. <div
  8955. v-if="checktoolArray.indexOf(18) == -1"
  8956. class="noChoose"
  8957. ></div>
  8958. <div v-else class="isChoose"></div>
  8959. </div>
  8960. </div>
  8961. <div
  8962. class="tool"
  8963. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8964. @click="addTools2(21)"
  8965. >
  8966. <div class="whiteBIcon">
  8967. <img src="../assets/icon/fourthToolList/program.png" alt />
  8968. <div style="margin: 5px 0">AIoT Blockly</div>
  8969. </div>
  8970. <div class="check">
  8971. <div
  8972. v-if="checktoolArray.indexOf(21) == -1"
  8973. class="noChoose"
  8974. ></div>
  8975. <div v-else class="isChoose"></div>
  8976. </div>
  8977. </div>
  8978. <div
  8979. class="tool"
  8980. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8981. @click="addTools2(23)"
  8982. >
  8983. <div class="whiteBIcon">
  8984. <img
  8985. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8986. alt
  8987. />
  8988. <div style="margin: 5px 0">AI Python</div>
  8989. </div>
  8990. <div class="check">
  8991. <div
  8992. v-if="checktoolArray.indexOf(23) == -1"
  8993. class="noChoose"
  8994. ></div>
  8995. <div v-else class="isChoose"></div>
  8996. </div>
  8997. </div>
  8998. <div
  8999. class="tool"
  9000. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9001. @click="addTools2(24)"
  9002. >
  9003. <div class="whiteBIcon">
  9004. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  9005. <div style="margin: 5px 0">AI Blockly</div>
  9006. </div>
  9007. <div class="check">
  9008. <div
  9009. v-if="checktoolArray.indexOf(24) == -1"
  9010. class="noChoose"
  9011. ></div>
  9012. <div v-else class="isChoose"></div>
  9013. </div>
  9014. </div>
  9015. <div
  9016. class="tool"
  9017. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9018. @click="addTools2(32)"
  9019. >
  9020. <div class="whiteBIcon">
  9021. <img src="../assets/icon/thirdToolList/code.png" alt />
  9022. <div style="margin: 5px 0">源码编辑</div>
  9023. </div>
  9024. <div class="check">
  9025. <div
  9026. v-if="checktoolArray.indexOf(32) == -1"
  9027. class="noChoose"
  9028. ></div>
  9029. <div v-else class="isChoose"></div>
  9030. </div>
  9031. </div>
  9032. <div
  9033. class="tool"
  9034. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9035. @click="addTools2(57)"
  9036. >
  9037. <div class="whiteBIcon">
  9038. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  9039. <div style="margin: 5px 0">CocoPi</div>
  9040. </div>
  9041. <div class="check">
  9042. <div
  9043. v-if="checktoolArray.indexOf(57) == -1"
  9044. class="noChoose"
  9045. ></div>
  9046. <div v-else class="isChoose"></div>
  9047. </div>
  9048. </div>
  9049. <div
  9050. class="tool"
  9051. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9052. @click="addTools2(63)"
  9053. >
  9054. <div class="whiteBIcon">
  9055. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  9056. <div style="margin: 5px 0">海龟编程</div>
  9057. </div>
  9058. <div class="check">
  9059. <div
  9060. v-if="checktoolArray.indexOf(63) == -1"
  9061. class="noChoose"
  9062. ></div>
  9063. <div v-else class="isChoose"></div>
  9064. </div>
  9065. </div>
  9066. <div
  9067. class="tool"
  9068. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9069. @click="addTools2(71)"
  9070. >
  9071. <div class="whiteBIcon">
  9072. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  9073. <div style="margin: 5px 0">AI智能体</div>
  9074. </div>
  9075. <div class="check">
  9076. <div
  9077. v-if="checktoolArray.indexOf(71) == -1"
  9078. class="noChoose"
  9079. ></div>
  9080. <div v-else class="isChoose"></div>
  9081. </div>
  9082. </div>
  9083. </div>
  9084. <div class="toolSort" v-if="toolType == 7">
  9085. <div
  9086. class="tool"
  9087. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9088. @click="addTools2(40)"
  9089. >
  9090. <div class="whiteBIcon">
  9091. <img src="../assets/icon/secondToolList/eval.png" alt />
  9092. <div style="margin: 5px 0">个人评价</div>
  9093. </div>
  9094. <div class="check">
  9095. <div
  9096. v-if="checktoolArray.indexOf(40) == -1"
  9097. class="noChoose"
  9098. ></div>
  9099. <div v-else class="isChoose"></div>
  9100. </div>
  9101. </div>
  9102. </div>
  9103. <div class="toolSort" v-if="toolType == 5">
  9104. <div
  9105. class="tool"
  9106. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9107. @click="addTools2(28)"
  9108. >
  9109. <div class="whiteBIcon">
  9110. <img src="../assets/icon/secondToolList/translation.png" alt />
  9111. <div style="margin: 5px 0">翻译</div>
  9112. </div>
  9113. <div class="check">
  9114. <div
  9115. v-if="checktoolArray.indexOf(28) == -1"
  9116. class="noChoose"
  9117. ></div>
  9118. <div v-else class="isChoose"></div>
  9119. </div>
  9120. </div>
  9121. <div
  9122. class="tool"
  9123. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9124. @click="addTools2(31)"
  9125. >
  9126. <div class="whiteBIcon">
  9127. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9128. <div style="margin: 5px 0">数字画板</div>
  9129. </div>
  9130. <div class="check">
  9131. <div
  9132. v-if="checktoolArray.indexOf(31) == -1"
  9133. class="noChoose"
  9134. ></div>
  9135. <div v-else class="isChoose"></div>
  9136. </div>
  9137. </div>
  9138. <div
  9139. class="tool"
  9140. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9141. @click="addTools2(39)"
  9142. >
  9143. <div class="whiteBIcon">
  9144. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9145. <div style="margin: 5px 0">GeoGebra</div>
  9146. </div>
  9147. <div class="check">
  9148. <div
  9149. v-if="checktoolArray.indexOf(39) == -1"
  9150. class="noChoose"
  9151. ></div>
  9152. <div v-else class="isChoose"></div>
  9153. </div>
  9154. </div>
  9155. <div
  9156. class="tool"
  9157. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9158. @click="addTools2(66)"
  9159. >
  9160. <div class="whiteBIcon">
  9161. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9162. <div style="margin: 5px 0">公式编辑</div>
  9163. </div>
  9164. <div class="check">
  9165. <div
  9166. v-if="checktoolArray.indexOf(66) == -1"
  9167. class="noChoose"
  9168. ></div>
  9169. <div v-else class="isChoose"></div>
  9170. </div>
  9171. </div>
  9172. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9173. <div class="whiteBIcon" @click="addTools2(67)">
  9174. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9175. <div style="margin: 5px 0">分子结构</div>
  9176. </div>
  9177. <div class="check" @click="addTools2(67)">
  9178. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9179. <div v-else class="isChoose"></div>
  9180. </div>
  9181. </div> -->
  9182. <div
  9183. class="tool"
  9184. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9185. @click="addTools2(68)"
  9186. >
  9187. <div class="whiteBIcon">
  9188. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9189. <div style="margin: 5px 0">时间轴</div>
  9190. </div>
  9191. <div class="check">
  9192. <div
  9193. v-if="checktoolArray.indexOf(68) == -1"
  9194. class="noChoose"
  9195. ></div>
  9196. <div v-else class="isChoose"></div>
  9197. </div>
  9198. </div>
  9199. <!-- <div
  9200. class="tool"
  9201. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9202. @click="addTools2(69)"
  9203. >
  9204. <div class="whiteBIcon">
  9205. <img src="../assets/icon/secondToolList/english.png" alt />
  9206. <div style="margin: 5px 0">英语写作</div>
  9207. </div>
  9208. <div class="check">
  9209. <div
  9210. v-if="checktoolArray.indexOf(69) == -1"
  9211. class="noChoose"
  9212. ></div>
  9213. <div v-else class="isChoose"></div>
  9214. </div>
  9215. </div> -->
  9216. </div>
  9217. <div class="toolSort" v-if="toolType == 4">
  9218. <div
  9219. class="tool"
  9220. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9221. @click="addTools2(26)"
  9222. >
  9223. <div class="whiteBIcon">
  9224. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9225. <div style="margin: 5px 0">课程设计</div>
  9226. </div>
  9227. <div class="check">
  9228. <div
  9229. v-if="checktoolArray.indexOf(26) == -1"
  9230. class="noChoose"
  9231. ></div>
  9232. <div v-else class="isChoose"></div>
  9233. </div>
  9234. </div>
  9235. <div
  9236. class="tool"
  9237. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9238. @click="addTools2(25)"
  9239. >
  9240. <div class="whiteBIcon">
  9241. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9242. <div style="margin: 5px 0">目标管理</div>
  9243. </div>
  9244. <div class="check">
  9245. <div
  9246. v-if="checktoolArray.indexOf(25) == -1"
  9247. class="noChoose"
  9248. ></div>
  9249. <div v-else class="isChoose"></div>
  9250. </div>
  9251. </div>
  9252. </div>
  9253. </div>
  9254. </div>
  9255. <span
  9256. slot="footer"
  9257. class="dialog-footer"
  9258. style="display: block; text-align: center; padding: 0 0 10px 0"
  9259. >
  9260. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9261. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9262. </span>
  9263. </div>
  9264. <div
  9265. v-if="replyDialogVisible == true"
  9266. class="addDialogCss"
  9267. v-el-drag-dialog
  9268. >
  9269. <div class="pzTop">
  9270. <div class="teacherPz">
  9271. <div class="teacherPzImg">
  9272. <img src="../assets/icon/teacherPz.png" alt="" />
  9273. </div>
  9274. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9275. </div>
  9276. <div @click="replyDialogVisible = false">
  9277. <img src="../assets/close1.png" class="pzClose" alt="" />
  9278. </div>
  9279. </div>
  9280. <div class="addPzBox">
  9281. <!-- <div class="addPzCheck">
  9282. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9283. >文本</span
  9284. >
  9285. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9286. >音频</span
  9287. >
  9288. </div> -->
  9289. <div style="height: calc(100% - 50px)">
  9290. <editor-bar
  9291. class="binfo_input pzConText"
  9292. style="width: 100% !important; margin: 0 auto"
  9293. placeholder="请输入回复描述"
  9294. v-model="reply"
  9295. @change="change"
  9296. ></editor-bar>
  9297. </div>
  9298. <div class="addTextCss" @click="addHf">确定</div>
  9299. </div>
  9300. </div>
  9301. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9302. <div class="pzTop">
  9303. <div class="teacherPz">
  9304. <div class="teacherPzImg">
  9305. <img src="../assets/icon/teacherPz.png" alt="" />
  9306. </div>
  9307. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9308. </div>
  9309. <div @click="addPzDialog = false">
  9310. <img src="../assets/close1.png" class="pzClose" alt="" />
  9311. </div>
  9312. </div>
  9313. <div class="addPzBox">
  9314. <div class="addPzCheck">
  9315. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9316. >文本</span
  9317. >
  9318. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9319. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9320. >音频</span
  9321. >
  9322. </div>
  9323. <div style="height: calc(100% - 95px)">
  9324. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9325. v-if="pzType == 1"></textarea> -->
  9326. <editor-bar
  9327. class="binfo_input pzConText"
  9328. style="width: 100% !important"
  9329. placeholder="请输入任务描述"
  9330. v-model="pzConText"
  9331. @change="change"
  9332. v-if="pzType == 1"
  9333. ></editor-bar>
  9334. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9335. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9336. <div @click="addImg($event)">
  9337. <el-button type="primary">上传图片</el-button>
  9338. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9339. @change="beforeUpload1($event, 4)" />
  9340. </div>
  9341. </div> -->
  9342. </div>
  9343. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9344. 确定
  9345. </div>
  9346. </div>
  9347. </div>
  9348. <div v-if="proVisible" class="mask">
  9349. <div class="progressBox">
  9350. <!-- <div id="closePro" class="closeCss">
  9351. <img src="../assets/icon/close.png" alt />
  9352. </div> -->
  9353. <div class="lbox">
  9354. <img src="../assets/loading.gif" />上传中,请稍后
  9355. </div>
  9356. <div style="margin-bottom: 10px">
  9357. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9358. </div>
  9359. <el-progress
  9360. :text-inside="true"
  9361. :stroke-width="20"
  9362. :percentage="progress"
  9363. style="width: 80%"
  9364. ></el-progress>
  9365. </div>
  9366. </div>
  9367. <div v-if="proVisible2" class="mask">
  9368. <div class="progressBox">
  9369. <div class="lbox">
  9370. <img src="../assets/loading.gif" />上传中,请稍后
  9371. </div>
  9372. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9373. </div>
  9374. </div>
  9375. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9376. <img width="100%" :src="dialogImageUrl" alt />
  9377. </el-dialog>
  9378. <el-dialog
  9379. :title="noteName != '' ? noteName : '查看问卷'"
  9380. :visible.sync="dialogVisible5"
  9381. :append-to-body="true"
  9382. width="1000px"
  9383. :before-close="handleClose"
  9384. class="dialog_diy dialog_diy3"
  9385. >
  9386. <div>
  9387. <div
  9388. class="a_add_title"
  9389. style="
  9390. display: flex;
  9391. flex-direction: row;
  9392. align-items: center;
  9393. justify-content: center;
  9394. "
  9395. >
  9396. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9397. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9398. </div>
  9399. <div class="a_addBox">
  9400. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9401. 题目内容
  9402. </div>
  9403. <div
  9404. class="a_add_box"
  9405. v-for="(item1, index1) in askJson.askCount"
  9406. :key="index1"
  9407. >
  9408. <div class="a_add_head">
  9409. <div style="display: flex">
  9410. <span class="askIndex"> {{ index1 + 1 }}</span>
  9411. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9412. </div>
  9413. <img
  9414. v-if="askJson.askJson[index1].img"
  9415. :src="askJson.askJson[index1].img"
  9416. style="height: 300px; margin-top: 10px; max-width: 100%"
  9417. />
  9418. </div>
  9419. <div class="a_add_body">
  9420. <div class="a_add_input">
  9421. <el-radio-group
  9422. v-model="radio[index1]"
  9423. v-if="
  9424. askJson.askJson[index1].type == '1' ||
  9425. !askJson.askJson[index1].type
  9426. "
  9427. >
  9428. <el-radio
  9429. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9430. .checkList"
  9431. :key="checkIndex"
  9432. :label="checkIndex"
  9433. :disabled="isAnswer"
  9434. class="redioStyle"
  9435. ><span v-html="item2"></span
  9436. ></el-radio>
  9437. </el-radio-group>
  9438. <el-checkbox-group
  9439. v-model="radio[index1]"
  9440. v-if="askJson.askJson[index1].type == '2'"
  9441. >
  9442. <el-checkbox
  9443. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9444. .checkList"
  9445. :key="checkIndex1"
  9446. :label="checkIndex1"
  9447. :disabled="isAnswer"
  9448. class="redioStyle"
  9449. ><span v-html="item2"></span>
  9450. </el-checkbox>
  9451. </el-checkbox-group>
  9452. </div>
  9453. </div>
  9454. </div>
  9455. </div>
  9456. </div>
  9457. <span slot="footer" class="dialog-footer">
  9458. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9459. >取 消</el-button
  9460. >
  9461. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9462. >确 定</el-button
  9463. >
  9464. </span>
  9465. </el-dialog>
  9466. <el-dialog
  9467. :title="noteName != '' ? noteName : '查看问卷'"
  9468. :visible.sync="dialogVisible5Teacher"
  9469. :append-to-body="true"
  9470. width="1000px"
  9471. :before-close="handleClose"
  9472. class="dialog_diy dialog_diy3"
  9473. >
  9474. <div>
  9475. <div class="w_name">
  9476. 学生姓名:<span>{{ sStudent.student }}</span>
  9477. </div>
  9478. <div
  9479. class="a_add_title"
  9480. style="
  9481. display: flex;
  9482. flex-direction: row;
  9483. align-items: center;
  9484. justify-content: center;
  9485. "
  9486. >
  9487. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9488. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9489. </div>
  9490. <div class="a_addBox">
  9491. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9492. 题目内容
  9493. </div>
  9494. <div
  9495. class="a_add_box"
  9496. v-for="(item1, index1) in askJson.askCount"
  9497. :key="index1"
  9498. >
  9499. <div class="a_add_head">
  9500. <div style="display: flex">
  9501. <span class="askIndex">{{ index1 + 1 }}</span>
  9502. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9503. </div>
  9504. <img
  9505. v-if="askJson.askJson[index1].img"
  9506. :src="askJson.askJson[index1].img"
  9507. style="height: 300px; margin-top: 10px; max-width: 100%"
  9508. />
  9509. </div>
  9510. <div class="a_add_body">
  9511. <div class="a_add_input">
  9512. <el-radio-group
  9513. v-model="radio[index1]"
  9514. v-if="
  9515. askJson.askJson[index1].type == '1' ||
  9516. !askJson.askJson[index1].type
  9517. "
  9518. >
  9519. <el-radio
  9520. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9521. .checkList"
  9522. :key="checkIndex"
  9523. :label="checkIndex"
  9524. :disabled="isAnswer"
  9525. class="redioStyle"
  9526. ><span v-html="item2"></span
  9527. ></el-radio>
  9528. </el-radio-group>
  9529. <el-checkbox-group
  9530. v-model="radio[index1]"
  9531. v-if="askJson.askJson[index1].type == '2'"
  9532. >
  9533. <el-checkbox
  9534. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9535. .checkList"
  9536. :key="checkIndex1"
  9537. :label="checkIndex1"
  9538. :disabled="isAnswer"
  9539. class="redioStyle"
  9540. ><span v-html="item2"></span>
  9541. </el-checkbox>
  9542. </el-checkbox-group>
  9543. </div>
  9544. </div>
  9545. </div>
  9546. </div>
  9547. </div>
  9548. <span slot="footer" class="dialog-footer">
  9549. <el-button
  9550. @click="dialogVisible5Teacher = false"
  9551. v-show="noteName == ''"
  9552. >取 消</el-button
  9553. >
  9554. <el-button
  9555. type="primary"
  9556. @click="addStudentAskTeacher"
  9557. v-show="noteName == ''"
  9558. >确 定</el-button
  9559. >
  9560. </span>
  9561. </el-dialog>
  9562. <el-dialog
  9563. :title="noteName != '' ? noteName : '查看选择题'"
  9564. :visible.sync="dialogVisibleChoice"
  9565. :append-to-body="true"
  9566. width="1000px"
  9567. :before-close="handleClose"
  9568. class="dialog_diy dialog_diy3"
  9569. >
  9570. <div>
  9571. <!-- <div class="a_add_title" style="
  9572. display: flex;
  9573. flex-direction: row;
  9574. align-items: center;
  9575. justify-content: center;
  9576. ">
  9577. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9578. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9579. </div> -->
  9580. <div class="a_addBox">
  9581. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9582. 题目内容
  9583. </div>
  9584. <div
  9585. class="a_add_box"
  9586. v-for="(item1, index1) in testJson.testCount"
  9587. :key="index1"
  9588. >
  9589. <div class="a_add_head">
  9590. <div style="display: flex;">
  9591. <span class="askIndex">{{ index1 + 1 }}</span>
  9592. <div
  9593. v-if="testJson.testJson[index1].type == '1'"
  9594. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9595. >
  9596. (单选题)
  9597. </div>
  9598. <div
  9599. v-if="testJson.testJson[index1].type == '2'"
  9600. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9601. >
  9602. (多选题)
  9603. </div>
  9604. <div class="renderedFor"><span>题目:</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9605. </div>
  9606. <img
  9607. v-if="testJson.testJson[index1].img"
  9608. :src="testJson.testJson[index1].img"
  9609. style="height: 300px; margin-top: 10px; max-width: 100%"
  9610. />
  9611. </div>
  9612. <div
  9613. class="timuImgBox"
  9614. v-if="
  9615. testJson.testJson[index1].timuList &&
  9616. testJson.testJson[index1].timuList.length
  9617. "
  9618. >
  9619. <div
  9620. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9621. :key="tIndex"
  9622. class="timuImg"
  9623. @click.stop="previewImg(timg.src)"
  9624. >
  9625. <img :src="timg.src" alt="" />
  9626. </div>
  9627. </div>
  9628. <div class="a_add_body">
  9629. <div class="a_add_input">
  9630. <el-radio-group
  9631. v-model="radio[index1]"
  9632. v-if="testJson.testJson[index1].type == '1'"
  9633. >
  9634. <div class="radioBox">
  9635. <el-radio
  9636. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9637. .checkList"
  9638. :key="checkIndex"
  9639. :label="checkIndex"
  9640. :disabled="isAnswer"
  9641. class="redioStyle"
  9642. >
  9643. <div
  9644. style="margin-right: 10px"
  9645. v-if="item2 && item2.imgType && item2.imgType == 1"
  9646. >
  9647. <div class="inImg" @click.stop="previewImg(item2.src)">
  9648. <img :src="item2.src" alt="" />
  9649. </div>
  9650. </div>
  9651. <span v-else v-html="item2"></span>
  9652. </el-radio>
  9653. </div>
  9654. </el-radio-group>
  9655. <el-checkbox-group
  9656. v-model="radio[index1]"
  9657. v-if="testJson.testJson[index1].type == '2'"
  9658. >
  9659. <div class="radioBox">
  9660. <el-checkbox
  9661. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9662. .checkList"
  9663. :key="checkIndex"
  9664. :label="checkIndex"
  9665. :disabled="isAnswer"
  9666. class="redioStyle"
  9667. >
  9668. <div
  9669. style="margin-right: 10px"
  9670. v-if="item2 && item2.imgType && item2.imgType == 1"
  9671. >
  9672. <div class="inImg" @click.stop="previewImg(item2.src)">
  9673. <img :src="item2.src" alt="" />
  9674. </div>
  9675. </div>
  9676. <span v-else v-html="item2"></span>
  9677. </el-checkbox>
  9678. </div>
  9679. </el-checkbox-group>
  9680. </div>
  9681. </div>
  9682. </div>
  9683. </div>
  9684. </div>
  9685. <span slot="footer" class="dialog-footer">
  9686. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9687. >取 消</el-button
  9688. >
  9689. <el-button
  9690. type="primary"
  9691. @click="addStudentTest"
  9692. v-show="noteName == ''"
  9693. >确 定</el-button
  9694. >
  9695. </span>
  9696. </el-dialog>
  9697. <el-dialog
  9698. :title="noteName != '' ? noteName : '查看选择题'"
  9699. :visible.sync="dialogVisibleChoiceTeacher"
  9700. :append-to-body="true"
  9701. width="1000px"
  9702. :before-close="handleClose"
  9703. class="dialog_diy dialog_diy3"
  9704. >
  9705. <div>
  9706. <div class="w_name">
  9707. 学生姓名:<span>{{ sStudent.student }}</span>
  9708. </div>
  9709. <div class="a_addBox">
  9710. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9711. 题目内容
  9712. </div>
  9713. <div
  9714. class="a_add_box"
  9715. v-for="(item1, index1) in testJson.testCount"
  9716. :key="index1"
  9717. >
  9718. <div class="a_add_head">
  9719. <div style="display: flex">
  9720. <span class="askIndex">{{ index1 + 1 }}</span>
  9721. <div
  9722. v-if="testJson.testJson[index1].type == '1'"
  9723. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9724. >
  9725. (单选题)
  9726. </div>
  9727. <div
  9728. v-if="testJson.testJson[index1].type == '2'"
  9729. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9730. >
  9731. (多选题)
  9732. </div>
  9733. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9734. </div>
  9735. <img
  9736. v-if="testJson.testJson[index1].img"
  9737. :src="testJson.testJson[index1].img"
  9738. style="height: 300px; margin-top: 10px; max-width: 100%"
  9739. />
  9740. </div>
  9741. <div
  9742. class="timuImgBox"
  9743. v-if="
  9744. testJson.testJson[index1].timuList &&
  9745. testJson.testJson[index1].timuList.length
  9746. "
  9747. >
  9748. <div
  9749. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9750. :key="tIndex"
  9751. class="timuImg"
  9752. @click.stop="previewImg(timg.src)"
  9753. >
  9754. <img :src="timg.src" alt="" />
  9755. </div>
  9756. </div>
  9757. <div class="a_add_body">
  9758. <div class="a_add_input">
  9759. <el-radio-group
  9760. v-model="radio[index1]"
  9761. v-if="testJson.testJson[index1].type == '1'"
  9762. >
  9763. <div class="radioBox">
  9764. <el-radio
  9765. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9766. .checkList"
  9767. :key="checkIndex"
  9768. :label="checkIndex"
  9769. :disabled="isAnswer"
  9770. class="redioStyle"
  9771. >
  9772. <div
  9773. style="margin-right: 10px"
  9774. v-if="item2 && item2.imgType && item2.imgType == 1"
  9775. >
  9776. <div class="inImg" @click.stop="previewImg(item2.src)">
  9777. <img :src="item2.src" alt="" />
  9778. </div>
  9779. </div>
  9780. <span v-else v-html="item2"></span>
  9781. </el-radio>
  9782. </div>
  9783. </el-radio-group>
  9784. <el-checkbox-group
  9785. v-model="radio[index1]"
  9786. v-if="testJson.testJson[index1].type == '2'"
  9787. >
  9788. <div class="radioBox">
  9789. <el-checkbox
  9790. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9791. .checkList"
  9792. :key="checkIndex"
  9793. :label="checkIndex"
  9794. :disabled="isAnswer"
  9795. class="redioStyle"
  9796. >
  9797. <div
  9798. style="margin-right: 10px"
  9799. v-if="item2 && item2.imgType && item2.imgType == 1"
  9800. >
  9801. <div class="inImg" @click.stop="previewImg(item2.src)">
  9802. <img :src="item2.src" alt="" />
  9803. </div>
  9804. </div>
  9805. <span v-else v-html="item2"></span>
  9806. </el-checkbox>
  9807. </div>
  9808. </el-checkbox-group>
  9809. </div>
  9810. </div>
  9811. </div>
  9812. </div>
  9813. </div>
  9814. <span slot="footer" class="dialog-footer">
  9815. <el-button
  9816. @click="dialogVisibleChoiceTeacher = false"
  9817. v-show="noteName == ''"
  9818. >取 消</el-button
  9819. >
  9820. <el-button
  9821. type="primary"
  9822. @click="addStudentTestTeacher"
  9823. v-show="noteName == ''"
  9824. >确 定</el-button
  9825. >
  9826. </span>
  9827. </el-dialog>
  9828. <el-dialog
  9829. title="查看富文本"
  9830. :visible.sync="dialogVisible1"
  9831. :append-to-body="true"
  9832. width="500px"
  9833. :before-close="handleClose"
  9834. class="dialog_diy textCss"
  9835. >
  9836. <el-form style="font-size: 20px">
  9837. <el-form-item label="文本标题" class="textTitle">
  9838. <div style="font-size: 20px">{{ text.name }}</div>
  9839. </el-form-item>
  9840. <div>富文本内容</div>
  9841. <div
  9842. v-html="text.url"
  9843. style="font-size: 18px; padding: 40px 0 0 0"
  9844. ></div>
  9845. </el-form>
  9846. <span slot="footer" class="dialog-footer">
  9847. <el-button type="primary" @click="dialogVisible1 = false"
  9848. >确定</el-button
  9849. >
  9850. </span>
  9851. </el-dialog>
  9852. <el-dialog
  9853. title="文件预览"
  9854. :visible.sync="dialogVisible3"
  9855. width="50%"
  9856. :before-close="handleClose"
  9857. class="dialog_diy"
  9858. :class="{ fullStyle: full }"
  9859. >
  9860. <div slot="title" class="header-title">
  9861. <div style="color: #fff">文件预览</div>
  9862. <div style="position: absolute; top: 19px; right: 50px">
  9863. <img
  9864. src="../assets/full.png"
  9865. style="height: 16px; cursor: pointer"
  9866. alt=""
  9867. @click="fullTools"
  9868. />
  9869. </div>
  9870. </div>
  9871. <pdf
  9872. v-if="showPDF"
  9873. :pdfUrl="pptImgUrl"
  9874. style="width: 100%; height: 520px; overflow: auto"
  9875. :class="{ fullStyle: full }"
  9876. ></pdf>
  9877. <iframe
  9878. v-else
  9879. :src="pptImgUrl"
  9880. frameborder="0"
  9881. width="100%"
  9882. height="600"
  9883. :class="{ fullStyle: full }"
  9884. ></iframe>
  9885. </el-dialog>
  9886. <el-dialog
  9887. title="文件预览"
  9888. :visible.sync="dialogVisible6"
  9889. width="50%"
  9890. :before-close="handleClose"
  9891. class="dialog_diy"
  9892. >
  9893. <iframe
  9894. :src="pptImgUrl1"
  9895. frameborder="0"
  9896. width="100%"
  9897. height="600"
  9898. ></iframe>
  9899. </el-dialog>
  9900. <el-dialog
  9901. title="提示"
  9902. :visible.sync="dialogVisible4"
  9903. :append-to-body="true"
  9904. width="800px"
  9905. :before-close="handleClose"
  9906. class="dialog_diy notice"
  9907. >
  9908. <div>此功能暂未开放!</div>
  9909. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9910. </el-dialog>
  9911. <el-dialog
  9912. title="问答"
  9913. :visible.sync="answerDialogVisible"
  9914. :append-to-body="true"
  9915. width="800px"
  9916. :before-close="handleClose"
  9917. class="dialog_diy"
  9918. >
  9919. <div>
  9920. <div
  9921. style="
  9922. display: flex;
  9923. flex-wrap: nowrap;
  9924. flex-direction: column;
  9925. position: relative;
  9926. "
  9927. >
  9928. <div class="queTop" style="padding: 20px 0 20px 0">
  9929. <div class="question">
  9930. <img src="../assets/icon/question.png" alt />
  9931. </div>
  9932. <div class="queTitle">
  9933. <div style="width: 90px; min-width: 90px">提问:</div>
  9934. <div>{{ answerQ }}</div>
  9935. </div>
  9936. </div>
  9937. <div class="ediBottom">
  9938. <textarea
  9939. rows="6"
  9940. class="binfo_input"
  9941. cols
  9942. style="width: 95%; height: 120px"
  9943. v-model="questionAnswer"
  9944. ></textarea>
  9945. </div>
  9946. </div>
  9947. </div>
  9948. <div slot="footer">
  9949. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9950. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9951. </div>
  9952. </el-dialog>
  9953. <el-dialog
  9954. title="问答"
  9955. :visible.sync="answerDialogVisibleTeacher"
  9956. :append-to-body="true"
  9957. width="800px"
  9958. :before-close="handleClose"
  9959. class="dialog_diy"
  9960. >
  9961. <div>
  9962. <div class="w_name">
  9963. 学生姓名:<span>{{ sStudent.student }}</span>
  9964. </div>
  9965. <div
  9966. style="
  9967. display: flex;
  9968. flex-wrap: nowrap;
  9969. flex-direction: column;
  9970. position: relative;
  9971. "
  9972. >
  9973. <div class="queTop" style="padding: 20px 0 20px 0">
  9974. <div class="question">
  9975. <img src="../assets/icon/question.png" alt />
  9976. </div>
  9977. <div class="queTitle">
  9978. <div style="width: 90px; min-width: 90px">提问:</div>
  9979. <div>{{ answerQ }}</div>
  9980. </div>
  9981. </div>
  9982. <div class="ediBottom">
  9983. <textarea
  9984. rows="6"
  9985. class="binfo_input"
  9986. cols
  9987. style="width: 95%; height: 120px"
  9988. v-model="questionAnswer"
  9989. ></textarea>
  9990. </div>
  9991. </div>
  9992. </div>
  9993. <div slot="footer">
  9994. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9995. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9996. </div>
  9997. </el-dialog>
  9998. <el-dialog
  9999. title="倒计时"
  10000. :visible.sync="timeDialogVisible"
  10001. :append-to-body="true"
  10002. width="800px"
  10003. :before-close="handleClose"
  10004. class="dialog_diy"
  10005. >
  10006. <div>
  10007. <div style="margin-bottom: 20px; color: #999">
  10008. 提示:点击“+”或“-”修改倒计时时长。
  10009. </div>
  10010. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10011. </div>
  10012. <div slot="footer">
  10013. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10014. </div>
  10015. </el-dialog>
  10016. <el-dialog
  10017. title="权限设置"
  10018. :visible.sync="juriVisible"
  10019. :append-to-body="true"
  10020. width="400px"
  10021. :before-close="handleClose"
  10022. class="dialog_diy"
  10023. >
  10024. <div>
  10025. <div class="open_box">
  10026. <div class="switch_box">
  10027. <span>允许学生查看所有作业</span>
  10028. <el-switch
  10029. v-model="sIsOpen"
  10030. active-text=""
  10031. class="switchCss"
  10032. @change="updateSLook"
  10033. ></el-switch>
  10034. </div>
  10035. <div
  10036. class="switch_box"
  10037. v-if="
  10038. (courseDetail.userid == userid ||
  10039. (courseDetail.course_teacher &&
  10040. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10041. "
  10042. >
  10043. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10044. <span>禁止学生查看阶段</span>
  10045. <el-switch
  10046. v-model="IsLookOpen"
  10047. active-text=""
  10048. class="switchCss"
  10049. @change="updateLookOpen"
  10050. ></el-switch>
  10051. </div>
  10052. <div class="switch_box" v-if="courseDetail.userid == userid">
  10053. <span>开启跟随模式</span>
  10054. <el-switch
  10055. v-model="IsFollow"
  10056. active-text=""
  10057. class="switchCss"
  10058. @change="updateFollow"
  10059. ></el-switch>
  10060. </div>
  10061. <div class="switch_box" v-if="courseDetail.userid == userid">
  10062. <span>允许学生查看内容资料</span>
  10063. <el-switch
  10064. v-model="IsStulook"
  10065. active-text=""
  10066. class="switchCss"
  10067. @change="updateIsStulook"
  10068. ></el-switch>
  10069. </div>
  10070. </div>
  10071. </div>
  10072. <div slot="footer">
  10073. <el-button
  10074. style="background: #409efe; color: #fff"
  10075. @click="juriVisible = false"
  10076. >关 闭</el-button
  10077. >
  10078. </div>
  10079. </el-dialog>
  10080. <el-dialog
  10081. title="查看视频"
  10082. :visible.sync="videoVisible"
  10083. :append-to-body="true"
  10084. width="1000px"
  10085. :before-close="handleClose"
  10086. class="dialog_diy1"
  10087. >
  10088. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10089. <video-player
  10090. class="video-player vjs-custom-skin"
  10091. :playsinline="true"
  10092. :options="videoDetail"
  10093. @play="onPlayerPlay($event)"
  10094. style="width: 100%; height: 100%"
  10095. ></video-player>
  10096. </div>
  10097. <div slot="footer">
  10098. <el-button
  10099. style="background: #409efe; color: #fff"
  10100. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10101. >
  10102. 关 闭</el-button
  10103. >
  10104. </div>
  10105. </el-dialog>
  10106. <el-dialog
  10107. title="查看详情"
  10108. :visible.sync="commentDialogVisible"
  10109. :append-to-body="true"
  10110. width="800px"
  10111. :before-close="handleClose"
  10112. class="dialog_diy"
  10113. >
  10114. <div class="commentTop">
  10115. <div class="studentDetail">
  10116. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10117. <div class="nameAndTime">
  10118. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10119. <div>{{ commentDetail.time }}</div>
  10120. </div>
  10121. <div
  10122. class="returnBtn"
  10123. style="margin-left: auto; width: 80px"
  10124. v-if="
  10125. commentDetail.works &&
  10126. commentDetail.type == 0 &&
  10127. (tType == 1 || tType == 4)
  10128. "
  10129. @click="
  10130. showPicturePaint(
  10131. commentDetail.img ? commentDetail.img : commentDetail.works
  10132. )
  10133. "
  10134. >
  10135. 教师批注
  10136. </div>
  10137. </div>
  10138. <div
  10139. class="worksAnswer"
  10140. v-if="commentDetail.works && commentDetail.type == 2"
  10141. >
  10142. {{ JSON.parse(commentDetail.works)[0].answer }}
  10143. </div>
  10144. <div
  10145. class="worksAnswer"
  10146. v-if="commentDetail.works && commentDetail.type == 1"
  10147. >
  10148. <img
  10149. src="../assets/teacherWork.png"
  10150. v-if="commentDetail.ateacher"
  10151. class="w_teachert"
  10152. />
  10153. <pdf
  10154. v-if="showPDF"
  10155. :pdfUrl="pptImgUrl"
  10156. style="width: 100%; height: 520px; overflow: auto"
  10157. :class="{ fullStyle: full }"
  10158. ></pdf>
  10159. <iframe
  10160. v-else
  10161. :src="pptImgUrl"
  10162. frameborder="0"
  10163. width="100%"
  10164. height="600"
  10165. :class="{ fullStyle: full }"
  10166. ></iframe>
  10167. </div>
  10168. <div
  10169. class="worksAnswer"
  10170. v-if="commentDetail.works && commentDetail.type == 0"
  10171. >
  10172. <img
  10173. src="../assets/teacherWork.png"
  10174. v-if="commentDetail.ateacher"
  10175. class="w_teachert"
  10176. style="right: 105px"
  10177. />
  10178. <img
  10179. :src="commentDetail.works"
  10180. alt=""
  10181. @click="previewImg(commentDetail.works)"
  10182. />
  10183. </div>
  10184. <div
  10185. class="worksAnswer"
  10186. v-if="commentDetail.works && commentDetail.type == 3"
  10187. >
  10188. <img
  10189. src="../assets/teacherWork.png"
  10190. v-if="commentDetail.ateacher"
  10191. class="w_teachert"
  10192. />
  10193. <video-player
  10194. class="video-player vjs-custom-skin"
  10195. :playsinline="true"
  10196. :options="videoDetail"
  10197. @play="onPlayerPlay($event)"
  10198. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10199. ></video-player>
  10200. </div>
  10201. <div
  10202. class="worksAnswer"
  10203. v-if="commentDetail.works && commentDetail.type == 10"
  10204. >
  10205. <div class="cont" v-html="commentDetail.works.text"></div>
  10206. </div>
  10207. <div
  10208. class="worksAnswer codeFileBox"
  10209. v-if="commentDetail.works && commentDetail.type == 12"
  10210. @click="downloadFile(commentDetail.works)"
  10211. >
  10212. <img src="../assets/icon/codeFile.png" />
  10213. <div>点击下载文件</div>
  10214. </div>
  10215. <div
  10216. class="worksAnswer codeFileBox"
  10217. v-if="commentDetail.works && commentDetail.type == 15"
  10218. @click="
  10219. openCocoPi(
  10220. 57,
  10221. commentIndexJson.toolIndex,
  10222. commentDetail.userid,
  10223. commentDetail.sName
  10224. )
  10225. "
  10226. >
  10227. <img src="../assets/icon/codeFile.png" />
  10228. <div>点击打开CocoPi</div>
  10229. </div>
  10230. <div
  10231. class="worksAnswer"
  10232. v-if="commentDetail.works && commentDetail.type == 13"
  10233. >
  10234. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10235. </div>
  10236. <div
  10237. class="worksAnswer"
  10238. v-if="commentDetail.works && commentDetail.type == 4"
  10239. >
  10240. <div class="evalCss">
  10241. <div class="nav">请选择星星进行评分</div>
  10242. <div class="middleBox" v-if="eScore.eStar">
  10243. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10244. <div class="nameAndrate">
  10245. <div>{{ e.value }}</div>
  10246. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10247. </div>
  10248. <div v-if="e.detail">{{ e.detail }}</div>
  10249. </div>
  10250. <div class="bz">
  10251. <textarea
  10252. disabled
  10253. rows="4"
  10254. class="pj"
  10255. style="
  10256. padding: 10px 5px;
  10257. width: 70%;
  10258. background: #f7f6f9;
  10259. font-size: 14px;
  10260. text-indent: 10px;
  10261. color: #000;
  10262. "
  10263. cols
  10264. v-model="eScore.eBzText"
  10265. placeholder="请输入评价内容..."
  10266. ></textarea>
  10267. </div>
  10268. </div>
  10269. </div>
  10270. </div>
  10271. <div class="comment">
  10272. <div class="commentList">
  10273. <div class="commentImg">
  10274. <img
  10275. @click="
  10276. isLikes(
  10277. commentDetail.wid,
  10278. userid,
  10279. 1,
  10280. null,
  10281. commentDetail.isLikes,
  10282. commentDetail.sName
  10283. )
  10284. "
  10285. :src="commentDetail.isLikes == true ? likes : noLikes"
  10286. alt=""
  10287. />
  10288. </div>
  10289. <div>{{ commentDetail.likesCount }}</div>
  10290. </div>
  10291. <div class="commentList">
  10292. <div class="commentImg">
  10293. <img src="../assets/icon/comment/comment.png" alt="" />
  10294. </div>
  10295. <div>{{ commentDetail.commentCount }}</div>
  10296. </div>
  10297. </div>
  10298. <div class="drawPBox" v-if="commentDetail.img">
  10299. <span>教师批注</span>
  10300. <img
  10301. :src="commentDetail.img"
  10302. alt=""
  10303. @click="previewImg(commentDetail.img)"
  10304. />
  10305. <span
  10306. class="deleteImg"
  10307. v-if="tType == 1 || tType == 4"
  10308. @click.stop="deletePicturePaint(commentDetail.wid)"
  10309. style="
  10310. font-size: 14px;
  10311. width: auto !important;
  10312. color: #b4b4b4;
  10313. top: unset;
  10314. bottom: 0;
  10315. border: none;
  10316. padding: 0;
  10317. height: auto !important;
  10318. margin: 0;
  10319. "
  10320. >删除</span
  10321. >
  10322. </div>
  10323. </div>
  10324. <div class="commentBox">
  10325. <div class="pl">评论:</div>
  10326. <div style="max-height: 200px; overflow: auto">
  10327. <div
  10328. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10329. style="padding: 10px 0 0 0"
  10330. >
  10331. <div
  10332. class="studentDetail"
  10333. style="padding-top: 10px"
  10334. v-for="(co, coIndex) in commentDetail.commentJson"
  10335. :key="coIndex"
  10336. >
  10337. <div class="tx" style="min-width: 50px">
  10338. <img src="../assets/avatar.png" alt="" />
  10339. </div>
  10340. <div class="plPerson">
  10341. <div class="plName">
  10342. <div>{{ co.commentPeople }}</div>
  10343. <div style="margin-left: 5px">
  10344. {{ co.commentTime }}
  10345. </div>
  10346. <div
  10347. class="deleteComment"
  10348. v-if="userid == co.userid"
  10349. @click="deleteComment(co.wid)"
  10350. >
  10351. 删除
  10352. </div>
  10353. </div>
  10354. <div class="plContent">{{ co.commentText }}</div>
  10355. </div>
  10356. </div>
  10357. </div>
  10358. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10359. </div>
  10360. </div>
  10361. <div style="margin-top: 10px">
  10362. <div class="displayBox">
  10363. <div
  10364. style="
  10365. color: #556db4;
  10366. font-size: 14px;
  10367. font-weight: bold;
  10368. padding-bottom: 10px;
  10369. "
  10370. >
  10371. 评价
  10372. </div>
  10373. <div class="easy_comment" v-if="false">
  10374. <div
  10375. v-for="(p, pIndex) in PlTextList"
  10376. :key="pIndex"
  10377. @click="fastText(p, 1)"
  10378. >
  10379. {{ p }}
  10380. </div>
  10381. </div>
  10382. </div>
  10383. <div>
  10384. <textarea
  10385. rows="3"
  10386. class="pj"
  10387. style="padding: 10px 5px"
  10388. cols
  10389. v-model="commentText"
  10390. placeholder="请输入评论"
  10391. ></textarea>
  10392. </div>
  10393. </div>
  10394. <div slot="footer">
  10395. <el-button
  10396. @click="
  10397. (commentDialogVisible = false),
  10398. (commentIndexJson = {}),
  10399. videoDetail.sources && videoDetail.sources[0]
  10400. ? (videoDetail.sources[0].src = '')
  10401. : ''
  10402. "
  10403. >取 消</el-button
  10404. >
  10405. <el-button
  10406. type="primary"
  10407. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10408. >确 定</el-button
  10409. >
  10410. </div>
  10411. </el-dialog>
  10412. <el-dialog
  10413. title="查看文档"
  10414. :visible.sync="fullDialogVisible"
  10415. :append-to-body="true"
  10416. width="100%"
  10417. :before-close="handleClose"
  10418. :show-close="false"
  10419. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10420. >
  10421. <div slot="title" class="header-title">
  10422. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10423. <div v-else style="color: #fff">查看文档</div>
  10424. <div
  10425. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10426. style="
  10427. cursor: pointer;
  10428. position: absolute;
  10429. top: 20px;
  10430. right: 20px;
  10431. color: #fff;
  10432. "
  10433. >
  10434. 退出全屏
  10435. </div>
  10436. </div>
  10437. <div style="height: 100%;position: relative;">
  10438. <el-button
  10439. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10440. size="medium"
  10441. type="primary"
  10442. @click="
  10443. () => {
  10444. (fullDialogVisible = false),
  10445. changeSplitScreenBehavior({ code: 99 });
  10446. }
  10447. "
  10448. style="
  10449. cursor: pointer;
  10450. position: absolute;
  10451. top: 10px;
  10452. right: 20px;
  10453. color: #fff;
  10454. "
  10455. >
  10456. 退出全屏
  10457. </el-button>
  10458. <div
  10459. class="wheel"
  10460. v-if="fulltype == 1"
  10461. style="
  10462. box-shadow: 0 0 6px 1px #f2f2f2;
  10463. width: 100%;
  10464. height:100%;
  10465. background: #f1f1f1;
  10466. "
  10467. >
  10468. <div class="title" style="width: 100%; box-sizing: border-box">
  10469. 查看文档
  10470. </div>
  10471. <el-form class="textBox" style="height: 90%">
  10472. <el-form-item class="textTitle">
  10473. <div style="font-size: 22px">
  10474. {{ fullUrl.name }}
  10475. </div>
  10476. </el-form-item>
  10477. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10478. <div
  10479. v-html="fullUrl.url"
  10480. class="textContent"
  10481. style="height: auto"
  10482. ></div>
  10483. </el-form>
  10484. </div>
  10485. <div
  10486. class="wheel"
  10487. v-else-if="
  10488. (fulltype == 2 || fulltype == 4) &&
  10489. fullUrl.indexOf(
  10490. 'https://view.officeapps.live.com/op/view.aspx?src='
  10491. ) != -1
  10492. "
  10493. style="width: 100%;height:100%; margin: 0 auto"
  10494. >
  10495. <iframe
  10496. style="width: 100%; height: 100%; border: none"
  10497. :src="fullUrl"
  10498. ></iframe>
  10499. </div>
  10500. <!-- <iframe
  10501. v-else-if="fulltype == 2"
  10502. style="width: 100%; height: 100%; border: none"
  10503. :src="fullUrl"
  10504. security="restricted"
  10505. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10506. ></iframe> -->
  10507. <iframe
  10508. style="width: 100%; height: 100%; border: none"
  10509. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10510. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  10511. :src="fullUrl"
  10512. ></iframe>
  10513. <iframe
  10514. style="width: 100%; height: 100%; border: none"
  10515. security="restricted"
  10516. v-else-if="(fulltype == 2 || fulltype == 4)"
  10517. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10518. :src="fullUrl"
  10519. ></iframe>
  10520. <pdf
  10521. v-else-if="fulltype == 3"
  10522. :pdfUrl="fullUrl"
  10523. style="width: 100%; height: 100%; overflow: auto"
  10524. ></pdf>
  10525. <iframe
  10526. style="width: 100%; height: 100%; border: none"
  10527. security="restricted"
  10528. v-if="(fulltype == 16)"
  10529. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10530. :src="fullUrl"
  10531. ></iframe>
  10532. </div>
  10533. <!-- <div slot="footer">
  10534. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10535. </div> -->
  10536. </el-dialog>
  10537. <el-dialog
  10538. title="个人评价"
  10539. :visible.sync="studentEvalDialogVisible"
  10540. :append-to-body="true"
  10541. width="800px"
  10542. :before-close="handleClose"
  10543. class="dialog_diy"
  10544. >
  10545. <div class="evalCss">
  10546. <div class="nav">请选择星星进行评分</div>
  10547. <div class="middleBox" v-if="eScore.eStar">
  10548. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10549. <div class="nameAndrate">
  10550. <div>{{ e.value }}</div>
  10551. <el-rate
  10552. v-model="eScore.eStar[eIndex]"
  10553. :disabled="isStar"
  10554. ></el-rate>
  10555. </div>
  10556. <div v-if="e.detail">{{ e.detail }}</div>
  10557. </div>
  10558. <div class="easy_comment" v-if="false">
  10559. <div
  10560. v-for="(p, pIndex) in PlTextList"
  10561. :key="pIndex"
  10562. @click="fastText(p, 2)"
  10563. >
  10564. {{ p }}
  10565. </div>
  10566. </div>
  10567. <div class="bz">
  10568. <textarea
  10569. :disabled="isStar"
  10570. rows="4"
  10571. class="pj"
  10572. style="
  10573. padding: 10px 5px;
  10574. width: 70%;
  10575. background: #f7f6f9;
  10576. font-size: 14px;
  10577. text-indent: 10px;
  10578. "
  10579. cols
  10580. v-model="eScore.eBzText"
  10581. placeholder="请输入评价内容..."
  10582. ></textarea>
  10583. </div>
  10584. </div>
  10585. </div>
  10586. <div slot="footer">
  10587. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10588. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10589. >确 定</el-button
  10590. >
  10591. </div>
  10592. </el-dialog>
  10593. <el-dialog
  10594. title="个人评价"
  10595. :visible.sync="studentEvalDialogVisibleTeacher"
  10596. :append-to-body="true"
  10597. width="800px"
  10598. :before-close="handleClose"
  10599. class="dialog_diy"
  10600. >
  10601. <div class="w_name">
  10602. 学生姓名:<span>{{ sStudent.student }}</span>
  10603. </div>
  10604. <div class="evalCss">
  10605. <div class="nav">请选择星星进行评分</div>
  10606. <div class="middleBox" v-if="eScore.eStar">
  10607. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10608. <div class="nameAndrate">
  10609. <div>{{ e.value }}</div>
  10610. <el-rate
  10611. v-model="eScore.eStar[eIndex]"
  10612. :disabled="isStar"
  10613. ></el-rate>
  10614. </div>
  10615. <div v-if="e.detail">{{ e.detail }}</div>
  10616. </div>
  10617. <div class="easy_comment" v-if="false">
  10618. <div
  10619. v-for="(p, pIndex) in PlTextList"
  10620. :key="pIndex"
  10621. @click="fastText(p, 2)"
  10622. >
  10623. {{ p }}
  10624. </div>
  10625. </div>
  10626. <div class="bz">
  10627. <textarea
  10628. :disabled="isStar"
  10629. rows="4"
  10630. class="pj"
  10631. style="
  10632. padding: 10px 5px;
  10633. width: 70%;
  10634. background: #f7f6f9;
  10635. font-size: 14px;
  10636. text-indent: 10px;
  10637. "
  10638. cols
  10639. v-model="eScore.eBzText"
  10640. placeholder="请输入评价内容..."
  10641. ></textarea>
  10642. </div>
  10643. </div>
  10644. </div>
  10645. <div slot="footer">
  10646. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10647. >取 消</el-button
  10648. >
  10649. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10650. >确 定</el-button
  10651. >
  10652. </div>
  10653. </el-dialog>
  10654. <el-dialog
  10655. title="选择匹配"
  10656. :visible.sync="dialogVisibleSelect"
  10657. :append-to-body="true"
  10658. width="90%"
  10659. :before-close="handleClose"
  10660. class="dialog_diy dialog_diy3"
  10661. >
  10662. <div v-if="selectJson">
  10663. <div class="select_box2">
  10664. <div class="select_box2_title">
  10665. <div>选择匹配</div>
  10666. <div>请选择对应的答案进行答题!</div>
  10667. </div>
  10668. <div class="select_box2_box">
  10669. <div class="select_box2_img">
  10670. <img
  10671. :src="selectJson.url"
  10672. @click="previewImg(selectJson.url)"
  10673. alt=""
  10674. />
  10675. </div>
  10676. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10677. <div style="padding-top: 15px">
  10678. <div class="select_answer_title" v-if="isSelect">
  10679. {{ selectAnswer.stu }}
  10680. </div>
  10681. <div class="select_answer_title" v-else>
  10682. 根据题目选择对应答案
  10683. </div>
  10684. <div
  10685. class="select_box2_answer_box"
  10686. v-for="(item2, checkIndex) in selectJson.select"
  10687. :key="checkIndex"
  10688. >
  10689. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10690. <el-select
  10691. :disabled="isSelect"
  10692. v-model="selectAnswer.answer[checkIndex]"
  10693. placeholder="请选择正确答案"
  10694. >
  10695. <el-option
  10696. v-for="(e, eIndex) in selectJson.select"
  10697. :key="eIndex"
  10698. :label="e"
  10699. :value="eIndex"
  10700. >
  10701. </el-option>
  10702. </el-select>
  10703. </div>
  10704. </div>
  10705. <div
  10706. class="rightAnswerCss"
  10707. v-if="isSelect && (tType == 1 || tType == 4)"
  10708. >
  10709. <div
  10710. v-for="(a, aIndex) in selectJson.answer"
  10711. :key="aIndex"
  10712. class="rightAnswer"
  10713. >
  10714. <div
  10715. v-if="selectAnswer.answer[aIndex] === a"
  10716. style="color: #767de1"
  10717. >
  10718. 回答正确
  10719. </div>
  10720. <div v-else>回答错误</div>
  10721. <div
  10722. style="margin-left: 10px"
  10723. v-if="selectAnswer.answer[aIndex] !== a"
  10724. >
  10725. 正确答案:
  10726. </div>
  10727. <div
  10728. :class="
  10729. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10730. "
  10731. >
  10732. {{ selectJson.select[a] }}
  10733. </div>
  10734. </div>
  10735. </div>
  10736. </div>
  10737. <div class="upAnswerCss">
  10738. <el-button
  10739. type="primary"
  10740. @click="addSelectAnswer"
  10741. v-if="!isSelect"
  10742. >提交答案</el-button
  10743. >
  10744. </div>
  10745. </div>
  10746. </div>
  10747. </div>
  10748. </el-dialog>
  10749. <el-dialog
  10750. title="选择匹配"
  10751. :visible.sync="dialogVisibleSelectTeacher"
  10752. :append-to-body="true"
  10753. width="90%"
  10754. :before-close="handleClose"
  10755. class="dialog_diy dialog_diy3"
  10756. >
  10757. <div v-if="selectJson">
  10758. <div class="w_name">
  10759. 学生姓名:<span>{{ sStudent.student }}</span>
  10760. </div>
  10761. <div class="select_box2">
  10762. <div class="select_box2_title">
  10763. <div>选择匹配</div>
  10764. <div>请选择对应的答案进行答题!</div>
  10765. </div>
  10766. <div class="select_box2_box">
  10767. <div class="select_box2_img">
  10768. <img
  10769. :src="selectJson.url"
  10770. @click="previewImg(selectJson.url)"
  10771. alt=""
  10772. />
  10773. </div>
  10774. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10775. <div style="padding-top: 15px">
  10776. <div class="select_answer_title" v-if="isSelect">
  10777. {{ selectAnswer.stu }}
  10778. </div>
  10779. <div class="select_answer_title" v-else>
  10780. 根据题目选择对应答案
  10781. </div>
  10782. <div
  10783. class="select_box2_answer_box"
  10784. v-for="(item2, checkIndex) in selectJson.select"
  10785. :key="checkIndex"
  10786. >
  10787. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10788. <el-select
  10789. :disabled="isSelect"
  10790. v-model="selectAnswer.answer[checkIndex]"
  10791. placeholder="请选择正确答案"
  10792. >
  10793. <el-option
  10794. v-for="(e, eIndex) in selectJson.select"
  10795. :key="eIndex"
  10796. :label="e"
  10797. :value="eIndex"
  10798. >
  10799. </el-option>
  10800. </el-select>
  10801. </div>
  10802. </div>
  10803. <div
  10804. class="rightAnswerCss"
  10805. v-if="isSelect && (tType == 1 || tType == 4)"
  10806. >
  10807. <div
  10808. v-for="(a, aIndex) in selectJson.answer"
  10809. :key="aIndex"
  10810. class="rightAnswer"
  10811. >
  10812. <div
  10813. v-if="selectAnswer.answer[aIndex] === a"
  10814. style="color: #767de1"
  10815. >
  10816. 回答正确
  10817. </div>
  10818. <div v-else>回答错误</div>
  10819. <div
  10820. style="margin-left: 10px"
  10821. v-if="selectAnswer.answer[aIndex] !== a"
  10822. >
  10823. 正确答案:
  10824. </div>
  10825. <div
  10826. :class="
  10827. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10828. "
  10829. >
  10830. {{ selectJson.select[a] }}
  10831. </div>
  10832. </div>
  10833. </div>
  10834. </div>
  10835. <div class="upAnswerCss">
  10836. <el-button
  10837. type="primary"
  10838. @click="addSelectAnswerTeacher"
  10839. v-if="!isSelect"
  10840. >提交答案</el-button
  10841. >
  10842. </div>
  10843. </div>
  10844. </div>
  10845. </div>
  10846. </el-dialog>
  10847. <el-dialog
  10848. title="教师评分"
  10849. :visible.sync="dialogVisibleScore"
  10850. :append-to-body="true"
  10851. width="800px"
  10852. :before-close="handleClose"
  10853. class="dialog_diy"
  10854. >
  10855. <div>
  10856. <div class="studentDetail">
  10857. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10858. <div class="nameAndTime">
  10859. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10860. <div>{{ commentDetail.time }}</div>
  10861. </div>
  10862. </div>
  10863. <div
  10864. class="worksAnswer"
  10865. v-if="commentDetail.works && commentDetail.type == 2"
  10866. >
  10867. {{ JSON.parse(commentDetail.works)[0].answer }}
  10868. </div>
  10869. <div
  10870. class="worksAnswer"
  10871. v-if="commentDetail.works && commentDetail.type == 1"
  10872. >
  10873. <pdf
  10874. v-if="showPDF"
  10875. :pdfUrl="pptImgUrl"
  10876. style="width: 100%; height: 520px; overflow: auto"
  10877. :class="{ fullStyle: full }"
  10878. ></pdf>
  10879. <iframe
  10880. v-else
  10881. :src="pptImgUrl"
  10882. frameborder="0"
  10883. width="100%"
  10884. height="600"
  10885. :class="{ fullStyle: full }"
  10886. ></iframe>
  10887. </div>
  10888. <div
  10889. class="worksAnswer"
  10890. v-if="commentDetail.works && commentDetail.type == 0"
  10891. >
  10892. <img
  10893. :src="commentDetail.works"
  10894. alt=""
  10895. @click="previewImg(commentDetail.works)"
  10896. />
  10897. </div>
  10898. <div
  10899. class="worksAnswer"
  10900. v-if="commentDetail.works && commentDetail.type == 3"
  10901. >
  10902. <video-player
  10903. class="video-player vjs-custom-skin"
  10904. :playsinline="true"
  10905. :options="videoDetail"
  10906. @play="onPlayerPlay($event)"
  10907. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10908. ></video-player>
  10909. </div>
  10910. <div
  10911. class="worksAnswer codeFileBox"
  10912. v-if="commentDetail.works && commentDetail.type == 12"
  10913. @click="downloadFile(commentDetail.works)"
  10914. >
  10915. <img src="../assets/icon/codeFile.png" />
  10916. <div>点击下载文件</div>
  10917. </div>
  10918. <div
  10919. class="worksAnswer codeFileBox"
  10920. v-if="commentDetail.works && commentDetail.type == 15"
  10921. @click="
  10922. openCocoPi(
  10923. 57,
  10924. commentIndexJson.toolIndex,
  10925. commentDetail.userid,
  10926. commentDetail.sName
  10927. )
  10928. "
  10929. >
  10930. <img src="../assets/icon/codeFile.png" />
  10931. <div>点击打开CocoPi</div>
  10932. </div>
  10933. <div
  10934. class="worksAnswer"
  10935. v-if="commentDetail.works && commentDetail.type == 13"
  10936. >
  10937. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10938. </div>
  10939. <div class="scoreBox">
  10940. <span class="t">请输入分数</span>
  10941. <el-input-number
  10942. :disabled="courseDetail.userid != userid"
  10943. v-model="wScore"
  10944. :controls="false"
  10945. :min="0"
  10946. :max="100"
  10947. ></el-input-number>
  10948. </div>
  10949. <div class="scoreDetailBox">
  10950. <span class="t">评分评论</span>
  10951. <el-input
  10952. type="textarea"
  10953. :rows="5"
  10954. :disabled="courseDetail.userid != userid"
  10955. resize="none"
  10956. v-model="scoreDetail"
  10957. placeholder="请输入对学生的评价"
  10958. >
  10959. </el-input>
  10960. </div>
  10961. </div>
  10962. <span slot="footer" class="dialog-footer">
  10963. <el-button
  10964. @click="
  10965. (dialogVisibleScore = false),
  10966. (commentIndexJson = {}),
  10967. videoDetail.sources && videoDetail.sources[0]
  10968. ? (videoDetail.sources[0].src = '')
  10969. : ''
  10970. "
  10971. >取 消</el-button
  10972. >
  10973. <el-button
  10974. type="primary"
  10975. v-if="courseDetail.userid == userid"
  10976. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10977. >确 定
  10978. </el-button>
  10979. </span>
  10980. </el-dialog>
  10981. <el-dialog
  10982. title="排序"
  10983. :visible.sync="dialogVisibleSentence"
  10984. :append-to-body="true"
  10985. width="1000px"
  10986. :before-close="handleClose"
  10987. class="dialog_diy dialog_diy3"
  10988. >
  10989. <div>
  10990. <div class="sentenBox">
  10991. <div
  10992. v-for="(st, stIndex) in sentenceList"
  10993. :key="stIndex"
  10994. style="padding-bottom: 20px"
  10995. >
  10996. <div
  10997. style="padding: 15px 0 10px 20px"
  10998. class="sentenceTitle"
  10999. :index="stIndex + 1"
  11000. >
  11001. 题目{{ stIndex + 1 }}:请选择正确顺序
  11002. </div>
  11003. <div class="cardList" v-if="st.chooseSenList">
  11004. <div class="cardBox">
  11005. <div
  11006. v-for="(r, rIndex) in st.chooseSenList"
  11007. :key="rIndex"
  11008. @click="returnCard(r, stIndex, rIndex)"
  11009. >
  11010. <el-tooltip
  11011. class="item"
  11012. effect="light"
  11013. :content="r"
  11014. placement="top"
  11015. v-if="r != '' && r != undefined"
  11016. >
  11017. <div
  11018. :class="{
  11019. isCard: r,
  11020. isChooseCard: r == '' || r == undefined,
  11021. }"
  11022. >
  11023. <div>{{ r }}</div>
  11024. </div>
  11025. </el-tooltip>
  11026. <div
  11027. :class="{
  11028. isCard: r,
  11029. isChooseCard: r == '' || r == undefined,
  11030. }"
  11031. v-else
  11032. >
  11033. <div>{{ r }}</div>
  11034. </div>
  11035. </div>
  11036. </div>
  11037. </div>
  11038. <div class="cardList" v-if="st.addChangeSen">
  11039. <div class="cardBox">
  11040. <div
  11041. v-for="(s, sIndex) in st.addChangeSen"
  11042. :key="sIndex"
  11043. @click="setRightAnswer(s, stIndex, sIndex)"
  11044. >
  11045. <el-tooltip
  11046. class="item"
  11047. effect="light"
  11048. :content="s"
  11049. placement="top"
  11050. v-if="s != '' && s != undefined"
  11051. >
  11052. <div
  11053. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11054. >
  11055. <div>{{ s }}</div>
  11056. </div>
  11057. </el-tooltip>
  11058. <div
  11059. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11060. v-else
  11061. >
  11062. <div>{{ s }}</div>
  11063. </div>
  11064. </div>
  11065. </div>
  11066. </div>
  11067. </div>
  11068. </div>
  11069. </div>
  11070. <span slot="footer" class="dialog-footer">
  11071. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11072. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11073. </span>
  11074. </el-dialog>
  11075. <el-dialog
  11076. title="排序"
  11077. :visible.sync="dialogVisibleSentenceTeacher"
  11078. :append-to-body="true"
  11079. width="1000px"
  11080. :before-close="handleClose"
  11081. class="dialog_diy dialog_diy3"
  11082. >
  11083. <div>
  11084. <div class="w_name">
  11085. 学生姓名:<span>{{ sStudent.student }}</span>
  11086. </div>
  11087. <div class="sentenBox">
  11088. <div
  11089. v-for="(st, stIndex) in sentenceList"
  11090. :key="stIndex"
  11091. style="padding-bottom: 20px"
  11092. >
  11093. <div
  11094. style="padding: 15px 0 10px 20px"
  11095. class="sentenceTitle"
  11096. :index="stIndex + 1"
  11097. >
  11098. 题目{{ stIndex + 1 }}:请选择正确顺序
  11099. </div>
  11100. <div class="cardList" v-if="st.chooseSenList">
  11101. <div class="cardBox">
  11102. <div
  11103. v-for="(r, rIndex) in st.chooseSenList"
  11104. :key="rIndex"
  11105. @click="returnCard(r, stIndex, rIndex)"
  11106. >
  11107. <el-tooltip
  11108. class="item"
  11109. effect="light"
  11110. :content="r"
  11111. placement="top"
  11112. v-if="r != '' && r != undefined"
  11113. >
  11114. <div
  11115. :class="{
  11116. isCard: r,
  11117. isChooseCard: r == '' || r == undefined,
  11118. }"
  11119. >
  11120. <div>{{ r }}</div>
  11121. </div>
  11122. </el-tooltip>
  11123. <div
  11124. :class="{
  11125. isCard: r,
  11126. isChooseCard: r == '' || r == undefined,
  11127. }"
  11128. v-else
  11129. >
  11130. <div>{{ r }}</div>
  11131. </div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. <div class="cardList" v-if="st.addChangeSen">
  11136. <div class="cardBox">
  11137. <div
  11138. v-for="(s, sIndex) in st.addChangeSen"
  11139. :key="sIndex"
  11140. @click="setRightAnswer(s, stIndex, sIndex)"
  11141. >
  11142. <el-tooltip
  11143. class="item"
  11144. effect="light"
  11145. :content="s"
  11146. placement="top"
  11147. v-if="s != '' && s != undefined"
  11148. >
  11149. <div
  11150. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11151. >
  11152. <div>{{ s }}</div>
  11153. </div>
  11154. </el-tooltip>
  11155. <div
  11156. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11157. v-else
  11158. >
  11159. <div>{{ s }}</div>
  11160. </div>
  11161. </div>
  11162. </div>
  11163. </div>
  11164. </div>
  11165. </div>
  11166. </div>
  11167. <span slot="footer" class="dialog-footer">
  11168. <el-button @click="dialogVisibleSentenceTeacher = false"
  11169. >取 消</el-button
  11170. >
  11171. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11172. </span>
  11173. </el-dialog>
  11174. <el-dialog
  11175. title="排序"
  11176. :visible.sync="dialogVisibleSentence1"
  11177. :append-to-body="true"
  11178. width="1000px"
  11179. :before-close="handleClose"
  11180. class="dialog_diy dialog_diy3"
  11181. >
  11182. <div>
  11183. <div class="sentenBox">
  11184. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11185. {{ sentenceList1.stuName }}的作业
  11186. </div>
  11187. <div
  11188. v-for="(st, stIndex) in sentenceList1"
  11189. :key="stIndex"
  11190. style="padding-bottom: 20px"
  11191. >
  11192. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11193. 第{{ stIndex + 1 }}题
  11194. </div>
  11195. <div class="isWrong">
  11196. <div class="cardList1" v-if="st.chooseSenList">
  11197. <div class="cardBox">
  11198. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11199. <el-tooltip
  11200. class="item"
  11201. effect="light"
  11202. :content="s"
  11203. placement="top"
  11204. >
  11205. <div class="isCard">
  11206. <div>{{ s }}</div>
  11207. </div>
  11208. </el-tooltip>
  11209. </div>
  11210. </div>
  11211. <div class="cardAnswerBox">
  11212. 组成句子:{{ st.chooseSenList.join(" ") }}
  11213. </div>
  11214. </div>
  11215. <div v-if="tType == 2" class="isTj">
  11216. <div class="isTjImg">
  11217. <img src="../assets/icon/conSentences/right.png" alt="" />
  11218. </div>
  11219. <div>已提交</div>
  11220. </div>
  11221. <div
  11222. class="answerRight isTj"
  11223. v-if="
  11224. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11225. (tType == 1 || tType == 4)
  11226. "
  11227. >
  11228. <div class="isTjImg">
  11229. <img src="../assets/icon/conSentences/right.png" alt="" />
  11230. </div>
  11231. <div>回答正确</div>
  11232. </div>
  11233. <div
  11234. class="answerRight isTj"
  11235. v-if="
  11236. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11237. (tType == 1 || tType == 4)
  11238. "
  11239. >
  11240. <div class="isTjImg">
  11241. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11242. </div>
  11243. <div>回答错误</div>
  11244. </div>
  11245. </div>
  11246. <div
  11247. v-if="
  11248. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11249. (tType == 1 || tType == 4)
  11250. "
  11251. >
  11252. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11253. <div
  11254. class="cardList"
  11255. v-if="st.rightAnswer"
  11256. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11257. >
  11258. <div class="cardBox">
  11259. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11260. <el-tooltip
  11261. class="item"
  11262. effect="light"
  11263. :content="r"
  11264. placement="top"
  11265. >
  11266. <div class="isCard1">
  11267. <div>{{ r }}</div>
  11268. </div>
  11269. </el-tooltip>
  11270. </div>
  11271. </div>
  11272. <div class="cardAnswerBox">
  11273. 组成句子:{{ st.rightAnswer.join(" ") }}
  11274. </div>
  11275. </div>
  11276. </div>
  11277. </div>
  11278. </div>
  11279. </div>
  11280. <span slot="footer" class="dialog-footer">
  11281. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11282. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11283. >确 定</el-button
  11284. >
  11285. </span>
  11286. </el-dialog>
  11287. <el-dialog
  11288. title="教师提交作业"
  11289. :visible.sync="dialogVisibleWorks"
  11290. :append-to-body="true"
  11291. width="500px"
  11292. :before-close="handleClose"
  11293. class="dialog_change"
  11294. >
  11295. <div class="marginT">
  11296. <div class="w_name">
  11297. 学生姓名:<span>{{ sStudent.student }}</span>
  11298. </div>
  11299. <div>上传文件</div>
  11300. <div style="display: flex; gap: 10px">
  11301. <div
  11302. class="chapter_add"
  11303. @click="addImg($event)"
  11304. v-if="studyJuri[0].cover.length == 0"
  11305. >
  11306. <div class="up_photo">
  11307. <img src="../assets/icon/uploadImg.png" alt />
  11308. </div>
  11309. <!-- <input
  11310. type="file"
  11311. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11312. style="display: none"
  11313. @change="beforeUpload1($event, 1)"
  11314. /> -->
  11315. <input
  11316. type="file"
  11317. accept="*"
  11318. style="display: none"
  11319. @change="beforeUpload1($event, 1)"
  11320. />
  11321. <!-- <input
  11322. type="file"
  11323. accept="image/*"
  11324. capture="camera"
  11325. style="display: none"
  11326. @change="beforeUpload1($event, 1)"
  11327. /> -->
  11328. </div>
  11329. <div
  11330. class="chapter_add"
  11331. @click="addImg($event)"
  11332. v-if="studyJuri[0].cover.length == 0"
  11333. >
  11334. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11335. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11336. </div>
  11337. <input
  11338. type="file"
  11339. accept="image/*"
  11340. capture="camera"
  11341. style="display: none"
  11342. @change="beforeUpload1($event, 1)"
  11343. />
  11344. </div>
  11345. </div>
  11346. <!-- capture="camera" -->
  11347. <div
  11348. class="chapter_add"
  11349. style="
  11350. display: flex;
  11351. width: 100%;
  11352. flex-direction: row;
  11353. flex-wrap: wrap;
  11354. justify-content: flex-start;
  11355. padding: 15px 0;
  11356. "
  11357. v-if="studyJuri[0].cover.length > 0"
  11358. >
  11359. <div class="upCover">
  11360. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11361. <img :src="word" alt v-else-if="fileType == 1" />
  11362. <img :src="video" alt v-else-if="fileType == 2" />
  11363. <img :src="word2" alt v-else-if="fileType == 3" />
  11364. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11365. <div class="deleteWord" @click="clean(1)">
  11366. <img src="../assets/icon/deleteWorks.png" alt />
  11367. </div>
  11368. </div>
  11369. </div>
  11370. </div>
  11371. <div
  11372. class="upload_send"
  11373. @click="addCourseWorksTeacher(taskCount)"
  11374. v-if="!proVisible"
  11375. >
  11376. 提交
  11377. </div>
  11378. </el-dialog>
  11379. <ImgDraw
  11380. :drawShow="drawShow"
  11381. @closeDraw="closeDraw"
  11382. @addImgDraw="addImgDraw"
  11383. :bg="bg"
  11384. ></ImgDraw>
  11385. <el-dialog
  11386. title="表格"
  11387. :visible.sync="dialogVisibleTable"
  11388. :append-to-body="true"
  11389. width="95%"
  11390. :before-close="handleClose"
  11391. class="dialog_diy"
  11392. >
  11393. <el-form>
  11394. <div
  11395. style="
  11396. display: flex;
  11397. align-items: center;
  11398. justify-content: space-between;
  11399. "
  11400. >
  11401. <span>表格内容</span>
  11402. <el-button type="primary" size="small" @click="returnTableText"
  11403. >还原模板</el-button
  11404. >
  11405. </div>
  11406. <Table
  11407. v-model="tableJson.text"
  11408. @change="change"
  11409. v-if="dialogVisibleTable"
  11410. ></Table>
  11411. </el-form>
  11412. <span slot="footer" class="dialog-footer">
  11413. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11414. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11415. </span>
  11416. </el-dialog>
  11417. <el-dialog
  11418. title="表格"
  11419. :visible.sync="dialogVisibleTableTeacher"
  11420. :append-to-body="true"
  11421. width="95%"
  11422. :before-close="handleClose"
  11423. class="dialog_diy"
  11424. >
  11425. <el-form>
  11426. <div class="w_name">
  11427. 学生姓名:<span>{{ sStudent.student }}</span>
  11428. </div>
  11429. <div>表格内容</div>
  11430. <Table
  11431. v-model="tableJson.text"
  11432. @change="change"
  11433. v-if="dialogVisibleTableTeacher"
  11434. ></Table>
  11435. </el-form>
  11436. <span slot="footer" class="dialog-footer">
  11437. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11438. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11439. </span>
  11440. </el-dialog>
  11441. <el-dialog
  11442. title="文档"
  11443. :visible.sync="dialogVisibleWord"
  11444. :append-to-body="true"
  11445. width="95%"
  11446. :before-close="handleClose"
  11447. class="dialog_diy"
  11448. >
  11449. <el-form>
  11450. <div
  11451. style="
  11452. display: flex;
  11453. align-items: center;
  11454. justify-content: space-between;
  11455. "
  11456. >
  11457. <span>文档内容</span>
  11458. <el-button type="primary" size="small" @click="returnWordText"
  11459. >还原模板</el-button
  11460. >
  11461. </div>
  11462. <editor-bar
  11463. v-model="wordJson.text"
  11464. v-if="dialogVisibleWord"
  11465. ></editor-bar>
  11466. </el-form>
  11467. <span slot="footer" class="dialog-footer">
  11468. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11469. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11470. </span>
  11471. </el-dialog>
  11472. <el-dialog
  11473. title="文档"
  11474. :visible.sync="dialogVisibleWordTeacher"
  11475. :append-to-body="true"
  11476. width="95%"
  11477. :before-close="handleClose"
  11478. class="dialog_diy"
  11479. >
  11480. <el-form>
  11481. <div class="w_name">
  11482. 学生姓名:<span>{{ sStudent.student }}</span>
  11483. </div>
  11484. <div>文档内容</div>
  11485. <editor-bar
  11486. v-model="wordJson.text"
  11487. v-if="dialogVisibleWordTeacher"
  11488. ></editor-bar>
  11489. </el-form>
  11490. <span slot="footer" class="dialog-footer">
  11491. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11492. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11493. </span>
  11494. </el-dialog>
  11495. <el-dialog
  11496. title="表格"
  11497. :visible.sync="dialogVisibleTable2"
  11498. :append-to-body="true"
  11499. width="95%"
  11500. :before-close="handleClose"
  11501. class="dialog_diy"
  11502. >
  11503. <el-form>
  11504. <div class="cont" v-html="tableJson.text"></div>
  11505. </el-form>
  11506. <span slot="footer" class="dialog-footer">
  11507. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11508. </span>
  11509. </el-dialog>
  11510. <el-dialog
  11511. title="文档"
  11512. :visible.sync="dialogVisibleTable3"
  11513. :append-to-body="true"
  11514. width="95%"
  11515. :before-close="handleClose"
  11516. class="dialog_diy"
  11517. >
  11518. <el-form>
  11519. <div class="cont" v-html="tableJson.text"></div>
  11520. </el-form>
  11521. <span slot="footer" class="dialog-footer">
  11522. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11523. </span>
  11524. </el-dialog>
  11525. <el-dialog
  11526. title="分组设置"
  11527. :visible.sync="dialogVisibleGroup"
  11528. :append-to-body="true"
  11529. width="95%"
  11530. :before-close="handleClose"
  11531. class="dialog_diy"
  11532. >
  11533. <div v-if="dialogVisibleGroup">
  11534. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11535. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11536. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11537. </div>
  11538. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11539. @click="lockChair">
  11540. 锁定位置
  11541. </div>
  11542. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11543. 解锁位置
  11544. </div> -->
  11545. <div class="group_switch">
  11546. <span>开放选座</span>
  11547. <el-switch
  11548. v-model="islock"
  11549. active-text=""
  11550. class="switchCss"
  11551. @change="lockChair"
  11552. ></el-switch>
  11553. </div>
  11554. <div
  11555. type="primary"
  11556. @click="updateGroup"
  11557. class="returnBtn"
  11558. style="background-color: #225bc7"
  11559. >
  11560. 分组设置
  11561. </div>
  11562. </div>
  11563. <div>
  11564. <div
  11565. class="g_d_box"
  11566. v-if="groupJson.group && groupStudent[toolindex]"
  11567. >
  11568. <div
  11569. class="g_d_group"
  11570. v-for="(g, gindex) in groupJson.group"
  11571. :key="gindex"
  11572. >
  11573. <div class="g_d_group_chair">
  11574. <div v-if="groupJson.number > 1">
  11575. <span
  11576. :class="{
  11577. isChair:
  11578. groupStudent[toolindex][gindex] &&
  11579. groupStudent[toolindex][gindex][0],
  11580. updateChair:
  11581. courseDetail.userid == userid &&
  11582. groupStudent[toolindex][gindex] &&
  11583. groupStudent[toolindex][gindex][0] &&
  11584. groupJson.islock == 2,
  11585. }"
  11586. ><span
  11587. class="updateChairBtn"
  11588. @click="
  11589. updateGroupChair(
  11590. groupStudent[toolindex][gindex] &&
  11591. groupStudent[toolindex][gindex][0]
  11592. )
  11593. "
  11594. >修改</span
  11595. ></span
  11596. ><span>{{
  11597. groupStudent[toolindex][gindex] &&
  11598. groupStudent[toolindex][gindex][0]
  11599. ? groupStudent[toolindex][gindex] &&
  11600. groupStudent[toolindex][gindex][0].name
  11601. : "空位置"
  11602. }}</span>
  11603. </div>
  11604. <div v-if="groupJson.number > 4">
  11605. <span
  11606. :class="{
  11607. isChair:
  11608. groupStudent[toolindex][gindex] &&
  11609. groupStudent[toolindex][gindex][4],
  11610. updateChair:
  11611. courseDetail.userid == userid &&
  11612. groupStudent[toolindex][gindex] &&
  11613. groupStudent[toolindex][gindex][4] &&
  11614. groupJson.islock == 2,
  11615. }"
  11616. ><span
  11617. class="updateChairBtn"
  11618. @click="
  11619. updateGroupChair(
  11620. groupStudent[toolindex][gindex] &&
  11621. groupStudent[toolindex][gindex][4]
  11622. )
  11623. "
  11624. >修改</span
  11625. ></span
  11626. ><span>{{
  11627. groupStudent[toolindex][gindex] &&
  11628. groupStudent[toolindex][gindex][4]
  11629. ? groupStudent[toolindex][gindex] &&
  11630. groupStudent[toolindex][gindex][4].name
  11631. : "空位置"
  11632. }}</span>
  11633. </div>
  11634. <div v-if="groupJson.number > 8">
  11635. <span
  11636. :class="{
  11637. isChair:
  11638. groupStudent[toolindex][gindex] &&
  11639. groupStudent[toolindex][gindex][8],
  11640. updateChair:
  11641. courseDetail.userid == userid &&
  11642. groupStudent[toolindex][gindex] &&
  11643. groupStudent[toolindex][gindex][8] &&
  11644. groupJson.islock == 2,
  11645. }"
  11646. ><span
  11647. class="updateChairBtn"
  11648. @click="
  11649. updateGroupChair(
  11650. groupStudent[toolindex][gindex] &&
  11651. groupStudent[toolindex][gindex][8]
  11652. )
  11653. "
  11654. >修改</span
  11655. ></span
  11656. ><span>{{
  11657. groupStudent[toolindex][gindex] &&
  11658. groupStudent[toolindex][gindex][8]
  11659. ? groupStudent[toolindex][gindex] &&
  11660. groupStudent[toolindex][gindex][8].name
  11661. : "空位置"
  11662. }}</span>
  11663. </div>
  11664. </div>
  11665. <div class="g_d_group_tableBox">
  11666. <div class="g_d_group_chair2">
  11667. <div v-if="groupJson.number > 2">
  11668. <span
  11669. :class="{
  11670. isChair:
  11671. groupStudent[toolindex][gindex] &&
  11672. groupStudent[toolindex][gindex][2],
  11673. updateChair:
  11674. courseDetail.userid == userid &&
  11675. groupStudent[toolindex][gindex] &&
  11676. groupStudent[toolindex][gindex][2] &&
  11677. groupJson.islock == 2,
  11678. }"
  11679. ><span
  11680. class="updateChairBtn"
  11681. @click="
  11682. updateGroupChair(
  11683. groupStudent[toolindex][gindex] &&
  11684. groupStudent[toolindex][gindex][2]
  11685. )
  11686. "
  11687. >修改</span
  11688. ></span
  11689. ><span>{{
  11690. groupStudent[toolindex][gindex] &&
  11691. groupStudent[toolindex][gindex][2]
  11692. ? groupStudent[toolindex][gindex] &&
  11693. groupStudent[toolindex][gindex][2].name
  11694. : "空位置"
  11695. }}</span>
  11696. </div>
  11697. <div v-if="groupJson.number > 6">
  11698. <span
  11699. :class="{
  11700. isChair:
  11701. groupStudent[toolindex][gindex] &&
  11702. groupStudent[toolindex][gindex][6],
  11703. updateChair:
  11704. courseDetail.userid == userid &&
  11705. groupStudent[toolindex][gindex] &&
  11706. groupStudent[toolindex][gindex][6] &&
  11707. groupJson.islock == 2,
  11708. }"
  11709. ><span
  11710. class="updateChairBtn"
  11711. @click="
  11712. updateGroupChair(
  11713. groupStudent[toolindex][gindex] &&
  11714. groupStudent[toolindex][gindex][6]
  11715. )
  11716. "
  11717. >修改</span
  11718. ></span
  11719. ><span>{{
  11720. groupStudent[toolindex][gindex] &&
  11721. groupStudent[toolindex][gindex][6]
  11722. ? groupStudent[toolindex][gindex] &&
  11723. groupStudent[toolindex][gindex][6].name
  11724. : "空位置"
  11725. }}</span>
  11726. </div>
  11727. </div>
  11728. <div class="g_d_group_table">
  11729. <div>
  11730. {{ g.name }}
  11731. </div>
  11732. <div>
  11733. <div
  11734. v-if="
  11735. courseDetail.userid == userid && groupJson.islock == 2
  11736. "
  11737. @click="deleteGroupChair(gindex)"
  11738. >
  11739. 移除组员
  11740. </div>
  11741. <div
  11742. @click="selectGroup(gindex)"
  11743. v-else-if="
  11744. groupStudentUid[toolindex] &&
  11745. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11746. "
  11747. >
  11748. 加入分组
  11749. </div>
  11750. <div
  11751. @click="
  11752. exitGroup(
  11753. groupStudent[toolindex][gindex] &&
  11754. groupStudent[toolindex][gindex][
  11755. groupStudentUid[toolindex][gindex].indexOf(userid)
  11756. ].id
  11757. )
  11758. "
  11759. v-else-if="
  11760. groupStudentUid[toolindex] &&
  11761. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11762. "
  11763. >
  11764. 退出分组
  11765. </div>
  11766. </div>
  11767. </div>
  11768. <div class="g_d_group_chair2">
  11769. <div v-if="groupJson.number > 3">
  11770. <span
  11771. :class="{
  11772. isChair:
  11773. groupStudent[toolindex][gindex] &&
  11774. groupStudent[toolindex][gindex][3],
  11775. updateChair:
  11776. courseDetail.userid == userid &&
  11777. groupStudent[toolindex][gindex] &&
  11778. groupStudent[toolindex][gindex][3] &&
  11779. groupJson.islock == 2,
  11780. }"
  11781. ><span
  11782. class="updateChairBtn"
  11783. @click="
  11784. updateGroupChair(
  11785. groupStudent[toolindex][gindex] &&
  11786. groupStudent[toolindex][gindex][3]
  11787. )
  11788. "
  11789. >修改</span
  11790. ></span
  11791. ><span>{{
  11792. groupStudent[toolindex][gindex] &&
  11793. groupStudent[toolindex][gindex][3]
  11794. ? groupStudent[toolindex][gindex] &&
  11795. groupStudent[toolindex][gindex][3].name
  11796. : "空位置"
  11797. }}</span>
  11798. </div>
  11799. <div v-if="groupJson.number > 7">
  11800. <span
  11801. :class="{
  11802. isChair:
  11803. groupStudent[toolindex][gindex] &&
  11804. groupStudent[toolindex][gindex][7],
  11805. updateChair:
  11806. courseDetail.userid == userid &&
  11807. groupStudent[toolindex][gindex] &&
  11808. groupStudent[toolindex][gindex][7] &&
  11809. groupJson.islock == 2,
  11810. }"
  11811. ><span
  11812. class="updateChairBtn"
  11813. @click="
  11814. updateGroupChair(
  11815. groupStudent[toolindex][gindex] &&
  11816. groupStudent[toolindex][gindex][7]
  11817. )
  11818. "
  11819. >修改</span
  11820. ></span
  11821. ><span>{{
  11822. groupStudent[toolindex][gindex] &&
  11823. groupStudent[toolindex][gindex][7]
  11824. ? groupStudent[toolindex][gindex] &&
  11825. groupStudent[toolindex][gindex][7].name
  11826. : "空位置"
  11827. }}</span>
  11828. </div>
  11829. </div>
  11830. </div>
  11831. <div class="g_d_group_chair">
  11832. <div v-if="groupJson.number > 1">
  11833. <span
  11834. :class="{
  11835. isChair:
  11836. groupStudent[toolindex][gindex] &&
  11837. groupStudent[toolindex][gindex][1],
  11838. updateChair:
  11839. courseDetail.userid == userid &&
  11840. groupStudent[toolindex][gindex] &&
  11841. groupStudent[toolindex][gindex][1] &&
  11842. groupJson.islock == 2,
  11843. }"
  11844. ><span
  11845. class="updateChairBtn"
  11846. @click="
  11847. updateGroupChair(
  11848. groupStudent[toolindex][gindex] &&
  11849. groupStudent[toolindex][gindex][1]
  11850. )
  11851. "
  11852. >修改</span
  11853. ></span
  11854. ><span>{{
  11855. groupStudent[toolindex][gindex] &&
  11856. groupStudent[toolindex][gindex][1]
  11857. ? groupStudent[toolindex][gindex] &&
  11858. groupStudent[toolindex][gindex][1].name
  11859. : "空位置"
  11860. }}</span>
  11861. </div>
  11862. <div v-if="groupJson.number > 5">
  11863. <span
  11864. :class="{
  11865. isChair:
  11866. groupStudent[toolindex][gindex] &&
  11867. groupStudent[toolindex][gindex][5],
  11868. updateChair:
  11869. courseDetail.userid == userid &&
  11870. groupStudent[toolindex][gindex] &&
  11871. groupStudent[toolindex][gindex][5] &&
  11872. groupJson.islock == 2,
  11873. }"
  11874. ><span
  11875. class="updateChairBtn"
  11876. @click="
  11877. updateGroupChair(
  11878. groupStudent[toolindex][gindex] &&
  11879. groupStudent[toolindex][gindex][5]
  11880. )
  11881. "
  11882. >修改</span
  11883. ></span
  11884. ><span>{{
  11885. groupStudent[toolindex][gindex] &&
  11886. groupStudent[toolindex][gindex][5]
  11887. ? groupStudent[toolindex][gindex] &&
  11888. groupStudent[toolindex][gindex][5].name
  11889. : "空位置"
  11890. }}</span>
  11891. </div>
  11892. <div v-if="groupJson.number > 9">
  11893. <span
  11894. :class="{
  11895. isChair:
  11896. groupStudent[toolindex][gindex] &&
  11897. groupStudent[toolindex][gindex][9],
  11898. updateChair:
  11899. courseDetail.userid == userid &&
  11900. groupStudent[toolindex][gindex] &&
  11901. groupStudent[toolindex][gindex][9] &&
  11902. groupJson.islock == 2,
  11903. }"
  11904. ><span
  11905. class="updateChairBtn"
  11906. @click="
  11907. updateGroupChair(
  11908. groupStudent[toolindex][gindex] &&
  11909. groupStudent[toolindex][gindex][9]
  11910. )
  11911. "
  11912. >修改</span
  11913. ></span
  11914. ><span>{{
  11915. groupStudent[toolindex][gindex] &&
  11916. groupStudent[toolindex][gindex][9]
  11917. ? groupStudent[toolindex][gindex] &&
  11918. groupStudent[toolindex][gindex][9].name
  11919. : "空位置"
  11920. }}</span>
  11921. </div>
  11922. </div>
  11923. </div>
  11924. </div>
  11925. </div>
  11926. </div>
  11927. <span slot="footer" class="dialog-footer">
  11928. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11929. </span>
  11930. </el-dialog>
  11931. <el-dialog
  11932. title="分组设置"
  11933. :visible.sync="dialogVisibleGroup2"
  11934. :append-to-body="true"
  11935. width="650px"
  11936. :before-close="handleClose"
  11937. class="dialog_diy"
  11938. >
  11939. <div class="groupBox">
  11940. <div v-if="groupJson2.group" class="groupContent">
  11941. <div class="groupTitle">请设置小组数量及名称</div>
  11942. <div
  11943. v-for="(item, index) in groupJson2.group"
  11944. :key="index"
  11945. class="groupName"
  11946. >
  11947. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11948. <el-input
  11949. v-model="item.name"
  11950. placeholder="请输入名称..."
  11951. style="width: 250px"
  11952. ></el-input>
  11953. <!-- <div class="groupBtn">
  11954. <el-button type="primary" size="small" @click="addGroup(index)">
  11955. 添加</el-button>
  11956. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11957. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11958. </div> -->
  11959. </div>
  11960. </div>
  11961. <div class="groupContent">
  11962. <div class="groupTitle">请设置每组人数</div>
  11963. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11964. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11965. <el-input
  11966. v-model="groupJson2.number"
  11967. style="width: 150px"
  11968. placeholder="请输入2-10的数字"
  11969. @change="numberPan"
  11970. ></el-input>
  11971. </div>
  11972. </div>
  11973. <span slot="footer" class="dialog-footer">
  11974. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11975. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11976. </span>
  11977. </el-dialog>
  11978. <el-dialog
  11979. title="作业提交"
  11980. :visible.sync="dialogVisibleGroupWork"
  11981. :append-to-body="true"
  11982. width="500px"
  11983. :before-close="handleClose"
  11984. class="dialog_change"
  11985. >
  11986. <div class="marginT">
  11987. <div>上传文件</div>
  11988. <div
  11989. class="chapter_add"
  11990. @click="addImg($event)"
  11991. v-if="studyJuri[0].cover.length == 0"
  11992. >
  11993. <div class="up_photo">
  11994. <img src="../assets/icon/uploadImg.png" alt />
  11995. </div>
  11996. <!-- <input
  11997. type="file"
  11998. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11999. style="display: none"
  12000. @change="beforeUpload1($event, 1)"
  12001. /> -->
  12002. <input
  12003. type="file"
  12004. accept="*"
  12005. style="display: none"
  12006. @change="beforeUpload1($event, 1)"
  12007. />
  12008. </div>
  12009. <!-- capture="camera" -->
  12010. <div
  12011. class="chapter_add"
  12012. style="
  12013. display: flex;
  12014. width: 100%;
  12015. flex-direction: row;
  12016. flex-wrap: wrap;
  12017. justify-content: flex-start;
  12018. padding: 15px 0;
  12019. "
  12020. v-if="studyJuri[0].cover.length > 0"
  12021. >
  12022. <div class="upCover">
  12023. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12024. <img :src="word" alt v-else-if="fileType == 1" />
  12025. <img :src="video" alt v-else-if="fileType == 2" />
  12026. <img :src="word2" alt v-else-if="fileType == 3" />
  12027. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12028. <div class="deleteWord" @click="clean(1)">
  12029. <img src="../assets/icon/deleteWorks.png" alt />
  12030. </div>
  12031. </div>
  12032. </div>
  12033. </div>
  12034. <div
  12035. class="upload_send"
  12036. @click="addCourseWorks2(taskCount)"
  12037. v-if="!proVisible"
  12038. >
  12039. 提交
  12040. </div>
  12041. </el-dialog>
  12042. <el-dialog
  12043. title="修改分组"
  12044. :visible.sync="dialogVisibleUpdateGroup"
  12045. :append-to-body="true"
  12046. width="350px"
  12047. :before-close="handleClose"
  12048. class="dialog_diy"
  12049. >
  12050. <div>
  12051. <h2>
  12052. {{ this.updateGroupUser.name }}
  12053. </h2>
  12054. <div style="color: rgb(171 171 171); margin-top: 10px">
  12055. 请选择要进入的分组
  12056. </div>
  12057. <el-radio-group v-model="checkChair">
  12058. <el-radio
  12059. style="display: block; margin-top: 20px"
  12060. v-for="(item, index) in updateGroupArray"
  12061. :label="item.label"
  12062. :key="index"
  12063. >{{ item.name }}</el-radio
  12064. >
  12065. </el-radio-group>
  12066. </div>
  12067. <span slot="footer" class="dialog-footer">
  12068. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12069. <el-button type="primary" @click="updateChair">确定</el-button>
  12070. </span>
  12071. </el-dialog>
  12072. <el-dialog
  12073. title="移除组员"
  12074. :visible.sync="dialogVisibleDeleteGroup"
  12075. :append-to-body="true"
  12076. width="350px"
  12077. :before-close="handleClose"
  12078. class="dialog_diy"
  12079. >
  12080. <div>
  12081. <h2>
  12082. {{ this.deleteGroupArray.name }}
  12083. </h2>
  12084. <div style="color: rgb(171 171 171); margin-top: 10px">
  12085. 请选择要删除的组员
  12086. </div>
  12087. <el-checkbox-group v-model="checkDeleteGroup">
  12088. <el-checkbox
  12089. style="display: flex; margin-top: 20px"
  12090. v-for="(item, index) in deleteGroupUser"
  12091. :label="item.userid"
  12092. :key="index"
  12093. >{{ item.name }}</el-checkbox
  12094. >
  12095. </el-checkbox-group>
  12096. </div>
  12097. <span slot="footer" class="dialog-footer">
  12098. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12099. <el-button type="primary" @click="deleteChair">确定</el-button>
  12100. </span>
  12101. </el-dialog>
  12102. <el-dialog
  12103. title="批量上传"
  12104. :visible.sync="dialogVisiblePl"
  12105. :append-to-body="true"
  12106. width="700px"
  12107. :before-close="handleClose"
  12108. class="dialog_change"
  12109. >
  12110. <div class="marginT">
  12111. <div class="plworkBox">
  12112. <div
  12113. class="chapter_add"
  12114. style="
  12115. display: flex;
  12116. width: 150px;
  12117. flex-direction: row;
  12118. flex-wrap: wrap;
  12119. justify-content: flex-start;
  12120. margin: 0 10px 10px 0;
  12121. "
  12122. v-for="(item, index) in plworkFile"
  12123. :key="index"
  12124. >
  12125. <div class="upCover2">
  12126. <img
  12127. :src="item.url"
  12128. alt
  12129. v-if="item.fileType == 1"
  12130. @click="previewImg(item.url)"
  12131. />
  12132. <img :src="word" alt v-else-if="item.fileType == 4" />
  12133. <img :src="video" alt v-else />
  12134. <!-- <span class="picName">{{ item.name }}</span> -->
  12135. <!-- <el-input
  12136. v-model="item.username"
  12137. placeholder="请输入学生名字"
  12138. style="margin-top: 10px"
  12139. ></el-input> -->
  12140. <div
  12141. class="pl_select_box"
  12142. @click="
  12143. getUpdateMore(true, checkUpload(), item.username, index)
  12144. "
  12145. >
  12146. {{ getSName(item.username) }}
  12147. </div>
  12148. <!-- <el-select
  12149. style="margin-top: 10px"
  12150. v-model="item.username"
  12151. filterable
  12152. allow-create
  12153. placeholder="请选择学生"
  12154. >
  12155. <el-option
  12156. v-for="item1 in checkUpload()"
  12157. :key="item1.userid"
  12158. :label="item1.name ? item1.name : item1.username"
  12159. :value="item1.userid"
  12160. >
  12161. </el-option>
  12162. </el-select> -->
  12163. <div class="deleteWord" @click="clean2(index)">
  12164. <img src="../assets/icon/deleteWorks.png" alt />
  12165. </div>
  12166. </div>
  12167. </div>
  12168. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12169. <div class="up_photo2">
  12170. <img src="../assets/icon/plwork.png" alt />
  12171. <span>点击上传文件</span>
  12172. </div>
  12173. <input
  12174. type="file"
  12175. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12176. multiple="multiple"
  12177. style="display: none"
  12178. @change="beforeUpload3($event, 6)"
  12179. />
  12180. </div>
  12181. </div>
  12182. </div>
  12183. <!-- capture="camera" -->
  12184. <div
  12185. class="upload_send"
  12186. @click="addCourseWorksPl(taskCount)"
  12187. v-if="!proVisible2"
  12188. >
  12189. 提交
  12190. </div>
  12191. </el-dialog>
  12192. <el-dialog
  12193. title="修改名称"
  12194. :visible.sync="dialogVisibleSname"
  12195. width="500px"
  12196. :before-close="handleClose"
  12197. class="dialog_diy"
  12198. center
  12199. >
  12200. <div
  12201. style="
  12202. text-align: center;
  12203. display: flex;
  12204. align-items: center;
  12205. justify-content: center;
  12206. "
  12207. >
  12208. <span class="tian1">名称</span>
  12209. <div
  12210. class="pl_select_box"
  12211. style="margin-left: 10px; width: 200px"
  12212. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12213. >
  12214. {{ getSName(worksSName) }}
  12215. </div>
  12216. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12217. placeholder="请选择学生">
  12218. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12219. :value="item.userid">
  12220. </el-option>
  12221. </el-select> -->
  12222. <!-- <el-input
  12223. v-model="worksSName"
  12224. style="width: 250px; margin: 15px 0px"
  12225. ></el-input> -->
  12226. </div>
  12227. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12228. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12229. <el-button type="primary" @click="updateName">确 定</el-button>
  12230. </span>
  12231. </el-dialog>
  12232. <el-dialog
  12233. title="英语写作"
  12234. :visible.sync="engDialogVisible"
  12235. :append-to-body="true"
  12236. width="800px"
  12237. :before-close="handleClose"
  12238. class="dialog_diy"
  12239. >
  12240. <onlineWrite
  12241. v-if="engDialogVisible"
  12242. :englishList="englishList"
  12243. :myAnswerList1="myAnswerList1"
  12244. :userid="userid"
  12245. ref="engJson"
  12246. ></onlineWrite>
  12247. <span slot="footer" class="dialog-footer">
  12248. <el-button @click="engDialogVisible = false">取 消</el-button>
  12249. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12250. </span>
  12251. </el-dialog>
  12252. <el-dialog
  12253. title="英语写作"
  12254. :visible.sync="engUpdateDialogVisible"
  12255. :append-to-body="true"
  12256. width="800px"
  12257. :before-close="handleClose"
  12258. class="dialog_diy fullStyle"
  12259. >
  12260. <div class="engUpBox">
  12261. <div class="engUpTop">
  12262. <div class="engTitle">
  12263. <div>作文题目:</div>
  12264. <div>{{ englishList1.engTitle }}</div>
  12265. </div>
  12266. <div class="engText">
  12267. <div>作文内容:</div>
  12268. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12269. </div>
  12270. </div>
  12271. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12272. <div class="oldBox">
  12273. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12274. <div class="oldText">
  12275. <div class="detailBox">
  12276. <div class="oldDetail">
  12277. <div>标题:</div>
  12278. <div>{{ oldEnglishJson.engTitle }} </div>
  12279. </div>
  12280. <div class="oldDetail1">
  12281. <div>正文:</div>
  12282. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12283. </div>
  12284. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12285. <div>图片:</div>
  12286. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12287. </div>
  12288. </div>
  12289. </div>
  12290. </div>
  12291. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12292. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12293. <div class="oldText">
  12294. <div class="detailBox" style="position: relative;">
  12295. <div class="oldDetail">
  12296. <div>标题:</div>
  12297. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12298. <div v-else v-html="newEnglishList.engTitle"></div>
  12299. </div>
  12300. <div class="oldDetail">
  12301. <div>正文:</div>
  12302. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12303. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12304. </div>
  12305. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12306. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12307. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12308. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12309. </div>
  12310. </div>
  12311. </div>
  12312. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12313. <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">
  12314. <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>
  12315. <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>
  12316. </div>
  12317. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12318. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12319. <div class="detailBox" style="position: relative;">
  12320. <div class="oldDetail">
  12321. <div>标题:</div>
  12322. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12323. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12324. </div>
  12325. <div class="oldDetail">
  12326. <div>正文:</div>
  12327. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12328. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12329. </div>
  12330. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12331. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12332. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12333. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12334. </div>
  12335. </div>
  12336. <div class="oldText" v-else-if="newEngIndex == -1">
  12337. <div class="detailBox" style="position: relative;">
  12338. <div class="oldDetail">
  12339. <div>标题:</div>
  12340. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12341. <div v-else v-html="newEnglishList.engTitle"></div>
  12342. </div>
  12343. <div class="oldDetail">
  12344. <div>正文:</div>
  12345. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12346. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12347. </div>
  12348. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12349. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12350. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12351. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12352. </div>
  12353. </div>
  12354. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12355. <div class="detailBox" style="position: relative;">
  12356. <div class="oldDetail">
  12357. <div>标题:</div>
  12358. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12359. <div v-else>
  12360. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12361. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12362. </div>
  12363. </div>
  12364. <div class="oldDetail">
  12365. <div>正文:</div>
  12366. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12367. <div v-else>
  12368. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12369. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12370. </div>
  12371. </div>
  12372. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12373. <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>
  12374. <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>
  12375. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12376. </div>
  12377. </div>
  12378. </div>
  12379. </div>
  12380. </div>
  12381. <span slot="footer" class="dialog-footer">
  12382. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12383. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12384. </span>
  12385. </el-dialog>
  12386. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12387. <interVideo
  12388. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12389. :videoJson="videoJson"
  12390. :userid="userid"
  12391. :id="id"
  12392. :courseType="courseType"
  12393. :taskCount="taskCount"
  12394. :toolindex="toolindex"
  12395. :videoType="videoType"
  12396. ></interVideo>
  12397. <UpdateMore
  12398. :dialogVisibleMember.sync="dialogVisibleMember"
  12399. :cList="uploadStudentJuri"
  12400. :userid="userid"
  12401. :searchTN="worksSName2"
  12402. @setPlname="setPlname"
  12403. ></UpdateMore>
  12404. <!-- <wordCloud
  12405. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12406. :data="wordCloudData"
  12407. ></wordCloud> -->
  12408. <el-dialog
  12409. title="词云"
  12410. :visible.sync="dialogVisibleWordCloud"
  12411. width="30%"
  12412. class="dialog_diy"
  12413. :before-close="handleClose">
  12414. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12415. </el-dialog>
  12416. <el-dialog
  12417. title="挑人"
  12418. :visible.sync="dialogVisiblePickPeople"
  12419. width="650px"
  12420. :before-close="handleClose"
  12421. class="dialog_diy"
  12422. center
  12423. >
  12424. <div class="pick_box">
  12425. <div
  12426. class="noWorksName"
  12427. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12428. v-for="(item, index) in uploadStudentJuri"
  12429. :key="index"
  12430. @click="pickStudent(item)"
  12431. >
  12432. {{ item.name }}
  12433. </div>
  12434. </div>
  12435. </el-dialog>
  12436. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12437. :englishVoiceJson='englishVoiceJson'
  12438. :userid="userid"
  12439. :id="id"
  12440. :courseType="courseType"
  12441. :taskCount="taskCount"
  12442. :toolindex="toolindex"
  12443. @selectSWorks="selectSWorks"
  12444. @selectStudent="selectStudent"
  12445. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12446. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12447. :userid="userid"
  12448. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12449. :commentDetail="commentDetail"
  12450. :courseDetail="courseDetail"
  12451. :wScore="wScore"
  12452. :scoreDetail="scoreDetail"
  12453. @selectSWorks="selectSWorks"
  12454. @selectStudent="selectStudent"></checkEnglishVoice>
  12455. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12456. <choseWorksDetailDialog
  12457. ref="choseWorksDetailDialogRef"
  12458. :worksStudentData="worksStudent"
  12459. :noWorksSData="noWorksS"
  12460. :chapInfoListData="chapInfoList"
  12461. :courseType="courseType"
  12462. :taskCount="taskCount"
  12463. :tType="tType"
  12464. :sIsOpen="sIsOpen"
  12465. :courseDetail="courseDetail"
  12466. :groupStudent2="groupStudent"
  12467. :groupStudentUid2="groupStudentUid"
  12468. :oid="oid"
  12469. :org="org"
  12470. @getCourseDetail="getCourseDetail"
  12471. @selectSLook="selectSLook"
  12472. @selectSWorks="selectSWorks"
  12473. @selectStudent="selectStudent"
  12474. @deleteWorks="deleteWorks"
  12475. @openTools="openTools"
  12476. @openWord="openWord"
  12477. @openScore="openScore"
  12478. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12479. />
  12480. <el-dialog
  12481. :visible.sync="confirmOpenDig"
  12482. width="500px"
  12483. :modal="false"
  12484. class="confirmOpenDigCss dialog_diyCopy"
  12485. :before-close="handleClose">
  12486. <div style="display: flex;align-items: center;">
  12487. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12488. <span>“{{ courseDetail.title }}”开课啦</span>
  12489. </div>
  12490. <div style="margin: 20px 0 35px;">
  12491. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12492. <div>要认真听讲哦~</div>
  12493. </div>
  12494. <div style="text-align: center;">
  12495. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12496. </div>
  12497. </el-dialog>
  12498. <appStoreC ref="appStoreC"
  12499. :sStudent="sStudent"
  12500. :courseType="courseType"
  12501. :taskCount="taskCount"
  12502. :toolindex="toolindex"
  12503. @selectSWorks="selectSWorks"
  12504. @selectStudent="selectStudent"
  12505. ></appStoreC>
  12506. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12507. </div>
  12508. </template>
  12509. <script>
  12510. import "../common/aws-sdk-2.235.1.min.js";
  12511. // import pdf from "./components/pdf3";
  12512. import pdf from "./components/vpdf";
  12513. import AskStatic from "./components/askStatic";
  12514. import AskStatic2 from "./components/askStatic2";
  12515. import AnswerData2 from "./components/answerData2";
  12516. import AnswerData from "./components/answerData";
  12517. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  12518. import EditorBar from "./tools/wangEnduit.vue";
  12519. import Table from "./tools/table.vue";
  12520. import Time from "./tools/time.vue";
  12521. import Mind from "./tools/jsmind.vue";
  12522. import Sunburst from "./tools/sunburst";
  12523. import SeeBoard from "./tools/seeBoard";
  12524. import * as imageConversion from "image-conversion";
  12525. import Audio from "./components/audio.vue";
  12526. import ImgDraw from "./tools/imgDraw/imgDraw";
  12527. import { Empty } from "element-ui";
  12528. import RecordRTC from "recordrtc";
  12529. import interVideo from "./interVideo/index.vue";
  12530. import UpdateMore from "./updateMore/updateMore.vue";
  12531. import wordCloud from "./wordCloud/index.vue";
  12532. import axios from "axios";
  12533. import JSZip from "jszip";
  12534. import FileSaver from "file-saver";
  12535. import onlineWrite from "./components/onlineWrite";
  12536. import englishEva from "./components/englishEva";
  12537. import * as Diff from 'diff'
  12538. import EnglishVoice from './EnglishVoice2/index.vue'
  12539. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12540. import correctText from './components/correctText.vue'
  12541. import scoreItem from './scoreList/scoreItem.vue'
  12542. import scoreZong from './scoreZong/index.vue'
  12543. import classRoomHelper from './classRoomHelper/index.vue'
  12544. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  12545. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12546. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12547. import { v4 as uuidv4 } from "uuid";
  12548. var OpenCC = require("opencc-js");
  12549. import choseWordCloud from './components/choseWordCloud.vue'
  12550. import appStoreC from "./components/appStoreC.vue";
  12551. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12552. import { myMixin } from "@/mixins/mixin.js"
  12553. import { tools as toolsList } from "@/common/tools2.js";
  12554. import katex from 'katex'
  12555. import 'katex/dist/katex.min.css'
  12556. let converter = OpenCC.Converter({
  12557. from: "hk",
  12558. to: "cn"
  12559. });
  12560. const getFile = (url) => {
  12561. return new Promise((resolve, reject) => {
  12562. var credentials = {
  12563. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12564. secretAccessKey: "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",
  12565. }; //秘钥形式的登录上传
  12566. window.AWS.config.update(credentials);
  12567. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12568. let url2 = url;
  12569. let _url2 = "";
  12570. if (
  12571. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12572. ) {
  12573. _url2 = url2.split(
  12574. "https://view.officeapps.live.com/op/view.aspx?src="
  12575. )[1];
  12576. } else {
  12577. _url2 = url2;
  12578. }
  12579. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12580. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12581. var params = {
  12582. Bucket: "ccrb",
  12583. Key: name
  12584. };
  12585. s3.getObject(params, function (err, data) {
  12586. if (err) {
  12587. console.log(err, err.stack)
  12588. resolve({ data: 1 });
  12589. }else {
  12590. resolve({ data: data.Body });
  12591. console.log(data);
  12592. } // sxuccessful response
  12593. });
  12594. // axios({
  12595. // method: "get",
  12596. // url,
  12597. // responseType: "blob",
  12598. // })
  12599. // .then((data) => {
  12600. // resolve({ data: data.data });
  12601. // })
  12602. // .catch((error) => {
  12603. // resolve({ data: 1 });
  12604. // // reject(error.toString());
  12605. // });
  12606. });
  12607. };
  12608. export default {
  12609. mixins: [ myMixin ],
  12610. components: {
  12611. choseWordCloud,
  12612. EditorBar,
  12613. Time,
  12614. pdf,
  12615. AskStatic,
  12616. AskStatic2,
  12617. Mind,
  12618. Sunburst,
  12619. SeeBoard,
  12620. AnswerData2,
  12621. AnswerData,
  12622. sortToolWorkShow,
  12623. Audio,
  12624. ImgDraw,
  12625. Table,
  12626. interVideo,
  12627. UpdateMore,
  12628. wordCloud,
  12629. onlineWrite,
  12630. englishEva,
  12631. EnglishVoice,
  12632. checkEnglishVoice,
  12633. correctText,
  12634. scoreItem,
  12635. classRoomHelper,
  12636. scoreZong,
  12637. statisticalAnalysis,
  12638. choseWorksDetailDialog,
  12639. appStoreC,
  12640. cocoFlowDia,
  12641. studentClassRoomHelper
  12642. },
  12643. data() {
  12644. return {
  12645. startTime: "",
  12646. // 是否允许学生查看内容资料 2不可以 1可以
  12647. IsStulook:false,
  12648. homeWorkLoading:false,
  12649. wordCloudKey: 0,
  12650. bg: null,
  12651. drawShow: false,
  12652. dialogVisible: false,
  12653. dialogVisiblePl: false,
  12654. commentDialogVisible: false,
  12655. dialogVisibleMember: false,
  12656. dialogVisibleWordCloud: false,
  12657. videoVisible: false,
  12658. isStar: false,
  12659. studentEvalDialogVisible: false,
  12660. studentEvalDialogVisibleTeacher: false,
  12661. dialogVisibleSelect: false,
  12662. dialogVisibleSelectTeacher: false,
  12663. dialogVisibleScore: false,
  12664. dialogVisibleENScore: false,
  12665. dialogVisibleSentence: false,
  12666. dialogVisibleSentenceTeacher: false,
  12667. dialogVisibleSentence1: false,
  12668. dialogVisibleWorks: false,
  12669. dialogVisibleTable: false,
  12670. dialogVisibleTableTeacher: false,
  12671. dialogVisibleWord: false,
  12672. dialogVisibleWordTeacher: false,
  12673. dialogVisibleTable2: false,
  12674. dialogVisibleTable3: false,
  12675. dialogVisibleGroupWork: false,
  12676. dialogVisibleUpdateGroup: false,
  12677. dialogVisibleDeleteGroup: false,
  12678. dialogVisibleSname: false,
  12679. dialogVisibleVideo: false,
  12680. dialogVisiblePickPeople: false,
  12681. engDialogVisible: false,
  12682. engUpdateDialogVisible: false,
  12683. engEvaDialogVisible: false,
  12684. evaEngJson: {
  12685. teacherJson: {},
  12686. studentJson: {},
  12687. message: {},
  12688. },
  12689. isNoUserid:false,
  12690. engListLength:0,
  12691. engWid:"",
  12692. newEnglishList:{
  12693. engTitle:"",
  12694. engText:"",
  12695. },
  12696. newEnglishList1:[],
  12697. oldEnglishJson:{},
  12698. oldEnglishJson1:{},
  12699. englishList1:{},
  12700. englishList:{},
  12701. myAnswerList1:{},
  12702. topHeight:0,
  12703. newEngIndex:-1,
  12704. englishToolIndex:0,
  12705. worksSName: "",
  12706. classJuri: [],
  12707. uploadStudentJuri: [],
  12708. uploadCid: "",
  12709. snameWid: "",
  12710. sStudent: {},
  12711. sTool: "",
  12712. bzText: "",
  12713. commentDetail: [],
  12714. selectAnswer: [],
  12715. videoDetail: {},
  12716. selectJson: {},
  12717. eScore: { eBzText: "", eStar: [] },
  12718. id: this.$route.query.courseId,
  12719. userid: this.$route.query.userid,
  12720. classId: this.$route.query.cid,
  12721. role: this.$route.query.role,
  12722. // courseTypeLine: this.$route.query.type,
  12723. oid: this.$route.query.oid,
  12724. org: this.$route.query.org,
  12725. tType: this.$route.query.tType,
  12726. courseType: this.$route.query.type,
  12727. screenType: this.$route.query.screenType,
  12728. tcid2: this.$route.query.tcid,
  12729. tcid: "",
  12730. pptImgUrl: "",
  12731. pptImgUrl1: "",
  12732. commentText: "",
  12733. full: false,
  12734. sIsOpen: false,
  12735. IsLookOpen: false,
  12736. IsFollow: false,
  12737. pzDialog: false,
  12738. contentDialog: false,
  12739. mlDialog: false,
  12740. type: 1,
  12741. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12742. sentenceList1: [],
  12743. tableJson: [],
  12744. tableJsonO: [],
  12745. wordJson: [],
  12746. wordJsonO: [],
  12747. vedio: [],
  12748. text: [],
  12749. textList: [],
  12750. line: [],
  12751. lineList: [],
  12752. chapTools: [],
  12753. chapToolList: [],
  12754. file: [],
  12755. fileC: [],
  12756. vedioTime: [],
  12757. upToolImg: "",
  12758. preTime: 0,
  12759. rateList: {
  12760. ca: 0,
  12761. },
  12762. rateParams: [],
  12763. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12764. studyJuri: [
  12765. {
  12766. content: "",
  12767. cover: [],
  12768. upVedio: [],
  12769. upFile: [],
  12770. },
  12771. ],
  12772. isClose: 0,
  12773. plworkFile: [],
  12774. mr: require("../assets/vedioPic.png"),
  12775. word: require("../assets/icon/isWord.png"),
  12776. word2: require("../assets/icon/word2.png"),
  12777. video: require("../assets/icon/isVideo.png"),
  12778. noLikes: require("../assets/icon/comment/noLikes.png"),
  12779. likes: require("../assets/icon/comment/likes.png"),
  12780. scoreImg: require("../assets/score.png"),
  12781. courseDetail: {},
  12782. reply: "",
  12783. isSelect: false,
  12784. chapInfo: [],
  12785. chapInfoList: [],
  12786. taskCount: 0,
  12787. imgList: [],
  12788. noImgList: [],
  12789. pzList: [],
  12790. timeWorkList: [],
  12791. PlTextList: [
  12792. "Excellent!",
  12793. "nice!",
  12794. "很有创意!",
  12795. "还不错哦~",
  12796. "继续努力哦~",
  12797. ],
  12798. isClickNav: "",
  12799. navId: "",
  12800. playerOptions: {
  12801. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12802. autoplay: false, //如果true,浏览器准备好时开始回放。
  12803. muted: false, // 默认情况下将会消除任何音频。
  12804. loop: false, // 导致视频一结束就重新开始。
  12805. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12806. language: "zh-CN",
  12807. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12808. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12809. sources: [
  12810. {
  12811. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12812. src: "", //url地址require("../../assets/media/aaa.mp4")
  12813. },
  12814. ],
  12815. // poster: require("../../assets/tu31.png"), //你的封面地址
  12816. // poster: dataRes.imgUrl, //你的封面地址
  12817. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12818. controlBar: {
  12819. timeDivider: true, //当前时间和持续时间的分隔符
  12820. durationDisplay: true, //显示持续时间
  12821. remainingTimeDisplay: false, //是否显示剩余时间功能
  12822. fullscreenToggle: true, //全屏按钮
  12823. },
  12824. },
  12825. playerOptions1: {
  12826. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12827. autoplay: false, //如果true,浏览器准备好时开始回放。
  12828. muted: false, // 默认情况下将会消除任何音频。
  12829. loop: false, // 导致视频一结束就重新开始。
  12830. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12831. language: "zh-CN",
  12832. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12833. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12834. sources: [
  12835. {
  12836. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12837. src: "", //url地址require("../../assets/media/aaa.mp4")
  12838. },
  12839. ],
  12840. // poster: require("../../assets/tu31.png"), //你的封面地址
  12841. // poster: dataRes.imgUrl, //你的封面地址
  12842. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12843. controlBar: {
  12844. timeDivider: true, //当前时间和持续时间的分隔符
  12845. durationDisplay: true, //显示持续时间
  12846. remainingTimeDisplay: false, //是否显示剩余时间功能
  12847. fullscreenToggle: true, //全屏按钮
  12848. },
  12849. },
  12850. playerO: {},
  12851. noneBtnImg: false,
  12852. proVisible: false,
  12853. proVisible2: false,
  12854. progress: 0,
  12855. isFinishSize: 0,
  12856. isAllSize: 0,
  12857. questionAnswer: "",
  12858. answerQ: "", //问答标题
  12859. rateJson: [],
  12860. wbCount: 0,
  12861. wordCount: 0,
  12862. mindCount: 0,
  12863. askCount: 0,
  12864. noteCount: 0,
  12865. mindNetWorkCount: 0,
  12866. libraryCount: 0,
  12867. workCount: 0,
  12868. timeCount: 0,
  12869. answerCount: 0,
  12870. trainCount: 0,
  12871. evalCount: 0,
  12872. dialogImageUrl: "",
  12873. pictureDialog: false,
  12874. toolTypeList: [],
  12875. dialogVisible1: false,
  12876. dialogVisible2: false,
  12877. dialogVisible3: false,
  12878. dialogVisible6: false,
  12879. dialogVisible4: false,
  12880. isNoHomeWork: false,
  12881. dialogVisible5: false,
  12882. dialogVisible5Teacher: false,
  12883. dialogVisibleChoice: false,
  12884. dialogVisibleChoiceTeacher: false,
  12885. answerDialogVisible: false,
  12886. answerDialogVisibleTeacher: false,
  12887. juriVisible: false,
  12888. timeDialogVisible: false,
  12889. replyDialogVisible: false,
  12890. toolDialogVisible: false,
  12891. replyIndex: 0,
  12892. replyPid: "",
  12893. radio: [],
  12894. isAsk: false,
  12895. askJson: {
  12896. askCount: 1,
  12897. askTitle: "",
  12898. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12899. },
  12900. testJson: {},
  12901. videoType:0,
  12902. checkJson: [],
  12903. askList: [],
  12904. answerList: [],
  12905. navList: [],
  12906. addPzDialog: false,
  12907. pzConText: "",
  12908. worksStudent: [],
  12909. isCloseList: [],
  12910. workStudent: [],
  12911. groupStudent: [],
  12912. groupStudentUid: [],
  12913. noWorksS: [],
  12914. isWorksS: [],
  12915. noWorksStudent: [],
  12916. toolindex: 0,
  12917. toolDetailIndex: null,
  12918. groupIndex: 0,
  12919. workTypeB: false,
  12920. workTypeC: false,
  12921. isAnswer: false,
  12922. isHovered: false,
  12923. isHovered1: false,
  12924. isHovered2: false,
  12925. commentTagShow:0,
  12926. timer: null,
  12927. timer2: null,
  12928. opertimer: null,
  12929. showType: '',
  12930. fileType: 0,
  12931. showPDF: false,
  12932. noteName: "",
  12933. evaJuri: [],
  12934. evalua: "",
  12935. eTitle: "",
  12936. eName: "",
  12937. eJson: {},
  12938. fid: "", //一级
  12939. sid: "", //二级
  12940. tid: "", //二级
  12941. typeMode: 1,
  12942. eJSONNum: 0,
  12943. Etype: 1,
  12944. data: {
  12945. meta: {
  12946. name: "example",
  12947. author: "dd@163.com",
  12948. version: "0.2",
  12949. },
  12950. format: "node_array",
  12951. data: [{ id: "root", isroot: true, topic: "" }],
  12952. },
  12953. fullDialogVisible: false,
  12954. fulltype: "",
  12955. fullUrl: "",
  12956. commentIndexJson: {},
  12957. Stbodywidth: 0,
  12958. ispzType: 0,
  12959. pzType: 1,
  12960. wScore: 0,
  12961. scoreDetail: "",
  12962. videoStart: false,
  12963. recorder: null,
  12964. groupJson: {},
  12965. islock: false,
  12966. groupJson2: {},
  12967. dialogVisibleGroup: false,
  12968. dialogVisibleGroup2: false,
  12969. updateGroupArray: [],
  12970. updateGroupUser: {},
  12971. deleteGroupUser: [],
  12972. deleteGroupArray: {},
  12973. checkChair: "",
  12974. checkDeleteGroup: [],
  12975. inviteCode: "",
  12976. courseGroupStudent: [],
  12977. courseGroupStudentUid: [],
  12978. courseGroup: {},
  12979. isGroup: false,
  12980. // toolIndex: null,
  12981. tool: {},
  12982. isWorkTool: [
  12983. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12984. ], //, 40
  12985. videoJson: {},
  12986. toolType: 0,
  12987. checktoolArray: [],
  12988. vChapterData: [],
  12989. isUpdateToolDetail: false,
  12990. isUpdateToolDetail1: false,
  12991. updateToolDetailInner: "",
  12992. checkboxList: [],
  12993. plIndex: "",
  12994. worksSName2: "",
  12995. worksSid: "",
  12996. wordCloudData: [],
  12997. isPickStudent: [],
  12998. pzStype: 1,
  12999. myAnList: {},
  13000. userMes:{},
  13001. downLoading: false,
  13002. greyType: false,
  13003. correctWord: [],
  13004. isUpdateText: "",
  13005. EnglishVoiceDialog: false,
  13006. englishVoiceJson: {},
  13007. englishVoiceJsonWork:[],
  13008. scoreList:{
  13009. listdata:[],
  13010. isScoreList:[],
  13011. },
  13012. classRoomHelperWidth: '85px',
  13013. orgArray:[],
  13014. oidArray:[],
  13015. toolsList: toolsList,
  13016. splitScreenData:{
  13017. isOpen:false,
  13018. userId:"",
  13019. uid:"",
  13020. myUid:"",
  13021. loading:false,
  13022. behavior:null,
  13023. },
  13024. confirmOpenDig:false,
  13025. confirmOpenDigData:'',
  13026. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  13027. diffKey:"1",
  13028. getCourseGroupLoading: false,
  13029. selectSWorksLoading:false,
  13030. selectStudentLoading:false,
  13031. selectSLookLoading:false,
  13032. getPickLoading:false,
  13033. selectPzLoading:false,
  13034. getSplitScreenDataLoading:false,
  13035. };
  13036. },
  13037. methods: {
  13038. //查看应用中心作业
  13039. openCocoFlow(w){
  13040. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13041. },
  13042. getAIJ(){
  13043. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13044. let oid = res.data[0];
  13045. let org = res.data[1];
  13046. let oidArray = [];
  13047. let orgArray = [];
  13048. oid.forEach(i=>oidArray.push(i.oid))
  13049. org.forEach(i=>orgArray.push(i.oid))
  13050. this.orgArray = orgArray;
  13051. this.oidArray = oidArray;
  13052. })
  13053. },
  13054. insertMemorandum(_html){//保存行为操作
  13055. //variable
  13056. //btn
  13057. let params = [{
  13058. uid:this.userid,
  13059. courseId:this.id+(this.tcid2?this.tcid2:''),
  13060. content:_html
  13061. }]
  13062. console.log("👇👇")
  13063. console.log(params)
  13064. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13065. if(res.data==1){
  13066. console.log('保存操作成功')
  13067. }else{
  13068. console.log('保存操作失败')
  13069. }
  13070. }).catch(e=>{
  13071. console.log('保存操作失败')
  13072. console.log(e)
  13073. })
  13074. },
  13075. gx(){
  13076. this.$forceUpdate();
  13077. },
  13078. isUpdateCorrect(t,p){
  13079. if(this.greyType == false){
  13080. this.isUpdateText = t;
  13081. this.greyType = true;
  13082. }else{
  13083. if(p == 1){
  13084. this.newEnglishList.engText = this.isUpdateText;
  13085. }else if(p == 2){
  13086. this.oldEnglishJson1.engText = this.isUpdateText;
  13087. }else if(p == 3){
  13088. this.newEnglishList.engText = this.isUpdateText;
  13089. }else{
  13090. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13091. }
  13092. this.greyType = false
  13093. }
  13094. },
  13095. aiCorrect(t,p){
  13096. let aiText = "";
  13097. const loading = this.$loading.service({
  13098. background: "rgba(255, 255, 255)",
  13099. target: document.querySelectorAll(".loadingText")[0],
  13100. });
  13101. let param = {
  13102. model: "gpt-3.5-turbo",
  13103. temperature: 0,
  13104. max_tokens: 2048,
  13105. top_p: 1,
  13106. frequency_penalty: 0,
  13107. presence_penalty: 0,
  13108. messages: [
  13109. {
  13110. role: "user",
  13111. content:
  13112. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13113. },
  13114. ],
  13115. uid: this.userid,
  13116. stream: false,
  13117. };
  13118. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13119. (res) => {
  13120. if (
  13121. res.data.FunctionResponse &&
  13122. res.data.FunctionResponse.result &&
  13123. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13124. ) {
  13125. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13126. return;
  13127. }
  13128. aiText =
  13129. res.data.FunctionResponse.choices[0].message.content;
  13130. aiText = aiText.replace(/%/g,"%25");
  13131. // let w = "";
  13132. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13133. // for(var k = 0;k<a.length;k++){
  13134. // //diffWordsWithSpace
  13135. // if(a.length > 1){
  13136. // if(a[k].added == true){
  13137. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13138. // }else if(a[k].removed == true){
  13139. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13140. // }else{
  13141. // w += '<span>' + a[k].value + '</span>';
  13142. // }
  13143. // }else{
  13144. // if(p == 1){
  13145. // w = this.newEnglishList.engText;
  13146. // }else if(p == 2){
  13147. // w = this.oldEnglishJson1.engText;
  13148. // }else if(p == 3){
  13149. // w = this.newEnglishList.engText;
  13150. // }else{
  13151. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13152. // }
  13153. // }
  13154. // }
  13155. if(p == 1){
  13156. this.newEnglishList.engText = aiText;
  13157. }else if(p == 2){
  13158. this.oldEnglishJson1.engText = aiText;
  13159. }else if(p == 3){
  13160. this.newEnglishList.engText = aiText;
  13161. }else{
  13162. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13163. }
  13164. loading.close();
  13165. },
  13166. (err) => {
  13167. console.log(err);
  13168. loading.close();
  13169. }
  13170. );
  13171. },
  13172. addToolChoose() {
  13173. if (!this.checktoolArray.length) {
  13174. this.$message.error("请选择要添加的任务");
  13175. return;
  13176. }
  13177. if (
  13178. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13179. this.taskCount
  13180. ].toolChoose[0].tool.length
  13181. ) {
  13182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13183. this.taskCount
  13184. ].toolChoose[0].tool = this.checktoolArray;
  13185. } else {
  13186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13187. this.taskCount
  13188. ].toolChoose.push({
  13189. tool: this.checktoolArray,
  13190. toolDetail: "",
  13191. toolType: 0,
  13192. askCount: 1,
  13193. askTitle: "",
  13194. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13195. });
  13196. }
  13197. let params = [
  13198. {
  13199. cid: this.id,
  13200. chapters: JSON.stringify(this.chapInfoList),
  13201. uid: this.userid,
  13202. unitIndex: this.courseType,
  13203. },
  13204. ];
  13205. this.ajax
  13206. .post(this.$store.state.api + "updateWorkNew4", params)
  13207. .then((res) => {
  13208. this.$message({
  13209. message: "添加成功",
  13210. type: "success",
  13211. });
  13212. this.checktoolArray = [];
  13213. this.getCourseDetail(2);
  13214. this.checkBz(
  13215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13216. this.taskCount
  13217. ].toolChoose.length - 1
  13218. );
  13219. this.toolDialogVisible = false;
  13220. this.refreshCourse();
  13221. this.$forceUpdate();
  13222. })
  13223. .catch((err) => {
  13224. console.error(err);
  13225. });
  13226. },
  13227. checkBz(index) {
  13228. this.isUpdateToolDetail = false;
  13229. this.$forceUpdate();
  13230. setTimeout(() => {
  13231. document.scrollingElement.scrollTop =
  13232. document.querySelectorAll(".filebox")[index].offsetTop +
  13233. document.querySelector(".student_body").offsetTop;
  13234. }, 500);
  13235. },
  13236. updateToolDetail(i, type) {
  13237. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13238. this.toolDetailIndex = i
  13239. this.isUpdateToolDetail1 = true;
  13240. setTimeout(() => {
  13241. this.updateToolDetailInner = JSON.parse(
  13242. JSON.stringify(
  13243. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13244. this.taskCount
  13245. ].toolChoose[i].toolDetail
  13246. )
  13247. );
  13248. document.querySelector(".checkTextArea").focus();
  13249. }, 0);
  13250. } else if((this.isUpdateToolDetail1 && type != 2)){
  13251. // this.toolDetailIndex = i;
  13252. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13253. this.taskCount
  13254. ].toolChoose[i].toolDetail = JSON.parse(
  13255. JSON.stringify(this.updateToolDetailInner)
  13256. );
  13257. let params = [
  13258. {
  13259. cid: this.id,
  13260. chapters: JSON.stringify(this.chapInfoList),
  13261. uid: this.userid,
  13262. unitIndex: this.courseType,
  13263. },
  13264. ];
  13265. this.ajax
  13266. .post(this.$store.state.api + "updateWorkNew4", params)
  13267. .then((res) => {
  13268. this.isUpdateToolDetail1 = false;
  13269. this.$message({
  13270. message: "修改成功",
  13271. type: "success",
  13272. });
  13273. this.toolDetailIndex = null;
  13274. this.updateToolDetailInner = "";
  13275. this.getCourseDetail(2);
  13276. this.$forceUpdate();
  13277. })
  13278. .catch((err) => {
  13279. console.error(err);
  13280. });
  13281. } else if((this.isUpdateToolDetail1 && type == 2)){
  13282. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13283. this.taskCount
  13284. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13285. JSON.stringify(this.updateToolDetailInner)
  13286. );
  13287. let params = [
  13288. {
  13289. cid: this.id,
  13290. chapters: JSON.stringify(this.chapInfoList),
  13291. uid: this.userid,
  13292. unitIndex: this.courseType,
  13293. },
  13294. ];
  13295. this.ajax
  13296. .post(this.$store.state.api + "updateWorkNew4", params)
  13297. .then((res) => {
  13298. this.$message({
  13299. message: "修改成功",
  13300. type: "success",
  13301. });
  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. this.getCourseDetail(2);
  13315. this.$forceUpdate();
  13316. })
  13317. .catch((err) => {
  13318. console.error(err);
  13319. });
  13320. }
  13321. },
  13322. jumpGj(i, j, k, l) {
  13323. for (var z = 0; z < this.navList.length; z++) {
  13324. for (var q = 0; q < this.navList[z].task.length; q++) {
  13325. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13326. this.navList[z].task[q].tool[w].isTool = false;
  13327. }
  13328. }
  13329. }
  13330. this.navList[i].task[j].tool[k].isTool =
  13331. !this.navList[i].task[j].tool[k].isTool;
  13332. var a = document.scrollingElement;
  13333. this.navId = ""
  13334. let target = document.querySelector(`#gj${k}`);
  13335. if (target) {
  13336. // target.scrollIntoView(true);
  13337. // setTimeout(() => {
  13338. // a.scrollTop = a.scrollTop - 150;
  13339. // }, 0);
  13340. target.scrollIntoView();
  13341. setTimeout(()=>{
  13342. let scrollBody = document.querySelector('.body_student').parentElement
  13343. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13344. }, 0);
  13345. }
  13346. let flag = this.courseType == i;
  13347. let flag2 = this.taskCount == j
  13348. if (l) {
  13349. this.courseType = i;
  13350. // this.navId = l;
  13351. this.taskCount = j;
  13352. this.selectPz();
  13353. this.getHomeWork();
  13354. this.getCourseDetail(2);
  13355. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13356. if(flag){
  13357. if(flag2){
  13358. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13359. }else{
  13360. 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>`)
  13361. }
  13362. }else{
  13363. 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>`)
  13364. }
  13365. }
  13366. // var b = this.$refs["bz" + k][0];
  13367. // a.scrollTop = b.offsetTop;
  13368. },
  13369. addTools2(i) {
  13370. if (i == 4) {
  13371. // this.openTools2(4);
  13372. this.$message.error("暂未开放");
  13373. return;
  13374. }
  13375. if (i == 45) {
  13376. // this.openTools2(45);
  13377. this.$message.error("暂未开放");
  13378. return;
  13379. }
  13380. if (i == 47) {
  13381. // this.openTools2(47);
  13382. this.$message.error("暂未开放");
  13383. return;
  13384. }
  13385. if (i == 49) {
  13386. // this.openTools2(49);
  13387. this.$message.error("暂未开放");
  13388. return;
  13389. }
  13390. if (i == 62) {
  13391. // this.openTools(itemTaskIndex, 62, toolIndex);
  13392. this.$message.error("暂未开放");
  13393. return;
  13394. }
  13395. if (i == 15) {
  13396. // this.openTools(itemTaskIndex, 15, toolIndex);
  13397. this.$message.error("暂未开放");
  13398. return;
  13399. }
  13400. if (i == 40) {
  13401. // this.openTools(itemTaskIndex, 40, toolIndex);
  13402. this.$message.error("暂未开放");
  13403. return;
  13404. }
  13405. if (i == 41) {
  13406. // this.openTools(itemTaskIndex, 41, toolIndex);
  13407. this.$message.error("暂未开放");
  13408. return;
  13409. }
  13410. if (i == 42) {
  13411. // this.openTools(itemTaskIndex, 42, toolIndex);
  13412. this.$message.error("暂未开放");
  13413. return;
  13414. }
  13415. if (this.checktoolArray.length > 0) {
  13416. if (this.checktoolArray.indexOf(i) != -1) {
  13417. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13418. } else {
  13419. this.checktoolArray = [];
  13420. this.checktoolArray.push(i);
  13421. }
  13422. } else {
  13423. this.checktoolArray.push(i);
  13424. }
  13425. this.$forceUpdate();
  13426. },
  13427. jump() {
  13428. window.topU.postMessage({ tools: "43" }, "*");
  13429. },
  13430. getUpdateMore(f, checkboxList, searchTN, index) {
  13431. this.dialogVisibleMember = f;
  13432. this.checkboxList = checkboxList;
  13433. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13434. this.plIndex = index;
  13435. },
  13436. setPlname(a) {
  13437. if (this.plworkFile.length) {
  13438. this.plworkFile[this.plIndex].username = a;
  13439. } else {
  13440. this.worksSName = a;
  13441. }
  13442. this.dialogVisibleMember = false;
  13443. },
  13444. previewImg(url,w=null) {
  13445. this.$hevueImgPreview(url);
  13446. if(w){
  13447. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13448. }
  13449. },
  13450. checkImg(list) {
  13451. if (!list.length) {
  13452. return;
  13453. }
  13454. this.$hevueImgPreview({
  13455. multiple: true, // 开启多图预览模式
  13456. imgList: list, // 需要预览的多图数组
  13457. });
  13458. },
  13459. change(val) {
  13460. console.log(val);
  13461. },
  13462. goTo(path) {
  13463. this.$router.push(path);
  13464. },
  13465. handlePictureCardPreview(url) {
  13466. this.dialogImageUrl = url;
  13467. this.pictureDialog = true;
  13468. },
  13469. clean(type) {
  13470. if (type == 1) {
  13471. this.studyJuri[0].cover.splice(0, 1);
  13472. } else if (type == 2) {
  13473. this.studyJuri[0].upVedio.splice(0, 1);
  13474. } else {
  13475. this.studyJuri[0].upFile.splice(0, 1);
  13476. }
  13477. },
  13478. clean2(index) {
  13479. this.plworkFile.splice(index, 1);
  13480. },
  13481. handleClose(done) {
  13482. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13483. this.videoDetail.sources[0].src = "";
  13484. }
  13485. this.commentIndexJson = {};
  13486. done();
  13487. },
  13488. fullTools() {
  13489. this.full = !this.full;
  13490. },
  13491. imgChange(file, fileList, type) {
  13492. if (type == 1) {
  13493. var _tmp = this.studyJuri[0].cover;
  13494. } else if (type == 2) {
  13495. var _tmp = this.studyJuri[0].upVedio;
  13496. } else {
  13497. var _tmp = this.studyJuri[0].upFile;
  13498. }
  13499. this.noneBtnImg = _tmp.length >= 1;
  13500. },
  13501. setContent(bool) {
  13502. this.contentDialog = bool;
  13503. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13504. document.querySelector(".workd_media").style.height = "650px";
  13505. } else if (document.querySelector(".workd_media")) {
  13506. document.querySelector(".workd_media").style.height = "auto";
  13507. }
  13508. },
  13509. setContent2(bool) {
  13510. this.mlDialog = bool;
  13511. if (
  13512. bool &&
  13513. this.contentDialog &&
  13514. document.querySelector(".workd_media")
  13515. ) {
  13516. document.querySelector(".workd_media").style.height = "650px";
  13517. } else if (document.querySelector(".workd_media")) {
  13518. document.querySelector(".workd_media").style.height = "auto";
  13519. }
  13520. this.$forceUpdate();
  13521. },
  13522. openToolAll() {
  13523. this.toolDialogVisible = true;
  13524. },
  13525. addImg(e) {
  13526. var el = e.currentTarget;
  13527. // this.$message.success('触发上传')
  13528. el.getElementsByTagName("input")[0].click();
  13529. e.target.value = "";
  13530. },
  13531. addSelectAnswer() {
  13532. let params = [
  13533. {
  13534. uid: this.userid,
  13535. cid: this.id,
  13536. stage: this.courseType,
  13537. task: this.taskCount,
  13538. tool: this.toolindex,
  13539. content: this.selectAnswer.answer,
  13540. type: 7,
  13541. },
  13542. ];
  13543. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13544. this.homeWorkLoading = true
  13545. this.ajax
  13546. .post(this.$store.state.api + "addCourseWorks", params)
  13547. .then((res) => {
  13548. this.$message({
  13549. message: "提交成功",
  13550. type: "success",
  13551. });
  13552. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13553. setTimeout(() => {
  13554. this.homeWorkLoading = false
  13555. }, 500);
  13556. this.dialogVisibleSelect = false;
  13557. // this.selectAnswer = {};
  13558. this.selectSWorks();
  13559. this.selectStudent();
  13560. })
  13561. .catch((err) => {
  13562. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13563. setTimeout(() => {
  13564. this.homeWorkLoading = false
  13565. }, 500);
  13566. this.$message.error("提交失败");
  13567. console.error(err);
  13568. });
  13569. },
  13570. addSelectAnswerTeacher() {
  13571. let params = [
  13572. {
  13573. uid: this.sStudent.userid,
  13574. cid: this.id,
  13575. stage: this.courseType,
  13576. task: this.taskCount,
  13577. tool: this.toolindex,
  13578. content: this.selectAnswer.answer,
  13579. type: 7,
  13580. },
  13581. ];
  13582. this.ajax
  13583. .post(this.$store.state.api + "addCourseWorks", params)
  13584. .then((res) => {
  13585. this.$message({
  13586. message: "提交成功",
  13587. type: "success",
  13588. });
  13589. this.dialogVisibleSelectTeacher = false;
  13590. // this.selectAnswer = {};
  13591. this.selectSWorks();
  13592. this.selectStudent();
  13593. })
  13594. .catch((err) => {
  13595. this.$message.error("提交失败");
  13596. console.error(err);
  13597. });
  13598. },
  13599. addSenWorks() {
  13600. for (var i = 0; i < this.sentenceList.length; i++) {
  13601. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13602. if (
  13603. this.sentenceList[i].chooseSenList[j] == undefined ||
  13604. this.sentenceList[i].chooseSenList[j] == ""
  13605. ) {
  13606. this.$message.error("请将答案填写完整!");
  13607. return;
  13608. }
  13609. }
  13610. }
  13611. let params = [
  13612. {
  13613. uid: this.userid,
  13614. cid: this.id,
  13615. stage: this.courseType,
  13616. task: this.taskCount,
  13617. tool: this.toolindex,
  13618. content: JSON.stringify(this.sentenceList),
  13619. type: 9,
  13620. },
  13621. ];
  13622. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13623. this.homeWorkLoading = true
  13624. this.ajax
  13625. .post(this.$store.state.api + "addCourseWorks", params)
  13626. .then((res) => {
  13627. this.$message({
  13628. message: "提交成功",
  13629. type: "success",
  13630. });
  13631. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13632. setTimeout(() => {
  13633. this.homeWorkLoading = false
  13634. }, 500);
  13635. this.dialogVisibleSentence = false;
  13636. // this.selectAnswer = {};
  13637. this.selectSWorks();
  13638. this.selectStudent();
  13639. })
  13640. .catch((err) => {
  13641. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13642. setTimeout(() => {
  13643. this.homeWorkLoading = false
  13644. }, 500);
  13645. this.$message.error("提交失败");
  13646. console.error(err);
  13647. });
  13648. },
  13649. addSenWorksTeacher() {
  13650. for (var i = 0; i < this.sentenceList.length; i++) {
  13651. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13652. if (
  13653. this.sentenceList[i].chooseSenList[j] == undefined ||
  13654. this.sentenceList[i].chooseSenList[j] == ""
  13655. ) {
  13656. this.$message.error("请将答案填写完整!");
  13657. return;
  13658. }
  13659. }
  13660. }
  13661. let params = [
  13662. {
  13663. uid: this.sStudent.userid,
  13664. cid: this.id,
  13665. stage: this.courseType,
  13666. task: this.taskCount,
  13667. tool: this.toolindex,
  13668. content: JSON.stringify(this.sentenceList),
  13669. type: 9,
  13670. },
  13671. ];
  13672. this.ajax
  13673. .post(this.$store.state.api + "addCourseWorks", params)
  13674. .then((res) => {
  13675. this.$message({
  13676. message: "提交成功",
  13677. type: "success",
  13678. });
  13679. this.dialogVisibleSentenceTeacher = false;
  13680. // this.selectAnswer = {};
  13681. this.selectSWorks();
  13682. this.selectStudent();
  13683. })
  13684. .catch((err) => {
  13685. this.$message.error("提交失败");
  13686. console.error(err);
  13687. });
  13688. },
  13689. returnTableText() {
  13690. this.$confirm("确定还原此模板吗?", "提示", {
  13691. confirmButtonText: "确定",
  13692. cancelButtonText: "取消",
  13693. type: "warning",
  13694. })
  13695. .then(() => {
  13696. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13697. })
  13698. .catch(() => {});
  13699. },
  13700. addTableWorks() {
  13701. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13702. this.homeWorkLoading = true
  13703. let params = [
  13704. {
  13705. uid: this.userid,
  13706. cid: this.id,
  13707. stage: this.courseType,
  13708. task: this.taskCount,
  13709. tool: this.toolindex,
  13710. content: JSON.stringify(this.tableJson),
  13711. type: 10,
  13712. },
  13713. ];
  13714. this.ajax
  13715. .post(this.$store.state.api + "addCourseWorks", params)
  13716. .then((res) => {
  13717. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13718. this.$message({
  13719. message: "提交成功",
  13720. type: "success",
  13721. });
  13722. this.dialogVisibleTable = false;
  13723. setTimeout(() => {
  13724. this.homeWorkLoading = false
  13725. }, 500);
  13726. // this.selectAnswer = {};
  13727. this.selectSWorks();
  13728. this.selectStudent();
  13729. })
  13730. .catch((err) => {
  13731. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13732. setTimeout(() => {
  13733. this.homeWorkLoading = false
  13734. }, 500);
  13735. this.$message.error("提交失败");
  13736. console.error(err);
  13737. });
  13738. },
  13739. tableRowClassName({ row, rowIndex }) {
  13740. if ((rowIndex + 1) % 2 === 0) {
  13741. return "even_row";
  13742. } else {
  13743. return "";
  13744. }
  13745. },
  13746. addTableWorksTeacher() {
  13747. let params = [
  13748. {
  13749. uid: this.sStudent.userid,
  13750. cid: this.id,
  13751. stage: this.courseType,
  13752. task: this.taskCount,
  13753. tool: this.toolindex,
  13754. content: JSON.stringify(this.tableJson),
  13755. type: 10,
  13756. },
  13757. ];
  13758. this.ajax
  13759. .post(this.$store.state.api + "addCourseWorks", params)
  13760. .then((res) => {
  13761. this.$message({
  13762. message: "提交成功",
  13763. type: "success",
  13764. });
  13765. this.dialogVisibleTableTeacher = false;
  13766. // this.selectAnswer = {};
  13767. this.selectSWorks();
  13768. this.selectStudent();
  13769. })
  13770. .catch((err) => {
  13771. this.$message.error("提交失败");
  13772. console.error(err);
  13773. });
  13774. },
  13775. returnWordText() {
  13776. this.$confirm("确定还原此模板吗?", "提示", {
  13777. confirmButtonText: "确定",
  13778. cancelButtonText: "取消",
  13779. type: "warning",
  13780. })
  13781. .then(() => {
  13782. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13783. })
  13784. .catch(() => {});
  13785. },
  13786. addWordWorks() {
  13787. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13788. this.homeWorkLoading = true
  13789. let params = [
  13790. {
  13791. uid: this.userid,
  13792. cid: this.id,
  13793. stage: this.courseType,
  13794. task: this.taskCount,
  13795. tool: this.toolindex,
  13796. content: JSON.stringify(this.wordJson),
  13797. type: 13,
  13798. atool: 52,
  13799. },
  13800. ];
  13801. this.ajax
  13802. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13803. .then((res) => {
  13804. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13805. this.$message({
  13806. message: "提交成功",
  13807. type: "success",
  13808. });
  13809. this.dialogVisibleWord = false;
  13810. setTimeout(() => {
  13811. this.homeWorkLoading = false
  13812. }, 500);
  13813. // this.selectAnswer = {};
  13814. this.selectSWorks();
  13815. this.selectStudent();
  13816. })
  13817. .catch((err) => {
  13818. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13819. setTimeout(() => {
  13820. this.homeWorkLoading = false
  13821. }, 500);
  13822. this.$message.error("提交失败");
  13823. console.error(err);
  13824. });
  13825. },
  13826. addWordWorksTeacher() {
  13827. let params = [
  13828. {
  13829. uid: this.sStudent.userid,
  13830. cid: this.id,
  13831. stage: this.courseType,
  13832. task: this.taskCount,
  13833. tool: this.toolindex,
  13834. content: JSON.stringify(this.wordJson),
  13835. type: 13,
  13836. atool: 52,
  13837. },
  13838. ];
  13839. this.ajax
  13840. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13841. .then((res) => {
  13842. this.$message({
  13843. message: "提交成功",
  13844. type: "success",
  13845. });
  13846. this.dialogVisibleWordTeacher = false;
  13847. // this.selectAnswer = {};
  13848. this.selectSWorks();
  13849. this.selectStudent();
  13850. })
  13851. .catch((err) => {
  13852. this.$message.error("提交失败");
  13853. console.error(err);
  13854. });
  13855. },
  13856. addCourseWorks(i) {
  13857. var typesql;
  13858. if (this.fileType === 0) {
  13859. typesql = 1;
  13860. } else if (this.fileType === 1) {
  13861. typesql = 4;
  13862. } else if (this.fileType === 2) {
  13863. typesql = 5;
  13864. } else if (this.fileType === 3) {
  13865. typesql = 12;
  13866. }
  13867. if (!this.studyJuri[0].cover[0].url) {
  13868. this.$message.error("请上传文件");
  13869. return;
  13870. }
  13871. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13872. this.homeWorkLoading = true
  13873. let params = [
  13874. {
  13875. uid: this.userid,
  13876. cid: this.id,
  13877. stage: this.courseType,
  13878. task: i,
  13879. tool: this.toolindex,
  13880. content: this.studyJuri[0].cover[0].url,
  13881. type: typesql,
  13882. },
  13883. ];
  13884. this.ajax
  13885. .post(this.$store.state.api + "addCourseWorksR", params)
  13886. .then((res) => {
  13887. this.$message({
  13888. message: "提交成功",
  13889. type: "success",
  13890. });
  13891. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13892. setTimeout(() => {
  13893. this.homeWorkLoading = false
  13894. }, 500);
  13895. this.studyJuri[0].cover = [];
  13896. this.dialogVisible = false;
  13897. this.getCourseDetail(2);
  13898. })
  13899. .catch((err) => {
  13900. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13901. setTimeout(() => {
  13902. this.homeWorkLoading = false
  13903. }, 500);
  13904. this.$message.error("提交失败");
  13905. console.error(err);
  13906. });
  13907. },
  13908. addCourseWorksPl(i) {
  13909. let _files = this.plworkFile;
  13910. var c = 1;
  13911. for (var k = 0; k < _files.length; k++) {
  13912. if (!_files[k].username) {
  13913. c = 2;
  13914. }
  13915. }
  13916. if (c == 2) {
  13917. this.$message.error("请填写学生姓名");
  13918. return;
  13919. }
  13920. let params = [
  13921. {
  13922. ateacher: this.userid,
  13923. cid: this.id,
  13924. stage: this.courseType,
  13925. task: i,
  13926. tool: this.toolindex,
  13927. content: JSON.stringify(_files),
  13928. },
  13929. ];
  13930. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13931. this.homeWorkLoading = true
  13932. this.ajax
  13933. .post(this.$store.state.api + "addCourseWorksPl", params)
  13934. .then((res) => {
  13935. this.$message({
  13936. message: "提交成功",
  13937. type: "success",
  13938. });
  13939. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13940. setTimeout(() => {
  13941. this.homeWorkLoading = false
  13942. }, 500);
  13943. this.plworkFile = [];
  13944. this.dialogVisiblePl = false;
  13945. this.getCourseDetail(2);
  13946. })
  13947. .catch((err) => {
  13948. this.$message.error("提交失败");
  13949. setTimeout(() => {
  13950. this.homeWorkLoading = false
  13951. }, 500);
  13952. console.error(err);
  13953. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13954. });
  13955. },
  13956. addCourseWorks2(i) {
  13957. var typesql;
  13958. if (this.fileType === 0) {
  13959. typesql = 0;
  13960. } else if (this.fileType === 1) {
  13961. typesql = 1;
  13962. } else if (this.fileType === 2) {
  13963. typesql = 3;
  13964. } else if (this.fileType === 3) {
  13965. typesql = 12;
  13966. }
  13967. if (!this.studyJuri[0].cover[0].url) {
  13968. this.$message.error("请上传文件");
  13969. return;
  13970. }
  13971. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13972. this.homeWorkLoading = true
  13973. let params = [
  13974. {
  13975. uid: this.userid,
  13976. cid: this.id,
  13977. stage: this.courseType,
  13978. task: i,
  13979. tool: this.toolindex,
  13980. content: JSON.stringify({
  13981. type: typesql,
  13982. groupIndex: this.groupIndex,
  13983. url: this.studyJuri[0].cover[0].url,
  13984. }),
  13985. type: 11,
  13986. atool: 49,
  13987. text: "",
  13988. },
  13989. ];
  13990. this.ajax
  13991. .post(this.$store.state.api + "addCourseWorks5", params)
  13992. .then((res) => {
  13993. this.$message({
  13994. message: "提交成功",
  13995. type: "success",
  13996. });
  13997. setTimeout(() => {
  13998. this.homeWorkLoading = false
  13999. }, 500);
  14000. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14001. type: typesql,
  14002. groupIndex: this.groupIndex,
  14003. url: this.studyJuri[0].cover[0].url,
  14004. }),type: "course_tool_sub" }, "success")
  14005. this.studyJuri[0].cover = [];
  14006. this.dialogVisibleGroupWork = false;
  14007. this.getCourseDetail(2);
  14008. })
  14009. .catch((err) => {
  14010. this.$message.error("提交失败");
  14011. setTimeout(() => {
  14012. this.homeWorkLoading = false
  14013. }, 500);
  14014. console.error(err);
  14015. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14016. type: typesql,
  14017. groupIndex: this.groupIndex,
  14018. url: this.studyJuri[0].cover[0].url,
  14019. }),type: "course_tool_sub" }, err)
  14020. });
  14021. },
  14022. addEnglishWork() {
  14023. this.myAnList = this.$refs['engJson'].myAnswerList;
  14024. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14025. this.$message.error("请输入作文标题和正文!");
  14026. return;
  14027. }
  14028. let params = [
  14029. {
  14030. uid: this.userid,
  14031. cid: this.id,
  14032. stage: this.courseType,
  14033. task: this.taskCount,
  14034. tool: this.englishToolIndex,
  14035. content: JSON.stringify(this.myAnList),
  14036. type: 16,
  14037. atool: 69,
  14038. text: "",
  14039. },
  14040. ];
  14041. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14042. this.homeWorkLoading = true
  14043. this.ajax
  14044. .post(this.$store.state.api + "addCourseWorks5", params)
  14045. .then((res) => {
  14046. this.$message({
  14047. message: "提交成功",
  14048. type: "success",
  14049. });
  14050. setTimeout(() => {
  14051. this.homeWorkLoading = false
  14052. }, 500);
  14053. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14054. data: JSON.stringify(this.myAnList),
  14055. type: "course_tool_sub" }, "success")
  14056. this.myAnList = {};
  14057. this.englishList = {};
  14058. this.englishToolIndex = 0;
  14059. this.engDialogVisible = false;
  14060. this.selectSWorks();
  14061. this.selectStudent();
  14062. })
  14063. .catch((err) => {
  14064. this.$message.error("提交失败");
  14065. console.error(err);
  14066. setTimeout(() => {
  14067. this.homeWorkLoading = false
  14068. }, 500);
  14069. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14070. data: JSON.stringify(this.myAnList),
  14071. type: "course_tool_sub" }, err)
  14072. });
  14073. },
  14074. addCourseWorksGong(i, data, tool) {
  14075. let params = [
  14076. {
  14077. uid: this.userid,
  14078. cid: this.id,
  14079. stage: this.courseType,
  14080. task: this.taskCount,
  14081. tool: i,
  14082. content: data,
  14083. type: 12,
  14084. atool: tool,
  14085. text: "",
  14086. },
  14087. ];
  14088. this.ajax
  14089. .post(this.$store.state.api + "addCourseWorks5", params)
  14090. .then((res) => {
  14091. this.$message({
  14092. message: "提交成功",
  14093. type: "success",
  14094. });
  14095. this.studyJuri[0].cover = [];
  14096. this.selectSWorks();
  14097. this.selectStudent();
  14098. })
  14099. .catch((err) => {
  14100. this.$message.error("提交失败");
  14101. console.error(err);
  14102. });
  14103. },
  14104. addCourseWorksGongTeacher(i, data, tool) {
  14105. let params = [
  14106. {
  14107. uid: this.sStudent.userid,
  14108. cid: this.id,
  14109. stage: this.courseType,
  14110. task: this.taskCount,
  14111. tool: i,
  14112. content: data,
  14113. type: 12,
  14114. atool: tool,
  14115. text: "",
  14116. },
  14117. ];
  14118. this.ajax
  14119. .post(this.$store.state.api + "addCourseWorks5", params)
  14120. .then((res) => {
  14121. this.$message({
  14122. message: "提交成功",
  14123. type: "success",
  14124. });
  14125. this.studyJuri[0].cover = [];
  14126. this.dialogVisibleWorks = false;
  14127. this.selectSWorks();
  14128. this.selectStudent();
  14129. })
  14130. .catch((err) => {
  14131. this.$message.error("提交失败");
  14132. console.error(err);
  14133. });
  14134. },
  14135. addCourseWorksGongPl(i, data, tool, type) {
  14136. let params = [
  14137. {
  14138. uid: this.sStudent.userid,
  14139. cid: this.id,
  14140. stage: this.courseType,
  14141. task: this.taskCount,
  14142. tool: i,
  14143. content: data,
  14144. type: type,
  14145. atool: tool,
  14146. text: "",
  14147. },
  14148. ];
  14149. this.ajax
  14150. .post(this.$store.state.api + "addCourseWorks5", params)
  14151. .then((res) => {
  14152. this.$message({
  14153. message: "提交成功",
  14154. type: "success",
  14155. });
  14156. this.studyJuri[0].cover = [];
  14157. this.dialogVisibleWorks = false;
  14158. this.selectSWorks();
  14159. this.selectStudent();
  14160. })
  14161. .catch((err) => {
  14162. this.$message.error("提交失败");
  14163. console.error(err);
  14164. });
  14165. },
  14166. addCourseWorksTeacher(i) {
  14167. var typesql;
  14168. if (this.sTool == 32) {
  14169. this.addCourseWorksGongTeacher(
  14170. this.toolindex,
  14171. this.studyJuri[0].cover[0].url,
  14172. this.sTool
  14173. );
  14174. return;
  14175. }
  14176. if (this.fileType === 0) {
  14177. typesql = 1;
  14178. } else if (this.fileType === 1) {
  14179. typesql = 4;
  14180. } else if (this.fileType === 2) {
  14181. typesql = 5;
  14182. } else if (this.fileType === 3) {
  14183. typesql = 12;
  14184. }
  14185. if (this.sTool == 50) {
  14186. this.addCourseWorksGongPl(
  14187. this.toolindex,
  14188. this.studyJuri[0].cover[0].url,
  14189. this.sTool,
  14190. typesql
  14191. );
  14192. return;
  14193. }
  14194. if (!this.studyJuri[0].cover[0].url) {
  14195. this.$message.error("请上传文件");
  14196. return;
  14197. }
  14198. let params = [
  14199. {
  14200. uid: this.sStudent.userid,
  14201. cid: this.id,
  14202. stage: this.courseType,
  14203. task: i,
  14204. tool: this.toolindex,
  14205. content: this.studyJuri[0].cover[0].url,
  14206. type: typesql,
  14207. ateacher: this.userid,
  14208. },
  14209. ];
  14210. this.ajax
  14211. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14212. .then((res) => {
  14213. this.$message({
  14214. message: "提交成功",
  14215. type: "success",
  14216. });
  14217. this.studyJuri[0].cover = [];
  14218. this.dialogVisibleWorks = false;
  14219. this.getCourseDetail(2);
  14220. })
  14221. .catch((err) => {
  14222. this.$message.error("提交失败");
  14223. console.error(err);
  14224. });
  14225. },
  14226. selectUploadStudent(type) {
  14227. const loading = this.$loading.service({
  14228. background: "rgba(255, 255, 255, 0.7)",
  14229. target: document.body,
  14230. });
  14231. let params = {
  14232. cid: this.uploadCid,
  14233. oid: this.oid,
  14234. cn: "",
  14235. };
  14236. this.ajax
  14237. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14238. .then((res) => {
  14239. loading.close();
  14240. var studentK = [];
  14241. if (this.isWorksS[this.toolindex].length > 0) {
  14242. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14243. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14244. }
  14245. studentK = studentK.join(",");
  14246. }
  14247. this.uploadStudentJuri = res.data[0].filter((el) => {
  14248. return studentK.indexOf(el.userid) == -1;
  14249. });
  14250. if (this.worksSName && this.worksSid) {
  14251. this.uploadStudentJuri.push({
  14252. userid: this.worksSid,
  14253. name: this.worksSName,
  14254. });
  14255. }
  14256. if (type == 1) {
  14257. this.plworkFile = [];
  14258. this.dialogVisibleSname = true;
  14259. } else if (type == 2) {
  14260. this.dialogVisiblePl = true;
  14261. }
  14262. })
  14263. .catch((err) => {
  14264. loading.close();
  14265. console.error(err);
  14266. });
  14267. },
  14268. selectPickStudent() {
  14269. const loading = this.$loading.service({
  14270. background: "rgba(255, 255, 255, 0.7)",
  14271. target: document.body,
  14272. });
  14273. let params = {
  14274. cid: this.uploadCid,
  14275. oid: this.oid,
  14276. cn: "",
  14277. };
  14278. this.ajax
  14279. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14280. .then((res) => {
  14281. loading.close();
  14282. this.uploadStudentJuri = res.data[0];
  14283. this.dialogVisiblePickPeople = true;
  14284. })
  14285. .catch((err) => {
  14286. loading.close();
  14287. console.error(err);
  14288. });
  14289. },
  14290. arrayToArray(arrayo, arrayt) {
  14291. let array1 = arrayo;
  14292. let array2 = arrayt;
  14293. let commonElements = [];
  14294. for (let i = 0; i < array1.length; i++) {
  14295. for (let j = 0; j < array2.length; j++) {
  14296. if (array1[i] === array2[j]) {
  14297. commonElements.push(array1[i]);
  14298. }
  14299. }
  14300. }
  14301. return commonElements;
  14302. },
  14303. selectWorksStudent() {
  14304. let params = {
  14305. oid: this.oid,
  14306. cid: this.courseDetail.juri,
  14307. };
  14308. this.ajax
  14309. .get(this.$store.state.api + "selectWorksStudent", params)
  14310. .then((res) => {
  14311. var a = res.data[0];
  14312. for (var i = 0; i < this.isWorksS.length; i++) {
  14313. this.noWorksS[i] = [];
  14314. var studentK = [];
  14315. if (this.isWorksS[i].length > 0) {
  14316. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14317. studentK.push(this.isWorksS[i][z].uid);
  14318. }
  14319. studentK = studentK.join(",");
  14320. for (var j = 0; j < a.length; j++) {
  14321. if (studentK.indexOf(a[j].userid) == -1) {
  14322. if (this.tcid) {
  14323. // a[j].classid.indexOf(this.tcid) != -1
  14324. if (
  14325. this.arrayToArray(
  14326. a[j].classid.split(","),
  14327. this.tcid.split(",")
  14328. ).length
  14329. ) {
  14330. this.noWorksS[i].push({
  14331. student: a[j].name,
  14332. userid: a[j].userid,
  14333. });
  14334. }
  14335. } else {
  14336. this.noWorksS[i].push({
  14337. student: a[j].name,
  14338. userid: a[j].userid,
  14339. });
  14340. }
  14341. }
  14342. }
  14343. } else {
  14344. for (var k = 0; k < a.length; k++) {
  14345. if (this.tcid) {
  14346. if (
  14347. this.arrayToArray(
  14348. a[k].classid.split(","),
  14349. this.tcid.split(",")
  14350. ).length
  14351. ) {
  14352. this.noWorksS[i].push({
  14353. student: a[k].name,
  14354. userid: a[k].userid,
  14355. });
  14356. }
  14357. } else {
  14358. this.noWorksS[i].push({
  14359. student: a[k].name,
  14360. userid: a[k].userid,
  14361. });
  14362. }
  14363. }
  14364. }
  14365. }
  14366. this.$forceUpdate();
  14367. if (
  14368. Object.keys(this.commentDetail).length &&
  14369. Object.keys(this.commentIndexJson).length &&
  14370. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14371. ) {
  14372. let a = 1;
  14373. let c = this.commentIndexJson;
  14374. if (
  14375. this.commentIndexJson.gindex ||
  14376. this.commentIndexJson.gindex === 0
  14377. ) {
  14378. for (
  14379. var i = 0;
  14380. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14381. i++
  14382. ) {
  14383. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14384. groupA: for (var k = 0; k < _el.length; k++) {
  14385. let el = _el[k];
  14386. if (el.wid == this.commentDetail.wid) {
  14387. a = 2;
  14388. this.commentOther(
  14389. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14390. this.commentIndexJson.toolIndex,
  14391. k,
  14392. this.commentIndexJson.gindex
  14393. );
  14394. break groupA;
  14395. }
  14396. }
  14397. }
  14398. if (a === 1) {
  14399. this.commentDetail = [];
  14400. this.commentIndexJson = {};
  14401. this.commentDialogVisible = false;
  14402. this.$message("此作业已被删除");
  14403. }
  14404. } else {
  14405. if (this.isGroup && this.commentIndexJson.gid) {
  14406. groupA: for (
  14407. var i = 0;
  14408. i < this.courseGroup.group.length;
  14409. i++
  14410. ) {
  14411. let _group = this.courseGroup.group[i];
  14412. if (_group.id == this.commentIndexJson.gid) {
  14413. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14414. for (var k = 0; k < _el2.length; k++) {
  14415. let el2 = _el2[k];
  14416. if (el2.wid == this.commentDetail.wid) {
  14417. a = 2;
  14418. this.commentOther(
  14419. _el2[k],
  14420. this.commentIndexJson.toolIndex,
  14421. k,
  14422. null,
  14423. this.commentIndexJson.gid
  14424. );
  14425. break groupA;
  14426. }
  14427. }
  14428. }
  14429. }
  14430. }
  14431. if (a == 1) {
  14432. for (
  14433. var i = 0;
  14434. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14435. i++
  14436. ) {
  14437. let el =
  14438. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14439. if (el.wid == this.commentDetail.wid) {
  14440. a = 2;
  14441. this.commentOther(
  14442. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14443. this.commentIndexJson.toolIndex,
  14444. i
  14445. );
  14446. break;
  14447. }
  14448. }
  14449. }
  14450. if (a === 1) {
  14451. this.commentDetail = [];
  14452. this.commentIndexJson = {};
  14453. this.commentDialogVisible = false;
  14454. this.$message("此作业已被删除");
  14455. }
  14456. }
  14457. }
  14458. })
  14459. .catch((err) => {
  14460. console.error(err);
  14461. });
  14462. },
  14463. selectStudent() {
  14464. if(this.selectStudentLoading) return
  14465. this.selectStudentLoading = true
  14466. //学生查看自己作业
  14467. let params = {
  14468. uid: this.userid,
  14469. cid: this.id,
  14470. s: this.courseType,
  14471. t: this.taskCount,
  14472. };
  14473. this.ajax
  14474. .get(this.$store.state.api + "selectStudentWorks", params)
  14475. .then((res) => {
  14476. var a =
  14477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14478. this.taskCount
  14479. ].toolChoose;
  14480. var b = res.data[0];
  14481. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14482. var y = [
  14483. "AVI",
  14484. "NAVI",
  14485. "MPEG",
  14486. "ASF",
  14487. "MOV",
  14488. "WMV",
  14489. "3GP",
  14490. "RM",
  14491. "RMVB",
  14492. "FLV",
  14493. "F4V",
  14494. "H.264",
  14495. "H.265",
  14496. "REAL VIDEO",
  14497. "MKV",
  14498. "WebM",
  14499. "HDDVD",
  14500. "MP4",
  14501. "MPG",
  14502. "M4V",
  14503. "MGV",
  14504. "OGV",
  14505. "QTM",
  14506. "STR",
  14507. "AMC",
  14508. "DVX",
  14509. "EVO",
  14510. "DAT",
  14511. "OGG",
  14512. "OGM",
  14513. ];
  14514. for (var i = 0; i < a.length; i++) {
  14515. this.workStudent[i] = [];
  14516. for (var j = 0; j < b.length; j++) {
  14517. if (i == b[j].tool) {
  14518. if (
  14519. (b[j].type == 1 ||
  14520. b[j].type == 4 ||
  14521. b[j].type == 5 ||
  14522. b[j].type == 6 ||
  14523. b[j].type == 12 ||
  14524. b[j].type == 7) &&
  14525. a[i].tool[0] != 15 &&
  14526. a[i].tool[0] != 4 &&
  14527. a[i].tool[0] != 45 &&
  14528. a[i].tool[0] != 50 &&
  14529. a[i].tool[0] != 32 &&
  14530. a[i].tool[0] != 57 &&
  14531. a[i].tool[0] != 52 &&
  14532. a[i].tool[0] != 69
  14533. ) {
  14534. if (
  14535. c.indexOf(
  14536. b[j].content
  14537. .split(".")
  14538. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14539. ) != -1 &&
  14540. a[i].tool[0] == 16 &&
  14541. b[j].atool != 50
  14542. ) {
  14543. this.workStudent[i].push({
  14544. works: b[j].content,
  14545. sName: b[j].name,
  14546. score: b[j].score,
  14547. img: b[j].img,
  14548. type: 1,
  14549. time: b[j].time,
  14550. userid: b[j].userid,
  14551. wid: b[j].id,
  14552. });
  14553. } else if (
  14554. y.indexOf(
  14555. b[j].content
  14556. .split(".")
  14557. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14558. ) != -1 &&
  14559. a[i].tool[0] == 16 &&
  14560. b[j].atool != 50
  14561. ) {
  14562. this.workStudent[i].push({
  14563. userid: b[j].userid,
  14564. wid: b[j].id,
  14565. works: b[j].content,
  14566. sName: b[j].name,
  14567. score: b[j].score,
  14568. img: b[j].img,
  14569. type: 3,
  14570. time: b[j].time,
  14571. });
  14572. } else if (b[j].type == 6 && b[j].atool != 50) {
  14573. this.workStudent[i].push({
  14574. userid: b[j].userid,
  14575. wid: b[j].id,
  14576. works: b[j].content,
  14577. sName: b[j].name,
  14578. score: b[j].score,
  14579. img: b[j].img,
  14580. type: 4,
  14581. time: b[j].time,
  14582. });
  14583. } else if (b[j].type == 7 && b[j].atool != 50) {
  14584. this.workStudent[i].push({
  14585. userid: b[j].userid,
  14586. wid: b[j].id,
  14587. works: b[j].content,
  14588. sName: b[j].name,
  14589. score: b[j].score,
  14590. img: b[j].img,
  14591. type: 5,
  14592. time: b[j].time,
  14593. });
  14594. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14595. this.workStudent[i].push({
  14596. works: b[j].content,
  14597. sName: b[j].name,
  14598. score: b[j].score,
  14599. img: b[j].img,
  14600. type: 12,
  14601. time: b[j].time,
  14602. userid: b[j].userid,
  14603. wid: b[j].id,
  14604. });
  14605. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  14612. time: b[j].time,
  14613. userid: b[j].userid,
  14614. wid: b[j].id,
  14615. });
  14616. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14617. this.workStudent[i].push({
  14618. works: b[j].content,
  14619. sName: b[j].name,
  14620. score: b[j].score,
  14621. img: b[j].img,
  14622. type: 0,
  14623. time: b[j].time,
  14624. userid: b[j].userid,
  14625. wid: b[j].id,
  14626. });
  14627. }
  14628. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14629. this.workStudent[i].push({
  14630. works: b[j].content,
  14631. sName: b[j].name,
  14632. score: b[j].score,
  14633. img: b[j].img,
  14634. type: 2,
  14635. time: b[j].time,
  14636. userid: b[j].userid,
  14637. wid: b[j].id,
  14638. });
  14639. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14640. this.workStudent[i].push({
  14641. works: b[j].content,
  14642. sName: b[j].name,
  14643. score: b[j].score,
  14644. img: b[j].img,
  14645. type: 20,
  14646. time: b[j].time,
  14647. userid: b[j].userid,
  14648. wid: b[j].id,
  14649. });
  14650. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14651. //问卷
  14652. this.workStudent[i].push({
  14653. works: b[j].content,
  14654. sName: b[j].name,
  14655. score: b[j].score,
  14656. img: b[j].img,
  14657. type: 2,
  14658. time: b[j].time,
  14659. userid: b[j].userid,
  14660. wid: b[j].id,
  14661. });
  14662. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14663. //选择题
  14664. this.workStudent[i].push({
  14665. works: b[j].content,
  14666. sName: b[j].name,
  14667. score: b[j].score,
  14668. img: b[j].img,
  14669. type: 8,
  14670. time: b[j].time,
  14671. userid: b[j].userid,
  14672. wid: b[j].id,
  14673. });
  14674. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14675. //选择题
  14676. this.workStudent[i].push({
  14677. works: b[j].content,
  14678. sName: b[j].name,
  14679. score: b[j].score,
  14680. img: b[j].img,
  14681. type: 9,
  14682. time: b[j].time,
  14683. userid: b[j].userid,
  14684. wid: b[j].id,
  14685. });
  14686. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14687. //选择题
  14688. this.workStudent[i].push({
  14689. works: b[j].content,
  14690. sName: b[j].name,
  14691. score: b[j].score,
  14692. img: b[j].img,
  14693. type: 10,
  14694. time: b[j].time,
  14695. userid: b[j].userid,
  14696. wid: b[j].id,
  14697. });
  14698. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14699. //选择题
  14700. this.workStudent[i].push({
  14701. works: b[j].content,
  14702. sName: b[j].name,
  14703. score: b[j].score,
  14704. img: b[j].img,
  14705. type: 13,
  14706. time: b[j].time,
  14707. userid: b[j].userid,
  14708. wid: b[j].id,
  14709. });
  14710. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14711. //选择题
  14712. this.workStudent[i].push({
  14713. works: b[j].content,
  14714. sName: b[j].name,
  14715. score: b[j].score,
  14716. img: b[j].img,
  14717. type: 12,
  14718. time: b[j].time,
  14719. userid: b[j].userid,
  14720. wid: b[j].id,
  14721. });
  14722. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14723. //选择题
  14724. this.workStudent[i].push({
  14725. works: b[j].content,
  14726. sName: b[j].name,
  14727. score: b[j].score,
  14728. img: b[j].img,
  14729. type: 12,
  14730. time: b[j].time,
  14731. userid: b[j].userid,
  14732. wid: b[j].id,
  14733. });
  14734. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14735. //选择题
  14736. this.workStudent[i].push({
  14737. works: b[j].content,
  14738. sName: b[j].name,
  14739. score: b[j].score,
  14740. img: b[j].img,
  14741. type: 15,
  14742. time: b[j].time,
  14743. userid: b[j].userid,
  14744. wid: b[j].id,
  14745. });
  14746. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14747. //英语写作
  14748. this.workStudent[i].push({
  14749. works: b[j].content,
  14750. sName: b[j].name,
  14751. score: b[j].score,
  14752. img: b[j].img,
  14753. type: 16,
  14754. time: b[j].time,
  14755. userid: b[j].userid,
  14756. wid: b[j].id,
  14757. aiCode: b[j].aiCode,
  14758. teacherCode: b[j].teacherCode
  14759. });
  14760. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14761. //英语口语
  14762. this.workStudent[i].push({
  14763. works: b[j].content,
  14764. sName: b[j].name,
  14765. score: b[j].score,
  14766. img: b[j].img,
  14767. type: 17,
  14768. time: b[j].time,
  14769. userid: b[j].userid,
  14770. wid: b[j].id,
  14771. });
  14772. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14773. //英语口语
  14774. this.workStudent[i].push({
  14775. works: b[j].content,
  14776. sName: b[j].name,
  14777. score: b[j].score,
  14778. img: b[j].img,
  14779. type: 14,
  14780. time: b[j].time,
  14781. userid: b[j].userid,
  14782. wid: b[j].id,
  14783. });
  14784. }
  14785. }
  14786. }
  14787. }
  14788. this.selectStudentLoading = false
  14789. })
  14790. .catch((err) => {
  14791. this.selectStudentLoading = false
  14792. console.error(err);
  14793. });
  14794. },
  14795. openVideo(w) {
  14796. this.videoDetail = {};
  14797. this.playerOptions1.sources[0].src = w.works;
  14798. this.videoDetail = this.playerOptions1;
  14799. this.videoVisible = true;
  14800. },
  14801. isLikes(wid, uid, t, c, isLikes,sName) {
  14802. if (isLikes == false) {
  14803. let params = [
  14804. {
  14805. wid: wid,
  14806. lid: uid,
  14807. t: t,
  14808. c: c,
  14809. },
  14810. ];
  14811. this.ajax
  14812. .post(this.$store.state.api + "insertComment", params)
  14813. .then((res) => {
  14814. this.$message({
  14815. message: "点赞成功",
  14816. type: "success",
  14817. });
  14818. this.selectSWorks();
  14819. this.selectStudent();
  14820. if(this.tType==1){
  14821. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14822. }
  14823. })
  14824. .catch((err) => {
  14825. this.$message.error("点赞失败");
  14826. console.error(err);
  14827. });
  14828. } else {
  14829. let params = {
  14830. wid: wid,
  14831. lid: uid,
  14832. type: t,
  14833. };
  14834. this.ajax
  14835. .get(this.$store.state.api + "deleteComment", params)
  14836. .then((res) => {
  14837. this.$message({
  14838. message: "取消点赞成功",
  14839. type: "success",
  14840. });
  14841. this.selectSWorks();
  14842. this.selectStudent();
  14843. })
  14844. .catch((err) => {
  14845. console.error(err);
  14846. });
  14847. }
  14848. },
  14849. deleteComment(wid) {
  14850. this.$confirm("确定删除此评论吗?", "提示", {
  14851. confirmButtonText: "确定",
  14852. cancelButtonText: "取消",
  14853. type: "warning",
  14854. })
  14855. .then(() => {
  14856. let params = {
  14857. id: wid,
  14858. };
  14859. this.ajax
  14860. .get(this.$store.state.api + "deleteComment2", params)
  14861. .then((res) => {
  14862. this.$message({
  14863. message: "删除评论成功",
  14864. type: "success",
  14865. });
  14866. this.selectSWorks();
  14867. this.selectStudent();
  14868. })
  14869. .catch((err) => {
  14870. console.error(err);
  14871. });
  14872. })
  14873. .catch(() => {});
  14874. },
  14875. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14876. this.commentIndexJson = {
  14877. toolIndex: toolIndex,
  14878. wIndex: wIndex,
  14879. gindex: gindex,
  14880. gid: gid,
  14881. };
  14882. this.commentDetail = [];
  14883. this.commentDialogVisible = true;
  14884. this.commentDetail = w;
  14885. if (w.works && w.type == 1) {
  14886. // this.pptImgUrl = "";
  14887. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14888. if (
  14889. a.indexOf(
  14890. w.works
  14891. .split(".")
  14892. [w.works.split(".").length - 1].toLocaleUpperCase()
  14893. ) != -1
  14894. ) {
  14895. let _uuurl = await this.checkLink(w.works);
  14896. this.pptImgUrl =
  14897. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14898. this.showPDF = false;
  14899. } else if (
  14900. w.works
  14901. .split(".")
  14902. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14903. ) {
  14904. this.pptImgUrl = w.works;
  14905. this.showPDF = true;
  14906. }
  14907. } else if (w.works && w.type == 3) {
  14908. this.videoDetail = {};
  14909. this.playerOptions1.sources[0].src = w.works;
  14910. this.videoDetail = this.playerOptions1;
  14911. // this.videoVisible = true;
  14912. } else if (w.works && w.type == 4) {
  14913. this.eScore = JSON.parse(w.works);
  14914. this.rateJson =
  14915. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14916. this.taskCount
  14917. ].toolChoose[toolIndex].rateJson;
  14918. } else if (w.works && w.type == 10) {
  14919. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14920. } else if (w.works && w.type == 13) {
  14921. this.wordJson =
  14922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14923. this.taskCount
  14924. ].toolChoose[toolIndex].wordJson;
  14925. }
  14926. },
  14927. async openScore(w, index) {
  14928. this.wScore = 0;
  14929. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14930. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14931. this.commentDetail = [];
  14932. if(w.type == 17){
  14933. this.dialogVisibleENScore = true;
  14934. }else{
  14935. this.dialogVisibleScore = true;
  14936. }
  14937. this.commentDetail = w;
  14938. if (w.works && w.type == 1) {
  14939. this.pptImgUrl = "";
  14940. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14941. if (
  14942. a.indexOf(
  14943. w.works
  14944. .split(".")
  14945. [w.works.split(".").length - 1].toLocaleUpperCase()
  14946. ) != -1
  14947. ) {
  14948. let _uuurl = await this.checkLink(w.works);
  14949. this.pptImgUrl =
  14950. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14951. this.showPDF = false;
  14952. } else if (
  14953. w.works
  14954. .split(".")
  14955. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14956. ) {
  14957. this.pptImgUrl = w.works;
  14958. this.showPDF = true;
  14959. }
  14960. } else if (w.works && w.type == 3) {
  14961. this.videoDetail = {};
  14962. this.playerOptions1.sources[0].src = w.works;
  14963. this.videoDetail = this.playerOptions1;
  14964. }else if(w.type == 17){
  14965. let englishVoiceJson = {}
  14966. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14967. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14968. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14969. .toolChoose[index].englishVoiceJson
  14970. : {};
  14971. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14972. }
  14973. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14974. },
  14975. addComment(wid, uid, t,detail) {
  14976. if (this.commentText == "") {
  14977. this.$message.error("请输入评论");
  14978. return;
  14979. }
  14980. let params2 = [
  14981. {
  14982. wid: wid,
  14983. lid: uid,
  14984. t: t,
  14985. },
  14986. ];
  14987. this.ajax
  14988. .post(this.$store.state.api + "getComment", params2)
  14989. .then((res) => {
  14990. if (res.data[0].length > 0) {
  14991. this.$message.error("一个作业只能评论一条");
  14992. } else {
  14993. let params = [
  14994. {
  14995. wid: wid,
  14996. lid: uid,
  14997. t: t,
  14998. c: this.commentText,
  14999. },
  15000. ];
  15001. this.ajax
  15002. .post(this.$store.state.api + "insertComment", params)
  15003. .then((res) => {
  15004. this.$message({
  15005. message: "评论成功",
  15006. type: "success",
  15007. });
  15008. this.commentText = "";
  15009. this.selectSWorks();
  15010. this.selectStudent();
  15011. if(this.tType!=2){
  15012. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15013. }
  15014. })
  15015. .catch((err) => {
  15016. this.$message.error("评论失败");
  15017. console.error(err);
  15018. });
  15019. }
  15020. })
  15021. .catch((err) => {
  15022. // this.$message.error("评论失败");
  15023. console.error(err);
  15024. });
  15025. },
  15026. scoreWork(wid,sName) {
  15027. if (this.wScore == 0) {
  15028. this.$message.error("请评分");
  15029. return;
  15030. }
  15031. let params = [
  15032. {
  15033. wid: wid,
  15034. score: JSON.stringify({
  15035. wScore: this.wScore,
  15036. detail: this.scoreDetail,
  15037. }),
  15038. },
  15039. ];
  15040. this.ajax
  15041. .post(this.$store.state.api + "scoreWork", params)
  15042. .then((res) => {
  15043. this.$message({
  15044. message: "评分成功",
  15045. type: "success",
  15046. });
  15047. this.wScore = 0;
  15048. this.scoreDetail = "";
  15049. this.dialogVisibleScore = false;
  15050. this.selectSWorks();
  15051. this.selectStudent();
  15052. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15053. })
  15054. .catch((err) => {
  15055. this.$message.error("评分失败");
  15056. console.error(err);
  15057. });
  15058. },
  15059. openXz(w, i) {
  15060. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15061. .taskJson[this.taskCount].toolChoose[i].selectJson
  15062. ? JSON.parse(
  15063. JSON.stringify(
  15064. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15065. this.taskCount
  15066. ].toolChoose[i].selectJson
  15067. )
  15068. )
  15069. : { url: "", select: [], answer: [] };
  15070. var a = w.works.split(",");
  15071. for (var k = 0; k < a.length; k++) {
  15072. a[k] = parseInt(a[k]);
  15073. }
  15074. this.selectAnswer = { answer: a, stu: w.sName };
  15075. this.isSelect = true;
  15076. this.dialogVisibleSelect = true;
  15077. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15078. },
  15079. openSen(w, i) {
  15080. console.log("openSen")
  15081. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15082. this.sentenceList1 = JSON.parse(w.works);
  15083. this.sentenceList1.stuName = w.sName;
  15084. this.dialogVisibleSentence1 = true;
  15085. },
  15086. openPj(w, toolindex) {
  15087. console.log("openPJ")
  15088. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15089. this.isStar = true;
  15090. this.eScore = JSON.parse(w);
  15091. this.rateJson =
  15092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15093. this.taskCount
  15094. ].toolChoose[toolindex].rateJson;
  15095. this.studentEvalDialogVisible = true;
  15096. },
  15097. openEnglishEva(id,i){
  15098. let params = {
  15099. wid: id
  15100. };
  15101. this.ajax
  15102. .get(this.$store.state.api + "selectEngWork", params)
  15103. .then((res) => {
  15104. this.evaEngJson.message = res.data[0][0];
  15105. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15106. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15107. .toolChoose[i].englishList;
  15108. this.engEvaDialogVisible = true;
  15109. })
  15110. .catch((err) => {
  15111. console.error(err);
  15112. });
  15113. },
  15114. deleteWorks(id) {
  15115. this.$confirm("确定删除此作业吗?", "提示", {
  15116. confirmButtonText: "确定",
  15117. cancelButtonText: "取消",
  15118. type: "warning",
  15119. })
  15120. .then(() => {
  15121. let params = [
  15122. {
  15123. id: id,
  15124. },
  15125. ];
  15126. this.ajax
  15127. .post(this.$store.state.api + "deleteCourseWork", params)
  15128. .then((res) => {
  15129. this.$message({
  15130. message: "删除成功",
  15131. type: "success",
  15132. });
  15133. this.selectStudent();
  15134. this.selectSWorks();
  15135. this.selectSLook();
  15136. })
  15137. .catch((err) => {
  15138. this.$message.error("网络异常");
  15139. console.error(err);
  15140. });
  15141. })
  15142. .catch(() => {});
  15143. },
  15144. selectSWorks(gindex) {
  15145. if(this.selectSWorksLoading) return
  15146. this.selectSWorksLoading = true
  15147. //教师查看全部作业
  15148. let params = {
  15149. cid: this.id,
  15150. s: this.courseType,
  15151. t: this.taskCount,
  15152. };
  15153. this.ajax
  15154. .get(this.$store.state.api + "selectSWorks", params)
  15155. .then((res) => {
  15156. var a =
  15157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15158. this.taskCount
  15159. ].toolChoose;
  15160. var b = res.data[0];
  15161. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15162. var y = [
  15163. "AVI",
  15164. "NAVI",
  15165. "MPEG",
  15166. "ASF",
  15167. "MOV",
  15168. "WMV",
  15169. "3GP",
  15170. "RM",
  15171. "RMVB",
  15172. "FLV",
  15173. "F4V",
  15174. "H.264",
  15175. "H.265",
  15176. "REAL VIDEO",
  15177. "MKV",
  15178. "WebM",
  15179. "HDDVD",
  15180. "MP4",
  15181. "MPG",
  15182. "M4V",
  15183. "MGV",
  15184. "OGV",
  15185. "QTM",
  15186. "STR",
  15187. "AMC",
  15188. "DVX",
  15189. "EVO",
  15190. "DAT",
  15191. "OGG",
  15192. "OGM",
  15193. ];
  15194. var d = res.data[1];
  15195. var e = res.data[2];
  15196. var f = res.data[3];
  15197. let _worksStudent = [];
  15198. var _worksStudent2 = [];
  15199. for (var i = 0; i < a.length; i++) {
  15200. _worksStudent[i] = [];
  15201. _worksStudent2[i] = [];
  15202. if (
  15203. !this.isCloseList[i] ||
  15204. this.isCloseList[i].isClose == undefined
  15205. ) {
  15206. this.isCloseList[i] = { isClose: 0 };
  15207. }
  15208. this.groupStudent[i] = [];
  15209. this.groupStudentUid[i] = [];
  15210. if (this.isGroup) {
  15211. for (
  15212. var groupI = 0;
  15213. groupI < this.courseGroup.group.length;
  15214. groupI++
  15215. ) {
  15216. this.courseGroup.group[groupI].works[i] = [];
  15217. }
  15218. }
  15219. this.isWorksS[i] = [];
  15220. this.checkJson[i] = [];
  15221. if (a[i].tool[0] == 49) {
  15222. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15223. this.groupStudent[i][gA] = [];
  15224. this.groupStudentUid[i][gA] = [];
  15225. _worksStudent[i][gA] = [];
  15226. _worksStudent2[i][gA] = [];
  15227. this.isCloseList[i][gA] = [];
  15228. // debugger
  15229. for (var g = 0; g < f.length; g++) {
  15230. if (
  15231. f[g].ttype == 2 &&
  15232. this.tcid &&
  15233. this.arrayToArray(
  15234. (f[g].classid ? f[g].classid.split(",") : []),
  15235. this.tcid.split(",")
  15236. ).length == 0
  15237. ) {
  15238. continue;
  15239. }
  15240. let _classId = this.arrayToArray(
  15241. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15242. this.classId ? this.classId.split(",") : []
  15243. )
  15244. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15245. (f[g].classid ? f[g].classid.split(",") : []),
  15246. this.tcid.split(",")
  15247. ).length !== 0 || this.arrayToArray(
  15248. (f[g].classid ? f[g].classid.split(",") : []),
  15249. _classId
  15250. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15251. this.groupStudent[i][gA].push(f[g]);
  15252. this.groupStudentUid[i][gA].push(f[g].userid);
  15253. }
  15254. }
  15255. }
  15256. this.$forceUpdate();
  15257. }
  15258. for (var j = 0; j < b.length; j++) {
  15259. if (
  15260. b[j].ttype == 2 &&
  15261. this.tcid &&
  15262. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15263. .length == 0
  15264. ) {
  15265. continue;
  15266. }
  15267. var likesCount = 0;
  15268. var commentCount = 0;
  15269. var isLikes = false;
  15270. var commentJson = [];
  15271. var likeJson = [];
  15272. var data = b[j];
  15273. if (i == b[j].tool) {
  15274. if (data.type == 2 && a[i].tool[0] == 4) {
  15275. // if(JSON.parse(data.content)[0].anwer){
  15276. var checkL =
  15277. JSON.parse(data.content)[0].anwer instanceof Array
  15278. ? JSON.parse(data.content)[0].anwer
  15279. : JSON.parse(data.content)[0].anwer.split(",");
  15280. for (var z = 0; z < checkL.length; z++) {
  15281. if (!this.checkJson[i][z]) {
  15282. this.checkJson[i].push({
  15283. checkCount: [],
  15284. checkPerson: [],
  15285. rightPerson: [],
  15286. });
  15287. }
  15288. if (!this.checkJson[i][z].checkCount.length) {
  15289. this.checkJson[i][z].checkCount = [];
  15290. let _askItemCount = JSON.parse(data.content)[0].askJson
  15291. .askJson[z].askItem;
  15292. for (var aic = 0; aic < _askItemCount; aic++) {
  15293. this.checkJson[i][z].checkCount.push(0);
  15294. }
  15295. }
  15296. if (checkL[z] instanceof Array) {
  15297. if (
  15298. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15299. checkL[z].sort().join(",")
  15300. ) {
  15301. this.checkJson[i][z].rightPerson.push(data.name);
  15302. }
  15303. for (var q = 0; q < checkL[z].length; q++) {
  15304. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15305. ? this.checkJson[i][z].checkPerson[
  15306. parseInt(checkL[z][q])
  15307. ].push(data.name)
  15308. : (this.checkJson[i][z].checkPerson[
  15309. parseInt(checkL[z][q])
  15310. ] = [data.name]);
  15311. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15312. ? this.checkJson[i][z].checkCount[
  15313. parseInt(checkL[z][q])
  15314. ]++
  15315. : (this.checkJson[i][z].checkCount[
  15316. parseInt(checkL[z][q])
  15317. ] = 1);
  15318. }
  15319. } else {
  15320. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15321. this.checkJson[i][z].rightPerson.push(data.name);
  15322. }
  15323. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15324. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15325. ? this.checkJson[i][z].checkPerson[
  15326. parseInt(checkL[z])
  15327. ].push(data.name)
  15328. : (this.checkJson[i][z].checkPerson[
  15329. parseInt(checkL[z])
  15330. ] = [data.name]);
  15331. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15332. ? this.checkJson[i][z].checkCount[
  15333. parseInt(checkL[z])
  15334. ]++
  15335. : (this.checkJson[i][z].checkCount[
  15336. parseInt(checkL[z])
  15337. ] = 1);
  15338. }
  15339. }
  15340. }
  15341. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15342. var checkL = JSON.parse(data.content)[0].anwer;
  15343. for (var z = 0; z < checkL.length; z++) {
  15344. if (!this.checkJson[i][z]) {
  15345. this.checkJson[i].push({
  15346. checkCount: [],
  15347. checkPerson: [],
  15348. rightPerson: [],
  15349. });
  15350. }
  15351. if (!this.checkJson[i][z].checkCount.length) {
  15352. this.checkJson[i][z].checkCount = [];
  15353. let _askItemCount = JSON.parse(data.content)[0].testJson
  15354. .testJson[z].testItem;
  15355. for (var aic = 0; aic < _askItemCount; aic++) {
  15356. this.checkJson[i][z].checkCount.push(0);
  15357. }
  15358. }
  15359. if (checkL[z] instanceof Array) {
  15360. if (
  15361. JSON.parse(data.content)[0]
  15362. .testJson.testJson[z].answer.sort()
  15363. .join(",") == checkL[z].sort().join(",")
  15364. ) {
  15365. this.checkJson[i][z].rightPerson.push(data.name);
  15366. }
  15367. for (var q = 0; q < checkL[z].length; q++) {
  15368. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15369. ? this.checkJson[i][z].checkPerson[
  15370. parseInt(checkL[z][q])
  15371. ].push(data.name)
  15372. : (this.checkJson[i][z].checkPerson[
  15373. parseInt(checkL[z][q])
  15374. ] = [data.name]);
  15375. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15376. ? this.checkJson[i][z].checkCount[
  15377. parseInt(checkL[z][q])
  15378. ]++
  15379. : (this.checkJson[i][z].checkCount[
  15380. parseInt(checkL[z][q])
  15381. ] = 1);
  15382. }
  15383. } else {
  15384. if (
  15385. JSON.parse(data.content)[0].testJson.testJson[z]
  15386. .answer == checkL[z]
  15387. ) {
  15388. this.checkJson[i][z].rightPerson.push(data.name);
  15389. }
  15390. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15391. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15392. ? this.checkJson[i][z].checkPerson[
  15393. parseInt(checkL[z])
  15394. ].push(data.name)
  15395. : (this.checkJson[i][z].checkPerson[
  15396. parseInt(checkL[z])
  15397. ] = [data.name]);
  15398. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15399. ? this.checkJson[i][z].checkCount[
  15400. parseInt(checkL[z])
  15401. ]++
  15402. : (this.checkJson[i][z].checkCount[
  15403. parseInt(checkL[z])
  15404. ] = 1);
  15405. }
  15406. }
  15407. }
  15408. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15409. var checkL = JSON.parse(data.content);
  15410. for (var z = 0; z < checkL.length; z++) {
  15411. if (!this.checkJson[i][z]) {
  15412. this.checkJson[i].push({
  15413. checkCount: [],
  15414. checkPerson: [],
  15415. rightPerson: [],
  15416. });
  15417. }
  15418. this.checkJson[i][z].checkPerson.push(data.name);
  15419. if (
  15420. checkL[z].chooseSenList.toString() ==
  15421. checkL[z].rightAnswer.toString()
  15422. ) {
  15423. this.checkJson[i][z].rightPerson.push(data.name);
  15424. }
  15425. }
  15426. }
  15427. for (var k = 0; k < d.length; k++) {
  15428. //点赞
  15429. if (d[k].workId == b[j].id) {
  15430. likesCount++;
  15431. likeJson.push(d[k])
  15432. if (d[k].likesId == this.userid) {
  15433. isLikes = true;
  15434. }
  15435. }
  15436. }
  15437. for (var l = 0; l < e.length; l++) {
  15438. //评论
  15439. if (e[l].workId == b[j].id) {
  15440. if (e[l].comment != "") {
  15441. commentCount++;
  15442. commentJson.push({
  15443. commentText: e[l].comment,
  15444. commentTime: e[l].commentTime,
  15445. commentPeople: e[l].commentPeople,
  15446. userid: e[l].userid,
  15447. wid: e[l].id,
  15448. });
  15449. }
  15450. }
  15451. }
  15452. if (
  15453. (b[j].type == 1 ||
  15454. b[j].type == 4 ||
  15455. b[j].type == 5 ||
  15456. b[j].type == 6 ||
  15457. b[j].type == 12 ||
  15458. b[j].type == 7) &&
  15459. a[i].tool[0] != 15 &&
  15460. a[i].tool[0] != 4 &&
  15461. a[i].tool[0] != 45 &&
  15462. a[i].tool[0] != 50 &&
  15463. a[i].tool[0] != 32 &&
  15464. a[i].tool[0] != 57 &&
  15465. a[i].tool[0] != 52
  15466. ) {
  15467. if (
  15468. c.indexOf(
  15469. b[j].content
  15470. .split(".")
  15471. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15472. ) != -1 &&
  15473. a[i].tool[0] == 16 &&
  15474. b[j].atool != 50
  15475. ) {
  15476. let _works = {
  15477. userid: b[j].userid,
  15478. ateacher: b[j].ateacher,
  15479. wid: b[j].id,
  15480. works: b[j].content,
  15481. sName: b[j].name,
  15482. type: 1,
  15483. ttype:b[j].ttype,
  15484. time: b[j].time,
  15485. score: b[j].score,
  15486. img: b[j].img,
  15487. likesCount: likesCount,
  15488. commentCount: commentCount,
  15489. isLikes: isLikes,
  15490. commentJson: commentJson,
  15491. likeJson:likeJson
  15492. };
  15493. if (this.isGroup) {
  15494. let isGw = 1;
  15495. for (
  15496. var groupI = 0;
  15497. groupI < this.courseGroup.group.length;
  15498. groupI++
  15499. ) {
  15500. let gid = this.courseGroup.group[groupI].id;
  15501. if (
  15502. this.courseGroupStudentUid[gid].indexOf(
  15503. b[j].userid
  15504. ) != -1
  15505. ) {
  15506. isGw = 2;
  15507. this.courseGroup.group[groupI].works[i].push(_works);
  15508. break;
  15509. }
  15510. }
  15511. if (isGw == 1) {
  15512. _worksStudent[i].push(_works);
  15513. }
  15514. } else {
  15515. _worksStudent[i].push(_works);
  15516. }
  15517. _worksStudent2[i].push(_works);
  15518. this.isWorksS[i].push({
  15519. uid: b[j].userid,
  15520. sName: b[j].name,
  15521. });
  15522. } else if (
  15523. y.indexOf(
  15524. b[j].content
  15525. .split(".")
  15526. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15527. ) != -1 &&
  15528. a[i].tool[0] == 16 &&
  15529. b[j].atool != 50
  15530. ) {
  15531. let _works = {
  15532. userid: b[j].userid,
  15533. ateacher: b[j].ateacher,
  15534. wid: b[j].id,
  15535. works: b[j].content,
  15536. sName: b[j].name,
  15537. type: 3,
  15538. ttype:b[j].ttype,
  15539. time: b[j].time,
  15540. score: b[j].score,
  15541. img: b[j].img,
  15542. likesCount: likesCount,
  15543. commentCount: commentCount,
  15544. isLikes: isLikes,
  15545. commentJson: commentJson,
  15546. likeJson:likeJson
  15547. };
  15548. if (this.isGroup) {
  15549. let isGw = 1;
  15550. for (
  15551. var groupI = 0;
  15552. groupI < this.courseGroup.group.length;
  15553. groupI++
  15554. ) {
  15555. let gid = this.courseGroup.group[groupI].id;
  15556. if (
  15557. this.courseGroupStudentUid[gid].indexOf(
  15558. b[j].userid
  15559. ) != -1
  15560. ) {
  15561. isGw = 2;
  15562. this.courseGroup.group[groupI].works[i].push(_works);
  15563. break;
  15564. }
  15565. }
  15566. if (isGw == 1) {
  15567. _worksStudent[i].push(_works);
  15568. }
  15569. } else {
  15570. _worksStudent[i].push(_works);
  15571. }
  15572. _worksStudent2[i].push(_works);
  15573. this.isWorksS[i].push({
  15574. uid: b[j].userid,
  15575. sName: b[j].name,
  15576. });
  15577. } else if (b[j].type == 6 && b[j].atool != 50) {
  15578. let _works = {
  15579. userid: b[j].userid,
  15580. ateacher: b[j].ateacher,
  15581. wid: b[j].id,
  15582. works: b[j].content,
  15583. sName: b[j].name,
  15584. type: 4,
  15585. ttype:b[j].ttype,
  15586. time: b[j].time,
  15587. score: b[j].score,
  15588. img: b[j].img,
  15589. likesCount: likesCount,
  15590. commentCount: commentCount,
  15591. isLikes: isLikes,
  15592. commentJson: commentJson,
  15593. likeJson:likeJson
  15594. };
  15595. _worksStudent[i].push(_works);
  15596. _worksStudent2[i].push(_works);
  15597. this.isWorksS[i].push({
  15598. uid: b[j].userid,
  15599. sName: b[j].name,
  15600. });
  15601. } else if (b[j].type == 7 && b[j].atool != 50) {
  15602. let _work = {
  15603. userid: b[j].userid,
  15604. ateacher: b[j].ateacher,
  15605. wid: b[j].id,
  15606. works: b[j].content,
  15607. sName: b[j].name,
  15608. type: 5,
  15609. ttype:b[j].ttype,
  15610. time: b[j].time,
  15611. score: b[j].score,
  15612. img: b[j].img,
  15613. likesCount: likesCount,
  15614. commentCount: commentCount,
  15615. isLikes: isLikes,
  15616. commentJson: commentJson,
  15617. likeJson:likeJson
  15618. };
  15619. _worksStudent[i].push(_work);
  15620. _worksStudent2[i].push(_work);
  15621. this.isWorksS[i].push({
  15622. uid: b[j].userid,
  15623. sName: b[j].name,
  15624. });
  15625. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15626. let _works = {
  15627. userid: b[j].userid,
  15628. ateacher: b[j].ateacher,
  15629. wid: b[j].id,
  15630. works: b[j].content,
  15631. sName: b[j].name,
  15632. type: 12,
  15633. ttype:b[j].ttype,
  15634. time: b[j].time,
  15635. score: b[j].score,
  15636. img: b[j].img,
  15637. likesCount: likesCount,
  15638. commentCount: commentCount,
  15639. isLikes: isLikes,
  15640. commentJson: commentJson,
  15641. likeJson:likeJson
  15642. };
  15643. if (this.isGroup) {
  15644. let isGw = 1;
  15645. for (
  15646. var groupI = 0;
  15647. groupI < this.courseGroup.group.length;
  15648. groupI++
  15649. ) {
  15650. let gid = this.courseGroup.group[groupI].id;
  15651. if (
  15652. this.courseGroupStudentUid[gid].indexOf(
  15653. b[j].userid
  15654. ) != -1
  15655. ) {
  15656. isGw = 2;
  15657. this.courseGroup.group[groupI].works[i].push(_works);
  15658. break;
  15659. }
  15660. }
  15661. if (isGw == 1) {
  15662. _worksStudent[i].push(_works);
  15663. }
  15664. } else {
  15665. _worksStudent[i].push(_works);
  15666. }
  15667. _worksStudent2[i].push(_works);
  15668. this.isWorksS[i].push({
  15669. uid: b[j].userid,
  15670. sName: b[j].name,
  15671. });
  15672. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15673. let _works = {
  15674. userid: b[j].userid,
  15675. ateacher: b[j].ateacher,
  15676. wid: b[j].id,
  15677. works: b[j].content,
  15678. sName: b[j].name,
  15679. type: 0,
  15680. ttype:b[j].ttype,
  15681. time: b[j].time,
  15682. score: b[j].score,
  15683. img: b[j].img,
  15684. likesCount: likesCount,
  15685. commentCount: commentCount,
  15686. isLikes: isLikes,
  15687. commentJson: commentJson,
  15688. likeJson:likeJson
  15689. };
  15690. if (this.isGroup) {
  15691. let isGw = 1;
  15692. for (
  15693. var groupI = 0;
  15694. groupI < this.courseGroup.group.length;
  15695. groupI++
  15696. ) {
  15697. let gid = this.courseGroup.group[groupI].id;
  15698. if (
  15699. this.courseGroupStudentUid[gid].indexOf(
  15700. b[j].userid
  15701. ) != -1
  15702. ) {
  15703. isGw = 2;
  15704. this.courseGroup.group[groupI].works[i].push(_works);
  15705. break;
  15706. }
  15707. }
  15708. if (isGw == 1) {
  15709. _worksStudent[i].push(_works);
  15710. }
  15711. } else {
  15712. _worksStudent[i].push(_works);
  15713. }
  15714. _worksStudent2[i].push(_works);
  15715. this.isWorksS[i].push({
  15716. uid: b[j].userid,
  15717. sName: b[j].name,
  15718. });
  15719. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15720. let _works = {
  15721. userid: b[j].userid,
  15722. ateacher: b[j].ateacher,
  15723. wid: b[j].id,
  15724. works: b[j].content,
  15725. sName: b[j].name,
  15726. type: 0,
  15727. ttype:b[j].ttype,
  15728. time: b[j].time,
  15729. score: b[j].score,
  15730. img: b[j].img,
  15731. likesCount: likesCount,
  15732. commentCount: commentCount,
  15733. isLikes: isLikes,
  15734. commentJson: commentJson,
  15735. likeJson:likeJson
  15736. };
  15737. if (this.isGroup) {
  15738. let isGw = 1;
  15739. for (
  15740. var groupI = 0;
  15741. groupI < this.courseGroup.group.length;
  15742. groupI++
  15743. ) {
  15744. let gid = this.courseGroup.group[groupI].id;
  15745. if (
  15746. this.courseGroupStudentUid[gid].indexOf(
  15747. b[j].userid
  15748. ) != -1
  15749. ) {
  15750. isGw = 2;
  15751. this.courseGroup.group[groupI].works[i].push(_works);
  15752. break;
  15753. }
  15754. }
  15755. if (isGw == 1) {
  15756. _worksStudent[i].push(_works);
  15757. }
  15758. } else {
  15759. _worksStudent[i].push(_works);
  15760. }
  15761. _worksStudent2[i].push(_works);
  15762. this.isWorksS[i].push({
  15763. uid: b[j].userid,
  15764. sName: b[j].name,
  15765. });
  15766. }
  15767. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15768. let _works = {
  15769. userid: b[j].userid,
  15770. ateacher: b[j].ateacher,
  15771. wid: b[j].id,
  15772. works: b[j].content,
  15773. sName: b[j].name,
  15774. type: 2,
  15775. ttype:b[j].ttype,
  15776. time: b[j].time,
  15777. score: b[j].score,
  15778. img: b[j].img,
  15779. likesCount: likesCount,
  15780. commentCount: commentCount,
  15781. isLikes: isLikes,
  15782. commentJson: commentJson,
  15783. likeJson:likeJson
  15784. };
  15785. if (this.isGroup) {
  15786. let isGw = 1;
  15787. for (
  15788. var groupI = 0;
  15789. groupI < this.courseGroup.group.length;
  15790. groupI++
  15791. ) {
  15792. let gid = this.courseGroup.group[groupI].id;
  15793. if (
  15794. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15795. -1
  15796. ) {
  15797. isGw = 2;
  15798. this.courseGroup.group[groupI].works[i].push(_works);
  15799. break;
  15800. }
  15801. }
  15802. if (isGw == 1) {
  15803. _worksStudent[i].push(_works);
  15804. }
  15805. } else {
  15806. _worksStudent[i].push(_works);
  15807. }
  15808. _worksStudent2[i].push(_works);
  15809. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15810. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15811. let _works = {
  15812. userid: b[j].userid,
  15813. ateacher: b[j].ateacher,
  15814. wid: b[j].id,
  15815. works: b[j].content,
  15816. sName: b[j].name,
  15817. type: 20,
  15818. ttype:b[j].ttype,
  15819. time: b[j].time,
  15820. score: b[j].score,
  15821. img: b[j].img,
  15822. likesCount: likesCount,
  15823. commentCount: commentCount,
  15824. isLikes: isLikes,
  15825. commentJson: commentJson,
  15826. likeJson:likeJson
  15827. };
  15828. if (this.isGroup) {
  15829. let isGw = 1;
  15830. for (
  15831. var groupI = 0;
  15832. groupI < this.courseGroup.group.length;
  15833. groupI++
  15834. ) {
  15835. let gid = this.courseGroup.group[groupI].id;
  15836. if (
  15837. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15838. -1
  15839. ) {
  15840. isGw = 2;
  15841. this.courseGroup.group[groupI].works[i].push(_works);
  15842. break;
  15843. }
  15844. }
  15845. if (isGw == 1) {
  15846. _worksStudent[i].push(_works);
  15847. }
  15848. } else {
  15849. _worksStudent[i].push(_works);
  15850. }
  15851. _worksStudent2[i].push(_works);
  15852. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15853. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15854. //问卷
  15855. let _work = {
  15856. userid: b[j].userid,
  15857. ateacher: b[j].ateacher,
  15858. wid: b[j].id,
  15859. works: b[j].content,
  15860. sName: b[j].name,
  15861. type: 2,
  15862. ttype:b[j].ttype,
  15863. time: b[j].time,
  15864. score: b[j].score,
  15865. img: b[j].img,
  15866. likesCount: likesCount,
  15867. commentCount: commentCount,
  15868. isLikes: isLikes,
  15869. commentJson: commentJson,
  15870. likeJson:likeJson
  15871. };
  15872. _worksStudent[i].push(_work);
  15873. _worksStudent2[i].push(_work);
  15874. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15875. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15876. //选择题
  15877. let _work = {
  15878. userid: b[j].userid,
  15879. ateacher: b[j].ateacher,
  15880. wid: b[j].id,
  15881. works: b[j].content,
  15882. sName: b[j].name,
  15883. type: 8,
  15884. ttype:b[j].ttype,
  15885. time: b[j].time,
  15886. score: b[j].score,
  15887. img: b[j].img,
  15888. likesCount: likesCount,
  15889. commentCount: commentCount,
  15890. isLikes: isLikes,
  15891. commentJson: commentJson,
  15892. likeJson:likeJson
  15893. };
  15894. _worksStudent[i].push(_work);
  15895. _worksStudent2[i].push(_work);
  15896. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15897. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15898. //选择题
  15899. let _work = {
  15900. userid: b[j].userid,
  15901. ateacher: b[j].ateacher,
  15902. wid: b[j].id,
  15903. works: b[j].content,
  15904. sName: b[j].name,
  15905. type: 9,
  15906. ttype:b[j].ttype,
  15907. time: b[j].time,
  15908. score: b[j].score,
  15909. img: b[j].img,
  15910. likesCount: likesCount,
  15911. commentCount: commentCount,
  15912. isLikes: isLikes,
  15913. commentJson: commentJson,
  15914. likeJson:likeJson
  15915. };
  15916. _worksStudent[i].push(_work);
  15917. _worksStudent2[i].push(_work);
  15918. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15919. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15920. //选择题
  15921. let _work = {
  15922. userid: b[j].userid,
  15923. ateacher: b[j].ateacher,
  15924. wid: b[j].id,
  15925. works: b[j].content,
  15926. sName: b[j].name,
  15927. type: 10,
  15928. ttype:b[j].ttype,
  15929. time: b[j].time,
  15930. score: b[j].score,
  15931. img: b[j].img,
  15932. likesCount: likesCount,
  15933. commentCount: commentCount,
  15934. isLikes: isLikes,
  15935. commentJson: commentJson,
  15936. likeJson:likeJson
  15937. };
  15938. _worksStudent[i].push(_work);
  15939. _worksStudent2[i].push(_work);
  15940. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15941. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15942. //选择题
  15943. let _work = {
  15944. userid: b[j].userid,
  15945. ateacher: b[j].ateacher,
  15946. wid: b[j].id,
  15947. works: b[j].content,
  15948. sName: b[j].name,
  15949. type: 13,
  15950. ttype:b[j].ttype,
  15951. time: b[j].time,
  15952. score: b[j].score,
  15953. img: b[j].img,
  15954. likesCount: likesCount,
  15955. commentCount: commentCount,
  15956. isLikes: isLikes,
  15957. commentJson: commentJson,
  15958. likeJson:likeJson
  15959. };
  15960. _worksStudent[i].push(_work);
  15961. _worksStudent2[i].push(_work);
  15962. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15963. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15964. //选择题
  15965. let _work = {
  15966. userid: b[j].userid,
  15967. ateacher: b[j].ateacher,
  15968. wid: b[j].id,
  15969. works: b[j].content,
  15970. sName: b[j].name,
  15971. type: 16,
  15972. ttype:b[j].ttype,
  15973. time: b[j].time,
  15974. score: b[j].score,
  15975. img: b[j].img,
  15976. likesCount: likesCount,
  15977. commentCount: commentCount,
  15978. isLikes: isLikes,
  15979. commentJson: commentJson,
  15980. aiCode: b[j].aiCode,
  15981. teacherCode: b[j].teacherCode,
  15982. likeJson:likeJson
  15983. };
  15984. _worksStudent[i].push(_work);
  15985. _worksStudent2[i].push(_work);
  15986. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15987. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15988. //英语口语
  15989. let _work = {
  15990. userid: b[j].userid,
  15991. ateacher: b[j].ateacher,
  15992. wid: b[j].id,
  15993. works: b[j].content,
  15994. sName: b[j].name,
  15995. type: 17,
  15996. ttype:b[j].ttype,
  15997. time: b[j].time,
  15998. score: b[j].score,
  15999. img: b[j].img,
  16000. likesCount: likesCount,
  16001. commentCount: commentCount,
  16002. isLikes: isLikes,
  16003. commentJson: commentJson,
  16004. likeJson:likeJson
  16005. };
  16006. _worksStudent[i].push(_work);
  16007. _worksStudent2[i].push(_work);
  16008. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16009. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16010. //交互视频
  16011. let _work = {
  16012. userid: b[j].userid,
  16013. ateacher: b[j].ateacher,
  16014. wid: b[j].id,
  16015. works: b[j].content,
  16016. sName: b[j].name,
  16017. type: 14,
  16018. ttype:b[j].ttype,
  16019. time: b[j].time,
  16020. score: b[j].score,
  16021. img: b[j].img,
  16022. likesCount: likesCount,
  16023. commentCount: commentCount,
  16024. isLikes: isLikes,
  16025. commentJson: commentJson,
  16026. likeJson:likeJson
  16027. };
  16028. _worksStudent[i].push(_work);
  16029. _worksStudent2[i].push(_work);
  16030. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16031. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16032. let _gindex = JSON.parse(b[j].content);
  16033. if (
  16034. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16035. b[j].userid
  16036. ) != -1
  16037. ) {
  16038. let _work = {
  16039. userid: b[j].userid,
  16040. ateacher: b[j].ateacher,
  16041. wid: b[j].id,
  16042. works: _gindex.url,
  16043. sName: b[j].name,
  16044. type: _gindex.type,
  16045. ttype:b[j].ttype,
  16046. time: b[j].time,
  16047. score: b[j].score,
  16048. img: b[j].img,
  16049. likesCount: likesCount,
  16050. commentCount: commentCount,
  16051. isLikes: isLikes,
  16052. commentJson: commentJson,
  16053. likeJson:likeJson
  16054. };
  16055. _worksStudent[i][_gindex.groupIndex].push(_work);
  16056. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16057. }
  16058. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16059. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16060. let _work = {
  16061. userid: b[j].userid,
  16062. ateacher: b[j].ateacher,
  16063. wid: b[j].id,
  16064. works: b[j].content,
  16065. sName: b[j].name ? b[j].name : b[j].userid,
  16066. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16067. ttype:b[j].ttype,
  16068. time: b[j].time,
  16069. score: b[j].score,
  16070. img: b[j].img,
  16071. likesCount: likesCount,
  16072. commentCount: commentCount,
  16073. isLikes: isLikes,
  16074. commentJson: commentJson,
  16075. likeJson:likeJson
  16076. };
  16077. _worksStudent[i].push(_work);
  16078. _worksStudent2[i].push(_work);
  16079. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16080. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16081. let _work = {
  16082. userid: b[j].userid,
  16083. ateacher: b[j].ateacher,
  16084. wid: b[j].id,
  16085. works: b[j].content,
  16086. sName: b[j].name ? b[j].name : b[j].userid,
  16087. type: 12,
  16088. ttype:b[j].ttype,
  16089. time: b[j].time,
  16090. score: b[j].score,
  16091. img: b[j].img,
  16092. likesCount: likesCount,
  16093. commentCount: commentCount,
  16094. isLikes: isLikes,
  16095. commentJson: commentJson,
  16096. likeJson:likeJson
  16097. };
  16098. _worksStudent[i].push(_work);
  16099. _worksStudent2[i].push(_work);
  16100. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16101. } else if (
  16102. a[i].tool[0] == 57 &&
  16103. b[j].atool == 57 &&
  16104. b[j].type == 12
  16105. ) {
  16106. let _work = {
  16107. userid: b[j].userid,
  16108. ateacher: b[j].ateacher,
  16109. wid: b[j].id,
  16110. works: b[j].content,
  16111. sName: b[j].name ? b[j].name : b[j].userid,
  16112. type: 12,
  16113. ttype:b[j].ttype,
  16114. time: b[j].time,
  16115. score: b[j].score,
  16116. img: b[j].img,
  16117. likesCount: likesCount,
  16118. commentCount: commentCount,
  16119. isLikes: isLikes,
  16120. commentJson: commentJson,
  16121. likeJson:likeJson
  16122. };
  16123. _worksStudent[i].push(_work);
  16124. _worksStudent2[i].push(_work);
  16125. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16126. } else if (
  16127. a[i].tool[0] == 57 &&
  16128. b[j].atool == 57 &&
  16129. b[j].type == 15
  16130. ) {
  16131. let _work = {
  16132. userid: b[j].userid,
  16133. ateacher: b[j].ateacher,
  16134. wid: b[j].id,
  16135. works: b[j].content,
  16136. sName: b[j].name ? b[j].name : b[j].userid,
  16137. type: 15,
  16138. ttype:b[j].ttype,
  16139. time: b[j].time,
  16140. score: b[j].score,
  16141. img: b[j].img,
  16142. likesCount: likesCount,
  16143. commentCount: commentCount,
  16144. isLikes: isLikes,
  16145. commentJson: commentJson,
  16146. likeJson:likeJson
  16147. };
  16148. _worksStudent[i].push(_work);
  16149. _worksStudent2[i].push(_work);
  16150. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16151. }
  16152. }
  16153. }
  16154. if (_worksStudent[i] && _worksStudent[i].length) {
  16155. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16156. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16157. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16158. var scoreA = parseFloat(jscoreA);
  16159. var scoreB = parseFloat(jscoreB);
  16160. if (scoreA == scoreB) {
  16161. return b.likesCount - a.likesCount;
  16162. }
  16163. return scoreB - scoreA;
  16164. });
  16165. if (this.isGroup) {
  16166. for (
  16167. var groupI = 0;
  16168. groupI < this.courseGroup.group.length;
  16169. groupI++
  16170. ) {
  16171. this.courseGroup.group[groupI].works[i] =
  16172. this.courseGroup.group[groupI].works[i].sort(function (
  16173. a,
  16174. b
  16175. ) {
  16176. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16177. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16178. var scoreA = parseFloat(jscoreA);
  16179. var scoreB = parseFloat(jscoreB);
  16180. if (scoreA == scoreB) {
  16181. return b.likesCount - a.likesCount;
  16182. }
  16183. return scoreB - scoreA;
  16184. });
  16185. }
  16186. }
  16187. }
  16188. }
  16189. this.timeWorkList = _worksStudent2;
  16190. for (var i = 0; i < a.length; i++) {
  16191. for (var j = 0; j < b.length; j++) {
  16192. var data = b[j];
  16193. if (i == b[j].tool) {
  16194. if (data.type == 2 || data.type == 8) {
  16195. for (var z = 0; z < this.checkJson[i].length; z++) {
  16196. this.checkJson[i][z].checkPerent = [];
  16197. this.checkJson[i][z].right = Math.round(
  16198. (this.checkJson[i][z].rightPerson.length /
  16199. parseInt(_worksStudent[i].length)) *
  16200. 100
  16201. );
  16202. let aaaa = this.checkJson[i][z];
  16203. for (
  16204. var k = 0;
  16205. k < this.checkJson[i][z].checkCount.length;
  16206. k++
  16207. ) {
  16208. this.checkJson[i][z].checkPerent.push(
  16209. Math.round(
  16210. (this.checkJson[i][z].checkCount[k] /
  16211. parseInt(_worksStudent[i].length)) *
  16212. 100
  16213. )
  16214. );
  16215. }
  16216. }
  16217. } else if (data.type == 9) {
  16218. for (var z = 0; z < this.checkJson[i].length; z++) {
  16219. this.checkJson[i][z].checkPerent = [];
  16220. this.checkJson[i][z].right = Math.round(
  16221. (this.checkJson[i][z].rightPerson.length /
  16222. this.checkJson[i][z].checkPerson.length) *
  16223. 100
  16224. );
  16225. }
  16226. }
  16227. }
  16228. }
  16229. }
  16230. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16231. this.joinGroup(gindex);
  16232. }
  16233. this.worksStudent = _worksStudent;
  16234. this.selectWorksStudent();
  16235. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16236. this.$nextTick(()=>{
  16237. setTimeout(()=>{
  16238. setTimeout(()=>{
  16239. this.panToolHeight('tool-'+ci);
  16240. }, 500)
  16241. }, 0)
  16242. })
  16243. }
  16244. this.selectSWorksLoading = false
  16245. })
  16246. .catch((err) => {
  16247. this.selectSWorksLoading = false
  16248. console.error(err);
  16249. });
  16250. },
  16251. pngToWhiteBg(file) {
  16252. const _file = file;
  16253. let read = new FileReader();
  16254. read.readAsDataURL(file); // 文件转base64
  16255. return new Promise((resolve, reject) => {
  16256. read.onload = (e) => {
  16257. let img = new Image();
  16258. img.src = e.target.result;
  16259. img.onload = async () => {
  16260. // 生成canvas
  16261. let canvas = document.createElement("canvas");
  16262. let context = canvas.getContext("2d");
  16263. // 绘制图片到canvas上
  16264. canvas.width = img.width;
  16265. canvas.height = img.height;
  16266. // 在canvas绘制前填充白色背景
  16267. context.fillStyle = "#fff";
  16268. context.fillRect(0, 0, canvas.width, canvas.height);
  16269. context.drawImage(img, 0, 0);
  16270. let base64 = canvas.toDataURL(file["type"], 1);
  16271. let newFile = this.dataUrlToFile(base64, _file);
  16272. resolve(newFile);
  16273. };
  16274. };
  16275. });
  16276. },
  16277. dataUrlToFile(dataurl, file) {
  16278. let arr = dataurl.split(","),
  16279. mime = arr[0].match(/:(.*?);/)[1],
  16280. bstr = atob(arr[1]),
  16281. n = bstr.length,
  16282. u8arr = new Uint8Array(n);
  16283. while (n--) {
  16284. u8arr[n] = bstr.charCodeAt(n);
  16285. }
  16286. // return new Blob([u8arr], { type: mime });
  16287. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16288. type: mime,
  16289. });
  16290. },
  16291. async beforeUpload1(event, type, i) {
  16292. // this.$message.success('进入上传')
  16293. var file = "";
  16294. if (type == 5) {
  16295. file = event;
  16296. } else {
  16297. file = event.target.files[0];
  16298. }
  16299. var credentials = {
  16300. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16301. secretAccessKey: "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",
  16302. }; //秘钥形式的登录上传
  16303. window.AWS.config.update(credentials);
  16304. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16305. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16306. var _this = this;
  16307. _this.progress = 0;
  16308. _this.proVisible = true;
  16309. _this.isFinishSize = 0;
  16310. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16311. var b = [
  16312. "DOC",
  16313. "DOCX",
  16314. "DOCM",
  16315. "DOTM",
  16316. "DOTX",
  16317. "PPTX",
  16318. "PPSX",
  16319. "PPT",
  16320. "PPS",
  16321. "PPTM",
  16322. "POTM",
  16323. "PPAM",
  16324. "POTX",
  16325. "PPSM",
  16326. ];
  16327. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16328. var photoA = [
  16329. "BMP",
  16330. "GIF",
  16331. "PNG",
  16332. "JPEG",
  16333. "JPEG",
  16334. "JPG",
  16335. "TIF",
  16336. "PCX",
  16337. "TGA",
  16338. "EXIF",
  16339. "FPX",
  16340. "SVG",
  16341. "APNG",
  16342. ];
  16343. // if (
  16344. // b.indexOf(
  16345. // file.name
  16346. // .split(".")
  16347. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16348. // ) != -1
  16349. // ) {
  16350. // if (file.size / 1024 / 1024 > 10) {
  16351. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16352. // return;
  16353. // }
  16354. // } else if (
  16355. // excelA.indexOf(
  16356. // file.name
  16357. // .split(".")
  16358. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16359. // ) != "-1"
  16360. // ) {
  16361. // if (file.size / 1024 / 1024 > 5) {
  16362. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16363. // return;
  16364. // }
  16365. // }
  16366. if (
  16367. photoA.indexOf(
  16368. file.name
  16369. .split(".")
  16370. [file.name.split(".").length - 1].toLocaleUpperCase()
  16371. ) != -1 &&
  16372. type != 4
  16373. ) {
  16374. // const blob = await imageConversion.compress(file, 0.8)
  16375. file = await this.pngToWhiteBg(file);
  16376. const blob = await imageConversion.compressAccurately(file, 256);
  16377. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16378. file = new File([blob], file.name, { type: file.type });
  16379. }
  16380. if (file) {
  16381. var params = {
  16382. Key:
  16383. file.name.split(".")[0] +
  16384. new Date().getTime() +
  16385. "." +
  16386. file.name.split(".")[file.name.split(".").length - 1],
  16387. ContentType: file.type,
  16388. Body: file,
  16389. "Access-Control-Allow-Credentials": "*",
  16390. ACL: "public-read",
  16391. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16392. var options = {
  16393. // partSize: 2048 * 1024 * 1024,
  16394. partSize: 1024 * 1024 * 1024,
  16395. queueSize: 2,
  16396. leavePartsOnError: true,
  16397. };
  16398. bucket
  16399. .upload(params, options)
  16400. .on("httpUploadProgress", function (evt) {
  16401. //这里可以写进度条
  16402. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16403. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16404. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16405. })
  16406. .send(function (err, data) {
  16407. _this.progress = 100;
  16408. _this.isFinishSize = _this.isAllSize;
  16409. setTimeout(() => {
  16410. _this.proVisible = false;
  16411. }, 1000);
  16412. if (err) {
  16413. var a = _this.$refs.upload1.uploadFiles;
  16414. a.splice(a.length - 1, a.length);
  16415. _this.$message.error("上传失败");
  16416. } else {
  16417. // _this.$message.success('上传成功')
  16418. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16419. var c = [
  16420. "AVI",
  16421. "NAVI",
  16422. "MPEG",
  16423. "ASF",
  16424. "MOV",
  16425. "WMV",
  16426. "3GP",
  16427. "RM",
  16428. "RMVB",
  16429. "FLV",
  16430. "F4V",
  16431. "H.264",
  16432. "H.265",
  16433. "REAL VIDEO",
  16434. "MKV",
  16435. "WebM",
  16436. "HDDVD",
  16437. "MP4",
  16438. "MPG",
  16439. "M4V",
  16440. "MGV",
  16441. "OGV",
  16442. "QTM",
  16443. "STR",
  16444. "AMC",
  16445. "DVX",
  16446. "EVO",
  16447. "DAT",
  16448. "OGG",
  16449. "OGM",
  16450. ];
  16451. if (type == 1) {
  16452. _this.studyJuri[0].cover.push({
  16453. name: file.name,
  16454. url: data.Location,
  16455. uid: file.uid,
  16456. });
  16457. if (
  16458. c.indexOf(
  16459. _this.studyJuri[0].cover[0].url
  16460. .split(".")
  16461. [
  16462. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16463. ].toLocaleUpperCase()
  16464. ) != -1
  16465. ) {
  16466. _this.fileType = 2;
  16467. } else if (
  16468. b.indexOf(
  16469. _this.studyJuri[0].cover[0].url
  16470. .split(".")
  16471. [
  16472. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16473. ].toLocaleUpperCase()
  16474. ) != -1
  16475. ) {
  16476. _this.fileType = 1;
  16477. } else if (
  16478. photoA.indexOf(
  16479. _this.studyJuri[0].cover[0].url
  16480. .split(".")
  16481. [
  16482. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16483. ].toLocaleUpperCase()
  16484. ) != -1
  16485. ) {
  16486. _this.fileType = 0;
  16487. } else {
  16488. _this.fileType = 3;
  16489. }
  16490. _this.imgChange(null, null, type);
  16491. } else if (type == 2) {
  16492. _this.upToolImg = data.Location;
  16493. _this.imgChange(null, null, type);
  16494. _this.addCourseWorks(i);
  16495. } else if (type == 4) {
  16496. _this.addPz("3", data.Location);
  16497. } else if (type == 5) {
  16498. _this.addImgDrawImG(data.Location);
  16499. } else if (type == 6) {
  16500. var _ftype = 1;
  16501. if (
  16502. c.indexOf(
  16503. data.Location.split(".")[
  16504. data.Location.split(".").length - 1
  16505. ].toLocaleUpperCase()
  16506. ) != -1
  16507. ) {
  16508. _ftype = 5;
  16509. } else if (
  16510. b.indexOf(
  16511. data.Location.split(".")[
  16512. data.Location.split(".").length - 1
  16513. ].toLocaleUpperCase()
  16514. ) != -1
  16515. ) {
  16516. _ftype = 4;
  16517. } else {
  16518. _ftype = 1;
  16519. }
  16520. _this.plworkFile.push({
  16521. name: file.name,
  16522. url: data.Location,
  16523. uid: file.uid,
  16524. fileType: _ftype,
  16525. username:
  16526. _this.plworkFile.length > 10
  16527. ? _this.plworkFile.length + 1
  16528. : "0" + (_this.plworkFile.length + 1),
  16529. });
  16530. } else if (type == 7) {
  16531. _this.addCourseWorksGong(i, data.Location, 32);
  16532. } else if (type == 8) {
  16533. _this.addCourseWorksGong(i, data.Location, 57);
  16534. }
  16535. _this.imgChange(null, null, type);
  16536. console.log(data.Location);
  16537. // _this.$message.success('上传成功'+data.Location)
  16538. }
  16539. });
  16540. }
  16541. },
  16542. async beforeUpload3(event, type, i) {
  16543. // this.$message.success('进入上传')
  16544. let file = "";
  16545. let cfindex2 = 0;
  16546. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16547. file = event.target.files[cfindex];
  16548. var credentials = {
  16549. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16550. secretAccessKey: "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",
  16551. }; //秘钥形式的登录上传
  16552. window.AWS.config.update(credentials);
  16553. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16554. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16555. var _this = this;
  16556. // _this.progress = 0;
  16557. _this.proVisible2 = true;
  16558. var b = [
  16559. "DOC",
  16560. "DOCX",
  16561. "DOCM",
  16562. "DOTM",
  16563. "DOTX",
  16564. "PPTX",
  16565. "PPSX",
  16566. "PPT",
  16567. "PPS",
  16568. "PPTM",
  16569. "POTM",
  16570. "PPAM",
  16571. "POTX",
  16572. "PPSM",
  16573. ];
  16574. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16575. var photoA = [
  16576. "BMP",
  16577. "GIF",
  16578. "PNG",
  16579. "JPEG",
  16580. "JPG",
  16581. "TIF",
  16582. "PCX",
  16583. "TGA",
  16584. "EXIF",
  16585. "FPX",
  16586. "SVG",
  16587. "APNG",
  16588. ];
  16589. if (
  16590. photoA.indexOf(
  16591. file.name
  16592. .split(".")
  16593. [file.name.split(".").length - 1].toLocaleUpperCase()
  16594. ) != -1 &&
  16595. type != 4
  16596. ) {
  16597. // const blob = await imageConversion.compress(file, 0.8)
  16598. file = await this.pngToWhiteBg(file);
  16599. const blob = await imageConversion.compressAccurately(file, 256);
  16600. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16601. file = new File([blob], file.name, { type: file.type });
  16602. }
  16603. if (file) {
  16604. var params = {
  16605. Key:
  16606. file.name.split(".")[0] +
  16607. new Date().getTime() +
  16608. "." +
  16609. file.name.split(".")[file.name.split(".").length - 1],
  16610. ContentType: file.type,
  16611. Body: file,
  16612. "Access-Control-Allow-Credentials": "*",
  16613. ACL: "public-read",
  16614. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16615. var options = {
  16616. // partSize: 2048 * 1024 * 1024,
  16617. partSize: 1024 * 1024 * 1024,
  16618. queueSize: 2,
  16619. leavePartsOnError: true,
  16620. };
  16621. bucket
  16622. .upload(params, options)
  16623. .on("httpUploadProgress", function (evt) {
  16624. //这里可以写进度条
  16625. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16626. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16627. })
  16628. .send(function (err, data) {
  16629. // _this.progress = 100;
  16630. cfindex2++;
  16631. setTimeout(() => {
  16632. if (
  16633. cfindex2 == event.target.files.length - 1 ||
  16634. cfindex2 > event.target.files.length - 1
  16635. ) {
  16636. _this.proVisible2 = false;
  16637. }
  16638. }, 1000);
  16639. if (err) {
  16640. var a = _this.$refs.upload1.uploadFiles;
  16641. a.splice(a.length - 1, a.length);
  16642. _this.$message.error("上传失败");
  16643. } else {
  16644. // _this.$message.success('上传成功')
  16645. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16646. var c = [
  16647. "AVI",
  16648. "NAVI",
  16649. "MPEG",
  16650. "ASF",
  16651. "MOV",
  16652. "WMV",
  16653. "3GP",
  16654. "RM",
  16655. "RMVB",
  16656. "FLV",
  16657. "F4V",
  16658. "H.264",
  16659. "H.265",
  16660. "REAL VIDEO",
  16661. "MKV",
  16662. "WebM",
  16663. "HDDVD",
  16664. "MP4",
  16665. "MPG",
  16666. "M4V",
  16667. "MGV",
  16668. "OGV",
  16669. "QTM",
  16670. "STR",
  16671. "AMC",
  16672. "DVX",
  16673. "EVO",
  16674. "DAT",
  16675. "OGG",
  16676. "OGM",
  16677. ];
  16678. if (type == 1) {
  16679. _this.studyJuri[0].cover.push({
  16680. name: file.name,
  16681. url: data.Location,
  16682. uid: file.uid,
  16683. });
  16684. if (
  16685. c.indexOf(
  16686. _this.studyJuri[0].cover[0].url
  16687. .split(".")
  16688. [
  16689. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16690. ].toLocaleUpperCase()
  16691. ) != -1
  16692. ) {
  16693. _this.fileType = 2;
  16694. } else if (
  16695. b.indexOf(
  16696. _this.studyJuri[0].cover[0].url
  16697. .split(".")
  16698. [
  16699. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16700. ].toLocaleUpperCase()
  16701. ) != -1
  16702. ) {
  16703. _this.fileType = 1;
  16704. } else {
  16705. _this.fileType = 0;
  16706. }
  16707. _this.imgChange(null, null, type);
  16708. } else if (type == 2) {
  16709. _this.upToolImg = data.Location;
  16710. _this.imgChange(null, null, type);
  16711. _this.addCourseWorks(i);
  16712. } else if (type == 4) {
  16713. _this.addPz("3", data.Location);
  16714. } else if (type == 5) {
  16715. _this.addImgDrawImG(data.Location);
  16716. } else if (type == 6) {
  16717. var _ftype = 1;
  16718. if (
  16719. c.indexOf(
  16720. data.Location.split(".")[
  16721. data.Location.split(".").length - 1
  16722. ].toLocaleUpperCase()
  16723. ) != -1
  16724. ) {
  16725. _ftype = 5;
  16726. } else if (
  16727. b.indexOf(
  16728. data.Location.split(".")[
  16729. data.Location.split(".").length - 1
  16730. ].toLocaleUpperCase()
  16731. ) != -1
  16732. ) {
  16733. _ftype = 4;
  16734. } else {
  16735. _ftype = 1;
  16736. }
  16737. _this.plworkFile.push({
  16738. name: file.name,
  16739. url: data.Location,
  16740. uid: file.uid,
  16741. fileType: _ftype,
  16742. username:
  16743. _this.plworkFile.length + 1 > 9
  16744. ? _this.plworkFile.length + 1
  16745. : "0" + (_this.plworkFile.length + 1),
  16746. });
  16747. }
  16748. _this.imgChange(null, null, type);
  16749. console.log(data.Location);
  16750. // _this.$message.success('上传成功'+data.Location)
  16751. }
  16752. });
  16753. }
  16754. }
  16755. },
  16756. beforeUpload2(event, type) {
  16757. var file = event.target.files[0];
  16758. var credentials = {
  16759. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16760. secretAccessKey: "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",
  16761. }; //秘钥形式的登录上传
  16762. window.AWS.config.update(credentials);
  16763. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16764. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16765. var _this = this;
  16766. _this.progress = 0;
  16767. _this.proVisible = true;
  16768. if (file) {
  16769. var params = {
  16770. Key:
  16771. file.name.split(".")[0] +
  16772. new Date().getTime() +
  16773. "." +
  16774. file.name.split(".")[file.name.split(".").length - 1],
  16775. ContentType: file.type,
  16776. Body: file,
  16777. "Access-Control-Allow-Credentials": "*",
  16778. ACL: "public-read",
  16779. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16780. var options = {
  16781. partSize: 2048 * 1024 * 1024,
  16782. queueSize: 2,
  16783. leavePartsOnError: true,
  16784. };
  16785. bucket
  16786. .upload(params, options)
  16787. .on("httpUploadProgress", function (evt) {
  16788. //这里可以写进度条
  16789. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16790. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16791. })
  16792. .send(function (err, data) {
  16793. _this.progress = 100;
  16794. setTimeout(() => {
  16795. _this.proVisible = false;
  16796. }, 1000);
  16797. if (err) {
  16798. var a = _this.$refs.upload1.uploadFiles;
  16799. a.splice(a.length - 1, a.length);
  16800. _this.$message.error("上传失败");
  16801. } else {
  16802. if (type == 2) {
  16803. _this.studyJuri[0].upVedio.push({
  16804. name: file.name,
  16805. url: data.Location,
  16806. uid: file.uid,
  16807. });
  16808. _this.imgChange(null, null, type);
  16809. } else if (type == 3) {
  16810. _this.studyJuri[0].upFile.push({
  16811. name: file.name,
  16812. url: data.Location,
  16813. uid: file.uid,
  16814. });
  16815. _this.imgChange(null, null, type);
  16816. }
  16817. console.log(data.Location);
  16818. }
  16819. });
  16820. }
  16821. },
  16822. allScrell() {
  16823. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16824. },
  16825. nextOrpreSteps(t) {
  16826. if (this.IsFollow && this.tType == 2) {
  16827. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16828. return;
  16829. }
  16830. var b = this.chapInfoList.length - 1;
  16831. if (t == 0) {
  16832. if (this.courseType == 0) {
  16833. if (this.taskCount == 0) {
  16834. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16835. if (this.IsLookOpen) {
  16836. if (
  16837. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16838. ) {
  16839. if (
  16840. this.courseDetail.userid != this.userid &&
  16841. (!this.courseDetail.course_teacher ||
  16842. (this.courseDetail.course_teacher &&
  16843. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16844. ) {
  16845. this.$message.error("任务未解锁");
  16846. } else {
  16847. this.$message.error("上一任务未解锁");
  16848. }
  16849. return;
  16850. }
  16851. }
  16852. this.navList[this.courseType].isOpen = false;
  16853. this.courseType = b;
  16854. this.taskCount =
  16855. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16856. .length - 1;
  16857. this.navList[this.courseType].isOpen = true;
  16858. } else {
  16859. this.taskCount--;
  16860. }
  16861. } else {
  16862. if (this.taskCount == 0) {
  16863. this.navList[this.courseType].isOpen = false;
  16864. this.courseType--;
  16865. this.taskCount =
  16866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16867. .length - 1;
  16868. this.navList[this.courseType].isOpen = true;
  16869. } else {
  16870. this.taskCount--;
  16871. }
  16872. }
  16873. } else {
  16874. if (this.courseType == b) {
  16875. if (
  16876. this.taskCount ==
  16877. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16878. 1
  16879. ) {
  16880. this.navList[this.courseType].isOpen = false;
  16881. this.courseType = 0;
  16882. this.taskCount = 0;
  16883. this.navList[this.courseType].isOpen = true;
  16884. } else {
  16885. var bbb = parseInt(this.taskCount) + 1;
  16886. if (
  16887. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16888. .isLook &&
  16889. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16890. (this.courseDetail.course_teacher &&
  16891. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16892. this.IsLookOpen
  16893. ) {
  16894. this.$message.error("任务未解锁");
  16895. return;
  16896. }
  16897. this.taskCount++;
  16898. if (this.IsLookOpen) {
  16899. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16900. this.taskCount
  16901. ].isLook = true;
  16902. this.addCourseState(3);
  16903. }
  16904. }
  16905. } else {
  16906. if (
  16907. this.taskCount ==
  16908. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16909. 1
  16910. ) {
  16911. var bbb = parseInt(this.courseType) + 1;
  16912. if (
  16913. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16914. this.courseDetail.userid != this.userid &&
  16915. (!this.courseDetail.course_teacher ||
  16916. (this.courseDetail.course_teacher &&
  16917. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16918. this.IsLookOpen
  16919. ) {
  16920. this.$message.error("任务未解锁");
  16921. return;
  16922. }
  16923. this.navList[this.courseType].isOpen = false;
  16924. this.courseType++;
  16925. this.taskCount = 0;
  16926. this.navList[this.courseType].isOpen = true;
  16927. } else {
  16928. var bbb = parseInt(this.taskCount) + 1;
  16929. if (
  16930. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16931. .isLook &&
  16932. this.courseDetail.userid != this.userid &&
  16933. (!this.courseDetail.course_teacher ||
  16934. (this.courseDetail.course_teacher &&
  16935. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16936. this.IsLookOpen
  16937. ) {
  16938. this.$message.error("任务未解锁");
  16939. return;
  16940. }
  16941. this.taskCount++;
  16942. }
  16943. if (this.IsLookOpen) {
  16944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16945. this.taskCount
  16946. ].isLook = true;
  16947. this.addCourseState(3);
  16948. }
  16949. }
  16950. // if (
  16951. // this.taskCount ==
  16952. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16953. // ) {
  16954. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16955. // } else {
  16956. // this.taskCount++;
  16957. // }
  16958. }
  16959. document.scrollingElement.scrollTop = 0;
  16960. this.showType = 7;
  16961. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16962. // if (this.vedio[this.taskCount].length > 0) {
  16963. // var a =
  16964. // document.getElementsByClassName("box_course")[this.taskCount]
  16965. // .offsetHeight;
  16966. // document.getElementsByClassName("vedioList")[
  16967. // this.taskCount
  16968. // ].style.height = a + "px";
  16969. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16970. // a - 40 + "px";
  16971. // }
  16972. this.isNoHomeWork = false;
  16973. (this.studyJuri = [
  16974. {
  16975. content: "",
  16976. cover: [],
  16977. upVedio: [],
  16978. upFile: [],
  16979. },
  16980. ]),
  16981. (this.radio = []);
  16982. this.isClickNav = "";
  16983. this.selectPz();
  16984. this.getHomeWork();
  16985. this.getCourseDetail(2);
  16986. this.$forceUpdate();
  16987. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16988. this.setCTask();
  16989. }
  16990. },
  16991. openTask(s, n, i,ctype) {
  16992. if (this.IsFollow && this.tType == 2) {
  16993. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16994. return;
  16995. }
  16996. if (this.IsLookOpen &&
  16997. this.courseDetail.userid != this.userid &&
  16998. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16999. if (
  17000. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17001. this.courseDetail.userid != this.userid &&
  17002. (!this.courseDetail.course_teacher ||
  17003. (this.courseDetail.course_teacher &&
  17004. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17005. ) {
  17006. this.$message.error("任务未解锁");
  17007. return;
  17008. }
  17009. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17010. if (
  17011. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17012. .isLook
  17013. ) {
  17014. this.$message.error("上一任务未解锁");
  17015. return;
  17016. }
  17017. } else if (s > this.courseType) {
  17018. if (n > 0) {
  17019. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17020. this.$message.error("上一任务未解锁");
  17021. return;
  17022. }
  17023. } else {
  17024. if (
  17025. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17026. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17027. ].isLook
  17028. ) {
  17029. this.$message.error("上一任务未解锁");
  17030. return;
  17031. }
  17032. }
  17033. }
  17034. }
  17035. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  17036. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17037. return;
  17038. }
  17039. let flag = this.courseType==s;
  17040. this.courseType = s;
  17041. this.navId = i;
  17042. this.taskCount = n;
  17043. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17044. if(ctype == 2){
  17045. this.navList[s].task[n].isOpen = true
  17046. }else{
  17047. this.navList[this.courseType].task[this.taskCount].isOpen =
  17048. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17049. }
  17050. if (this.IsLookOpen) {
  17051. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17052. this.taskCount
  17053. ].isLook = true;
  17054. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17055. this.addCourseState(3,yym);
  17056. }
  17057. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17058. this.isCloseList[ci].isClose = 0;
  17059. this.isCloseList[ci].isCloseBoolean = false;
  17060. this.$nextTick(()=>{
  17061. setTimeout(()=>{
  17062. setTimeout(()=>{
  17063. this.panToolHeight('tool-'+ci);
  17064. }, 0)
  17065. }, 0)
  17066. })
  17067. }
  17068. this.showType = 0;
  17069. this.isNoHomeWork = false;
  17070. (this.studyJuri = [
  17071. {
  17072. content: "",
  17073. cover: [],
  17074. upVedio: [],
  17075. upFile: [],
  17076. },
  17077. ]),
  17078. (this.radio = []);
  17079. document.scrollingElement.scrollTop = 0;
  17080. // setTimeout(() => {
  17081. // let a = document.getElementById(i);
  17082. // if (a.offsetTop - 110 == 0) {
  17083. // window.scrollTo(0, 0);
  17084. // } else {
  17085. // window.scrollTo(0, a.offsetTop);
  17086. // }
  17087. // }, 0);
  17088. for (var z = 0; z < this.navList.length; z++) {
  17089. for (var q = 0; q < this.navList[z].task.length; q++) {
  17090. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17091. this.navList[z].task[q].tool[w].isTool = false;
  17092. }
  17093. }
  17094. }
  17095. this.selectPz();
  17096. this.getHomeWork();
  17097. this.getCourseDetail(2);
  17098. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17099. this.setCTask();
  17100. }
  17101. if(flag){
  17102. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17103. }else{
  17104. 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>`)
  17105. }
  17106. },
  17107. get(i) {
  17108. if (this.IsFollow && this.tType == 2) {
  17109. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17110. return;
  17111. }
  17112. // for(var k=0;k<this.navList.length;k++){
  17113. // this.navList[k].isOpen = false;
  17114. // }
  17115. // this.navList[i].isOpen = true;
  17116. let a = this.navList[i].isOpen
  17117. this.navList[i].isOpen = !this.navList[i].isOpen;
  17118. this.$forceUpdate()
  17119. if (this.navList[i].isOpen) {
  17120. this.openTask(i, 0, (i + "-0"),2);
  17121. }
  17122. },
  17123. addQuestion() {
  17124. this.answerList.push({
  17125. answerTitle: this.answerQ,
  17126. answer: this.questionAnswer,
  17127. });
  17128. let params = [
  17129. {
  17130. uid: this.userid,
  17131. cid: this.id,
  17132. stage: this.courseType,
  17133. task: this.taskCount,
  17134. tool: this.toolindex,
  17135. content: JSON.stringify(this.answerList),
  17136. type: 3,
  17137. },
  17138. ];
  17139. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17140. this.homeWorkLoading = true
  17141. this.ajax
  17142. .post(this.$store.state.api + "addCourseWorks", params)
  17143. .then((res) => {
  17144. this.$message({
  17145. message: "提交成功",
  17146. type: "success",
  17147. });
  17148. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17149. setTimeout(() => {
  17150. this.homeWorkLoading = false
  17151. }, 500);
  17152. this.answerList = [];
  17153. this.answerDialogVisible = false;
  17154. this.selectStudent();
  17155. this.selectSWorks();
  17156. this.selectSLook();
  17157. })
  17158. .catch((err) => {
  17159. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17160. setTimeout(() => {
  17161. this.homeWorkLoading = false
  17162. }, 500);
  17163. this.$message.error("提交失败");
  17164. console.error(err);
  17165. });
  17166. },
  17167. addQuestionTeacher() {
  17168. this.answerList.push({
  17169. answerTitle: this.answerQ,
  17170. answer: this.questionAnswer,
  17171. });
  17172. let params = [
  17173. {
  17174. uid: this.sStudent.userid,
  17175. cid: this.id,
  17176. stage: this.courseType,
  17177. task: this.taskCount,
  17178. tool: this.toolindex,
  17179. content: JSON.stringify(this.answerList),
  17180. type: 3,
  17181. ateacher: this.userid,
  17182. },
  17183. ];
  17184. this.ajax
  17185. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17186. .then((res) => {
  17187. this.$message({
  17188. message: "提交成功",
  17189. type: "success",
  17190. });
  17191. this.answerList = [];
  17192. this.questionAnswer = "";
  17193. this.answerDialogVisibleTeacher = false;
  17194. this.selectStudent();
  17195. this.selectSWorks();
  17196. this.selectSLook();
  17197. })
  17198. .catch((err) => {
  17199. this.$message.error("提交失败");
  17200. console.error(err);
  17201. });
  17202. },
  17203. refreshCourse() {
  17204. // window.location.reload();
  17205. this.navList = [];
  17206. this.getCourseDetail(1);
  17207. },
  17208. getCourseDetail(type, gindex) {
  17209. let loading;
  17210. if (type != 2) {
  17211. loading = this.$loading.service({
  17212. background: "rgba(255, 255, 255, 0.7)",
  17213. target: document.querySelector(".student_table"),
  17214. });
  17215. }
  17216. this.downLoading = false
  17217. // this.navList[0].isOpen = false;
  17218. // this.navList[this.courseType].isOpen = true;
  17219. // this.courseType = this.courseTypeLine;
  17220. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17221. let params = {
  17222. courseId: this.id,
  17223. };
  17224. this.ajax
  17225. .get(this.$store.state.api + "selectCourseDetail3", params)
  17226. .then((res) => {
  17227. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17228. if (type != 2) {
  17229. loading.close();
  17230. if (
  17231. this.courseType >
  17232. JSON.parse(res.data[0][0].chapters).length - 1
  17233. ) {
  17234. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17235. }
  17236. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17237. .chapterInfo[0].taskJson;
  17238. var b = [
  17239. "AVI",
  17240. "NAVI",
  17241. "MPEG",
  17242. "ASF",
  17243. "MOV",
  17244. "WMV",
  17245. "3GP",
  17246. "RM",
  17247. "RMVB",
  17248. "FLV",
  17249. "F4V",
  17250. "H.264",
  17251. "H.265",
  17252. "REAL VIDEO",
  17253. "MKV",
  17254. "WebM",
  17255. "HDDVD",
  17256. "MP4",
  17257. "MPG",
  17258. "M4V",
  17259. "MGV",
  17260. "OGV",
  17261. "QTM",
  17262. "STR",
  17263. "AMC",
  17264. "DVX",
  17265. "EVO",
  17266. "DAT",
  17267. "OGG",
  17268. "OGM",
  17269. "MP3",
  17270. ];
  17271. let _chapterData = [];
  17272. for (var i = 0; i < a.length; i++) {
  17273. var c = a[i].chapterData;
  17274. this.vedio[i] = [];
  17275. this.textList[i] = [];
  17276. this.lineList[i] = [];
  17277. this.chapToolList[i] = [];
  17278. this.file[i] = [];
  17279. this.fileC[i] = [];
  17280. _chapterData[i] = c.filter((el) => {
  17281. return el.type != 12;
  17282. });
  17283. this.fileC[i] = c.filter((el) => {
  17284. return el.type == 12;
  17285. });
  17286. if (this.tType == 2) {
  17287. if (this.fileC[i].length) {
  17288. let yym1 = this.fileC[i].filter(e=>{
  17289. if(!converter(e.name).includes(converter("教案"))){
  17290. return e
  17291. }
  17292. })
  17293. this.fileC[i] = yym1
  17294. }
  17295. }
  17296. // else if (c[j].type == 12) {
  17297. // this.fileC[i].push(c[j]);
  17298. // }
  17299. for (var j = 0; j < c.length; j++) {
  17300. if (c[j].type == 7) {
  17301. this.chapToolList[i].push(c[j]);
  17302. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17303. this.lineList[i].push(c[j]);
  17304. } else if (c[j].type == 6) {
  17305. this.textList[i].push(c[j]);
  17306. } else {
  17307. if (
  17308. b.indexOf(
  17309. c[j].url
  17310. .split(".")
  17311. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17312. ) != -1
  17313. ) {
  17314. this.vedio[i].push(c[j]);
  17315. } else {
  17316. this.file[i].push(c[j]);
  17317. }
  17318. }
  17319. }
  17320. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17321. d.sources[0].src =
  17322. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17323. this.playerO[i] = d;
  17324. }
  17325. this.courseDetail = res.data[0][0];
  17326. if(this.tType == 2){
  17327. this.tcid = this.arrayToArray(
  17328. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17329. this.classId ? this.classId.split(",") : []
  17330. ).join(",");
  17331. }else{
  17332. this.tcid = this.arrayToArray(
  17333. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17334. this.tcid2 ? this.tcid2.split(",") : []
  17335. ).join(",");
  17336. }
  17337. this.evalua = res.data[0][0].evaId;
  17338. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17339. this.courseType
  17340. ];
  17341. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17342. if (this.tcid && res.data[1].length) {
  17343. let _inviteA = [];
  17344. for (var ik = 0; ik < res.data[1].length; ik++) {
  17345. _inviteA.push({
  17346. cid: res.data[1][ik].classid,
  17347. ic: res.data[1][ik].code,
  17348. });
  17349. }
  17350. for (var ik = 0; ik < _inviteA.length; ik++) {
  17351. if (
  17352. this.arrayToArray(
  17353. _inviteA[ik].cid.split(","),
  17354. this.tcid.split(",")
  17355. ).length
  17356. ) {
  17357. this.inviteCode = _inviteA[ik].ic;
  17358. break;
  17359. }
  17360. }
  17361. }
  17362. for (var l = 0; l < this.chapInfoList.length; l++) {
  17363. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17364. for (var m = 0; m < w.length; m++) {
  17365. w[m].id = l + "-" + m;
  17366. }
  17367. }
  17368. if (
  17369. _chapterData[this.taskCount].length &&
  17370. _chapterData[this.taskCount][0].type == 2
  17371. ) {
  17372. this.showType = 0;
  17373. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17374. } else {
  17375. if (_chapterData[this.taskCount].length > 0) {
  17376. let _url = _chapterData[this.taskCount][0].url;
  17377. if (
  17378. _chapterData[this.taskCount][0].type == 8 ||
  17379. _chapterData[this.taskCount][0].type == 14 ||
  17380. _chapterData[this.taskCount][0].type == 15
  17381. ) {
  17382. this.showType = 2;
  17383. if (
  17384. _url.indexOf("https://") == -1 &&
  17385. _url.indexOf("http://") == -1
  17386. ) {
  17387. _url = "https://" + _url;
  17388. }
  17389. this.pptImgUrl1 = _url;
  17390. } else if (_chapterData[this.taskCount][0].type == 3) {
  17391. if (
  17392. _url
  17393. .split(".")
  17394. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17395. ) {
  17396. this.showType = 3;
  17397. this.pptImgUrl1 = _url;
  17398. } else if (
  17399. this.isAssetTypeAnImage(
  17400. _url
  17401. .split(".")
  17402. [_url.split(".").length - 1].toLocaleLowerCase()
  17403. )
  17404. ) {
  17405. this.showType = 4;
  17406. this.pptImgUrl1 = _url;
  17407. } else {
  17408. this.showType = 2;
  17409. this.pptImgUrl1 =
  17410. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17411. encodeURIComponent(_url);
  17412. }
  17413. } else if (_chapterData[this.taskCount][0].type == 13) {
  17414. this.showType = 4;
  17415. this.pptImgUrl1 = _url;
  17416. } else if (_chapterData[this.taskCount][0].type == 6) {
  17417. this.showType = 1;
  17418. this.text = this.textList[this.taskCount][0];
  17419. } else if (_chapterData[this.taskCount][0].type == 16) {
  17420. this.showType = 16;
  17421. this.pptImgUrl1 = _url;
  17422. } else if (_chapterData[this.taskCount][0].type == 17) {
  17423. this.showType = 16;
  17424. this.pptImgUrl1 = _url;
  17425. }
  17426. }
  17427. }
  17428. this.isClickNav = 0;
  17429. if (
  17430. !_chapterData[this.taskCount].length ||
  17431. _chapterData[this.taskCount][0].type == 12
  17432. ) {
  17433. this.isClickNav = "";
  17434. this.showType = "";
  17435. }
  17436. if (this.tType == 2) {
  17437. _chapterData.forEach((e,i)=>{
  17438. if (e.length) {
  17439. let yym = e.filter(k=>{
  17440. if(!converter(k.name).includes(converter("教案"))){
  17441. return k
  17442. }
  17443. })
  17444. _chapterData[i] = yym
  17445. }
  17446. })
  17447. }
  17448. this.vChapterData = _chapterData;
  17449. } else {
  17450. this.showType = 0;
  17451. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17452. .chapterInfo[0].taskJson;
  17453. var b = [
  17454. "AVI",
  17455. "NAVI",
  17456. "MPEG",
  17457. "ASF",
  17458. "MOV",
  17459. "WMV",
  17460. "3GP",
  17461. "RM",
  17462. "RMVB",
  17463. "FLV",
  17464. "F4V",
  17465. "H.264",
  17466. "H.265",
  17467. "REAL VIDEO",
  17468. "MKV",
  17469. "WebM",
  17470. "HDDVD",
  17471. "MP4",
  17472. "MPG",
  17473. "M4V",
  17474. "MGV",
  17475. "OGV",
  17476. "QTM",
  17477. "STR",
  17478. "AMC",
  17479. "DVX",
  17480. "EVO",
  17481. "DAT",
  17482. "OGG",
  17483. "OGM",
  17484. "MP3",
  17485. ];
  17486. let _chapterData = [];
  17487. for (var i = 0; i < a.length; i++) {
  17488. var c = a[i].chapterData;
  17489. this.vedio[i] = [];
  17490. this.textList[i] = [];
  17491. this.lineList[i] = [];
  17492. this.chapToolList[i] = [];
  17493. this.file[i] = [];
  17494. this.fileC[i] = [];
  17495. _chapterData[i] = c.filter((el) => {
  17496. return el.type != 12;
  17497. });
  17498. this.fileC[i] = c.filter((el) => {
  17499. return el.type == 12;
  17500. });
  17501. if (this.tType == 2) {
  17502. if (this.fileC[i].length) {
  17503. let yym1 = this.fileC[i].filter(e=>{
  17504. if(!converter(e.name).includes(converter("教案"))){
  17505. return e
  17506. }
  17507. })
  17508. this.fileC[i] = yym1
  17509. }
  17510. }
  17511. for (var j = 0; j < c.length; j++) {
  17512. if (c[j].type == 7) {
  17513. this.chapToolList[i].push(c[j]);
  17514. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17515. this.lineList[i].push(c[j]);
  17516. } else if (c[j].type == 6) {
  17517. this.textList[i].push(c[j]);
  17518. } else {
  17519. if (
  17520. b.indexOf(
  17521. c[j].url
  17522. .split(".")
  17523. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17524. ) != -1
  17525. ) {
  17526. this.vedio[i].push(c[j]);
  17527. } else {
  17528. this.file[i].push(c[j]);
  17529. }
  17530. }
  17531. }
  17532. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17533. d.sources[0].src =
  17534. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17535. this.playerO[i] = d;
  17536. }
  17537. if (
  17538. _chapterData[this.taskCount].length &&
  17539. _chapterData[this.taskCount][0].type == 2
  17540. ) {
  17541. this.showType = 0;
  17542. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17543. } else {
  17544. if (_chapterData[this.taskCount].length > 0) {
  17545. let _url = _chapterData[this.taskCount][0].url;
  17546. if (
  17547. _chapterData[this.taskCount][0].type == 8 ||
  17548. _chapterData[this.taskCount][0].type == 14 ||
  17549. _chapterData[this.taskCount][0].type == 15
  17550. ) {
  17551. this.showType = 2;
  17552. if (
  17553. _url.indexOf("https://") == -1 &&
  17554. _url.indexOf("http://") == -1
  17555. ) {
  17556. _url = "https://" + _url;
  17557. }
  17558. this.pptImgUrl1 = _url;
  17559. } else if (_chapterData[this.taskCount][0].type == 3) {
  17560. if (
  17561. _url
  17562. .split(".")
  17563. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17564. ) {
  17565. this.showType = 3;
  17566. this.pptImgUrl1 = _url;
  17567. } else if (
  17568. this.isAssetTypeAnImage(
  17569. _url
  17570. .split(".")
  17571. [_url.split(".").length - 1].toLocaleLowerCase()
  17572. )
  17573. ) {
  17574. this.showType = 4;
  17575. this.pptImgUrl1 = _url;
  17576. } else {
  17577. this.showType = 2;
  17578. this.pptImgUrl1 =
  17579. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17580. encodeURIComponent(_url);
  17581. }
  17582. } else if (_chapterData[this.taskCount][0].type == 13) {
  17583. this.showType = 4;
  17584. this.pptImgUrl1 = _url;
  17585. } else if (_chapterData[this.taskCount][0].type == 6) {
  17586. this.showType = 1;
  17587. this.text = this.textList[this.taskCount][0];
  17588. } else if (_chapterData[this.taskCount][0].type == 16) {
  17589. this.showType = 16;
  17590. this.pptImgUrl1 = _url;
  17591. } else if (_chapterData[this.taskCount][0].type == 17) {
  17592. this.showType = 16;
  17593. this.pptImgUrl1 = _url;
  17594. }
  17595. }
  17596. }
  17597. this.isClickNav = 0;
  17598. if (
  17599. !_chapterData[this.taskCount].length ||
  17600. _chapterData[this.taskCount][0].type == 12
  17601. ) {
  17602. this.isClickNav = "";
  17603. this.showType = "";
  17604. }
  17605. console.log('_chapterData66666',_chapterData);
  17606. if (this.tType == 2) {
  17607. _chapterData.forEach((e,i)=>{
  17608. if (e.length) {
  17609. let yym = e.filter(k=>{
  17610. if(!converter(k.name).includes(converter("教案"))){
  17611. return k
  17612. }
  17613. })
  17614. _chapterData[i] = yym
  17615. }
  17616. })
  17617. }
  17618. this.vChapterData = _chapterData;
  17619. this.$forceUpdate();
  17620. }
  17621. // else {
  17622. // this.courseDetail = res.data[0][0];
  17623. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17624. // }
  17625. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17626. if (type == 10) {
  17627. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17628. console.log('this.userid',this.userid);
  17629. if (this.courseDetail.userid == this.userid) {
  17630. // 开局关闭学生查看内容
  17631. this.StulookMode(true)
  17632. // 开局打开跟随模式
  17633. this.followingMode(true)
  17634. }
  17635. }
  17636. let _this = this;
  17637. if (_this.timer) {
  17638. clearInterval(_this.timer);
  17639. _this.timer = null;
  17640. }
  17641. if (_this.tcid) {
  17642. _this.getCourseGroup(gindex);
  17643. } else {
  17644. _this.selectSWorks(gindex);
  17645. }
  17646. _this.selectStudent();
  17647. _this.selectSLook();
  17648. _this.getPick();
  17649. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17650. // _this.setCTask();
  17651. // }
  17652. if (_this.dialogVisibleGroup) {
  17653. _this.groupJson =
  17654. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17655. _this.taskCount
  17656. ].toolChoose[_this.toolindex].groupJson;
  17657. }
  17658. _this.$nextTick(() => {
  17659. setTimeout(() => {
  17660. _this.checkEva();
  17661. }, 1000);
  17662. });
  17663. _this.timer = setInterval(function () {
  17664. // _this.getCourseDetail(2);
  17665. if (_this.tcid) {
  17666. _this.getCourseGroup();
  17667. } else {
  17668. _this.selectSWorks();
  17669. }
  17670. _this.selectStudent();
  17671. _this.selectSLook();
  17672. _this.getPick();
  17673. // _this.getSplitScreenData();
  17674. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17675. // _this.setCTask();
  17676. // }
  17677. if (_this.dialogVisibleGroup) {
  17678. _this.groupJson =
  17679. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17680. _this.taskCount
  17681. ].toolChoose[_this.toolindex].groupJson;
  17682. }
  17683. if (_this.tType == 4 || _this.ispzType == 4) {
  17684. _this.selectPz();
  17685. }
  17686. }, 5000);
  17687. if (_this.timer2 == null) {
  17688. _this.timer2 = setInterval(()=> {
  17689. _this.getSplitScreenData();//获取分屏数据
  17690. }, 5000);
  17691. }
  17692. _this.$nextTick(function () {
  17693. setTimeout(() => {
  17694. // var a =
  17695. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17696. // document.getElementsByClassName("vedioList")[0].style.height =
  17697. // a + "px";
  17698. // document.getElementsByClassName("navBox")[0].style.height =
  17699. // a - 40 + "px";
  17700. // if (_this.vedio[_this.taskCount].length > 0) {
  17701. // _this.vedioTime = [];
  17702. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17703. // _this.vedioTime[i] = document.getElementsByClassName(
  17704. // "vjs-duration-display"
  17705. // )[i].textContent;
  17706. // }
  17707. // }
  17708. }, 1000);
  17709. });
  17710. })
  17711. .catch((err) => {
  17712. loading.close();
  17713. console.error(err);
  17714. });
  17715. },
  17716. getCourseGroup(gindex) {
  17717. if(this.getCourseGroupLoading) return
  17718. this.getCourseGroupLoading = true
  17719. let params = {
  17720. cid: this.id,
  17721. classid: this.tcid ? this.tcid : "1",
  17722. };
  17723. this.ajax
  17724. .get(this.$store.state.api + "getCourseGroup", params)
  17725. .then((res) => {
  17726. if (res.data && res.data[0].length) {
  17727. if (!this.isGroup) {
  17728. let courseGroup = JSON.parse(res.data[0][0].group);
  17729. courseGroup.group = courseGroup.group.filter((el) => {
  17730. el.works = [];
  17731. return el;
  17732. });
  17733. if (courseGroup.isopen == 2) {
  17734. this.isGroup = false;
  17735. this.selectSWorks(gindex);
  17736. return;
  17737. }
  17738. this.courseGroup = courseGroup;
  17739. let groupPerson = res.data[1];
  17740. let group = JSON.parse(res.data[0][0].group).group;
  17741. let courseGroupStudent = {};
  17742. let courseGroupStudentUid = {};
  17743. for (var i = 0; i < group.length; i++) {
  17744. courseGroupStudent[group[i].id] = [];
  17745. courseGroupStudentUid[group[i].id] = [];
  17746. for (var j = 0; j < groupPerson.length; j++) {
  17747. if (groupPerson[j].groupCid == group[i].id) {
  17748. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17749. courseGroupStudentUid[group[i].id].push(
  17750. groupPerson[j].userid
  17751. );
  17752. }
  17753. }
  17754. }
  17755. this.courseGroupStudent = courseGroupStudent;
  17756. this.courseGroupStudentUid = courseGroupStudentUid;
  17757. }
  17758. if (this.courseGroup.isopen == 2) {
  17759. this.isGroup = false;
  17760. } else {
  17761. this.isGroup = true;
  17762. }
  17763. this.selectSWorks(gindex);
  17764. } else {
  17765. this.selectSWorks(gindex);
  17766. this.isGroup = false;
  17767. }
  17768. this.getCourseGroupLoading = false
  17769. })
  17770. .catch((err) => {
  17771. this.getCourseGroupLoading = false
  17772. // this.$message.error("网络不佳");
  17773. console.error(err);
  17774. });
  17775. },
  17776. setOperationTime() {
  17777. let _this = this;
  17778. if (_this.opertimer) {
  17779. clearInterval(_this.opertimer);
  17780. _this.opertimer = null;
  17781. }
  17782. _this.opertimer = setInterval(() => {
  17783. _this.setoTime("600");
  17784. }, 600000);
  17785. },
  17786. setoTime(time) {
  17787. let params = [
  17788. {
  17789. uid: this.userid,
  17790. cid: this.id,
  17791. type: "2",
  17792. time: time,
  17793. },
  17794. ];
  17795. this.ajax
  17796. .post(this.$store.state.api + "addOperationTimeT2", params)
  17797. .then((res) => {})
  17798. .catch((err) => {
  17799. console.error(err);
  17800. });
  17801. },
  17802. addPz(type, content) {
  17803. if (type == "1" && this.pzConText == "") {
  17804. this.$message.error("评论不能为空!");
  17805. return;
  17806. }
  17807. let params = [
  17808. {
  17809. cid: this.id,
  17810. uid: this.userid,
  17811. s: this.courseType,
  17812. t: this.taskCount,
  17813. c: type == "1" ? this.pzConText : content,
  17814. type: type,
  17815. },
  17816. ];
  17817. this.ajax
  17818. .post(this.$store.state.api + "addPz2", params)
  17819. .then((res) => {
  17820. this.$message({
  17821. message: "添加成功",
  17822. type: "success",
  17823. });
  17824. this.pzConText = "";
  17825. this.addPzDialog = false;
  17826. this.selectPz();
  17827. if(this.tType!=2){
  17828. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17829. }
  17830. })
  17831. .catch((err) => {
  17832. this.$message.error("添加失败");
  17833. console.error(err);
  17834. });
  17835. },
  17836. setReplyIndex(id, i) {
  17837. this.replyIndex = i;
  17838. this.replyPid = id;
  17839. this.replyDialogVisible = true;
  17840. },
  17841. addHf() {
  17842. if (this.reply == "") {
  17843. this.$message.error("回复不能为空!");
  17844. return;
  17845. }
  17846. let params = [
  17847. {
  17848. cid: this.id,
  17849. uid: this.userid,
  17850. s: this.courseType,
  17851. t: this.taskCount,
  17852. type: "1",
  17853. ct: 2,
  17854. pid: this.replyPid,
  17855. c: this.reply,
  17856. },
  17857. ];
  17858. this.ajax
  17859. .post(this.$store.state.api + "addHf", params)
  17860. .then((res) => {
  17861. this.reply = "";
  17862. this.$message({
  17863. message: "回复成功",
  17864. type: "success",
  17865. });
  17866. this.replyDialogVisible = false;
  17867. this.selectPz();
  17868. })
  17869. .catch((err) => {
  17870. this.$message.error("回复失败");
  17871. console.error(err);
  17872. });
  17873. },
  17874. deletePz(id) {
  17875. this.$confirm("确定删除此评论吗?", "提示", {
  17876. confirmButtonText: "确定",
  17877. cancelButtonText: "取消",
  17878. type: "warning",
  17879. })
  17880. .then(() => {
  17881. let params = [
  17882. {
  17883. id: id,
  17884. },
  17885. ];
  17886. this.ajax
  17887. .post(this.$store.state.api + "deletePz", params)
  17888. .then((res) => {
  17889. this.$message({
  17890. message: "删除成功",
  17891. type: "success",
  17892. });
  17893. this.selectPz();
  17894. })
  17895. .catch((err) => {
  17896. this.$message.error("网络异常");
  17897. console.error(err);
  17898. });
  17899. })
  17900. .catch(() => {});
  17901. },
  17902. deleteReply(id) {
  17903. this.$confirm("确定删除此回复吗?", "提示", {
  17904. confirmButtonText: "确定",
  17905. cancelButtonText: "取消",
  17906. type: "warning",
  17907. })
  17908. .then(() => {
  17909. let params = [
  17910. {
  17911. id: id,
  17912. },
  17913. ];
  17914. this.ajax
  17915. .post(this.$store.state.api + "deleteReply", params)
  17916. .then((res) => {
  17917. this.$message({
  17918. message: "删除成功",
  17919. type: "success",
  17920. });
  17921. this.selectPz();
  17922. })
  17923. .catch((err) => {
  17924. this.$message.error("网络异常");
  17925. console.error(err);
  17926. });
  17927. })
  17928. .catch(() => {});
  17929. },
  17930. setPz() {
  17931. if (this.ispzType == 4) {
  17932. this.ispzType = 0;
  17933. this.pzDialog = false;
  17934. return;
  17935. }
  17936. this.ispzType = 4;
  17937. this.pzDialog = true;
  17938. this.selectPz();
  17939. },
  17940. selectPz() {
  17941. if(this.selectPzLoading) return
  17942. this.selectPzLoading = true
  17943. let params = {
  17944. cid: this.id,
  17945. s: this.courseType,
  17946. t: this.taskCount,
  17947. type: this.pzStype,
  17948. uid: this.userid,
  17949. };
  17950. this.ajax
  17951. .get(this.$store.state.api + "selectPzListType", params)
  17952. .then((res) => {
  17953. this.pzList = res.data[0];
  17954. var a = res.data[1];
  17955. for (var i = 0; i < a.length; i++) {
  17956. for (var j = 0; j < this.pzList.length; j++) {
  17957. if (!this.pzList[j].hfList) {
  17958. this.pzList[j].hfList = [];
  17959. }
  17960. if (a[i].pid == this.pzList[j].id) {
  17961. this.pzList[j].hfList.push(a[i]);
  17962. }
  17963. }
  17964. }
  17965. this.selectPzLoading = false
  17966. })
  17967. .catch((err) => {
  17968. this.selectPzLoading = false
  17969. console.error(err);
  17970. });
  17971. },
  17972. // selectHf() {
  17973. // let params = {
  17974. // cid: this.id,
  17975. // s: this.courseType,
  17976. // t: this.taskCount,
  17977. // };
  17978. // this.ajax
  17979. // .get(this.$store.state.api + "selectHfList", params)
  17980. // .then((res) => {
  17981. // var a = res.data[0];
  17982. // for (var i = 0; i < a.length; i++) {
  17983. // for (var j = 0; j < this.pzList.length; j++) {
  17984. // if (!this.pzList[i].hfList) {
  17985. // this.pzList[i].hfList = [];
  17986. // }
  17987. // if (a[i].pid == this.pzList[j].id) {
  17988. // this.pzList[i].hfList.push(a[i]);
  17989. // }
  17990. // }
  17991. // }
  17992. // })
  17993. // .catch((err) => {
  17994. // console.error(err);
  17995. // });
  17996. // },
  17997. updateSLook() {
  17998. let params = {
  17999. sopen: this.sIsOpen == false ? 1 : 2,
  18000. cid: this.id,
  18001. };
  18002. this.ajax
  18003. .get(this.$store.state.api + "updateCourseSLook", params)
  18004. .then((res) => {
  18005. if (this.sIsOpen == true) {
  18006. this.$message({
  18007. message: "权限设置成功",
  18008. type: "success",
  18009. });
  18010. } else {
  18011. this.$message({
  18012. message: "权限关闭成功",
  18013. type: "success",
  18014. });
  18015. }
  18016. })
  18017. .catch((err) => {
  18018. console.error(err);
  18019. });
  18020. },
  18021. updateIsStulook(){
  18022. let params = [
  18023. {
  18024. sopen: this.IsStulook == false ? 2 : 1,
  18025. cid: this.id
  18026. }
  18027. ];
  18028. this.ajax
  18029. .post(this.$store.state.api + "updateCourseStulook", params)
  18030. .then(res => {
  18031. if (this.IsStulook == true) {
  18032. this.$message({
  18033. message: "学生查看内容资料权限已开启",
  18034. type: "success"
  18035. });
  18036. } else {
  18037. this.$message({
  18038. message: "关闭学生查看内容资料权限",
  18039. type: "success"
  18040. });
  18041. }
  18042. // this.setCTask();
  18043. })
  18044. .catch(err => {
  18045. console.error(err);
  18046. });
  18047. },
  18048. updateFollow() {
  18049. let params = [
  18050. {
  18051. sopen: this.IsFollow == false ? 1 : 2,
  18052. cid: this.id,
  18053. },
  18054. ];
  18055. this.ajax
  18056. .post(this.$store.state.api + "updateCourseFollow", params)
  18057. .then((res) => {
  18058. if (this.IsFollow == true) {
  18059. this.$message({
  18060. message: "跟随模式已开启",
  18061. type: "success",
  18062. });
  18063. } else {
  18064. this.$message({
  18065. message: "跟随模式已关闭",
  18066. type: "success",
  18067. });
  18068. }
  18069. this.setCTask();
  18070. })
  18071. .catch((err) => {
  18072. console.error(err);
  18073. });
  18074. },
  18075. setCTask() {
  18076. let params = [
  18077. {
  18078. sopen: this.courseType + "-" + this.taskCount,
  18079. cid: this.id,
  18080. },
  18081. ];
  18082. this.ajax
  18083. .post(this.$store.state.api + "updateCourseFollowC", params)
  18084. .then((res) => {})
  18085. .catch((err) => {
  18086. console.error(err);
  18087. });
  18088. },
  18089. updateLookOpen() {
  18090. let params = [
  18091. {
  18092. sopen: this.IsLookOpen == false ? 1 : 2,
  18093. cid: this.id,
  18094. },
  18095. ];
  18096. this.ajax
  18097. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18098. .then((res) => {
  18099. if (this.IsLookOpen == true) {
  18100. // if (this.courseType != 0 && this.taskCount != 0) {
  18101. // this.openTask(0, 0, "0-0");
  18102. // }
  18103. this.$message({
  18104. message: "权限设置成功",
  18105. type: "success",
  18106. });
  18107. } else {
  18108. this.$message({
  18109. message: "权限关闭成功",
  18110. type: "success",
  18111. });
  18112. }
  18113. this.getCourseState(2);
  18114. })
  18115. .catch((err) => {
  18116. console.error(err);
  18117. });
  18118. },
  18119. selectSLook() {
  18120. if(this.selectSLookLoading) return
  18121. this.selectSLookLoading = true
  18122. let params = {
  18123. cid: this.id,
  18124. };
  18125. this.ajax
  18126. .get(this.$store.state.api + "selectCourseSLook", params)
  18127. .then((res) => {
  18128. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18129. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18130. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18131. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18132. if (!this.IsLookOpen) {
  18133. this.setNavList();
  18134. }else {
  18135. this.getCourseState(1);
  18136. }
  18137. if ((this.IsFollow && this.tType == 2)) {
  18138. this.setContent2(false);
  18139. let _followC = res.data[0][0].followC.split("-");
  18140. if (
  18141. this.courseType != _followC[0] ||
  18142. this.taskCount != _followC[1]
  18143. ) {
  18144. this.navList[this.courseType].isOpen = false;
  18145. this.courseType = _followC[0];
  18146. this.navList[this.courseType].isOpen = true;
  18147. this.taskCount = parseInt(_followC[1]);
  18148. this.navId = res.data[0][0].followC;
  18149. document.scrollingElement.scrollTop = 0;
  18150. this.getCourseDetail(2);
  18151. }
  18152. }
  18153. this.selectSLookLoading = false
  18154. })
  18155. .catch((err) => {
  18156. this.selectSLookLoading = false
  18157. console.error(err);
  18158. });
  18159. },
  18160. setNavList() {
  18161. if (this.navList.length == 0) {
  18162. this.navList = [];
  18163. var copyList = [];
  18164. for (var l = 0; l < this.chapInfoList.length; l++) {
  18165. var q = this.chapInfoList[l].dyName;
  18166. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18167. var e;
  18168. copyList.push({
  18169. dyName: q,
  18170. isOpen: l === 0 ? true : false,
  18171. task: [],
  18172. });
  18173. for (var r = 0; r < w.length; r++) {
  18174. e = w[r].task;
  18175. if (this.chapInfoList[l].easy == 1) {
  18176. copyList[l].task.push({
  18177. taskName: q,
  18178. id: l + "-" + r,
  18179. isLook: w[r].isLook,
  18180. isOpen: r === 0 ? true : false,
  18181. tool: [],
  18182. });
  18183. } else {
  18184. copyList[l].task.push({
  18185. taskName: e,
  18186. id: l + "-" + r,
  18187. isLook: w[r].isLook,
  18188. isOpen: r === 0 ? true : false,
  18189. tool: [],
  18190. });
  18191. }
  18192. var t = w[r].toolChoose;
  18193. for (var k = 0; k < t.length; k++) {
  18194. var tool = t[k].tool[0];
  18195. copyList[l].task[r].tool.push({
  18196. tool: tool,
  18197. isTool: false,
  18198. });
  18199. }
  18200. // this.navId = this.navId ? this.navId : l + "-" + r;
  18201. // this.navId = l + "-" + r;
  18202. }
  18203. }
  18204. this.navList = copyList;
  18205. this.navList[0].isOpen = false;
  18206. this.navList[this.courseType].isOpen = true;
  18207. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18208. } else {
  18209. this.setNavList2();
  18210. }
  18211. },
  18212. setNavList2() {
  18213. for (var l = 0; l < this.chapInfoList.length; l++) {
  18214. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18215. for (var r = 0; r < w.length; r++) {
  18216. this.navList[l].task[r].isLook = w[r].isLook;
  18217. }
  18218. }
  18219. if (
  18220. this.IsLookOpen &&
  18221. !this.navList[this.courseType].task[this.taskCount].isLook
  18222. ) {
  18223. this.openTask(0, 0, "0-0");
  18224. }
  18225. this.$forceUpdate();
  18226. },
  18227. getCourseState(type) {
  18228. let params = {
  18229. cid: this.id,
  18230. };
  18231. this.ajax
  18232. .get(this.$store.state.api + "getCourseState", params)
  18233. .then((res) => {
  18234. // if (res.data[0].length > 0) {
  18235. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18236. // }
  18237. if (res.data[0].length > 0 && type == 1) {
  18238. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18239. this.setNavList();
  18240. this.$forceUpdate();
  18241. } else if (res.data[0].length > 0 && type == 2) {
  18242. this.addCourseState(2);
  18243. } else {
  18244. // this.addCourseState(1);
  18245. }
  18246. })
  18247. .catch((err) => {
  18248. console.error(err);
  18249. });
  18250. },
  18251. addCourseState(type,val = '') {
  18252. let _state = val ? val : this.chapInfoList;
  18253. // this.courseType this.taskCount
  18254. if (type == 1 || type == 2) {
  18255. for (var i = 0; i < _state.length; i++) {
  18256. let el = _state[i].chapterInfo[0].taskJson;
  18257. for (var j = 0; j < el.length; j++) {
  18258. // if (i == 0 && j == 0) {
  18259. // el[j].isLook = true;
  18260. // } else {
  18261. // el[j].isLook = false;
  18262. // }
  18263. if (
  18264. this.courseType > i ||
  18265. (this.courseType == i && this.taskCount + 1 > j)
  18266. ) {
  18267. el[j].isLook = true;
  18268. } else {
  18269. el[j].isLook = false;
  18270. }
  18271. }
  18272. }
  18273. }
  18274. let params = [
  18275. {
  18276. cid: this.id,
  18277. state: JSON.stringify(_state),
  18278. },
  18279. ];
  18280. this.ajax
  18281. .post(
  18282. this.$store.state.api +
  18283. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18284. params
  18285. )
  18286. .then((res) => {
  18287. if (this.IsLookOpen) {
  18288. this.setNavList();
  18289. }
  18290. if (type == 3 && type == 2) {
  18291. this.getCourseState(1);
  18292. }
  18293. })
  18294. .catch((err) => {
  18295. console.error(err);
  18296. });
  18297. },
  18298. getHomeWork() {
  18299. let params = {
  18300. cid: this.id,
  18301. stage: this.courseType,
  18302. task: this.taskCount,
  18303. uid: this.userid,
  18304. };
  18305. this.ajax
  18306. .get(this.$store.state.api + "selectWork", params)
  18307. .then((res) => {
  18308. if (res.data[0].length > 0) {
  18309. this.studyJuri = JSON.parse(res.data[0][0].content);
  18310. this.isNoHomeWork = true;
  18311. }
  18312. })
  18313. .catch((err) => {
  18314. console.error(err);
  18315. });
  18316. },
  18317. isAssetTypeAnImage(ext) {
  18318. return (
  18319. [
  18320. "png",
  18321. "jpg",
  18322. "jpeg",
  18323. "bmp",
  18324. "gif",
  18325. "webp",
  18326. "psd",
  18327. "svg",
  18328. "tiff",
  18329. ].indexOf(ext) !== -1
  18330. );
  18331. },
  18332. switchVideo(media) {
  18333. this.playerO = {};
  18334. this.playerOptions.poster = "";
  18335. this.playerOptions.sources[0].src = media;
  18336. this.playerO = this.playerOptions;
  18337. },
  18338. onPlayerPlay() {},
  18339. onPlayerTimeupdate(player) {
  18340. let gklog = player.cache_.currentTime; //当前播放的秒数
  18341. let a = player.cache_.duration; //视频的总时长
  18342. let gklog2 = parseInt(gklog);
  18343. // if(gklog2 == '3'){
  18344. // player.pause()
  18345. // setTimeout(()=>{
  18346. // player.currentTime(gklog2+1)
  18347. // player.play()
  18348. // },1000)
  18349. // }
  18350. console.log(" onPlayerTimeupdate!", gklog);
  18351. console.log(" onPlayerTimeupdate!", gklog2);
  18352. },
  18353. lookVedio(u, i) {
  18354. this.isClickNav = "";
  18355. // this.playerOptions.sources[0].src = u;
  18356. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18357. d.sources[0].src = u;
  18358. this.playerO[this.taskCount] = d;
  18359. this.showType = 0;
  18360. // this.isClickNav = "video" + i;
  18361. this.isClickNav = i;
  18362. this.$forceUpdate();
  18363. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18364. },
  18365. lookText(i, t) {
  18366. this.isClickNav = "";
  18367. // this.text = this.textList[i][t];
  18368. this.text = this.vChapterData[i][t];
  18369. // this.dialogVisible1 = true;
  18370. this.showType = 1;
  18371. // this.isClickNav = "text" + t;
  18372. this.isClickNav = t;
  18373. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18374. },
  18375. lookTools(i, t) {
  18376. this.chapTools = this.chapToolList[i][t];
  18377. this.dialogVisible2 = true;
  18378. },
  18379. async openFile(f,w) {
  18380. this.pptImgUrl = "";
  18381. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18382. if (
  18383. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18384. -1
  18385. ) {
  18386. let _uuurl = await this.checkLink(f);
  18387. this.pptImgUrl =
  18388. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18389. this.showPDF = false;
  18390. this.dialogVisible3 = true;
  18391. } else if (
  18392. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18393. ) {
  18394. this.pptImgUrl = f;
  18395. this.showPDF = true;
  18396. this.dialogVisible3 = true;
  18397. }
  18398. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18399. },
  18400. openTable(f) {
  18401. this.tableJson = JSON.parse(f.works);
  18402. this.dialogVisibleTable2 = true;
  18403. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18404. },
  18405. openWord(f) {
  18406. this.tableJson = JSON.parse(f.works);
  18407. this.dialogVisibleTable3 = true;
  18408. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18409. },
  18410. doUrl(url, i) {
  18411. this.isClickNav = "";
  18412. this.pptImgUrl1 = "";
  18413. this.showType = 2;
  18414. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18415. url = "https://" + url;
  18416. }
  18417. this.pptImgUrl1 = "";
  18418. this.diffKey = new Date().getTime();
  18419. setTimeout(() => {
  18420. this.pptImgUrl1 = url;
  18421. }, 500);
  18422. // this.isClickNav = "line" + i;
  18423. this.isClickNav = i;
  18424. this.$forceUpdate();
  18425. },
  18426. checkPhoto(f, i) {
  18427. this.showType = 4;
  18428. this.pptImgUrl1 = f.url;
  18429. this.isClickNav = i;
  18430. this.$forceUpdate();
  18431. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18432. },
  18433. checkHtml(f, i){
  18434. this.showType = 16;
  18435. this.pptImgUrl1 = f.url;
  18436. this.isClickNav = i;
  18437. this.$forceUpdate();
  18438. },
  18439. async downFile(f, i) {
  18440. this.isClickNav = "";
  18441. this.pptImgUrl1 = "";
  18442. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18443. if (
  18444. a.indexOf(
  18445. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18446. ) != -1
  18447. ) {
  18448. let _uuurl = await this.checkLink(f.url);
  18449. this.pptImgUrl1 =
  18450. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18451. // this.dialogVisible3 = true;
  18452. this.showType = 2;
  18453. } else if (
  18454. this.isAssetTypeAnImage(
  18455. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18456. )
  18457. ) {
  18458. this.showType = 4;
  18459. this.pptImgUrl1 = f.url;
  18460. } else if (
  18461. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18462. "PDF"
  18463. ) {
  18464. this.pptImgUrl1 = f.url;
  18465. // this.dialogVisible3 = true;
  18466. this.showType = 3;
  18467. } else {
  18468. window.open(this.file[i].url);
  18469. }
  18470. // this.isClickNav = "word" + i;
  18471. this.isClickNav = i;
  18472. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18473. },
  18474. downFileList(i) {
  18475. window.open(this.noImgList[i].url);
  18476. },
  18477. openAddWork() {
  18478. this.dialogVisible = true;
  18479. },
  18480. addBzWorks() {
  18481. let params = [
  18482. {
  18483. uid: this.userid,
  18484. cid: this.id,
  18485. stage: this.courseType,
  18486. task: this.taskCount,
  18487. tool: this.toolindex,
  18488. content: JSON.stringify(this.eScore),
  18489. type: 6,
  18490. },
  18491. ];
  18492. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18493. this.homeWorkLoading = true
  18494. this.ajax
  18495. .post(this.$store.state.api + "addCourseWorks", params)
  18496. .then((res) => {
  18497. this.$message({
  18498. message: "提交成功",
  18499. type: "success",
  18500. });
  18501. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18502. setTimeout(() => {
  18503. this.homeWorkLoading = false
  18504. }, 500);
  18505. this.eScore = { eBzText: "", eStar: [] };
  18506. this.studentEvalDialogVisible = false;
  18507. this.selectSWorks();
  18508. })
  18509. .catch((err) => {
  18510. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18511. setTimeout(() => {
  18512. this.homeWorkLoading = false
  18513. }, 500);
  18514. this.$message.error("提交失败");
  18515. console.error(err);
  18516. });
  18517. },
  18518. addBzWorksTeacher() {
  18519. let params = [
  18520. {
  18521. uid: this.sStudent.userid,
  18522. cid: this.id,
  18523. stage: this.courseType,
  18524. task: this.taskCount,
  18525. tool: this.toolindex,
  18526. content: JSON.stringify(this.eScore),
  18527. type: 6,
  18528. },
  18529. ];
  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.eScore = { eBzText: "", eStar: [] };
  18538. this.studentEvalDialogVisibleTeacher = false;
  18539. this.selectSWorks();
  18540. })
  18541. .catch((err) => {
  18542. this.$message.error("提交失败");
  18543. console.error(err);
  18544. });
  18545. },
  18546. addStudentAsk() {
  18547. if (!this.radio.length) {
  18548. this.$message.error("请选择选项");
  18549. return;
  18550. }
  18551. for (var i = 0; i < this.askJson.askCount; i++) {
  18552. if (
  18553. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18554. (this.radio[i] !== 0 && !this.radio[i])
  18555. ) {
  18556. this.$message.error("请选择选项");
  18557. return;
  18558. }
  18559. }
  18560. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18561. let params = [
  18562. {
  18563. uid: this.userid,
  18564. cid: this.id,
  18565. stage: this.courseType,
  18566. task: this.taskCount,
  18567. tool: this.toolindex,
  18568. content: JSON.stringify(this.askList),
  18569. type: 2,
  18570. },
  18571. ];
  18572. // console.log('params',params);
  18573. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18574. this.homeWorkLoading = true
  18575. this.ajax
  18576. .post(this.$store.state.api + "addCourseWorks", params)
  18577. .then((res) => {
  18578. this.$message({
  18579. message: "提交成功",
  18580. type: "success",
  18581. });
  18582. setTimeout(() => {
  18583. this.homeWorkLoading = false
  18584. }, 500);
  18585. this.askList = [];
  18586. this.dialogVisible5 = false;
  18587. this.selectStudent();
  18588. this.selectSWorks();
  18589. this.selectSLook();
  18590. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18591. })
  18592. .catch((err) => {
  18593. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18594. setTimeout(() => {
  18595. this.homeWorkLoading = false
  18596. }, 500);
  18597. this.$message.error("提交失败");
  18598. console.error(err);
  18599. });
  18600. },
  18601. addStudentAskTeacher() {
  18602. if (!this.radio.length) {
  18603. this.$message.error("请选择选项");
  18604. return;
  18605. }
  18606. for (var i = 0; i < this.askJson.askCount; i++) {
  18607. if (
  18608. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18609. (this.radio[i] !== 0 && !this.radio[i])
  18610. ) {
  18611. this.$message.error("请选择选项");
  18612. return;
  18613. }
  18614. }
  18615. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18616. let params = [
  18617. {
  18618. uid: this.sStudent.userid,
  18619. cid: this.id,
  18620. stage: this.courseType,
  18621. task: this.taskCount,
  18622. tool: this.toolindex,
  18623. content: JSON.stringify(this.askList),
  18624. type: 2,
  18625. },
  18626. ];
  18627. this.ajax
  18628. .post(this.$store.state.api + "addCourseWorks", params)
  18629. .then((res) => {
  18630. this.$message({
  18631. message: "提交成功",
  18632. type: "success",
  18633. });
  18634. this.askList = [];
  18635. this.dialogVisible5Teacher = false;
  18636. this.selectStudent();
  18637. this.selectSWorks();
  18638. this.selectSLook();
  18639. })
  18640. .catch((err) => {
  18641. this.$message.error("提交失败");
  18642. console.error(err);
  18643. });
  18644. },
  18645. addStudentTest() {
  18646. if (!this.radio.length) {
  18647. this.$message.error("请选择选项");
  18648. return;
  18649. }
  18650. for (var i = 0; i < this.testJson.testCount; i++) {
  18651. if (
  18652. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18653. (this.radio[i] !== 0 && !this.radio[i])
  18654. ) {
  18655. this.$message.error("请选择选项");
  18656. return;
  18657. }
  18658. }
  18659. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18660. let params = [
  18661. {
  18662. uid: this.userid,
  18663. cid: this.id,
  18664. stage: this.courseType,
  18665. task: this.taskCount,
  18666. tool: this.toolindex,
  18667. content: JSON.stringify(this.askList),
  18668. type: 8,
  18669. },
  18670. ];
  18671. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18672. this.homeWorkLoading = true
  18673. this.ajax
  18674. .post(this.$store.state.api + "addCourseWorks", params)
  18675. .then((res) => {
  18676. this.$message({
  18677. message: "提交成功",
  18678. type: "success",
  18679. });
  18680. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18681. setTimeout(() => {
  18682. this.homeWorkLoading = false
  18683. }, 500);
  18684. this.askList = [];
  18685. this.dialogVisibleChoice = false;
  18686. this.selectStudent();
  18687. this.selectSWorks();
  18688. this.selectSLook();
  18689. })
  18690. .catch((err) => {
  18691. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18692. setTimeout(() => {
  18693. this.homeWorkLoading = false
  18694. }, 500);
  18695. this.$message.error("提交失败");
  18696. console.error(err);
  18697. });
  18698. },
  18699. addStudentTestTeacher() {
  18700. if (!this.radio.length) {
  18701. this.$message.error("请选择选项");
  18702. return;
  18703. }
  18704. for (var i = 0; i < this.testJson.testCount; i++) {
  18705. if (
  18706. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18707. (this.radio[i] !== 0 && !this.radio[i])
  18708. ) {
  18709. this.$message.error("请选择选项");
  18710. return;
  18711. }
  18712. }
  18713. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18714. let params = [
  18715. {
  18716. uid: this.sStudent.userid,
  18717. cid: this.id,
  18718. stage: this.courseType,
  18719. task: this.taskCount,
  18720. tool: this.toolindex,
  18721. content: JSON.stringify(this.askList),
  18722. type: 8,
  18723. },
  18724. ];
  18725. this.ajax
  18726. .post(this.$store.state.api + "addCourseWorks", params)
  18727. .then((res) => {
  18728. this.$message({
  18729. message: "提交成功",
  18730. type: "success",
  18731. });
  18732. this.askList = [];
  18733. this.dialogVisibleChoiceTeacher = false;
  18734. this.selectStudent();
  18735. this.selectSWorks();
  18736. this.selectSLook();
  18737. })
  18738. .catch((err) => {
  18739. this.$message.error("提交失败");
  18740. console.error(err);
  18741. });
  18742. },
  18743. addWork() {
  18744. if (this.studyJuri[0].content == "") {
  18745. this.$message.error("请将信息填写完整");
  18746. return;
  18747. } else if (this.studyJuri[0].cover.length == 0) {
  18748. this.$message.error("请将信息填写完整");
  18749. return;
  18750. } else if (this.studyJuri[0].upVedio.length == 0) {
  18751. this.$message.error("请将信息填写完整");
  18752. return;
  18753. }
  18754. if (this.isNoHomeWork) {
  18755. this.$confirm(
  18756. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18757. "提示",
  18758. {
  18759. confirmButtonText: "确定",
  18760. cancelButtonText: "取消",
  18761. type: "warning",
  18762. }
  18763. )
  18764. .then(() => {
  18765. let params = [
  18766. {
  18767. uid: this.userid,
  18768. cid: this.id,
  18769. stage: this.courseType,
  18770. task: this.taskCount,
  18771. content: JSON.stringify(this.studyJuri),
  18772. },
  18773. ];
  18774. this.ajax
  18775. .post(this.$store.state.api + "addWorks", params)
  18776. .then((res) => {
  18777. this.$message({
  18778. message: "提交成功",
  18779. type: "success",
  18780. });
  18781. this.isNoHomeWork = true;
  18782. this.dialogVisible = false;
  18783. })
  18784. .catch((err) => {
  18785. this.$message.error("提交失败");
  18786. console.error(err);
  18787. });
  18788. })
  18789. .catch(() => {});
  18790. } else {
  18791. let params = [
  18792. {
  18793. uid: this.userid,
  18794. cid: this.id,
  18795. stage: this.courseType,
  18796. task: this.taskCount,
  18797. content: JSON.stringify(this.studyJuri),
  18798. },
  18799. ];
  18800. this.ajax
  18801. .post(this.$store.state.api + "addWorks", params)
  18802. .then((res) => {
  18803. this.$message({
  18804. message: "提交成功",
  18805. type: "success",
  18806. });
  18807. this.isNoHomeWork = true;
  18808. this.dialogVisible = false;
  18809. })
  18810. .catch((err) => {
  18811. this.$message.error("提交失败");
  18812. console.error(err);
  18813. });
  18814. }
  18815. },
  18816. selectCount() {
  18817. let params = {
  18818. cid: this.id,
  18819. chid: this.courseType,
  18820. uid: this.userid,
  18821. };
  18822. this.ajax
  18823. .get(this.$store.state.api + "selectToolsCount", params)
  18824. .then((res) => {
  18825. for (var i = 0; i < res.data[0].length; i++) {
  18826. if (res.data[0][i].tools == 1) {
  18827. this.wbCount = res.data[0][i].count;
  18828. } else if (res.data[0][i].tools == 2) {
  18829. this.wordCount = res.data[0][i].count;
  18830. } else if (res.data[0][i].tools == 3) {
  18831. this.mindCount = res.data[0][i].count;
  18832. } else if (res.data[0][i].tools == 4) {
  18833. this.askCount = res.data[0][i].count;
  18834. } else if (res.data[0][i].tools == 6) {
  18835. this.noteCount = res.data[0][i].count;
  18836. } else if (res.data[0][i].tools == 7) {
  18837. this.mindNetWorkCount = res.data[0][i].count;
  18838. } else if (res.data[0][i].tools == 8) {
  18839. this.libraryCount = res.data[0][i].count;
  18840. } else if (res.data[0][i].tools == 16) {
  18841. this.workCount = res.data[0][i].count;
  18842. } else if (res.data[0][i].tools == 10) {
  18843. this.timeCount = res.data[0][i].count;
  18844. } else if (res.data[0][i].tools == 15) {
  18845. this.answerCount = res.data[0][i].count;
  18846. } else if (res.data[0][i].tools == 18) {
  18847. this.trainCount = res.data[0][i].count;
  18848. }
  18849. }
  18850. })
  18851. .catch((err) => {
  18852. console.error(err);
  18853. });
  18854. },
  18855. openTools(t, i, index, c, sName,id) {
  18856. var z = JSON.parse(c);
  18857. this.noteName = sName;
  18858. if (t == 4) {
  18859. this.radio = [];
  18860. this.isAnswer = false;
  18861. let b = z[0].anwer;
  18862. this.radio = b;
  18863. this.askJson = z[0].askJson;
  18864. this.isAnswer = true;
  18865. this.dialogVisible5 = true;
  18866. } else if (t == 45) {
  18867. this.radio = [];
  18868. this.isAnswer = false;
  18869. let b = z[0].anwer;
  18870. this.radio = b;
  18871. this.testJson = z[0].testJson;
  18872. this.isAnswer = true;
  18873. this.dialogVisibleChoice = true;
  18874. }else if(t == 69){
  18875. this.oldEnglishJson1 = {}
  18876. this.oldEnglishJson = {}
  18877. this.englishList1 = {}
  18878. this.newEngIndex = -1;
  18879. this.isNoUserid = false;
  18880. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18881. .toolChoose[i].englishList;
  18882. this.oldEnglishJson = z;
  18883. this.engWid = id;
  18884. this.newEnglishList = { engTitle:"",engText:"" }
  18885. this.newEnglishList1 = []
  18886. this.selectEngC(id,z);
  18887. }else if(t == 62){
  18888. this.videoType = 1;
  18889. this.videoJson = {};
  18890. this.videoJson = JSON.parse(c);
  18891. // this.videoJson =
  18892. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18893. // index
  18894. // ].toolChoose[i].videoJson;
  18895. this.dialogVisibleVideo = true;
  18896. //this.dialog
  18897. }
  18898. // else if (t == 15) {
  18899. // this.answerQ = "";
  18900. // this.questionAnswer = "";
  18901. // this.answerQ = z[0].answerTitle;
  18902. // this.questionAnswer = z[0].answer;
  18903. // this.answerDialogVisible = true;
  18904. // }
  18905. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18906. },
  18907. fastText(p, t) {
  18908. if (t == 1) {
  18909. this.commentText += p;
  18910. } else {
  18911. this.eScore.eBzText += p;
  18912. }
  18913. },
  18914. addTools(t, i, index) {
  18915. var a = 0;
  18916. // this.taskCount = index;
  18917. this.toolindex = i;
  18918. if (t == 1) {
  18919. if (this.wbCount > 0) {
  18920. this.updateCount(this.wbCount, t);
  18921. } else {
  18922. this.wbCount++;
  18923. a = this.wbCount;
  18924. this.toolsCount(a, t);
  18925. }
  18926. window.topU.postMessage(
  18927. {
  18928. tools: "1",
  18929. cid: this.id,
  18930. stage: this.courseType,
  18931. task: this.taskCount,
  18932. tool: i,
  18933. },
  18934. "*"
  18935. );
  18936. } else if (t == 2) {
  18937. if (this.wordCount > 0) {
  18938. this.updateCount(this.wordCount, t);
  18939. } else {
  18940. this.wordCount++;
  18941. a = this.wordCount;
  18942. this.toolsCount(a, t);
  18943. }
  18944. window.topU.postMessage({ tools: "2" }, "*");
  18945. } else if (t == 3) {
  18946. if (this.mindCount > 0) {
  18947. this.updateCount(this.mindCount, t);
  18948. } else {
  18949. this.mindCount++;
  18950. a = this.mindCount;
  18951. this.toolsCount(a, t);
  18952. }
  18953. window.topU.postMessage(
  18954. {
  18955. tools: "3",
  18956. cid: this.id,
  18957. stage: this.courseType,
  18958. task: this.taskCount,
  18959. tool: i,
  18960. },
  18961. "*"
  18962. );
  18963. } else if (t == 4) {
  18964. this.radio = [];
  18965. this.noteName = "";
  18966. this.isAnswer = false;
  18967. if (this.askCount > 0) {
  18968. this.updateCount(this.askCount, t);
  18969. } else {
  18970. this.askCount++;
  18971. a = this.askCount;
  18972. this.toolsCount(a, t);
  18973. }
  18974. if (!this.dialogVisible2) {
  18975. this.askJson.askJson =
  18976. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18977. index
  18978. ].toolChoose[i].askJson;
  18979. this.askJson.askTitle =
  18980. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18981. index
  18982. ].toolChoose[i].askTitle;
  18983. this.askJson.askCount =
  18984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18985. index
  18986. ].toolChoose[i].askCount;
  18987. } else {
  18988. this.askJson.askJson = this.chapTools.askJson.askJson;
  18989. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18990. this.askJson.askCount = this.chapTools.askJson.askCount;
  18991. }
  18992. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18993. if (this.askJson.askJson[k].type == "2") {
  18994. this.radio.push([]);
  18995. } else {
  18996. this.radio.push("");
  18997. }
  18998. }
  18999. this.dialogVisible5 = true;
  19000. // window.topU.postMessage({ tools: "4" }, "*");
  19001. } else if (t == 45) {
  19002. this.noteName = "";
  19003. this.radio = [];
  19004. this.isAnswer = false;
  19005. if (this.askCount > 0) {
  19006. this.updateCount(this.askCount, t);
  19007. } else {
  19008. this.askCount++;
  19009. a = this.askCount;
  19010. this.toolsCount(a, t);
  19011. }
  19012. this.testJson =
  19013. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19014. index
  19015. ].toolChoose[i].testJson;
  19016. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19017. if (this.testJson.testJson[k].type == "2") {
  19018. this.radio.push([]);
  19019. } else {
  19020. this.radio.push("");
  19021. }
  19022. }
  19023. this.dialogVisibleChoice = true;
  19024. // window.topU.postMessage({ tools: "4" }, "*");
  19025. } else if (t == 5) {
  19026. if (this.scoreCount > 0) {
  19027. this.updateCount(this.scoreCount, t);
  19028. } else {
  19029. this.scoreCount++;
  19030. a = this.scoreCount;
  19031. this.toolsCount(a, t);
  19032. }
  19033. this.dialogVisible4 = true;
  19034. // window.topU.postMessage({ tools: "5" }, "*");
  19035. } else if (t == 6) {
  19036. if (this.noteCount > 0) {
  19037. this.updateCount(this.noteCount, t);
  19038. } else {
  19039. this.noteCount++;
  19040. a = this.noteCount;
  19041. this.toolsCount(a, t);
  19042. }
  19043. window.topU.postMessage(
  19044. {
  19045. tools: "6",
  19046. cid: this.id,
  19047. stage: this.courseType,
  19048. task: this.taskCount,
  19049. tool: i,
  19050. },
  19051. "*"
  19052. );
  19053. } else if (t == 7) {
  19054. if (this.mindNetWorkCount > 0) {
  19055. this.updateCount(this.mindNetWorkCount, t);
  19056. } else {
  19057. this.mindNetWorkCount++;
  19058. a = this.mindNetWorkCount;
  19059. this.toolsCount(a, t);
  19060. }
  19061. window.topU.postMessage(
  19062. {
  19063. tools: "7",
  19064. cid: this.id,
  19065. stage: this.courseType,
  19066. task: this.taskCount,
  19067. tool: i,
  19068. },
  19069. "*"
  19070. );
  19071. } else if (t == 16) {
  19072. if (this.workCount > 0) {
  19073. this.updateCount(this.workCount, t);
  19074. } else {
  19075. this.workCount++;
  19076. a = this.workCount;
  19077. this.toolsCount(a, t);
  19078. }
  19079. this.dialogVisible = true;
  19080. } else if (t == 50) {
  19081. if (this.tType == 2) {
  19082. this.$message.error("不支持学生使用");
  19083. return;
  19084. }
  19085. this.plworkFile = [];
  19086. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19087. if (!this.uploadCid) {
  19088. this.$message.error(
  19089. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19090. );
  19091. return;
  19092. }
  19093. // this.uploadCid =
  19094. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19095. // index
  19096. // ].toolChoose[i].uploadJson[0];
  19097. this.selectUploadStudent(2);
  19098. } else if (t == 8) {
  19099. if (this.libraryCount > 0) {
  19100. this.updateCount(this.libraryCount, t);
  19101. } else {
  19102. this.libraryCount++;
  19103. a = this.libraryCount;
  19104. this.toolsCount(a, t);
  19105. }
  19106. window.topU.postMessage({ tools: "8" }, "*");
  19107. } else if (t == 17) {
  19108. if (this.libraryCount > 0) {
  19109. this.updateCount(this.libraryCount, t);
  19110. } else {
  19111. this.libraryCount++;
  19112. a = this.libraryCount;
  19113. this.toolsCount(a, t);
  19114. }
  19115. window.topU.postMessage({ tools: "17" }, "*");
  19116. } else if (t == 18) {
  19117. if (this.trainCount > 0) {
  19118. this.updateCount(this.trainCount, t);
  19119. } else {
  19120. this.trainCount++;
  19121. a = this.trainCount;
  19122. this.toolsCount(a, t);
  19123. }
  19124. window.topU.postMessage({ tools: "18" }, "*");
  19125. } else if (t == 10) {
  19126. if (this.timeCount > 0) {
  19127. this.updateCount(this.timeCount, t);
  19128. } else {
  19129. this.timeCount++;
  19130. a = this.timeCount;
  19131. this.toolsCount(a, t);
  19132. }
  19133. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19134. .taskJson[index].toolChoose[i].preTime
  19135. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19136. .toolChoose[i].preTime
  19137. : "";
  19138. this.timeDialogVisible = true;
  19139. } else if (t == 15) {
  19140. this.answerQ = "";
  19141. this.questionAnswer = "";
  19142. if (this.answerCount > 0) {
  19143. this.updateCount(this.answerCount, t);
  19144. } else {
  19145. this.answerCount++;
  19146. a = this.answerCount;
  19147. this.toolsCount(a, t);
  19148. }
  19149. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19150. .taskJson[index].toolChoose[i].answerQ
  19151. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19152. .toolChoose[i].answerQ
  19153. : "";
  19154. this.answerDialogVisible = true;
  19155. } else if (t == 21) {
  19156. window.topU.postMessage({ tools: "21" }, "*");
  19157. } else if (t == 22) {
  19158. window.topU.postMessage({ tools: "22" }, "*");
  19159. } else if (t == 23) {
  19160. window.topU.postMessage({ tools: "23" }, "*");
  19161. } else if (t == 24) {
  19162. window.topU.postMessage({ tools: "24" }, "*");
  19163. } else if (t == 25) {
  19164. window.topU.postMessage({ tools: "25" }, "*");
  19165. } else if (t == 31) {
  19166. window.topU.postMessage({ tools: "31" }, "*");
  19167. } else if (t == 28) {
  19168. window.topU.postMessage({ tools: "28" }, "*");
  19169. } else if (t == 37) {
  19170. window.topU.postMessage({ tools: "37" }, "*");
  19171. } else if (t == 38) {
  19172. window.topU.postMessage({ tools: "38" }, "*");
  19173. } else if (t == 39) {
  19174. window.topU.postMessage({ tools: "39" }, "*");
  19175. } else if (t == 32) {
  19176. window.topU.postMessage({ tools: "32" }, "*");
  19177. } else if (t == 66) {
  19178. window.topU.postMessage({ tools: "66" }, "*");
  19179. } else if (t == 67) {
  19180. window.topU.postMessage({ tools: "67" }, "*");
  19181. } else if (t == 68) {
  19182. window.topU.postMessage({ tools: "68" }, "*");
  19183. } else if (t == 57) {
  19184. // window.topU.postMessage({ tools: "57" }, "*");
  19185. window.topU.postMessage(
  19186. {
  19187. tools: "57u",
  19188. cid: this.id,
  19189. stage: this.courseType,
  19190. task: this.taskCount,
  19191. tool: i,
  19192. },
  19193. "*"
  19194. );
  19195. } else if (t == 58) {
  19196. window.topU.postMessage({ tools: "58" }, "*");
  19197. } else if (t == 59) {
  19198. window.topU.postMessage({ tools: "59" }, "*");
  19199. } else if (t == 60) {
  19200. window.topU.postMessage({ tools: "60" }, "*");
  19201. } else if (t == 61) {
  19202. window.topU.postMessage({ tools: "61" }, "*");
  19203. } else if (t == 63) {
  19204. window.topU.postMessage({ tools: "63" }, "*");
  19205. } else if (t == 71) {
  19206. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19207. // this.$message.error("该工具不可使用");
  19208. // return
  19209. // }
  19210. window.topU.postMessage({ tools: "71" }, "*");
  19211. } else if (t == 72) {
  19212. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19213. .taskJson[index].toolChoose[i].appJson
  19214. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19215. .toolChoose[i].appJson
  19216. : "";
  19217. if(!item || !item.url){
  19218. this.$message.error("应用连接为空, 请到课程管理中添加");
  19219. return;
  19220. }
  19221. if (!document.fullscreenElement) {
  19222. this.enterFullScreen();
  19223. }
  19224. this.$refs.appStoreC.getData(item.url,this.userid)
  19225. // window.open(item.url, "_blank");
  19226. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19227. } else if (t == 69) {
  19228. if (this.worksStudent[i].length) {
  19229. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19230. if (this.userid == this.worksStudent[i][k].userid) {
  19231. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19232. break;
  19233. } else {
  19234. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19235. }
  19236. }
  19237. } else {
  19238. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19239. }
  19240. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19241. .taskJson[index].toolChoose[i].englishList
  19242. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19243. .toolChoose[i].englishList
  19244. : {};
  19245. this.englishToolIndex = i;
  19246. this.myAnList = this.myAnswerList1;
  19247. this.engDialogVisible = true;
  19248. } else if (t == 70) {
  19249. if (this.worksStudent[i].length) {
  19250. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19251. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19252. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19253. break;
  19254. } else {
  19255. this.englishVoiceJsonWork = [];
  19256. }
  19257. }
  19258. } else {
  19259. this.englishVoiceJsonWork = [];
  19260. }
  19261. let englishVoiceJson = {}
  19262. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19263. .taskJson[index].toolChoose[i].englishVoiceJson
  19264. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19265. .toolChoose[i].englishVoiceJson
  19266. : {};
  19267. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19268. this.EnglishVoiceDialog = true;
  19269. } else if (t == 65) {
  19270. if (this.tType == 2) {
  19271. this.$message.error("不支持学生使用");
  19272. return;
  19273. }
  19274. this.uploadCid = this.tcid;
  19275. if (!this.uploadCid) {
  19276. this.$message.error(
  19277. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19278. );
  19279. return;
  19280. }
  19281. this.selectPickStudent();
  19282. } else if (t == 26) {
  19283. window.topU.postMessage(
  19284. {
  19285. tools: "26",
  19286. cid: this.id,
  19287. stage: this.courseType,
  19288. task: this.taskCount,
  19289. tool: i,
  19290. },
  19291. "*"
  19292. );
  19293. } else if (t == 40) {
  19294. if (this.evalCount > 0) {
  19295. this.updateCount(this.evalCount, t);
  19296. } else {
  19297. this.evalCount++;
  19298. a = this.evalCount;
  19299. this.toolsCount(a, t);
  19300. }
  19301. this.eScore = { eBzText: "", eStar: [] };
  19302. if (this.worksStudent[i].length) {
  19303. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19304. if (this.userid == this.worksStudent[i][k].userid) {
  19305. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19306. this.rateJson =
  19307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19308. index
  19309. ].toolChoose[i].rateJson;
  19310. break;
  19311. } else {
  19312. this.rateJson =
  19313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19314. index
  19315. ].toolChoose[i].rateJson;
  19316. }
  19317. }
  19318. } else {
  19319. this.rateJson =
  19320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19321. index
  19322. ].toolChoose[i].rateJson;
  19323. }
  19324. this.isStar = false;
  19325. this.studentEvalDialogVisible = true;
  19326. } else if (t == 41) {
  19327. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19328. .taskJson[index].toolChoose[i].selectJson
  19329. ? JSON.parse(
  19330. JSON.stringify(
  19331. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19332. index
  19333. ].toolChoose[i].selectJson
  19334. )
  19335. )
  19336. : { url: "", select: [], answer: [] };
  19337. if (this.worksStudent[i].length) {
  19338. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19339. if (this.userid == this.worksStudent[i][k].userid) {
  19340. var a = this.worksStudent[i][k].works.split(",");
  19341. for (var ki = 0; ki < a.length; ki++) {
  19342. a[ki] = parseInt(a[ki]);
  19343. }
  19344. this.selectAnswer = {
  19345. answer: a,
  19346. stu: this.worksStudent[i][k].sName,
  19347. };
  19348. break;
  19349. } else {
  19350. this.selectAnswer = { answer: [], stu: "" };
  19351. }
  19352. }
  19353. } else {
  19354. this.selectAnswer = { answer: [], stu: "" };
  19355. }
  19356. this.isSelect = false;
  19357. this.dialogVisibleSelect = true;
  19358. } else if (t == 44) {
  19359. window.topU.postMessage({ tools: "44" }, "*");
  19360. } else if (t == 47) {
  19361. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19362. .taskJson[index].toolChoose[i].sentenceList
  19363. ? JSON.parse(
  19364. JSON.stringify(
  19365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19366. index
  19367. ].toolChoose[i].sentenceList
  19368. )
  19369. )
  19370. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19371. for (var q = 0; q < this.sentenceList.length; q++) {
  19372. this.sentenceList[q].chooseSenList = [];
  19373. this.sentenceList[q].addChangeSen = [];
  19374. this.sentenceList[q].addChangeSen = JSON.parse(
  19375. JSON.stringify(this.sentenceList[q].addSentence)
  19376. );
  19377. this.sentenceList[q].chooseSenList.length =
  19378. this.sentenceList[q].rightAnswer.length;
  19379. }
  19380. this.dialogVisibleSentence = true;
  19381. } else if (t == 48) {
  19382. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19383. .taskJson[index].toolChoose[i].tableJson
  19384. ? JSON.parse(
  19385. JSON.stringify(
  19386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19387. index
  19388. ].toolChoose[i].tableJson
  19389. )
  19390. )
  19391. : { text: "" };
  19392. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19393. if (this.worksStudent[i].length) {
  19394. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19395. if (this.userid == this.worksStudent[i][k].userid) {
  19396. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19397. break;
  19398. }
  19399. }
  19400. }
  19401. this.dialogVisibleTable = true;
  19402. } else if (t == 52) {
  19403. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19404. .taskJson[index].toolChoose[i].wordJson
  19405. ? JSON.parse(
  19406. JSON.stringify(
  19407. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19408. index
  19409. ].toolChoose[i].wordJson
  19410. )
  19411. )
  19412. : { text: "" };
  19413. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19414. if (this.worksStudent[i].length) {
  19415. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19416. if (this.userid == this.worksStudent[i][k].userid) {
  19417. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19418. break;
  19419. }
  19420. }
  19421. }
  19422. this.dialogVisibleWord = true;
  19423. } else if (t == 49) {
  19424. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19425. return
  19426. }
  19427. this.groupJson =
  19428. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19429. index
  19430. ].toolChoose[i].groupJson;
  19431. this.islock = this.groupJson.islock == 1 ? true : false;
  19432. this.dialogVisibleGroup = true;
  19433. } else if (t == 62) {
  19434. this.videoType = 0;
  19435. this.videoJson = {};
  19436. this.videoJson =
  19437. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19438. index
  19439. ].toolChoose[i].videoJson;
  19440. this.dialogVisibleVideo = true;
  19441. }
  19442. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19443. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19444. },
  19445. teacherWorkSubmit(t, i, index, s) {
  19446. console.log('t',t);
  19447. if(t == 72) return
  19448. this.sStudent = s;
  19449. this.toolindex = i;
  19450. this.sTool = t;
  19451. if (this.tType !== "1" && this.tType !== "4") {
  19452. return;
  19453. }
  19454. if (t == 16 || t == 32 || t == 50) {
  19455. this.dialogVisibleWorks = true;
  19456. } else if (t == 15) {
  19457. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19458. .taskJson[index].toolChoose[i].answerQ
  19459. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19460. .toolChoose[i].answerQ
  19461. : "";
  19462. this.questionAnswer = "";
  19463. this.answerDialogVisibleTeacher = true; //问答
  19464. } else if (t == 52) {
  19465. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19466. .taskJson[index].toolChoose[i].wordJson
  19467. ? JSON.parse(
  19468. JSON.stringify(
  19469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19470. index
  19471. ].toolChoose[i].wordJson
  19472. )
  19473. )
  19474. : { text: "" };
  19475. if (this.worksStudent[i].length) {
  19476. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19477. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19478. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19479. break;
  19480. }
  19481. }
  19482. }
  19483. this.dialogVisibleWordTeacher = true; //文档
  19484. } else if (t == 4) {
  19485. this.radio = [];
  19486. this.noteName = "";
  19487. this.isAnswer = false;
  19488. if (this.askCount > 0) {
  19489. this.updateCount(this.askCount, t);
  19490. } else {
  19491. this.askCount++;
  19492. a = this.askCount;
  19493. this.toolsCount(a, t);
  19494. }
  19495. if (!this.dialogVisible2) {
  19496. this.askJson.askJson =
  19497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19498. index
  19499. ].toolChoose[i].askJson;
  19500. this.askJson.askTitle =
  19501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19502. index
  19503. ].toolChoose[i].askTitle;
  19504. this.askJson.askCount =
  19505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19506. index
  19507. ].toolChoose[i].askCount;
  19508. } else {
  19509. this.askJson.askJson = this.chapTools.askJson.askJson;
  19510. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19511. this.askJson.askCount = this.chapTools.askJson.askCount;
  19512. }
  19513. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19514. if (this.askJson.askJson[k].type == "2") {
  19515. this.radio.push([]);
  19516. } else {
  19517. this.radio.push("");
  19518. }
  19519. }
  19520. this.dialogVisible5Teacher = true;
  19521. } else if (t == 45) {
  19522. this.noteName = "";
  19523. this.radio = [];
  19524. this.isAnswer = false;
  19525. if (this.askCount > 0) {
  19526. this.updateCount(this.askCount, t);
  19527. } else {
  19528. this.askCount++;
  19529. a = this.askCount;
  19530. this.toolsCount(a, t);
  19531. }
  19532. this.testJson =
  19533. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19534. index
  19535. ].toolChoose[i].testJson;
  19536. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19537. if (this.testJson.testJson[k].type == "2") {
  19538. this.radio.push([]);
  19539. } else {
  19540. this.radio.push("");
  19541. }
  19542. }
  19543. this.dialogVisibleChoiceTeacher = true;
  19544. } else if (t == 41) {
  19545. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19546. .taskJson[index].toolChoose[i].selectJson
  19547. ? JSON.parse(
  19548. JSON.stringify(
  19549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19550. index
  19551. ].toolChoose[i].selectJson
  19552. )
  19553. )
  19554. : { url: "", select: [], answer: [] };
  19555. if (this.worksStudent[i].length) {
  19556. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19557. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19558. var a = this.worksStudent[i][k].works.split(",");
  19559. for (var ki = 0; ki < a.length; ki++) {
  19560. a[ki] = parseInt(a[ki]);
  19561. }
  19562. this.selectAnswer = {
  19563. answer: a,
  19564. stu: this.worksStudent[i][k].sName,
  19565. };
  19566. break;
  19567. } else {
  19568. this.selectAnswer = { answer: [], stu: "" };
  19569. }
  19570. }
  19571. } else {
  19572. this.selectAnswer = { answer: [], stu: "" };
  19573. }
  19574. this.isSelect = false;
  19575. this.dialogVisibleSelectTeacher = true;
  19576. } else if (t == 47) {
  19577. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19578. .taskJson[index].toolChoose[i].sentenceList
  19579. ? JSON.parse(
  19580. JSON.stringify(
  19581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19582. index
  19583. ].toolChoose[i].sentenceList
  19584. )
  19585. )
  19586. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19587. for (var q = 0; q < this.sentenceList.length; q++) {
  19588. this.sentenceList[q].chooseSenList = [];
  19589. this.sentenceList[q].addChangeSen = [];
  19590. this.sentenceList[q].addChangeSen = JSON.parse(
  19591. JSON.stringify(this.sentenceList[q].addSentence)
  19592. );
  19593. this.sentenceList[q].chooseSenList.length =
  19594. this.sentenceList[q].rightAnswer.length;
  19595. }
  19596. this.dialogVisibleSentenceTeacher = true;
  19597. } else if (t == 48) {
  19598. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19599. .taskJson[index].toolChoose[i].tableJson
  19600. ? JSON.parse(
  19601. JSON.stringify(
  19602. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19603. index
  19604. ].toolChoose[i].tableJson
  19605. )
  19606. )
  19607. : { text: "" };
  19608. if (this.worksStudent[i].length) {
  19609. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19610. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19611. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19612. break;
  19613. }
  19614. }
  19615. }
  19616. this.dialogVisibleTableTeacher = true;
  19617. } else if (t == 40) {
  19618. if (this.evalCount > 0) {
  19619. this.updateCount(this.evalCount, t);
  19620. } else {
  19621. this.evalCount++;
  19622. a = this.evalCount;
  19623. this.toolsCount(a, t);
  19624. }
  19625. this.eScore = { eBzText: "", eStar: [] };
  19626. if (this.worksStudent[i].length) {
  19627. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19628. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19629. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19630. this.rateJson =
  19631. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19632. index
  19633. ].toolChoose[i].rateJson;
  19634. break;
  19635. } else {
  19636. this.rateJson =
  19637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19638. index
  19639. ].toolChoose[i].rateJson;
  19640. }
  19641. }
  19642. } else {
  19643. this.rateJson =
  19644. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19645. index
  19646. ].toolChoose[i].rateJson;
  19647. }
  19648. this.isStar = false;
  19649. this.studentEvalDialogVisibleTeacher = true;
  19650. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19651. window.topU.postMessage(
  19652. {
  19653. tools: t + "teacher",
  19654. cid: this.id,
  19655. stage: this.courseType,
  19656. task: this.taskCount,
  19657. tool: i,
  19658. student: this.sStudent,
  19659. },
  19660. "*"
  19661. );
  19662. }else if (t == 72) {
  19663. if (!document.fullscreenElement) {
  19664. this.enterFullScreen();
  19665. }
  19666. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19667. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19668. }
  19669. },
  19670. openCocoPi(tool, i, uid, uname) {
  19671. let student = {
  19672. userid: uid,
  19673. student: uname,
  19674. };
  19675. if (tool == 57) {
  19676. window.topU.postMessage(
  19677. {
  19678. tools: tool + "teacher",
  19679. cid: this.id,
  19680. stage: this.courseType,
  19681. task: this.taskCount,
  19682. tool: i,
  19683. student: student,
  19684. },
  19685. "*"
  19686. );
  19687. }
  19688. },
  19689. setRightAnswer(s, i, j) {
  19690. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19691. if (
  19692. this.sentenceList[i].chooseSenList[q] == undefined ||
  19693. this.sentenceList[i].chooseSenList[q] == ""
  19694. ) {
  19695. this.sentenceList[i].chooseSenList[q] = s;
  19696. this.sentenceList[i].addChangeSen[j] = "";
  19697. break;
  19698. }
  19699. }
  19700. this.$forceUpdate();
  19701. },
  19702. returnCard(r, i, j) {
  19703. var a = this.sentenceList[i].addSentence.indexOf(r);
  19704. this.sentenceList[i].chooseSenList[j] = "";
  19705. this.sentenceList[i].addChangeSen[a] = r;
  19706. this.$forceUpdate();
  19707. },
  19708. // addSentenceTool() {
  19709. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19710. // this.taskCount
  19711. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19712. // this.sentenceList = [
  19713. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19714. // ];
  19715. // this.dialogVisibleSentence = false;
  19716. // },
  19717. toolsCount(a, t) {
  19718. let params = {
  19719. cid: this.id,
  19720. chid: this.courseType,
  19721. uid: this.userid,
  19722. tid: t,
  19723. count: a,
  19724. };
  19725. this.ajax
  19726. .get(this.$store.state.api + "insertToolsCount", params)
  19727. .then((res) => {
  19728. this.selectCount();
  19729. })
  19730. .catch((err) => {
  19731. console.error(err);
  19732. });
  19733. },
  19734. updateCount(c, t) {
  19735. c++;
  19736. let params = {
  19737. cid: this.id,
  19738. chid: this.courseType,
  19739. uid: this.userid,
  19740. tid: t,
  19741. count: c,
  19742. };
  19743. this.ajax
  19744. .get(this.$store.state.api + "updateToolsCount", params)
  19745. .then((res) => {
  19746. this.selectCount();
  19747. })
  19748. .catch((err) => {
  19749. console.error(err);
  19750. });
  19751. },
  19752. checkEva() {
  19753. if (this.evalua != "") {
  19754. for (var i = 0; i < this.evaJuri.length; i++) {
  19755. if (this.evalua == this.evaJuri[i].id) {
  19756. this.eTitle = this.evaJuri[i].title;
  19757. this.eJson = JSON.parse(this.evaJuri[i].content);
  19758. }
  19759. }
  19760. this.$forceUpdate();
  19761. setTimeout(() => {
  19762. this.setMindData();
  19763. }, 0);
  19764. }
  19765. },
  19766. selectEva() {
  19767. let params = {
  19768. oid: this.oid,
  19769. };
  19770. this.ajax
  19771. .get(this.$store.state.api + "selectAllEvaluation", params)
  19772. .then((res) => {
  19773. this.evaJuri = res.data[0];
  19774. })
  19775. .catch((err) => {
  19776. console.error(err);
  19777. });
  19778. },
  19779. setMindData() {
  19780. this.data.data = [];
  19781. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19782. let _eJson = Object.keys(this.eJson);
  19783. let _e = this.eJson;
  19784. for (let i = 0; i < _eJson.length; i++) {
  19785. let element = _e[_eJson[i]];
  19786. this.data.data.push({
  19787. id: element.id,
  19788. parentid: "root",
  19789. topic: element.name,
  19790. });
  19791. let _eJsonc = Object.keys(element.child);
  19792. let _e2 = element.child;
  19793. for (let j = 0; j < _eJsonc.length; j++) {
  19794. let _ec = _e2[_eJsonc[j]];
  19795. this.data.data.push({
  19796. id: _ec.id,
  19797. parentid: element.id,
  19798. topic: _ec.name,
  19799. });
  19800. let _eJsonz = Object.keys(_ec.child);
  19801. let _e3 = _ec.child;
  19802. for (let z = 0; z < _eJsonz.length; z++) {
  19803. let _ez = _e3[_eJsonz[z]];
  19804. this.data.data.push({
  19805. id: _ez.id,
  19806. parentid: _ec.id,
  19807. topic: _ez.name,
  19808. });
  19809. }
  19810. }
  19811. }
  19812. this.$forceUpdate();
  19813. },
  19814. checkFileFull(type, url) {
  19815. this.fullDialogVisible = true;
  19816. this.fulltype = type;
  19817. this.fullUrl = url;
  19818. },
  19819. async checkFileFull1(t, f) {
  19820. this.fullDialogVisible = true;
  19821. if (t == 6) {
  19822. this.fulltype = 1;
  19823. this.fullUrl = JSON.parse(JSON.stringify(f));
  19824. } else if (t == 8 ) {
  19825. this.fulltype = 2;
  19826. this.fullUrl = f.url;
  19827. }else if (t == 15) {
  19828. this.diffKey = new Date().getTime();
  19829. this.fulltype = 4;
  19830. this.fullUrl = f.url;
  19831. } else if (t == 16) {
  19832. this.fulltype = 16;
  19833. this.fullUrl = f.url;
  19834. } else if (
  19835. t == 3 &&
  19836. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19837. "PDF"
  19838. ) {
  19839. this.fulltype = 3;
  19840. this.fullUrl = f.url;
  19841. } else if (t == 3) {
  19842. this.fulltype = 2;
  19843. let _uuurl = await this.checkLink(f.url);
  19844. this.fullUrl =
  19845. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19846. }
  19847. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19848. },
  19849. openSname(n, id, i, uid) {
  19850. this.snameWid = id;
  19851. this.worksSName = n;
  19852. this.worksSid = uid == n ? "" : uid;
  19853. this.toolindex = i;
  19854. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19855. if (!this.uploadCid) {
  19856. this.$message.error(
  19857. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19858. );
  19859. return;
  19860. }
  19861. this.selectUploadStudent(1);
  19862. },
  19863. updateName() {
  19864. let params = {
  19865. n: this.worksSName,
  19866. cid: this.snameWid,
  19867. };
  19868. this.ajax
  19869. .get(this.$store.state.api + "updateCourseWorksName", params)
  19870. .then((res) => {
  19871. this.$message({
  19872. message: "修改成功",
  19873. type: "success",
  19874. });
  19875. this.dialogVisibleSname = false;
  19876. this.getCourseDetail(2);
  19877. this.snameWid = "";
  19878. this.worksSName = "";
  19879. })
  19880. .catch((err) => {
  19881. console.error(err);
  19882. });
  19883. },
  19884. downloadFile2(f) {
  19885. // const loading = this.$loading.service({
  19886. // background: "rgba(255, 255, 255, 0.7)",
  19887. // target: document.body,
  19888. // text: "文件加载中...",
  19889. // });
  19890. // let url2 = f.url;
  19891. // let _url2 = "";
  19892. // if (
  19893. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19894. // ) {
  19895. // _url2 = url2.split(
  19896. // "https://view.officeapps.live.com/op/view.aspx?src="
  19897. // )[1];
  19898. // } else {
  19899. // _url2 = url2;
  19900. // }
  19901. // let params = {
  19902. // url: _url2,
  19903. // name: f.name,
  19904. // };
  19905. // this.ajax
  19906. // .get(this.$store.state.api + "download", params)
  19907. // .then((res) => {
  19908. // loading.close();
  19909. // let content = res.data.data.data;
  19910. // let ab = new ArrayBuffer(content.length);
  19911. // let view = new Uint8Array(ab);
  19912. // for (var i = 0; i < content.length; ++i) {
  19913. // view[i] = content[i];
  19914. // }
  19915. // let elink = document.createElement("a");
  19916. // elink.download = f.name;
  19917. // elink.style.display = "none";
  19918. // let blob = new Blob([ab], {
  19919. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19920. // });
  19921. // elink.href = URL.createObjectURL(blob);
  19922. // document.body.appendChild(elink);
  19923. // elink.click();
  19924. // document.body.removeChild(elink);
  19925. // })
  19926. // .catch((err) => {
  19927. // loading.close();
  19928. // console.error(err);
  19929. // });
  19930. var credentials = {
  19931. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19932. secretAccessKey: "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",
  19933. }; //秘钥形式的登录上传
  19934. window.AWS.config.update(credentials);
  19935. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19936. let url2 = f.url;
  19937. let _url2 = "";
  19938. if (
  19939. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19940. ) {
  19941. _url2 = url2.split(
  19942. "https://view.officeapps.live.com/op/view.aspx?src="
  19943. )[1];
  19944. } else {
  19945. _url2 = url2;
  19946. }
  19947. let _this = this;
  19948. _this.downLoading = true
  19949. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19950. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19951. var params = {
  19952. Bucket: "ccrb",
  19953. Key: name
  19954. };
  19955. s3.getObject(params, function (err, data) {
  19956. _this.downLoading = false
  19957. if (err) console.log(err, err.stack); // an error occurred
  19958. else {
  19959. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19960. let a = document.createElement("a");
  19961. a.name = f.name;
  19962. a.href = url;
  19963. a.download = f.name;
  19964. a.click();
  19965. console.log(data);
  19966. } // sxuccessful response
  19967. });
  19968. return;
  19969. let url = f.url;
  19970. let _url = "";
  19971. if (
  19972. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19973. ) {
  19974. _url = url.split(
  19975. "https://view.officeapps.live.com/op/view.aspx?src="
  19976. )[1];
  19977. } else {
  19978. _url = url;
  19979. }
  19980. _this.downLoading = true
  19981. let x = new XMLHttpRequest();
  19982. x.open("GET", _url, true);
  19983. x.responseType = "blob";
  19984. x.onload = function () {
  19985. _this.downLoading = false
  19986. let url = window.URL.createObjectURL(new Blob([x.response]));
  19987. let a = document.createElement("a");
  19988. a.name = f.name;
  19989. a.href = url;
  19990. a.download = f.name;
  19991. a.click();
  19992. };
  19993. x.send();
  19994. },
  19995. downloadFile(url,uid) {
  19996. if (this.tType == 1 || this.userid == uid) {
  19997. // this.$message.info("查看作业-下载文件")
  19998. var credentials = {
  19999. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20000. secretAccessKey: "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",
  20001. }; //秘钥形式的登录上传
  20002. window.AWS.config.update(credentials);
  20003. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20004. let url2 = url;
  20005. let _url2 = "";
  20006. if (
  20007. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20008. ) {
  20009. _url2 = url2.split(
  20010. "https://view.officeapps.live.com/op/view.aspx?src="
  20011. )[1];
  20012. } else {
  20013. _url2 = url2;
  20014. }
  20015. const loading2 = this.$loading.service({
  20016. background: "rgba(255, 255, 255, 0.7)",
  20017. target: document.body,
  20018. text: "文件加载中...",
  20019. });
  20020. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20021. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20022. var params = {
  20023. Bucket: "ccrb",
  20024. Key: name
  20025. };
  20026. s3.getObject(params, function (err, data) {
  20027. loading2.close();
  20028. if (err) console.log(err, err.stack); // an error occurred
  20029. else {
  20030. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20031. let a = document.createElement("a");
  20032. a.name = name;
  20033. a.href = url;
  20034. a.download = name;
  20035. a.click();
  20036. console.log(data);
  20037. } // sxuccessful response
  20038. });
  20039. }
  20040. return;
  20041. let _this = this;
  20042. let _url = "";
  20043. if (
  20044. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20045. ) {
  20046. _url = url.split(
  20047. "https://view.officeapps.live.com/op/view.aspx?src="
  20048. )[1];
  20049. } else {
  20050. _url = url;
  20051. }
  20052. const x = new XMLHttpRequest();
  20053. x.open("GET", _url, true);
  20054. x.responseType = "blob";
  20055. // this.downLoading = true
  20056. const loading = _this.$loading.service({
  20057. background: "rgba(255, 255, 255, 0.7)",
  20058. target: document.body,
  20059. text: "文件加载中...",
  20060. });
  20061. // _this.$message.success("文件下载中...");
  20062. x.onload = function (e) {
  20063. loading.close();
  20064. let content = x.response;
  20065. let elink = document.createElement("a");
  20066. elink.download = decodeURI(
  20067. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20068. );
  20069. elink.style.display = "none";
  20070. let blob = new Blob([content]);
  20071. elink.href = URL.createObjectURL(blob);
  20072. document.body.appendChild(elink);
  20073. elink.click();
  20074. document.body.removeChild(elink);
  20075. };
  20076. x.send();
  20077. },
  20078. openLine(url) {
  20079. window.open(url);
  20080. },
  20081. resize() {
  20082. if (document.getElementsByClassName("box_course").length) {
  20083. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20084. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20085. if (this.showType == 2 || this.showType == 3) {
  20086. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20087. document.getElementsByClassName("navBox")[0].style.height =
  20088. a - 40 + 0+ "px";
  20089. }
  20090. } else {
  20091. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20092. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20093. }
  20094. }
  20095. }
  20096. this.Stbodywidth =
  20097. document.getElementsByClassName("student_body").length &&
  20098. document.getElementsByClassName("student_body")[0].offsetWidth;
  20099. },
  20100. closeDraw() {
  20101. this.bg = null;
  20102. this.drawShow = false;
  20103. },
  20104. showPicturePaint(url) {
  20105. let params = {
  20106. img: url,
  20107. };
  20108. this.ajax
  20109. .get(this.$store.state.api + "imgToBase64", params)
  20110. .then((res) => {
  20111. this.drawShow = true;
  20112. this.bg = res.data[0].img;
  20113. })
  20114. .catch((err) => {
  20115. console.error(err);
  20116. });
  20117. },
  20118. addImgDraw(base64) {
  20119. let file = { name: "批注图.png" };
  20120. let img = this.dataUrlToFile(base64, file);
  20121. this.beforeUpload1(img, 5);
  20122. },
  20123. addImgDrawImG(url) {
  20124. // console.log(url);
  20125. let params = [
  20126. {
  20127. wid: this.commentDetail.wid,
  20128. img: url,
  20129. },
  20130. ];
  20131. this.ajax
  20132. .post(this.$store.state.api + "updateCourseWorks", params)
  20133. .then((res) => {
  20134. this.$message({
  20135. message: "提交成功",
  20136. type: "success",
  20137. });
  20138. this.drawShow = false;
  20139. this.bg = "";
  20140. this.selectSWorks();
  20141. this.selectStudent();
  20142. })
  20143. .catch((err) => {
  20144. this.$message.error("提交失败");
  20145. console.error(err);
  20146. });
  20147. },
  20148. deletePicturePaint() {
  20149. this.$confirm("确定删除此批注吗?", "提示", {
  20150. confirmButtonText: "确定",
  20151. cancelButtonText: "取消",
  20152. type: "warning",
  20153. })
  20154. .then(() => {
  20155. let params = [
  20156. {
  20157. wid: this.commentDetail.wid,
  20158. img: "",
  20159. },
  20160. ];
  20161. this.ajax
  20162. .post(this.$store.state.api + "updateCourseWorks", params)
  20163. .then((res) => {
  20164. this.$message({
  20165. message: "删除成功",
  20166. type: "success",
  20167. });
  20168. this.selectSWorks();
  20169. this.selectStudent();
  20170. })
  20171. .catch((err) => {
  20172. this.$message.error("删除失败");
  20173. console.error(err);
  20174. });
  20175. })
  20176. .catch(() => {});
  20177. },
  20178. getAudioVideo(constraintsData) {
  20179. if (navigator.mediaDevices === undefined) {
  20180. navigator.mediaDevices = {};
  20181. }
  20182. if (navigator.mediaDevices.getUserMedia === undefined) {
  20183. navigator.mediaDevices.getUserMedia = function (constraints) {
  20184. // 首先,如果有getUserMedia的话,就获得它
  20185. var getUserMedia =
  20186. navigator.getUserMedia ||
  20187. navigator.webkitGetUserMedia ||
  20188. navigator.mozGetUserMedia ||
  20189. navigator.msGetUserMedia;
  20190. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20191. if (!getUserMedia) {
  20192. return Promise.reject({ code: 404 });
  20193. }
  20194. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20195. return new Promise(function (resolve, reject) {
  20196. getUserMedia.call(navigator, constraints, resolve, reject);
  20197. });
  20198. };
  20199. }
  20200. return navigator.mediaDevices.getUserMedia(constraintsData);
  20201. },
  20202. /**
  20203. * 开始录制
  20204. */
  20205. startRecording(callback) {
  20206. let _function = (screenStream) => {
  20207. this.addStreamStopListener(screenStream, () => {
  20208. console.log("流停止监听");
  20209. this.stopRecording();
  20210. this.$emit("streamStop", {});
  20211. // this.stopRecording();
  20212. });
  20213. var options = {
  20214. type: "video",
  20215. mimeType: "video/webm",
  20216. disableLogs: false,
  20217. getNativeBlob: false, // enable it for longer recordings
  20218. ignoreMutedMedia: false,
  20219. };
  20220. // this.video.srcObject = screenStream;
  20221. this.recorder = RecordRTC(screenStream, options);
  20222. this.recorder.startRecording();
  20223. this.recorder.screen = screenStream;
  20224. this.videoStart = true;
  20225. // callback(true);
  20226. };
  20227. this.getAudioVideo({ audio: true })
  20228. .then((res) => {
  20229. this.captureScreen(_function, true);
  20230. console.log("已点击允许,开启成功");
  20231. })
  20232. .catch((err) => {
  20233. // console.log('浏览器不支持,请更换浏览器')
  20234. // } else {
  20235. this.captureScreen(_function, false);
  20236. console.log("请检查是否存在麦克风");
  20237. });
  20238. },
  20239. /**
  20240. * 停止录制
  20241. */
  20242. stopRecording(callback) {
  20243. this.recorder.stopRecording(() => {
  20244. // this.video.src = this.video.srcObject = null;
  20245. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20246. const url = URL.createObjectURL(this.recorder.getBlob());
  20247. const a = document.createElement("a"); //this.fileName+
  20248. let videoFile = new File(
  20249. [this.recorder.getBlob()],
  20250. this.courseDetail.title + "录屏.mp4",
  20251. {
  20252. type: "video/mp4",
  20253. }
  20254. );
  20255. let downloadUrl = URL.createObjectURL(videoFile);
  20256. if(this.$refs.classRoomHelperRef){
  20257. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20258. }
  20259. document.body.appendChild(a);
  20260. a.style.display = "none";
  20261. a.href = url;
  20262. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20263. a.click();
  20264. this.recorder.screen.stop();
  20265. this.recorder.destroy();
  20266. this.recorder = null;
  20267. this.videoStart = false;
  20268. // callback(false);
  20269. });
  20270. },
  20271. //初始化
  20272. captureScreen(callback, type) {
  20273. if (navigator.getDisplayMedia) {
  20274. //录制结束,文件下载
  20275. navigator
  20276. .getDisplayMedia({
  20277. video: true,
  20278. })
  20279. .then((screenStream) => {
  20280. if (type) {
  20281. navigator.mediaDevices
  20282. .getUserMedia({ audio: true })
  20283. .then((mic) => {
  20284. screenStream.addTrack(mic.getTracks()[0]);
  20285. callback(screenStream);
  20286. });
  20287. } else {
  20288. callback(screenStream);
  20289. }
  20290. })
  20291. .catch(function (error) {
  20292. console.log("error", error);
  20293. });
  20294. } else if (navigator.mediaDevices.getDisplayMedia) {
  20295. navigator.mediaDevices
  20296. .getDisplayMedia({
  20297. video: true,
  20298. })
  20299. .then((screenStream) => {
  20300. if (type) {
  20301. navigator.mediaDevices
  20302. .getUserMedia({ audio: true })
  20303. .then((mic) => {
  20304. screenStream.addTrack(mic.getTracks()[0]);
  20305. callback(screenStream);
  20306. });
  20307. } else {
  20308. callback(screenStream);
  20309. }
  20310. })
  20311. .catch(function (error) {
  20312. console.log("error", error);
  20313. });
  20314. } else {
  20315. var error = "getDisplayMedia API are not supported in this browser.";
  20316. console.log("error", error);
  20317. alert(error);
  20318. }
  20319. },
  20320. //流监听
  20321. addStreamStopListener(stream, callback) {
  20322. stream.addEventListener(
  20323. "ended",
  20324. function () {
  20325. callback();
  20326. callback = function () {};
  20327. },
  20328. false
  20329. );
  20330. stream.addEventListener(
  20331. "inactive",
  20332. function () {
  20333. callback();
  20334. callback = function () {};
  20335. },
  20336. false
  20337. );
  20338. stream.getTracks().forEach(function (track) {
  20339. track.addEventListener(
  20340. "ended",
  20341. function () {
  20342. callback();
  20343. callback = function () {};
  20344. },
  20345. false
  20346. );
  20347. track.addEventListener(
  20348. "inactive",
  20349. function () {
  20350. callback();
  20351. callback = function () {};
  20352. },
  20353. false
  20354. );
  20355. });
  20356. },
  20357. updateGroup() {
  20358. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20359. this.dialogVisibleGroup2 = true;
  20360. },
  20361. numberPan() {
  20362. if (
  20363. /[^\d]/.test(this.groupJson.number) ||
  20364. this.groupJson.number < 2 ||
  20365. this.groupJson.number > 10
  20366. ) {
  20367. this.$message.error("请输入2-10的数字");
  20368. this.groupJson.number = "";
  20369. }
  20370. },
  20371. updateGroupJson() {
  20372. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20373. if (
  20374. this.groupStudentUid[this.toolindex][i].length >
  20375. this.groupJson2.number
  20376. ) {
  20377. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20378. return;
  20379. }
  20380. }
  20381. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20382. this.islock = this.groupJson.islock == 1 ? true : false;
  20383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20384. this.taskCount
  20385. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20386. let params = [
  20387. {
  20388. cid: this.id,
  20389. chapters: JSON.stringify(this.chapInfoList),
  20390. uid: this.userid,
  20391. unitIndex: this.courseType,
  20392. },
  20393. ];
  20394. this.ajax
  20395. .post(this.$store.state.api + "updateWorkNew4", params)
  20396. .then((res) => {
  20397. this.$message.success("设置成功");
  20398. this.getCourseDetail(2);
  20399. this.dialogVisibleGroup2 = false;
  20400. this.groupJson2 = {};
  20401. this.$forceUpdate();
  20402. })
  20403. .catch((err) => {
  20404. this.$message.error("网络不佳");
  20405. console.error(err);
  20406. });
  20407. },
  20408. lockChair() {
  20409. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20410. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20411. this.updateGroupJson();
  20412. },
  20413. selectGroup(index) {
  20414. this.getCourseDetail(2, index);
  20415. },
  20416. joinGroup(index) {
  20417. if (this.groupJson.islock == 2) {
  20418. this.$message.error("位置已被锁定,无法加入");
  20419. return;
  20420. }
  20421. if (
  20422. this.groupStudent[this.toolindex][index].length >
  20423. this.groupJson.number ||
  20424. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20425. ) {
  20426. this.$message.error("位置已满,无法加入");
  20427. return;
  20428. }
  20429. let params = [
  20430. {
  20431. cid: this.id,
  20432. stage: this.courseType,
  20433. task: this.taskCount,
  20434. tool: this.toolindex,
  20435. g: index,
  20436. uid: this.userid,
  20437. },
  20438. ];
  20439. this.ajax
  20440. .post(this.$store.state.api + "joinGroup", params)
  20441. .then((res) => {
  20442. this.$message.success("加入成功");
  20443. this.getCourseDetail(2);
  20444. })
  20445. .catch((err) => {
  20446. this.$message.error("网络不佳");
  20447. console.error(err);
  20448. });
  20449. },
  20450. exitGroup(id) {
  20451. if (this.groupJson.islock == 2) {
  20452. this.$message.error("位置已被锁定,无法退出");
  20453. return;
  20454. }
  20455. let params = [
  20456. {
  20457. gid: id,
  20458. },
  20459. ];
  20460. this.ajax
  20461. .post(this.$store.state.api + "exitGroup", params)
  20462. .then((res) => {
  20463. this.$message.success("退出成功");
  20464. this.getCourseDetail(2);
  20465. })
  20466. .catch((err) => {
  20467. this.$message.error("网络不佳");
  20468. console.error(err);
  20469. });
  20470. },
  20471. groupUpload(index, task, gindex) {
  20472. this.taskCount = task;
  20473. this.toolindex = index;
  20474. this.groupIndex = gindex;
  20475. this.dialogVisibleGroupWork = true;
  20476. },
  20477. updateGroupChair(user) {
  20478. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20479. el.label = index;
  20480. return index != user.group;
  20481. });
  20482. this.updateGroupUser = user;
  20483. this.dialogVisibleUpdateGroup = true;
  20484. },
  20485. updateChair() {
  20486. if (
  20487. this.groupStudent[this.toolindex][this.checkChair].length >
  20488. this.groupJson.number ||
  20489. this.groupStudent[this.toolindex][this.checkChair].length ==
  20490. this.groupJson.number
  20491. ) {
  20492. this.$message.error("位置已满,无法加入");
  20493. return;
  20494. }
  20495. let params = [
  20496. {
  20497. cid: this.id,
  20498. stage: this.courseType,
  20499. task: this.taskCount,
  20500. tool: this.toolindex,
  20501. g: this.checkChair,
  20502. uid: this.updateGroupUser.userid,
  20503. },
  20504. ];
  20505. this.ajax
  20506. .post(this.$store.state.api + "joinGroup", params)
  20507. .then((res) => {
  20508. this.$message.success("修改成功");
  20509. this.updateGroupUser = {};
  20510. this.checkChair = "";
  20511. this.updateGroupArray = {};
  20512. this.dialogVisibleUpdateGroup = false;
  20513. this.getCourseDetail(2);
  20514. })
  20515. .catch((err) => {
  20516. this.$message.error("网络不佳");
  20517. console.error(err);
  20518. });
  20519. },
  20520. deleteGroupChair(gindex) {
  20521. this.checkDeleteGroup = [];
  20522. this.deleteGroupUser = JSON.parse(
  20523. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20524. );
  20525. this.deleteGroupArray = this.groupJson.group[gindex];
  20526. this.groupIndex = gindex;
  20527. this.dialogVisibleDeleteGroup = true;
  20528. },
  20529. async deleteChair() {
  20530. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20531. const gid =
  20532. this.groupStudent[this.toolindex][this.groupIndex][
  20533. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20534. this.checkDeleteGroup[i]
  20535. )
  20536. ];
  20537. let params = [
  20538. {
  20539. gid: gid.id,
  20540. },
  20541. ];
  20542. var a = await this.deleteChairA(params);
  20543. if (i == this.checkDeleteGroup.length - 1) {
  20544. this.$message.success("退出成功");
  20545. this.dialogVisibleDeleteGroup = false;
  20546. this.deleteGroupUser = [];
  20547. this.deleteGroupArray = {};
  20548. this.groupIndex = "";
  20549. this.checkDeleteGroup = [];
  20550. this.getCourseDetail(2);
  20551. }
  20552. }
  20553. },
  20554. deleteChairA(params) {
  20555. return new Promise((resolve, reject) => {
  20556. this.ajax
  20557. .post(this.$store.state.api + "exitGroup", params)
  20558. .then((res) => {
  20559. resolve(1);
  20560. })
  20561. .catch((err) => {
  20562. this.$message.error("网络不佳");
  20563. console.error(err);
  20564. });
  20565. });
  20566. },
  20567. contract(i) {
  20568. if (this.isCloseList[i].isClose == 0) {
  20569. this.isCloseList[i].isClose = 1;
  20570. } else {
  20571. this.isCloseList[i].isClose = 0;
  20572. }
  20573. this.$forceUpdate();
  20574. },
  20575. openWordCloud(toolindex) {
  20576. this.wordCloudData = '';
  20577. let array = [];
  20578. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20579. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20580. array.push({ name: works });
  20581. }
  20582. if (this.isGroup) {
  20583. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20584. let works = this.courseGroup.group[i].works[toolindex];
  20585. for (var j = 0; j < works.length; j++) {
  20586. let answer = JSON.parse(works[j].works)[0].answer;
  20587. array.push({ name: answer });
  20588. }
  20589. }
  20590. }
  20591. let _result = ''
  20592. array.forEach(e=>{
  20593. _result +=e.name+','
  20594. })
  20595. this.wordCloudData = _result;
  20596. this.dialogVisibleWordCloud = true;
  20597. this.wordCloudKey += 1;
  20598. },
  20599. uploadWorks(i) {
  20600. this.$confirm("确定导出作业吗?", "提示", {
  20601. confirmButtonText: "确定",
  20602. cancelButtonText: "取消",
  20603. type: "warning",
  20604. })
  20605. .then(() => {
  20606. const loading = this.$loading.service({
  20607. background: "rgba(255, 255, 255, 0.7)",
  20608. target: document.body,
  20609. text: "文件加载中...",
  20610. });
  20611. const _worksStudent = this.worksStudent;
  20612. let url = [];
  20613. var counts = {};
  20614. for (var l = 0; l < _worksStudent[i].length; l++) {
  20615. var item = _worksStudent[i][l];
  20616. var name = item.sName;
  20617. if (!counts.hasOwnProperty(name)) {
  20618. counts[name] = 0;
  20619. } else {
  20620. counts[name]++;
  20621. }
  20622. if (counts[name] > 0) {
  20623. item.sName += " (" + counts[name] + ")";
  20624. }
  20625. }
  20626. for (var l = 0; l < _worksStudent[i].length; l++) {
  20627. var item = _worksStudent[i][l];
  20628. if (
  20629. item.works.indexOf(
  20630. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20631. ) !== -1 &&
  20632. item.works.indexOf("img") === -1
  20633. ) {
  20634. url.push({ name: item.sName, url: item.works });
  20635. }
  20636. }
  20637. // var toolList = [
  20638. // { name: "电子白板", tool: 1 },
  20639. // { name: "思维导图", tool: 3 },
  20640. // { name: "协同文档", tool: 6 },
  20641. // { name: "思维网格", tool: 7 },
  20642. // { name: "素材库", tool: 8 },
  20643. // { name: "学习资料", tool: 17 },
  20644. // { name: "便签", tool: 2 },
  20645. // { name: "问卷调查", tool: 4 },
  20646. // { name: "选择题", tool: 45 },
  20647. // { name: "倒计时", tool: 10 },
  20648. // { name: "问答", tool: 15 },
  20649. // { name: "课程设计", tool: 26 },
  20650. // { name: "训练服务器", tool: 18 },
  20651. // { name: "作业提交", tool: 16 },
  20652. // { name: "批量上传", tool: 50 },
  20653. // { name: "AIoT Blockly", tool: 21 },
  20654. // { name: "AI Python", tool: 23 },
  20655. // { name: "AI Blockly", tool: 24 },
  20656. // { name: "目标管理", tool: 25 },
  20657. // { name: "数学画板", tool: 31 },
  20658. // { name: "翻译", tool: 28 },
  20659. // { name: "魔盒识字", tool: 37 },
  20660. // { name: "数学画板", tool: 31 },
  20661. // { name: "24点", tool: 38 },
  20662. // { name: "GeoGebra", tool: 39 },
  20663. // { name: "源码编辑", tool: 32 },
  20664. // { name: "个人评价", tool: 40 },
  20665. // { name: "选择匹配", tool: 41 },
  20666. // { name: "汉字宫", tool: 44 },
  20667. // { name: "排序", tool: 47 },
  20668. // { name: "表格", tool: 48 },
  20669. // { name: "文档", tool: 52 },
  20670. // { name: "学生分组", tool: 49 },
  20671. // { name: "CocoPi", tool: 57 },
  20672. // { name: "模拟驾驶", tool: 58 },
  20673. // { name: "路径搜索", tool: 59 },
  20674. // { name: "深度学习", tool: 60 },
  20675. // { name: "全历史", tool: 61 },
  20676. // { name: "交互视频", tool: 62 },
  20677. // { name: "海龟编程", tool: 63 },
  20678. // { name: "挑人", tool: 65 },
  20679. // { name: "公式编辑", tool: 66 },
  20680. // { name: "分子结构", tool: 67 },
  20681. // { name: "时间轴", tool: 68 },
  20682. // ];
  20683. // var toolName = "";
  20684. // for(var w = 0;w<toolList.length;w++){
  20685. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20686. // toolName = toolList[w].name;
  20687. // }
  20688. // }
  20689. console.log(url);
  20690. this.downLoadAll(url, loading);
  20691. })
  20692. .catch(() => {});
  20693. },
  20694. downLoadAll(url, loading) {
  20695. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20696. const zip = new JSZip();
  20697. const cache = {};
  20698. const promises = [];
  20699. data.forEach((item) => {
  20700. const promise = getFile(item.url).then((data) => {
  20701. if (data.data != 1) {
  20702. // 下载文件, 并存成ArrayBuffer对象
  20703. const file_name =
  20704. item.name +
  20705. "." +
  20706. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20707. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20708. cache[file_name] = data.data;
  20709. }
  20710. });
  20711. promises.push(promise);
  20712. });
  20713. Promise.all(promises).then(() => {
  20714. zip.generateAsync({ type: "blob" }).then((content) => {
  20715. // 生成二进制流
  20716. FileSaver.saveAs(
  20717. content,
  20718. this.courseDetail.title + "-" + "作业提交工具.zip"
  20719. ); // 利用file-saver保存文件 自定义文件名
  20720. setTimeout(() => {
  20721. loading.close();
  20722. }, 2000);
  20723. });
  20724. });
  20725. },
  20726. pickStudent(stu) {
  20727. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20728. return;
  20729. }
  20730. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20731. confirmButtonText: "确定",
  20732. cancelButtonText: "取消",
  20733. type: "warning",
  20734. })
  20735. .then(() => {
  20736. let params = [
  20737. {
  20738. uid: stu.userid,
  20739. cid: this.id,
  20740. stage: this.courseType,
  20741. task: this.taskCount,
  20742. tool: this.toolindex,
  20743. },
  20744. ];
  20745. this.ajax
  20746. .post(this.$store.state.api + "updateCoursePick", params)
  20747. .then((res) => {
  20748. this.$message.success("操作成功");
  20749. this.getPick();
  20750. })
  20751. .catch((err) => {
  20752. this.$message.error("网络不佳");
  20753. console.error(err);
  20754. });
  20755. })
  20756. .catch(() => {});
  20757. },
  20758. selectUser(){
  20759. let params = {
  20760. userid: this.userid,
  20761. };
  20762. this.ajax
  20763. .get(this.$store.state.api + "selectUser", params)
  20764. .then((res) => {
  20765. this.userMes = res.data[0];
  20766. })
  20767. .catch((err) => {
  20768. console.error(err);
  20769. });
  20770. },
  20771. setEngText(i){
  20772. this.newEngIndex = i;
  20773. this.$forceUpdate();
  20774. },
  20775. addCorrect(){
  20776. this.$confirm("你确定提交批改嘛?", "提示", {
  20777. confirmButtonText: "确定",
  20778. showCancelButton: false,
  20779. closeOnClickModal: false,
  20780. type: "warning",
  20781. })
  20782. .then(() => {
  20783. let params = {
  20784. cid: this.id,
  20785. s: parseInt(this.courseType),
  20786. t: this.taskCount,
  20787. tool: this.toolindex,
  20788. wid: this.engWid,
  20789. c: this.userid,
  20790. 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) : "",
  20791. };
  20792. this.ajax
  20793. .get(this.$store.state.api + "addEngC", params)
  20794. .then((res) => {
  20795. this.$message.success("提交成功");
  20796. this.engUpdateDialogVisible = false;
  20797. })
  20798. .catch((err) => {
  20799. console.error(err);
  20800. });
  20801. })
  20802. .catch(() => {});
  20803. },
  20804. selectEngC(id,z){
  20805. let params = {
  20806. workid: id,
  20807. };
  20808. this.ajax
  20809. .get(this.$store.state.api + "selectEngC", params)
  20810. .then((res) => {
  20811. if(res.data[0].length == 0){
  20812. this.newEnglishList.engTitle = z.engTitle;
  20813. this.newEnglishList.engText = z.engText;
  20814. }else{
  20815. var a = res.data[0];
  20816. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20817. if(this.userMes[0].type == 2){
  20818. var snum = 0;
  20819. for(var i = 0;i<a.length;i++){
  20820. if(this.userMes[0].userid == a[i].correct){
  20821. this.newEnglishList = JSON.parse(a[i].cWork);
  20822. snum = 1;
  20823. }
  20824. }
  20825. if(snum == 0){
  20826. this.newEnglishList = { engTitle:"",engText:"" };
  20827. this.newEnglishList.engTitle = z.engTitle;
  20828. this.newEnglishList.engText = z.engText;
  20829. }
  20830. }else if(this.userMes[0].type == 1){
  20831. var num = 0;
  20832. for(var w= 0;w<a.length;w++){
  20833. if(this.userMes[0].userid == a[w].correct){
  20834. num = 1;
  20835. }
  20836. }
  20837. if(num == 0){
  20838. this.isNoUserid = true;
  20839. var c = JSON.parse(JSON.stringify(z));
  20840. this.oldEnglishJson1 = c;
  20841. }else{
  20842. this.isNoUserid = false;
  20843. }
  20844. var b = a.sort((item, index) => {
  20845. console.log(item)
  20846. if (item.correct === this.userMes[0].userid) {
  20847. return -1; // 将a移到前面
  20848. } else if (index.correct === this.userMes[0].userid) {
  20849. return 1; // 将b移到前面
  20850. } else {
  20851. return 0; // 保持默认顺序
  20852. }
  20853. });
  20854. for(var p = 0;p<b.length;p++){
  20855. for(var y = 0;y<ppp.length;y++){
  20856. if(b[p].id == ppp[y].id){
  20857. b[p].cWork = JSON.parse(ppp[y].cWork);
  20858. break
  20859. }
  20860. }
  20861. }
  20862. this.newEnglishList1 = b;
  20863. }
  20864. }
  20865. this.greyType = false;
  20866. setTimeout(() => {
  20867. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20868. if(this.newEnglishList1.length > 0){
  20869. if(this.isNoUserid == true){
  20870. this.engListLength = this.newEnglishList1.length + 1;
  20871. this.newEngIndex = -1;
  20872. }else{
  20873. this.engListLength = this.newEnglishList1.length;
  20874. this.newEngIndex = 0;
  20875. }
  20876. }
  20877. if(this.userMes[0].type == 2){
  20878. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20879. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20880. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20881. }else if(this.newEngIndex == -1){
  20882. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20883. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20884. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20885. }
  20886. }, 500);
  20887. this.engUpdateDialogVisible = true;
  20888. this.$forceUpdate();
  20889. })
  20890. .catch((err) => {
  20891. console.error(err);
  20892. });
  20893. },
  20894. getPick() {
  20895. if(this.getPickLoading) return
  20896. this.getPickLoading = true
  20897. let params = {
  20898. cid: this.id,
  20899. };
  20900. this.ajax
  20901. .get(this.$store.state.api + "getPick", params)
  20902. .then((res) => {
  20903. let array = [];
  20904. for (var i = 0; i < res.data[0].length; i++) {
  20905. array.push(res.data[0][i].userid);
  20906. }
  20907. this.isPickStudent = array;
  20908. if (array.indexOf(this.userid) !== -1) {
  20909. this.$confirm("你被老师选到啦!", "提示", {
  20910. confirmButtonText: "确定",
  20911. showCancelButton: false,
  20912. closeOnClickModal: false,
  20913. type: "warning",
  20914. })
  20915. .then(() => {
  20916. let pa = [
  20917. {
  20918. uid: this.userid,
  20919. cid: this.id,
  20920. },
  20921. ];
  20922. this.ajax
  20923. .post(this.$store.state.api + "deletePick", pa)
  20924. .then((res) => {
  20925. this.getPick();
  20926. })
  20927. .catch((err) => {
  20928. this.$message.error("网络不佳");
  20929. console.error(err);
  20930. });
  20931. })
  20932. .catch(() => {});
  20933. }
  20934. this.getPickLoading = false
  20935. })
  20936. .catch((err) => {
  20937. this.getPickLoading = false
  20938. this.$message.error("网络不佳");
  20939. console.error(err);
  20940. });
  20941. },
  20942. foldEva() {
  20943. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20945. } else {
  20946. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20947. setTimeout(() => {
  20948. this.checkEva();
  20949. setTimeout(() => {
  20950. this.checkEva();
  20951. }, 500);
  20952. }, 0);
  20953. }
  20954. this.$forceUpdate();
  20955. },
  20956. panToolHeight(tool) {
  20957. var _tool = document.querySelectorAll('#'+tool)[0]
  20958. var _toolA = _tool ? _tool.offsetHeight : 0
  20959. var _toolC = 0
  20960. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20961. let boolean2 = (_toolA > _toolC) ? true : false
  20962. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20963. this.$forceUpdate();
  20964. },
  20965. async checkLink(url) {
  20966. console.log(url)
  20967. let _url = url
  20968. try {
  20969. const response = await fetch(url);
  20970. if(!response.ok){
  20971. _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]))
  20972. }
  20973. console.log(response.ok)
  20974. } catch (error) {
  20975. console.error('Error checking link:', error);
  20976. // console.log(false)
  20977. _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]))
  20978. }
  20979. // console.log(_url)
  20980. return _url
  20981. },
  20982. getScoreList(){
  20983. let params = {
  20984. cid: this.id,
  20985. };
  20986. this.ajax
  20987. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20988. .then((res) => {
  20989. let result = res.data;
  20990. this.scoreList.datalist = result[0];
  20991. this.scoreList.isScoreList = result[1];
  20992. })
  20993. .catch((err) => {
  20994. console.error(err);
  20995. });
  20996. },
  20997. setClassRoomHelperWidth(width){
  20998. this.classRoomHelperWidth = width
  20999. },
  21000. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21001. this.$refs.choseWorksDetailDialogRef.open({
  21002. toolType:tooc,
  21003. tType: this.tType,
  21004. toolIndex: toolIndex
  21005. });
  21006. this.changeSplitScreenBehavior({
  21007. code: 1,
  21008. form: {
  21009. toolType:tooc,
  21010. toolIndex: toolIndex,
  21011. courseType: this.courseType,
  21012. taskCount: this.taskCount,
  21013. type: 0
  21014. }
  21015. });
  21016. },
  21017. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21018. this.$refs.statisticalAnalysisRef.open({
  21019. worksStudent: this.worksStudent[toolIndex],
  21020. tType: this.tType,
  21021. toolIndex: toolIndex
  21022. });
  21023. this.changeSplitScreenBehavior({
  21024. code: 2,
  21025. form: {
  21026. toolType:4,
  21027. courseType: this.courseType,
  21028. taskCount: this.taskCount,
  21029. toolIndex: toolIndex,
  21030. type: 0
  21031. }
  21032. });
  21033. },
  21034. statisticalAnalysisRefresh(toolIndex) {
  21035. this.$refs.statisticalAnalysisRef.refreshData({
  21036. worksStudent: this.worksStudent[toolIndex],
  21037. tType: this.tType,
  21038. toolIndex: toolIndex
  21039. });
  21040. },
  21041. async splitScreenBehavior(type = 0) {
  21042. // return;
  21043. if (this.splitScreenData.loading)
  21044. return this.$message.info("操作过快,请稍等");
  21045. if (type == 0) {
  21046. //关闭分屏
  21047. this.splitScreenData.isOpen = false;
  21048. // this.splitScreenData.userId = "";
  21049. // this.splitScreenData.uid = "";
  21050. this.splitScreenData.behavior = null;
  21051. await this.updateSplitScreenData(1);
  21052. this.$message.success("已关闭分屏模式");
  21053. this.studentFreePreview(false);
  21054. this.OpenJobPreview(false);
  21055. // this.followingMode(false);
  21056. } else if (type == 1) {
  21057. //开启分屏
  21058. this.splitScreenData.isOpen = true;
  21059. this.splitScreenData.userId = this.userid;
  21060. this.splitScreenData.uid = this.splitScreenData.myUid;
  21061. this.splitScreenData.behavior = null;
  21062. let status = await this.updateSplitScreenData(0);
  21063. this.changeSplitScreenBehavior({form:{}})
  21064. if (status == 1) {
  21065. this.$message.success("已开启分屏");
  21066. this.studentFreePreview(false);
  21067. this.OpenJobPreview(true);
  21068. // this.followingMode(true);
  21069. } else {
  21070. this.splitScreenData.isOpen = false;
  21071. this.splitScreenData.userId = "";
  21072. this.splitScreenData.uid = "";
  21073. this.splitScreenData.behavior = null;
  21074. this.$message.success("分屏开启失败");
  21075. }
  21076. }
  21077. },
  21078. enterFullScreen() {
  21079. let element = document.documentElement;
  21080. if (element.requestFullscreen) {
  21081. element.requestFullscreen();
  21082. } else if (element.mozRequestFullScreen) { /* Firefox */
  21083. element.mozRequestFullScreen();
  21084. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21085. element.webkitRequestFullscreen();
  21086. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21087. element.msRequestFullscreen();
  21088. }
  21089. },
  21090. exitFullScreen() {
  21091. if (document.exitFullscreen) {
  21092. document.exitFullscreen();
  21093. } else if (document.mozCancelFullScreen) { /* Firefox */
  21094. document.mozCancelFullScreen();
  21095. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21096. document.webkitExitFullscreen();
  21097. } else if (document.msExitFullscreen) { /* IE/Edge */
  21098. document.msExitFullscreen();
  21099. }
  21100. },
  21101. confirmOpen(){
  21102. this.splitScreenData.isOpen = true;
  21103. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21104. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21105. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21106. this.confirmOpenDig = false
  21107. if (!document.fullscreenElement) {
  21108. this.enterFullScreen();
  21109. }
  21110. // if (this.timer2) {
  21111. // clearInterval(this.timer2);
  21112. // this.timer2 = null;
  21113. // }
  21114. // this.timer2 = setInterval(()=> {
  21115. // this.getSplitScreenData();//获取分屏数据
  21116. // }, 5000);
  21117. this.$message.success("分屏模式已开启");
  21118. },
  21119. // 获取分屏数据
  21120. getSplitScreenData() {
  21121. // return;
  21122. // if (this.tType != 1) return;
  21123. if(this.getSplitScreenDataLoading) return
  21124. this.getSplitScreenDataLoading = true
  21125. let params = {
  21126. cid: this.id
  21127. };
  21128. this.ajax
  21129. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21130. .then(async res => {
  21131. let data = res.data[0][0]["splitScreenData"];
  21132. console.log("获取了分屏数:", data);
  21133. if (data) {
  21134. data = JSON.parse(data);
  21135. if (
  21136. !this.splitScreenData.isOpen &&
  21137. data.isOpen &&
  21138. this.splitScreenData.myUid == data.uid
  21139. ) {
  21140. this.splitScreenData.isOpen = false;
  21141. this.splitScreenData.userId = "";
  21142. this.splitScreenData.uid = "";
  21143. this.splitScreenData.behavior = null;
  21144. await this.updateSplitScreenData(1);
  21145. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21146. this.confirmOpenDig = true
  21147. this.confirmOpenDigData = data
  21148. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21149. this.splitScreenData.isOpen = false;
  21150. this.splitScreenData.userId = "";
  21151. this.splitScreenData.uid = "";
  21152. this.splitScreenData.behavior = null;
  21153. this.$message.error("已结束分屏模式");
  21154. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21155. this.splitScreenData.isOpen = true;
  21156. this.splitScreenData.uid = data.uid;
  21157. this.splitScreenData.userId = data.userId;
  21158. this.splitScreenData.behavior = data.behavior;
  21159. }
  21160. this.doSplitScreenBehavior();
  21161. } else {
  21162. if (this.splitScreenData.isOpen) {
  21163. this.splitScreenData.isOpen = false;
  21164. this.splitScreenData.userId = "";
  21165. this.splitScreenData.uid = "";
  21166. this.splitScreenData.behavior = null;
  21167. this.$message.error("已结束分屏模式");
  21168. // if (this.timer2) {
  21169. // clearInterval(this.timer2);
  21170. // this.timer2 = null;
  21171. // }
  21172. // this.timer2 = setInterval(()=> {
  21173. // this.getSplitScreenData();//获取分屏数据
  21174. // }, 5000);
  21175. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21176. confirmButtonText: '确定', //确认按钮的文字
  21177. showCancelButton: false, //是否显示取消按钮
  21178. showClose: false, //是否显示关闭按钮
  21179. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21180. type: "warning",
  21181. })
  21182. .then(() => {
  21183. if (document.fullscreenElement) {
  21184. this.exitFullScreen();
  21185. }
  21186. })
  21187. .catch(() => {});
  21188. }
  21189. }
  21190. this.getSplitScreenDataLoading = false
  21191. })
  21192. .catch(e => {
  21193. this.getSplitScreenDataLoading = false
  21194. console.log("获取分屏数出错:", e);
  21195. });
  21196. },
  21197. // 操作
  21198. doSplitScreenBehavior() {
  21199. if (
  21200. this.splitScreenData.isOpen &&
  21201. this.splitScreenData.uid != this.splitScreenData.myUid
  21202. ) {
  21203. let behavior = this.splitScreenData.behavior;
  21204. if (behavior) {
  21205. // console.log('behavior',behavior);
  21206. // this.toolindex = behavior.form.toolType
  21207. // 初始状态
  21208. if (behavior.code === 99) {
  21209. //初始化
  21210. this.fullDialogVisible = false;
  21211. if(this.$refs.choseWorksDetailDialogRef.show){
  21212. this.$refs.choseWorksDetailDialogRef.close();
  21213. }
  21214. if(this.$refs.statisticalAnalysisRef.show){
  21215. this.$refs.statisticalAnalysisRef.close();
  21216. }
  21217. }
  21218. // 文件列表
  21219. if (behavior.code === 0) {
  21220. //开启内容列表弹窗
  21221. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21222. }else{
  21223. this.fullDialogVisible = false;
  21224. }
  21225. // 打开工具
  21226. if (behavior.code === 1) {
  21227. //关于选择题的作业详细的操作
  21228. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21229. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21230. this.courseType = behavior.form.courseType;
  21231. this.taskCount = behavior.form.taskCount;
  21232. }
  21233. this.$nextTick(() => {
  21234. if (this.$refs.choseWorksDetailDialogRef.show) {
  21235. //已经打开了
  21236. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21237. } else {
  21238. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21239. }
  21240. });
  21241. }else{
  21242. this.$refs.choseWorksDetailDialogRef.close()
  21243. }
  21244. // 问卷调查
  21245. if(behavior.code === 2){
  21246. if(this.$refs.statisticalAnalysisRef.show){
  21247. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21248. }else{
  21249. this.$refs.statisticalAnalysisRef.open({
  21250. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21251. tType: this.tType,
  21252. toolIndex: behavior.form.toolIndex
  21253. });
  21254. }
  21255. }else{
  21256. this.$refs.statisticalAnalysisRef.close();
  21257. }
  21258. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21259. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21260. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21261. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21262. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21263. if (behavior.form.courseType != this.courseType ||
  21264. behavior.form.taskCount != this.taskCount ||
  21265. behavior.form.toolType != this.toolindex
  21266. ) {
  21267. var a = document.scrollingElement;
  21268. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21269. if (target) {
  21270. target.scrollIntoView(true);
  21271. setTimeout(()=>{
  21272. let scrollBody = document.querySelector('.body_student').parentElement
  21273. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21274. }, 0);
  21275. // setTimeout(() => {
  21276. // a.scrollTop = 0
  21277. // }, 0);
  21278. }
  21279. }
  21280. if(this.courseType !=behavior.form.courseType){
  21281. this.courseType = behavior.form.courseType;
  21282. }
  21283. if(this.taskCount !=behavior.form.taskCount){
  21284. this.taskCount = behavior.form.taskCount;
  21285. }
  21286. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21287. this.toolindex = behavior.form.toolType;
  21288. }
  21289. // if(behavior.form.navId){
  21290. // this.navId = behavior.form.navId
  21291. // }
  21292. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21293. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21294. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21295. this.getCourseDetail()
  21296. }
  21297. this.setContent2(false)
  21298. }
  21299. } else {
  21300. }
  21301. }
  21302. },
  21303. // 修改分屏数据
  21304. updateSplitScreenData(empty = 0) {
  21305. return new Promise(resolve => {
  21306. if(this.userid!==this.courseDetail.userid){
  21307. if(!this.courseDetail.userid){
  21308. return setTimeout(()=>{
  21309. this.updateSplitScreenData(empty)
  21310. },2000)
  21311. }
  21312. return;
  21313. };
  21314. if (
  21315. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21316. this.splitScreenData.userId == this.userid
  21317. ) {
  21318. this.splitScreenData.loading = true;
  21319. let params = [
  21320. {
  21321. cid: this.id,
  21322. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21323. }
  21324. ];
  21325. this.ajax
  21326. .post(
  21327. this.$store.state.api + "update_courseSplitScreenData",
  21328. params
  21329. )
  21330. .then(res => {
  21331. this.splitScreenData.loading = false;
  21332. if (res.data == 1) {
  21333. resolve(1);
  21334. console.log("修改分屏数据成功");
  21335. }
  21336. })
  21337. .catch(e => {
  21338. this.splitScreenData.loading = false;
  21339. console.log("修改分屏数据失败", e);
  21340. resoleve(0);
  21341. });
  21342. } else if (empty == 2 && this.tType == 1) {
  21343. console.log("清空清空清空清空")
  21344. let params = [
  21345. {
  21346. cid: this.id,
  21347. nData: ""
  21348. }
  21349. ];
  21350. return this.ajax
  21351. .post(
  21352. this.$store.state.api + "update_courseSplitScreenData",
  21353. params
  21354. )
  21355. .then(_ => resolve(1))
  21356. .catch(_ => resolve(0));
  21357. } else {
  21358. return resolve(0);
  21359. }
  21360. });
  21361. },
  21362. // 修改分屏数据
  21363. changeSplitScreenBehavior(newValue) {
  21364. if (
  21365. this.splitScreenData.isOpen &&
  21366. this.splitScreenData.uid == this.splitScreenData.myUid
  21367. ) {
  21368. let _behavior = null;
  21369. if(!newValue){
  21370. _behavior = {}
  21371. }else{
  21372. _behavior = newValue
  21373. }
  21374. if(_behavior.form){
  21375. _behavior.form.taskCount = this.taskCount;
  21376. _behavior.form.courseType = this.courseType
  21377. }else{
  21378. _behavior.form = {
  21379. taskCount:this.taskCount,
  21380. courseType:this.courseType,
  21381. }
  21382. }
  21383. this.splitScreenData.behavior = _behavior;
  21384. this.updateSplitScreenData(0);
  21385. }
  21386. },
  21387. studentFreePreview(flag) {
  21388. this.IsLookOpen = flag;
  21389. this.updateLookOpen();
  21390. this.followingMode(flag)
  21391. },
  21392. OpenJobPreview(flag) {
  21393. this.sIsOpen = flag;
  21394. this.updateSLook();
  21395. },
  21396. followingMode(flag) {
  21397. this.IsFollow = flag;
  21398. this.updateFollow();
  21399. },
  21400. StulookMode(flag) {
  21401. this.IsStulook = flag;
  21402. this.updateIsStulook();
  21403. },
  21404. },
  21405. directives: {
  21406. // 使用局部注册指令的方式
  21407. resize: {
  21408. // 指令的名称
  21409. bind(el, binding) {
  21410. // el为绑定的元素,binding为绑定给指令的对象
  21411. let width = "",
  21412. height = "";
  21413. function isReize() {
  21414. const style = document.defaultView.getComputedStyle(el);
  21415. if (width !== style.width || height !== style.height) {
  21416. binding.value(); // 关键
  21417. }
  21418. width = style.width;
  21419. height = style.height;
  21420. }
  21421. el.__vueSetInterval__ = setInterval(isReize, 300);
  21422. },
  21423. unbind(el) {
  21424. clearInterval(el.__vueSetInterval__);
  21425. },
  21426. },
  21427. autoHeight: {
  21428. update(el, binding) {
  21429. const { value } = binding
  21430. if (value && typeof value === 'number') {
  21431. el.style.height = `${value}px`
  21432. } else {
  21433. el.style.height = 'auto'
  21434. }
  21435. },
  21436. componentUpdated(el) {
  21437. el.style.height = `${el.scrollHeight}px`
  21438. },
  21439. },
  21440. },
  21441. beforeDestroy() {
  21442. window.onresize = null;
  21443. clearInterval(this.timer);
  21444. this.timer = null;
  21445. clearInterval(this.timer2);
  21446. this.timer2 = null;
  21447. clearInterval(this.opertimer);
  21448. this.opertimer = null;
  21449. this.updateSplitScreenData(1);
  21450. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21451. let endTime = new Date().toLocaleString("zh-CN", {
  21452. hour12: false,
  21453. timeZone: "Asia/Shanghai"
  21454. }).replace(/\//g, "-")
  21455. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21456. this.syncClassData({
  21457. courseId: this.id,
  21458. title: this.courseDetail.title,
  21459. courseGrade: this.tcid2,
  21460. courseTime: courseTime,
  21461. startTime: this.startTime,
  21462. endTime: endTime,
  21463. })
  21464. console.log('同步数据')
  21465. }
  21466. },
  21467. computed: {
  21468. renderedFormula2() {
  21469. return function(val){
  21470. // 处理换行符和HTML实体
  21471. const normalized = val
  21472. .replace(/&amp;/g, '&')
  21473. .replace(/<br\/?>/g, '\n');
  21474. // 匹配行内公式($...$)和块级公式($$...$$)
  21475. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21476. try {
  21477. return katex.renderToString(expr.trim(), {
  21478. displayMode: false,
  21479. throwOnError: false,
  21480. macros: {
  21481. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21482. }
  21483. });
  21484. } catch (e) {
  21485. console.warn('KaTeX渲染失败:', e);
  21486. return `<span style="color:red">${expr}</span>`;
  21487. }
  21488. })
  21489. }
  21490. },
  21491. renderedFormula() {
  21492. return function(val){
  21493. try {
  21494. // 判断是否含有HTML标签,<tag ...>...</tag>
  21495. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21496. if (!hasTag) {
  21497. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21498. // 纯文本,整体渲染
  21499. try {
  21500. return katex.renderToString(val.trim(), {
  21501. throwOnError: false,
  21502. strict: false,
  21503. output: "htmlAndMathml"
  21504. });
  21505. } catch (e) {
  21506. return val; // 渲染失败原样输出
  21507. }
  21508. } else {
  21509. // 有标签,对每个标签内容渲染
  21510. return val.replace(
  21511. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21512. (match, tag, attrs, inner) => {
  21513. let html;
  21514. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21515. try {
  21516. html = katex.renderToString(inner.trim(), {
  21517. throwOnError: false,
  21518. strict: false,
  21519. output: "htmlAndMathml"
  21520. });
  21521. } catch (e) {
  21522. html = inner;
  21523. }
  21524. return `<${tag}${attrs}>${html}</${tag}>`;
  21525. }
  21526. );
  21527. }
  21528. } catch (e) {
  21529. console.error('KaTeX渲染错误:', e);
  21530. return val;
  21531. }
  21532. }
  21533. },
  21534. isAndroid() {
  21535. return /Android/i.test(navigator.userAgent);
  21536. },
  21537. contentConvent() {
  21538. return function (c) {
  21539. return c
  21540. ? c
  21541. .replaceAll(/\r\n/g, "<br/>")
  21542. .replaceAll(/\n/g, "<br/>")
  21543. .replaceAll(/\s/g, "&nbsp")
  21544. : "";
  21545. };
  21546. },
  21547. commentRight(){
  21548. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21549. return "35px";
  21550. }
  21551. return `calc(${this.classRoomHelperWidth} + 5px)`
  21552. // if(this.$refs["classRoomHelperRef"].type==0){
  21553. // return "100px";
  21554. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21555. // return "502px"
  21556. // }else{
  21557. // return "0px"
  21558. // }
  21559. },
  21560. checkUpload() {
  21561. return function () {
  21562. var studentK = [];
  21563. if (this.plworkFile.length > 0) {
  21564. for (var z = 0; z < this.plworkFile.length; z++) {
  21565. studentK.push(this.plworkFile[z].username);
  21566. }
  21567. studentK = studentK.join(",");
  21568. }
  21569. var a = this.uploadStudentJuri.filter((el) => {
  21570. return studentK.indexOf(el.userid) == -1;
  21571. });
  21572. return a;
  21573. };
  21574. },
  21575. getSName() {
  21576. return function (name) {
  21577. var check = name;
  21578. this.uploadStudentJuri.forEach((el) => {
  21579. if (el.userid == check) {
  21580. check = el.name ? el.name : el.username;
  21581. }
  21582. });
  21583. return check;
  21584. };
  21585. },
  21586. getImgList() {
  21587. return function (val) {
  21588. let srcList = []; // 定义一个数组用来接收后面的img地址
  21589. val.replace(
  21590. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21591. function (match, capture) {
  21592. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21593. srcList.push(capture);
  21594. }
  21595. );
  21596. return srcList;
  21597. };
  21598. },
  21599. retrnToolHeight(){
  21600. return function (tool) {
  21601. var _tool = document.querySelectorAll('#'+tool)[0]
  21602. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21603. };
  21604. },
  21605. Correct() {
  21606. return function (c) {
  21607. let w = "";
  21608. let a = this.correctWord;
  21609. for(var k = 0;k<a.length;k++){
  21610. //diffWordsWithSpace
  21611. if(a.length > 1){
  21612. if(a[k].added == true){
  21613. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21614. }else if(a[k].removed == true){
  21615. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21616. }else{
  21617. w += '<span>' + a[k].value + '</span>';
  21618. }
  21619. }else{
  21620. w = c
  21621. }
  21622. //diffChars方法
  21623. // if(a.length > 1){
  21624. // if(w == ""){
  21625. // if(a[k].added == true){
  21626. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21627. // }else if(a[k].removed == true){
  21628. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21629. // }
  21630. // }else{
  21631. // if(k == a.length - 1){
  21632. // if(a[k].added == true){
  21633. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21634. // }else if(a[k].removed == true){
  21635. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21636. // }
  21637. // }else{
  21638. // if(a[k].added == true){
  21639. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21640. // }else if(a[k].removed == true){
  21641. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21642. // }
  21643. // }
  21644. // }
  21645. // }else{
  21646. // w = c
  21647. // }
  21648. }
  21649. c = w;
  21650. return c;
  21651. };
  21652. },
  21653. },
  21654. mounted() {
  21655. this.startTime = new Date().toLocaleString("zh-CN", {
  21656. hour12: false,
  21657. timeZone: "Asia/Shanghai"
  21658. }).replace(/\//g, "-");
  21659. if (this.tType == 1) {
  21660. // 开局关闭学生查看内容
  21661. this.StulookMode(false)
  21662. // 开局打开跟随模式
  21663. this.followingMode(true)
  21664. }
  21665. document.body.addEventListener("click", (e) => {
  21666. if (this.isUpdateToolDetail1) {
  21667. this.updateToolDetail(this.toolDetailIndex);
  21668. }
  21669. });
  21670. this.setOperationTime();
  21671. this.selectEva();
  21672. this.getCourseDetail(10);
  21673. this.selectCount();
  21674. this.getHomeWork();
  21675. this.selectUser();
  21676. this.getAIJ();
  21677. this.updateSplitScreenData(2);
  21678. this.splitScreenData.myUid = uuidv4();
  21679. this.contentDialog = false;
  21680. this.setContent2(true);
  21681. if (this.tType == 4) {
  21682. this.pzDialog = true;
  21683. this.selectPz();
  21684. }
  21685. // 获取评分列表
  21686. this.getScoreList()
  21687. document.scrollingElement.scrollTop = 0;
  21688. window.addEventListener("resize", () => {
  21689. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21690. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21691. if (this.showType == 2 || this.showType == 3) {
  21692. document.getElementsByClassName("navBox")[0].style.height =
  21693. a - 40 + 0+ "px";
  21694. } else {
  21695. document.getElementsByClassName("navBox")[0].style.height =
  21696. a - 40 + "px";
  21697. }
  21698. });
  21699. let _this = this;
  21700. setTimeout(() => {
  21701. // _this.vedioTime = [];
  21702. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21703. // _this.vedioTime[i] = document.getElementsByClassName(
  21704. // "vjs-duration-display"
  21705. // )[i].textContent;
  21706. // }
  21707. }, 1000);
  21708. try{
  21709. if (this.screenType == 2) {
  21710. window.topU.postMessage({ allScreen: 4 }, "*");
  21711. } else if (this.screenType == 3) {
  21712. window.topU.postMessage({ allScreen: 5 }, "*");
  21713. } else if (this.screenType == 1) {
  21714. window.topU.postMessage({ allScreen: 6 }, "*");
  21715. }
  21716. }catch(e){
  21717. console.log(e)
  21718. }
  21719. },
  21720. };
  21721. </script>
  21722. <style scoped>
  21723. @media screen and (max-width: 1280px) {
  21724. /* .courseIndex > div:first-child(2) {
  21725. width: 15% !important;
  21726. } */
  21727. /* .navText {
  21728. width: 120px !important;
  21729. } */
  21730. .evaCss {
  21731. flex-direction: column !important;
  21732. align-items: center !important;
  21733. }
  21734. .elist_input {
  21735. width: 90% !important;
  21736. }
  21737. .dialog_diy1 >>> .el-dialog {
  21738. width: 100% !important;
  21739. }
  21740. .rightWidthCss {
  21741. width: 100% !important;
  21742. }
  21743. .dialog_diy3 >>> .el-dialog {
  21744. width: 100% !important;
  21745. }
  21746. .addToolCss {
  21747. right: 0 !important;
  21748. width: 100% !important;
  21749. min-width: unset !important;
  21750. }
  21751. }
  21752. .evaCssMax {
  21753. flex-direction: column !important;
  21754. align-items: center !important;
  21755. }
  21756. .dialog_diy >>> .el-dialog {
  21757. margin-top: 10vh !important;
  21758. }
  21759. .body_student {
  21760. width: 77%;
  21761. height: 100%;
  21762. position: absolute;
  21763. left: 22%;
  21764. top: 0;
  21765. }
  21766. .student_head {
  21767. width: 100%;
  21768. margin: 20px auto 0;
  21769. padding-bottom: 20px;
  21770. display: flex;
  21771. flex-direction: column;
  21772. flex-wrap: nowrap;
  21773. align-items: flex-start;
  21774. justify-content: flex-start;
  21775. }
  21776. .pb_left {
  21777. width: 15%;
  21778. margin-right: 10px;
  21779. background: rgb(255, 255, 255);
  21780. position: fixed;
  21781. height: calc(100% - 40px);
  21782. border-radius: 20px;
  21783. padding-bottom: 15px;
  21784. box-sizing: border-box;
  21785. }
  21786. .wheel > img,
  21787. .project > img,
  21788. .star > img,
  21789. .evaluate > img,
  21790. .up_photo > img,
  21791. .chapter_add > img,
  21792. .deleteWord > img,
  21793. .question > img,
  21794. .homework > img {
  21795. width: 100%;
  21796. height: 100%;
  21797. }
  21798. .upCover > img {
  21799. width: 131px;
  21800. height: 69px;
  21801. object-fit: cover;
  21802. }
  21803. .upCover {
  21804. width: calc(100% / 3.5);
  21805. position: relative;
  21806. margin: 0 15px 10px 0;
  21807. display: flex;
  21808. flex-direction: column;
  21809. flex-wrap: nowrap;
  21810. justify-content: center;
  21811. align-content: center;
  21812. align-items: center;
  21813. height: fit-content;
  21814. }
  21815. .upCover2 {
  21816. width: 100%;
  21817. position: relative;
  21818. margin: 0 15px 10px 0;
  21819. display: flex;
  21820. flex-direction: column;
  21821. flex-wrap: nowrap;
  21822. justify-content: center;
  21823. align-content: center;
  21824. align-items: center;
  21825. }
  21826. .upCover2 > img {
  21827. width: 100%;
  21828. height: 90px;
  21829. object-fit: contain;
  21830. }
  21831. .chapter_add {
  21832. width: 120px;
  21833. position: relative;
  21834. text-align: center;
  21835. }
  21836. .isAddThings {
  21837. margin-top: 20px;
  21838. position: relative;
  21839. text-align: center;
  21840. background: #f7f8fa;
  21841. height: 90px;
  21842. width: 90px;
  21843. display: flex;
  21844. flex-direction: column;
  21845. justify-content: center;
  21846. }
  21847. .deleteWord {
  21848. width: 22px;
  21849. height: 22px;
  21850. position: absolute;
  21851. right: -5px;
  21852. top: -5px;
  21853. cursor: pointer;
  21854. }
  21855. .box_course {
  21856. /* width: 60%; */
  21857. width: calc(100% - 300px);
  21858. }
  21859. .wheel {
  21860. width: 100%;
  21861. /* height: 100%; */
  21862. height: 650px;
  21863. }
  21864. .right_box {
  21865. display: flex;
  21866. flex-direction: column;
  21867. margin-left: 30px;
  21868. justify-content: space-around;
  21869. }
  21870. .right_box_title {
  21871. font-size: 23px;
  21872. }
  21873. .people {
  21874. display: flex;
  21875. }
  21876. .student_body {
  21877. width: 100%;
  21878. margin: 0 auto;
  21879. margin-top: 10px;
  21880. padding: 0 0 20px;
  21881. }
  21882. .study_top {
  21883. margin-top: 100px;
  21884. width: 100%;
  21885. height: auto;
  21886. padding-bottom: 20px;
  21887. margin-left: 2px;
  21888. min-height: 90%;
  21889. }
  21890. .study_top .checkbox {
  21891. display: flex;
  21892. align-items: center;
  21893. padding: 15px 0 15px 30px;
  21894. flex: 0 0 auto;
  21895. font-weight: bold;
  21896. border-bottom: 1px solid #eee;
  21897. }
  21898. .study_top .check {
  21899. padding-bottom: 5px;
  21900. text-align: center;
  21901. cursor: pointer;
  21902. height: 30px;
  21903. box-sizing: border-box;
  21904. display: flex;
  21905. }
  21906. .study_top .checked {
  21907. border-bottom: 4px solid #3fc6a0;
  21908. padding-bottom: 5px;
  21909. color: #3fc6a0;
  21910. display: flex;
  21911. height: 35px;
  21912. }
  21913. .study_top .checked > div,
  21914. .study_top .check > div {
  21915. margin-right: 5px;
  21916. }
  21917. .videoTop {
  21918. display: flex;
  21919. flex-direction: row;
  21920. justify-content: space-between;
  21921. background: #fff;
  21922. align-items: center;
  21923. width: 95%;
  21924. padding: 20px;
  21925. }
  21926. .filebox {
  21927. display: flex;
  21928. flex-wrap: wrap;
  21929. flex-direction: column;
  21930. padding: 0 0 5px;
  21931. position: relative;
  21932. }
  21933. .filebox:before {
  21934. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21935. position: absolute;
  21936. top: 20px;
  21937. left: 13px;
  21938. border-left: 2px dotted #cad1dc;
  21939. height: calc(100% - 15px);
  21940. }
  21941. .toolHeng2 > div:last-child::before {
  21942. height: calc(100% - 43px);
  21943. }
  21944. .filebox .tooldetail {
  21945. width: calc(100%);
  21946. margin: 0px 12px;
  21947. padding: 12px;
  21948. line-height: 30px;
  21949. word-break: break-word;
  21950. background: #ffffff;
  21951. border-radius: 8px 8px 8px 8px;
  21952. opacity: 1;
  21953. border: 1px solid #cad1dc;
  21954. overflow:hidden;
  21955. box-sizing:border-box;
  21956. }
  21957. .file {
  21958. display: flex;
  21959. flex-direction: column;
  21960. align-items: center;
  21961. justify-content: center;
  21962. cursor: pointer;
  21963. width: 200px;
  21964. }
  21965. .file div {
  21966. margin-top: 10px;
  21967. width: 150px;
  21968. text-align: center;
  21969. overflow: hidden;
  21970. white-space: nowrap;
  21971. text-overflow: ellipsis;
  21972. }
  21973. .media {
  21974. display: flex;
  21975. flex-direction: column;
  21976. align-items: center;
  21977. justify-content: center;
  21978. margin: 0 20px 20px 0;
  21979. cursor: pointer;
  21980. margin: 12px 0 5px 15px;
  21981. overflow: hidden;
  21982. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21983. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21984. box-sizing: border-box;
  21985. }
  21986. .media img {
  21987. height: 90px;
  21988. width: 160px;
  21989. object-fit: cover;
  21990. }
  21991. .media .title {
  21992. padding: 5px;
  21993. text-align: left;
  21994. width: 100%;
  21995. box-sizing: border-box;
  21996. }
  21997. .media .btn {
  21998. width: 100%;
  21999. height: 35px;
  22000. line-height: 35px;
  22001. color: #fff;
  22002. background: #606060;
  22003. text-align: center;
  22004. overflow: hidden;
  22005. white-space: nowrap;
  22006. text-overflow: ellipsis;
  22007. }
  22008. .detail_content_top {
  22009. width: 100%;
  22010. padding: 25px 0 25px 0;
  22011. }
  22012. .detail_title {
  22013. text-align: center;
  22014. font-size: 24px;
  22015. }
  22016. .detail_time {
  22017. font-size: 13px;
  22018. padding: 15px 0 0 40px;
  22019. }
  22020. .detail_content {
  22021. line-height: 2pc;
  22022. width: 90%;
  22023. margin: 0 auto;
  22024. padding-top: 30px;
  22025. text-indent: 30px;
  22026. overflow: auto;
  22027. height: 200px;
  22028. }
  22029. .score_box >>> .el-rate {
  22030. margin-left: 10px;
  22031. }
  22032. .dialog_change >>> .el-dialog {
  22033. border-radius: 5px;
  22034. }
  22035. .dialog_change >>> .el-dialog__header {
  22036. background: #f2f2f2;
  22037. text-align: center;
  22038. }
  22039. .dialog_change >>> .el-dialog__title {
  22040. line-height: 5px;
  22041. }
  22042. .dialog_change >>> .el-dialog__body {
  22043. background: #fff;
  22044. padding: 10px 20px;
  22045. }
  22046. .score_box {
  22047. display: flex;
  22048. align-items: center;
  22049. margin-bottom: 18px;
  22050. margin-top: 20px;
  22051. }
  22052. .up_photo {
  22053. width: 120px;
  22054. cursor: pointer;
  22055. margin-top: 10px;
  22056. }
  22057. .up_photo2 {
  22058. width: 180px;
  22059. box-sizing: border-box;
  22060. min-width: 180px;
  22061. height: 180px;
  22062. max-height: 180px;
  22063. min-height: 180px;
  22064. cursor: pointer;
  22065. display: flex;
  22066. flex-direction: column;
  22067. align-items: center;
  22068. justify-content: center;
  22069. background: rgb(242, 246, 255);
  22070. /* padding: 25px; */
  22071. margin-bottom: 10px;
  22072. }
  22073. .up_photo2 img {
  22074. width: 50%;
  22075. height: auto;
  22076. }
  22077. .up_photo2 span {
  22078. color: #898989;
  22079. }
  22080. .plworkBox {
  22081. display: flex;
  22082. align-items: center;
  22083. margin-top: 10px;
  22084. flex-wrap: wrap;
  22085. }
  22086. .upload_send {
  22087. margin: 30px auto 30px;
  22088. width: 60%;
  22089. background: #3681fc;
  22090. text-align: center;
  22091. height: 35px;
  22092. line-height: 35px;
  22093. color: #fff;
  22094. border-radius: 5px;
  22095. cursor: pointer;
  22096. }
  22097. .marginT {
  22098. margin-top: 20px;
  22099. }
  22100. .cd_content_steps {
  22101. display: flex;
  22102. width: 90%;
  22103. justify-content: space-around;
  22104. border-top: 1px solid #eeeeee;
  22105. }
  22106. .cd_steps_box {
  22107. display: flex;
  22108. justify-content: center;
  22109. align-items: center;
  22110. flex-direction: column;
  22111. cursor: pointer;
  22112. }
  22113. .first {
  22114. display: flex;
  22115. align-items: center;
  22116. margin: 15px 0 20px 0;
  22117. font-size: 20px;
  22118. }
  22119. .first > div:nth-child(2) {
  22120. font-size: 16px !important;
  22121. padding-left: 10px;
  22122. line-height: 26px;
  22123. box-sizing: border-box;
  22124. }
  22125. .blue_box_one {
  22126. text-align: center;
  22127. color: #fff;
  22128. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22129. border-radius: 7px;
  22130. margin: 10px;
  22131. cursor: pointer;
  22132. width: 95%;
  22133. height: 45px;
  22134. display: flex;
  22135. flex-direction: row;
  22136. justify-content: flex-start;
  22137. align-items: center;
  22138. }
  22139. .blue_box_one > div:nth-child(1) {
  22140. line-height: 30px;
  22141. margin: 0 5px 0 10px;
  22142. width: 30%;
  22143. min-width: 70px;
  22144. border-radius: 4px;
  22145. }
  22146. .blue_box_one > div:nth-child(2) {
  22147. white-space: nowrap;
  22148. text-overflow: ellipsis;
  22149. overflow: hidden;
  22150. word-break: break-all;
  22151. width: 70%;
  22152. text-align: left;
  22153. margin-right: 10px;
  22154. max-width: calc(100% - 85px);
  22155. }
  22156. .blue_box_one > div:nth-child(2):hover {
  22157. overflow: hidden;
  22158. text-overflow: ellipsis;
  22159. white-space: nowrap;
  22160. cursor: pointer;
  22161. }
  22162. .upFile {
  22163. margin: 0 auto;
  22164. width: 120px;
  22165. background: #3681fc;
  22166. color: #fff;
  22167. height: 30px;
  22168. text-align: center;
  22169. line-height: 30px;
  22170. border-radius: 5px;
  22171. font-size: 14px;
  22172. cursor: pointer;
  22173. }
  22174. .courseTitle {
  22175. width: 85%;
  22176. margin: 10px auto 26px auto;
  22177. display: flex;
  22178. flex-direction: row;
  22179. align-items: center;
  22180. justify-content: space-between;
  22181. text-align: center;
  22182. }
  22183. .courseTitle .ctitle {
  22184. font-size: 20px;
  22185. font-weight: bold;
  22186. color: #0e1e33;
  22187. white-space: nowrap;
  22188. overflow: hidden;
  22189. text-overflow: ellipsis;
  22190. }
  22191. .inviteBox {
  22192. font-size: 14px;
  22193. /* margin-top: 5px; */
  22194. color: #00000099;
  22195. text-align: center;
  22196. }
  22197. .courseTitle >>> .el-tooltip {
  22198. width: 100%;
  22199. white-space: nowrap;
  22200. overflow: hidden;
  22201. text-overflow: ellipsis;
  22202. word-break: break-word;
  22203. }
  22204. .ml {
  22205. margin-left: 20px;
  22206. color: #5b7dba;
  22207. border-left: 3px solid #5b7dba;
  22208. padding-left: 5px;
  22209. font-weight: bold;
  22210. }
  22211. .return {
  22212. width: 2rem;
  22213. height: 2rem;
  22214. cursor: pointer;
  22215. }
  22216. .return > img {
  22217. width: 100%;
  22218. height: 100%;
  22219. }
  22220. .returnBtn {
  22221. width: 86px;
  22222. height: 36px;
  22223. background: #3681fc;
  22224. border-radius: 4px;
  22225. color: #fff;
  22226. text-align: center;
  22227. line-height: 36px;
  22228. margin-right: 20px;
  22229. cursor: pointer;
  22230. font-size: 14px;
  22231. font-weight: 400;
  22232. display: flex;
  22233. flex-direction: row;
  22234. flex-wrap: nowrap;
  22235. align-items: center;
  22236. justify-content: center;
  22237. }
  22238. .reBtnIcon,
  22239. .commentIcon,
  22240. .vedioIcon,
  22241. .vedioIcon1 {
  22242. /* width: 36px; */
  22243. height: 36px;
  22244. border-radius: 4px;
  22245. position: relative;
  22246. /* background: #e0eafb; */
  22247. background: #0061ff;
  22248. cursor: pointer;
  22249. margin-right: 12px;
  22250. display: flex;
  22251. align-items: center;
  22252. padding: 0 10px;
  22253. box-sizing: border-box;
  22254. font-size: 14px;
  22255. color: #fff;
  22256. }
  22257. .reBtnIcon::before,
  22258. .commentIcon::before,
  22259. .vedioIcon::before,
  22260. .vedioIcon1::before {
  22261. content: "";
  22262. display: block;
  22263. background-size: 100% 100%;
  22264. background-repeat: no-repeat;
  22265. width: 20px;
  22266. height: 20px;
  22267. margin-right: 5px;
  22268. /* position: absolute; */
  22269. /* top: 8px;
  22270. left: 8px; */
  22271. }
  22272. .vedioIcon1 {
  22273. background: #f63564;
  22274. }
  22275. .reBtnIcon::before {
  22276. background-image: url("../assets/icon/newIcons/refresh.png");
  22277. }
  22278. .commentIcon::before {
  22279. background-image: url("../assets/icon/newIcons/comment.png");
  22280. }
  22281. .vedioIcon::before {
  22282. background-image: url("../assets/icon/newIcons/transcribe.png");
  22283. }
  22284. .vedioIcon1::before {
  22285. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22286. background-image: url("../assets/icon/newIcons/transcribe.png");
  22287. }
  22288. .tool {
  22289. display: flex;
  22290. flex-direction: column;
  22291. flex-wrap: nowrap;
  22292. width: 13%;
  22293. margin: 0 30px;
  22294. align-items: center;
  22295. position: relative;
  22296. padding: 10px 25px;
  22297. cursor: pointer;
  22298. }
  22299. .whiteBIcon {
  22300. width: 150px;
  22301. }
  22302. .whiteBIcon > img {
  22303. width: 100%;
  22304. height: 100%;
  22305. }
  22306. .mask {
  22307. background-color: rgba(0, 0, 0, 0);
  22308. position: fixed;
  22309. top: 0;
  22310. left: 0;
  22311. width: 100%;
  22312. height: 100%;
  22313. z-index: 20000;
  22314. display: flex;
  22315. align-items: center;
  22316. justify-content: center;
  22317. }
  22318. .progressBox {
  22319. width: 500px;
  22320. height: 180px;
  22321. background: #fff;
  22322. border-radius: 10px;
  22323. box-shadow: 0 0 6px 1px #bfbfbf;
  22324. display: flex;
  22325. align-items: center;
  22326. justify-content: center;
  22327. flex-direction: column;
  22328. position: relative;
  22329. color: #6c6c6c;
  22330. }
  22331. .progressBox >>> .el-progress-bar__outer {
  22332. background-color: #d1dfff !important;
  22333. }
  22334. .progressBox .lbox {
  22335. height: 50px;
  22336. font-size: 19px;
  22337. display: flex;
  22338. align-items: center;
  22339. color: #747474;
  22340. }
  22341. .progressBox .lbox img {
  22342. width: 40px;
  22343. margin-right: 20px;
  22344. }
  22345. .closeCss {
  22346. position: absolute;
  22347. top: 8px;
  22348. right: 8px;
  22349. cursor: pointer;
  22350. width: 20px;
  22351. height: 20px;
  22352. }
  22353. .closeCss > img {
  22354. width: 100%;
  22355. height: 100%;
  22356. }
  22357. .uploadVedio {
  22358. display: flex;
  22359. flex-direction: column;
  22360. flex-wrap: nowrap;
  22361. justify-content: center;
  22362. align-items: center;
  22363. margin: 0 15px 10px 0;
  22364. }
  22365. .uploadVedio > img {
  22366. width: 30px;
  22367. height: 30px;
  22368. }
  22369. .uploadVedio > span {
  22370. white-space: nowrap;
  22371. overflow: hidden;
  22372. text-overflow: ellipsis;
  22373. width: 75px;
  22374. margin-top: 7px;
  22375. }
  22376. .picName {
  22377. white-space: nowrap;
  22378. overflow: hidden;
  22379. text-overflow: ellipsis;
  22380. width: 75px;
  22381. margin-top: 7px;
  22382. }
  22383. .new_top {
  22384. display: flex;
  22385. background: #fff;
  22386. flex-direction: row;
  22387. justify-content: flex-start;
  22388. align-items: center;
  22389. height: 60px;
  22390. position: fixed;
  22391. top: 20px;
  22392. left: 22%;
  22393. width: 77%;
  22394. z-index: 999;
  22395. border-radius: 12px 12px 0 0;
  22396. border-bottom: 1px solid #cad1dc;
  22397. padding: 10px 0;
  22398. }
  22399. .new_topFixed {
  22400. width: 100%;
  22401. height: 40px;
  22402. position: fixed;
  22403. top: 0px;
  22404. display: block;
  22405. background: #f2f2f2;
  22406. z-index: 998;
  22407. }
  22408. .before {
  22409. position: absolute;
  22410. background: #c3dad4;
  22411. width: 6px;
  22412. height: 100%;
  22413. }
  22414. .courseIndex {
  22415. display: flex;
  22416. flex-direction: row;
  22417. align-items: center;
  22418. width: calc(100% - 745px);
  22419. }
  22420. .courseIndex > div:nth-child(1) {
  22421. margin: 0 0 0 10px;
  22422. font-size: 20px;
  22423. min-width: 100px;
  22424. font-weight: bold;
  22425. border-left: 4px solid #3363b9;
  22426. height: 32px;
  22427. text-align: center;
  22428. line-height: 35px;
  22429. }
  22430. .courseIndex > div:nth-child(2) {
  22431. font-size: 20px;
  22432. /* width: 300px; */
  22433. max-width: calc(100% - 105px);
  22434. white-space: nowrap;
  22435. overflow: hidden;
  22436. text-overflow: ellipsis;
  22437. }
  22438. .courseIndex > div:nth-child(3) {
  22439. border-bottom: 1px solid #d7d7d7;
  22440. padding-bottom: 5px;
  22441. background: #3681fc;
  22442. width: 55px;
  22443. min-width: 55px;
  22444. border-radius: 5px;
  22445. color: #fff;
  22446. text-align: center;
  22447. height: 20px;
  22448. line-height: 26px;
  22449. font-size: 14px;
  22450. margin: 0 0 0 10px;
  22451. }
  22452. .course_text {
  22453. padding: 20px 0 0 15px;
  22454. text-indent: 30px;
  22455. width: 80%;
  22456. min-height: 20px;
  22457. }
  22458. .vedioList {
  22459. background: #f2f2f2;
  22460. border: 1px solid #ececec;
  22461. /* width: 38.8%; */
  22462. /* width: 300px; */
  22463. width: 100%;
  22464. height: 445px;
  22465. border-radius: 10px;
  22466. overflow: hidden;
  22467. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22468. }
  22469. .vedioNav {
  22470. margin: 10px 0 0 15px;
  22471. border-bottom: 1px solid #d7d7d7;
  22472. padding-bottom: 5px;
  22473. background: #3681fc;
  22474. width: 55px;
  22475. min-width: 55px;
  22476. border-radius: 5px;
  22477. color: #fff;
  22478. text-align: center;
  22479. height: 20px;
  22480. line-height: 26px;
  22481. font-size: 14px;
  22482. }
  22483. .queTop {
  22484. display: flex;
  22485. padding: 20px 0 20px 30px;
  22486. width: 100%;
  22487. flex-direction: row;
  22488. justify-content: flex-start;
  22489. align-items: center;
  22490. box-sizing: border-box;
  22491. }
  22492. .queTopTitle {
  22493. display: flex;
  22494. flex-direction: row;
  22495. flex-wrap: nowrap;
  22496. align-items: center;
  22497. font-weight: bold;
  22498. font-size: 20px;
  22499. color: rgb(14, 30, 51);
  22500. }
  22501. .queTopTitle::before {
  22502. content: "";
  22503. width: 2px;
  22504. height: 22px;
  22505. background: #3681fc;
  22506. border-radius: 3px;
  22507. display: block;
  22508. margin: 2px 6px 0 0;
  22509. }
  22510. .queTopRight {
  22511. display: flex;
  22512. flex-direction: row;
  22513. flex-wrap: nowrap;
  22514. align-items: center;
  22515. }
  22516. .queTopClose {
  22517. margin-right: 20px;
  22518. cursor: pointer;
  22519. position: relative;
  22520. display: flex;
  22521. }
  22522. .closeImg,
  22523. .openImg {
  22524. width: 25px;
  22525. height: 25px;
  22526. position: absolute;
  22527. left: -20px;
  22528. top: -1px;
  22529. }
  22530. .closeImg > img,
  22531. .openImg > img {
  22532. width: 100%;
  22533. height: 100%;
  22534. }
  22535. .question {
  22536. width: 40px;
  22537. margin-right: 10px;
  22538. margin-top: 7px;
  22539. }
  22540. .queTitle {
  22541. margin-left: 5px;
  22542. font-size: 25px;
  22543. display: flex;
  22544. align-items: center;
  22545. }
  22546. .addEditor {
  22547. width: 100px;
  22548. height: 30px;
  22549. background: #42cda6;
  22550. color: #fff;
  22551. border-radius: 5px;
  22552. text-align: center;
  22553. line-height: 30px;
  22554. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22555. cursor: pointer;
  22556. }
  22557. /* .vedioName {
  22558. cursor: pointer;
  22559. margin: 0px 0px 10px 5px;
  22560. white-space: nowrap;
  22561. overflow: hidden;
  22562. text-overflow: ellipsis;
  22563. width: 100%;
  22564. } */
  22565. .vedioTime {
  22566. width: 35px;
  22567. position: absolute;
  22568. color: #fff;
  22569. bottom: 0px;
  22570. right: 0px;
  22571. text-align: center;
  22572. background: #46411f;
  22573. height: 20px;
  22574. font-size: 14px;
  22575. line-height: 20px;
  22576. }
  22577. .homework {
  22578. width: 200px;
  22579. display: flex;
  22580. flex-direction: column;
  22581. flex-wrap: nowrap;
  22582. align-items: center;
  22583. cursor: pointer;
  22584. }
  22585. .homebox {
  22586. display: flex;
  22587. flex-wrap: wrap;
  22588. flex-direction: row;
  22589. justify-content: flex-start;
  22590. align-items: center;
  22591. padding: 15px 0;
  22592. }
  22593. .isChooseActive {
  22594. color: #3681fc !important;
  22595. font-weight: bold !important;
  22596. }
  22597. .chooseWho {
  22598. display: flex;
  22599. width: 100%;
  22600. flex-direction: row;
  22601. flex-wrap: nowrap;
  22602. justify-content: flex-start;
  22603. padding-bottom: 10px;
  22604. }
  22605. .chooseWho > div {
  22606. cursor: pointer;
  22607. padding-bottom: 10px;
  22608. margin: 0 30px 0 0;
  22609. font-weight: 400;
  22610. color: #0e1e33;
  22611. }
  22612. .addPoint > div > img {
  22613. cursor: pointer;
  22614. width: 85px;
  22615. border-radius: 15px;
  22616. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22617. }
  22618. .addPoint > div {
  22619. display: flex;
  22620. flex-direction: column;
  22621. flex-wrap: nowrap;
  22622. align-items: center;
  22623. }
  22624. .isBorder > div {
  22625. margin: 0 0 10px 0;
  22626. align-items: flex-start !important;
  22627. }
  22628. .noiframeBox {
  22629. display: flex;
  22630. flex-wrap: wrap;
  22631. }
  22632. .iframeBox iframe {
  22633. width: 100%;
  22634. height: 800px;
  22635. border: none;
  22636. margin-bottom: 20px;
  22637. border: 1px solid #ccc;
  22638. }
  22639. .upload_toolBtn {
  22640. background: #3681fc;
  22641. color: #fff;
  22642. width: 110px;
  22643. text-align: center;
  22644. height: 35px;
  22645. line-height: 35px;
  22646. font-size: 14px;
  22647. border-radius: 5px;
  22648. cursor: pointer;
  22649. position: absolute;
  22650. right: 10px;
  22651. bottom: 0;
  22652. }
  22653. .binfo_input,
  22654. .pj {
  22655. font: inherit;
  22656. color: currentColor;
  22657. width: 100%;
  22658. margin: 0;
  22659. padding: 15px 14px;
  22660. display: block;
  22661. min-width: 0;
  22662. outline: none;
  22663. box-sizing: content-box;
  22664. background: none;
  22665. -webkit-tap-highlight-color: transparent;
  22666. border: 1px solid rgba(0, 0, 0, 0.23);
  22667. border-radius: 4px;
  22668. box-sizing: border-box;
  22669. resize: none;
  22670. }
  22671. .binfo_input:focus-visible {
  22672. border: 1px solid rgba(61, 103, 188);
  22673. }
  22674. .dialog_diy >>> .el-dialog__header,
  22675. .dialog_diy1 >>> .el-dialog__header {
  22676. background: #454545 !important;
  22677. padding: 15px 20px;
  22678. }
  22679. .dialog_diy >>> .el-dialog__title,
  22680. .dialog_diy1 >>> .el-dialog__title {
  22681. color: #fff;
  22682. }
  22683. .dialog_diy >>> .el-dialog__headerbtn,
  22684. .dialog_diy1 >>> .el-dialog__headerbtn {
  22685. top: 19px;
  22686. }
  22687. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22688. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22689. color: #fff;
  22690. }
  22691. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22692. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22693. color: #fff;
  22694. }
  22695. .dialog_diy1 >>> .el-dialog__body {
  22696. padding: 0;
  22697. }
  22698. .dialog_diy >>> .el-dialog__body,
  22699. .dialog_diy >>> .el-dialog__footer,
  22700. .dialog_diy1 >>> .el-dialog__footer {
  22701. background: #fafafa;
  22702. }
  22703. .a_addBox {
  22704. padding: 0 0 0 15px;
  22705. }
  22706. .a_add_box {
  22707. padding: 10px;
  22708. background: #fff;
  22709. margin-bottom: 10px;
  22710. border-radius: 5px;
  22711. box-shadow: 0 0 5px 0 #d5d5d5;
  22712. }
  22713. .a_add_head {
  22714. display: flex;
  22715. align-items: flex-start;
  22716. /* justify-content: space-between; */
  22717. flex-direction: column;
  22718. /* flex-direction: row; */
  22719. margin: 10px 0 20px 0;
  22720. font-size: 18px;
  22721. width: 100%;
  22722. }
  22723. .askIndex {
  22724. background: #3681fc;
  22725. border-radius: 50%;
  22726. color: #fff;
  22727. width: 25px;
  22728. height: 25px;
  22729. min-width: 25px;
  22730. min-height: 25px;
  22731. text-align: center;
  22732. line-height: 25px;
  22733. margin-right: 5px;
  22734. }
  22735. .a_add_head .a_add_head_input {
  22736. width: 300px;
  22737. }
  22738. .a_add_head .a_add_head_div {
  22739. display: flex;
  22740. align-items: center;
  22741. justify-content: space-between;
  22742. }
  22743. .a_add_body {
  22744. display: flex;
  22745. align-items: center;
  22746. }
  22747. .a_add_input {
  22748. display: flex;
  22749. align-items: center;
  22750. flex-wrap: wrap;
  22751. width: 100%;
  22752. }
  22753. .a_add_input >>> .el-radio-group,
  22754. .a_add_input >>> .el-checkbox-group {
  22755. width: 100%;
  22756. }
  22757. .a_add_input >>> .el-radio,
  22758. .a_add_input >>> .el-checkbox {
  22759. display: flex;
  22760. flex-direction: row;
  22761. flex-wrap: nowrap;
  22762. align-items: center;
  22763. padding: 15px 0;
  22764. }
  22765. .a_add_input >>> .el-radio:not(:last-child),
  22766. .a_add_input >>> .el-checkbox:not(:last-child) {
  22767. width: 100%;
  22768. border-bottom: 1px solid #efefef;
  22769. }
  22770. .redioStyle >>> .el-radio__label {
  22771. font-size: 18px;
  22772. }
  22773. .redioStyle >>> .el-radio__label > span,
  22774. .redioStyle >>> .el-checkbox__label > span {
  22775. word-break: break-all;
  22776. white-space: normal;
  22777. }
  22778. .redioStyle >>> .el-checkbox__label {
  22779. font-size: 18px;
  22780. }
  22781. .toolHeng2 {
  22782. width: 100%;
  22783. padding-left: 15px;
  22784. box-sizing: border-box;
  22785. }
  22786. .workNav {
  22787. font-size: 20px;
  22788. font-weight: bold;
  22789. color: #0e1e33;
  22790. display: flex;
  22791. flex-direction: row;
  22792. flex-wrap: nowrap;
  22793. align-items: center;
  22794. padding: 15px 0 15px 0;
  22795. }
  22796. .workNav::before {
  22797. content: "";
  22798. width: 2px;
  22799. height: 22px;
  22800. background: #3681fc;
  22801. border-radius: 3px;
  22802. display: block;
  22803. margin: 2px 6px 0 0;
  22804. }
  22805. .toolHeng {
  22806. display: flex;
  22807. flex-direction: row;
  22808. flex-wrap: wrap;
  22809. justify-content: flex-start;
  22810. align-items: center;
  22811. width: 100%;
  22812. }
  22813. .toolHeng > div {
  22814. padding-left: 20px;
  22815. }
  22816. .isWidth {
  22817. width: 20%;
  22818. }
  22819. .textTitle {
  22820. display: flex;
  22821. flex-direction: row;
  22822. flex-wrap: nowrap;
  22823. align-items: center;
  22824. width: 95%;
  22825. }
  22826. .textTitle >>> .el-form-item__label {
  22827. font-size: 22px;
  22828. color: #918f8f;
  22829. width: 100px;
  22830. }
  22831. .textTitle >>> .el-form-item__content {
  22832. width: calc(100% - 100px);
  22833. }
  22834. .textCss >>> .el-dialog {
  22835. width: 800px !important;
  22836. height: 400px;
  22837. background: #fafafa;
  22838. }
  22839. .textCss >>> .el-dialog__body {
  22840. margin: 55px 8% 0 8%;
  22841. padding: 0 !important;
  22842. }
  22843. .textCss >>> .el-dialog__footer {
  22844. padding-top: 38px;
  22845. }
  22846. .toolsCss >>> .el-dialog__body {
  22847. padding: 20px;
  22848. }
  22849. .lineCss >>> .el-dialog__body {
  22850. display: flex;
  22851. flex-direction: row;
  22852. align-items: center;
  22853. justify-content: center;
  22854. }
  22855. .newNav {
  22856. display: flex;
  22857. flex-direction: row;
  22858. align-items: baseline;
  22859. justify-content: flex-start;
  22860. }
  22861. .navListItem {
  22862. width: calc(100% - 20px);
  22863. height: 50px;
  22864. margin: 0px auto 10px;
  22865. display: flex;
  22866. flex-direction: row;
  22867. flex-wrap: nowrap;
  22868. align-items: center;
  22869. justify-content: space-between;
  22870. background: #f0f4fa;
  22871. border-radius: 6px 6px 6px 6px;
  22872. }
  22873. .navText {
  22874. cursor: pointer;
  22875. white-space: nowrap;
  22876. overflow: hidden;
  22877. text-overflow: ellipsis;
  22878. width: 220px;
  22879. padding: 0 10px;
  22880. font-weight: 400;
  22881. color: #0e1e33;
  22882. }
  22883. .downIcon {
  22884. width: 20px;
  22885. min-width: 20px;
  22886. height: 20px;
  22887. margin-right: 15px;
  22888. cursor: pointer;
  22889. }
  22890. .downIcon > img {
  22891. width: 100%;
  22892. height: 100%;
  22893. }
  22894. .noVedio {
  22895. display: flex;
  22896. flex-direction: row;
  22897. justify-content: center;
  22898. align-content: center;
  22899. }
  22900. .noNavText {
  22901. cursor: pointer;
  22902. margin: 0px 0px 10px 5px;
  22903. width: 112px;
  22904. }
  22905. .listNoVedio {
  22906. margin: 0 0 0 30px;
  22907. width: 97%;
  22908. }
  22909. .video-player >>> .video-js {
  22910. height: 100%;
  22911. }
  22912. .hangVedioList {
  22913. width: 90% !important;
  22914. height: 150px !important;
  22915. margin: 20px 0 0 30px;
  22916. }
  22917. .hangVedio {
  22918. width: 100%;
  22919. height: 170px !important;
  22920. align-items: flex-start !important;
  22921. }
  22922. .hangHand {
  22923. height: 150px !important;
  22924. }
  22925. .twoChild {
  22926. width: 95%;
  22927. margin: 10px;
  22928. border-radius: 5px;
  22929. background: #f2f2f2;
  22930. display: flex;
  22931. flex-direction: column;
  22932. flex-wrap: nowrap;
  22933. justify-content: flex-start;
  22934. align-items: flex-start;
  22935. transition: all 0.5s;
  22936. overflow: hidden;
  22937. height: 0;
  22938. background: #e7f3ff;
  22939. }
  22940. .twoChild > div:nth-child(1) {
  22941. margin-top: 5px;
  22942. }
  22943. .navChild {
  22944. width: 100%;
  22945. cursor: pointer;
  22946. margin-bottom: 10px;
  22947. position: relative;
  22948. }
  22949. .navChild img {
  22950. position: absolute;
  22951. right: 11px;
  22952. width: 15px;
  22953. top: 50%;
  22954. transform: translateY(-50%);
  22955. }
  22956. .navActive,
  22957. .toolActive {
  22958. height: auto !important;
  22959. overflow: auto !important;
  22960. /* padding-bottom: 16px; */
  22961. }
  22962. .toolActive {
  22963. padding: 0;
  22964. }
  22965. .navTask {
  22966. display: flex;
  22967. flex-direction: row;
  22968. flex-wrap: nowrap;
  22969. align-items: center;
  22970. align-content: flex-start;
  22971. height: 40px;
  22972. justify-content: flex-start;
  22973. padding: 0 10px;
  22974. width: 100%;
  22975. box-sizing: border-box;
  22976. }
  22977. .navTaskname {
  22978. white-space: nowrap;
  22979. text-overflow: ellipsis;
  22980. overflow: hidden;
  22981. word-break: break-all;
  22982. padding-left: 5px;
  22983. }
  22984. .openTaskActive {
  22985. /* background-color: #e0eafb !important;
  22986. color: #0061ff; */
  22987. color:#fff;
  22988. background: rgb(55, 129, 252) !important;
  22989. }
  22990. .iframeName {
  22991. margin: 5px 0;
  22992. border-left: 4px solid #41c4a4;
  22993. padding-left: 4px;
  22994. }
  22995. .toolTitle {
  22996. margin: 0px 0px 20px;
  22997. font-size: 20px;
  22998. font-weight: 500;
  22999. border-left: 4px solid #41c4a4;
  23000. padding-left: 4px;
  23001. }
  23002. .cru_selectBox {
  23003. overflow: auto;
  23004. width: 95%;
  23005. margin: 17px auto 0;
  23006. height: calc(100% - 40px - 21px - 20px - 17px);
  23007. background: #fff;
  23008. border-radius: 8px;
  23009. }
  23010. .cru_selectBox::-webkit-scrollbar,
  23011. .study_top::-webkit-scrollbar,
  23012. .textContent::-webkit-scrollbar {
  23013. /*滚动条整体样式*/
  23014. width: 6px;
  23015. /*高宽分别对应横竖滚动条的尺寸*/
  23016. height: 6px;
  23017. }
  23018. /*定义滚动条轨道 内阴影+圆角*/
  23019. .cru_selectBox::-webkit-scrollbar-track,
  23020. .study_top::-webkit-scrollbar-track,
  23021. .textContent::-webkit-scrollbar {
  23022. border-radius: 10px;
  23023. background-color: #b8bdc9;
  23024. }
  23025. /*定义滑块 内阴影+圆角*/
  23026. .cru_selectBox::-webkit-scrollbar-thumb,
  23027. .study_top::-webkit-scrollbar-thumb,
  23028. .textContent::-webkit-scrollbar-thumb {
  23029. border-radius: 10px;
  23030. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23031. background-color: #2c5ab3;
  23032. }
  23033. .vedioBox {
  23034. border-radius: 0 0 20px 20px;
  23035. background: #fff;
  23036. overflow: auto;
  23037. }
  23038. .taskBox {
  23039. width: 98%;
  23040. background: #f0f4fa;
  23041. margin: 10px auto;
  23042. padding: 0 10px;
  23043. border-radius: 4px;
  23044. box-sizing: border-box;
  23045. }
  23046. .vedioTaskBox {
  23047. width: 100%;
  23048. display: flex;
  23049. flex-direction: row;
  23050. flex-wrap: nowrap;
  23051. align-items: flex-start;
  23052. position: relative;
  23053. }
  23054. .toolBox {
  23055. margin: 15px 0 0 25px;
  23056. display: flex;
  23057. position: relative;
  23058. padding: 18px 20px;
  23059. border-top-left-radius: 5px;
  23060. border-top-right-radius: 5px;
  23061. width: 90%;
  23062. }
  23063. .btnAll {
  23064. position: absolute;
  23065. right: 0;
  23066. display: flex;
  23067. flex-direction: row;
  23068. flex-wrap: nowrap;
  23069. align-items: center;
  23070. }
  23071. .btnLeft,
  23072. .btnRight {
  23073. display: flex;
  23074. flex-direction: row;
  23075. flex-wrap: nowrap;
  23076. align-items: center;
  23077. padding: 5px 0;
  23078. }
  23079. .btnLeft {
  23080. border-right: 1px solid #cad1dc;
  23081. }
  23082. .btnLeft > .custom-tooltip {
  23083. background: #3681fc;
  23084. color: #fff;
  23085. }
  23086. .last:hover {
  23087. background: #3383fa !important;
  23088. color: #fff;
  23089. border: 1px solid #3383fa !important;
  23090. }
  23091. .last,
  23092. .returnBtn1 {
  23093. width: 90px;
  23094. height: 36px;
  23095. background: #ffffff;
  23096. border-radius: 4px;
  23097. border: 1px solid #0061ff;
  23098. color: #0061ff;
  23099. cursor: pointer;
  23100. display: flex;
  23101. flex-direction: row;
  23102. flex-wrap: nowrap;
  23103. align-items: center;
  23104. justify-content: center;
  23105. margin-left: 12px;
  23106. }
  23107. .returnBtn1 {
  23108. background: #f0f4fa;
  23109. border-radius: 4px;
  23110. border: 1px solid #cad1dc;
  23111. margin: 0 12px;
  23112. }
  23113. .lastImg {
  23114. min-width: 15px;
  23115. width: 15px;
  23116. height: 15px;
  23117. display: flex;
  23118. }
  23119. .lastText {
  23120. padding: 0 5px 0 5px;
  23121. box-sizing: border-box;
  23122. font-size: 14px;
  23123. }
  23124. .lastImg > img {
  23125. width: 100%;
  23126. height: 100%;
  23127. }
  23128. /* .vedioTimeBox {
  23129. display: flex;
  23130. flex-direction: row;
  23131. align-items: center;
  23132. flex-wrap: nowrap;
  23133. position: relative;
  23134. } */
  23135. .navBox {
  23136. background: #fff;
  23137. height: calc(100% - 40px);
  23138. overflow-y: auto;
  23139. overflow-x: hidden;
  23140. }
  23141. .worksBox {
  23142. margin: 0 0 10px 25px;
  23143. border-bottom: 1px solid #eeeeee;
  23144. padding: 18px 20px;
  23145. border-radius: 4px;
  23146. width: 90%;
  23147. }
  23148. .worksBTitle {
  23149. font-size: 20px;
  23150. padding-bottom: 15px;
  23151. border-bottom: 1px solid #eeeeee;
  23152. display: flex;
  23153. align-items: center;
  23154. }
  23155. .greenBox {
  23156. width: 5px;
  23157. height: 30px;
  23158. background: #63b6fa;
  23159. margin-right: 5px;
  23160. }
  23161. .worksDetailBox {
  23162. display: flex;
  23163. width: 100%;
  23164. flex-direction: row;
  23165. flex-wrap: wrap;
  23166. align-items: flex-end;
  23167. justify-content: flex-start;
  23168. padding: 15px 5px;
  23169. box-sizing: border-box;
  23170. }
  23171. .works {
  23172. display: flex;
  23173. flex-direction: column;
  23174. flex-wrap: nowrap;
  23175. align-items: flex-start;
  23176. justify-content: flex-start;
  23177. align-content: center;
  23178. max-width: 240px;
  23179. width: calc(100% / 3 - 10px);
  23180. height: auto;
  23181. margin-right: 10px;
  23182. margin-bottom: 10px;
  23183. overflow: hidden;
  23184. height: 140px;
  23185. box-shadow: 0 0 6px 1px #dfdada;
  23186. border-radius: 15px;
  23187. }
  23188. .workImg {
  23189. width: 100%;
  23190. /* height: calc(100% - 40px); */
  23191. height: 105px;
  23192. position: relative;
  23193. }
  23194. .workImg > img {
  23195. width: 100%;
  23196. height: 100%;
  23197. object-fit: contain;
  23198. cursor: pointer;
  23199. }
  23200. .worksName {
  23201. height: 40px;
  23202. line-height: 40px;
  23203. display: flex;
  23204. width: 100%;
  23205. flex-direction: row;
  23206. flex-wrap: nowrap;
  23207. justify-content: space-between;
  23208. align-items: center;
  23209. margin: 0 0 0 10px;
  23210. }
  23211. .worksName > div:nth-child(1) {
  23212. width: 110px;
  23213. white-space: nowrap;
  23214. overflow: hidden;
  23215. text-overflow: ellipsis;
  23216. }
  23217. .worksName > div:nth-child(2) {
  23218. color: #b7b4b5;
  23219. }
  23220. .noWorksS {
  23221. padding: 15px 0;
  23222. display: flex;
  23223. flex-direction: row;
  23224. flex-wrap: wrap;
  23225. align-items: center;
  23226. justify-content: flex-start;
  23227. }
  23228. .noWorksName,
  23229. .isWorksName,
  23230. .isWorksName2 {
  23231. background: #ddebf8;
  23232. color: #000;
  23233. width: 90px;
  23234. height: 25px;
  23235. text-align: center;
  23236. line-height: 25px;
  23237. border-radius: 4px;
  23238. margin: 10px 15px 10px 0;
  23239. white-space: nowrap;
  23240. overflow: hidden;
  23241. padding: 5px;
  23242. text-overflow: ellipsis;
  23243. cursor: pointer;
  23244. border: 1px solid #ddebf8;
  23245. }
  23246. .noWorksName {
  23247. background: #fff;
  23248. color: #0061ff;
  23249. border: 1px solid #0061ff;
  23250. }
  23251. .noWorksName > span{
  23252. max-width: 100%;
  23253. display: block;
  23254. overflow: hidden;
  23255. text-overflow: ellipsis;
  23256. white-space: nowrap;
  23257. }
  23258. .noWorksName2 {
  23259. background: #fff;
  23260. color: #0061ff;
  23261. width: 90px;
  23262. height: 25px;
  23263. text-align: center;
  23264. line-height: 25px;
  23265. border-radius: 4px;
  23266. margin: 10px 15px 10px 0;
  23267. white-space: nowrap;
  23268. overflow: hidden;
  23269. padding: 5px;
  23270. text-overflow: ellipsis;
  23271. cursor: pointer;
  23272. border: 1px solid #0061ff;
  23273. }
  23274. .noWorksName2 > span {
  23275. max-width: 100%;
  23276. display: block;
  23277. overflow: hidden;
  23278. text-overflow: ellipsis;
  23279. white-space: nowrap;
  23280. }
  23281. .isWorksName2 {
  23282. width: 100px;
  23283. height: 40px;
  23284. line-height: 40px;
  23285. position: relative;
  23286. background: #dae6f9;
  23287. }
  23288. .isWorksName {
  23289. background: #e7ebf1 !important;
  23290. width: 100px;
  23291. height: 40px;
  23292. line-height: 40px;
  23293. position: relative;
  23294. color: #acb4bf;
  23295. border: 1px solid #cad1dc !important;
  23296. }
  23297. .isSelectName,
  23298. .noWorksName:hover {
  23299. background: #3383fa !important;
  23300. color: #fff !important;
  23301. border: 1px solid #3383fa !important;
  23302. }
  23303. .title {
  23304. background: #1e5cc9;
  23305. /* width: 98%; */
  23306. height: 45px;
  23307. color: #fff;
  23308. line-height: 45px;
  23309. padding-left: 20px;
  23310. box-sizing: border-box;
  23311. }
  23312. .textBox {
  23313. font-size: 20px;
  23314. width: 90%;
  23315. display: flex;
  23316. flex-direction: column;
  23317. align-items: center;
  23318. margin: 20px auto 0;
  23319. max-height: calc(100% - 75px);
  23320. overflow: auto;
  23321. }
  23322. .textContent {
  23323. font-size: 18px;
  23324. width: 95%;
  23325. max-width: 95%;
  23326. }
  23327. .answerBg {
  23328. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23329. background-size: 100% 100%;
  23330. width: 100%;
  23331. height: 100%;
  23332. color: #fff;
  23333. text-align: center;
  23334. display: flex;
  23335. flex-direction: column;
  23336. flex-wrap: nowrap;
  23337. align-items: center;
  23338. position: relative;
  23339. justify-content: center;
  23340. }
  23341. /* .answerBg > div:nth-child(1) { */
  23342. /* font-size: 22px;
  23343. padding: 25px 0 10px; */
  23344. /* } */
  23345. .answerContent {
  23346. width: 215px;
  23347. max-height: 60px;
  23348. word-break: break-all;
  23349. text-align: center;
  23350. /* white-space: nowrap; */
  23351. overflow: hidden;
  23352. text-overflow: ellipsis;
  23353. /* padding: 23px 0 0; */
  23354. -webkit-line-clamp: 3;
  23355. -webkit-box-orient: vertical;
  23356. display: -webkit-box;
  23357. font-size: 15px;
  23358. cursor: pointer;
  23359. }
  23360. .elist_input_box {
  23361. display: flex;
  23362. align-items: flex-start;
  23363. flex-wrap: nowrap;
  23364. padding: 10px 0 15px 30px;
  23365. flex-direction: column;
  23366. }
  23367. .elist_input {
  23368. /* width: 40%; */
  23369. width: 45%;
  23370. margin: 20px;
  23371. }
  23372. .elist_input .elist_input_box input {
  23373. font: inherit;
  23374. color: currentColor;
  23375. width: 200px;
  23376. padding: 8px 14px;
  23377. display: block;
  23378. min-width: 0;
  23379. outline: none;
  23380. border: 1px solid rgba(0, 0, 0, 0.23);
  23381. border-radius: 4px;
  23382. box-sizing: border-box;
  23383. background: #fff;
  23384. margin: 0 20px 0 0;
  23385. }
  23386. .elist_input .elist_input_box span {
  23387. height: 36px;
  23388. line-height: 36px;
  23389. color: rgb(82, 82, 82);
  23390. }
  23391. .elist_input .elist_input_box .remove {
  23392. height: 20px;
  23393. width: 20px;
  23394. background-size: 100% 100%;
  23395. background-position: unset;
  23396. margin-left: 5px;
  23397. }
  23398. .elist_input_box >>> .el-rate {
  23399. display: flex;
  23400. height: 36px;
  23401. align-items: center;
  23402. }
  23403. .elist_input_box .elist_inptu_text {
  23404. min-height: 50px;
  23405. /* width: 500px;
  23406. max-height: 150px; */
  23407. width: 100%;
  23408. line-height: 50px;
  23409. color: rgb(82, 82, 82);
  23410. overflow: auto;
  23411. text-indent: 5px;
  23412. background: #f7f6f9;
  23413. border-radius: 10px;
  23414. }
  23415. .elist_input_box .elist_inptu_text input {
  23416. width: 500px;
  23417. }
  23418. .elist_input_box >>> .el-rate__icon {
  23419. font-size: 24px;
  23420. }
  23421. .isClick {
  23422. background: #4d9def;
  23423. }
  23424. .bzBox {
  23425. display: flex;
  23426. flex-direction: row;
  23427. align-items: center;
  23428. }
  23429. .bzBox .yCss {
  23430. width: 7px;
  23431. height: 7px;
  23432. background: #fff;
  23433. margin: 0 16px 0 6px;
  23434. border-radius: 50%;
  23435. border: 5px solid #3681fc;
  23436. z-index: 99;
  23437. }
  23438. .bzBox > div:nth-child(2) {
  23439. font-size: 18px;
  23440. font-weight: bold;
  23441. color: #0e1e33;
  23442. }
  23443. .navTitile {
  23444. padding: 0 0px 0 15px;
  23445. font-size: 16px;
  23446. font-weight: bold;
  23447. color: #0e1e33;
  23448. height: 40px;
  23449. line-height: 40px;
  23450. }
  23451. .isTypeOne {
  23452. width: 240px;
  23453. height: 170px;
  23454. /* border: 1px solid #f8f8f8; */
  23455. border-radius: 10px;
  23456. box-shadow: 0 0 6px 1px #dfdada;
  23457. }
  23458. .e_add_top {
  23459. display: flex;
  23460. justify-content: space-between;
  23461. padding: 10px 20px;
  23462. border-radius: 3px;
  23463. background: #fff;
  23464. }
  23465. .e_add_title2 {
  23466. display: flex;
  23467. align-items: center;
  23468. }
  23469. .e_add_title2 span {
  23470. width: 40px;
  23471. }
  23472. .e_add_title {
  23473. display: flex;
  23474. align-items: center;
  23475. color: #b8b8b8;
  23476. font-size: 18px;
  23477. position: relative;
  23478. height: 40px;
  23479. width: 100%;
  23480. }
  23481. .e_add_title span {
  23482. margin-right: 10px;
  23483. }
  23484. .e_add_title .el_input {
  23485. width: 300px;
  23486. }
  23487. .e_add_title >>> .el-input__inner {
  23488. width: 400px;
  23489. }
  23490. /* .e_add_btn {
  23491. } */
  23492. .e_add_content {
  23493. display: flex;
  23494. width: 100%;
  23495. max-width: 650px;
  23496. height: 550px;
  23497. }
  23498. .e_add_list {
  23499. background: #fff;
  23500. height: 500px;
  23501. width: 210px;
  23502. position: relative;
  23503. margin: 15px 5px 0 0;
  23504. flex-shrink: 0;
  23505. display: flex;
  23506. flex-direction: column;
  23507. }
  23508. .e_add_list_title {
  23509. font-size: 20px;
  23510. width: 100%;
  23511. box-sizing: border-box;
  23512. padding: 15px 40px;
  23513. text-align: center;
  23514. border-bottom: 1px solid #eaeaea;
  23515. position: relative;
  23516. display: flex;
  23517. align-items: center;
  23518. justify-content: center;
  23519. height: 57px;
  23520. background: #f6f6f6;
  23521. }
  23522. .e_add_list_title span {
  23523. overflow: hidden;
  23524. white-space: nowrap;
  23525. text-overflow: ellipsis;
  23526. }
  23527. .e_add_list_title img {
  23528. position: absolute;
  23529. right: 15px;
  23530. width: 25px;
  23531. cursor: pointer;
  23532. top: 50%;
  23533. transform: translateY(-50%);
  23534. }
  23535. .e_add_list_body {
  23536. height: calc(100% - 187px);
  23537. overflow: auto;
  23538. }
  23539. .e_add_list_child {
  23540. width: 100%;
  23541. display: flex;
  23542. align-items: center;
  23543. justify-content: center;
  23544. position: relative;
  23545. box-sizing: border-box;
  23546. padding: 15px 40px;
  23547. text-align: center;
  23548. }
  23549. .e_add_list_child span {
  23550. overflow: hidden;
  23551. white-space: nowrap;
  23552. text-overflow: ellipsis;
  23553. cursor: pointer;
  23554. }
  23555. .e_add_list_child img {
  23556. position: absolute;
  23557. right: 10px;
  23558. width: 21px;
  23559. cursor: pointer;
  23560. top: 50%;
  23561. transform: translateY(-50%);
  23562. }
  23563. .e_add_list_child + .e_add_list_child {
  23564. border-top: 1px solid #eaeaea;
  23565. }
  23566. .e_add_list_child .active {
  23567. color: #409eff;
  23568. }
  23569. .e_add_list_btn {
  23570. position: absolute;
  23571. bottom: 0;
  23572. height: 50px;
  23573. background: rgb(120, 120, 254);
  23574. width: 100%;
  23575. color: #fff;
  23576. font-size: 16px;
  23577. text-align: center;
  23578. line-height: 50px;
  23579. cursor: pointer;
  23580. }
  23581. .e_add_list_detail {
  23582. position: absolute;
  23583. bottom: 0;
  23584. height: 130px;
  23585. background: rgb(120, 120, 254);
  23586. width: 100%;
  23587. color: #fff;
  23588. font-size: 16px;
  23589. display: flex;
  23590. align-items: center;
  23591. justify-content: center;
  23592. }
  23593. .e_add_list_detail textarea {
  23594. height: 90%;
  23595. width: 95%;
  23596. border: none;
  23597. resize: none;
  23598. outline: none;
  23599. padding: 5px;
  23600. box-sizing: border-box;
  23601. }
  23602. .e_add_list_pbox {
  23603. width: 100%;
  23604. max-width: 650px;
  23605. /* height: 600px; */
  23606. }
  23607. .e_add_list_pbox_title {
  23608. height: 50px;
  23609. background: #fff;
  23610. display: flex;
  23611. align-items: center;
  23612. width: 100%;
  23613. box-sizing: border-box;
  23614. padding: 0 20px;
  23615. }
  23616. .type_title {
  23617. font-size: 18px;
  23618. font-weight: 700;
  23619. }
  23620. .type_content {
  23621. font-size: 16px;
  23622. /* margin-left: 30px; */
  23623. }
  23624. .type_content span + span {
  23625. margin-left: 20px;
  23626. }
  23627. .type_content span {
  23628. cursor: pointer;
  23629. padding-bottom: 5px;
  23630. box-sizing: border-box;
  23631. }
  23632. .type_content .active {
  23633. color: #409eff;
  23634. border-bottom: 2px solid #409eff;
  23635. }
  23636. .e_add_list_pbox_content {
  23637. height: calc(100% - 50px);
  23638. display: flex;
  23639. align-items: center;
  23640. width: 100%;
  23641. background: #fff;
  23642. }
  23643. .evaCss {
  23644. display: flex;
  23645. flex-direction: row;
  23646. flex-wrap: nowrap;
  23647. align-items: flex-start;
  23648. padding: 0 0 20px;
  23649. }
  23650. .cru_line {
  23651. position: absolute;
  23652. bottom: 0px;
  23653. transition: all 0.5s;
  23654. left: 0px;
  23655. width: 125px;
  23656. margin-left: -25px;
  23657. }
  23658. .isNoMessage {
  23659. width: 20%;
  23660. margin: 25% auto 0;
  23661. }
  23662. .isNoMessage > img {
  23663. width: 100%;
  23664. height: 100%;
  23665. }
  23666. .fullStyle >>> .el-dialog__body {
  23667. height: 100% !important;
  23668. }
  23669. .fullStyle >>> .el-dialog,
  23670. .fullStyle {
  23671. width: 100% !important;
  23672. max-width: 100% !important;
  23673. height: 100% !important;
  23674. margin: 0 !important;
  23675. }
  23676. .full_diy >>> .el-dialog {
  23677. margin: 0 !important;
  23678. height: 100%;
  23679. padding: 4px;
  23680. }
  23681. .full_diy >>> .el-dialog__body {
  23682. height: calc(100% - 100px);
  23683. }
  23684. .full_diy2 >>> .el-dialog__body {
  23685. height: calc(100% - 50px);
  23686. padding: 0;
  23687. }
  23688. .switchCss {
  23689. /* width: 100%; */
  23690. display: flex;
  23691. flex-direction: row;
  23692. flex-wrap: nowrap;
  23693. align-items: center;
  23694. /* justify-content: center; */
  23695. }
  23696. .isClickNav {
  23697. /* color: #499eef; */
  23698. color: #000;
  23699. }
  23700. .commentImg {
  23701. width: 25px;
  23702. height: 25px;
  23703. cursor: pointer;
  23704. }
  23705. .commentImg > img {
  23706. width: 100%;
  23707. height: 100%;
  23708. }
  23709. .comment {
  23710. background: #f9f9f9;
  23711. border-radius: 0 0 4px 4px;
  23712. display: flex;
  23713. flex-direction: row;
  23714. flex-wrap: nowrap;
  23715. align-items: center;
  23716. justify-content: flex-end;
  23717. height: 35px;
  23718. }
  23719. .commentList {
  23720. display: flex;
  23721. flex-direction: row;
  23722. flex-wrap: nowrap;
  23723. align-items: center;
  23724. justify-content: center;
  23725. align-content: center;
  23726. /* margin-left: 15px; */
  23727. /* margin-left: 8px; */
  23728. }
  23729. .scoreImg {
  23730. width: 17px;
  23731. height: 17px;
  23732. }
  23733. .studentDetail {
  23734. display: flex;
  23735. flex-direction: row;
  23736. flex-wrap: nowrap;
  23737. /* align-items: center; */
  23738. align-items: flex-start;
  23739. }
  23740. .tx {
  23741. width: 50px;
  23742. }
  23743. .tx > img {
  23744. width: 100%;
  23745. height: 100%;
  23746. }
  23747. .nameAndTime {
  23748. display: flex;
  23749. flex-direction: column;
  23750. flex-wrap: nowrap;
  23751. align-items: flex-start;
  23752. margin-left: 10px;
  23753. }
  23754. .worksAnswer {
  23755. color: #4078dd;
  23756. margin: 10px 0;
  23757. font-size: 16px;
  23758. position: relative;
  23759. }
  23760. .worksAnswer > img {
  23761. width: 500px;
  23762. height: 300px;
  23763. object-fit: contain;
  23764. margin: 0 auto;
  23765. display: block;
  23766. }
  23767. .commentTop {
  23768. border-bottom: 1px solid #eaeaea;
  23769. padding-bottom: 10px;
  23770. }
  23771. .commentBox {
  23772. padding-top: 15px;
  23773. }
  23774. .pl {
  23775. font-size: 18px;
  23776. }
  23777. .plPerson {
  23778. width: 100%;
  23779. }
  23780. .plName {
  23781. display: flex;
  23782. flex-direction: row;
  23783. flex-wrap: nowrap;
  23784. align-items: baseline;
  23785. color: #78787a;
  23786. width: 100%;
  23787. }
  23788. .deleteComment {
  23789. cursor: pointer;
  23790. margin-left: auto;
  23791. color: #237ade;
  23792. }
  23793. .plContent {
  23794. margin-top: 5px;
  23795. }
  23796. .evalCss {
  23797. background: #fff;
  23798. font-size: 18px;
  23799. }
  23800. .nav {
  23801. color: #9d9d9d;
  23802. padding: 5px 0 15px 20px;
  23803. }
  23804. .middleBox {
  23805. padding: 5px 0 15px 20px;
  23806. }
  23807. .pfBox {
  23808. padding-bottom: 30px;
  23809. }
  23810. .nameAndrate {
  23811. display: flex;
  23812. flex-direction: row;
  23813. flex-wrap: nowrap;
  23814. align-items: center;
  23815. padding-bottom: 10px;
  23816. height: 30px;
  23817. line-height: 30px;
  23818. }
  23819. .nameAndrate > div {
  23820. margin-left: 10px;
  23821. color: #000;
  23822. height: 30px;
  23823. }
  23824. .nameAndrate >>> .el-rate__icon {
  23825. font-size: 28px !important;
  23826. }
  23827. .pfBox > div:nth-child(2) {
  23828. background: #f7f6f9;
  23829. width: 400px;
  23830. min-height: 45px;
  23831. border-radius: 10px;
  23832. font-size: 16px;
  23833. display: flex;
  23834. flex-wrap: wrap;
  23835. align-items: center;
  23836. padding: 10px 20px;
  23837. box-sizing: border-box;
  23838. color: #000;
  23839. }
  23840. .bz {
  23841. display: flex;
  23842. flex-direction: row;
  23843. flex-wrap: nowrap;
  23844. align-items: flex-start;
  23845. }
  23846. .bz > div {
  23847. padding: 0 10px;
  23848. }
  23849. .select_box2_title {
  23850. background: #fff;
  23851. border-radius: 5px;
  23852. padding: 15px 10px;
  23853. box-sizing: border-box;
  23854. margin-bottom: 10px;
  23855. display: flex;
  23856. flex-direction: row;
  23857. flex-wrap: nowrap;
  23858. align-items: center;
  23859. }
  23860. .select_box2_title > div:nth-child(2) {
  23861. margin-left: 10px;
  23862. color: #c4c4c4;
  23863. }
  23864. .select_box2_box {
  23865. display: flex;
  23866. height: 500px;
  23867. }
  23868. .select_box2_img {
  23869. width: calc(100% - 310px);
  23870. height: 100%;
  23871. overflow: auto;
  23872. background: #fff;
  23873. border-radius: 5px;
  23874. }
  23875. .select_box2_img img {
  23876. width: 100%;
  23877. }
  23878. .select_box2_answer {
  23879. background: #fff;
  23880. margin-left: 10px;
  23881. border-radius: 5px;
  23882. width: 300px;
  23883. overflow: auto;
  23884. height: 90%;
  23885. display: flex;
  23886. flex-direction: column;
  23887. align-items: flex-start;
  23888. padding-top: 10px;
  23889. box-sizing: border-box;
  23890. position: relative;
  23891. }
  23892. .select_answer_title {
  23893. padding: 0 0 15px 20px;
  23894. color: #c4c4c4;
  23895. }
  23896. .select_box2_answer_box {
  23897. margin: 0 0 10px 20px;
  23898. width: 85%;
  23899. display: flex;
  23900. flex-direction: row;
  23901. flex-wrap: nowrap;
  23902. align-items: center;
  23903. }
  23904. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23905. color: #000;
  23906. }
  23907. .upAnswerCss {
  23908. position: absolute;
  23909. bottom: 15px;
  23910. right: 15px;
  23911. }
  23912. .upAnswerCss >>> .el-button {
  23913. width: 95px;
  23914. height: 35px;
  23915. line-height: 35px;
  23916. padding: 0;
  23917. }
  23918. .rightWidthCss {
  23919. width: 60%;
  23920. display: flex;
  23921. flex-direction: row;
  23922. align-items: flex-start;
  23923. }
  23924. .rightAnswer {
  23925. display: flex;
  23926. flex-direction: row;
  23927. flex-wrap: nowrap;
  23928. align-items: center;
  23929. color: red;
  23930. margin-bottom: 31px;
  23931. }
  23932. .rightAnswerCss {
  23933. display: flex;
  23934. flex-direction: column;
  23935. flex-wrap: nowrap;
  23936. padding-top: 60px;
  23937. }
  23938. .blueCss {
  23939. color: #767de1;
  23940. margin-left: 10px;
  23941. }
  23942. .redCss {
  23943. color: red;
  23944. }
  23945. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23946. color: rgb(0 123 255) !important;
  23947. }
  23948. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23949. color: rgb(0 123 255) !important;
  23950. }
  23951. .zuoyeYulan {
  23952. padding-top: 0;
  23953. font-size: 18px;
  23954. display: flex;
  23955. align-items: flex-end;
  23956. }
  23957. .buttonA {
  23958. margin-left: 10px;
  23959. padding: 0;
  23960. }
  23961. .displayBox {
  23962. margin-bottom: 10px;
  23963. display: block;
  23964. border-bottom: 3px solid #eee;
  23965. display: flex;
  23966. align-items: center;
  23967. }
  23968. .easy_comment {
  23969. width: calc(100% - 90px);
  23970. margin-left: 10px;
  23971. display: flex;
  23972. flex-wrap: wrap;
  23973. }
  23974. .easy_comment > div {
  23975. border: 1px solid #4a4a4a;
  23976. color: #666;
  23977. border-radius: 15px;
  23978. padding: 5px 10px;
  23979. font-size: 16px;
  23980. margin-bottom: 10px;
  23981. margin-right: 5px;
  23982. cursor: pointer;
  23983. }
  23984. .easy_comment div:hover {
  23985. border: 1px solid #f7ba2a;
  23986. color: #c69217;
  23987. }
  23988. .xuan_right_box {
  23989. padding: 10px 0;
  23990. background: #f0f4fa;
  23991. margin: 0 15px 0 25px;
  23992. border-bottom-left-radius: 5px;
  23993. border-bottom-right-radius: 5px;
  23994. width: 91.5%;
  23995. }
  23996. .tool_right_box {
  23997. display: flex;
  23998. align-items: center;
  23999. }
  24000. .tool_right_box >>> .katex {
  24001. font-size: 16px;
  24002. }
  24003. .tool_right_box + .tool_right_box {
  24004. margin-top: 10px;
  24005. }
  24006. .right_box_xuan {
  24007. border-radius: 5px;
  24008. padding: 5px;
  24009. margin-left: 10px;
  24010. min-width: 85px;
  24011. background: #fff;
  24012. color: #0061ff;
  24013. border: 1px solid #0061ff;
  24014. font-size: 14px;
  24015. }
  24016. .pButton:hover {
  24017. opacity: 1 !important;
  24018. }
  24019. .pButton {
  24020. position: fixed;
  24021. text-align: center;
  24022. cursor: pointer;
  24023. z-index: 999;
  24024. right: 20px;
  24025. top: 110px;
  24026. width: 50px;
  24027. height: 50px;
  24028. display: flex;
  24029. align-items: center;
  24030. justify-content: center;
  24031. border-radius: 5px;
  24032. }
  24033. .pzClass {
  24034. width: calc(100% - 340px);
  24035. }
  24036. .newDialogCss {
  24037. /* position: fixed;
  24038. right: 5%;
  24039. top: 50%;
  24040. width: 340px;
  24041. transform: translateY(-50%);
  24042. height: 60%;
  24043. box-shadow: 0px 0 8px 0px #555555;
  24044. border-radius: 15px;
  24045. z-index: 999; */
  24046. position: fixed;
  24047. right: 20px;
  24048. top: 101px;
  24049. width: 330px;
  24050. height: calc(100% - 80px);
  24051. z-index: 999;
  24052. background: #fff;
  24053. border-top-right-radius: 0px;
  24054. border-bottom-right-radius: 0px;
  24055. overflow: hidden;
  24056. }
  24057. .newDialogCss>.scoreList{
  24058. width:100%;
  24059. height:100%;
  24060. box-sizing:border-box;
  24061. padding:10px 15px;
  24062. overflow:auto;
  24063. padding-bottom:80px;
  24064. }
  24065. .pzTop {
  24066. color: #fff;
  24067. background: #000;
  24068. display: flex;
  24069. flex-direction: row;
  24070. flex-wrap: nowrap;
  24071. align-items: center;
  24072. justify-content: space-between;
  24073. height: 40px;
  24074. border-radius: 15px 15px 0 0;
  24075. user-select: none;
  24076. }
  24077. .pzTop2 .checkbox {
  24078. display: flex;
  24079. align-items: center;
  24080. padding: 5px 10px;
  24081. flex: 0 0 auto;
  24082. font-weight: bold;
  24083. border-bottom: 1px solid #eee;
  24084. justify-content: space-between;
  24085. }
  24086. .checkbox>.cb-tabList{
  24087. display:flex;
  24088. align-items:center;
  24089. }
  24090. .cb-tabList>div{
  24091. margin-right:20px;
  24092. font-weight:400;
  24093. cursor:pointer;
  24094. }
  24095. .cb-tabList>.cb-tabItem{
  24096. color:#1684FC;
  24097. position:relative;
  24098. }
  24099. .cb-tabItem::after{
  24100. content:"";
  24101. width:100%;
  24102. height:2px;
  24103. background:#1684FC;
  24104. position:absolute;
  24105. bottom:-5px;
  24106. left:0
  24107. }
  24108. .pzTop2 .check {
  24109. text-align: center;
  24110. cursor: pointer;
  24111. box-sizing: border-box;
  24112. display: flex;
  24113. }
  24114. .pzTop2 img {
  24115. width: 25px;
  24116. cursor: pointer;
  24117. }
  24118. .pzTop > div:nth-child(1) {
  24119. padding-left: 10px;
  24120. }
  24121. .pzTop > div:nth-child(2) {
  24122. width: 15px;
  24123. height: 15px;
  24124. padding-right: 10px;
  24125. cursor: pointer;
  24126. }
  24127. .pzTop > div:nth-child(2) > img {
  24128. width: 100%;
  24129. height: 100%;
  24130. }
  24131. .pzBox,
  24132. .noPzBox {
  24133. height: calc(100% - 60px);
  24134. /* background: #ededed; */
  24135. background: #fff;
  24136. /* border-radius: 0 0 15px 15px; */
  24137. }
  24138. .noPzBox {
  24139. display: flex;
  24140. flex-direction: column;
  24141. flex-wrap: nowrap;
  24142. justify-content: center;
  24143. align-items: center;
  24144. }
  24145. .pzList {
  24146. background: #f7f7f7;
  24147. width: 90%;
  24148. margin: 0 auto 15px;
  24149. border-radius: 5px;
  24150. }
  24151. .pzNavTop {
  24152. display: flex;
  24153. flex-direction: row;
  24154. flex-wrap: nowrap;
  24155. padding: 10px 10px 0 10px;
  24156. align-items: center;
  24157. }
  24158. .pzDelete {
  24159. cursor: pointer;
  24160. margin-left: auto;
  24161. font-size: 14px;
  24162. color: #afafaf;
  24163. }
  24164. .pzNavTop > div:nth-child(1) {
  24165. background: #3760af;
  24166. width: 35px;
  24167. height: 35px;
  24168. color: #fff;
  24169. text-align: center;
  24170. line-height: 35px;
  24171. border-radius: 50%;
  24172. font-size: 14px;
  24173. }
  24174. .pzNavTop > div:nth-child(2) {
  24175. font-size: 18px;
  24176. color: #959595;
  24177. margin-left: 5px;
  24178. }
  24179. .pzContent {
  24180. padding: 10px;
  24181. word-break: break-word;
  24182. }
  24183. .pzContent audio {
  24184. width: 100%;
  24185. }
  24186. .pzContent audio::-webkit-media-controls-panel {
  24187. background: #fff;
  24188. }
  24189. .pzContent >>> img {
  24190. max-width: 100%;
  24191. }
  24192. .pzListBox {
  24193. padding-top: 15px;
  24194. height: calc(100% - 110px);
  24195. overflow: auto;
  24196. }
  24197. .addPzButton {
  24198. position: relative;
  24199. margin-top: 3px;
  24200. width: 100%;
  24201. }
  24202. .addPzButton .img1 {
  24203. position: absolute;
  24204. top: 50%;
  24205. right: 25px;
  24206. transform: translateY(-50%);
  24207. height: 100%;
  24208. display: flex;
  24209. align-items: center;
  24210. }
  24211. .addPzButton .img1 div {
  24212. display: flex;
  24213. }
  24214. .addPzButton .img1 div img {
  24215. width: 28px;
  24216. margin-left: 10px;
  24217. cursor: pointer;
  24218. }
  24219. .addPzButton .img1 div span {
  24220. font-size: 14px;
  24221. margin: 4px 0 0 3px;
  24222. color: #afafaf;
  24223. }
  24224. .addPz {
  24225. background: #4b79ce;
  24226. width: 100px;
  24227. color: #fff;
  24228. font-size: 12px;
  24229. height: 30px;
  24230. margin: 0 auto;
  24231. text-align: center;
  24232. line-height: 30px;
  24233. border-radius: 10px;
  24234. cursor: pointer;
  24235. }
  24236. .addDialogCss {
  24237. position: fixed;
  24238. width: 600px;
  24239. height: 70%;
  24240. min-height: 450px;
  24241. box-shadow: 0px 0 8px 0px #555555;
  24242. border-radius: 15px;
  24243. z-index: 999;
  24244. left: 50%;
  24245. top: 50%;
  24246. margin: -18% 0 0 -300px;
  24247. }
  24248. .teacherPz {
  24249. display: flex;
  24250. flex-direction: row;
  24251. align-items: center;
  24252. flex-wrap: nowrap;
  24253. }
  24254. .teacherPzImg {
  24255. width: 30px;
  24256. height: 30px;
  24257. }
  24258. .teacherPzImg > img {
  24259. width: 100%;
  24260. height: 100%;
  24261. }
  24262. .addPzBox {
  24263. height: calc(100% - 40px);
  24264. background: #ededed;
  24265. border-bottom-left-radius: 15px;
  24266. border-bottom-right-radius: 15px;
  24267. }
  24268. .pzAudioClass {
  24269. margin: 15px 14px;
  24270. background: #fff;
  24271. height: 100%;
  24272. display: flex;
  24273. justify-content: center;
  24274. align-items: center;
  24275. }
  24276. .pzConText {
  24277. width: 95%;
  24278. height: 100%;
  24279. margin: 10px auto 0;
  24280. border: none;
  24281. background: #fff;
  24282. border-radius: 0px;
  24283. }
  24284. .pzConText >>> .text {
  24285. height: calc(100% - 82px);
  24286. }
  24287. .addTextCss {
  24288. background: #4b79ce;
  24289. width: 80px;
  24290. height: 30px;
  24291. text-align: center;
  24292. color: #fff;
  24293. line-height: 30px;
  24294. border-radius: 10px;
  24295. margin: 10px auto 0;
  24296. cursor: pointer;
  24297. }
  24298. .pzConText:focus-visible {
  24299. border: none !important;
  24300. }
  24301. .maxWidth {
  24302. width: 1000px;
  24303. }
  24304. .noPz {
  24305. width: 150px;
  24306. margin: 0 auto 20%;
  24307. }
  24308. .noPz > img {
  24309. width: 100%;
  24310. height: 100%;
  24311. }
  24312. .timeAndReply {
  24313. display: flex;
  24314. flex-direction: row;
  24315. flex-wrap: nowrap;
  24316. justify-content: space-between;
  24317. align-items: center;
  24318. font-size: 14px;
  24319. box-sizing: border-box;
  24320. padding: 0 10px 10px 0px;
  24321. }
  24322. .timeAndReply .time {
  24323. color: #bfbfbf;
  24324. padding: 0 0 0 10px;
  24325. box-sizing: border-box;
  24326. }
  24327. .timeAndReply > div:last-child {
  24328. cursor: pointer;
  24329. color: #777;
  24330. }
  24331. /* table 样式 */
  24332. .cont >>> table {
  24333. border-top: 1px solid #ccc;
  24334. border-left: 1px solid #ccc;
  24335. }
  24336. .cont >>> table td,
  24337. .cont >>> table th {
  24338. border-bottom: 1px solid #ccc;
  24339. border-right: 1px solid #ccc;
  24340. /* padding: 20px 5px; */
  24341. padding: 5px 10px;
  24342. max-width: 0px;
  24343. height: 30px;
  24344. vertical-align: baseline;
  24345. box-sizing: border-box;
  24346. }
  24347. .cont >>> table th {
  24348. border-bottom: 2px solid #ccc;
  24349. text-align: center;
  24350. }
  24351. /* blockquote 样式 */
  24352. .cont >>> blockquote {
  24353. display: block;
  24354. border-left: 8px solid #d0e5f2;
  24355. padding: 5px 10px;
  24356. margin: 10px 0;
  24357. line-height: 1.4;
  24358. font-size: 100%;
  24359. background-color: #f1f1f1;
  24360. }
  24361. /* code 样式 */
  24362. .cont >>> code {
  24363. display: inline-block;
  24364. /* *display: inline; */
  24365. zoom: 1;
  24366. background-color: #f1f1f1;
  24367. border-radius: 3px;
  24368. padding: 3px 5px;
  24369. margin: 0 3px;
  24370. }
  24371. .cont >>> pre code {
  24372. display: block;
  24373. }
  24374. /* ul ol 样式 */
  24375. .cont >>> ul,
  24376. ol {
  24377. margin: 10px 0 10px 20px;
  24378. }
  24379. .addPzCheck {
  24380. display: flex;
  24381. flex-direction: row;
  24382. flex-wrap: nowrap;
  24383. padding: 10px 15px 0;
  24384. }
  24385. .addPzCheck span {
  24386. cursor: pointer;
  24387. padding-bottom: 5px;
  24388. font-weight: bold;
  24389. }
  24390. .addPzCheck span + span {
  24391. margin-left: 10px;
  24392. }
  24393. .addPzCheck .isChooseActive {
  24394. color: #3e88f4;
  24395. border-bottom: 2px solid #2f80f3;
  24396. }
  24397. /* code 样式 */
  24398. .cont {
  24399. /* -webkit-user-modify: read-write; */
  24400. overflow-wrap: break-word;
  24401. -webkit-line-break: after-white-space;
  24402. word-break: break-word;
  24403. white-space: pre-line;
  24404. }
  24405. .scoreBox,
  24406. .scoreDetailBox {
  24407. display: flex;
  24408. align-items: center;
  24409. justify-content: flex-start;
  24410. margin-top: 20px;
  24411. font-size: 18px;
  24412. width: 100%;
  24413. }
  24414. .scoreBox .t,
  24415. .scoreDetailBox .t {
  24416. margin-right: 10px;
  24417. width: 100px;
  24418. text-align: right;
  24419. }
  24420. .scoreDetailBox {
  24421. align-items: flex-start;
  24422. }
  24423. .scoreDetailBox >>> .el-textarea {
  24424. width: calc(100% - 200px);
  24425. }
  24426. .scoreBox >>> .el-input {
  24427. width: 130px;
  24428. font-size: 38px;
  24429. }
  24430. .scoreBox >>> .el-input__inner {
  24431. height: 60px;
  24432. }
  24433. .answerScore {
  24434. position: absolute;
  24435. top: 10px;
  24436. right: 10px;
  24437. background: #0000008f;
  24438. border-radius: 5px;
  24439. padding: 3px 5px;
  24440. font-size: 14px;
  24441. color: #fff;
  24442. cursor: pointer;
  24443. }
  24444. .open_box .switch_box {
  24445. width: 100%;
  24446. margin: 0 auto;
  24447. display: flex;
  24448. justify-content: space-between;
  24449. }
  24450. .open_box .switch_box + .switch_box {
  24451. margin-top: 10px;
  24452. }
  24453. .deleteImg,.deleteImg1 {
  24454. width: 25px !important;
  24455. height: 25px !important;
  24456. cursor: pointer;
  24457. position: absolute;
  24458. top: 10px;
  24459. right: 10px;
  24460. }
  24461. .deleteImg2 {
  24462. width: 23px !important;
  24463. height: 23px !important;
  24464. top: 5px;
  24465. right: 5px;
  24466. }
  24467. .deleteImg1{
  24468. width: 23px !important;
  24469. height: 23px !important;
  24470. top: 5px !important;
  24471. right: 30px !important;
  24472. }
  24473. .rightW {
  24474. right: 40px;
  24475. }
  24476. .drawPBox {
  24477. display: flex;
  24478. flex-direction: column;
  24479. position: relative;
  24480. }
  24481. .drawPBox span {
  24482. font-size: 18px;
  24483. color: #606266;
  24484. padding-bottom: 10px;
  24485. margin: 10px 0;
  24486. border-bottom: 1px solid #eaeaea;
  24487. }
  24488. .drawPBox img {
  24489. width: 500px;
  24490. height: 300px;
  24491. object-fit: contain;
  24492. cursor: pointer;
  24493. margin: 0 auto;
  24494. }
  24495. .sentenBox {
  24496. background: #fff;
  24497. height: 450px;
  24498. overflow: auto;
  24499. background-image: url("../assets/icon/conSentences/stuBg.png");
  24500. background-position: 102%;
  24501. background-repeat: no-repeat;
  24502. background-size: 60%;
  24503. }
  24504. .addSen {
  24505. background: #409efe;
  24506. width: 90px;
  24507. color: #fff;
  24508. height: 35px;
  24509. text-align: center;
  24510. line-height: 35px;
  24511. border-radius: 5px;
  24512. float: right;
  24513. margin: 10px 20px 0 0;
  24514. cursor: pointer;
  24515. }
  24516. .sentenTop {
  24517. display: flex;
  24518. flex-direction: row;
  24519. flex-wrap: nowrap;
  24520. align-items: center;
  24521. padding: 55px 0 0 20px;
  24522. box-sizing: border-box;
  24523. }
  24524. .sentenTop > div:nth-child(2) {
  24525. width: 300px;
  24526. margin: 0 15px;
  24527. }
  24528. .sentenTop > div:nth-child(3) {
  24529. background: #409efe;
  24530. color: #fff;
  24531. width: 65px;
  24532. height: 35px;
  24533. text-align: center;
  24534. line-height: 35px;
  24535. border-radius: 5px;
  24536. cursor: pointer;
  24537. }
  24538. .cardList,
  24539. .cardList1 {
  24540. padding: 10px 0 10px 0;
  24541. display: flex;
  24542. flex-direction: row;
  24543. flex-wrap: wrap;
  24544. align-items: center;
  24545. box-sizing: border-box;
  24546. border-bottom: 1px solid #f4f4f4;
  24547. width: 98%;
  24548. margin: 0 auto;
  24549. min-width: 60%;
  24550. max-width: 85%;
  24551. }
  24552. .cardList1 {
  24553. padding: 10px 0 10px 10px !important;
  24554. margin: 0 !important;
  24555. }
  24556. .cardBox {
  24557. display: flex;
  24558. flex-direction: row;
  24559. flex-wrap: wrap;
  24560. align-items: center;
  24561. align-content: center;
  24562. }
  24563. .cardBox > div {
  24564. margin-bottom: 10px;
  24565. }
  24566. .isCard,
  24567. .isChooseCard,
  24568. .noCard,
  24569. .isCard1 {
  24570. min-width: 130px;
  24571. width: auto;
  24572. height: 60px;
  24573. text-align: center;
  24574. line-height: 60px;
  24575. font-size: 20px;
  24576. cursor: pointer;
  24577. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24578. background-size: cover;
  24579. transition: all 2s;
  24580. margin-right: 20px;
  24581. background-size: 100% 100%;
  24582. padding: 0 20px;
  24583. box-sizing: border-box;
  24584. }
  24585. .isCard > div,
  24586. .noCard > div,
  24587. .isCard1 > div {
  24588. white-space: nowrap;
  24589. overflow: hidden;
  24590. text-overflow: ellipsis;
  24591. width: 100%;
  24592. margin: 0 auto;
  24593. }
  24594. .noCard {
  24595. background-image: none;
  24596. }
  24597. .isCard1 {
  24598. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24599. }
  24600. .isChooseCard {
  24601. background-image: none;
  24602. border: 1px dashed #b9b9b9;
  24603. border-radius: 10px;
  24604. }
  24605. .card {
  24606. width: 130px;
  24607. height: 60px;
  24608. }
  24609. .card > img {
  24610. width: 100%;
  24611. height: 100%;
  24612. }
  24613. .rightCardBox {
  24614. margin: 10px 0 0 10px;
  24615. }
  24616. .rightCardBox > div:nth-child(1) {
  24617. margin-bottom: 10px;
  24618. }
  24619. .cardCss {
  24620. display: flex;
  24621. flex-direction: column;
  24622. flex-wrap: nowrap;
  24623. align-items: center;
  24624. border-bottom: 3px solid #b4c3d3;
  24625. padding: 0 0 5px 0;
  24626. margin-right: 10px;
  24627. }
  24628. .cardCss > div:nth-child(2) {
  24629. background: #5b7b9d;
  24630. color: #fff;
  24631. width: 20px;
  24632. height: 20px;
  24633. border-radius: 50%;
  24634. text-align: center;
  24635. line-height: 20px;
  24636. }
  24637. .isWrong {
  24638. display: flex;
  24639. flex-direction: row;
  24640. flex-wrap: nowrap;
  24641. align-content: center;
  24642. align-items: center;
  24643. }
  24644. .answerRight {
  24645. width: 25%;
  24646. }
  24647. .isTj {
  24648. display: flex;
  24649. flex-direction: row;
  24650. flex-wrap: nowrap;
  24651. align-items: center;
  24652. }
  24653. .isTj > div:nth-child(2) {
  24654. color: #727070;
  24655. margin-left: 10px;
  24656. }
  24657. .isTjImg {
  24658. width: 30px;
  24659. height: 30px;
  24660. }
  24661. .isTjImg > img {
  24662. width: 100%;
  24663. height: 100%;
  24664. }
  24665. .cardAnswerBox {
  24666. font-size: 18px;
  24667. width: 97%;
  24668. border: 5px;
  24669. padding: 0;
  24670. border-radius: 5px;
  24671. margin: 10px auto;
  24672. word-break: break-word;
  24673. }
  24674. .w_name {
  24675. margin-bottom: 10px;
  24676. }
  24677. .w_name span {
  24678. font-size: 16px;
  24679. }
  24680. .w_teachert {
  24681. width: 50px !important;
  24682. position: absolute;
  24683. height: auto !important;
  24684. z-index: 10;
  24685. right: 25px;
  24686. top: -25px;
  24687. }
  24688. /* .group_workBox {
  24689. } */
  24690. .group_workBox + .group_workBox {
  24691. margin-top: 20px;
  24692. }
  24693. .group_box {
  24694. padding-bottom: 20px;
  24695. border-bottom: 2px solid #f0f0f0;
  24696. margin-top: 10px;
  24697. }
  24698. .group_title {
  24699. display: flex;
  24700. align-items: center;
  24701. justify-content: space-between;
  24702. width: 95%;
  24703. }
  24704. .group_name {
  24705. background-image: url(../assets/icon/groupN.png);
  24706. width: 220px;
  24707. background-size: 100% 100%;
  24708. height: 67px;
  24709. padding: 0 20px 0 43px;
  24710. box-sizing: border-box;
  24711. line-height: 63px;
  24712. color: #fff;
  24713. overflow: hidden;
  24714. white-space: nowrap;
  24715. text-overflow: ellipsis;
  24716. }
  24717. .group_work {
  24718. width: 100%;
  24719. padding: 0 10px;
  24720. box-sizing: border-box;
  24721. display: flex;
  24722. flex-wrap: wrap;
  24723. }
  24724. .g_d_box {
  24725. display: flex;
  24726. flex-flow: wrap;
  24727. justify-content: space-around;
  24728. }
  24729. .g_d_box .isChair {
  24730. background-image: url(../assets/avatar.png) !important;
  24731. }
  24732. .g_d_group {
  24733. width: 500px;
  24734. margin-bottom: 80px;
  24735. }
  24736. .g_d_group_chair {
  24737. display: flex;
  24738. align-items: center;
  24739. justify-content: center;
  24740. }
  24741. .g_d_group_chair > div + div {
  24742. margin-left: 30px;
  24743. }
  24744. .g_d_group_chair > div,
  24745. .g_d_group_chair2 > div {
  24746. display: flex;
  24747. flex-direction: column;
  24748. align-items: center;
  24749. }
  24750. .g_d_group_chair > div > span:nth-child(1),
  24751. .g_d_group_chair2 > div > span:nth-child(1) {
  24752. background-image: url(../assets/icon/chair.png);
  24753. width: 50px;
  24754. height: 50px;
  24755. display: block;
  24756. background-size: 100% 100%;
  24757. }
  24758. .g_d_group_tableBox {
  24759. display: flex;
  24760. align-items: center;
  24761. justify-content: center;
  24762. }
  24763. .g_d_group_chair2 {
  24764. display: flex;
  24765. flex-direction: column;
  24766. align-items: center;
  24767. justify-content: center;
  24768. }
  24769. .g_d_group_chair2 > div + div {
  24770. margin-top: 10px;
  24771. }
  24772. .g_d_group_table {
  24773. background-image: url(../assets/icon/groupBg.png);
  24774. width: 354px;
  24775. height: 196px;
  24776. background-size: 100% 100%;
  24777. display: flex;
  24778. align-items: center;
  24779. justify-content: center;
  24780. flex-direction: column;
  24781. color: #fff;
  24782. }
  24783. .g_d_group_table > div:nth-child(1) {
  24784. font-size: 24px;
  24785. margin-bottom: 5px;
  24786. }
  24787. .g_d_group_table > div:nth-child(2) div {
  24788. cursor: pointer;
  24789. background: #2e77bf;
  24790. padding: 4px 10px;
  24791. border-radius: 5px;
  24792. }
  24793. /* .groupBox {
  24794. } */
  24795. .groupContent + .groupContent {
  24796. margin-top: 30px;
  24797. }
  24798. .groupTitle {
  24799. font-size: 24px;
  24800. color: rgb(80, 80, 80);
  24801. margin-bottom: 20px;
  24802. }
  24803. .groupName {
  24804. display: flex;
  24805. align-items: center;
  24806. }
  24807. .groupn {
  24808. font-size: 15px;
  24809. margin-right: 10px;
  24810. }
  24811. .groupName + .groupName {
  24812. margin-top: 15px;
  24813. }
  24814. .groupBtn {
  24815. margin-left: 10px;
  24816. }
  24817. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24818. text-align: left;
  24819. }
  24820. .g_d_btnBox {
  24821. display: flex;
  24822. justify-content: flex-end;
  24823. align-items: center;
  24824. margin-bottom: 20px;
  24825. }
  24826. .updateChair {
  24827. position: relative;
  24828. }
  24829. .updateChairBtn {
  24830. position: absolute;
  24831. width: 50px;
  24832. height: 50px;
  24833. overflow: hidden;
  24834. /* display: flex; */
  24835. align-items: center;
  24836. justify-content: center;
  24837. background: #00000087;
  24838. color: #fff;
  24839. border-radius: 50px;
  24840. display: none;
  24841. cursor: pointer;
  24842. }
  24843. .updateChair:hover .updateChairBtn {
  24844. display: flex;
  24845. }
  24846. .group_staic_box {
  24847. display: flex;
  24848. padding: 30px 40px 10px;
  24849. flex-wrap: wrap;
  24850. }
  24851. .group_staic {
  24852. /* width: 50%; */
  24853. margin-bottom: 20px;
  24854. display: flex;
  24855. align-items: center;
  24856. }
  24857. .group_staic span:nth-child(1) {
  24858. width: 150px;
  24859. text-align: right;
  24860. margin-right: 15px;
  24861. }
  24862. .group_staic span:nth-child(2) {
  24863. background: rgb(0 123 255);
  24864. color: #fff;
  24865. border-radius: 5px;
  24866. padding: 5px;
  24867. }
  24868. .codeFileBox {
  24869. height: 300px;
  24870. background: #fff;
  24871. display: flex;
  24872. align-items: center;
  24873. justify-content: center;
  24874. }
  24875. .codeFileBox img {
  24876. width: 200px;
  24877. margin: 0;
  24878. height: auto;
  24879. }
  24880. .codeFileBox div {
  24881. background: rgb(80, 142, 226);
  24882. color: #fff;
  24883. padding: 10px 20px;
  24884. border-radius: 25px;
  24885. cursor: pointer;
  24886. margin-left: 15px;
  24887. }
  24888. .radioBox {
  24889. display: flex;
  24890. flex-direction: column;
  24891. flex-wrap: nowrap;
  24892. align-items: flex-start;
  24893. }
  24894. .radioBox > div {
  24895. margin: 10px 0 0 10px;
  24896. }
  24897. /* .radioBox >>> .el-radio__input,
  24898. .radioBox >>> .el-checkbox__inner {
  24899. margin-left: 10px;
  24900. } */
  24901. .radioBox >>> .el-radio__label,
  24902. .radioBox >>> .el-checkbox__label {
  24903. display: flex;
  24904. align-items: center;
  24905. width: 100%;
  24906. }
  24907. .radioBox >>> .el-radio__label > span {
  24908. width: 100%;
  24909. display: -webkit-box;
  24910. overflow: hidden;
  24911. white-space: normal !important;
  24912. text-overflow: ellipsis;
  24913. word-wrap: break-word;
  24914. }
  24915. .inImg {
  24916. width: 100px;
  24917. cursor: pointer;
  24918. }
  24919. .inImg > img {
  24920. width: 100%;
  24921. height: 100%;
  24922. object-fit: cover;
  24923. }
  24924. .timuImgBox {
  24925. margin: 10px 0;
  24926. display: flex;
  24927. flex-direction: column;
  24928. flex-wrap: wrap;
  24929. align-items: flex-start;
  24930. }
  24931. .timuImg {
  24932. width: 150px;
  24933. margin: 5px 0;
  24934. cursor: pointer;
  24935. }
  24936. .timuImg > img {
  24937. width: 100%;
  24938. height: 100%;
  24939. object-fit: cover;
  24940. }
  24941. .worksTop {
  24942. display: flex;
  24943. flex-direction: row;
  24944. align-items: flex-end;
  24945. }
  24946. .worksTitle{
  24947. display: flex;
  24948. flex-direction: row;
  24949. flex-wrap: nowrap;
  24950. align-items: center;
  24951. }
  24952. .worksTitle::before,.worksTop::before{
  24953. content: '';
  24954. display: block;
  24955. width: 3px;
  24956. height: 20px;
  24957. background: #0061FF;
  24958. border-radius: 3px;
  24959. margin: 0 5px 0 0;
  24960. }
  24961. .corOpen {
  24962. margin: 0 0 0 10px;
  24963. font-size: 14px;
  24964. cursor: pointer;
  24965. color: #505050;
  24966. }
  24967. .corOpen:hover {
  24968. color: #499eef;
  24969. }
  24970. .navCorOpenBox {
  24971. display: flex;
  24972. flex-direction: row;
  24973. align-items: center;
  24974. justify-content: space-between;
  24975. height: 55px;
  24976. background: #ffffff;
  24977. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24978. border-radius: 8px 8px 0px 0px;
  24979. z-index: 9;
  24980. position: relative;
  24981. }
  24982. .navCorOpen {
  24983. padding-right: 15px;
  24984. cursor: pointer;
  24985. width: 45px;
  24986. display: flex;
  24987. }
  24988. .navCorOpen > img {
  24989. width: 100%;
  24990. height: 100%;
  24991. }
  24992. .mlImg {
  24993. width: 40px !important;
  24994. min-width: 40px;
  24995. cursor: pointer;
  24996. transform: rotate(180deg);
  24997. }
  24998. .mlImg > img {
  24999. width: 100%;
  25000. height: 100%;
  25001. }
  25002. .navLeftCss {
  25003. width: 100% !important;
  25004. left: 0 !important;
  25005. }
  25006. .isContentCss {
  25007. width: 100% !important;
  25008. }
  25009. .isAllWidth {
  25010. width: 100% !important;
  25011. }
  25012. .group_switch {
  25013. margin-right: 10px;
  25014. height: 30px;
  25015. display: flex;
  25016. align-items: center;
  25017. }
  25018. .group_switch > span {
  25019. margin-right: 5px;
  25020. }
  25021. .fileC_box {
  25022. padding-top: 15px;
  25023. }
  25024. .fileC_box > .fileC_title {
  25025. padding: 10px 5px 14px 10px;
  25026. border-top: 1px solid #cad1dc;
  25027. font-size: 14px;
  25028. font-weight: 400;
  25029. color: #cad1dc;
  25030. width: calc(100% - 20px);
  25031. margin: 0 auto;
  25032. box-sizing: border-box;
  25033. }
  25034. .pl_select_box {
  25035. height: 40px;
  25036. line-height: 40px;
  25037. width: 100%;
  25038. cursor: pointer;
  25039. padding: 0 20px;
  25040. box-sizing: border-box;
  25041. border-radius: 5px;
  25042. border: 1px solid #d6d6d6;
  25043. white-space: nowrap;
  25044. overflow: hidden;
  25045. text-overflow: ellipsis;
  25046. background: #fff;
  25047. text-align: left;
  25048. }
  25049. .newButton {
  25050. width: 102px;
  25051. height: 36px;
  25052. background: #e7ebf1;
  25053. border-radius: 4px;
  25054. color: #0e1e33;
  25055. font-weight: 400;
  25056. font-size: 14px;
  25057. border: none;
  25058. float: right;
  25059. margin-left: 10px;
  25060. }
  25061. .el-table >>> .even_row {
  25062. background-color: #f0f4fa;
  25063. }
  25064. .stageBoxCss,
  25065. .stageBoxIsCss {
  25066. display: flex;
  25067. flex-direction: row;
  25068. flex-wrap: nowrap;
  25069. align-items: center;
  25070. height: 50px;
  25071. border-bottom: 1px solid #e2f5fc;
  25072. cursor: pointer;
  25073. width: 100%;
  25074. }
  25075. .stageBoxIsCss {
  25076. background: #0061ff;
  25077. color: #fff;
  25078. border-radius: 8px;
  25079. }
  25080. .stageItemTitle {
  25081. display: flex;
  25082. flex-direction: row;
  25083. flex-wrap: nowrap;
  25084. align-items: center;
  25085. margin-left: 15px;
  25086. width: calc(100% - 50px);
  25087. }
  25088. /* .stageNav{ */
  25089. /* font-weight: bold; */
  25090. /* } */
  25091. .stageItemTitle > div:first-child {
  25092. min-width: 55px;
  25093. }
  25094. .stageItemTitle > div:last-child {
  25095. max-width: 242px;
  25096. white-space: nowrap;
  25097. overflow: hidden;
  25098. text-overflow: ellipsis;
  25099. word-break: break-word;
  25100. width: calc(100% - 55px);
  25101. }
  25102. .closeTri,
  25103. .closeTri1 {
  25104. min-width: 15px;
  25105. width: 15px;
  25106. height: 15px;
  25107. transition: all .5s;
  25108. }
  25109. .closeTri1 {
  25110. padding-left: 10px;
  25111. cursor: pointer;
  25112. }
  25113. .closeTri > img,
  25114. .closeTri1 > img {
  25115. width: 100%;
  25116. height: 100%;
  25117. /* transition: all .5s; */
  25118. }
  25119. .noToolBlue {
  25120. min-width: 10px;
  25121. width: 10px;
  25122. height: 10px;
  25123. background: #0061ff;
  25124. border-radius: 50%;
  25125. margin-left: 13px;
  25126. }
  25127. .stageChild,
  25128. .toolChild {
  25129. height: 0;
  25130. overflow: hidden;
  25131. transition: all 0.5s;
  25132. }
  25133. /* .toolChild { */
  25134. /* margin: 0 0 0 17px;
  25135. padding: 0 0 0 20px;
  25136. border-left: 1px solid #d7d7d7; */
  25137. /* } */
  25138. .toolChild > div + div{
  25139. margin-top:5px;
  25140. }
  25141. .gjCss {
  25142. display: flex;
  25143. flex-direction: row;
  25144. flex-wrap: nowrap;
  25145. align-items: center;
  25146. padding: 10px 0 10px 40px;
  25147. box-sizing: border-box;
  25148. font-size: 14px;
  25149. cursor: pointer;
  25150. border-radius:5px;
  25151. }
  25152. .toolChild > div {
  25153. position: relative;
  25154. width:100%;
  25155. }
  25156. /* .toolChild > div::before { */
  25157. /* content: "";
  25158. width: 15px;
  25159. height: 1px;
  25160. background: #cad1dc;
  25161. position: absolute;
  25162. top: 24px;
  25163. left: -20px;
  25164. display: block; */
  25165. /* } */
  25166. .isGjCss {
  25167. /* color: #0061ff; */
  25168. color:#fff;
  25169. background: rgb(55, 129, 252);
  25170. /* background-color: #e0eafb !important;
  25171. color: #0061ff !important; */
  25172. }
  25173. .navItem {
  25174. background: #ffffff;
  25175. border-radius: 4px;
  25176. width: 100%;
  25177. margin: 10px auto;
  25178. position: relative;
  25179. height: 40px;
  25180. display: flex;
  25181. flex-direction: row;
  25182. flex-wrap: nowrap;
  25183. align-items: center;
  25184. }
  25185. .navItemList {
  25186. display: flex;
  25187. flex-direction: row;
  25188. flex-wrap: nowrap;
  25189. align-items: center;
  25190. padding: 0 13px;
  25191. cursor: pointer;
  25192. width: calc(100% - 60px);
  25193. height: 100%;
  25194. }
  25195. .navItemList > div:first-child {
  25196. /* min-width: 60px; */
  25197. min-width:fit-content;
  25198. }
  25199. .navItemList > div:last-child {
  25200. width: calc(100% - 80px);
  25201. white-space: nowrap;
  25202. overflow: hidden;
  25203. text-overflow: ellipsis;
  25204. word-break: break-word;
  25205. }
  25206. /* .isItemList > div {
  25207. color: #fff !important;
  25208. } */
  25209. .tool_work_box {
  25210. width: 100%;
  25211. padding: 0 37px 0;
  25212. box-sizing: border-box;
  25213. }
  25214. .tool_box {
  25215. width: 100%;
  25216. padding: 0 0 0 20px;
  25217. }
  25218. .tool_type_box {
  25219. display: flex;
  25220. flex-direction: row;
  25221. align-items: baseline;
  25222. flex-wrap: nowrap;
  25223. justify-content: flex-start;
  25224. position: relative;
  25225. }
  25226. .toolSort {
  25227. display: flex;
  25228. flex-direction: row;
  25229. flex-wrap: wrap;
  25230. justify-content: flex-start;
  25231. align-items: flex-start;
  25232. padding: 0 0 15px 0;
  25233. }
  25234. .toolSort > div {
  25235. margin: 0 10px 0 0;
  25236. width: 135px;
  25237. box-sizing: border-box;
  25238. border: 2px solid transparent;
  25239. }
  25240. .tools {
  25241. width: 100%;
  25242. display: flex;
  25243. flex-direction: column;
  25244. flex-wrap: nowrap;
  25245. align-items: flex-start;
  25246. }
  25247. .whiteBIcon {
  25248. width: fit-content;
  25249. cursor: pointer;
  25250. display: flex;
  25251. flex-direction: column;
  25252. flex-wrap: nowrap;
  25253. align-items: center;
  25254. font-size: 14px;
  25255. }
  25256. .tool:hover {
  25257. border: 2px solid #a5c7ff;
  25258. border-radius: 5px;
  25259. }
  25260. .whiteBIcon > img {
  25261. width: 65px;
  25262. height: 100%;
  25263. }
  25264. .whiteBIcon > img {
  25265. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25266. border-radius: 15px;
  25267. }
  25268. .check {
  25269. /* width: 20px;
  25270. height: 20px; */
  25271. cursor: pointer;
  25272. margin: 10px 0;
  25273. position: absolute;
  25274. right: 2px;
  25275. top: -5px;
  25276. }
  25277. .noChoose,
  25278. .isChoose {
  25279. width: 15px;
  25280. height: 15px;
  25281. border-radius: 50%;
  25282. border: 1px solid #adadad;
  25283. }
  25284. .isChoose {
  25285. border: 4px solid #0363ff !important;
  25286. width: 10px;
  25287. height: 10px;
  25288. }
  25289. .isToolChoose {
  25290. border: 2px solid #5394ff !important;
  25291. border-radius: 5px;
  25292. box-shadow: 0 0 6px 0px #5394ff;
  25293. }
  25294. .checkDiv {
  25295. display: flex;
  25296. align-items: center;
  25297. }
  25298. .checkDiv span {
  25299. margin-left: 5px;
  25300. color: #858585;
  25301. }
  25302. .check img {
  25303. width: 20px;
  25304. height: 20px;
  25305. }
  25306. .lockTaskIcon {
  25307. width: 20px;
  25308. height: 20px;
  25309. position: absolute;
  25310. right: 10px;
  25311. top: 5px;
  25312. }
  25313. .lockTaskIcon > img {
  25314. width: 100%;
  25315. height: 100%;
  25316. }
  25317. .pick_box {
  25318. display: flex;
  25319. align-items: flex-start;
  25320. flex-wrap: wrap;
  25321. }
  25322. .selectBox {
  25323. width: 110px;
  25324. margin-left: 10px;
  25325. margin: 0 10px 0 auto;
  25326. }
  25327. .selectBox >>> .el-input__inner {
  25328. height: 30px;
  25329. line-height: 30px;
  25330. }
  25331. .selectBox >>> .el-input__icon {
  25332. line-height: 30px;
  25333. }
  25334. .sentenceTitle {
  25335. display: flex;
  25336. flex-direction: row;
  25337. flex-wrap: nowrap;
  25338. align-items: center;
  25339. }
  25340. .sentenceTitle::before {
  25341. content: attr(index);
  25342. background: #3681fc;
  25343. border-radius: 50%;
  25344. color: #fff;
  25345. width: 25px;
  25346. height: 25px;
  25347. min-width: 25px;
  25348. min-height: 25px;
  25349. text-align: center;
  25350. line-height: 25px;
  25351. margin-right: 5px;
  25352. }
  25353. .hfBox {
  25354. padding: 10px;
  25355. box-sizing: border-box;
  25356. }
  25357. .whoReplyWho {
  25358. display: flex;
  25359. flex-direction: row;
  25360. flex-wrap: nowrap;
  25361. align-items: baseline;
  25362. justify-content: flex-start;
  25363. }
  25364. .hfBottom {
  25365. display: flex;
  25366. flex-direction: row;
  25367. flex-wrap: nowrap;
  25368. align-items: center;
  25369. justify-content: space-between;
  25370. font-size: 14px;
  25371. }
  25372. .deleteHfItem {
  25373. cursor: pointer;
  25374. width: 20px;
  25375. height: 20px;
  25376. }
  25377. .deleteHfItem > img {
  25378. width: 100%;
  25379. height: 100%;
  25380. }
  25381. .whoReplyWho > .hfImg {
  25382. width: 12px;
  25383. height: 12px;
  25384. margin: 0 5px;
  25385. }
  25386. .whoReplyWho > .hfImg > img {
  25387. width: 100%;
  25388. height: 100%;
  25389. }
  25390. .hfContent {
  25391. padding-top: 10px;
  25392. box-sizing: border-box;
  25393. display: -webkit-box;
  25394. overflow: hidden;
  25395. white-space: normal !important;
  25396. text-overflow: ellipsis;
  25397. word-wrap: break-word;
  25398. -webkit-box-orient: vertical;
  25399. }
  25400. .hfTime {
  25401. text-align: left;
  25402. box-sizing: border-box;
  25403. padding: 10px 0 10px 0px;
  25404. color: #bfbfbf;
  25405. font-size: 14px;
  25406. }
  25407. .btnAllNT {
  25408. position: fixed;
  25409. bottom: 100px;
  25410. right: 40px;
  25411. z-index: 999;
  25412. display: flex;
  25413. flex-direction: row;
  25414. }
  25415. .btnAllNT > img {
  25416. cursor: pointer;
  25417. width: 80px;
  25418. }
  25419. .toolMask {
  25420. position: fixed;
  25421. width: 100%;
  25422. height: 100%;
  25423. background: #3f3c3c;
  25424. opacity: 0.5;
  25425. top: 0;
  25426. left: 0;
  25427. z-index: 999;
  25428. }
  25429. .addToolCss {
  25430. position: fixed;
  25431. z-index: 999;
  25432. background: #fff;
  25433. right: 5%;
  25434. bottom: 18%;
  25435. min-width: 1035px;
  25436. min-height: 300px;
  25437. border-radius: 10px;
  25438. box-shadow: 0 0 8px 1px #b2b2b2;
  25439. }
  25440. .toolTop {
  25441. display: flex;
  25442. flex-direction: row;
  25443. flex-wrap: nowrap;
  25444. justify-content: space-between;
  25445. align-items: center;
  25446. padding: 20px;
  25447. }
  25448. .toolTop > div:nth-child(2) {
  25449. width: 15px;
  25450. height: 15px;
  25451. padding-right: 10px;
  25452. cursor: pointer;
  25453. }
  25454. .toolTop > div:nth-child(2) > img {
  25455. width: 100%;
  25456. height: 100%;
  25457. }
  25458. .fullStyle>>>.el-dialog__body {
  25459. height: calc(100% - 125px) !important;
  25460. box-sizing: border-box;
  25461. padding: 30px 0 !important;
  25462. background: #fff !important;
  25463. }
  25464. .fullStyle>>>.el-dialog {
  25465. width: 100% !important;
  25466. max-width: 100% !important;
  25467. height: 100% !important;
  25468. margin: 0 !important;
  25469. }
  25470. .fullStyle {
  25471. width: 100% !important;
  25472. max-width: 100% !important;
  25473. height: 100% !important;
  25474. margin: 0 auto !important;
  25475. }
  25476. .fullStyle>>>.el-dialog__footer{
  25477. background: #fff !important;
  25478. }
  25479. .engUpBox {
  25480. width: 100%;
  25481. height: 100%;
  25482. }
  25483. .engTitle,
  25484. .engText {
  25485. display: flex;
  25486. flex-direction: row;
  25487. flex-wrap: nowrap;
  25488. align-items: flex-start;
  25489. padding: 0 20px 20px 20px;
  25490. box-sizing: border-box;
  25491. }
  25492. .engTitle > .div:first-child,
  25493. .engText > div:first-child {
  25494. min-width: 75px;
  25495. }
  25496. .correctBox{
  25497. width: 100%;
  25498. display: flex;
  25499. flex-direction: row;
  25500. flex-wrap: nowrap;
  25501. align-items: flex-start;
  25502. }
  25503. .oldBox{
  25504. width: 50%;
  25505. height: 100%;
  25506. display: flex;
  25507. flex-direction: column;
  25508. flex-wrap: nowrap;
  25509. align-items: center;
  25510. border-top: 1px solid #d9d9d9;
  25511. border-left: 1px solid #d9d9d9;
  25512. border-right: 1px solid #d9d9d9;
  25513. }
  25514. .oldBox>div:first-child{
  25515. width: 100%;
  25516. text-align: center;
  25517. background: #d9d9d9;
  25518. height: 35px;
  25519. line-height: 35px;
  25520. font-weight: bold;
  25521. }
  25522. .oldText{
  25523. width: 100%;
  25524. height: calc(100% - 35px);
  25525. overflow: auto;
  25526. margin: 10px 0;
  25527. display: flex;
  25528. flex-direction: column;
  25529. flex-wrap: nowrap;
  25530. align-content: center;
  25531. align-items: center;
  25532. }
  25533. .detailBox{
  25534. width: 50%;
  25535. padding: 10px;
  25536. background: #f6f6f6;
  25537. border-radius: 5px;
  25538. }
  25539. .oldDetail,.oldDetail1{
  25540. padding-bottom: 30px;
  25541. }
  25542. .oldImg{
  25543. width:30px;
  25544. height: 30px;
  25545. }
  25546. .oldImg>img{
  25547. width: 100%;
  25548. height: 100%;
  25549. }
  25550. .allName{
  25551. min-width: 200px;
  25552. white-space: nowrap;
  25553. overflow: hidden;
  25554. text-overflow: ellipsis;
  25555. word-break: break-word;
  25556. cursor: pointer;
  25557. text-align: center;
  25558. border: 1px solid #bcc2cc;
  25559. box-sizing: border-box;
  25560. }
  25561. .engUpTop{
  25562. max-height: 300px;
  25563. overflow: auto;
  25564. }
  25565. .isUpdateToolDetailClass{
  25566. padding: 0 !important;
  25567. }
  25568. .isUpdateToolDetailClass textarea{
  25569. padding:12px;
  25570. font-size: 16px;
  25571. min-height:100%;
  25572. width: 100%;
  25573. box-sizing:border-box;
  25574. outline: none;
  25575. border:none;
  25576. line-height: 30px;
  25577. resize: none;
  25578. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25579. color: #838383;
  25580. }
  25581. .show_taskD {
  25582. min-width: fit-content;
  25583. margin-left: 10px;
  25584. display: flex;
  25585. align-items: center;
  25586. font-size: 14px;
  25587. cursor: pointer;
  25588. color: #717c8d;
  25589. }
  25590. .show_taskD > img {
  25591. width: 15px;
  25592. margin-right: 5px;
  25593. transition: 0.2s all;
  25594. transform: rotate(-90deg);
  25595. }
  25596. .show_taskD.show > img {
  25597. transform: rotate(0deg);
  25598. }
  25599. .correctCss{
  25600. position: absolute;
  25601. bottom: -70px;
  25602. background: #409eff;
  25603. color: #fff;
  25604. }
  25605. .dialog_diyCopy >>> .el-dialog__header {
  25606. display: none !important;
  25607. }
  25608. .dialog_diyCopy >>> .el-dialog__body {
  25609. padding: 0 !important;
  25610. height: 100% !important;
  25611. }
  25612. .confirmOpenDigCss > div{
  25613. font-size: 14px;
  25614. color: rgba(0, 0, 0, 0.6);
  25615. }
  25616. .confirmOpenDigCss >>> .el-dialog{
  25617. border-radius: 6px;
  25618. }
  25619. .confirmOpenDigCss >>> .el-dialog__body{
  25620. padding: 25px !important;
  25621. }
  25622. .confirmOpenDigCss > span{
  25623. font-size: 16px;
  25624. font-weight: 600;
  25625. color: rgba(0, 0, 0, 0.8);
  25626. }
  25627. div::-webkit-scrollbar {
  25628. width: 10px;
  25629. height: 6px;
  25630. }
  25631. .Ovh{
  25632. margin: 5px 0;
  25633. width: 4em;
  25634. -webkit-line-clamp: 2;
  25635. display: -webkit-box;
  25636. -webkit-box-orient: vertical;
  25637. overflow: hidden;
  25638. text-overflow: ellipsis;
  25639. }
  25640. .renderedFor >>> .katex {
  25641. font-size: 18px;
  25642. width: 100%;
  25643. white-space: normal;
  25644. font-family: '黑体' !important;
  25645. }
  25646. .renderedFor >>> .katex .base{
  25647. display: inline !important;
  25648. display: contents !important;
  25649. }
  25650. .renderedFor>>> .katex .base .cjk_fallback{
  25651. white-space: normal !important;
  25652. display: inline !important;
  25653. }
  25654. .notop >>> .vjs_video_3-dimensions.vjs-fluid{
  25655. padding-top: 0 !important;
  25656. }
  25657. </style>