studyStudent.vue 885 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329
  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"
  538. :class="contentDialog == false ? 'isAllWidth' : ''"
  539. :playsinline="true"
  540. :options="playerO[taskCount]"
  541. @play="onPlayerPlay($event)"
  542. style="width: 100%; height: 100%; 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>
  814. <div
  815. class="fileC_box"
  816. v-if="fileC[taskCount].length > 0"
  817. >
  818. <div class="fileC_title">以下文件不支持预览</div>
  819. <div
  820. class="vedioTimeBox"
  821. v-for="(vitem, vindex) in fileC[taskCount]"
  822. :key="vindex + '1'"
  823. >
  824. <div class="navListItem" v-if="vitem.type == 12">
  825. <div class="navText" style="color: #acb4bf">
  826. <span v-if="vitem.text">{{ vitem.text }}-</span
  827. >{{ vitem.name }}
  828. </div>
  829. <div
  830. class="downIcon"
  831. @click="downloadFile2(vitem)"
  832. >
  833. <img
  834. src="../assets/icon/newIcon/down.png"
  835. alt
  836. />
  837. </div>
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. <div style="width: calc(100% - 315px)">
  847. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  848. <!-- <el-button
  849. type="primary"
  850. class="newButton"
  851. @click="checkFileFull(showType, pptImgUrl1)"
  852. >全屏查看</el-button
  853. >
  854. <el-button
  855. type="primary"
  856. class="newButton"
  857. @click="downloadFile(pptImgUrl1)"
  858. v-if="showType != 2"
  859. >文件下载</el-button
  860. > -->
  861. <el-button
  862. class="newButton"
  863. v-if="
  864. showType == 2 &&
  865. pptImgUrl1.indexOf(
  866. 'https://view.officeapps.live.com/op/view.aspx?src='
  867. ) == -1
  868. "
  869. type="primary"
  870. @click="openLine(pptImgUrl1)"
  871. >打开链接
  872. </el-button>
  873. </div>
  874. <!-- <div
  875. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  876. v-if="showType == 1"
  877. >
  878. <el-button
  879. type="primary"
  880. class="newButton"
  881. @click="checkFileFull(showType, text)"
  882. >全屏查看</el-button
  883. >
  884. </div> -->
  885. </div>
  886. </div>
  887. </div>
  888. <div class="student_body" v-resize="resize">
  889. <div
  890. class="vedioBox"
  891. :style="{
  892. borderRadius:
  893. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  894. .taskDetail == '' &&
  895. vChapterData[taskCount].length == 0 &&
  896. fileC[taskCount].length == 0
  897. ? '0 0 20px 20px'
  898. : '20px',
  899. }"
  900. v-if="
  901. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  902. .toolChoose[0].tool &&
  903. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  904. .toolChoose[0].tool.length > 0
  905. "
  906. >
  907. <div
  908. class="toolHeng2"
  909. style="position: relative"
  910. v-if="
  911. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  912. .toolChoose[0].tool &&
  913. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  914. .toolChoose[0].tool.length &&
  915. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  916. .toolChoose[0].tool.length > 0
  917. "
  918. >
  919. <div class="workNav">工作区</div>
  920. <div
  921. class="filebox"
  922. style="flex-wrap: nowrap"
  923. v-for="(tool, toolIndex) in chapInfoList[courseType]
  924. .chapterInfo[0].taskJson[taskCount].toolChoose"
  925. :key="toolIndex"
  926. >
  927. <div class="bzBox">
  928. <div class="yCss"></div>
  929. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  930. 工具{{ toolIndex + 1 }}
  931. </div>
  932. <div
  933. v-if="timeWorkList[toolIndex].length > 0"
  934. style="margin: 0 0 0 10px"
  935. >
  936. {{
  937. timeWorkList[toolIndex][0].time
  938. ? "时间:" + timeWorkList[toolIndex][0].time
  939. : ""
  940. }}
  941. </div>
  942. </div>
  943. <div class="toolBox">
  944. <div>
  945. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  946. :key="indexTool"-->
  947. <!-- <div class="iframeBox">
  948. <div
  949. class="addPoint isBorder"
  950. v-for="(tooC, toolCIndex) in tool.tool"
  951. :key="toolCIndex"
  952. >
  953. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  954. <div
  955. class="iframeName"
  956. >
  957. 电子白板
  958. </div>
  959. <iframe
  960. src="https://iwb.cocorobo.cn/"
  961. ref="whiteBoard"
  962. ></iframe>
  963. </div>
  964. </div>
  965. </div>-->
  966. <div class="noiframeBox">
  967. <div
  968. class="addPoint"
  969. v-for="(tooC, toolCIndex) in tool.tool"
  970. :key="toolCIndex"
  971. >
  972. <div v-if="tooC == 1">
  973. <img
  974. src="../assets/icon/secondToolList/whiteBoard.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">电子白板</div>
  979. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  980. style="position: absolute;right: 33px;top: -30px;">
  981. 分析
  982. </div>
  983. </div>
  984. <div v-if="tooC == 3">
  985. <img
  986. src="../assets/icon/secondToolList/mindMapping.png"
  987. alt
  988. @click="addTools(tooC, toolIndex, taskCount)"
  989. />
  990. <div style="margin: 5px 0">思维导图</div>
  991. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  992. style="position: absolute;right: 33px;top: -30px;">
  993. 分析
  994. </div>
  995. </div>
  996. <div v-if="tooC == 6">
  997. <img
  998. src="../assets/icon/secondToolList/doc.png"
  999. alt
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. />
  1002. <div style="margin: 5px 0">协同文档</div>
  1003. </div>
  1004. <div v-if="tooC == 7">
  1005. <img
  1006. src="../assets/icon/secondToolList/mindNetwork.png"
  1007. alt
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. />
  1010. <div style="margin: 5px 0">思维网格</div>
  1011. <!-- && worksStudent[toolIndex].length>0 -->
  1012. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1013. style="position: absolute;right: 33px;top: -30px;">
  1014. 分析
  1015. </div>
  1016. </div>
  1017. <div v-if="tooC == 8">
  1018. <img
  1019. src="../assets/icon/secondToolList/library.png"
  1020. alt
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. />
  1023. <div style="margin: 5px 0">素材库</div>
  1024. </div>
  1025. <div v-if="tooC == 17">
  1026. <img
  1027. src="../assets/icon/secondToolList/library.png"
  1028. alt
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. />
  1031. <div style="margin: 5px 0">学习资料</div>
  1032. </div>
  1033. <div v-if="tooC == 2">
  1034. <img
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. src="../assets/icon/secondToolList/note.png"
  1037. alt
  1038. />
  1039. <div style="margin: 5px 0">便签</div>
  1040. </div>
  1041. <div v-if="tooC == 4">
  1042. <img
  1043. @click="addTools(tooC, toolIndex, taskCount)"
  1044. src="../assets/icon/thirdToolList/ask.png"
  1045. alt
  1046. />
  1047. <div style="margin: 5px 0">问卷调查</div>
  1048. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1049. style="position: absolute;right: 153px;top: -30px;">
  1050. 分析
  1051. </div>
  1052. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1053. style="position: absolute;right: 33px;top: -30px;">
  1054. 统计分析
  1055. </div>
  1056. </div>
  1057. <div v-if="tooC == 45">
  1058. <img
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. src="../assets/icon/thirdToolList/choose.png"
  1061. alt
  1062. />
  1063. <div style="margin: 5px 0">选择题</div>
  1064. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1065. style="position: absolute;right: 33px;top: -30px;">
  1066. 分析
  1067. </div>
  1068. </div>
  1069. <!-- <div v-if="tooC == 5">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../assets/icon/thirdToolList/score.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">量规评分</div>
  1076. </div> -->
  1077. <div v-if="tooC == 10">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../assets/icon/thirdToolList/time.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">倒计时</div>
  1084. </div>
  1085. <div v-if="tooC == 15">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../assets/icon/thirdToolList/answer.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">问答</div>
  1092. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1093. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1094. 分析
  1095. </div>
  1096. </div>
  1097. <div v-if="tooC == 26">
  1098. <img
  1099. @click="addTools(tooC, toolIndex, taskCount)"
  1100. src="../assets/icon/thirdToolList/courseDesign.png"
  1101. alt
  1102. />
  1103. <div style="margin: 5px 0">课程设计</div>
  1104. </div>
  1105. <div v-if="tooC == 18">
  1106. <img
  1107. @click="addTools(tooC, toolIndex, taskCount)"
  1108. src="../assets/icon/thirdToolList/trainPlatform.png"
  1109. alt
  1110. />
  1111. <div style="margin: 5px 0">训练服务器</div>
  1112. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1113. style="position: absolute;right: 33px;top: -30px;">
  1114. 分析
  1115. </div>
  1116. </div>
  1117. <div v-if="tooC == 16">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../assets/icon/thirdToolList/work.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">作业提交</div>
  1124. </div>
  1125. <div v-if="tooC == 50">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../assets/icon/thirdToolList/plwork.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">批量上传</div>
  1132. </div>
  1133. <div v-if="tooC == 21">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../assets/icon/fourthToolList/program.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">AIoT Blockly</div>
  1140. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1141. style="position: absolute;right: 33px;top: -30px;">
  1142. 分析
  1143. </div>
  1144. </div>
  1145. <!-- <div v-if="tooC == 22">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../assets/icon/fourthToolList/program.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">AI体验</div>
  1152. </div> -->
  1153. <div v-if="tooC == 23">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">AI Python</div>
  1160. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1161. style="position: absolute;right: 33px;top: -30px;">
  1162. 分析
  1163. </div>
  1164. </div>
  1165. <div v-if="tooC == 24">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../assets/icon/fourthToolList/AIprogram.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">AI Blockly</div>
  1172. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1173. style="position: absolute;right: 33px;top: -30px;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <div v-if="tooC == 25">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../assets/icon/thirdToolList/evalua.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">目标管理</div>
  1184. </div>
  1185. <div v-if="tooC == 31">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/secondToolList/networkPanel.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">数学画板</div>
  1192. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1193. style="position: absolute;right: 33px;top: -30px;">
  1194. 分析
  1195. </div>
  1196. </div>
  1197. <div v-if="tooC == 28">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../assets/icon/secondToolList/translation.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">翻译</div>
  1204. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1205. style="position: absolute;right: 33px;top: -30px;">
  1206. 分析
  1207. </div>
  1208. </div>
  1209. <div v-if="tooC == 37">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/secondToolList/mohe.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">魔盒识字</div>
  1216. </div>
  1217. <div v-if="tooC == 38">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/secondToolList/24game.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">24点</div>
  1224. </div>
  1225. <div v-if="tooC == 39">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/secondToolList/GeoGebra.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">GeoGebra</div>
  1232. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1233. style="position: absolute;right: 33px;top: -30px;">
  1234. 分析
  1235. </div>
  1236. </div>
  1237. <div v-if="tooC == 32">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../assets/icon/thirdToolList/code.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">源码编辑</div>
  1244. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1245. style="position: absolute;right: 153px;top: -42px;">
  1246. 分析
  1247. </div>
  1248. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1249. style="position: absolute;left: 110px;bottom: 30px;">
  1250. 上传文件
  1251. <input type="file" accept="*" style="display: none"
  1252. @change="beforeUpload1($event, 7, toolIndex)" />
  1253. </div> -->
  1254. </div>
  1255. <div v-if="tooC == 40">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../assets/icon/secondToolList/eval.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,40)"
  1263. style="position: absolute;right: 33px;top: -30px;">
  1264. 分析
  1265. </div>
  1266. </div>
  1267. <div v-if="tooC == 41">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../assets/icon/thirdToolList/select.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">选择匹配</div>
  1274. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1275. style="position: absolute;right: 33px;top: -30px;">
  1276. 分析
  1277. </div>
  1278. </div>
  1279. <div v-if="tooC == 44">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../assets/icon/thirdToolList/hanClass.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">汉字宫</div>
  1286. </div>
  1287. <div v-if="tooC == 47">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../assets/icon/fourthToolList/conSentences.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">排序</div>
  1294. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1295. style="position: absolute;right: 33px;top: -30px;">
  1296. 分析
  1297. </div>
  1298. </div>
  1299. <div v-if="tooC == 48">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../assets/icon/fourthToolList/table.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">表格</div>
  1306. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1307. style="position: absolute;right: 33px;top: -30px;">
  1308. 分析
  1309. </div>
  1310. </div>
  1311. <div v-if="tooC == 52">
  1312. <img
  1313. @click="addTools(tooC, toolIndex, taskCount)"
  1314. src="../assets/icon/fourthToolList/text.png"
  1315. alt
  1316. />
  1317. <div style="margin: 5px 0">文档</div>
  1318. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1319. style="position: absolute;right: 33px;top: -30px;">
  1320. 分析
  1321. </div>
  1322. </div>
  1323. <div v-if="tooC == 49">
  1324. <img
  1325. @click="addTools(tooC, toolIndex, taskCount)"
  1326. src="../assets/icon/fourthToolList/group.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">学生分组</div>
  1330. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1331. style="position: absolute;right: 33px;top: -30px;">
  1332. 分析
  1333. </div>
  1334. </div>
  1335. <div v-if="tooC == 57">
  1336. <img
  1337. @click="addTools(tooC, toolIndex, taskCount)"
  1338. src="../assets/icon/fourthToolList/cocopi.png"
  1339. alt
  1340. />
  1341. <div style="margin: 5px 0">CocoPi</div>
  1342. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1343. style="position: absolute;right: 33px;top: -30px;">
  1344. 分析
  1345. </div>
  1346. </div>
  1347. <div v-if="tooC == 58">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../assets/icon/fourthToolList/car.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">模拟驾驶</div>
  1354. </div>
  1355. <div v-if="tooC == 59">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../assets/icon/fourthToolList/lineSearch.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">路径搜索</div>
  1362. </div>
  1363. <div v-if="tooC == 60">
  1364. <img
  1365. @click="addTools(tooC, toolIndex, taskCount)"
  1366. src="../assets/icon/fourthToolList/deepLearning.png"
  1367. alt
  1368. />
  1369. <div style="margin: 5px 0">深度学习</div>
  1370. </div>
  1371. <div v-if="tooC == 61">
  1372. <img
  1373. @click="addTools(tooC, toolIndex, taskCount)"
  1374. src="../assets/icon/fourthToolList/allHistory.png"
  1375. alt
  1376. />
  1377. <div style="margin: 5px 0">全历史</div>
  1378. </div>
  1379. <div v-if="tooC == 62">
  1380. <img
  1381. @click="addTools(tooC, toolIndex, taskCount)"
  1382. src="../assets/icon/fourthToolList/interVideo.png"
  1383. alt
  1384. />
  1385. <div style="margin: 5px 0">交互视频</div>
  1386. </div>
  1387. <div v-if="tooC == 63">
  1388. <img
  1389. @click="addTools(tooC, toolIndex, taskCount)"
  1390. src="../assets/icon/fourthToolList/Wood.png"
  1391. alt
  1392. />
  1393. <div style="margin: 5px 0">海龟编程</div>
  1394. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1395. style="position: absolute;right: 33px;top: -30px;">
  1396. 分析
  1397. </div>
  1398. </div>
  1399. <div v-if="tooC == 71">
  1400. <img
  1401. @click="addTools(tooC, toolIndex, taskCount)"
  1402. src="../assets/icon/fourthToolList/chatgpt.png"
  1403. alt
  1404. />
  1405. <div style="margin: 5px 0">AI智能体</div>
  1406. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1407. style="position: absolute;right: 33px;top: -30px;">
  1408. 分析
  1409. </div>
  1410. </div>
  1411. <div v-if="tooC == 72">
  1412. <img
  1413. style="height: 85px;object-fit: cover;"
  1414. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1415. @click="addTools(tooC, toolIndex, taskCount)"
  1416. :src="tool.appJson.json.icon"
  1417. alt
  1418. />
  1419. <img
  1420. v-else
  1421. @click="addTools(tooC, toolIndex, taskCount)"
  1422. src="../assets/icon/firstToolList/appStore.png"
  1423. alt
  1424. />
  1425. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1426. <!-- content to trigger tooltip here -->
  1427. <div class="Ovh">
  1428. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1429. </div>
  1430. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1431. style="position: absolute;right: 33px;top: -30px;">
  1432. 分析
  1433. </div>
  1434. </el-tooltip>
  1435. </div>
  1436. <div v-if="tooC == 65">
  1437. <img
  1438. @click="addTools(tooC, toolIndex, taskCount)"
  1439. src="../assets/icon/firstToolList/pickPeople.png"
  1440. alt
  1441. />
  1442. <div style="margin: 5px 0">挑人</div>
  1443. </div>
  1444. <div v-if="tooC == 66">
  1445. <img
  1446. @click="addTools(tooC, toolIndex, taskCount)"
  1447. src="../assets/icon/secondToolList/formulaEdi.png"
  1448. alt
  1449. />
  1450. <div style="margin: 5px 0">公式编辑</div>
  1451. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1452. style="position: absolute;right: 33px;top: -30px;">
  1453. 分析
  1454. </div>
  1455. </div>
  1456. <div v-if="tooC == 67">
  1457. <img
  1458. @click="addTools(tooC, toolIndex, taskCount)"
  1459. src="../assets/icon/secondToolList/molStr.png"
  1460. alt
  1461. />
  1462. <div style="margin: 5px 0">分子结构</div>
  1463. </div>
  1464. <div v-if="tooC == 68">
  1465. <img
  1466. @click="addTools(tooC, toolIndex, taskCount)"
  1467. src="../assets/icon/secondToolList/timeAxis.png"
  1468. alt
  1469. />
  1470. <div style="margin: 5px 0">时间轴</div>
  1471. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1472. style="position: absolute;right: 33px;top: -30px;">
  1473. 分析
  1474. </div> -->
  1475. </div>
  1476. <div v-if="tooC == 69">
  1477. <img
  1478. @click="addTools(tooC, toolIndex, taskCount)"
  1479. src="../assets/icon/secondToolList/english.png"
  1480. alt
  1481. />
  1482. <div style="margin: 5px 0">英语写作</div>
  1483. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1484. style="position: absolute;right: 33px;top: -30px;">
  1485. 分析
  1486. </div>
  1487. </div>
  1488. <div v-if="tooC == 70">
  1489. <img
  1490. @click="addTools(tooC, toolIndex, taskCount)"
  1491. src="../assets/icon/thirdToolList/englishVoice.png"
  1492. alt
  1493. />
  1494. <div style="margin: 5px 0">英语口语</div>
  1495. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1496. style="position: absolute;right: 33px;top: -30px;">
  1497. 分析
  1498. </div>
  1499. </div>
  1500. </div>
  1501. </div>
  1502. </div>
  1503. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1504. <!-- <div class="toolTitle">工具描述</div> -->
  1505. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1506. <div style="height:100%;"
  1507. v-html="renderedFormula(tool.toolDetail)"
  1508. v-if="toolDetailIndex != toolIndex"
  1509. ></div>
  1510. <div v-else @click.stop="" style="height:100%;">
  1511. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1512. </div>
  1513. </div>
  1514. <el-button
  1515. type="primary"
  1516. v-if="tool.tool[0] == 32"
  1517. style="position: absolute; right: 30px; top: -45px"
  1518. @click="addImg($event)"
  1519. >上传作业<input
  1520. type="file"
  1521. accept="*"
  1522. style="display: none"
  1523. @change="beforeUpload1($event, 7, toolIndex)"
  1524. /></el-button>
  1525. <el-button
  1526. type="primary"
  1527. v-if="tool.tool[0] == 15"
  1528. style="position: absolute; right: 30px; top: -45px"
  1529. @click="openWordCloud(toolIndex)"
  1530. >生成词云</el-button
  1531. >
  1532. <el-button
  1533. type="primary"
  1534. v-if="
  1535. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1536. "
  1537. style="position: absolute; right: 30px; top: -45px"
  1538. @click="uploadWorks(toolIndex)"
  1539. >导出作业</el-button
  1540. >
  1541. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1542. position: absolute;
  1543. right: 30px;
  1544. transform: translateY(-130%);
  1545. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1546. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1547. </div>
  1548. <div
  1549. v-if="
  1550. tType &&
  1551. tType == 2 &&
  1552. !sIsOpen &&
  1553. tool.tool.indexOf(16) != -1
  1554. "
  1555. class="worksBox"
  1556. >
  1557. <div
  1558. class="zuoyeYulan"
  1559. v-if="workStudent[toolIndex].length > 0"
  1560. >
  1561. <span class="worksTitle">作业预览</span>
  1562. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1563. </div>
  1564. <div
  1565. class="worksDetailBox"
  1566. v-if="workStudent[toolIndex].length > 0"
  1567. >
  1568. <div
  1569. class="works"
  1570. style="
  1571. width: 200px;
  1572. height: 140px;
  1573. margin: 10px 10px 10px 0;
  1574. box-shadow: 0 0 6px 1px #dfdada;
  1575. "
  1576. v-for="(w, wIndex) in workStudent[toolIndex]"
  1577. :key="wIndex"
  1578. >
  1579. <div class="workImg" v-if="w.type == 0">
  1580. <img
  1581. :src="w.works"
  1582. @click="previewImg(w.works,w)"
  1583. alt
  1584. />
  1585. <div
  1586. class="answerScore"
  1587. v-if="w.score"
  1588. @click.stop="openScore(w)"
  1589. :class="{
  1590. rightW:
  1591. w.userid == userid || tType == 1 || tType == 4,
  1592. }"
  1593. >
  1594. {{ JSON.parse(w.score).wScore }}分
  1595. </div>
  1596. <div
  1597. class="answerScore"
  1598. @click.stop="openScore(w)"
  1599. v-else-if="courseDetail.userid == userid"
  1600. :class="{
  1601. rightW:
  1602. w.userid == userid || tType == 1 || tType == 4,
  1603. }"
  1604. >
  1605. 评分
  1606. </div>
  1607. <img
  1608. class="deleteImg"
  1609. src="../assets/deleteworks.png"
  1610. v-if="
  1611. w.userid == userid || tType == 1 || tType == 4
  1612. "
  1613. @click.stop="deleteWorks(w.wid)"
  1614. alt
  1615. />
  1616. </div>
  1617. <div class="workImg" v-if="w.type == 1">
  1618. <img :src="word" @click="openFile(w.works,w)" alt />
  1619. <div
  1620. class="answerScore"
  1621. v-if="w.score"
  1622. @click.stop="openScore(w)"
  1623. :class="{
  1624. rightW:
  1625. w.userid == userid || tType == 1 || tType == 4,
  1626. }"
  1627. >
  1628. {{ JSON.parse(w.score).wScore }}分
  1629. </div>
  1630. <div
  1631. class="answerScore"
  1632. @click.stop="openScore(w)"
  1633. v-else-if="courseDetail.userid == userid"
  1634. :class="{
  1635. rightW:
  1636. w.userid == userid || tType == 1 || tType == 4,
  1637. }"
  1638. >
  1639. 评分
  1640. </div>
  1641. <img
  1642. class="deleteImg"
  1643. src="../assets/deleteworks.png"
  1644. v-if="
  1645. w.userid == userid || tType == 1 || tType == 4
  1646. "
  1647. @click.stop="deleteWorks(w.wid)"
  1648. alt
  1649. />
  1650. </div>
  1651. <div class="workImg" v-if="w.type == 3">
  1652. <img
  1653. style="cursor: pointer"
  1654. :src="video"
  1655. @click="openVideo(w)"
  1656. alt
  1657. />
  1658. <div
  1659. class="answerScore"
  1660. v-if="w.score"
  1661. @click.stop="openScore(w)"
  1662. :class="{
  1663. rightW:
  1664. w.userid == userid || tType == 1 || tType == 4,
  1665. }"
  1666. >
  1667. {{ JSON.parse(w.score).wScore }}分
  1668. </div>
  1669. <div
  1670. class="answerScore"
  1671. @click.stop="openScore(w)"
  1672. v-else-if="courseDetail.userid == userid"
  1673. :class="{
  1674. rightW:
  1675. w.userid == userid || tType == 1 || tType == 4,
  1676. }"
  1677. >
  1678. 评分
  1679. </div>
  1680. <img
  1681. class="deleteImg"
  1682. src="../assets/deleteworks.png"
  1683. v-if="
  1684. w.userid == userid || tType == 1 || tType == 4
  1685. "
  1686. @click.stop="deleteWorks(w.wid)"
  1687. alt
  1688. />
  1689. </div>
  1690. <div class="workImg" v-if="w.type == 12">
  1691. <img
  1692. style="cursor: pointer"
  1693. :src="word2"
  1694. @click="downloadFile(w.works,w.userid)"
  1695. alt
  1696. />
  1697. <div
  1698. class="answerScore"
  1699. v-if="w.score"
  1700. @click.stop="openScore(w)"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4,
  1704. }"
  1705. >
  1706. {{ JSON.parse(w.score).wScore }}分
  1707. </div>
  1708. <div
  1709. class="answerScore"
  1710. @click.stop="openScore(w)"
  1711. v-else-if="courseDetail.userid == userid"
  1712. :class="{
  1713. rightW:
  1714. w.userid == userid || tType == 1 || tType == 4,
  1715. }"
  1716. >
  1717. 评分
  1718. </div>
  1719. <img
  1720. class="deleteImg"
  1721. src="../assets/deleteworks.png"
  1722. v-if="
  1723. w.userid == userid || tType == 1 || tType == 4
  1724. "
  1725. @click.stop="deleteWorks(w.wid)"
  1726. alt
  1727. />
  1728. </div>
  1729. <div class="worksName">
  1730. <div>{{ w.sName }}</div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. </div>
  1735. <div
  1736. v-if="
  1737. tType &&
  1738. tType == 2 &&
  1739. !sIsOpen &&
  1740. tool.tool.indexOf(32) != -1
  1741. "
  1742. class="worksBox"
  1743. >
  1744. <div
  1745. class="zuoyeYulan"
  1746. v-if="workStudent[toolIndex].length > 0"
  1747. >
  1748. <span class="worksTitle">作业预览</span>
  1749. </div>
  1750. <div
  1751. class="worksDetailBox"
  1752. v-if="workStudent[toolIndex].length > 0"
  1753. >
  1754. <div
  1755. class="works"
  1756. style="
  1757. width: 200px;
  1758. height: 140px;
  1759. margin: 10px 10px 10px 0;
  1760. box-shadow: 0 0 6px 1px #dfdada;
  1761. "
  1762. v-for="(w, wIndex) in workStudent[toolIndex]"
  1763. :key="wIndex"
  1764. >
  1765. <div class="workImg">
  1766. <img
  1767. :src="word2"
  1768. @click="downloadFile(w.works,w.userid)"
  1769. alt
  1770. />
  1771. <div
  1772. class="answerScore"
  1773. v-if="w.score"
  1774. @click.stop="openScore(w)"
  1775. :class="{
  1776. rightW:
  1777. w.userid == userid || tType == 1 || tType == 4,
  1778. }"
  1779. >
  1780. {{ JSON.parse(w.score).wScore }}分
  1781. </div>
  1782. <div
  1783. class="answerScore"
  1784. @click.stop="openScore(w)"
  1785. v-else-if="courseDetail.userid == userid"
  1786. :class="{
  1787. rightW:
  1788. w.userid == userid || tType == 1 || tType == 4,
  1789. }"
  1790. >
  1791. 评分
  1792. </div>
  1793. <img
  1794. class="deleteImg"
  1795. src="../assets/deleteworks.png"
  1796. v-if="
  1797. w.userid == userid || tType == 1 || tType == 4
  1798. "
  1799. @click.stop="deleteWorks(w.wid)"
  1800. alt
  1801. />
  1802. </div>
  1803. <div class="worksName">
  1804. <div>{{ w.sName }}</div>
  1805. </div>
  1806. </div>
  1807. </div>
  1808. </div>
  1809. <div
  1810. v-if="
  1811. tType &&
  1812. tType == 2 &&
  1813. !sIsOpen &&
  1814. tool.tool.indexOf(57) != -1
  1815. "
  1816. class="worksBox"
  1817. >
  1818. <div
  1819. class="zuoyeYulan"
  1820. v-if="workStudent[toolIndex].length > 0"
  1821. >
  1822. <span class="worksTitle">作业预览</span>
  1823. </div>
  1824. <div
  1825. class="worksDetailBox"
  1826. v-if="workStudent[toolIndex].length > 0"
  1827. >
  1828. <div
  1829. class="works"
  1830. style="
  1831. width: 200px;
  1832. height: 140px;
  1833. margin: 10px 10px 10px 0;
  1834. box-shadow: 0 0 6px 1px #dfdada;
  1835. "
  1836. v-for="(w, wIndex) in workStudent[toolIndex]"
  1837. :key="wIndex"
  1838. >
  1839. <div class="workImg">
  1840. <img
  1841. :src="word2"
  1842. @click="downloadFile(w.works,w.userid)"
  1843. v-if="w.type == 12"
  1844. alt
  1845. />
  1846. <img
  1847. :src="word2"
  1848. @click="
  1849. openCocoPi(57, toolIndex, w.userid, w.sName)
  1850. "
  1851. v-else-if="w.type == 15"
  1852. alt
  1853. />
  1854. <div
  1855. class="answerScore"
  1856. v-if="w.score"
  1857. @click.stop="openScore(w)"
  1858. :class="{
  1859. rightW:
  1860. w.userid == userid || tType == 1 || tType == 4,
  1861. }"
  1862. >
  1863. {{ JSON.parse(w.score).wScore }}分
  1864. </div>
  1865. <div
  1866. class="answerScore"
  1867. @click.stop="openScore(w)"
  1868. v-else-if="courseDetail.userid == userid"
  1869. :class="{
  1870. rightW:
  1871. w.userid == userid || tType == 1 || tType == 4,
  1872. }"
  1873. >
  1874. 评分
  1875. </div>
  1876. <img
  1877. class="deleteImg"
  1878. src="../assets/deleteworks.png"
  1879. v-if="
  1880. w.userid == userid || tType == 1 || tType == 4
  1881. "
  1882. @click.stop="deleteWorks(w.wid)"
  1883. alt
  1884. />
  1885. </div>
  1886. <div class="worksName">
  1887. <div>{{ w.sName }}</div>
  1888. </div>
  1889. </div>
  1890. </div>
  1891. </div>
  1892. <div
  1893. v-if="
  1894. tType &&
  1895. tType == 2 &&
  1896. !sIsOpen &&
  1897. tool.tool.indexOf(4) != -1
  1898. "
  1899. class="worksBox"
  1900. >
  1901. <div
  1902. class="zuoyeYulan"
  1903. v-if="workStudent[toolIndex].length > 0"
  1904. >
  1905. <span class="worksTitle">作业预览</span>
  1906. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1907. </div>
  1908. <div
  1909. class="worksDetailBox"
  1910. v-if="workStudent[toolIndex].length > 0"
  1911. >
  1912. <div
  1913. class="isWorksName2"
  1914. v-for="(w, wIndex) in workStudent[toolIndex]"
  1915. :key="wIndex"
  1916. @click="
  1917. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1918. "
  1919. >
  1920. {{ w.sName }}
  1921. <img
  1922. class="deleteImg deleteImg2"
  1923. src="../assets/deleteworks.png"
  1924. v-if="w.userid == userid || tType == 1 || tType == 4"
  1925. @click.stop="deleteWorks(w.wid)"
  1926. alt
  1927. />
  1928. </div>
  1929. <!-- <div
  1930. class="works"
  1931. style="
  1932. width: 200px;
  1933. height: 140px;
  1934. border-radius: 10px;
  1935. box-shadow: 0 0 6px 1px #dfdada;
  1936. overflow: hidden;
  1937. "
  1938. v-for="(w, wIndex) in workStudent[toolIndex]"
  1939. :key="wIndex"
  1940. >
  1941. <div class="workImg">
  1942. <img
  1943. src="../assets/icon/works/noImg.png"
  1944. @click="
  1945. openTools(
  1946. 4,
  1947. toolIndex,
  1948. taskCount,
  1949. w.works,
  1950. w.sName
  1951. )
  1952. "
  1953. alt
  1954. />
  1955. </div>
  1956. <div class="worksName">
  1957. <div>{{ w.sName }}</div>
  1958. <div>{{ w.time }}</div>
  1959. </div>
  1960. </div> -->
  1961. </div>
  1962. </div>
  1963. <div
  1964. v-if="
  1965. tType &&
  1966. ((tType == 2 && sIsOpen == true) ||
  1967. tType == 1 ||
  1968. tType == 4) &&
  1969. tool.tool.indexOf(62) != -1
  1970. "
  1971. class="worksBox"
  1972. >
  1973. <div
  1974. class="zuoyeYulan"
  1975. v-if="
  1976. worksStudent.length &&
  1977. worksStudent[toolIndex].length > 0
  1978. "
  1979. >
  1980. <div class="worksTop">
  1981. <div>作业预览</div>
  1982. <div
  1983. class="corOpen"
  1984. @click="contract(toolIndex)"
  1985. v-if="
  1986. (isCloseList[toolIndex].isCloseBoolean) &&
  1987. isCloseList[toolIndex].isClose == 0
  1988. "
  1989. >
  1990. 折叠
  1991. </div>
  1992. <div
  1993. class="corOpen"
  1994. @click="contract(toolIndex)"
  1995. v-if="isCloseList[toolIndex].isClose == 1"
  1996. >
  1997. 展开
  1998. </div>
  1999. </div>
  2000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2001. </div>
  2002. <div>
  2003. <div
  2004. :id="'tool-' + toolIndex"
  2005. :style="{
  2006. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2007. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2008. }"
  2009. class="worksDetailBox"
  2010. v-if="
  2011. worksStudent.length &&
  2012. worksStudent[toolIndex].length > 0
  2013. "
  2014. >
  2015. <div
  2016. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2017. :key="wIndex"
  2018. class="isWorksName2"
  2019. @click="
  2020. openTools(
  2021. 62,
  2022. toolIndex,
  2023. taskCount,
  2024. w.works,
  2025. w.sName
  2026. )
  2027. "
  2028. >
  2029. {{ w.sName }}
  2030. <img
  2031. class="deleteImg deleteImg2"
  2032. src="../assets/deleteworks.png"
  2033. v-if="
  2034. w.userid == userid || tType == 1 || tType == 4
  2035. "
  2036. @click.stop="deleteWorks(w.wid)"
  2037. alt
  2038. />
  2039. </div>
  2040. </div>
  2041. </div>
  2042. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2043. 未提交
  2044. </div>
  2045. <div
  2046. class="noWorksS"
  2047. v-if="noWorksS && noWorksS[toolIndex].length"
  2048. >
  2049. <div
  2050. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2051. :key="sIndex"
  2052. class="noWorksName"
  2053. >
  2054. <el-tooltip effect="dark" :content="s.student" placement="top">
  2055. <span>{{ s.student }}</span>
  2056. </el-tooltip>
  2057. </div>
  2058. </div>
  2059. </div>
  2060. <div
  2061. v-if="
  2062. tType &&
  2063. tType == 2 &&
  2064. !sIsOpen &&
  2065. tool.tool.indexOf(62) != -1
  2066. "
  2067. class="worksBox"
  2068. >
  2069. <div
  2070. class="zuoyeYulan"
  2071. v-if="workStudent[toolIndex].length > 0"
  2072. >
  2073. <span class="worksTitle">作业预览</span>
  2074. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2075. </div>
  2076. <div
  2077. class="worksDetailBox"
  2078. v-if="workStudent[toolIndex].length > 0"
  2079. >
  2080. <div
  2081. class="isWorksName2"
  2082. v-for="(w, wIndex) in workStudent[toolIndex]"
  2083. :key="wIndex"
  2084. @click="
  2085. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2086. "
  2087. >
  2088. {{ w.sName }}
  2089. <img
  2090. class="deleteImg deleteImg2"
  2091. src="../assets/deleteworks.png"
  2092. v-if="w.userid == userid || tType == 1 || tType == 4"
  2093. @click.stop="deleteWorks(w.wid)"
  2094. alt
  2095. />
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div
  2100. v-if="
  2101. tType &&
  2102. tType == 2 &&
  2103. !sIsOpen &&
  2104. tool.tool.indexOf(45) != -1
  2105. "
  2106. class="worksBox"
  2107. >
  2108. <div
  2109. class="zuoyeYulan"
  2110. v-if="workStudent[toolIndex].length > 0"
  2111. >
  2112. <span class="worksTitle">作业预览</span>
  2113. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2114. </div>
  2115. <div
  2116. class="worksDetailBox"
  2117. v-if="workStudent[toolIndex].length > 0"
  2118. >
  2119. <div
  2120. class="isWorksName2"
  2121. v-for="(w, wIndex) in workStudent[toolIndex]"
  2122. :key="wIndex"
  2123. @click="
  2124. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2125. "
  2126. >
  2127. {{ w.sName }}
  2128. <img
  2129. class="deleteImg deleteImg2"
  2130. src="../assets/deleteworks.png"
  2131. v-if="w.userid == userid || tType == 1 || tType == 4"
  2132. @click.stop="deleteWorks(w.wid)"
  2133. alt
  2134. />
  2135. </div>
  2136. </div>
  2137. </div>
  2138. <div
  2139. v-if="
  2140. tType &&
  2141. tType == 2 &&
  2142. !sIsOpen &&
  2143. tool.tool.indexOf(69) != -1
  2144. "
  2145. class="worksBox"
  2146. >
  2147. <div
  2148. class="zuoyeYulan"
  2149. v-if="workStudent[toolIndex].length > 0"
  2150. >
  2151. <span class="worksTitle">作业预览</span>
  2152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2153. </div>
  2154. <div
  2155. class="worksDetailBox"
  2156. v-if="workStudent[toolIndex].length > 0"
  2157. >
  2158. <div
  2159. class="isWorksName2"
  2160. v-for="(w, wIndex) in workStudent[toolIndex]"
  2161. :key="wIndex"
  2162. @click="
  2163. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2164. "
  2165. >
  2166. {{ w.sName }}
  2167. <img
  2168. class="deleteImg deleteImg2"
  2169. src="../assets/deleteworks.png"
  2170. v-if="w.userid == userid || tType == 1 || tType == 4"
  2171. @click.stop="deleteWorks(w.wid)"
  2172. alt
  2173. />
  2174. </div>
  2175. </div>
  2176. </div>
  2177. <div
  2178. v-if="
  2179. tType &&
  2180. tType == 2 &&
  2181. !sIsOpen &&
  2182. tool.tool.indexOf(15) != -1
  2183. "
  2184. class="worksBox"
  2185. >
  2186. <div
  2187. class="zuoyeYulan"
  2188. v-if="workStudent[toolIndex].length > 0"
  2189. >
  2190. <span class="worksTitle">作业预览</span>
  2191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2192. </div>
  2193. <div
  2194. class="worksDetailBox"
  2195. v-if="workStudent[toolIndex].length > 0"
  2196. >
  2197. <div
  2198. class="works"
  2199. v-for="(w, wIndex) in workStudent[toolIndex]"
  2200. :key="wIndex"
  2201. >
  2202. <div class="workImg">
  2203. <!-- <img
  2204. src="../assets/icon/works/noImg.png"
  2205. @click="openTools(15, toolIndex, taskCount, w.works)"
  2206. alt=""
  2207. />-->
  2208. <div class="answerBg">
  2209. <!-- <div>{{ w.sName }}</div> -->
  2210. <el-tooltip
  2211. class="item"
  2212. effect="light"
  2213. :content="JSON.parse(w.works)[0].answer"
  2214. placement="top"
  2215. >
  2216. <div class="answerContent">
  2217. {{ JSON.parse(w.works)[0].answer }}
  2218. </div>
  2219. </el-tooltip>
  2220. <div
  2221. class="answerScore"
  2222. v-if="w.score"
  2223. @click.stop="openScore(w)"
  2224. :class="{
  2225. rightW:
  2226. w.userid == userid ||
  2227. tType == 1 ||
  2228. tType == 4,
  2229. }"
  2230. >
  2231. {{ JSON.parse(w.score).wScore }}分
  2232. </div>
  2233. <div
  2234. class="answerScore"
  2235. @click.stop="openScore(w)"
  2236. v-else-if="courseDetail.userid == userid"
  2237. :class="{
  2238. rightW:
  2239. w.userid == userid ||
  2240. tType == 1 ||
  2241. tType == 4,
  2242. }"
  2243. >
  2244. 评分
  2245. </div>
  2246. <img
  2247. class="deleteImg"
  2248. src="../assets/deleteworks.png"
  2249. v-if="
  2250. w.userid == userid || tType == 1 || tType == 4
  2251. "
  2252. @click.stop="deleteWorks(w.wid)"
  2253. alt
  2254. />
  2255. </div>
  2256. <div class="comment">
  2257. <div class="worksName">
  2258. <div>{{ w.sName }}</div>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. <div
  2266. v-if="
  2267. tType &&
  2268. tType == 2 &&
  2269. !sIsOpen &&
  2270. tool.tool.indexOf(1) != -1
  2271. "
  2272. class="worksBox"
  2273. >
  2274. <div
  2275. class="zuoyeYulan"
  2276. v-if="workStudent[toolIndex].length > 0"
  2277. >
  2278. <span class="worksTitle">作业预览</span>
  2279. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2280. </div>
  2281. <div
  2282. class="worksDetailBox"
  2283. v-if="workStudent[toolIndex].length > 0"
  2284. >
  2285. <div
  2286. class="works"
  2287. style="
  2288. width: 200px;
  2289. height: 140px;
  2290. margin: 10px 10px 10px 0;
  2291. box-shadow: 0 0 6px 1px #dfdada;
  2292. "
  2293. v-for="(w, wIndex) in workStudent[toolIndex]"
  2294. :key="wIndex"
  2295. >
  2296. <div class="workImg">
  2297. <img
  2298. :src="w.works"
  2299. @click="previewImg(w.works,w)"
  2300. alt
  2301. />
  2302. <div
  2303. class="answerScore"
  2304. v-if="w.score"
  2305. @click.stop="openScore(w)"
  2306. :class="{
  2307. rightW:
  2308. w.userid == userid || tType == 1 || tType == 4,
  2309. }"
  2310. >
  2311. {{ JSON.parse(w.score).wScore }}分
  2312. </div>
  2313. <div
  2314. class="answerScore"
  2315. @click.stop="openScore(w)"
  2316. v-else-if="courseDetail.userid == userid"
  2317. :class="{
  2318. rightW:
  2319. w.userid == userid || tType == 1 || tType == 4,
  2320. }"
  2321. >
  2322. 评分
  2323. </div>
  2324. <img
  2325. class="deleteImg"
  2326. src="../assets/deleteworks.png"
  2327. v-if="
  2328. w.userid == userid || tType == 1 || tType == 4
  2329. "
  2330. @click.stop="deleteWorks(w.wid)"
  2331. alt
  2332. />
  2333. </div>
  2334. <div class="worksName">
  2335. <div>{{ w.sName }}</div>
  2336. </div>
  2337. </div>
  2338. </div>
  2339. </div>
  2340. <div
  2341. v-if="
  2342. tType &&
  2343. tType == 2 &&
  2344. !sIsOpen &&
  2345. tool.tool.indexOf(3) != -1
  2346. "
  2347. class="worksBox"
  2348. >
  2349. <div
  2350. class="zuoyeYulan"
  2351. v-if="workStudent[toolIndex].length > 0"
  2352. >
  2353. <span class="worksTitle">作业预览</span>
  2354. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2355. </div>
  2356. <div
  2357. class="worksDetailBox"
  2358. v-if="workStudent[toolIndex].length > 0"
  2359. >
  2360. <div
  2361. class="works"
  2362. style="
  2363. width: 200px;
  2364. height: 140px;
  2365. margin: 10px 10px 10px 0;
  2366. box-shadow: 0 0 6px 1px #dfdada;
  2367. "
  2368. v-for="(w, wIndex) in workStudent[toolIndex]"
  2369. :key="wIndex"
  2370. >
  2371. <div class="workImg">
  2372. <img
  2373. :src="w.works"
  2374. @click="previewImg(w.works,w)"
  2375. alt
  2376. />
  2377. <div
  2378. class="answerScore"
  2379. v-if="w.score"
  2380. @click.stop="openScore(w)"
  2381. :class="{
  2382. rightW:
  2383. w.userid == userid || tType == 1 || tType == 4,
  2384. }"
  2385. >
  2386. {{ JSON.parse(w.score).wScore }}分
  2387. </div>
  2388. <div
  2389. class="answerScore"
  2390. @click.stop="openScore(w)"
  2391. v-else-if="courseDetail.userid == userid"
  2392. :class="{
  2393. rightW:
  2394. w.userid == userid || tType == 1 || tType == 4,
  2395. }"
  2396. >
  2397. 评分
  2398. </div>
  2399. <img
  2400. class="deleteImg"
  2401. src="../assets/deleteworks.png"
  2402. v-if="
  2403. w.userid == userid || tType == 1 || tType == 4
  2404. "
  2405. @click.stop="deleteWorks(w.wid)"
  2406. alt
  2407. />
  2408. </div>
  2409. <div class="worksName">
  2410. <div>{{ w.sName }}</div>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. </div>
  2415. <div
  2416. v-if="
  2417. tType &&
  2418. tType == 2 &&
  2419. !sIsOpen &&
  2420. tool.tool.indexOf(6) != -1
  2421. "
  2422. class="worksBox"
  2423. >
  2424. <div
  2425. class="zuoyeYulan"
  2426. v-if="workStudent[toolIndex].length > 0"
  2427. >
  2428. <span class="worksTitle">作业预览</span>
  2429. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2430. </div>
  2431. <div
  2432. class="worksDetailBox"
  2433. v-if="workStudent[toolIndex].length > 0"
  2434. >
  2435. <div
  2436. class="works"
  2437. style="
  2438. width: 200px;
  2439. height: 140px;
  2440. margin: 10px 10px 10px 0;
  2441. box-shadow: 0 0 6px 1px #dfdada;
  2442. "
  2443. v-for="(w, wIndex) in workStudent[toolIndex]"
  2444. :key="wIndex"
  2445. >
  2446. <div class="workImg">
  2447. <img
  2448. :src="w.works"
  2449. @click="previewImg(w.works,w)"
  2450. alt
  2451. />
  2452. <div
  2453. class="answerScore"
  2454. v-if="w.score"
  2455. @click.stop="openScore(w)"
  2456. :class="{
  2457. rightW:
  2458. w.userid == userid || tType == 1 || tType == 4,
  2459. }"
  2460. >
  2461. {{ JSON.parse(w.score).wScore }}分
  2462. </div>
  2463. <div
  2464. class="answerScore"
  2465. @click.stop="openScore(w)"
  2466. v-else-if="courseDetail.userid == userid"
  2467. :class="{
  2468. rightW:
  2469. w.userid == userid || tType == 1 || tType == 4,
  2470. }"
  2471. >
  2472. 评分
  2473. </div>
  2474. <img
  2475. class="deleteImg"
  2476. src="../assets/deleteworks.png"
  2477. v-if="
  2478. w.userid == userid || tType == 1 || tType == 4
  2479. "
  2480. @click.stop="deleteWorks(w.wid)"
  2481. alt
  2482. />
  2483. </div>
  2484. <div class="worksName">
  2485. <div>{{ w.sName }}</div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. </div>
  2490. <div
  2491. v-if="
  2492. tType &&
  2493. tType == 2 &&
  2494. !sIsOpen &&
  2495. tool.tool.indexOf(7) != -1
  2496. "
  2497. class="worksBox"
  2498. >
  2499. <div
  2500. class="zuoyeYulan"
  2501. v-if="workStudent[toolIndex].length > 0"
  2502. >
  2503. <span class="worksTitle">作业预览</span>
  2504. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2505. </div>
  2506. <div
  2507. class="worksDetailBox"
  2508. v-if="workStudent[toolIndex].length > 0"
  2509. >
  2510. <div
  2511. class="works"
  2512. style="
  2513. width: 200px;
  2514. height: 140px;
  2515. margin: 10px 10px 10px 0;
  2516. box-shadow: 0 0 6px 1px #dfdada;
  2517. "
  2518. v-for="(w, wIndex) in workStudent[toolIndex]"
  2519. :key="wIndex"
  2520. >
  2521. <div class="workImg">
  2522. <img
  2523. :src="w.works"
  2524. @click="previewImg(w.works,w)"
  2525. alt
  2526. />
  2527. <div
  2528. class="answerScore"
  2529. v-if="w.score"
  2530. @click.stop="openScore(w)"
  2531. :class="{
  2532. rightW:
  2533. w.userid == userid || tType == 1 || tType == 4,
  2534. }"
  2535. >
  2536. {{ JSON.parse(w.score).wScore }}分
  2537. </div>
  2538. <div
  2539. class="answerScore"
  2540. @click.stop="openScore(w)"
  2541. v-else-if="courseDetail.userid == userid"
  2542. :class="{
  2543. rightW:
  2544. w.userid == userid || tType == 1 || tType == 4,
  2545. }"
  2546. >
  2547. 评分
  2548. </div>
  2549. <img
  2550. class="deleteImg"
  2551. src="../assets/deleteworks.png"
  2552. v-if="
  2553. w.userid == userid || tType == 1 || tType == 4
  2554. "
  2555. @click.stop="deleteWorks(w.wid)"
  2556. alt
  2557. />
  2558. </div>
  2559. <div class="worksName">
  2560. <div>{{ w.sName }}</div>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. </div>
  2565. <div
  2566. v-if="
  2567. tType &&
  2568. tType == 2 &&
  2569. !sIsOpen &&
  2570. tool.tool.indexOf(26) != -1
  2571. "
  2572. class="worksBox"
  2573. >
  2574. <div
  2575. class="zuoyeYulan"
  2576. v-if="workStudent[toolIndex].length > 0"
  2577. >
  2578. <span class="worksTitle">作业预览</span>
  2579. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2580. </div>
  2581. <div
  2582. class="worksDetailBox"
  2583. v-if="workStudent[toolIndex].length > 0"
  2584. >
  2585. <div
  2586. class="works"
  2587. style="
  2588. width: 200px;
  2589. height: 140px;
  2590. margin: 10px 10px 10px 0;
  2591. box-shadow: 0 0 6px 1px #dfdada;
  2592. "
  2593. v-for="(w, wIndex) in workStudent[toolIndex]"
  2594. :key="wIndex"
  2595. >
  2596. <div class="workImg">
  2597. <img
  2598. :src="w.works"
  2599. @click="previewImg(w.works,w)"
  2600. alt
  2601. />
  2602. <img
  2603. class="deleteImg"
  2604. src="../assets/deleteworks.png"
  2605. v-if="
  2606. w.userid == userid || tType == 1 || tType == 4
  2607. "
  2608. @click.stop="deleteWorks(w.wid)"
  2609. alt
  2610. />
  2611. </div>
  2612. <div class="worksName">
  2613. <div>{{ w.sName }}</div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. <div
  2619. v-if="
  2620. tType &&
  2621. ((tType == 2 && sIsOpen == true) ||
  2622. tType == 1 ||
  2623. tType == 4) &&
  2624. tool.tool.indexOf(16) != -1
  2625. "
  2626. class="worksBox"
  2627. >
  2628. <div
  2629. class="zuoyeYulan"
  2630. v-if="
  2631. (worksStudent.length &&
  2632. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2633. "
  2634. >
  2635. <div class="worksTop">
  2636. <div>作业预览</div>
  2637. <div
  2638. class="corOpen"
  2639. @click="contract(toolIndex)"
  2640. v-if="
  2641. (isCloseList[toolIndex].isCloseBoolean) &&
  2642. isCloseList[toolIndex].isClose == 0
  2643. "
  2644. >
  2645. 折叠
  2646. </div>
  2647. <div
  2648. class="corOpen"
  2649. @click="contract(toolIndex)"
  2650. v-if="isCloseList[toolIndex].isClose == 1"
  2651. >
  2652. 展开
  2653. </div>
  2654. </div>
  2655. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2656. </div>
  2657. <div
  2658. class="group_workBox"
  2659. v-for="(g, gindex) in courseGroup.group"
  2660. :key="gindex"
  2661. >
  2662. <div class="group_box">
  2663. <div class="group_title">
  2664. <el-tooltip
  2665. class="item"
  2666. effect="light"
  2667. :content="g.name"
  2668. placement="top"
  2669. >
  2670. <div class="group_name">{{ g.name }}</div>
  2671. </el-tooltip>
  2672. </div>
  2673. <div
  2674. class="group_work"
  2675. v-if="
  2676. g.works &&
  2677. g.works.length &&
  2678. g.works[toolIndex].length
  2679. "
  2680. >
  2681. <div
  2682. class="works"
  2683. style="
  2684. width: 200px;
  2685. height: 140px;
  2686. margin: 10px 10px 10px 0;
  2687. border-radius: 15px;
  2688. box-shadow: 0 0 6px 1px #dfdada;
  2689. "
  2690. v-for="(w, wIndex) in g.works[toolIndex]"
  2691. :key="wIndex"
  2692. :class="w.type == 1 ? 'isTypeOne' : ''"
  2693. >
  2694. <div class="workImg" v-if="w.type == 0">
  2695. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2696. <img
  2697. :src="w.works"
  2698. @click="previewImg(w.works,w)"
  2699. alt
  2700. />
  2701. <div
  2702. class="answerScore"
  2703. v-if="w.score"
  2704. @click.stop="openScore(w)"
  2705. :class="{
  2706. rightW:
  2707. w.userid == userid ||
  2708. tType == 1 ||
  2709. tType == 4 ||
  2710. w.ateacher == userid,
  2711. }"
  2712. >
  2713. {{ JSON.parse(w.score).wScore }}分
  2714. </div>
  2715. <div
  2716. class="answerScore"
  2717. @click.stop="openScore(w)"
  2718. v-else-if="courseDetail.userid == userid"
  2719. :class="{
  2720. rightW:
  2721. w.userid == userid ||
  2722. tType == 1 ||
  2723. tType == 4 ||
  2724. w.ateacher == userid,
  2725. }"
  2726. >
  2727. 评分
  2728. </div>
  2729. <img
  2730. class="deleteImg"
  2731. src="../assets/deleteworks.png"
  2732. v-if="
  2733. w.userid == userid || tType == 1 || tType == 4
  2734. "
  2735. @click.stop="deleteWorks(w.wid)"
  2736. alt
  2737. />
  2738. </div>
  2739. <div class="workImg" v-if="w.type == 1">
  2740. <img :src="word" @click="openFile(w.works,w)" alt />
  2741. <!-- @click="openFile(w.works)" -->
  2742. <div
  2743. class="answerScore"
  2744. v-if="w.score"
  2745. @click.stop="openScore(w)"
  2746. :class="{
  2747. rightW:
  2748. w.userid == userid ||
  2749. tType == 1 ||
  2750. tType == 4 ||
  2751. w.ateacher == userid,
  2752. }"
  2753. >
  2754. {{ JSON.parse(w.score).wScore }}分
  2755. </div>
  2756. <div
  2757. class="answerScore"
  2758. @click.stop="openScore(w)"
  2759. v-else-if="courseDetail.userid == userid"
  2760. :class="{
  2761. rightW:
  2762. w.userid == userid ||
  2763. tType == 1 ||
  2764. tType == 4 ||
  2765. w.ateacher == userid,
  2766. }"
  2767. >
  2768. 评分
  2769. </div>
  2770. <img
  2771. class="deleteImg"
  2772. src="../assets/deleteworks.png"
  2773. v-if="
  2774. w.userid == userid || tType == 1 || tType == 4
  2775. "
  2776. @click.stop="deleteWorks(w.wid)"
  2777. alt
  2778. />
  2779. </div>
  2780. <div class="workImg" v-if="w.type == 3">
  2781. <img
  2782. style="cursor: pointer"
  2783. :src="video"
  2784. @click="openVideo(w)"
  2785. alt
  2786. />
  2787. <!-- @click="openVideo(w.works)" -->
  2788. <div
  2789. class="answerScore"
  2790. v-if="w.score"
  2791. @click.stop="openScore(w)"
  2792. :class="{
  2793. rightW:
  2794. w.userid == userid ||
  2795. tType == 1 ||
  2796. tType == 4 ||
  2797. w.ateacher == userid,
  2798. }"
  2799. >
  2800. {{ JSON.parse(w.score).wScore }}分
  2801. </div>
  2802. <div
  2803. class="answerScore"
  2804. @click.stop="openScore(w)"
  2805. v-else-if="courseDetail.userid == userid"
  2806. :class="{
  2807. rightW:
  2808. w.userid == userid ||
  2809. tType == 1 ||
  2810. tType == 4 ||
  2811. w.ateacher == userid,
  2812. }"
  2813. >
  2814. 评分
  2815. </div>
  2816. <img
  2817. class="deleteImg"
  2818. src="../assets/deleteworks.png"
  2819. v-if="
  2820. w.userid == userid || tType == 1 || tType == 4
  2821. "
  2822. @click.stop="deleteWorks(w.wid)"
  2823. alt
  2824. />
  2825. </div>
  2826. <div class="workImg" v-if="w.type == 12">
  2827. <img
  2828. style="cursor: pointer"
  2829. :src="word2"
  2830. @click="downloadFile(w.works,w.userid)"
  2831. alt
  2832. />
  2833. <!-- @click="openVideo(w.works)" -->
  2834. <div
  2835. class="answerScore"
  2836. v-if="w.score"
  2837. @click.stop="openScore(w)"
  2838. :class="{
  2839. rightW:
  2840. w.userid == userid ||
  2841. tType == 1 ||
  2842. tType == 4 ||
  2843. w.ateacher == userid,
  2844. }"
  2845. >
  2846. {{ JSON.parse(w.score).wScore }}分
  2847. </div>
  2848. <div
  2849. class="answerScore"
  2850. @click.stop="openScore(w)"
  2851. v-else-if="courseDetail.userid == userid"
  2852. :class="{
  2853. rightW:
  2854. w.userid == userid ||
  2855. tType == 1 ||
  2856. tType == 4 ||
  2857. w.ateacher == userid,
  2858. }"
  2859. >
  2860. 评分
  2861. </div>
  2862. <img
  2863. class="deleteImg"
  2864. src="../assets/deleteworks.png"
  2865. v-if="
  2866. w.userid == userid || tType == 1 || tType == 4
  2867. "
  2868. @click.stop="deleteWorks(w.wid)"
  2869. alt
  2870. />
  2871. </div>
  2872. <div class="comment" style="min-width: 200px">
  2873. <div class="worksName">
  2874. <div>{{ w.sName }}</div>
  2875. </div>
  2876. <div class="commentList">
  2877. <div class="commentList">
  2878. <div
  2879. class="commentImg"
  2880. @click="
  2881. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2882. "
  2883. >
  2884. <img
  2885. :src="w.isLikes == true ? likes : noLikes"
  2886. alt=""
  2887. />
  2888. </div>
  2889. <div>{{ w.likesCount }}</div>
  2890. </div>
  2891. <div
  2892. class="commentList"
  2893. style="margin-right: 15px"
  2894. >
  2895. <div
  2896. class="commentImg"
  2897. @click="
  2898. commentOther(
  2899. w,
  2900. toolIndex,
  2901. wIndex,
  2902. null,
  2903. g.id
  2904. )
  2905. "
  2906. >
  2907. <img
  2908. src="../assets/icon/comment/comment.png"
  2909. alt=""
  2910. />
  2911. </div>
  2912. <div>{{ w.commentCount }}</div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. <div class="group_work" v-else>暂无提交作业</div>
  2919. </div>
  2920. </div>
  2921. <div
  2922. :id="'tool-' + toolIndex"
  2923. :style="{
  2924. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2925. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2926. }"
  2927. class="worksDetailBox"
  2928. v-if="
  2929. worksStudent.length &&
  2930. worksStudent[toolIndex].length > 0
  2931. "
  2932. >
  2933. <div
  2934. class="works"
  2935. style="
  2936. width: 200px;
  2937. height: 140px;
  2938. margin: 10px 10px 10px 0;
  2939. border-radius: 15px;
  2940. box-shadow: 0 0 6px 1px #dfdada;
  2941. "
  2942. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2943. :key="wIndex"
  2944. :class="w.type == 1 ? 'isTypeOne' : ''"
  2945. >
  2946. <div class="workImg" v-if="w.type == 0">
  2947. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2948. <img
  2949. :src="w.works"
  2950. @click="previewImg(w.works,w)"
  2951. alt
  2952. />
  2953. <div
  2954. class="answerScore"
  2955. v-if="w.score"
  2956. @click.stop="openScore(w)"
  2957. :class="{
  2958. rightW:
  2959. w.userid == userid ||
  2960. tType == 1 ||
  2961. tType == 4 ||
  2962. w.ateacher == userid,
  2963. }"
  2964. >
  2965. {{ JSON.parse(w.score).wScore }}分
  2966. </div>
  2967. <div
  2968. class="answerScore"
  2969. @click.stop="openScore(w)"
  2970. v-else-if="courseDetail.userid == userid"
  2971. :class="{
  2972. rightW:
  2973. w.userid == userid ||
  2974. tType == 1 ||
  2975. tType == 4 ||
  2976. w.ateacher == userid,
  2977. }"
  2978. >
  2979. 评分
  2980. </div>
  2981. <img
  2982. class="deleteImg"
  2983. src="../assets/deleteworks.png"
  2984. v-if="
  2985. w.userid == userid || tType == 1 || tType == 4
  2986. "
  2987. @click.stop="deleteWorks(w.wid)"
  2988. alt
  2989. />
  2990. </div>
  2991. <div class="workImg" v-if="w.type == 1">
  2992. <img :src="word" @click="openFile(w.works,w)" alt />
  2993. <!-- @click="openFile(w.works)" -->
  2994. <div
  2995. class="answerScore"
  2996. v-if="w.score"
  2997. @click.stop="openScore(w)"
  2998. :class="{
  2999. rightW:
  3000. w.userid == userid ||
  3001. tType == 1 ||
  3002. tType == 4 ||
  3003. w.ateacher == userid,
  3004. }"
  3005. >
  3006. {{ JSON.parse(w.score).wScore }}分
  3007. </div>
  3008. <div
  3009. class="answerScore"
  3010. @click.stop="openScore(w)"
  3011. v-else-if="courseDetail.userid == userid"
  3012. :class="{
  3013. rightW:
  3014. w.userid == userid ||
  3015. tType == 1 ||
  3016. tType == 4 ||
  3017. w.ateacher == userid,
  3018. }"
  3019. >
  3020. 评分
  3021. </div>
  3022. <img
  3023. class="deleteImg"
  3024. src="../assets/deleteworks.png"
  3025. v-if="
  3026. w.userid == userid || tType == 1 || tType == 4
  3027. "
  3028. @click.stop="deleteWorks(w.wid)"
  3029. alt
  3030. />
  3031. </div>
  3032. <div class="workImg" v-if="w.type == 3">
  3033. <img
  3034. style="cursor: pointer"
  3035. :src="video"
  3036. @click="openVideo(w)"
  3037. alt
  3038. />
  3039. <!-- @click="openVideo(w.works)" -->
  3040. <div
  3041. class="answerScore"
  3042. v-if="w.score"
  3043. @click.stop="openScore(w)"
  3044. :class="{
  3045. rightW:
  3046. w.userid == userid ||
  3047. tType == 1 ||
  3048. tType == 4 ||
  3049. w.ateacher == userid,
  3050. }"
  3051. >
  3052. {{ JSON.parse(w.score).wScore }}分
  3053. </div>
  3054. <div
  3055. class="answerScore"
  3056. @click.stop="openScore(w)"
  3057. v-else-if="courseDetail.userid == userid"
  3058. :class="{
  3059. rightW:
  3060. w.userid == userid ||
  3061. tType == 1 ||
  3062. tType == 4 ||
  3063. w.ateacher == userid,
  3064. }"
  3065. >
  3066. 评分
  3067. </div>
  3068. <img
  3069. class="deleteImg"
  3070. src="../assets/deleteworks.png"
  3071. v-if="
  3072. w.userid == userid || tType == 1 || tType == 4
  3073. "
  3074. @click.stop="deleteWorks(w.wid)"
  3075. alt
  3076. />
  3077. </div>
  3078. <div class="workImg" v-if="w.type == 12">
  3079. <img
  3080. style="cursor: pointer"
  3081. :src="word2"
  3082. @click="downloadFile(w.works,w.userid)"
  3083. alt
  3084. />
  3085. <!-- @click="openVideo(w.works)" -->
  3086. <div
  3087. class="answerScore"
  3088. v-if="w.score"
  3089. @click.stop="openScore(w)"
  3090. :class="{
  3091. rightW:
  3092. w.userid == userid ||
  3093. tType == 1 ||
  3094. tType == 4 ||
  3095. w.ateacher == userid,
  3096. }"
  3097. >
  3098. {{ JSON.parse(w.score).wScore }}分
  3099. </div>
  3100. <div
  3101. class="answerScore"
  3102. @click.stop="openScore(w)"
  3103. v-else-if="courseDetail.userid == userid"
  3104. :class="{
  3105. rightW:
  3106. w.userid == userid ||
  3107. tType == 1 ||
  3108. tType == 4 ||
  3109. w.ateacher == userid,
  3110. }"
  3111. >
  3112. 评分
  3113. </div>
  3114. <img
  3115. class="deleteImg"
  3116. src="../assets/deleteworks.png"
  3117. v-if="
  3118. w.userid == userid || tType == 1 || tType == 4
  3119. "
  3120. @click.stop="deleteWorks(w.wid)"
  3121. alt
  3122. />
  3123. </div>
  3124. <div class="comment" style="min-width: 200px">
  3125. <div class="worksName">
  3126. <div>{{ w.sName }}</div>
  3127. </div>
  3128. <div class="commentList">
  3129. <div class="commentList">
  3130. <div
  3131. class="commentImg"
  3132. @click="
  3133. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3134. "
  3135. >
  3136. <img
  3137. :src="w.isLikes == true ? likes : noLikes"
  3138. alt=""
  3139. />
  3140. </div>
  3141. <div>{{ w.likesCount }}</div>
  3142. </div>
  3143. <div class="commentList" style="margin-right: 15px">
  3144. <div
  3145. class="commentImg"
  3146. @click="commentOther(w, toolIndex, wIndex)"
  3147. >
  3148. <img
  3149. src="../assets/icon/comment/comment.png"
  3150. alt=""
  3151. />
  3152. </div>
  3153. <div>{{ w.commentCount }}</div>
  3154. </div>
  3155. </div>
  3156. </div>
  3157. </div>
  3158. </div>
  3159. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3160. 未提交
  3161. </div>
  3162. <div
  3163. class="noWorksS"
  3164. v-if="noWorksS && noWorksS[toolIndex].length"
  3165. >
  3166. <div
  3167. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3168. :key="sIndex"
  3169. class="noWorksName"
  3170. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3171. >
  3172. <el-tooltip effect="dark" :content="s.student" placement="top">
  3173. <span>{{ s.student }}</span>
  3174. </el-tooltip>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. <div
  3179. v-if="
  3180. tType &&
  3181. ((tType == 2 && sIsOpen == true) ||
  3182. tType == 1 ||
  3183. tType == 4) &&
  3184. tool.tool.indexOf(70) != -1
  3185. "
  3186. class="worksBox"
  3187. >
  3188. <div
  3189. class="zuoyeYulan"
  3190. v-if="
  3191. (worksStudent.length &&
  3192. worksStudent[toolIndex].length > 0)
  3193. "
  3194. >
  3195. <div class="worksTop">
  3196. <div>作业预览</div>
  3197. <div
  3198. class="corOpen"
  3199. @click="contract(toolIndex)"
  3200. v-if="
  3201. (isCloseList[toolIndex].isCloseBoolean) &&
  3202. isCloseList[toolIndex].isClose == 0
  3203. "
  3204. >
  3205. 折叠
  3206. </div>
  3207. <div
  3208. class="corOpen"
  3209. @click="contract(toolIndex)"
  3210. v-if="isCloseList[toolIndex].isClose == 1"
  3211. >
  3212. 展开
  3213. </div>
  3214. </div>
  3215. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3216. </div>
  3217. <div
  3218. :id="'tool-' + toolIndex"
  3219. :style="{
  3220. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3221. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3222. }"
  3223. class="worksDetailBox"
  3224. v-if="
  3225. worksStudent.length &&
  3226. worksStudent[toolIndex].length > 0
  3227. "
  3228. >
  3229. <div
  3230. class="works"
  3231. style="
  3232. width: 200px;
  3233. height: 140px;
  3234. margin: 10px 10px 10px 0;
  3235. border-radius: 15px;
  3236. box-shadow: 0 0 6px 1px #dfdada;
  3237. "
  3238. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3239. :key="wIndex"
  3240. :class="w.type == 1 ? 'isTypeOne' : ''"
  3241. >
  3242. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3243. <img :src="word" alt />
  3244. <img
  3245. class="deleteImg"
  3246. src="../assets/deleteworks.png"
  3247. v-if="
  3248. w.userid == userid || tType == 1 || tType == 4
  3249. "
  3250. @click.stop="deleteWorks(w.wid)"
  3251. alt
  3252. />
  3253. </div>
  3254. <div class="comment" style="min-width: 200px">
  3255. <div class="worksName">
  3256. <div>{{ w.sName }}</div>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. </div>
  3261. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3262. 未提交
  3263. </div>
  3264. <div
  3265. class="noWorksS"
  3266. v-if="noWorksS && noWorksS[toolIndex].length"
  3267. >
  3268. <div
  3269. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3270. :key="sIndex"
  3271. class="noWorksName"
  3272. >
  3273. <el-tooltip effect="dark" :content="s.student" placement="top">
  3274. <span>{{ s.student }}</span>
  3275. </el-tooltip>
  3276. </div>
  3277. </div>
  3278. </div>
  3279. <div
  3280. v-if="
  3281. tType &&
  3282. tType == 2 &&
  3283. !sIsOpen &&
  3284. tool.tool.indexOf(70) != -1
  3285. "
  3286. class="worksBox"
  3287. >
  3288. <div
  3289. class="zuoyeYulan"
  3290. v-if="workStudent[toolIndex].length > 0"
  3291. >
  3292. <span class="worksTitle">作业预览</span>
  3293. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3294. </div>
  3295. <div
  3296. class="worksDetailBox"
  3297. v-if="workStudent[toolIndex].length > 0"
  3298. >
  3299. <div
  3300. class="works"
  3301. style="
  3302. width: 200px;
  3303. height: 140px;
  3304. margin: 10px 10px 10px 0;
  3305. box-shadow: 0 0 6px 1px #dfdada;
  3306. "
  3307. v-for="(w, wIndex) in workStudent[toolIndex]"
  3308. :key="wIndex"
  3309. >
  3310. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3311. <img :src="word" alt />
  3312. <img
  3313. class="deleteImg"
  3314. src="../assets/deleteworks.png"
  3315. v-if="
  3316. w.userid == userid || tType == 1 || tType == 4
  3317. "
  3318. @click.stop="deleteWorks(w.wid)"
  3319. alt
  3320. />
  3321. </div>
  3322. <div class="worksName">
  3323. <div>{{ w.sName }}</div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div
  3329. v-if="
  3330. tType &&
  3331. ((tType == 2 && sIsOpen == true) ||
  3332. tType == 1 ||
  3333. tType == 4) &&
  3334. tool.tool.indexOf(32) != -1
  3335. "
  3336. class="worksBox"
  3337. >
  3338. <div
  3339. class="zuoyeYulan"
  3340. v-if="
  3341. worksStudent.length &&
  3342. worksStudent[toolIndex].length > 0
  3343. "
  3344. >
  3345. <div class="worksTop">
  3346. <div>作业预览</div>
  3347. <div
  3348. class="corOpen"
  3349. @click="contract(toolIndex)"
  3350. v-if="
  3351. (isCloseList[toolIndex].isCloseBoolean) &&
  3352. isCloseList[toolIndex].isClose == 0
  3353. "
  3354. >
  3355. 折叠
  3356. </div>
  3357. <div
  3358. class="corOpen"
  3359. @click="contract(toolIndex)"
  3360. v-if="isCloseList[toolIndex].isClose == 1"
  3361. >
  3362. 展开
  3363. </div>
  3364. </div>
  3365. </div>
  3366. <div
  3367. :id="'tool-' + toolIndex"
  3368. class="worksDetailBox"
  3369. :style="{
  3370. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3371. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3372. }"
  3373. v-if="
  3374. worksStudent.length &&
  3375. worksStudent[toolIndex].length > 0
  3376. "
  3377. >
  3378. <div
  3379. class="works"
  3380. style="
  3381. width: 200px;
  3382. height: 140px;
  3383. margin: 10px 10px 10px 0;
  3384. border-radius: 15px;
  3385. box-shadow: 0 0 6px 1px #dfdada;
  3386. "
  3387. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3388. :key="wIndex"
  3389. :class="w.type == 1 ? 'isTypeOne' : ''"
  3390. >
  3391. <div class="workImg">
  3392. <img
  3393. :src="word2"
  3394. @click="downloadFile(w.works,w.userid)"
  3395. alt
  3396. />
  3397. <div
  3398. class="answerScore"
  3399. v-if="w.score"
  3400. @click.stop="openScore(w)"
  3401. :class="{
  3402. rightW:
  3403. w.userid == userid ||
  3404. tType == 1 ||
  3405. tType == 4 ||
  3406. w.ateacher == userid,
  3407. }"
  3408. >
  3409. {{ JSON.parse(w.score).wScore }}分
  3410. </div>
  3411. <div
  3412. class="answerScore"
  3413. @click.stop="openScore(w)"
  3414. v-else-if="courseDetail.userid == userid"
  3415. :class="{
  3416. rightW:
  3417. w.userid == userid ||
  3418. tType == 1 ||
  3419. tType == 4 ||
  3420. w.ateacher == userid,
  3421. }"
  3422. >
  3423. 评分
  3424. </div>
  3425. <img
  3426. class="deleteImg"
  3427. src="../assets/deleteworks.png"
  3428. v-if="
  3429. w.userid == userid || tType == 1 || tType == 4
  3430. "
  3431. @click.stop="deleteWorks(w.wid)"
  3432. alt
  3433. />
  3434. </div>
  3435. <div class="comment" style="min-width: 200px">
  3436. <div class="worksName">
  3437. <div>{{ w.sName }}</div>
  3438. </div>
  3439. <div class="commentList">
  3440. <div class="commentList">
  3441. <div
  3442. class="commentImg"
  3443. @click="
  3444. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3445. "
  3446. >
  3447. <img
  3448. :src="w.isLikes == true ? likes : noLikes"
  3449. alt=""
  3450. />
  3451. </div>
  3452. <div>{{ w.likesCount }}</div>
  3453. </div>
  3454. <div class="commentList" style="margin-right: 15px">
  3455. <div
  3456. class="commentImg"
  3457. @click="commentOther(w, toolIndex, wIndex)"
  3458. >
  3459. <img
  3460. src="../assets/icon/comment/comment.png"
  3461. alt=""
  3462. />
  3463. </div>
  3464. <div>{{ w.commentCount }}</div>
  3465. </div>
  3466. </div>
  3467. </div>
  3468. </div>
  3469. </div>
  3470. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3471. 未提交
  3472. </div>
  3473. <div
  3474. class="noWorksS"
  3475. v-if="noWorksS && noWorksS[toolIndex].length"
  3476. >
  3477. <div
  3478. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3479. :key="sIndex"
  3480. class="noWorksName"
  3481. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3482. >
  3483. <el-tooltip effect="dark" :content="s.student" placement="top">
  3484. <span>{{ s.student }}</span>
  3485. </el-tooltip>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. <div
  3490. v-if="
  3491. tType &&
  3492. ((tType == 2 && sIsOpen == true) ||
  3493. tType == 1 ||
  3494. tType == 4) &&
  3495. tool.tool.indexOf(57) != -1
  3496. "
  3497. class="worksBox"
  3498. >
  3499. <div
  3500. class="zuoyeYulan"
  3501. v-if="
  3502. worksStudent.length &&
  3503. worksStudent[toolIndex].length > 0
  3504. "
  3505. >
  3506. <div class="worksTop">
  3507. <div>作业预览</div>
  3508. <div
  3509. class="corOpen"
  3510. @click="contract(toolIndex)"
  3511. v-if="
  3512. (isCloseList[toolIndex].isCloseBoolean) &&
  3513. isCloseList[toolIndex].isClose == 0
  3514. "
  3515. >
  3516. 折叠
  3517. </div>
  3518. <div
  3519. class="corOpen"
  3520. @click="contract(toolIndex)"
  3521. v-if="isCloseList[toolIndex].isClose == 1"
  3522. >
  3523. 展开
  3524. </div>
  3525. </div>
  3526. </div>
  3527. <div
  3528. :id="'tool-' + toolIndex"
  3529. class="worksDetailBox"
  3530. :style="{
  3531. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3532. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3533. }"
  3534. v-if="
  3535. worksStudent.length &&
  3536. worksStudent[toolIndex].length > 0
  3537. "
  3538. >
  3539. <div
  3540. class="works"
  3541. style="
  3542. width: 200px;
  3543. height: 140px;
  3544. margin: 10px 10px 10px 0;
  3545. border-radius: 15px;
  3546. box-shadow: 0 0 6px 1px #dfdada;
  3547. "
  3548. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3549. :key="wIndex"
  3550. :class="w.type == 1 ? 'isTypeOne' : ''"
  3551. >
  3552. <div class="workImg">
  3553. <img
  3554. :src="word2"
  3555. @click="downloadFile(w.works,w.userid)"
  3556. v-if="w.type == 12"
  3557. alt
  3558. />
  3559. <img
  3560. :src="word2"
  3561. @click="
  3562. openCocoPi(57, toolIndex, w.userid, w.sName)
  3563. "
  3564. v-else-if="w.type == 15"
  3565. alt
  3566. />
  3567. <div
  3568. class="answerScore"
  3569. v-if="w.score"
  3570. @click.stop="openScore(w)"
  3571. :class="{
  3572. rightW:
  3573. w.userid == userid ||
  3574. tType == 1 ||
  3575. tType == 4 ||
  3576. w.ateacher == userid,
  3577. }"
  3578. >
  3579. {{ JSON.parse(w.score).wScore }}分
  3580. </div>
  3581. <div
  3582. class="answerScore"
  3583. @click.stop="openScore(w)"
  3584. v-else-if="courseDetail.userid == userid"
  3585. :class="{
  3586. rightW:
  3587. w.userid == userid ||
  3588. tType == 1 ||
  3589. tType == 4 ||
  3590. w.ateacher == userid,
  3591. }"
  3592. >
  3593. 评分
  3594. </div>
  3595. <img
  3596. class="deleteImg"
  3597. src="../assets/deleteworks.png"
  3598. v-if="
  3599. w.userid == userid || tType == 1 || tType == 4
  3600. "
  3601. @click.stop="deleteWorks(w.wid)"
  3602. alt
  3603. />
  3604. </div>
  3605. <div class="comment" style="min-width: 200px">
  3606. <div class="worksName">
  3607. <div>{{ w.sName }}</div>
  3608. </div>
  3609. <div class="commentList">
  3610. <div class="commentList">
  3611. <div
  3612. class="commentImg"
  3613. @click="
  3614. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3615. "
  3616. >
  3617. <img
  3618. :src="w.isLikes == true ? likes : noLikes"
  3619. alt=""
  3620. />
  3621. </div>
  3622. <div>{{ w.likesCount }}</div>
  3623. </div>
  3624. <div class="commentList" style="margin-right: 15px">
  3625. <div
  3626. class="commentImg"
  3627. @click="commentOther(w, toolIndex, wIndex)"
  3628. >
  3629. <img
  3630. src="../assets/icon/comment/comment.png"
  3631. alt=""
  3632. />
  3633. </div>
  3634. <div>{{ w.commentCount }}</div>
  3635. </div>
  3636. </div>
  3637. </div>
  3638. </div>
  3639. </div>
  3640. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3641. 未提交
  3642. </div>
  3643. <div
  3644. class="noWorksS"
  3645. v-if="noWorksS && noWorksS[toolIndex].length"
  3646. >
  3647. <div
  3648. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3649. :key="sIndex"
  3650. class="noWorksName"
  3651. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3652. >
  3653. <el-tooltip effect="dark" :content="s.student" placement="top">
  3654. <span>{{ s.student }}</span>
  3655. </el-tooltip>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. <div
  3660. v-if="
  3661. tType &&
  3662. ((tType == 2 && sIsOpen == true) ||
  3663. tType == 1 ||
  3664. tType == 4) &&
  3665. tool.tool.indexOf(72) != -1
  3666. "
  3667. class="worksBox"
  3668. >
  3669. <div
  3670. class="zuoyeYulan"
  3671. v-if="
  3672. worksStudent.length &&
  3673. worksStudent[toolIndex].length > 0
  3674. "
  3675. >
  3676. <div class="worksTop">
  3677. <div>作业预览</div>
  3678. <div
  3679. class="corOpen"
  3680. @click="contract(toolIndex)"
  3681. v-if="
  3682. isCloseList[toolIndex].isCloseBoolean &&
  3683. isCloseList[toolIndex].isClose == 0
  3684. "
  3685. >
  3686. 折叠
  3687. </div>
  3688. <div
  3689. class="corOpen"
  3690. @click="contract(toolIndex)"
  3691. v-if="isCloseList[toolIndex].isClose == 1"
  3692. >
  3693. 展开
  3694. </div>
  3695. </div>
  3696. </div>
  3697. <div
  3698. :id="'tool-' + toolIndex"
  3699. :style="{
  3700. height:
  3701. isCloseList[toolIndex].isClose == 1
  3702. ? retrnToolHeight('tool-' + toolIndex)
  3703. : 'auto',
  3704. overflow:
  3705. isCloseList[toolIndex].isClose == 1
  3706. ? 'hidden'
  3707. : 'unset'
  3708. }"
  3709. class="worksDetailBox"
  3710. v-if="
  3711. worksStudent.length &&
  3712. worksStudent[toolIndex].length > 0
  3713. "
  3714. >
  3715. <div
  3716. class="works"
  3717. style="
  3718. width: 200px;
  3719. height: 140px;
  3720. margin: 10px 10px 10px 0;
  3721. border-radius: 15px;
  3722. box-shadow: 0 0 6px 1px #dfdada;
  3723. "
  3724. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3725. :key="wIndex"
  3726. :class="w.type == 1 ? 'isTypeOne' : ''"
  3727. >
  3728. <div class="workImg">
  3729. <!-- <img
  3730. :src="word2"
  3731. @click="downloadFile(w.works)"
  3732. v-if="w.type == 12"
  3733. alt
  3734. /> -->
  3735. <img
  3736. :src="word2"
  3737. @click="
  3738. openCocoFlow(w)
  3739. "
  3740. alt
  3741. />
  3742. <div
  3743. class="answerScore"
  3744. v-if="w.score"
  3745. @click.stop="openScore(w)"
  3746. :class="{
  3747. rightW:
  3748. w.userid == userid ||
  3749. tType == 1 ||
  3750. tType == 4 ||
  3751. w.ateacher == userid
  3752. }"
  3753. >
  3754. {{ JSON.parse(w.score).wScore }}分
  3755. </div>
  3756. <div
  3757. class="answerScore"
  3758. @click.stop="openScore(w)"
  3759. v-else-if="
  3760. courseDetail.userid == userid &&
  3761. courseDetail.state != 5 &&
  3762. chapInfoList[courseType].chapterInfo[0]
  3763. .taskJson[taskCount].eList &&
  3764. chapInfoList[courseType].chapterInfo[0]
  3765. .taskJson[taskCount].eList.length
  3766. "
  3767. :class="{
  3768. rightW:
  3769. w.userid == userid ||
  3770. tType == 1 ||
  3771. tType == 4 ||
  3772. w.ateacher == userid
  3773. }"
  3774. >
  3775. 评分
  3776. </div>
  3777. <img
  3778. class="deleteImg"
  3779. src="../assets/deleteworks.png"
  3780. v-if="
  3781. w.userid == userid || tType == 1 || tType == 4
  3782. "
  3783. @click.stop="deleteWorks(w.wid)"
  3784. alt
  3785. />
  3786. </div>
  3787. <div class="comment" style="min-width: 200px">
  3788. <div class="worksName">
  3789. <div>{{ w.sName }}</div>
  3790. </div>
  3791. <div class="commentList">
  3792. <div class="commentList">
  3793. <div
  3794. class="commentImg"
  3795. @click="
  3796. isLikes(
  3797. w.wid,
  3798. userid,
  3799. 1,
  3800. null,
  3801. w.isLikes,
  3802. w.sName
  3803. )
  3804. "
  3805. >
  3806. <img
  3807. :src="w.isLikes == true ? likes : noLikes"
  3808. alt=""
  3809. />
  3810. </div>
  3811. <div>{{ w.likesCount }}</div>
  3812. </div>
  3813. <div class="commentList" style="margin-right: 15px">
  3814. <div
  3815. class="commentImg"
  3816. @click="commentOther(w, toolIndex, wIndex)"
  3817. >
  3818. <img
  3819. src="../assets/icon/comment/comment.png"
  3820. alt=""
  3821. />
  3822. </div>
  3823. <div>{{ w.commentCount }}</div>
  3824. </div>
  3825. </div>
  3826. </div>
  3827. </div>
  3828. </div>
  3829. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3830. 未提交
  3831. </div>
  3832. <div
  3833. class="noWorksS"
  3834. v-if="noWorksS && noWorksS[toolIndex].length"
  3835. >
  3836. <div
  3837. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3838. :key="sIndex"
  3839. class="noWorksName"
  3840. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3841. >
  3842. <el-tooltip
  3843. effect="dark"
  3844. :content="s.student"
  3845. placement="top"
  3846. >
  3847. <span>{{ s.student }}</span>
  3848. </el-tooltip>
  3849. </div>
  3850. </div>
  3851. </div>
  3852. <div
  3853. v-if="
  3854. tType &&
  3855. tType == 2 &&
  3856. !sIsOpen &&
  3857. tool.tool.indexOf(72) != -1
  3858. "
  3859. class="worksBox"
  3860. >
  3861. <div
  3862. class="zuoyeYulan"
  3863. v-if="workStudent[toolIndex].length > 0"
  3864. >
  3865. <span class="worksTitle">作业预览</span>
  3866. </div>
  3867. <div
  3868. class="worksDetailBox"
  3869. v-if="workStudent[toolIndex].length > 0"
  3870. >
  3871. <div
  3872. class="works"
  3873. style="
  3874. width: 200px;
  3875. height: 140px;
  3876. margin: 10px 10px 10px 0;
  3877. box-shadow: 0 0 6px 1px #dfdada;
  3878. "
  3879. v-for="(w, wIndex) in workStudent[toolIndex]"
  3880. :key="wIndex"
  3881. >
  3882. <div class="workImg">
  3883. <!-- <img
  3884. :src="word2"
  3885. @click="downloadFile(w.works)"
  3886. v-if="w.type == 12"
  3887. alt
  3888. /> -->
  3889. <img
  3890. :src="word2"
  3891. @click="
  3892. openCocoFlow(w)
  3893. "
  3894. alt
  3895. />
  3896. <div
  3897. class="answerScore"
  3898. v-if="w.score"
  3899. @click.stop="openScore(w)"
  3900. :class="{
  3901. rightW:
  3902. w.userid == userid || tType == 1 || tType == 4
  3903. }"
  3904. >
  3905. {{ JSON.parse(w.score).wScore }}分
  3906. </div>
  3907. <div
  3908. class="answerScore"
  3909. @click.stop="openScore(w)"
  3910. v-else-if="courseDetail.userid == userid"
  3911. :class="{
  3912. rightW:
  3913. w.userid == userid || tType == 1 || tType == 4
  3914. }"
  3915. >
  3916. 评分
  3917. </div>
  3918. <img
  3919. class="deleteImg"
  3920. src="../assets/deleteworks.png"
  3921. v-if="
  3922. w.userid == userid || tType == 1 || tType == 4
  3923. "
  3924. @click.stop="deleteWorks(w.wid)"
  3925. alt
  3926. />
  3927. </div>
  3928. <div class="worksName">
  3929. <div>{{ w.sName }}</div>
  3930. </div>
  3931. </div>
  3932. </div>
  3933. </div>
  3934. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3935. <div
  3936. class="zuoyeYulan"
  3937. v-if="
  3938. worksStudent.length &&
  3939. worksStudent[toolIndex].length > 0
  3940. "
  3941. >
  3942. <span class="worksTitle">作业预览</span>
  3943. <div
  3944. class="corOpen"
  3945. @click="contract(toolIndex)"
  3946. v-if="
  3947. (isCloseList[toolIndex].isCloseBoolean) &&
  3948. isCloseList[toolIndex].isClose == 0
  3949. "
  3950. >
  3951. 折叠
  3952. </div>
  3953. <div
  3954. class="corOpen"
  3955. @click="contract(toolIndex)"
  3956. v-if="isCloseList[toolIndex].isClose == 1"
  3957. >
  3958. 展开
  3959. </div>
  3960. </div>
  3961. <div
  3962. :id="'tool-' + toolIndex"
  3963. :style="{
  3964. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3965. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3966. }"
  3967. class="worksDetailBox"
  3968. v-if="
  3969. worksStudent.length &&
  3970. worksStudent[toolIndex].length > 0
  3971. "
  3972. >
  3973. <div
  3974. class="works"
  3975. style="
  3976. width: 200px;
  3977. height: 140px;
  3978. margin: 10px 10px 10px 0;
  3979. border-radius: 15px;
  3980. box-shadow: 0 0 6px 1px #dfdada;
  3981. "
  3982. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3983. :key="wIndex"
  3984. :class="w.type == 1 ? 'isTypeOne' : ''"
  3985. >
  3986. <div class="workImg" v-if="w.type == 0">
  3987. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3988. <img
  3989. :src="w.works"
  3990. @click="previewImg(w.works,w)"
  3991. alt
  3992. />
  3993. <div
  3994. class="answerScore"
  3995. v-if="w.score"
  3996. @click.stop="openScore(w)"
  3997. :class="{
  3998. rightW:
  3999. w.userid == userid ||
  4000. tType == 1 ||
  4001. tType == 4 ||
  4002. w.ateacher == userid,
  4003. }"
  4004. >
  4005. {{ JSON.parse(w.score).wScore }}分
  4006. </div>
  4007. <div
  4008. class="answerScore"
  4009. @click.stop="openScore(w)"
  4010. v-else-if="courseDetail.userid == userid"
  4011. :class="{
  4012. rightW:
  4013. w.userid == userid ||
  4014. tType == 1 ||
  4015. tType == 4 ||
  4016. w.ateacher == userid,
  4017. }"
  4018. >
  4019. 评分
  4020. </div>
  4021. <img
  4022. class="deleteImg"
  4023. src="../assets/deleteworks.png"
  4024. v-if="
  4025. w.userid == userid || tType == 1 || tType == 4
  4026. "
  4027. @click.stop="deleteWorks(w.wid)"
  4028. alt
  4029. />
  4030. </div>
  4031. <div
  4032. class="workImg"
  4033. style="cursor: pointer"
  4034. v-if="w.type == 1"
  4035. >
  4036. <img :src="word" @click="openFile(w.works,w)" alt />
  4037. <!-- @click="openFile(w.works)" -->
  4038. <div
  4039. class="answerScore"
  4040. v-if="w.score"
  4041. @click.stop="openScore(w)"
  4042. :class="{
  4043. rightW:
  4044. w.userid == userid ||
  4045. tType == 1 ||
  4046. tType == 4 ||
  4047. w.ateacher == userid,
  4048. }"
  4049. >
  4050. {{ JSON.parse(w.score).wScore }}分
  4051. </div>
  4052. <div
  4053. class="answerScore"
  4054. @click.stop="openScore(w)"
  4055. v-else-if="courseDetail.userid == userid"
  4056. :class="{
  4057. rightW:
  4058. w.userid == userid ||
  4059. tType == 1 ||
  4060. tType == 4 ||
  4061. w.ateacher == userid,
  4062. }"
  4063. >
  4064. 评分
  4065. </div>
  4066. <img
  4067. class="deleteImg"
  4068. src="../assets/deleteworks.png"
  4069. v-if="
  4070. w.userid == userid || tType == 1 || tType == 4
  4071. "
  4072. @click.stop="deleteWorks(w.wid)"
  4073. alt
  4074. />
  4075. </div>
  4076. <div class="workImg" v-if="w.type == 3">
  4077. <img
  4078. style="cursor: pointer"
  4079. :src="video"
  4080. @click="openVideo(w)"
  4081. alt
  4082. />
  4083. <!-- @click="openVideo(w.works)" -->
  4084. <div
  4085. class="answerScore"
  4086. v-if="w.score"
  4087. @click.stop="openScore(w)"
  4088. :class="{
  4089. rightW:
  4090. w.userid == userid ||
  4091. tType == 1 ||
  4092. tType == 4 ||
  4093. w.ateacher == userid,
  4094. }"
  4095. >
  4096. {{ JSON.parse(w.score).wScore }}分
  4097. </div>
  4098. <div
  4099. class="answerScore"
  4100. @click.stop="openScore(w)"
  4101. v-else-if="courseDetail.userid == userid"
  4102. :class="{
  4103. rightW:
  4104. w.userid == userid ||
  4105. tType == 1 ||
  4106. tType == 4 ||
  4107. w.ateacher == userid,
  4108. }"
  4109. >
  4110. 评分
  4111. </div>
  4112. <img
  4113. class="deleteImg"
  4114. src="../assets/deleteworks.png"
  4115. v-if="
  4116. w.userid == userid || tType == 1 || tType == 4
  4117. "
  4118. @click.stop="deleteWorks(w.wid)"
  4119. alt
  4120. />
  4121. </div>
  4122. <div class="comment" style="min-width: 200px">
  4123. <div class="worksName">
  4124. <div
  4125. style="cursor: pointer"
  4126. @click="
  4127. openSname(w.sName, w.wid, toolIndex, w.userid)
  4128. "
  4129. >
  4130. {{ w.sName }}
  4131. </div>
  4132. </div>
  4133. <div class="commentList">
  4134. <div class="commentList">
  4135. <div
  4136. class="commentImg"
  4137. @click="
  4138. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4139. "
  4140. >
  4141. <img
  4142. :src="w.isLikes == true ? likes : noLikes"
  4143. alt=""
  4144. />
  4145. </div>
  4146. <div>{{ w.likesCount }}</div>
  4147. </div>
  4148. <div class="commentList" style="margin-right: 15px">
  4149. <div
  4150. class="commentImg"
  4151. @click="commentOther(w, toolIndex, wIndex)"
  4152. >
  4153. <img
  4154. src="../assets/icon/comment/comment.png"
  4155. alt=""
  4156. />
  4157. </div>
  4158. <div>{{ w.commentCount }}</div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. </div>
  4164. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4165. 未提交
  4166. </div>
  4167. <div
  4168. class="noWorksS"
  4169. v-if="noWorksS && noWorksS[toolIndex].length"
  4170. >
  4171. <div
  4172. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4173. :key="sIndex"
  4174. class="noWorksName"
  4175. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4176. >
  4177. <el-tooltip effect="dark" :content="s.student" placement="top">
  4178. <span>{{ s.student }}</span>
  4179. </el-tooltip>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. <div
  4184. v-if="
  4185. tType &&
  4186. ((tType == 2 && sIsOpen == true) ||
  4187. tType == 1 ||
  4188. tType == 4) &&
  4189. tool.tool.indexOf(4) != -1 &&
  4190. (tool.askJson[0].answer ||
  4191. tool.askJson[0].answer === 0) &&
  4192. checkJson[toolIndex].length
  4193. "
  4194. class="xuan_right_box"
  4195. >
  4196. <div
  4197. class="tool_right_box"
  4198. v-for="(item, index) in tool.askJson"
  4199. :key="index"
  4200. >
  4201. <div style="width: calc(100% - 30px);">
  4202. <el-tooltip
  4203. effect="light"
  4204. :content="index + 1 + '、' + item.askstitle"
  4205. placement="top"
  4206. popper-class="text_tooltip"
  4207. >
  4208. <div
  4209. style="
  4210. width: calc(100% - 130px);
  4211. display: block;
  4212. white-space: nowrap;
  4213. overflow: hidden;
  4214. text-overflow: ellipsis;
  4215. word-break: break-word;
  4216. cursor: pointer;
  4217. "
  4218. >
  4219. {{ index + 1 + "、" + item.askstitle }}
  4220. </div>
  4221. </el-tooltip>
  4222. </div>
  4223. <div class="right_box_xuan">
  4224. <span>正确率</span>
  4225. <span>{{
  4226. (checkJson[toolIndex][index].right
  4227. ? checkJson[toolIndex][index].right
  4228. : 0) + "%"
  4229. }}</span>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. <div
  4234. class="xuan_right_box"
  4235. style="background: unset; padding: 0 10px"
  4236. v-if="
  4237. tType &&
  4238. ((tType == 2 && sIsOpen == true) ||
  4239. tType == 1 ||
  4240. tType == 4) &&
  4241. tool.tool.indexOf(4) != -1
  4242. "
  4243. >
  4244. <AskStatic
  4245. v-if="
  4246. worksStudent.length &&
  4247. worksStudent[toolIndex].length > 0
  4248. "
  4249. :askJSON="tool"
  4250. :checkJson="checkJson[toolIndex]"
  4251. ></AskStatic>
  4252. </div>
  4253. <div
  4254. v-if="
  4255. tType &&
  4256. ((tType == 2 && sIsOpen == true) ||
  4257. tType == 1 ||
  4258. tType == 4) &&
  4259. tool.tool.indexOf(4) != -1
  4260. "
  4261. class="worksBox"
  4262. >
  4263. <div
  4264. class="zuoyeYulan"
  4265. v-if="
  4266. worksStudent.length &&
  4267. worksStudent[toolIndex].length > 0
  4268. "
  4269. >
  4270. <div class="worksTop">
  4271. <div>作业预览</div>
  4272. <div
  4273. class="corOpen"
  4274. @click="contract(toolIndex)"
  4275. v-if="
  4276. (isCloseList[toolIndex].isCloseBoolean) &&
  4277. isCloseList[toolIndex].isClose == 0
  4278. "
  4279. >
  4280. 折叠
  4281. </div>
  4282. <div
  4283. class="corOpen"
  4284. @click="contract(toolIndex)"
  4285. v-if="isCloseList[toolIndex].isClose == 1"
  4286. >
  4287. 展开
  4288. </div>
  4289. </div>
  4290. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4291. </div>
  4292. <div>
  4293. <div
  4294. :id="'tool-' + toolIndex"
  4295. :style="{
  4296. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4297. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4298. }"
  4299. class="worksDetailBox"
  4300. v-if="
  4301. worksStudent.length &&
  4302. worksStudent[toolIndex].length > 0
  4303. "
  4304. >
  4305. <div
  4306. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4307. :key="wIndex"
  4308. class="isWorksName2"
  4309. @click="
  4310. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4311. "
  4312. >
  4313. {{ w.sName }}
  4314. <img
  4315. class="deleteImg deleteImg2"
  4316. src="../assets/deleteworks.png"
  4317. v-if="
  4318. w.userid == userid || tType == 1 || tType == 4
  4319. "
  4320. @click.stop="deleteWorks(w.wid)"
  4321. alt
  4322. />
  4323. </div>
  4324. <!-- <div class="works" style="
  4325. width: 200px;
  4326. height: 140px;
  4327. border-radius: 10px;
  4328. box-shadow: 0 0 6px 1px #dfdada;
  4329. overflow: hidden;
  4330. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4331. <div class="workImg">
  4332. <img src="../assets/icon/works/noImg.png" @click="
  4333. openTools(
  4334. 4,
  4335. toolIndex,
  4336. taskCount,
  4337. w.works,
  4338. w.sName
  4339. )
  4340. " alt />
  4341. </div>
  4342. <div class="worksName">
  4343. <div>{{ w.sName }}</div>
  4344. <div>{{ w.time }}</div>
  4345. </div>
  4346. </div> -->
  4347. </div>
  4348. </div>
  4349. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4350. 未提交
  4351. </div>
  4352. <div
  4353. class="noWorksS"
  4354. v-if="noWorksS && noWorksS[toolIndex].length"
  4355. >
  4356. <div
  4357. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4358. :key="sIndex"
  4359. class="noWorksName"
  4360. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4361. >
  4362. <el-tooltip effect="dark" :content="s.student" placement="top">
  4363. <span>{{ s.student }}</span>
  4364. </el-tooltip>
  4365. </div>
  4366. </div>
  4367. </div>
  4368. <div
  4369. v-if="
  4370. tType &&
  4371. ((tType == 2 && sIsOpen == true) ||
  4372. tType == 1 ||
  4373. tType == 4) &&
  4374. tool.tool.indexOf(45) != -1 &&
  4375. (tool.testJson.testJson[0].answer ||
  4376. tool.testJson.testJson[0].answer === 0) &&
  4377. checkJson[toolIndex].length
  4378. "
  4379. class="xuan_right_box"
  4380. >
  4381. <div
  4382. class="tool_right_box"
  4383. v-for="(item, index) in tool.testJson.testJson"
  4384. :key="index"
  4385. >
  4386. <div class="right_box_xuan" style="margin-right: 10px">
  4387. <span>正确率</span>
  4388. <span>{{
  4389. (checkJson[toolIndex][index].right
  4390. ? checkJson[toolIndex][index].right
  4391. : 0) + "%"
  4392. }}</span>
  4393. </div>
  4394. <div style="width: calc(100% - 30px);">
  4395. <el-tooltip
  4396. effect="light"
  4397. :content="index + 1 + '、' + item.teststitle"
  4398. placement="top"
  4399. popper-class="text_tooltip"
  4400. >
  4401. <div
  4402. style="
  4403. width: calc(100% - 130px);
  4404. display: flex;
  4405. white-space: nowrap;
  4406. overflow: hidden;
  4407. text-overflow: ellipsis;
  4408. word-break: break-word;
  4409. cursor: pointer;
  4410. "
  4411. class="renderedFor"
  4412. >
  4413. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4414. </div>
  4415. </el-tooltip>
  4416. </div>
  4417. </div>
  4418. </div>
  4419. <div
  4420. class="xuan_right_box"
  4421. style="background: unset; padding: 0 10px; width: 91.5%"
  4422. v-if="
  4423. tType &&
  4424. ((tType == 2 && sIsOpen == true) ||
  4425. tType == 1 ||
  4426. tType == 4) &&
  4427. tool.tool.indexOf(45) != -1
  4428. "
  4429. >
  4430. <AskStatic2
  4431. v-if="
  4432. worksStudent.length &&
  4433. worksStudent[toolIndex].length > 0
  4434. "
  4435. :askJSON="tool"
  4436. :checkJson="checkJson[toolIndex]"
  4437. ></AskStatic2>
  4438. </div>
  4439. <div
  4440. v-if="
  4441. tType &&
  4442. ((tType == 2 && sIsOpen == true) ||
  4443. tType == 1 ||
  4444. tType == 4) &&
  4445. tool.tool.indexOf(45) != -1
  4446. "
  4447. class="worksBox"
  4448. >
  4449. <div
  4450. class="zuoyeYulan"
  4451. v-if="
  4452. worksStudent.length &&
  4453. worksStudent[toolIndex].length > 0
  4454. "
  4455. >
  4456. <div class="worksTop">
  4457. <div>作业预览</div>
  4458. <div
  4459. class="corOpen"
  4460. @click="contract(toolIndex)"
  4461. v-if="
  4462. (isCloseList[toolIndex].isCloseBoolean) &&
  4463. isCloseList[toolIndex].isClose == 0
  4464. "
  4465. >
  4466. 折叠
  4467. </div>
  4468. <div
  4469. class="corOpen"
  4470. @click="contract(toolIndex)"
  4471. v-if="isCloseList[toolIndex].isClose == 1"
  4472. >
  4473. 展开
  4474. </div>
  4475. </div>
  4476. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4477. </div>
  4478. <div>
  4479. <div
  4480. :id="'tool-' + toolIndex"
  4481. :style="{
  4482. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4483. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4484. }"
  4485. class="worksDetailBox"
  4486. v-if="
  4487. worksStudent.length &&
  4488. worksStudent[toolIndex].length > 0
  4489. "
  4490. >
  4491. <div
  4492. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4493. :key="wIndex"
  4494. class="isWorksName2"
  4495. @click="
  4496. openTools(
  4497. 45,
  4498. toolIndex,
  4499. taskCount,
  4500. w.works,
  4501. w.sName
  4502. )
  4503. "
  4504. >
  4505. {{ w.sName }}
  4506. <img
  4507. class="deleteImg deleteImg2"
  4508. src="../assets/deleteworks.png"
  4509. v-if="
  4510. w.userid == userid || tType == 1 || tType == 4
  4511. "
  4512. @click.stop="deleteWorks(w.wid)"
  4513. alt
  4514. />
  4515. </div>
  4516. </div>
  4517. </div>
  4518. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4519. 未提交
  4520. </div>
  4521. <div
  4522. class="noWorksS"
  4523. v-if="noWorksS && noWorksS[toolIndex].length"
  4524. >
  4525. <div
  4526. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4527. :key="sIndex"
  4528. class="noWorksName"
  4529. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4530. >
  4531. <el-tooltip effect="dark" :content="s.student" placement="top">
  4532. <span>{{ s.student }}</span>
  4533. </el-tooltip>
  4534. </div>
  4535. </div>
  4536. </div>
  4537. <div
  4538. v-if="
  4539. tType &&
  4540. ((tType == 2 && sIsOpen == true) ||
  4541. tType == 1 ||
  4542. tType == 4) &&
  4543. tool.tool.indexOf(69) != -1
  4544. "
  4545. class="worksBox"
  4546. >
  4547. <div
  4548. class="zuoyeYulan"
  4549. v-if="
  4550. worksStudent.length &&
  4551. worksStudent[toolIndex].length > 0
  4552. "
  4553. >
  4554. <div class="worksTop">
  4555. <div>作业预览</div>
  4556. <div
  4557. class="corOpen"
  4558. @click="contract(toolIndex)"
  4559. v-if="
  4560. (isCloseList[toolIndex].isCloseBoolean) &&
  4561. isCloseList[toolIndex].isClose == 0
  4562. "
  4563. >
  4564. 折叠
  4565. </div>
  4566. <div
  4567. class="corOpen"
  4568. @click="contract(toolIndex)"
  4569. v-if="isCloseList[toolIndex].isClose == 1"
  4570. >
  4571. 展开
  4572. </div>
  4573. </div>
  4574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4575. </div>
  4576. <div>
  4577. <div
  4578. :id="'tool-' + toolIndex"
  4579. :style="{
  4580. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4581. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4582. }"
  4583. class="worksDetailBox"
  4584. v-if="
  4585. worksStudent.length &&
  4586. worksStudent[toolIndex].length > 0
  4587. "
  4588. >
  4589. <div
  4590. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4591. :key="wIndex"
  4592. class="isWorksName2"
  4593. style="width: 160px;height: 65px;line-height: 65px;"
  4594. @click="
  4595. openTools(
  4596. 69,
  4597. toolIndex,
  4598. taskCount,
  4599. w.works,
  4600. w.sName,
  4601. w.wid
  4602. )
  4603. "
  4604. >
  4605. {{ w.sName }}
  4606. <img
  4607. class="deleteImg1"
  4608. src="../assets/evaEnglish.png"
  4609. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4610. alt
  4611. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4612. />
  4613. <img
  4614. class="deleteImg deleteImg2"
  4615. src="../assets/deleteworks.png"
  4616. v-if="
  4617. w.userid == userid || tType == 1 || tType == 4
  4618. "
  4619. @click.stop="deleteWorks(w.wid)"
  4620. alt
  4621. />
  4622. </div>
  4623. </div>
  4624. </div>
  4625. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4626. 未提交
  4627. </div>
  4628. <div
  4629. class="noWorksS"
  4630. v-if="noWorksS && noWorksS[toolIndex].length"
  4631. >
  4632. <div
  4633. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4634. :key="sIndex"
  4635. class="noWorksName"
  4636. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4637. >
  4638. <el-tooltip effect="dark" :content="s.student" placement="top">
  4639. <span>{{ s.student }}</span>
  4640. </el-tooltip>
  4641. </div>
  4642. </div>
  4643. </div>
  4644. <div
  4645. v-if="
  4646. tType &&
  4647. ((tType == 2 && sIsOpen == true) ||
  4648. tType == 1 ||
  4649. tType == 4) &&
  4650. tool.tool.indexOf(15) != -1
  4651. "
  4652. class="worksBox"
  4653. >
  4654. <div
  4655. class="zuoyeYulan"
  4656. v-if="
  4657. (worksStudent.length &&
  4658. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4659. "
  4660. >
  4661. <div class="worksTop">
  4662. <div>作业预览</div>
  4663. <div
  4664. class="corOpen"
  4665. @click="contract(toolIndex)"
  4666. v-if="
  4667. (isCloseList[toolIndex].isCloseBoolean) &&
  4668. isCloseList[toolIndex].isClose == 0
  4669. "
  4670. >
  4671. 折叠
  4672. </div>
  4673. <div
  4674. class="corOpen"
  4675. @click="contract(toolIndex)"
  4676. v-if="isCloseList[toolIndex].isClose == 1"
  4677. >
  4678. 展开
  4679. </div>
  4680. </div>
  4681. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4682. </div>
  4683. <div
  4684. class="group_workBox"
  4685. v-for="(g, gindex) in courseGroup.group"
  4686. :key="gindex"
  4687. >
  4688. <div class="group_box">
  4689. <div class="group_title">
  4690. <el-tooltip
  4691. class="item"
  4692. effect="light"
  4693. :content="g.name"
  4694. placement="top"
  4695. >
  4696. <div class="group_name">{{ g.name }}</div>
  4697. </el-tooltip>
  4698. </div>
  4699. <div
  4700. class="group_work"
  4701. v-if="
  4702. g.works &&
  4703. g.works.length &&
  4704. g.works[toolIndex].length
  4705. "
  4706. >
  4707. <div
  4708. class="works"
  4709. v-for="(w, wIndex) in g.works[toolIndex]"
  4710. :key="wIndex"
  4711. >
  4712. <div
  4713. class="workImg"
  4714. style="
  4715. border-radius: 15px;
  4716. box-shadow: 0px 0px 5px 5px #eee;
  4717. "
  4718. >
  4719. <div
  4720. class="answerBg"
  4721. style="border-radius: 15px 15px 0 0"
  4722. @click="
  4723. commentOther(w, toolIndex, wIndex, null, g.id)
  4724. "
  4725. >
  4726. <div class="answerContent">
  4727. {{ JSON.parse(w.works)[0].answer }}
  4728. </div>
  4729. <div
  4730. class="answerScore"
  4731. v-if="w.score"
  4732. @click.stop="openScore(w)"
  4733. :class="{
  4734. rightW:
  4735. w.userid == userid ||
  4736. tType == 1 ||
  4737. tType == 4,
  4738. }"
  4739. >
  4740. {{ JSON.parse(w.score).wScore }}分
  4741. </div>
  4742. <div
  4743. class="answerScore"
  4744. @click.stop="openScore(w)"
  4745. v-else-if="courseDetail.userid == userid"
  4746. :class="{
  4747. rightW:
  4748. w.userid == userid ||
  4749. tType == 1 ||
  4750. tType == 4,
  4751. }"
  4752. >
  4753. 评分
  4754. </div>
  4755. <img
  4756. class="deleteImg"
  4757. src="../assets/deleteworks.png"
  4758. v-if="
  4759. w.userid == userid ||
  4760. tType == 1 ||
  4761. tType == 4
  4762. "
  4763. @click.stop="deleteWorks(w.wid)"
  4764. alt
  4765. />
  4766. </div>
  4767. <div class="comment">
  4768. <div class="worksName">
  4769. <div>{{ w.sName }}</div>
  4770. </div>
  4771. <div class="commentList">
  4772. <div
  4773. class="commentImg"
  4774. @click="
  4775. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4776. "
  4777. >
  4778. <img
  4779. :src="w.isLikes == true ? likes : noLikes"
  4780. alt=""
  4781. />
  4782. </div>
  4783. <div>{{ w.likesCount }}</div>
  4784. </div>
  4785. <div
  4786. class="commentList"
  4787. style="margin-right: 15px"
  4788. >
  4789. <div
  4790. class="commentImg"
  4791. @click="
  4792. commentOther(
  4793. w,
  4794. toolIndex,
  4795. wIndex,
  4796. null,
  4797. g.id
  4798. )
  4799. "
  4800. >
  4801. <img
  4802. src="../assets/icon/comment/comment.png"
  4803. alt=""
  4804. />
  4805. </div>
  4806. <div>{{ w.commentCount }}</div>
  4807. </div>
  4808. </div>
  4809. </div>
  4810. </div>
  4811. </div>
  4812. <div class="group_work" v-else>暂无提交作业</div>
  4813. </div>
  4814. </div>
  4815. <div
  4816. :id="'tool-' + toolIndex"
  4817. :style="{
  4818. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4819. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4820. }"
  4821. class="worksDetailBox"
  4822. v-if="
  4823. worksStudent.length &&
  4824. worksStudent[toolIndex].length > 0
  4825. "
  4826. >
  4827. <div
  4828. class="works"
  4829. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4830. :key="wIndex"
  4831. >
  4832. <div
  4833. class="workImg"
  4834. style="
  4835. border-radius: 15px;
  4836. box-shadow: 0px 0px 5px 5px #eee;
  4837. "
  4838. >
  4839. <!-- <img
  4840. src="../assets/icon/works/noImg.png"
  4841. @click="openTools(15, toolIndex, taskCount, w.works)"
  4842. alt=""
  4843. />-->
  4844. <div
  4845. class="answerBg"
  4846. style="border-radius: 15px 15px 0 0"
  4847. @click="commentOther(w, toolIndex, wIndex)"
  4848. >
  4849. <!-- <div>{{ w.sName }}</div> -->
  4850. <div class="answerContent">
  4851. {{ JSON.parse(w.works)[0].answer }}
  4852. </div>
  4853. <div
  4854. class="answerScore"
  4855. v-if="w.score"
  4856. @click.stop="openScore(w)"
  4857. :class="{
  4858. rightW:
  4859. w.userid == userid ||
  4860. tType == 1 ||
  4861. tType == 4,
  4862. }"
  4863. >
  4864. {{ JSON.parse(w.score).wScore }}分
  4865. </div>
  4866. <div
  4867. class="answerScore"
  4868. @click.stop="openScore(w)"
  4869. v-else-if="courseDetail.userid == userid"
  4870. :class="{
  4871. rightW:
  4872. w.userid == userid ||
  4873. tType == 1 ||
  4874. tType == 4,
  4875. }"
  4876. >
  4877. 评分
  4878. </div>
  4879. <img
  4880. class="deleteImg"
  4881. src="../assets/deleteworks.png"
  4882. v-if="
  4883. w.userid == userid || tType == 1 || tType == 4
  4884. "
  4885. @click.stop="deleteWorks(w.wid)"
  4886. alt
  4887. />
  4888. </div>
  4889. <div class="comment">
  4890. <div class="worksName">
  4891. <div>{{ w.sName }}</div>
  4892. </div>
  4893. <div class="commentList">
  4894. <div
  4895. class="commentImg"
  4896. @click="
  4897. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4898. "
  4899. >
  4900. <img
  4901. :src="w.isLikes == true ? likes : noLikes"
  4902. alt=""
  4903. />
  4904. </div>
  4905. <div>{{ w.likesCount }}</div>
  4906. </div>
  4907. <div class="commentList" style="margin-right: 15px">
  4908. <div
  4909. class="commentImg"
  4910. @click="commentOther(w, toolIndex, wIndex)"
  4911. >
  4912. <img
  4913. src="../assets/icon/comment/comment.png"
  4914. alt=""
  4915. />
  4916. </div>
  4917. <div>{{ w.commentCount }}</div>
  4918. </div>
  4919. </div>
  4920. </div>
  4921. </div>
  4922. </div>
  4923. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4924. 未提交
  4925. </div>
  4926. <div
  4927. class="noWorksS"
  4928. v-if="noWorksS && noWorksS[toolIndex].length"
  4929. >
  4930. <div
  4931. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4932. :key="sIndex"
  4933. class="noWorksName"
  4934. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4935. >
  4936. <el-tooltip effect="dark" :content="s.student" placement="top">
  4937. <span>{{ s.student }}</span>
  4938. </el-tooltip>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. <div
  4943. v-if="
  4944. tType &&
  4945. ((tType == 2 && sIsOpen == true) ||
  4946. tType == 1 ||
  4947. tType == 4) &&
  4948. tool.tool.indexOf(1) != -1
  4949. "
  4950. class="worksBox"
  4951. >
  4952. <div
  4953. class="zuoyeYulan"
  4954. v-if="
  4955. (worksStudent.length &&
  4956. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4957. "
  4958. >
  4959. <div class="worksTop">
  4960. <div>作业预览</div>
  4961. <div
  4962. class="corOpen"
  4963. @click="contract(toolIndex)"
  4964. v-if="
  4965. (isCloseList[toolIndex].isCloseBoolean) &&
  4966. isCloseList[toolIndex].isClose == 0
  4967. "
  4968. >
  4969. 折叠
  4970. </div>
  4971. <div
  4972. class="corOpen"
  4973. @click="contract(toolIndex)"
  4974. v-if="isCloseList[toolIndex].isClose == 1"
  4975. >
  4976. 展开
  4977. </div>
  4978. </div>
  4979. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4980. </div>
  4981. <div
  4982. class="group_workBox"
  4983. v-for="(g, gindex) in courseGroup.group"
  4984. :key="gindex"
  4985. >
  4986. <div class="group_box">
  4987. <div class="group_title">
  4988. <el-tooltip
  4989. class="item"
  4990. effect="light"
  4991. :content="g.name"
  4992. placement="top"
  4993. >
  4994. <div class="group_name">{{ g.name }}</div>
  4995. </el-tooltip>
  4996. </div>
  4997. <div
  4998. class="group_work"
  4999. v-if="
  5000. g.works &&
  5001. g.works.length &&
  5002. g.works[toolIndex].length
  5003. "
  5004. >
  5005. <div
  5006. class="works"
  5007. style="
  5008. width: 200px;
  5009. height: 140px;
  5010. margin: 10px 10px 10px 0;
  5011. border-radius: 15px;
  5012. box-shadow: 0 0 6px 1px #dfdada;
  5013. "
  5014. v-for="(w, wIndex) in g.works[toolIndex]"
  5015. :key="wIndex"
  5016. :class="w.type == 1 ? 'isTypeOne' : ''"
  5017. >
  5018. <div class="workImg">
  5019. <img
  5020. :src="w.works"
  5021. @click="previewImg(w.works,w)"
  5022. alt
  5023. />
  5024. <div
  5025. class="answerScore"
  5026. v-if="w.score"
  5027. @click.stop="openScore(w)"
  5028. :class="{
  5029. rightW:
  5030. w.userid == userid ||
  5031. tType == 1 ||
  5032. tType == 4,
  5033. }"
  5034. >
  5035. {{ JSON.parse(w.score).wScore }}分
  5036. </div>
  5037. <div
  5038. class="answerScore"
  5039. @click.stop="openScore(w)"
  5040. v-else-if="courseDetail.userid == userid"
  5041. :class="{
  5042. rightW:
  5043. w.userid == userid ||
  5044. tType == 1 ||
  5045. tType == 4,
  5046. }"
  5047. >
  5048. 评分
  5049. </div>
  5050. <img
  5051. class="deleteImg"
  5052. src="../assets/deleteworks.png"
  5053. v-if="
  5054. w.userid == userid || tType == 1 || tType == 4
  5055. "
  5056. @click.stop="deleteWorks(w.wid)"
  5057. alt
  5058. />
  5059. </div>
  5060. <div class="comment" style="min-width: 200px">
  5061. <div class="worksName">
  5062. <div>{{ w.sName }}</div>
  5063. </div>
  5064. <div class="commentList">
  5065. <div class="commentList">
  5066. <div
  5067. class="commentImg"
  5068. @click="
  5069. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5070. "
  5071. >
  5072. <img
  5073. :src="w.isLikes == true ? likes : noLikes"
  5074. alt=""
  5075. />
  5076. </div>
  5077. <div>{{ w.likesCount }}</div>
  5078. </div>
  5079. <div
  5080. class="commentList"
  5081. style="margin-right: 15px"
  5082. >
  5083. <div
  5084. class="commentImg"
  5085. @click="
  5086. commentOther(
  5087. w,
  5088. toolIndex,
  5089. wIndex,
  5090. null,
  5091. g.id
  5092. )
  5093. "
  5094. >
  5095. <img
  5096. src="../assets/icon/comment/comment.png"
  5097. alt=""
  5098. />
  5099. </div>
  5100. <div>{{ w.commentCount }}</div>
  5101. </div>
  5102. </div>
  5103. </div>
  5104. </div>
  5105. </div>
  5106. <div class="group_work" v-else>暂无提交作业</div>
  5107. </div>
  5108. </div>
  5109. <div
  5110. :id="'tool-' + toolIndex"
  5111. :style="{
  5112. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5113. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5114. }"
  5115. class="worksDetailBox"
  5116. v-if="
  5117. worksStudent.length &&
  5118. worksStudent[toolIndex].length > 0
  5119. "
  5120. >
  5121. <div
  5122. class="works"
  5123. style="
  5124. width: 200px;
  5125. height: 140px;
  5126. margin: 10px 10px 10px 0;
  5127. border-radius: 15px;
  5128. box-shadow: 0 0 6px 1px #dfdada;
  5129. "
  5130. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5131. :key="wIndex"
  5132. >
  5133. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5134. <div class="workImg">
  5135. <img
  5136. :src="w.works"
  5137. @click="previewImg(w.works,w)"
  5138. alt
  5139. />
  5140. <div
  5141. class="answerScore"
  5142. v-if="w.score"
  5143. @click.stop="openScore(w)"
  5144. :class="{
  5145. rightW:
  5146. w.userid == userid || tType == 1 || tType == 4,
  5147. }"
  5148. >
  5149. {{ JSON.parse(w.score).wScore }}分
  5150. </div>
  5151. <div
  5152. class="answerScore"
  5153. @click.stop="openScore(w)"
  5154. v-else-if="courseDetail.userid == userid"
  5155. :class="{
  5156. rightW:
  5157. w.userid == userid || tType == 1 || tType == 4,
  5158. }"
  5159. >
  5160. 评分
  5161. </div>
  5162. <img
  5163. class="deleteImg"
  5164. src="../assets/deleteworks.png"
  5165. v-if="
  5166. w.userid == userid || tType == 1 || tType == 4
  5167. "
  5168. @click.stop="deleteWorks(w.wid)"
  5169. alt
  5170. />
  5171. </div>
  5172. <div class="comment" style="min-width: 200px">
  5173. <div class="worksName">
  5174. <div>{{ w.sName }}</div>
  5175. </div>
  5176. <div class="commentList">
  5177. <div class="commentList">
  5178. <div
  5179. class="commentImg"
  5180. @click="
  5181. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5182. "
  5183. >
  5184. <img
  5185. :src="w.isLikes == true ? likes : noLikes"
  5186. alt=""
  5187. />
  5188. </div>
  5189. <div>{{ w.likesCount }}</div>
  5190. </div>
  5191. <div class="commentList" style="margin-right: 15px">
  5192. <div
  5193. class="commentImg"
  5194. @click="commentOther(w, toolIndex, wIndex)"
  5195. >
  5196. <img
  5197. src="../assets/icon/comment/comment.png"
  5198. alt=""
  5199. />
  5200. </div>
  5201. <div>{{ w.commentCount }}</div>
  5202. </div>
  5203. </div>
  5204. </div>
  5205. </div>
  5206. </div>
  5207. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5208. 未提交
  5209. </div>
  5210. <div
  5211. class="noWorksS"
  5212. v-if="noWorksS && noWorksS[toolIndex].length"
  5213. >
  5214. <div
  5215. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5216. :key="sIndex"
  5217. class="noWorksName"
  5218. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5219. >
  5220. <el-tooltip effect="dark" :content="s.student" placement="top">
  5221. <span>{{ s.student }}</span>
  5222. </el-tooltip>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. <div
  5227. v-if="
  5228. tType &&
  5229. ((tType == 2 && sIsOpen == true) ||
  5230. tType == 1 ||
  5231. tType == 4) &&
  5232. tool.tool.indexOf(3) != -1
  5233. "
  5234. class="worksBox"
  5235. >
  5236. <div
  5237. class="zuoyeYulan"
  5238. v-if="
  5239. (worksStudent.length &&
  5240. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5241. "
  5242. >
  5243. <div class="worksTop">
  5244. <div>作业预览</div>
  5245. <div
  5246. class="corOpen"
  5247. @click="contract(toolIndex)"
  5248. v-if="
  5249. (isCloseList[toolIndex].isCloseBoolean) &&
  5250. isCloseList[toolIndex].isClose == 0
  5251. "
  5252. >
  5253. 折叠
  5254. </div>
  5255. <div
  5256. class="corOpen"
  5257. @click="contract(toolIndex)"
  5258. v-if="isCloseList[toolIndex].isClose == 1"
  5259. >
  5260. 展开
  5261. </div>
  5262. </div>
  5263. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5264. </div>
  5265. <div
  5266. class="group_workBox"
  5267. v-for="(g, gindex) in courseGroup.group"
  5268. :key="gindex"
  5269. >
  5270. <div class="group_box">
  5271. <div class="group_title">
  5272. <el-tooltip
  5273. class="item"
  5274. effect="light"
  5275. :content="g.name"
  5276. placement="top"
  5277. >
  5278. <div class="group_name">{{ g.name }}</div>
  5279. </el-tooltip>
  5280. </div>
  5281. <div
  5282. class="group_work"
  5283. v-if="
  5284. g.works &&
  5285. g.works.length &&
  5286. g.works[toolIndex].length
  5287. "
  5288. >
  5289. <div
  5290. class="works"
  5291. style="
  5292. width: 200px;
  5293. height: 140px;
  5294. margin: 10px 10px 10px 0;
  5295. border-radius: 15px;
  5296. box-shadow: 0 0 6px 1px #dfdada;
  5297. "
  5298. v-for="(w, wIndex) in g.works[toolIndex]"
  5299. :key="wIndex"
  5300. :class="w.type == 1 ? 'isTypeOne' : ''"
  5301. >
  5302. <div class="workImg">
  5303. <img
  5304. :src="w.works"
  5305. @click="previewImg(w.works,w)"
  5306. alt
  5307. />
  5308. <div
  5309. class="answerScore"
  5310. v-if="w.score"
  5311. @click.stop="openScore(w)"
  5312. :class="{
  5313. rightW:
  5314. w.userid == userid ||
  5315. tType == 1 ||
  5316. tType == 4,
  5317. }"
  5318. >
  5319. {{ JSON.parse(w.score).wScore }}分
  5320. </div>
  5321. <div
  5322. class="answerScore"
  5323. @click.stop="openScore(w)"
  5324. v-else-if="courseDetail.userid == userid"
  5325. :class="{
  5326. rightW:
  5327. w.userid == userid ||
  5328. tType == 1 ||
  5329. tType == 4,
  5330. }"
  5331. >
  5332. 评分
  5333. </div>
  5334. <img
  5335. class="deleteImg"
  5336. src="../assets/deleteworks.png"
  5337. v-if="
  5338. w.userid == userid || tType == 1 || tType == 4
  5339. "
  5340. @click.stop="deleteWorks(w.wid)"
  5341. alt
  5342. />
  5343. </div>
  5344. <div class="comment" style="min-width: 200px">
  5345. <div class="worksName">
  5346. <div>{{ w.sName }}</div>
  5347. </div>
  5348. <div class="commentList">
  5349. <div class="commentList">
  5350. <div
  5351. class="commentImg"
  5352. @click="
  5353. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5354. "
  5355. >
  5356. <img
  5357. :src="w.isLikes == true ? likes : noLikes"
  5358. alt=""
  5359. />
  5360. </div>
  5361. <div>{{ w.likesCount }}</div>
  5362. </div>
  5363. <div
  5364. class="commentList"
  5365. style="margin-right: 15px"
  5366. >
  5367. <div
  5368. class="commentImg"
  5369. @click="
  5370. commentOther(
  5371. w,
  5372. toolIndex,
  5373. wIndex,
  5374. null,
  5375. g.id
  5376. )
  5377. "
  5378. >
  5379. <img
  5380. src="../assets/icon/comment/comment.png"
  5381. alt=""
  5382. />
  5383. </div>
  5384. <div>{{ w.commentCount }}</div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. </div>
  5389. </div>
  5390. <div class="group_work" v-else>暂无提交作业</div>
  5391. </div>
  5392. </div>
  5393. <div
  5394. :id="'tool-' + toolIndex"
  5395. :style="{
  5396. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5397. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5398. }"
  5399. class="worksDetailBox"
  5400. v-if="
  5401. worksStudent.length &&
  5402. worksStudent[toolIndex].length > 0
  5403. "
  5404. >
  5405. <div
  5406. class="works"
  5407. style="
  5408. width: 200px;
  5409. height: 140px;
  5410. margin: 10px 10px 10px 0;
  5411. border-radius: 15px;
  5412. box-shadow: 0 0 6px 1px #dfdada;
  5413. "
  5414. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5415. :key="wIndex"
  5416. >
  5417. <!-- @click="previewImg(w.works)" -->
  5418. <div class="workImg">
  5419. <img
  5420. :src="w.works"
  5421. @click="previewImg(w.works,w)"
  5422. alt
  5423. />
  5424. <div
  5425. class="answerScore"
  5426. v-if="w.score"
  5427. @click.stop="openScore(w)"
  5428. :class="{
  5429. rightW:
  5430. w.userid == userid || tType == 1 || tType == 4,
  5431. }"
  5432. >
  5433. {{ JSON.parse(w.score).wScore }}分
  5434. </div>
  5435. <div
  5436. class="answerScore"
  5437. @click.stop="openScore(w)"
  5438. v-else-if="courseDetail.userid == userid"
  5439. :class="{
  5440. rightW:
  5441. w.userid == userid || tType == 1 || tType == 4,
  5442. }"
  5443. >
  5444. 评分
  5445. </div>
  5446. <img
  5447. class="deleteImg"
  5448. src="../assets/deleteworks.png"
  5449. v-if="
  5450. w.userid == userid || tType == 1 || tType == 4
  5451. "
  5452. @click.stop="deleteWorks(w.wid)"
  5453. alt
  5454. />
  5455. </div>
  5456. <div class="comment" style="min-width: 200px">
  5457. <div class="worksName">
  5458. <div>{{ w.sName }}</div>
  5459. </div>
  5460. <div class="commentList">
  5461. <div class="commentList">
  5462. <div
  5463. class="commentImg"
  5464. @click="
  5465. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5466. "
  5467. >
  5468. <img
  5469. :src="w.isLikes == true ? likes : noLikes"
  5470. alt=""
  5471. />
  5472. </div>
  5473. <div>{{ w.likesCount }}</div>
  5474. </div>
  5475. <div class="commentList" style="margin-right: 15px">
  5476. <div
  5477. class="commentImg"
  5478. @click="commentOther(w, toolIndex, wIndex)"
  5479. >
  5480. <img
  5481. src="../assets/icon/comment/comment.png"
  5482. alt=""
  5483. />
  5484. </div>
  5485. <div>{{ w.commentCount }}</div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. </div>
  5490. </div>
  5491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5492. 未提交
  5493. </div>
  5494. <div
  5495. class="noWorksS"
  5496. v-if="noWorksS && noWorksS[toolIndex].length"
  5497. >
  5498. <div
  5499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5500. :key="sIndex"
  5501. class="noWorksName"
  5502. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5503. >
  5504. <el-tooltip effect="dark" :content="s.student" placement="top">
  5505. <span>{{ s.student }}</span>
  5506. </el-tooltip>
  5507. </div>
  5508. </div>
  5509. </div>
  5510. <div
  5511. v-if="
  5512. tType &&
  5513. ((tType == 2 && sIsOpen == true) ||
  5514. tType == 1 ||
  5515. tType == 4) &&
  5516. tool.tool.indexOf(6) != -1
  5517. "
  5518. class="worksBox"
  5519. >
  5520. <div
  5521. class="zuoyeYulan"
  5522. v-if="
  5523. (worksStudent.length &&
  5524. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5525. "
  5526. >
  5527. <div class="worksTop">
  5528. <div>作业预览</div>
  5529. <div
  5530. class="corOpen"
  5531. @click="contract(toolIndex)"
  5532. v-if="
  5533. (isCloseList[toolIndex].isCloseBoolean) &&
  5534. isCloseList[toolIndex].isClose == 0
  5535. "
  5536. >
  5537. 折叠
  5538. </div>
  5539. <div
  5540. class="corOpen"
  5541. @click="contract(toolIndex)"
  5542. v-if="isCloseList[toolIndex].isClose == 1"
  5543. >
  5544. 展开
  5545. </div>
  5546. </div>
  5547. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5548. </div>
  5549. <div
  5550. class="group_workBox"
  5551. v-for="(g, gindex) in courseGroup.group"
  5552. :key="gindex"
  5553. >
  5554. <div class="group_box">
  5555. <div class="group_title">
  5556. <el-tooltip
  5557. class="item"
  5558. effect="light"
  5559. :content="g.name"
  5560. placement="top"
  5561. >
  5562. <div class="group_name">{{ g.name }}</div>
  5563. </el-tooltip>
  5564. </div>
  5565. <div
  5566. class="group_work"
  5567. v-if="
  5568. g.works &&
  5569. g.works.length &&
  5570. g.works[toolIndex].length
  5571. "
  5572. >
  5573. <div
  5574. class="works"
  5575. style="
  5576. width: 200px;
  5577. height: 140px;
  5578. margin: 10px 10px 10px 0;
  5579. border-radius: 15px;
  5580. box-shadow: 0 0 6px 1px #dfdada;
  5581. "
  5582. v-for="(w, wIndex) in g.works[toolIndex]"
  5583. :key="wIndex"
  5584. :class="w.type == 1 ? 'isTypeOne' : ''"
  5585. >
  5586. <div class="workImg">
  5587. <img
  5588. :src="w.works"
  5589. @click="previewImg(w.works,w)"
  5590. alt
  5591. />
  5592. <div
  5593. class="answerScore"
  5594. v-if="w.score"
  5595. @click.stop="openScore(w)"
  5596. :class="{
  5597. rightW:
  5598. w.userid == userid ||
  5599. tType == 1 ||
  5600. tType == 4,
  5601. }"
  5602. >
  5603. {{ JSON.parse(w.score).wScore }}分
  5604. </div>
  5605. <div
  5606. class="answerScore"
  5607. @click.stop="openScore(w)"
  5608. v-else-if="courseDetail.userid == userid"
  5609. :class="{
  5610. rightW:
  5611. w.userid == userid ||
  5612. tType == 1 ||
  5613. tType == 4,
  5614. }"
  5615. >
  5616. 评分
  5617. </div>
  5618. <img
  5619. class="deleteImg"
  5620. src="../assets/deleteworks.png"
  5621. v-if="
  5622. w.userid == userid || tType == 1 || tType == 4
  5623. "
  5624. @click.stop="deleteWorks(w.wid)"
  5625. alt
  5626. />
  5627. </div>
  5628. <div class="comment" style="min-width: 200px">
  5629. <div class="worksName">
  5630. <div>{{ w.sName }}</div>
  5631. </div>
  5632. <div class="commentList">
  5633. <div class="commentList">
  5634. <div
  5635. class="commentImg"
  5636. @click="
  5637. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5638. "
  5639. >
  5640. <img
  5641. :src="w.isLikes == true ? likes : noLikes"
  5642. alt=""
  5643. />
  5644. </div>
  5645. <div>{{ w.likesCount }}</div>
  5646. </div>
  5647. <div
  5648. class="commentList"
  5649. style="margin-right: 15px"
  5650. >
  5651. <div
  5652. class="commentImg"
  5653. @click="
  5654. commentOther(
  5655. w,
  5656. toolIndex,
  5657. wIndex,
  5658. null,
  5659. g.id
  5660. )
  5661. "
  5662. >
  5663. <img
  5664. src="../assets/icon/comment/comment.png"
  5665. alt=""
  5666. />
  5667. </div>
  5668. <div>{{ w.commentCount }}</div>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. </div>
  5673. </div>
  5674. <div class="group_work" v-else>暂无提交作业</div>
  5675. </div>
  5676. </div>
  5677. <div
  5678. :id="'tool-' + toolIndex"
  5679. :style="{
  5680. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5681. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5682. }"
  5683. class="worksDetailBox"
  5684. v-if="
  5685. worksStudent.length &&
  5686. worksStudent[toolIndex].length > 0
  5687. "
  5688. >
  5689. <div
  5690. class="works"
  5691. style="
  5692. width: 200px;
  5693. height: 140px;
  5694. margin: 10px 10px 10px 0;
  5695. border-radius: 15px;
  5696. box-shadow: 0 0 6px 1px #dfdada;
  5697. "
  5698. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5699. :key="wIndex"
  5700. >
  5701. <!-- @click="previewImg(w.works)" -->
  5702. <div class="workImg">
  5703. <img
  5704. :src="w.works"
  5705. @click="previewImg(w.works,w)"
  5706. alt
  5707. />
  5708. <div
  5709. class="answerScore"
  5710. v-if="w.score"
  5711. @click.stop="openScore(w)"
  5712. :class="{
  5713. rightW:
  5714. w.userid == userid || tType == 1 || tType == 4,
  5715. }"
  5716. >
  5717. {{ JSON.parse(w.score).wScore }}分
  5718. </div>
  5719. <div
  5720. class="answerScore"
  5721. @click.stop="openScore(w)"
  5722. v-else-if="courseDetail.userid == userid"
  5723. :class="{
  5724. rightW:
  5725. w.userid == userid || tType == 1 || tType == 4,
  5726. }"
  5727. >
  5728. 评分
  5729. </div>
  5730. <img
  5731. class="deleteImg"
  5732. src="../assets/deleteworks.png"
  5733. v-if="
  5734. w.userid == userid || tType == 1 || tType == 4
  5735. "
  5736. @click.stop="deleteWorks(w.wid)"
  5737. alt
  5738. />
  5739. </div>
  5740. <div class="comment" style="min-width: 200px">
  5741. <div class="worksName">
  5742. <div>{{ w.sName }}</div>
  5743. </div>
  5744. <div class="commentList">
  5745. <div class="commentList">
  5746. <div
  5747. class="commentImg"
  5748. @click="
  5749. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5750. "
  5751. >
  5752. <img
  5753. :src="w.isLikes == true ? likes : noLikes"
  5754. alt=""
  5755. />
  5756. </div>
  5757. <div>{{ w.likesCount }}</div>
  5758. </div>
  5759. <div class="commentList" style="margin-right: 15px">
  5760. <div
  5761. class="commentImg"
  5762. @click="commentOther(w, toolIndex, wIndex)"
  5763. >
  5764. <img
  5765. src="../assets/icon/comment/comment.png"
  5766. alt=""
  5767. />
  5768. </div>
  5769. <div>{{ w.commentCount }}</div>
  5770. </div>
  5771. </div>
  5772. </div>
  5773. </div>
  5774. </div>
  5775. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5776. 未提交
  5777. </div>
  5778. <div
  5779. class="noWorksS"
  5780. v-if="noWorksS && noWorksS[toolIndex].length"
  5781. >
  5782. <div
  5783. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5784. :key="sIndex"
  5785. class="noWorksName"
  5786. >
  5787. <el-tooltip effect="dark" :content="s.student" placement="top">
  5788. <span>{{ s.student }}</span>
  5789. </el-tooltip>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. <div
  5794. v-if="
  5795. tType &&
  5796. ((tType == 2 && sIsOpen == true) ||
  5797. tType == 1 ||
  5798. tType == 4) &&
  5799. tool.tool.indexOf(7) != -1
  5800. "
  5801. class="worksBox"
  5802. >
  5803. <div
  5804. class="zuoyeYulan"
  5805. v-if="
  5806. (worksStudent.length &&
  5807. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5808. "
  5809. >
  5810. <div class="worksTop">
  5811. <div>作业预览</div>
  5812. <div
  5813. class="corOpen"
  5814. @click="contract(toolIndex)"
  5815. v-if="
  5816. (isCloseList[toolIndex].isCloseBoolean) &&
  5817. isCloseList[toolIndex].isClose == 0
  5818. "
  5819. >
  5820. 折叠
  5821. </div>
  5822. <div
  5823. class="corOpen"
  5824. @click="contract(toolIndex)"
  5825. v-if="isCloseList[toolIndex].isClose == 1"
  5826. >
  5827. 展开
  5828. </div>
  5829. </div>
  5830. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5831. </div>
  5832. <div
  5833. class="group_workBox"
  5834. v-for="(g, gindex) in courseGroup.group"
  5835. :key="gindex"
  5836. >
  5837. <div class="group_box">
  5838. <div class="group_title">
  5839. <el-tooltip
  5840. class="item"
  5841. effect="light"
  5842. :content="g.name"
  5843. placement="top"
  5844. >
  5845. <div class="group_name">{{ g.name }}</div>
  5846. </el-tooltip>
  5847. </div>
  5848. <div
  5849. class="group_work"
  5850. v-if="
  5851. g.works &&
  5852. g.works.length &&
  5853. g.works[toolIndex].length
  5854. "
  5855. >
  5856. <div
  5857. class="works"
  5858. style="
  5859. width: 200px;
  5860. height: 140px;
  5861. margin: 10px 10px 10px 0;
  5862. border-radius: 15px;
  5863. box-shadow: 0 0 6px 1px #dfdada;
  5864. "
  5865. v-for="(w, wIndex) in g.works[toolIndex]"
  5866. :key="wIndex"
  5867. :class="w.type == 1 ? 'isTypeOne' : ''"
  5868. >
  5869. <div class="workImg">
  5870. <img
  5871. :src="w.works"
  5872. @click="previewImg(w.works,w)"
  5873. alt
  5874. />
  5875. <div
  5876. class="answerScore"
  5877. v-if="w.score"
  5878. @click.stop="openScore(w)"
  5879. :class="{
  5880. rightW:
  5881. w.userid == userid ||
  5882. tType == 1 ||
  5883. tType == 4,
  5884. }"
  5885. >
  5886. {{ JSON.parse(w.score).wScore }}分
  5887. </div>
  5888. <div
  5889. class="answerScore"
  5890. @click.stop="openScore(w)"
  5891. v-else-if="courseDetail.userid == userid"
  5892. :class="{
  5893. rightW:
  5894. w.userid == userid ||
  5895. tType == 1 ||
  5896. tType == 4,
  5897. }"
  5898. >
  5899. 评分
  5900. </div>
  5901. <img
  5902. class="deleteImg"
  5903. src="../assets/deleteworks.png"
  5904. v-if="
  5905. w.userid == userid || tType == 1 || tType == 4
  5906. "
  5907. @click.stop="deleteWorks(w.wid)"
  5908. alt
  5909. />
  5910. </div>
  5911. <div class="comment" style="min-width: 200px">
  5912. <div class="worksName">
  5913. <div>{{ w.sName }}</div>
  5914. </div>
  5915. <div class="commentList">
  5916. <div class="commentList">
  5917. <div
  5918. class="commentImg"
  5919. @click="
  5920. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5921. "
  5922. >
  5923. <img
  5924. :src="w.isLikes == true ? likes : noLikes"
  5925. alt=""
  5926. />
  5927. </div>
  5928. <div>{{ w.likesCount }}</div>
  5929. </div>
  5930. <div
  5931. class="commentList"
  5932. style="margin-right: 15px"
  5933. >
  5934. <div
  5935. class="commentImg"
  5936. @click="
  5937. commentOther(
  5938. w,
  5939. toolIndex,
  5940. wIndex,
  5941. null,
  5942. g.id
  5943. )
  5944. "
  5945. >
  5946. <img
  5947. src="../assets/icon/comment/comment.png"
  5948. alt=""
  5949. />
  5950. </div>
  5951. <div>{{ w.commentCount }}</div>
  5952. </div>
  5953. </div>
  5954. </div>
  5955. </div>
  5956. </div>
  5957. <div class="group_work" v-else>暂无提交作业</div>
  5958. </div>
  5959. </div>
  5960. <div
  5961. :id="'tool-' + toolIndex"
  5962. :style="{
  5963. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5964. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5965. }"
  5966. class="worksDetailBox"
  5967. v-if="
  5968. worksStudent.length &&
  5969. worksStudent[toolIndex].length > 0
  5970. "
  5971. >
  5972. <div
  5973. class="works"
  5974. style="
  5975. width: 200px;
  5976. height: 140px;
  5977. margin: 10px 10px 10px 0;
  5978. border-radius: 15px;
  5979. box-shadow: 0 0 6px 1px #dfdada;
  5980. "
  5981. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5982. :key="wIndex"
  5983. >
  5984. <!-- @click="previewImg(w.works)" -->
  5985. <div class="workImg">
  5986. <img
  5987. :src="w.works"
  5988. @click="previewImg(w.works,w)"
  5989. alt
  5990. />
  5991. <div
  5992. class="answerScore"
  5993. v-if="w.score"
  5994. @click.stop="openScore(w)"
  5995. :class="{
  5996. rightW:
  5997. w.userid == userid || tType == 1 || tType == 4,
  5998. }"
  5999. >
  6000. {{ JSON.parse(w.score).wScore }}分
  6001. </div>
  6002. <div
  6003. class="answerScore"
  6004. @click.stop="openScore(w)"
  6005. v-else-if="courseDetail.userid == userid"
  6006. :class="{
  6007. rightW:
  6008. w.userid == userid || tType == 1 || tType == 4,
  6009. }"
  6010. >
  6011. 评分
  6012. </div>
  6013. <img
  6014. class="deleteImg"
  6015. src="../assets/deleteworks.png"
  6016. v-if="
  6017. w.userid == userid || tType == 1 || tType == 4
  6018. "
  6019. @click.stop="deleteWorks(w.wid)"
  6020. alt
  6021. />
  6022. </div>
  6023. <div class="comment" style="min-width: 200px">
  6024. <div class="worksName">
  6025. <div>{{ w.sName }}</div>
  6026. </div>
  6027. <div class="commentList">
  6028. <div class="commentList">
  6029. <div
  6030. class="commentImg"
  6031. @click="
  6032. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6033. "
  6034. >
  6035. <img
  6036. :src="w.isLikes == true ? likes : noLikes"
  6037. alt=""
  6038. />
  6039. </div>
  6040. <div>{{ w.likesCount }}</div>
  6041. </div>
  6042. <div class="commentList" style="margin-right: 15px">
  6043. <div
  6044. class="commentImg"
  6045. @click="commentOther(w, toolIndex, wIndex)"
  6046. >
  6047. <img
  6048. src="../assets/icon/comment/comment.png"
  6049. alt=""
  6050. />
  6051. </div>
  6052. <div>{{ w.commentCount }}</div>
  6053. </div>
  6054. </div>
  6055. </div>
  6056. </div>
  6057. </div>
  6058. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6059. 未提交
  6060. </div>
  6061. <div
  6062. class="noWorksS"
  6063. v-if="noWorksS && noWorksS[toolIndex].length"
  6064. >
  6065. <div
  6066. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6067. :key="sIndex"
  6068. class="noWorksName"
  6069. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6070. >
  6071. <el-tooltip effect="dark" :content="s.student" placement="top">
  6072. <span>{{ s.student }}</span>
  6073. </el-tooltip>
  6074. </div>
  6075. </div>
  6076. </div>
  6077. <div
  6078. v-if="
  6079. tType &&
  6080. ((tType == 2 && sIsOpen == true) ||
  6081. tType == 1 ||
  6082. tType == 4) &&
  6083. tool.tool.indexOf(26) != -1
  6084. "
  6085. class="worksBox"
  6086. >
  6087. <div
  6088. class="zuoyeYulan"
  6089. v-if="
  6090. worksStudent.length &&
  6091. worksStudent[toolIndex].length > 0
  6092. "
  6093. >
  6094. <div class="worksTop">
  6095. <div>作业预览</div>
  6096. <div
  6097. class="corOpen"
  6098. @click="contract(toolIndex)"
  6099. v-if="
  6100. (isCloseList[toolIndex].isCloseBoolean) &&
  6101. isCloseList[toolIndex].isClose == 0
  6102. "
  6103. >
  6104. 折叠
  6105. </div>
  6106. <div
  6107. class="corOpen"
  6108. @click="contract(toolIndex)"
  6109. v-if="isCloseList[toolIndex].isClose == 1"
  6110. >
  6111. 展开
  6112. </div>
  6113. </div>
  6114. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6115. </div>
  6116. <div
  6117. :id="'tool-' + toolIndex"
  6118. :style="{
  6119. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6120. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6121. }"
  6122. class="worksDetailBox"
  6123. v-if="
  6124. worksStudent.length &&
  6125. worksStudent[toolIndex].length > 0
  6126. "
  6127. >
  6128. <div
  6129. class="works"
  6130. style="width: 240px; height: 140px; overflow: hidden"
  6131. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6132. :key="wIndex"
  6133. :class="w.type == 1 ? 'isTypeOne' : ''"
  6134. >
  6135. <div class="workImg" v-if="w.type == 0">
  6136. <img
  6137. :src="w.works"
  6138. @click="previewImg(w.works,w)"
  6139. alt
  6140. />
  6141. <img
  6142. class="deleteImg"
  6143. src="../assets/deleteworks.png"
  6144. v-if="
  6145. w.userid == userid || tType == 1 || tType == 4
  6146. "
  6147. @click.stop="deleteWorks(w.wid)"
  6148. alt
  6149. />
  6150. </div>
  6151. <div class="workImg" v-if="w.type == 1">
  6152. <img :src="word" @click="openFile(w.works,w)" alt />
  6153. <img
  6154. class="deleteImg"
  6155. src="../assets/deleteworks.png"
  6156. v-if="
  6157. w.userid == userid || tType == 1 || tType == 4
  6158. "
  6159. @click.stop="deleteWorks(w.wid)"
  6160. alt
  6161. />
  6162. </div>
  6163. <div class="worksName">
  6164. <div>{{ w.sName }}</div>
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6169. 未提交
  6170. </div>
  6171. <div
  6172. class="noWorksS"
  6173. v-if="noWorksS && noWorksS[toolIndex].length"
  6174. >
  6175. <div
  6176. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6177. :key="sIndex"
  6178. class="noWorksName"
  6179. >
  6180. <el-tooltip effect="dark" :content="s.student" placement="top">
  6181. <span>{{ s.student }}</span>
  6182. </el-tooltip>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div
  6187. v-if="
  6188. tType &&
  6189. ((tType == 2 && sIsOpen == true) ||
  6190. tType == 1 ||
  6191. tType == 4) &&
  6192. tool.tool.indexOf(40) != -1
  6193. "
  6194. class="worksBox"
  6195. >
  6196. <div
  6197. class="zuoyeYulan"
  6198. v-if="
  6199. worksStudent.length &&
  6200. worksStudent[toolIndex].length > 0
  6201. "
  6202. >
  6203. <div class="worksTop">
  6204. <div>作业预览</div>
  6205. <div
  6206. class="corOpen"
  6207. @click="contract(toolIndex)"
  6208. v-if="
  6209. (isCloseList[toolIndex].isCloseBoolean) &&
  6210. isCloseList[toolIndex].isClose == 0
  6211. "
  6212. >
  6213. 折叠
  6214. </div>
  6215. <div
  6216. class="corOpen"
  6217. @click="contract(toolIndex)"
  6218. v-if="isCloseList[toolIndex].isClose == 1"
  6219. >
  6220. 展开
  6221. </div>
  6222. </div>
  6223. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6224. </div>
  6225. <div
  6226. :id="'tool-' + toolIndex"
  6227. :style="{
  6228. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6229. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6230. }"
  6231. class="worksDetailBox"
  6232. v-if="
  6233. worksStudent.length &&
  6234. worksStudent[toolIndex].length > 0
  6235. "
  6236. >
  6237. <div
  6238. class="works"
  6239. style="
  6240. width: 200px;
  6241. height: 140px;
  6242. margin: 10px 10px 10px 0;
  6243. border-radius: 15px;
  6244. box-shadow: 0 0 6px 1px #dfdada;
  6245. "
  6246. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6247. :key="wIndex"
  6248. :class="w.type == 1 ? 'isTypeOne' : ''"
  6249. >
  6250. <div class="workImg">
  6251. <img
  6252. src="../assets/icon/works/noImg.png"
  6253. @click="openPj(w.works, toolIndex)"
  6254. alt
  6255. />
  6256. <img
  6257. class="deleteImg"
  6258. src="../assets/deleteworks.png"
  6259. v-if="
  6260. w.userid == userid || tType == 1 || tType == 4
  6261. "
  6262. @click.stop="deleteWorks(w.wid)"
  6263. alt
  6264. />
  6265. </div>
  6266. <div class="comment" style="min-width: 200px">
  6267. <div class="worksName">
  6268. <div>{{ w.sName }}</div>
  6269. </div>
  6270. <div class="commentList">
  6271. <div class="commentList">
  6272. <div
  6273. class="commentImg"
  6274. @click="
  6275. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6276. "
  6277. >
  6278. <img
  6279. :src="w.isLikes == true ? likes : noLikes"
  6280. alt=""
  6281. />
  6282. </div>
  6283. <div>{{ w.likesCount }}</div>
  6284. </div>
  6285. <div class="commentList" style="margin-right: 15px">
  6286. <div
  6287. class="commentImg"
  6288. @click="commentOther(w, toolIndex, wIndex)"
  6289. >
  6290. <img
  6291. src="../assets/icon/comment/comment.png"
  6292. alt=""
  6293. />
  6294. </div>
  6295. <div>{{ w.commentCount }}</div>
  6296. </div>
  6297. </div>
  6298. </div>
  6299. </div>
  6300. </div>
  6301. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6302. 未提交
  6303. </div>
  6304. <div
  6305. class="noWorksS"
  6306. v-if="noWorksS && noWorksS[toolIndex].length"
  6307. >
  6308. <div
  6309. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6310. :key="sIndex"
  6311. class="noWorksName"
  6312. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6313. >
  6314. <el-tooltip effect="dark" :content="s.student" placement="top">
  6315. <span>{{ s.student }}</span>
  6316. </el-tooltip>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. <div
  6321. v-if="
  6322. tType &&
  6323. tType == 2 &&
  6324. !sIsOpen &&
  6325. tool.tool.indexOf(40) != -1
  6326. "
  6327. class="worksBox"
  6328. >
  6329. <div
  6330. class="zuoyeYulan"
  6331. v-if="workStudent[toolIndex].length > 0"
  6332. >
  6333. <span class="worksTitle">作业预览</span>
  6334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6335. </div>
  6336. <div
  6337. class="worksDetailBox"
  6338. v-if="workStudent[toolIndex].length > 0"
  6339. >
  6340. <div
  6341. class="works"
  6342. style="
  6343. width: 200px;
  6344. height: 140px;
  6345. margin: 10px 10px 10px 0;
  6346. "
  6347. v-for="(w, wIndex) in workStudent[toolIndex]"
  6348. :key="wIndex"
  6349. >
  6350. <div class="workImg">
  6351. <img
  6352. src="../assets/icon/works/noImg.png"
  6353. @click="openPj(w.works, toolIndex)"
  6354. alt
  6355. />
  6356. <img
  6357. class="deleteImg"
  6358. src="../assets/deleteworks.png"
  6359. v-if="
  6360. w.userid == userid || tType == 1 || tType == 4
  6361. "
  6362. @click.stop="deleteWorks(w.wid)"
  6363. alt
  6364. />
  6365. </div>
  6366. <div class="worksName">
  6367. <div>{{ w.sName }}</div>
  6368. </div>
  6369. </div>
  6370. </div>
  6371. </div>
  6372. <div
  6373. v-if="
  6374. tType &&
  6375. ((tType == 2 && sIsOpen == true) ||
  6376. tType == 1 ||
  6377. tType == 4) &&
  6378. tool.tool.indexOf(41) != -1
  6379. "
  6380. >
  6381. <AnswerData2
  6382. v-if="
  6383. worksStudent.length &&
  6384. worksStudent[toolIndex].length > 0
  6385. "
  6386. :problemJson="tool.selectJson.answer"
  6387. :people="worksStudent[toolIndex]"
  6388. ></AnswerData2>
  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. class="worksBox"
  6399. >
  6400. <div
  6401. class="zuoyeYulan"
  6402. v-if="
  6403. worksStudent.length &&
  6404. worksStudent[toolIndex].length > 0
  6405. "
  6406. >
  6407. <div class="worksTop">
  6408. <div>作业预览</div>
  6409. <div
  6410. class="corOpen"
  6411. @click="contract(toolIndex)"
  6412. v-if="
  6413. (isCloseList[toolIndex].isCloseBoolean) &&
  6414. isCloseList[toolIndex].isClose == 0
  6415. "
  6416. >
  6417. 折叠
  6418. </div>
  6419. <div
  6420. class="corOpen"
  6421. @click="contract(toolIndex)"
  6422. v-if="isCloseList[toolIndex].isClose == 1"
  6423. >
  6424. 展开
  6425. </div>
  6426. </div>
  6427. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6428. </div>
  6429. <div
  6430. :id="'tool-' + toolIndex"
  6431. :style="{
  6432. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6433. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6434. }"
  6435. class="worksDetailBox"
  6436. v-if="
  6437. worksStudent.length &&
  6438. worksStudent[toolIndex].length > 0
  6439. "
  6440. >
  6441. <div
  6442. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6443. :key="wIndex"
  6444. class="isWorksName2"
  6445. @click="openXz(w, toolIndex)"
  6446. >
  6447. {{ w.sName }}
  6448. <img
  6449. class="deleteImg deleteImg2"
  6450. src="../assets/deleteworks.png"
  6451. v-if="w.userid == userid || tType == 1 || tType == 4"
  6452. @click.stop="deleteWorks(w.wid)"
  6453. alt
  6454. />
  6455. </div>
  6456. <!-- <div
  6457. class="works"
  6458. style="
  6459. width: 200px;
  6460. height: 140px;
  6461. margin: 10px 10px 10px 0;
  6462. border-radius: 15px;
  6463. box-shadow: 0 0 6px 1px #dfdada;
  6464. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6465. :class="w.type == 5 ? 'isTypeOne' : ''">
  6466. <div class="workImg">
  6467. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6468. </div>
  6469. <div class="worksName">
  6470. <div>{{ w.sName }}</div>
  6471. </div>
  6472. </div> -->
  6473. </div>
  6474. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6475. 未提交
  6476. </div>
  6477. <div
  6478. class="noWorksS"
  6479. v-if="noWorksS && noWorksS[toolIndex].length"
  6480. >
  6481. <div
  6482. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6483. :key="sIndex"
  6484. class="noWorksName"
  6485. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6486. >
  6487. <el-tooltip effect="dark" :content="s.student" placement="top">
  6488. <span>{{ s.student }}</span>
  6489. </el-tooltip>
  6490. </div>
  6491. </div>
  6492. </div>
  6493. <div
  6494. v-if="
  6495. tType &&
  6496. tType == 2 &&
  6497. !sIsOpen &&
  6498. tool.tool.indexOf(41) != -1
  6499. "
  6500. class="worksBox"
  6501. >
  6502. <div
  6503. class="zuoyeYulan"
  6504. v-if="workStudent[toolIndex].length > 0"
  6505. >
  6506. <span class="worksTitle">作业预览</span>
  6507. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6508. </div>
  6509. <div
  6510. class="worksDetailBox"
  6511. v-if="workStudent[toolIndex].length > 0"
  6512. >
  6513. <div
  6514. class="works"
  6515. style="
  6516. width: 200px;
  6517. height: 140px;
  6518. margin: 10px 10px 10px 0;
  6519. "
  6520. v-for="(w, wIndex) in workStudent[toolIndex]"
  6521. :key="wIndex"
  6522. >
  6523. <div class="workImg">
  6524. <img
  6525. src="../assets/icon/works/noImg.png"
  6526. @click="openXz(w, toolIndex)"
  6527. alt
  6528. />
  6529. <img
  6530. class="deleteImg"
  6531. src="../assets/deleteworks.png"
  6532. v-if="
  6533. w.userid == userid || tType == 1 || tType == 4
  6534. "
  6535. @click.stop="deleteWorks(w.wid)"
  6536. alt
  6537. />
  6538. </div>
  6539. <div class="worksName">
  6540. <div>{{ w.sName }}</div>
  6541. </div>
  6542. </div>
  6543. </div>
  6544. </div>
  6545. <div v-if="false" class="xuan_right_box">
  6546. <div
  6547. class="tool_right_box"
  6548. v-for="(item, index) in tool.sentenceList"
  6549. :key="index"
  6550. >
  6551. <div>
  6552. <span
  6553. style="word-break: break-all; white-space: normal"
  6554. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6555. >
  6556. </div>
  6557. <div class="right_box_xuan">
  6558. <span>正确率</span>
  6559. <span>{{
  6560. (checkJson[toolIndex][index].right
  6561. ? checkJson[toolIndex][index].right
  6562. : 0) + "%"
  6563. }}</span>
  6564. </div>
  6565. <div class="right_box_xuan">
  6566. <span>答对人数</span>
  6567. <span>{{
  6568. checkJson[toolIndex][index].rightPerson.length
  6569. }}</span>
  6570. </div>
  6571. </div>
  6572. </div>
  6573. <div
  6574. v-if="
  6575. tType &&
  6576. ((tType == 2 && sIsOpen == true) ||
  6577. tType == 1 ||
  6578. tType == 4) &&
  6579. tool.tool.indexOf(47) != -1
  6580. "
  6581. >
  6582. <!-- <AnswerData
  6583. v-if="
  6584. checkJson[toolIndex].length &&
  6585. (tool.sentenceList || tool.sentenceList.length > 0)
  6586. "
  6587. :people="checkJson[toolIndex]"
  6588. ></AnswerData> -->
  6589. <sortToolWorkShow v-if="
  6590. worksStudent[toolIndex].length
  6591. "
  6592. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6593. </div>
  6594. <div
  6595. v-if="
  6596. tType &&
  6597. tType == 2 &&
  6598. !sIsOpen &&
  6599. tool.tool.indexOf(47) != -1
  6600. "
  6601. class="worksBox"
  6602. >
  6603. <div
  6604. class="zuoyeYulan"
  6605. v-if="workStudent[toolIndex].length > 0"
  6606. >
  6607. <span class="worksTitle">作业预览</span>
  6608. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6609. </div>
  6610. <div
  6611. class="worksDetailBox"
  6612. v-if="workStudent[toolIndex].length > 0"
  6613. >
  6614. <div
  6615. class="works"
  6616. style="
  6617. width: 200px;
  6618. height: 140px;
  6619. margin: 10px 10px 10px 0;
  6620. "
  6621. v-for="(w, wIndex) in workStudent[toolIndex]"
  6622. :key="wIndex"
  6623. >
  6624. <!-- @click="openXz(w, toolIndex)" -->
  6625. <div class="workImg" @click="openSen(w, toolIndex)">
  6626. <img src="../assets/icon/works/noImg.png" alt />
  6627. <img
  6628. class="deleteImg"
  6629. src="../assets/deleteworks.png"
  6630. v-if="
  6631. w.userid == userid || tType == 1 || tType == 4
  6632. "
  6633. @click.stop="deleteWorks(w.wid)"
  6634. alt
  6635. />
  6636. </div>
  6637. <div class="worksName">
  6638. <div>
  6639. {{ w.sName }}
  6640. </div>
  6641. </div>
  6642. </div>
  6643. </div>
  6644. </div>
  6645. <div
  6646. v-if="
  6647. tType &&
  6648. ((tType == 2 && sIsOpen == true) ||
  6649. tType == 1 ||
  6650. tType == 4) &&
  6651. tool.tool.indexOf(47) != -1
  6652. "
  6653. class="worksBox"
  6654. >
  6655. <div
  6656. class="zuoyeYulan"
  6657. v-if="
  6658. worksStudent.length &&
  6659. worksStudent[toolIndex].length > 0
  6660. "
  6661. >
  6662. <div class="worksTop">
  6663. <div>作业预览</div>
  6664. <div
  6665. class="corOpen"
  6666. @click="contract(toolIndex)"
  6667. v-if="
  6668. (isCloseList[toolIndex].isCloseBoolean) &&
  6669. isCloseList[toolIndex].isClose == 0
  6670. "
  6671. >
  6672. 折叠
  6673. </div>
  6674. <div
  6675. class="corOpen"
  6676. @click="contract(toolIndex)"
  6677. v-if="isCloseList[toolIndex].isClose == 1"
  6678. >
  6679. 展开
  6680. </div>
  6681. </div>
  6682. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6683. </div>
  6684. <div
  6685. :id="'tool-' + toolIndex"
  6686. :style="{
  6687. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6688. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6689. }"
  6690. class="worksDetailBox"
  6691. v-if="
  6692. worksStudent.length &&
  6693. worksStudent[toolIndex].length > 0
  6694. "
  6695. >
  6696. <!-- @click="openXz(w, toolIndex)" -->
  6697. <div
  6698. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6699. :key="wIndex"
  6700. class="isWorksName2"
  6701. @click="openSen(w, toolIndex)"
  6702. >
  6703. {{ w.sName }}
  6704. <img
  6705. class="deleteImg deleteImg2"
  6706. src="../assets/deleteworks.png"
  6707. v-if="w.userid == userid || tType == 1 || tType == 4"
  6708. @click.stop="deleteWorks(w.wid)"
  6709. alt
  6710. />
  6711. </div>
  6712. </div>
  6713. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6714. 未提交
  6715. </div>
  6716. <div
  6717. class="noWorksS"
  6718. v-if="noWorksS && noWorksS[toolIndex].length"
  6719. >
  6720. <div
  6721. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6722. :key="sIndex"
  6723. class="noWorksName"
  6724. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6725. >
  6726. <el-tooltip effect="dark" :content="s.student" placement="top">
  6727. <span>{{ s.student }}</span>
  6728. </el-tooltip>
  6729. </div>
  6730. </div>
  6731. </div>
  6732. <div
  6733. v-if="
  6734. tType &&
  6735. ((tType == 2 && sIsOpen == true) ||
  6736. tType == 1 ||
  6737. tType == 4) &&
  6738. tool.tool.indexOf(48) != -1
  6739. "
  6740. class="worksBox"
  6741. >
  6742. <div
  6743. class="zuoyeYulan"
  6744. v-if="
  6745. worksStudent.length &&
  6746. worksStudent[toolIndex].length > 0
  6747. "
  6748. >
  6749. <div class="worksTop">
  6750. <div>作业预览</div>
  6751. <div
  6752. class="corOpen"
  6753. @click="contract(toolIndex)"
  6754. v-if="
  6755. (isCloseList[toolIndex].isCloseBoolean) &&
  6756. isCloseList[toolIndex].isClose == 0
  6757. "
  6758. >
  6759. 折叠
  6760. </div>
  6761. <div
  6762. class="corOpen"
  6763. @click="contract(toolIndex)"
  6764. v-if="isCloseList[toolIndex].isClose == 1"
  6765. >
  6766. 展开
  6767. </div>
  6768. </div>
  6769. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6770. </div>
  6771. <div
  6772. :id="'tool-' + toolIndex"
  6773. :style="{
  6774. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6775. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6776. }"
  6777. class="worksDetailBox"
  6778. v-if="
  6779. worksStudent.length &&
  6780. worksStudent[toolIndex].length > 0
  6781. "
  6782. >
  6783. <div
  6784. class="works"
  6785. style="
  6786. width: 200px;
  6787. height: 140px;
  6788. margin: 10px 10px 10px 0;
  6789. border-radius: 15px;
  6790. box-shadow: 0 0 6px 1px #dfdada;
  6791. "
  6792. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6793. :key="wIndex"
  6794. :class="w.type == 1 ? 'isTypeOne' : ''"
  6795. >
  6796. <div class="workImg">
  6797. <img :src="word" @click="openTable(w)" alt />
  6798. <!-- @click="openFile(w.works)" -->
  6799. <div
  6800. class="answerScore"
  6801. v-if="w.score"
  6802. @click.stop="openScore(w)"
  6803. :class="{
  6804. rightW:
  6805. w.userid == userid ||
  6806. tType == 1 ||
  6807. tType == 4 ||
  6808. w.ateacher == userid,
  6809. }"
  6810. >
  6811. {{ JSON.parse(w.score).wScore }}分
  6812. </div>
  6813. <div
  6814. class="answerScore"
  6815. @click.stop="openScore(w)"
  6816. v-else-if="courseDetail.userid == userid"
  6817. :class="{
  6818. rightW:
  6819. w.userid == userid ||
  6820. tType == 1 ||
  6821. tType == 4 ||
  6822. w.ateacher == userid,
  6823. }"
  6824. >
  6825. 评分
  6826. </div>
  6827. <img
  6828. class="deleteImg"
  6829. src="../assets/deleteworks.png"
  6830. v-if="
  6831. w.userid == userid || tType == 1 || tType == 4
  6832. "
  6833. @click.stop="deleteWorks(w.wid)"
  6834. alt
  6835. />
  6836. </div>
  6837. <div class="comment" style="min-width: 200px">
  6838. <div class="worksName">
  6839. <div>{{ w.sName }}</div>
  6840. </div>
  6841. <div class="commentList">
  6842. <div class="commentList">
  6843. <div
  6844. class="commentImg"
  6845. @click="
  6846. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6847. "
  6848. >
  6849. <img
  6850. :src="w.isLikes == true ? likes : noLikes"
  6851. alt=""
  6852. />
  6853. </div>
  6854. <div>{{ w.likesCount }}</div>
  6855. </div>
  6856. <div class="commentList" style="margin-right: 15px">
  6857. <div
  6858. class="commentImg"
  6859. @click="commentOther(w, toolIndex, wIndex)"
  6860. >
  6861. <img
  6862. src="../assets/icon/comment/comment.png"
  6863. alt=""
  6864. />
  6865. </div>
  6866. <div>{{ w.commentCount }}</div>
  6867. </div>
  6868. </div>
  6869. </div>
  6870. </div>
  6871. </div>
  6872. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6873. 未提交
  6874. </div>
  6875. <div
  6876. class="noWorksS"
  6877. v-if="noWorksS && noWorksS[toolIndex].length"
  6878. >
  6879. <div
  6880. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6881. :key="sIndex"
  6882. class="noWorksName"
  6883. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6884. >
  6885. <el-tooltip effect="dark" :content="s.student" placement="top">
  6886. <span>{{ s.student }}</span>
  6887. </el-tooltip>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. <div
  6892. v-if="
  6893. tType &&
  6894. tType == 2 &&
  6895. !sIsOpen &&
  6896. tool.tool.indexOf(48) != -1
  6897. "
  6898. class="worksBox"
  6899. >
  6900. <div
  6901. class="zuoyeYulan"
  6902. v-if="workStudent[toolIndex].length > 0"
  6903. >
  6904. <span class="worksTitle">作业预览</span>
  6905. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6906. </div>
  6907. <div
  6908. class="worksDetailBox"
  6909. v-if="workStudent[toolIndex].length > 0"
  6910. >
  6911. <div
  6912. class="works"
  6913. style="
  6914. width: 200px;
  6915. height: 140px;
  6916. margin: 10px 10px 10px 0;
  6917. box-shadow: 0 0 6px 1px #dfdada;
  6918. "
  6919. v-for="(w, wIndex) in workStudent[toolIndex]"
  6920. :key="wIndex"
  6921. >
  6922. <div class="workImg">
  6923. <img :src="word" @click="openTable(w)" alt />
  6924. <div
  6925. class="answerScore"
  6926. v-if="w.score"
  6927. @click.stop="openScore(w)"
  6928. :class="{
  6929. rightW:
  6930. w.userid == userid || tType == 1 || tType == 4,
  6931. }"
  6932. >
  6933. {{ JSON.parse(w.score).wScore }}分
  6934. </div>
  6935. <div
  6936. class="answerScore"
  6937. @click.stop="openScore(w)"
  6938. v-else-if="courseDetail.userid == userid"
  6939. :class="{
  6940. rightW:
  6941. w.userid == userid || tType == 1 || tType == 4,
  6942. }"
  6943. >
  6944. 评分
  6945. </div>
  6946. <img
  6947. class="deleteImg"
  6948. src="../assets/deleteworks.png"
  6949. v-if="
  6950. w.userid == userid || tType == 1 || tType == 4
  6951. "
  6952. @click.stop="deleteWorks(w.wid)"
  6953. alt
  6954. />
  6955. </div>
  6956. <div class="worksName">
  6957. <div>{{ w.sName }}</div>
  6958. </div>
  6959. </div>
  6960. </div>
  6961. </div>
  6962. <div
  6963. v-if="
  6964. tType &&
  6965. ((tType == 2 && sIsOpen == true) ||
  6966. tType == 1 ||
  6967. tType == 4) &&
  6968. tool.tool.indexOf(52) != -1
  6969. "
  6970. class="worksBox"
  6971. >
  6972. <div
  6973. class="zuoyeYulan"
  6974. v-if="
  6975. worksStudent.length &&
  6976. worksStudent[toolIndex].length > 0
  6977. "
  6978. >
  6979. <div class="worksTop">
  6980. <div>作业预览</div>
  6981. <div
  6982. class="corOpen"
  6983. @click="contract(toolIndex)"
  6984. v-if="
  6985. (isCloseList[toolIndex].isCloseBoolean) &&
  6986. isCloseList[toolIndex].isClose == 0
  6987. "
  6988. >
  6989. 折叠
  6990. </div>
  6991. <div
  6992. class="corOpen"
  6993. @click="contract(toolIndex)"
  6994. v-if="isCloseList[toolIndex].isClose == 1"
  6995. >
  6996. 展开
  6997. </div>
  6998. </div>
  6999. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7000. </div>
  7001. <div
  7002. :id="'tool-' + toolIndex"
  7003. :style="{
  7004. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7005. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7006. }"
  7007. class="worksDetailBox"
  7008. v-if="
  7009. worksStudent.length &&
  7010. worksStudent[toolIndex].length > 0
  7011. "
  7012. >
  7013. <div
  7014. class="works"
  7015. style="
  7016. width: 200px;
  7017. height: 140px;
  7018. margin: 10px 10px 10px 0;
  7019. border-radius: 15px;
  7020. box-shadow: 0 0 6px 1px #dfdada;
  7021. "
  7022. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7023. :key="wIndex"
  7024. :class="w.type == 1 ? 'isTypeOne' : ''"
  7025. >
  7026. <div class="workImg">
  7027. <img :src="word" @click="openWord(w)" alt />
  7028. <!-- @click="openFile(w.works)" -->
  7029. <div
  7030. class="answerScore"
  7031. v-if="w.score"
  7032. @click.stop="openScore(w)"
  7033. :class="{
  7034. rightW:
  7035. w.userid == userid ||
  7036. tType == 1 ||
  7037. tType == 4 ||
  7038. w.ateacher == userid,
  7039. }"
  7040. >
  7041. {{ JSON.parse(w.score).wScore }}分
  7042. </div>
  7043. <div
  7044. class="answerScore"
  7045. @click.stop="openScore(w)"
  7046. v-else-if="courseDetail.userid == userid"
  7047. :class="{
  7048. rightW:
  7049. w.userid == userid ||
  7050. tType == 1 ||
  7051. tType == 4 ||
  7052. w.ateacher == userid,
  7053. }"
  7054. >
  7055. 评分
  7056. </div>
  7057. <img
  7058. class="deleteImg"
  7059. src="../assets/deleteworks.png"
  7060. v-if="
  7061. w.userid == userid || tType == 1 || tType == 4
  7062. "
  7063. @click.stop="deleteWorks(w.wid)"
  7064. alt
  7065. />
  7066. </div>
  7067. <div class="comment" style="min-width: 200px">
  7068. <div class="worksName">
  7069. <div>{{ w.sName }}</div>
  7070. </div>
  7071. <div class="commentList">
  7072. <div class="commentList">
  7073. <div
  7074. class="commentImg"
  7075. @click="
  7076. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7077. "
  7078. >
  7079. <img
  7080. :src="w.isLikes == true ? likes : noLikes"
  7081. alt=""
  7082. />
  7083. </div>
  7084. <div>{{ w.likesCount }}</div>
  7085. </div>
  7086. <div class="commentList" style="margin-right: 15px">
  7087. <div
  7088. class="commentImg"
  7089. @click="commentOther(w, toolIndex, wIndex)"
  7090. >
  7091. <img
  7092. src="../assets/icon/comment/comment.png"
  7093. alt=""
  7094. />
  7095. </div>
  7096. <div>{{ w.commentCount }}</div>
  7097. </div>
  7098. </div>
  7099. </div>
  7100. </div>
  7101. </div>
  7102. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7103. 未提交
  7104. </div>
  7105. <div
  7106. class="noWorksS"
  7107. v-if="noWorksS && noWorksS[toolIndex].length"
  7108. >
  7109. <div
  7110. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7111. :key="sIndex"
  7112. class="noWorksName"
  7113. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7114. >
  7115. <el-tooltip effect="dark" :content="s.student" placement="top">
  7116. <span>{{ s.student }}</span>
  7117. </el-tooltip>
  7118. </div>
  7119. </div>
  7120. </div>
  7121. <div
  7122. v-if="
  7123. tType &&
  7124. tType == 2 &&
  7125. !sIsOpen &&
  7126. tool.tool.indexOf(52) != -1
  7127. "
  7128. class="worksBox"
  7129. >
  7130. <div
  7131. class="zuoyeYulan"
  7132. v-if="workStudent[toolIndex].length > 0"
  7133. >
  7134. <span class="worksTitle">作业预览</span>
  7135. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7136. </div>
  7137. <div
  7138. class="worksDetailBox"
  7139. v-if="workStudent[toolIndex].length > 0"
  7140. >
  7141. <div
  7142. class="works"
  7143. style="
  7144. width: 200px;
  7145. height: 140px;
  7146. margin: 10px 10px 10px 0;
  7147. box-shadow: 0 0 6px 1px #dfdada;
  7148. "
  7149. v-for="(w, wIndex) in workStudent[toolIndex]"
  7150. :key="wIndex"
  7151. >
  7152. <div class="workImg">
  7153. <img :src="word" @click="openWord(w)" alt />
  7154. <div
  7155. class="answerScore"
  7156. v-if="w.score"
  7157. @click.stop="openScore(w)"
  7158. :class="{
  7159. rightW:
  7160. w.userid == userid || tType == 1 || tType == 4,
  7161. }"
  7162. >
  7163. {{ JSON.parse(w.score).wScore }}分
  7164. </div>
  7165. <div
  7166. class="answerScore"
  7167. @click.stop="openScore(w)"
  7168. v-else-if="courseDetail.userid == userid"
  7169. :class="{
  7170. rightW:
  7171. w.userid == userid || tType == 1 || tType == 4,
  7172. }"
  7173. >
  7174. 评分
  7175. </div>
  7176. <img
  7177. class="deleteImg"
  7178. src="../assets/deleteworks.png"
  7179. v-if="
  7180. w.userid == userid || tType == 1 || tType == 4
  7181. "
  7182. @click.stop="deleteWorks(w.wid)"
  7183. alt
  7184. />
  7185. </div>
  7186. <div class="worksName">
  7187. <div>{{ w.sName }}</div>
  7188. </div>
  7189. </div>
  7190. </div>
  7191. </div>
  7192. <div
  7193. v-if="tool.tool.indexOf(49) != -1"
  7194. class="xuan_right_box"
  7195. style="margin: 0 15px 0 25px; width: 93%"
  7196. >
  7197. <div
  7198. v-if="courseDetail.userid == userid"
  7199. style="
  7200. display: flex;
  7201. justify-content: flex-end;
  7202. margin-right: 10px;
  7203. "
  7204. >
  7205. <el-button
  7206. type="primary"
  7207. size="small"
  7208. @click="addTools(49, toolIndex, taskCount)"
  7209. >分组设置</el-button
  7210. >
  7211. </div>
  7212. <div
  7213. v-if="groupStudentUid[toolIndex]"
  7214. class="group_staic_box"
  7215. >
  7216. <div
  7217. v-for="(gp, gd) in tool.groupJson.group"
  7218. :key="gd"
  7219. class="group_staic"
  7220. >
  7221. <span> {{ gp.name }}</span>
  7222. <span>
  7223. 目前人数{{
  7224. groupStudentUid[toolIndex][gd].length
  7225. }}人</span
  7226. >
  7227. </div>
  7228. </div>
  7229. </div>
  7230. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7231. <div
  7232. class="zuoyeYulan"
  7233. v-if="
  7234. worksStudent.length &&
  7235. worksStudent[toolIndex].length > 0
  7236. "
  7237. >
  7238. <span class="worksTitle">作业预览</span>
  7239. </div>
  7240. <div>
  7241. <div
  7242. class="group_workBox"
  7243. v-for="(g, gindex) in tool.groupJson.group"
  7244. :key="gindex"
  7245. >
  7246. <div
  7247. class="group_box"
  7248. v-if="
  7249. groupStudentUid[toolIndex] &&
  7250. worksStudent[toolIndex] &&
  7251. (worksStudent[toolIndex][gindex].length ||
  7252. groupStudentUid[toolIndex][gindex].indexOf(
  7253. userid
  7254. ) != -1)
  7255. "
  7256. >
  7257. <div class="group_title">
  7258. <el-tooltip
  7259. class="item"
  7260. effect="light"
  7261. :content="g.name"
  7262. placement="top"
  7263. >
  7264. <div class="group_name">{{ g.name }}</div>
  7265. </el-tooltip>
  7266. <el-button
  7267. type="primary"
  7268. v-if="
  7269. groupStudentUid[toolIndex][gindex].indexOf(
  7270. userid
  7271. ) != -1
  7272. "
  7273. @click="groupUpload(toolIndex, taskCount, gindex)"
  7274. >上传作业</el-button
  7275. >
  7276. </div>
  7277. <div class="group_work">
  7278. <div
  7279. class="works"
  7280. style="
  7281. width: 200px;
  7282. height: 140px;
  7283. margin: 10px 10px 10px 0;
  7284. border-radius: 15px;
  7285. box-shadow: 0 0 6px 1px #dfdada;
  7286. "
  7287. v-for="(w, wIndex) in worksStudent[toolIndex][
  7288. gindex
  7289. ]"
  7290. :key="wIndex"
  7291. :class="w.type == 1 ? 'isTypeOne' : ''"
  7292. >
  7293. <div class="workImg" v-if="w.type == 0">
  7294. <img
  7295. :src="w.works"
  7296. @click="previewImg(w.works,w)"
  7297. alt
  7298. />
  7299. <div
  7300. class="answerScore"
  7301. v-if="w.score"
  7302. @click.stop="openScore(w)"
  7303. :class="{
  7304. rightW:
  7305. w.userid == userid ||
  7306. tType == 1 ||
  7307. tType == 4 ||
  7308. w.ateacher == userid,
  7309. }"
  7310. >
  7311. {{ JSON.parse(w.score).wScore }}分
  7312. </div>
  7313. <div
  7314. class="answerScore"
  7315. @click.stop="openScore(w)"
  7316. v-else-if="courseDetail.userid == userid"
  7317. :class="{
  7318. rightW:
  7319. w.userid == userid ||
  7320. tType == 1 ||
  7321. tType == 4 ||
  7322. w.ateacher == userid,
  7323. }"
  7324. >
  7325. 评分
  7326. </div>
  7327. <img
  7328. class="deleteImg"
  7329. src="../assets/deleteworks.png"
  7330. v-if="
  7331. w.userid == userid ||
  7332. tType == 1 ||
  7333. tType == 4
  7334. "
  7335. @click.stop="deleteWorks(w.wid)"
  7336. alt
  7337. />
  7338. </div>
  7339. <div class="workImg" v-if="w.type == 1">
  7340. <img
  7341. :src="word"
  7342. @click="openFile(w.works,w)"
  7343. alt
  7344. />
  7345. <!-- @click="openFile(w.works)" -->
  7346. <div
  7347. class="answerScore"
  7348. v-if="w.score"
  7349. @click.stop="openScore(w)"
  7350. :class="{
  7351. rightW:
  7352. w.userid == userid ||
  7353. tType == 1 ||
  7354. tType == 4 ||
  7355. w.ateacher == userid,
  7356. }"
  7357. >
  7358. {{ JSON.parse(w.score).wScore }}分
  7359. </div>
  7360. <div
  7361. class="answerScore"
  7362. @click.stop="openScore(w)"
  7363. v-else-if="courseDetail.userid == userid"
  7364. :class="{
  7365. rightW:
  7366. w.userid == userid ||
  7367. tType == 1 ||
  7368. tType == 4 ||
  7369. w.ateacher == userid,
  7370. }"
  7371. >
  7372. 评分
  7373. </div>
  7374. <img
  7375. class="deleteImg"
  7376. src="../assets/deleteworks.png"
  7377. v-if="
  7378. w.userid == userid ||
  7379. tType == 1 ||
  7380. tType == 4
  7381. "
  7382. @click.stop="deleteWorks(w.wid)"
  7383. alt
  7384. />
  7385. </div>
  7386. <div class="workImg" v-if="w.type == 3">
  7387. <img
  7388. style="cursor: pointer"
  7389. :src="video"
  7390. @click="openVideo(w)"
  7391. alt
  7392. />
  7393. <!-- @click="openVideo(w.works)" -->
  7394. <div
  7395. class="answerScore"
  7396. v-if="w.score"
  7397. @click.stop="openScore(w)"
  7398. :class="{
  7399. rightW:
  7400. w.userid == userid ||
  7401. tType == 1 ||
  7402. tType == 4 ||
  7403. w.ateacher == userid,
  7404. }"
  7405. >
  7406. {{ JSON.parse(w.score).wScore }}分
  7407. </div>
  7408. <div
  7409. class="answerScore"
  7410. @click.stop="openScore(w)"
  7411. v-else-if="courseDetail.userid == userid"
  7412. :class="{
  7413. rightW:
  7414. w.userid == userid ||
  7415. tType == 1 ||
  7416. tType == 4 ||
  7417. w.ateacher == userid,
  7418. }"
  7419. >
  7420. 评分
  7421. </div>
  7422. <img
  7423. class="deleteImg"
  7424. src="../assets/deleteworks.png"
  7425. v-if="
  7426. w.userid == userid ||
  7427. tType == 1 ||
  7428. tType == 4
  7429. "
  7430. @click.stop="deleteWorks(w.wid)"
  7431. alt
  7432. />
  7433. </div>
  7434. <div class="workImg" v-if="w.type == 12">
  7435. <img
  7436. style="cursor: pointer"
  7437. :src="word2"
  7438. @click="downloadFile(w.works,w.userid)"
  7439. alt
  7440. />
  7441. <!-- @click="openVideo(w.works)" -->
  7442. <div
  7443. class="answerScore"
  7444. v-if="w.score"
  7445. @click.stop="openScore(w)"
  7446. :class="{
  7447. rightW:
  7448. w.userid == userid ||
  7449. tType == 1 ||
  7450. tType == 4 ||
  7451. w.ateacher == userid,
  7452. }"
  7453. >
  7454. {{ JSON.parse(w.score).wScore }}分
  7455. </div>
  7456. <div
  7457. class="answerScore"
  7458. @click.stop="openScore(w)"
  7459. v-else-if="courseDetail.userid == userid"
  7460. :class="{
  7461. rightW:
  7462. w.userid == userid ||
  7463. tType == 1 ||
  7464. tType == 4 ||
  7465. w.ateacher == userid,
  7466. }"
  7467. >
  7468. 评分
  7469. </div>
  7470. <img
  7471. class="deleteImg"
  7472. src="../assets/deleteworks.png"
  7473. v-if="
  7474. w.userid == userid ||
  7475. tType == 1 ||
  7476. tType == 4
  7477. "
  7478. @click.stop="deleteWorks(w.wid)"
  7479. alt
  7480. />
  7481. </div>
  7482. <div class="comment" style="min-width: 200px">
  7483. <div class="worksName">
  7484. <div>{{ w.sName }}</div>
  7485. </div>
  7486. <div class="commentList">
  7487. <div class="commentList">
  7488. <div
  7489. class="commentImg"
  7490. @click="
  7491. isLikes(
  7492. w.wid,
  7493. userid,
  7494. 1,
  7495. null,
  7496. w.isLikes,
  7497. w.sName
  7498. )
  7499. "
  7500. >
  7501. <img
  7502. :src="
  7503. w.isLikes == true ? likes : noLikes
  7504. "
  7505. alt=""
  7506. />
  7507. </div>
  7508. <div>{{ w.likesCount }}</div>
  7509. </div>
  7510. <div
  7511. class="commentList"
  7512. style="margin-right: 15px"
  7513. >
  7514. <div
  7515. class="commentImg"
  7516. @click="
  7517. commentOther(
  7518. w,
  7519. toolIndex,
  7520. wIndex,
  7521. gindex
  7522. )
  7523. "
  7524. >
  7525. <img
  7526. src="../assets/icon/comment/comment.png"
  7527. alt=""
  7528. />
  7529. </div>
  7530. <div>{{ w.commentCount }}</div>
  7531. </div>
  7532. </div>
  7533. </div>
  7534. </div>
  7535. </div>
  7536. </div>
  7537. </div>
  7538. </div>
  7539. </div>
  7540. </div>
  7541. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7542. 上传文件
  7543. <input
  7544. type="file"
  7545. accept="image/png, image/gif, image/jpeg"
  7546. style="display: none"
  7547. @change="beforeUpload1($event, 2, index)"
  7548. />
  7549. </div>-->
  7550. </div>
  7551. </div>
  7552. <!-- <div
  7553. class="vedioBox"
  7554. style="margin-top: 10px"
  7555. v-if="
  7556. courseDetail.userid == userid ||
  7557. (courseDetail.course_teacher &&
  7558. courseDetail.course_teacher.indexOf(userid) != -1)
  7559. "
  7560. :style="{
  7561. borderRadius:
  7562. !(
  7563. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7564. .toolChoose[0].tool &&
  7565. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7566. .toolChoose[0].tool.length > 0
  7567. ) &&
  7568. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7569. .taskDetail == '' &&
  7570. vChapterData[taskCount].length == 0 &&
  7571. fileC[taskCount].length == 0
  7572. ? '0 0 20px 20px'
  7573. : '20px',
  7574. }"
  7575. >
  7576. <div
  7577. class="queTop"
  7578. @click="isClose = !isClose"
  7579. style="
  7580. padding: 15px 0 15px 37px;
  7581. justify-content: space-between;
  7582. "
  7583. >
  7584. <div class="queTopTitle">新增工具</div>
  7585. <div class="queTopRight">
  7586. <div class="queTopClose" v-if="isClose == 0">
  7587. 展开
  7588. <div class="closeImg">
  7589. <img src="../assets/icon/newIcon/close.png" alt="" />
  7590. </div>
  7591. </div>
  7592. <div class="queTopClose" v-if="isClose == 1">
  7593. 折叠
  7594. <div class="openImg">
  7595. <img src="../assets/icon/newIcon/open.png" alt="" />
  7596. </div>
  7597. </div>
  7598. <el-button
  7599. style="margin: 0 30px 0 auto"
  7600. type="primary"
  7601. size="small"
  7602. v-if="isClose == 1 && checktoolArray.length > 0"
  7603. @click.stop="addToolChoose"
  7604. >确定</el-button
  7605. >
  7606. </div>
  7607. </div>
  7608. <div
  7609. class="tool_work_box"
  7610. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7611. >
  7612. <div class="tool_box">
  7613. <div class="tool_type_box">
  7614. <div class="chooseWho">
  7615. <div
  7616. :class="toolType == 0 ? 'isChooseActive' : ''"
  7617. @click="(toolType = 0), $forceUpdate()"
  7618. >
  7619. 互动类
  7620. </div>
  7621. <div
  7622. :class="toolType == 1 ? 'isChooseActive' : ''"
  7623. @click="(toolType = 1), $forceUpdate()"
  7624. >
  7625. 思维类
  7626. </div>
  7627. <div
  7628. :class="toolType == 2 ? 'isChooseActive' : ''"
  7629. @click="(toolType = 2), $forceUpdate()"
  7630. >
  7631. 测评类
  7632. </div>
  7633. <div
  7634. :class="toolType == 3 ? 'isChooseActive' : ''"
  7635. @click="(toolType = 3), $forceUpdate()"
  7636. >
  7637. 编程类
  7638. </div>
  7639. <div
  7640. :class="toolType == 5 ? 'isChooseActive' : ''"
  7641. @click="(toolType = 5), $forceUpdate()"
  7642. >
  7643. 学科类
  7644. </div>
  7645. </div>
  7646. </div>
  7647. <div>
  7648. <div class="toolSort" v-if="toolType == 0">
  7649. <div class="tool">
  7650. <div class="whiteBIcon" @click="addTools2(10)">
  7651. <img
  7652. src="../assets/icon/thirdToolList/time.png"
  7653. alt
  7654. />
  7655. <div style="margin: 5px 0">倒计时</div>
  7656. </div>
  7657. <div class="check" @click="addTools2(10)">
  7658. <img
  7659. src="../assets/icon/checkNo.png"
  7660. alt
  7661. v-if="checktoolArray.indexOf(10) == -1"
  7662. />
  7663. <div class="checkDiv" v-else>
  7664. <img src="../assets/icon/checkedIs.png" alt /><span
  7665. >已选择</span
  7666. >
  7667. </div>
  7668. </div>
  7669. </div>
  7670. <div class="tool">
  7671. <div class="whiteBIcon" @click="addTools2(65)">
  7672. <img
  7673. src="../assets/icon/firstToolList/pickPeople.png"
  7674. alt
  7675. />
  7676. <div style="margin: 5px 0">挑人</div>
  7677. </div>
  7678. <div class="check" @click="addTools2(65)">
  7679. <img
  7680. src="../assets/icon/checkNo.png"
  7681. alt
  7682. v-if="checktoolArray.indexOf(65) == -1"
  7683. />
  7684. <div class="checkDiv" v-else>
  7685. <img src="../assets/icon/checkedIs.png" alt /><span
  7686. >已选择</span
  7687. >
  7688. </div>
  7689. </div>
  7690. </div>
  7691. </div>
  7692. <div class="toolSort" v-if="toolType == 1">
  7693. <div class="tool">
  7694. <div class="whiteBIcon" @click="addTools2(7)">
  7695. <img
  7696. src="../assets/icon/secondToolList/mindNetwork.png"
  7697. alt
  7698. />
  7699. <div style="margin: 5px 0">思维网格</div>
  7700. </div>
  7701. <div class="check" @click="addTools2(7)">
  7702. <img
  7703. src="../assets/icon/checkNo.png"
  7704. alt
  7705. v-if="checktoolArray.indexOf(7) == -1"
  7706. />
  7707. <div class="checkDiv" v-else>
  7708. <img src="../assets/icon/checkedIs.png" alt /><span
  7709. >已选择</span
  7710. >
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div class="tool">
  7715. <div class="whiteBIcon" @click="addTools2(1)">
  7716. <img
  7717. src="../assets/icon/secondToolList/whiteBoard.png"
  7718. alt
  7719. />
  7720. <div style="margin: 5px 0">电子白板</div>
  7721. </div>
  7722. <div class="check" @click="addTools2(1)">
  7723. <img
  7724. src="../assets/icon/checkNo.png"
  7725. alt
  7726. v-if="checktoolArray.indexOf(1) == -1"
  7727. />
  7728. <div class="checkDiv" v-else>
  7729. <img src="../assets/icon/checkedIs.png" alt /><span
  7730. >已选择</span
  7731. >
  7732. </div>
  7733. </div>
  7734. </div>
  7735. <div class="tool">
  7736. <div class="whiteBIcon" @click="addTools2(52)">
  7737. <img
  7738. src="../assets/icon/fourthToolList/text.png"
  7739. alt
  7740. />
  7741. <div style="margin: 5px 0">文档</div>
  7742. </div>
  7743. <div class="check" @click="addTools2(52)">
  7744. <img
  7745. src="../assets/icon/checkNo.png"
  7746. alt
  7747. v-if="checktoolArray.indexOf(52) == -1"
  7748. />
  7749. <div class="checkDiv" v-else>
  7750. <img src="../assets/icon/checkedIs.png" alt /><span
  7751. >已选择</span
  7752. >
  7753. </div>
  7754. </div>
  7755. </div>
  7756. <div class="tool">
  7757. <div class="whiteBIcon" @click="addTools2(3)">
  7758. <img
  7759. src="../assets/icon/secondToolList/mindMapping.png"
  7760. alt
  7761. />
  7762. <div style="margin: 5px 0">思维导图</div>
  7763. </div>
  7764. <div class="check" @click="addTools2(3)">
  7765. <img
  7766. src="../assets/icon/checkNo.png"
  7767. alt
  7768. v-if="checktoolArray.indexOf(3) == -1"
  7769. />
  7770. <div class="checkDiv" v-else>
  7771. <img src="../assets/icon/checkedIs.png" alt /><span
  7772. >已选择</span
  7773. >
  7774. </div>
  7775. </div>
  7776. </div>
  7777. <div class="tool">
  7778. <div class="whiteBIcon" @click="addTools2(48)">
  7779. <img
  7780. src="../assets/icon/fourthToolList/table.png"
  7781. alt
  7782. />
  7783. <div style="margin: 5px 0">表格</div>
  7784. </div>
  7785. <div class="check" @click="addTools2(48)">
  7786. <img
  7787. src="../assets/icon/checkNo.png"
  7788. alt
  7789. v-if="checktoolArray.indexOf(48) == -1"
  7790. />
  7791. <div class="checkDiv" v-else>
  7792. <img src="../assets/icon/checkedIs.png" alt /><span
  7793. >已选择</span
  7794. >
  7795. </div>
  7796. </div>
  7797. </div>
  7798. </div>
  7799. <div class="toolSort" v-if="toolType == 6">
  7800. <div v-show="tooC == 49">
  7801. <img
  7802. @click="addTools(tooC, toolIndex, taskCount)"
  7803. src="../assets/icon/fourthToolList/group.png"
  7804. alt
  7805. />
  7806. <div style="margin: 5px 0">学生分组</div>
  7807. </div>
  7808. </div>
  7809. <div class="toolSort" v-if="toolType == 2">
  7810. <div class="tool">
  7811. <div class="whiteBIcon" @click="addTools2(16)">
  7812. <img
  7813. src="../assets/icon/thirdToolList/work.png"
  7814. alt
  7815. />
  7816. <div style="margin: 5px 0">作业提交</div>
  7817. </div>
  7818. <div class="check" @click="addTools2(16)">
  7819. <img
  7820. src="../assets/icon/checkNo.png"
  7821. alt
  7822. v-if="checktoolArray.indexOf(16) == -1"
  7823. />
  7824. <div class="checkDiv" v-else>
  7825. <img src="../assets/icon/checkedIs.png" alt /><span
  7826. >已选择</span
  7827. >
  7828. </div>
  7829. </div>
  7830. </div>
  7831. <div class="tool">
  7832. <div class="whiteBIcon" @click="addTools2(50)">
  7833. <img
  7834. src="../assets/icon/thirdToolList/plwork.png"
  7835. alt
  7836. />
  7837. <div style="margin: 5px 0">批量上传</div>
  7838. </div>
  7839. <div class="check" @click="addTools2(50)">
  7840. <img
  7841. src="../assets/icon/checkNo.png"
  7842. alt
  7843. v-if="checktoolArray.indexOf(50) == -1"
  7844. />
  7845. <div class="checkDiv" v-else>
  7846. <img src="../assets/icon/checkedIs.png" alt /><span
  7847. >已选择</span
  7848. >
  7849. </div>
  7850. </div>
  7851. </div>
  7852. </div>
  7853. <div class="toolSort" v-if="toolType == 3">
  7854. <div class="tool">
  7855. <div class="whiteBIcon" @click="addTools2(18)">
  7856. <img
  7857. src="../assets/icon/thirdToolList/trainPlatform.png"
  7858. alt
  7859. />
  7860. <div style="margin: 5px 0">训练平台</div>
  7861. </div>
  7862. <div class="check" @click="addTools2(18)">
  7863. <img
  7864. src="../assets/icon/checkNo.png"
  7865. alt
  7866. v-if="checktoolArray.indexOf(18) == -1"
  7867. />
  7868. <div class="checkDiv" v-else>
  7869. <img src="../assets/icon/checkedIs.png" alt /><span
  7870. >已选择</span
  7871. >
  7872. </div>
  7873. </div>
  7874. </div>
  7875. <div class="tool">
  7876. <div class="whiteBIcon" @click="addTools2(21)">
  7877. <img
  7878. src="../assets/icon/fourthToolList/program.png"
  7879. alt
  7880. />
  7881. <div style="margin: 5px 0">AIoT Blockly</div>
  7882. </div>
  7883. <div class="check" @click="addTools2(21)">
  7884. <img
  7885. src="../assets/icon/checkNo.png"
  7886. alt
  7887. v-if="checktoolArray.indexOf(21) == -1"
  7888. />
  7889. <div class="checkDiv" v-else>
  7890. <img src="../assets/icon/checkedIs.png" alt /><span
  7891. >已选择</span
  7892. >
  7893. </div>
  7894. </div>
  7895. </div>
  7896. <div class="tool">
  7897. <div class="whiteBIcon" @click="addTools2(23)">
  7898. <img
  7899. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7900. alt
  7901. />
  7902. <div style="margin: 5px 0">AI Python</div>
  7903. </div>
  7904. <div class="check" @click="addTools2(23)">
  7905. <img
  7906. src="../assets/icon/checkNo.png"
  7907. alt
  7908. v-if="checktoolArray.indexOf(23) == -1"
  7909. />
  7910. <div class="checkDiv" v-else>
  7911. <img src="../assets/icon/checkedIs.png" alt /><span
  7912. >已选择</span
  7913. >
  7914. </div>
  7915. </div>
  7916. </div>
  7917. <div class="tool">
  7918. <div class="whiteBIcon" @click="addTools2(24)">
  7919. <img
  7920. src="../assets/icon/fourthToolList/AIprogram.png"
  7921. alt
  7922. />
  7923. <div style="margin: 5px 0">AI Blockly</div>
  7924. </div>
  7925. <div class="check" @click="addTools2(24)">
  7926. <img
  7927. src="../assets/icon/checkNo.png"
  7928. alt
  7929. v-if="checktoolArray.indexOf(24) == -1"
  7930. />
  7931. <div class="checkDiv" v-else>
  7932. <img src="../assets/icon/checkedIs.png" alt /><span
  7933. >已选择</span
  7934. >
  7935. </div>
  7936. </div>
  7937. </div>
  7938. <div class="tool">
  7939. <div class="whiteBIcon" @click="addTools2(32)">
  7940. <img
  7941. src="../assets/icon/thirdToolList/code.png"
  7942. alt
  7943. />
  7944. <div style="margin: 5px 0">源码编辑</div>
  7945. </div>
  7946. <div class="check" @click="addTools2(32)">
  7947. <img
  7948. src="../assets/icon/checkNo.png"
  7949. alt
  7950. v-if="checktoolArray.indexOf(32) == -1"
  7951. />
  7952. <div class="checkDiv" v-else>
  7953. <img src="../assets/icon/checkedIs.png" alt /><span
  7954. >已选择</span
  7955. >
  7956. </div>
  7957. </div>
  7958. </div>
  7959. <div class="tool">
  7960. <div class="whiteBIcon" @click="addTools2(57)">
  7961. <img
  7962. src="../assets/icon/fourthToolList/cocopi.png"
  7963. alt
  7964. />
  7965. <div style="margin: 5px 0">CocoPi</div>
  7966. </div>
  7967. <div class="check" @click="addTools2(57)">
  7968. <img
  7969. src="../assets/icon/checkNo.png"
  7970. alt
  7971. v-if="checktoolArray.indexOf(57) == -1"
  7972. />
  7973. <div class="checkDiv" v-else>
  7974. <img src="../assets/icon/checkedIs.png" alt /><span
  7975. >已选择</span
  7976. >
  7977. </div>
  7978. </div>
  7979. </div>
  7980. <div class="tool">
  7981. <div class="whiteBIcon" @click="addTools2(63)">
  7982. <img
  7983. src="../assets/icon/fourthToolList/Wood.png"
  7984. alt
  7985. />
  7986. <div style="margin: 5px 0">海龟编程</div>
  7987. </div>
  7988. <div class="check" @click="addTools2(63)">
  7989. <img
  7990. src="../assets/icon/checkNo.png"
  7991. alt
  7992. v-if="checktoolArray.indexOf(63) == -1"
  7993. />
  7994. <div class="checkDiv" v-else>
  7995. <img src="../assets/icon/checkedIs.png" alt /><span
  7996. >已选择</span
  7997. >
  7998. </div>
  7999. </div>
  8000. </div>
  8001. </div>
  8002. <div class="toolSort" v-if="toolType == 5">
  8003. <div class="tool">
  8004. <div class="whiteBIcon" @click="addTools2(28)">
  8005. <img
  8006. src="../assets/icon/secondToolList/translation.png"
  8007. alt
  8008. />
  8009. <div style="margin: 5px 0">翻译</div>
  8010. </div>
  8011. <div class="check" @click="addTools2(28)">
  8012. <img
  8013. src="../assets/icon/checkNo.png"
  8014. alt
  8015. v-if="checktoolArray.indexOf(28) == -1"
  8016. />
  8017. <div class="checkDiv" v-else>
  8018. <img src="../assets/icon/checkedIs.png" alt /><span
  8019. >已选择</span
  8020. >
  8021. </div>
  8022. </div>
  8023. </div>
  8024. <div class="tool">
  8025. <div class="whiteBIcon" @click="addTools2(31)">
  8026. <img
  8027. src="../assets/icon/secondToolList/networkPanel.png"
  8028. alt
  8029. />
  8030. <div style="margin: 5px 0">数字画板</div>
  8031. </div>
  8032. <div class="check" @click="addTools2(31)">
  8033. <img
  8034. src="../assets/icon/checkNo.png"
  8035. alt
  8036. v-if="checktoolArray.indexOf(31) == -1"
  8037. />
  8038. <div class="checkDiv" v-else>
  8039. <img src="../assets/icon/checkedIs.png" alt /><span
  8040. >已选择</span
  8041. >
  8042. </div>
  8043. </div>
  8044. </div>
  8045. <div class="tool">
  8046. <div class="whiteBIcon" @click="addTools2(39)">
  8047. <img
  8048. src="../assets/icon/secondToolList/GeoGebra.png"
  8049. alt
  8050. />
  8051. <div style="margin: 5px 0">GeoGebra</div>
  8052. </div>
  8053. <div class="check" @click="addTools2(39)">
  8054. <img
  8055. src="../assets/icon/checkNo.png"
  8056. alt
  8057. v-if="checktoolArray.indexOf(39) == -1"
  8058. />
  8059. <div class="checkDiv" v-else>
  8060. <img src="../assets/icon/checkedIs.png" alt /><span
  8061. >已选择</span
  8062. >
  8063. </div>
  8064. </div>
  8065. </div>
  8066. <div class="tool">
  8067. <div class="whiteBIcon" @click="addTools2(66)">
  8068. <img
  8069. src="../assets/icon/secondToolList/formulaEdi.png"
  8070. alt
  8071. />
  8072. <div style="margin: 5px 0">公式编辑</div>
  8073. </div>
  8074. <div class="check" @click="addTools2(66)">
  8075. <img
  8076. src="../assets/icon/checkNo.png"
  8077. alt
  8078. v-if="checktoolArray.indexOf(66) == -1"
  8079. />
  8080. <div class="checkDiv" v-else>
  8081. <img src="../assets/icon/checkedIs.png" alt /><span
  8082. >已选择</span
  8083. >
  8084. </div>
  8085. </div>
  8086. </div>
  8087. <div class="tool">
  8088. <div class="whiteBIcon" @click="addTools2(67)">
  8089. <img
  8090. src="../assets/icon/secondToolList/molStr.png"
  8091. alt
  8092. />
  8093. <div style="margin: 5px 0">分子结构</div>
  8094. </div>
  8095. <div class="check" @click="addTools2(67)">
  8096. <img
  8097. src="../assets/icon/checkNo.png"
  8098. alt
  8099. v-if="checktoolArray.indexOf(67) == -1"
  8100. />
  8101. <div class="checkDiv" v-else>
  8102. <img src="../assets/icon/checkedIs.png" alt /><span
  8103. >已选择</span
  8104. >
  8105. </div>
  8106. </div>
  8107. </div>
  8108. <div class="tool">
  8109. <div class="whiteBIcon" @click="addTools2(68)">
  8110. <img
  8111. src="../assets/icon/secondToolList/timeAxis.png"
  8112. alt
  8113. />
  8114. <div style="margin: 5px 0">时间轴</div>
  8115. </div>
  8116. <div class="check" @click="addTools2(68)">
  8117. <img
  8118. src="../assets/icon/checkNo.png"
  8119. alt
  8120. v-if="checktoolArray.indexOf(68) == -1"
  8121. />
  8122. <div class="checkDiv" v-else>
  8123. <img src="../assets/icon/checkedIs.png" alt /><span
  8124. >已选择</span
  8125. >
  8126. </div>
  8127. </div>
  8128. </div>
  8129. </div>
  8130. <div class="toolSort" v-if="toolType == 7">
  8131. <div class="tool">
  8132. <div class="whiteBIcon" @click="addTools2(40)">
  8133. <img
  8134. src="../assets/icon/secondToolList/eval.png"
  8135. alt
  8136. />
  8137. <div style="margin: 5px 0">个人评价</div>
  8138. </div>
  8139. <div class="check" @click="addTools2(40)">
  8140. <img
  8141. src="../assets/icon/checkNo.png"
  8142. alt
  8143. v-if="checktoolArray.indexOf(40) == -1"
  8144. />
  8145. <div class="checkDiv" v-else>
  8146. <img src="../assets/icon/checkedIs.png" alt /><span
  8147. >已选择</span
  8148. >
  8149. </div>
  8150. </div>
  8151. </div>
  8152. </div>
  8153. <div class="toolSort" v-if="toolType == 4">
  8154. <div class="tool">
  8155. <div class="whiteBIcon" @click="addTools2(26)">
  8156. <img
  8157. src="../assets/icon/thirdToolList/courseDesign.png"
  8158. alt
  8159. />
  8160. <div style="margin: 5px 0">课程设计</div>
  8161. </div>
  8162. <div class="check" @click="addTools2(26)">
  8163. <img
  8164. src="../assets/icon/checkNo.png"
  8165. alt
  8166. v-if="checktoolArray.indexOf(26) == -1"
  8167. />
  8168. <div class="checkDiv" v-else>
  8169. <img src="../assets/icon/checkedIs.png" alt /><span
  8170. >已选择</span
  8171. >
  8172. </div>
  8173. </div>
  8174. </div>
  8175. <div class="tool">
  8176. <div class="whiteBIcon" @click="addTools2(25)">
  8177. <img
  8178. src="../assets/icon/thirdToolList/evalua.png"
  8179. alt
  8180. />
  8181. <div style="margin: 5px 0">目标管理</div>
  8182. </div>
  8183. <div class="check" @click="addTools2(25)">
  8184. <img
  8185. src="../assets/icon/checkNo.png"
  8186. alt
  8187. v-if="checktoolArray.indexOf(25) == -1"
  8188. />
  8189. <div class="checkDiv" v-else>
  8190. <img src="../assets/icon/checkedIs.png" alt /><span
  8191. >已选择</span
  8192. >
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. </div>
  8199. </div>
  8200. </div> -->
  8201. <div
  8202. class="vedioBox"
  8203. style="margin-top: 10px; border-radius: 20px"
  8204. v-if="
  8205. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8206. .eList &&
  8207. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8208. .eList.length &&
  8209. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8210. .eList.length > 0 &&
  8211. tType != 2
  8212. "
  8213. >
  8214. <div
  8215. class="queTop"
  8216. style="
  8217. font-size: 20px;
  8218. padding: 15px 0 15px 37px;
  8219. font-weight: bold;
  8220. "
  8221. >
  8222. <!-- <div class="question" style="width: 30px">
  8223. <img src="../assets/icon/toolIcon.png" alt />
  8224. </div>
  8225. <div class="queTitle">
  8226. <div>工具</div>
  8227. </div>-->
  8228. 评一评
  8229. </div>
  8230. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8231. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8232. <el-table
  8233. :data="
  8234. chapInfoList[courseType].chapterInfo[0].taskJson[
  8235. taskCount
  8236. ].eList
  8237. "
  8238. :header-cell-style="{ background: '#F0F4FA' }"
  8239. :row-class-name="tableRowClassName"
  8240. border
  8241. stripe
  8242. style="width: 100%"
  8243. >
  8244. <el-table-column
  8245. label="评价名称"
  8246. align="center"
  8247. >
  8248. <template slot-scope="scope"
  8249. ><div>{{ scope.row.value }}</div></template
  8250. >
  8251. </el-table-column>
  8252. <el-table-column
  8253. label="评价描述"
  8254. align="center"
  8255. >
  8256. <template slot-scope="scope"
  8257. ><div>
  8258. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8259. </div></template
  8260. >
  8261. </el-table-column>
  8262. <el-table-column label="目标" align="center">
  8263. <template slot-scope="scope"
  8264. ><div>
  8265. {{
  8266. scope.row.target
  8267. ? scope.row.target[scope.row.target.length - 1]
  8268. : "-"
  8269. }}
  8270. </div></template
  8271. ></el-table-column
  8272. >
  8273. </el-table>
  8274. <!-- <div
  8275. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8276. .chapterInfo[0].taskJson[taskCount].eList"
  8277. :key="eIndex"
  8278. class="elist_input_box"
  8279. >
  8280. <div style="width: 95%">
  8281. <div
  8282. style="
  8283. display: flex;
  8284. flex-direction: row;
  8285. flex-wrap: nowrap;
  8286. align-items: center;
  8287. "
  8288. >
  8289. <div style="max-width: calc(100% - 285px)">
  8290. <span>{{ eItem.value }}</span>
  8291. </div>
  8292. <div
  8293. style="
  8294. padding-left: 25px;
  8295. display: flex;
  8296. flex-direction: row;
  8297. align-items: center;
  8298. "
  8299. >
  8300. <el-rate
  8301. v-model="eItem.score"
  8302. :colors="colors"
  8303. disabled
  8304. ></el-rate>
  8305. </div>
  8306. </div>
  8307. <div class="elist_inptu_text" style="padding-left: 10px">
  8308. <span v-if="eItem.detail != ''">{{
  8309. eItem.detail
  8310. }}</span>
  8311. <span v-else style="color: #b2b1b3; font-size: 14px"
  8312. >暂无描述...</span
  8313. >
  8314. </div>
  8315. </div>
  8316. </div> -->
  8317. </div>
  8318. <div
  8319. v-if="evalua"
  8320. style="
  8321. border: 1px solid #e5e5e5;
  8322. max-width: 650px;
  8323. width: 100%;
  8324. margin-top: 20px;
  8325. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8326. "
  8327. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8328. >
  8329. <div class="e_add_top">
  8330. <div class="e_add_title" style="width: 100%">
  8331. <!-- <span>目标管理名称</span> -->
  8332. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8333. <img
  8334. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8335. src="../assets/line.png"
  8336. class="cru_line"
  8337. style="
  8338. width: 125px;
  8339. height: 20px;
  8340. bottom: -10px;
  8341. left: 5px;
  8342. "
  8343. />
  8344. <!-- <el-input
  8345. v-model="eTitle"
  8346. placeholder="请输入名称"
  8347. @change="setMindData"
  8348. ></el-input>-->
  8349. <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>
  8350. <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>
  8351. </div>
  8352. </div>
  8353. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8354. <div class="e_add_list_pbox">
  8355. <div class="e_add_list_pbox_title">
  8356. <!-- <span class="type_title">切换模式</span> -->
  8357. <div class="type_content">
  8358. <span
  8359. :class="{ active: typeMode == 1 }"
  8360. @click="typeMode = 1"
  8361. >目标树</span
  8362. >
  8363. <span
  8364. :class="{ active: typeMode == 2 }"
  8365. @click="typeMode = 2"
  8366. >目标罗盘</span
  8367. >
  8368. <!-- <span
  8369. :class="{ active: typeMode == 3 }"
  8370. @click="typeMode = 3"
  8371. >目标看板</span
  8372. > -->
  8373. </div>
  8374. </div>
  8375. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8376. <Mind
  8377. :showBar="false"
  8378. :mindData="data"
  8379. style="width: 100%"
  8380. v-show="typeMode == 1"
  8381. ></Mind>
  8382. <Sunburst
  8383. :Josn="eJson"
  8384. :num="eJSONNum"
  8385. style="width: 100%"
  8386. v-if="typeMode == 2"
  8387. ></Sunburst>
  8388. <SeeBoard
  8389. :Josn="eJson"
  8390. :num="eJSONNum"
  8391. :ename="eTitle"
  8392. style="width: 100%"
  8393. v-if="typeMode == 3"
  8394. >
  8395. </SeeBoard>
  8396. </div>
  8397. </div>
  8398. </div>
  8399. </div>
  8400. </div>
  8401. </div>
  8402. <!-- <div
  8403. class="project_box"
  8404. style="margin-top: 15px; padding-bottom: 30px"
  8405. >
  8406. <div
  8407. style="
  8408. display: flex;
  8409. flex-wrap: nowrap;
  8410. flex-direction: column;
  8411. position: relative;
  8412. "
  8413. >
  8414. <div class="queTop">
  8415. <div class="question">
  8416. <img src="../assets/icon/homeWork.png" alt="" />
  8417. </div>
  8418. <div class="queTitle">
  8419. <div>作业提交<span>(提交图文视频等)</span></div>
  8420. <div>:任务:{{ task.task }}</div>
  8421. </div>
  8422. </div>
  8423. <div class="ediBottom">
  8424. <div
  8425. class="addEditor"
  8426. style="margin-top: 23px"
  8427. @click="openAddWork"
  8428. v-if="!isNoHomeWork"
  8429. >
  8430. 选择文件
  8431. </div>
  8432. <div
  8433. class="addEditor"
  8434. style="margin-top: 23px"
  8435. @click="openAddWork"
  8436. v-else
  8437. >
  8438. 已提交
  8439. </div>
  8440. </div>
  8441. </div>
  8442. </div>-->
  8443. </div>
  8444. </div>
  8445. <el-dialog
  8446. title="作业提交"
  8447. :visible.sync="dialogVisible"
  8448. :append-to-body="true"
  8449. width="500px"
  8450. :before-close="handleClose"
  8451. class="dialog_change"
  8452. >
  8453. <div class="marginT">
  8454. <div>上传文件</div>
  8455. <div style="display: flex; gap: 10px">
  8456. <div
  8457. class="chapter_add"
  8458. @click="addImg($event)"
  8459. v-if="studyJuri[0].cover.length == 0"
  8460. >
  8461. <div class="up_photo">
  8462. <img src="../assets/icon/uploadImg.png" alt />
  8463. </div>
  8464. <!-- <input
  8465. type="file"
  8466. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8467. style="display: none"
  8468. @change="beforeUpload1($event, 1)"
  8469. /> -->
  8470. <input
  8471. type="file"
  8472. accept="*"
  8473. style="display: none"
  8474. @change="beforeUpload1($event, 1)"
  8475. />
  8476. <!-- <input
  8477. type="file"
  8478. accept="image/*"
  8479. capture="camera"
  8480. style="display: none"
  8481. @change="beforeUpload1($event, 1)"
  8482. /> -->
  8483. </div>
  8484. <div
  8485. class="chapter_add"
  8486. @click="addImg($event)"
  8487. v-if="studyJuri[0].cover.length == 0"
  8488. >
  8489. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8490. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8491. </div>
  8492. <input
  8493. type="file"
  8494. accept="image/*"
  8495. capture="camera"
  8496. style="display: none"
  8497. @change="beforeUpload1($event, 1)"
  8498. />
  8499. </div>
  8500. </div>
  8501. <div
  8502. class="chapter_add"
  8503. style="
  8504. display: flex;
  8505. width: 100%;
  8506. flex-direction: row;
  8507. flex-wrap: wrap;
  8508. justify-content: flex-start;
  8509. padding: 15px 0;
  8510. "
  8511. v-if="studyJuri[0].cover.length > 0"
  8512. >
  8513. <div class="upCover">
  8514. <img
  8515. :src="studyJuri[0].cover[0].url"
  8516. alt
  8517. v-if="fileType == 0"
  8518. />
  8519. <img :src="word" alt v-else-if="fileType == 1" />
  8520. <img :src="video" alt v-else-if="fileType == 2" />
  8521. <img :src="word2" alt v-else-if="fileType == 3" />
  8522. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8523. <div class="deleteWord" @click="clean(1)">
  8524. <img src="../assets/icon/deleteWorks.png" alt />
  8525. </div>
  8526. </div>
  8527. </div>
  8528. </div>
  8529. <div
  8530. class="upload_send"
  8531. @click="addCourseWorks(taskCount)"
  8532. v-if="!proVisible"
  8533. >
  8534. 提交
  8535. </div>
  8536. </el-dialog>
  8537. </div>
  8538. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8539. <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(
  8540. '/courseDetail?userid=' +
  8541. userid +
  8542. '&oid=' +
  8543. oid +
  8544. '&org=' +
  8545. org +
  8546. '&cid=' +
  8547. classId +
  8548. '&courseId=' +
  8549. id +
  8550. '&tType=' +
  8551. tType +
  8552. '&screenType=' +
  8553. screenType+
  8554. '&role=' +
  8555. role
  8556. )"></classRoomHelper>
  8557. <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(
  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. )"></studentClassRoomHelper>
  8575. </div>
  8576. <div
  8577. class="pButton"
  8578. @click="(pzDialog = true), selectPz()"
  8579. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8580. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8581. >
  8582. <!-- 批 -->
  8583. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8584. </div>
  8585. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8586. <div class="pzTop2">
  8587. <!-- <div>评论</div>
  8588. <div @click="pzDialog = false">
  8589. <img src="../assets/close1.png" alt="" />
  8590. </div> -->
  8591. <div class="checkbox">
  8592. <!-- <div class="check" style="font-size: 25px; position: unset">
  8593. 评论
  8594. </div> -->
  8595. <div class="cb-tabList">
  8596. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8597. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8598. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8599. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8600. </div>
  8601. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8602. <el-option label="时间降序" :value="1"></el-option>
  8603. <el-option label="时间升序" :value="2"></el-option>
  8604. <el-option label="我的评课" :value="3"></el-option>
  8605. </el-select>
  8606. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8607. </div>
  8608. </div>
  8609. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8610. <div class="pzListBox" v-if="pzList && pzList.length">
  8611. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8612. <div class="pzNavTop">
  8613. <div>评</div>
  8614. <div>
  8615. {{
  8616. pz.username && pz.username.length > 5
  8617. ? pz.username.substring(0, 5) + "..."
  8618. : pz.username
  8619. }}的评论
  8620. </div>
  8621. <div
  8622. class="pzDelete"
  8623. v-if="pz.userid == userid"
  8624. @click="deletePz(pz.id)"
  8625. >
  8626. 删除
  8627. </div>
  8628. </div>
  8629. <div
  8630. @click="checkImg(getImgList(pz.content))"
  8631. class="pzContent cont"
  8632. v-html="pz.content"
  8633. v-if="pz.type == '1'"
  8634. ></div>
  8635. <div class="pzContent" v-if="pz.type == '2'">
  8636. <audio :src="pz.content" controls="controls" ref="audio">
  8637. Your browser does not support the audio element.
  8638. </audio>
  8639. </div>
  8640. <div class="pzContent" v-if="pz.type == '3'">
  8641. <img
  8642. :src="pz.content"
  8643. style="width: 90%; margin: 0 auto; display: block"
  8644. @click="previewImg(pz.content)"
  8645. />
  8646. </div>
  8647. <div class="timeAndReply">
  8648. <div class="time">
  8649. {{ pz.time }}
  8650. </div>
  8651. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8652. </div>
  8653. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8654. <div
  8655. v-for="(h, hIndex) in pz.hfList"
  8656. :key="hIndex"
  8657. class="hfItem"
  8658. >
  8659. <div class="whoReplyWho">
  8660. <div class="hfName">{{ h.username }}</div>
  8661. <div class="hfImg">
  8662. <img src="../assets/icon/newIcons/right.png" alt="" />
  8663. </div>
  8664. <div class="hfName">{{ pz.username }}</div>
  8665. </div>
  8666. <div class="hfContent" v-html="h.content"></div>
  8667. <div class="hfBottom">
  8668. <div class="hfTime">{{ h.time }}</div>
  8669. <div
  8670. class="deleteHfItem"
  8671. @click="deleteReply(h.id)"
  8672. v-if="userid == h.userid"
  8673. >
  8674. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8675. </div>
  8676. </div>
  8677. </div>
  8678. </div>
  8679. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8680. <div class="replyInput">
  8681. <el-input v-model="reply[pzIndex]"></el-input>
  8682. </div>
  8683. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8684. </div> -->
  8685. </div>
  8686. </div>
  8687. <div class="noPz" v-else>
  8688. <img src="../assets/icon/noPz.png" alt="" />
  8689. </div>
  8690. <div class="addPzButton">
  8691. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8692. 添加评论
  8693. </div>
  8694. <!-- <div class="img1">
  8695. <div @click="(addPzDialog = true), (pzType = 2)">
  8696. <img src="../assets/audio.png" /><span>音频</span>
  8697. </div>
  8698. </div> -->
  8699. </div>
  8700. </div>
  8701. <div class="scoreList" v-if="commentTagShow==1">
  8702. <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"/>
  8703. </div>
  8704. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8705. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8706. </div>
  8707. </div>
  8708. <div
  8709. v-if="toolDialogVisible == true"
  8710. class="toolMask"
  8711. @click="toolDialogVisible = false"
  8712. ></div>
  8713. <div v-if="toolDialogVisible == true" class="addToolCss">
  8714. <div class="toolTop">
  8715. <div style="font-weight: bold">新增工具</div>
  8716. <div @click="toolDialogVisible = false">
  8717. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8718. </div>
  8719. </div>
  8720. <div class="tool_box">
  8721. <div class="tool_type_box">
  8722. <div class="chooseWho">
  8723. <div
  8724. :class="toolType == 0 ? 'isChooseActive' : ''"
  8725. @click="(toolType = 0), $forceUpdate()"
  8726. >
  8727. 互动类
  8728. </div>
  8729. <div
  8730. :class="toolType == 1 ? 'isChooseActive' : ''"
  8731. @click="(toolType = 1), $forceUpdate()"
  8732. >
  8733. 思维类
  8734. </div>
  8735. <div
  8736. :class="toolType == 2 ? 'isChooseActive' : ''"
  8737. @click="(toolType = 2), $forceUpdate()"
  8738. >
  8739. 测评类
  8740. </div>
  8741. <div
  8742. :class="toolType == 3 ? 'isChooseActive' : ''"
  8743. @click="(toolType = 3), $forceUpdate()"
  8744. >
  8745. 编程类
  8746. </div>
  8747. <div
  8748. :class="toolType == 5 ? 'isChooseActive' : ''"
  8749. @click="(toolType = 5), $forceUpdate()"
  8750. >
  8751. 学科类
  8752. </div>
  8753. </div>
  8754. </div>
  8755. <div>
  8756. <div class="toolSort" v-if="toolType == 0">
  8757. <div
  8758. class="tool"
  8759. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8760. @click="addTools2(10)"
  8761. >
  8762. <div class="whiteBIcon">
  8763. <img src="../assets/icon/thirdToolList/time.png" alt />
  8764. <div style="margin: 5px 0">倒计时</div>
  8765. </div>
  8766. <div class="check">
  8767. <div
  8768. v-if="checktoolArray.indexOf(10) == -1"
  8769. class="noChoose"
  8770. ></div>
  8771. <div v-else class="isChoose"></div>
  8772. </div>
  8773. </div>
  8774. <div
  8775. class="tool"
  8776. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8777. @click="addTools2(65)"
  8778. >
  8779. <div class="whiteBIcon">
  8780. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8781. <div style="margin: 5px 0">挑人</div>
  8782. </div>
  8783. <div class="check">
  8784. <div
  8785. v-if="checktoolArray.indexOf(65) == -1"
  8786. class="noChoose"
  8787. ></div>
  8788. <div v-else class="isChoose"></div>
  8789. </div>
  8790. </div>
  8791. </div>
  8792. <div class="toolSort" v-if="toolType == 1">
  8793. <div
  8794. class="tool"
  8795. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8796. @click="addTools2(7)"
  8797. >
  8798. <div class="whiteBIcon">
  8799. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8800. <div style="margin: 5px 0">思维网格</div>
  8801. </div>
  8802. <div class="check">
  8803. <div
  8804. v-if="checktoolArray.indexOf(7) == -1"
  8805. class="noChoose"
  8806. ></div>
  8807. <div v-else class="isChoose"></div>
  8808. </div>
  8809. </div>
  8810. <div
  8811. class="tool"
  8812. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8813. @click="addTools2(1)"
  8814. >
  8815. <div class="whiteBIcon">
  8816. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8817. <div style="margin: 5px 0">电子白板</div>
  8818. </div>
  8819. <div class="check">
  8820. <div
  8821. v-if="checktoolArray.indexOf(1) == -1"
  8822. class="noChoose"
  8823. ></div>
  8824. <div v-else class="isChoose"></div>
  8825. </div>
  8826. </div>
  8827. <div
  8828. class="tool"
  8829. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8830. @click="addTools2(52)"
  8831. >
  8832. <div class="whiteBIcon">
  8833. <img src="../assets/icon/fourthToolList/text.png" alt />
  8834. <div style="margin: 5px 0">文档</div>
  8835. </div>
  8836. <div class="check">
  8837. <div
  8838. v-if="checktoolArray.indexOf(52) == -1"
  8839. class="noChoose"
  8840. ></div>
  8841. <div v-else class="isChoose"></div>
  8842. </div>
  8843. </div>
  8844. <div
  8845. class="tool"
  8846. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8847. @click="addTools2(3)"
  8848. >
  8849. <div class="whiteBIcon">
  8850. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8851. <div style="margin: 5px 0">思维导图</div>
  8852. </div>
  8853. <div class="check">
  8854. <div
  8855. v-if="checktoolArray.indexOf(3) == -1"
  8856. class="noChoose"
  8857. ></div>
  8858. <div v-else class="isChoose"></div>
  8859. </div>
  8860. </div>
  8861. <div
  8862. class="tool"
  8863. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8864. @click="addTools2(48)"
  8865. >
  8866. <div class="whiteBIcon">
  8867. <img src="../assets/icon/fourthToolList/table.png" alt />
  8868. <div style="margin: 5px 0">表格</div>
  8869. </div>
  8870. <div class="check">
  8871. <div
  8872. v-if="checktoolArray.indexOf(48) == -1"
  8873. class="noChoose"
  8874. ></div>
  8875. <div v-else class="isChoose"></div>
  8876. </div>
  8877. </div>
  8878. </div>
  8879. <div class="toolSort" v-if="toolType == 6">
  8880. <div v-show="tooC == 49">
  8881. <img
  8882. @click="addTools(tooC, toolIndex, taskCount)"
  8883. src="../assets/icon/fourthToolList/group.png"
  8884. alt
  8885. />
  8886. <div style="margin: 5px 0">学生分组</div>
  8887. </div>
  8888. </div>
  8889. <div class="toolSort" v-if="toolType == 2">
  8890. <div
  8891. class="tool"
  8892. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8893. @click="addTools2(16)"
  8894. >
  8895. <div class="whiteBIcon">
  8896. <img src="../assets/icon/thirdToolList/work.png" alt />
  8897. <div style="margin: 5px 0">作业提交</div>
  8898. </div>
  8899. <div class="check">
  8900. <div
  8901. v-if="checktoolArray.indexOf(16) == -1"
  8902. class="noChoose"
  8903. ></div>
  8904. <div v-else class="isChoose"></div>
  8905. </div>
  8906. </div>
  8907. <div
  8908. class="tool"
  8909. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8910. @click="addTools2(50)"
  8911. >
  8912. <div class="whiteBIcon">
  8913. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8914. <div style="margin: 5px 0">批量上传</div>
  8915. </div>
  8916. <div class="check">
  8917. <div
  8918. v-if="checktoolArray.indexOf(50) == -1"
  8919. class="noChoose"
  8920. ></div>
  8921. <div v-else class="isChoose"></div>
  8922. </div>
  8923. </div>
  8924. </div>
  8925. <div class="toolSort" v-if="toolType == 3">
  8926. <div
  8927. class="tool"
  8928. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8929. @click="addTools2(18)"
  8930. >
  8931. <div class="whiteBIcon">
  8932. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8933. <div style="margin: 5px 0">训练平台</div>
  8934. </div>
  8935. <div class="check">
  8936. <div
  8937. v-if="checktoolArray.indexOf(18) == -1"
  8938. class="noChoose"
  8939. ></div>
  8940. <div v-else class="isChoose"></div>
  8941. </div>
  8942. </div>
  8943. <div
  8944. class="tool"
  8945. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8946. @click="addTools2(21)"
  8947. >
  8948. <div class="whiteBIcon">
  8949. <img src="../assets/icon/fourthToolList/program.png" alt />
  8950. <div style="margin: 5px 0">AIoT Blockly</div>
  8951. </div>
  8952. <div class="check">
  8953. <div
  8954. v-if="checktoolArray.indexOf(21) == -1"
  8955. class="noChoose"
  8956. ></div>
  8957. <div v-else class="isChoose"></div>
  8958. </div>
  8959. </div>
  8960. <div
  8961. class="tool"
  8962. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8963. @click="addTools2(23)"
  8964. >
  8965. <div class="whiteBIcon">
  8966. <img
  8967. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8968. alt
  8969. />
  8970. <div style="margin: 5px 0">AI Python</div>
  8971. </div>
  8972. <div class="check">
  8973. <div
  8974. v-if="checktoolArray.indexOf(23) == -1"
  8975. class="noChoose"
  8976. ></div>
  8977. <div v-else class="isChoose"></div>
  8978. </div>
  8979. </div>
  8980. <div
  8981. class="tool"
  8982. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8983. @click="addTools2(24)"
  8984. >
  8985. <div class="whiteBIcon">
  8986. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8987. <div style="margin: 5px 0">AI Blockly</div>
  8988. </div>
  8989. <div class="check">
  8990. <div
  8991. v-if="checktoolArray.indexOf(24) == -1"
  8992. class="noChoose"
  8993. ></div>
  8994. <div v-else class="isChoose"></div>
  8995. </div>
  8996. </div>
  8997. <div
  8998. class="tool"
  8999. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9000. @click="addTools2(32)"
  9001. >
  9002. <div class="whiteBIcon">
  9003. <img src="../assets/icon/thirdToolList/code.png" alt />
  9004. <div style="margin: 5px 0">源码编辑</div>
  9005. </div>
  9006. <div class="check">
  9007. <div
  9008. v-if="checktoolArray.indexOf(32) == -1"
  9009. class="noChoose"
  9010. ></div>
  9011. <div v-else class="isChoose"></div>
  9012. </div>
  9013. </div>
  9014. <div
  9015. class="tool"
  9016. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9017. @click="addTools2(57)"
  9018. >
  9019. <div class="whiteBIcon">
  9020. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  9021. <div style="margin: 5px 0">CocoPi</div>
  9022. </div>
  9023. <div class="check">
  9024. <div
  9025. v-if="checktoolArray.indexOf(57) == -1"
  9026. class="noChoose"
  9027. ></div>
  9028. <div v-else class="isChoose"></div>
  9029. </div>
  9030. </div>
  9031. <div
  9032. class="tool"
  9033. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9034. @click="addTools2(63)"
  9035. >
  9036. <div class="whiteBIcon">
  9037. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  9038. <div style="margin: 5px 0">海龟编程</div>
  9039. </div>
  9040. <div class="check">
  9041. <div
  9042. v-if="checktoolArray.indexOf(63) == -1"
  9043. class="noChoose"
  9044. ></div>
  9045. <div v-else class="isChoose"></div>
  9046. </div>
  9047. </div>
  9048. <div
  9049. class="tool"
  9050. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9051. @click="addTools2(71)"
  9052. >
  9053. <div class="whiteBIcon">
  9054. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  9055. <div style="margin: 5px 0">AI智能体</div>
  9056. </div>
  9057. <div class="check">
  9058. <div
  9059. v-if="checktoolArray.indexOf(71) == -1"
  9060. class="noChoose"
  9061. ></div>
  9062. <div v-else class="isChoose"></div>
  9063. </div>
  9064. </div>
  9065. </div>
  9066. <div class="toolSort" v-if="toolType == 7">
  9067. <div
  9068. class="tool"
  9069. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9070. @click="addTools2(40)"
  9071. >
  9072. <div class="whiteBIcon">
  9073. <img src="../assets/icon/secondToolList/eval.png" alt />
  9074. <div style="margin: 5px 0">个人评价</div>
  9075. </div>
  9076. <div class="check">
  9077. <div
  9078. v-if="checktoolArray.indexOf(40) == -1"
  9079. class="noChoose"
  9080. ></div>
  9081. <div v-else class="isChoose"></div>
  9082. </div>
  9083. </div>
  9084. </div>
  9085. <div class="toolSort" v-if="toolType == 5">
  9086. <div
  9087. class="tool"
  9088. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9089. @click="addTools2(28)"
  9090. >
  9091. <div class="whiteBIcon">
  9092. <img src="../assets/icon/secondToolList/translation.png" alt />
  9093. <div style="margin: 5px 0">翻译</div>
  9094. </div>
  9095. <div class="check">
  9096. <div
  9097. v-if="checktoolArray.indexOf(28) == -1"
  9098. class="noChoose"
  9099. ></div>
  9100. <div v-else class="isChoose"></div>
  9101. </div>
  9102. </div>
  9103. <div
  9104. class="tool"
  9105. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9106. @click="addTools2(31)"
  9107. >
  9108. <div class="whiteBIcon">
  9109. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9110. <div style="margin: 5px 0">数字画板</div>
  9111. </div>
  9112. <div class="check">
  9113. <div
  9114. v-if="checktoolArray.indexOf(31) == -1"
  9115. class="noChoose"
  9116. ></div>
  9117. <div v-else class="isChoose"></div>
  9118. </div>
  9119. </div>
  9120. <div
  9121. class="tool"
  9122. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9123. @click="addTools2(39)"
  9124. >
  9125. <div class="whiteBIcon">
  9126. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9127. <div style="margin: 5px 0">GeoGebra</div>
  9128. </div>
  9129. <div class="check">
  9130. <div
  9131. v-if="checktoolArray.indexOf(39) == -1"
  9132. class="noChoose"
  9133. ></div>
  9134. <div v-else class="isChoose"></div>
  9135. </div>
  9136. </div>
  9137. <div
  9138. class="tool"
  9139. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9140. @click="addTools2(66)"
  9141. >
  9142. <div class="whiteBIcon">
  9143. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9144. <div style="margin: 5px 0">公式编辑</div>
  9145. </div>
  9146. <div class="check">
  9147. <div
  9148. v-if="checktoolArray.indexOf(66) == -1"
  9149. class="noChoose"
  9150. ></div>
  9151. <div v-else class="isChoose"></div>
  9152. </div>
  9153. </div>
  9154. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9155. <div class="whiteBIcon" @click="addTools2(67)">
  9156. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9157. <div style="margin: 5px 0">分子结构</div>
  9158. </div>
  9159. <div class="check" @click="addTools2(67)">
  9160. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9161. <div v-else class="isChoose"></div>
  9162. </div>
  9163. </div> -->
  9164. <div
  9165. class="tool"
  9166. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9167. @click="addTools2(68)"
  9168. >
  9169. <div class="whiteBIcon">
  9170. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9171. <div style="margin: 5px 0">时间轴</div>
  9172. </div>
  9173. <div class="check">
  9174. <div
  9175. v-if="checktoolArray.indexOf(68) == -1"
  9176. class="noChoose"
  9177. ></div>
  9178. <div v-else class="isChoose"></div>
  9179. </div>
  9180. </div>
  9181. <!-- <div
  9182. class="tool"
  9183. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9184. @click="addTools2(69)"
  9185. >
  9186. <div class="whiteBIcon">
  9187. <img src="../assets/icon/secondToolList/english.png" alt />
  9188. <div style="margin: 5px 0">英语写作</div>
  9189. </div>
  9190. <div class="check">
  9191. <div
  9192. v-if="checktoolArray.indexOf(69) == -1"
  9193. class="noChoose"
  9194. ></div>
  9195. <div v-else class="isChoose"></div>
  9196. </div>
  9197. </div> -->
  9198. </div>
  9199. <div class="toolSort" v-if="toolType == 4">
  9200. <div
  9201. class="tool"
  9202. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9203. @click="addTools2(26)"
  9204. >
  9205. <div class="whiteBIcon">
  9206. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9207. <div style="margin: 5px 0">课程设计</div>
  9208. </div>
  9209. <div class="check">
  9210. <div
  9211. v-if="checktoolArray.indexOf(26) == -1"
  9212. class="noChoose"
  9213. ></div>
  9214. <div v-else class="isChoose"></div>
  9215. </div>
  9216. </div>
  9217. <div
  9218. class="tool"
  9219. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9220. @click="addTools2(25)"
  9221. >
  9222. <div class="whiteBIcon">
  9223. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9224. <div style="margin: 5px 0">目标管理</div>
  9225. </div>
  9226. <div class="check">
  9227. <div
  9228. v-if="checktoolArray.indexOf(25) == -1"
  9229. class="noChoose"
  9230. ></div>
  9231. <div v-else class="isChoose"></div>
  9232. </div>
  9233. </div>
  9234. </div>
  9235. </div>
  9236. </div>
  9237. <span
  9238. slot="footer"
  9239. class="dialog-footer"
  9240. style="display: block; text-align: center; padding: 0 0 10px 0"
  9241. >
  9242. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9243. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9244. </span>
  9245. </div>
  9246. <div
  9247. v-if="replyDialogVisible == true"
  9248. class="addDialogCss"
  9249. v-el-drag-dialog
  9250. >
  9251. <div class="pzTop">
  9252. <div class="teacherPz">
  9253. <div class="teacherPzImg">
  9254. <img src="../assets/icon/teacherPz.png" alt="" />
  9255. </div>
  9256. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9257. </div>
  9258. <div @click="replyDialogVisible = false">
  9259. <img src="../assets/close1.png" class="pzClose" alt="" />
  9260. </div>
  9261. </div>
  9262. <div class="addPzBox">
  9263. <!-- <div class="addPzCheck">
  9264. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9265. >文本</span
  9266. >
  9267. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9268. >音频</span
  9269. >
  9270. </div> -->
  9271. <div style="height: calc(100% - 50px)">
  9272. <editor-bar
  9273. class="binfo_input pzConText"
  9274. style="width: 100% !important; margin: 0 auto"
  9275. placeholder="请输入回复描述"
  9276. v-model="reply"
  9277. @change="change"
  9278. ></editor-bar>
  9279. </div>
  9280. <div class="addTextCss" @click="addHf">确定</div>
  9281. </div>
  9282. </div>
  9283. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9284. <div class="pzTop">
  9285. <div class="teacherPz">
  9286. <div class="teacherPzImg">
  9287. <img src="../assets/icon/teacherPz.png" alt="" />
  9288. </div>
  9289. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9290. </div>
  9291. <div @click="addPzDialog = false">
  9292. <img src="../assets/close1.png" class="pzClose" alt="" />
  9293. </div>
  9294. </div>
  9295. <div class="addPzBox">
  9296. <div class="addPzCheck">
  9297. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9298. >文本</span
  9299. >
  9300. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9301. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9302. >音频</span
  9303. >
  9304. </div>
  9305. <div style="height: calc(100% - 95px)">
  9306. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9307. v-if="pzType == 1"></textarea> -->
  9308. <editor-bar
  9309. class="binfo_input pzConText"
  9310. style="width: 100% !important"
  9311. placeholder="请输入任务描述"
  9312. v-model="pzConText"
  9313. @change="change"
  9314. v-if="pzType == 1"
  9315. ></editor-bar>
  9316. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9317. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9318. <div @click="addImg($event)">
  9319. <el-button type="primary">上传图片</el-button>
  9320. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9321. @change="beforeUpload1($event, 4)" />
  9322. </div>
  9323. </div> -->
  9324. </div>
  9325. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9326. 确定
  9327. </div>
  9328. </div>
  9329. </div>
  9330. <div v-if="proVisible" class="mask">
  9331. <div class="progressBox">
  9332. <!-- <div id="closePro" class="closeCss">
  9333. <img src="../assets/icon/close.png" alt />
  9334. </div> -->
  9335. <div class="lbox">
  9336. <img src="../assets/loading.gif" />上传中,请稍后
  9337. </div>
  9338. <div style="margin-bottom: 10px">
  9339. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9340. </div>
  9341. <el-progress
  9342. :text-inside="true"
  9343. :stroke-width="20"
  9344. :percentage="progress"
  9345. style="width: 80%"
  9346. ></el-progress>
  9347. </div>
  9348. </div>
  9349. <div v-if="proVisible2" class="mask">
  9350. <div class="progressBox">
  9351. <div class="lbox">
  9352. <img src="../assets/loading.gif" />上传中,请稍后
  9353. </div>
  9354. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9355. </div>
  9356. </div>
  9357. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9358. <img width="100%" :src="dialogImageUrl" alt />
  9359. </el-dialog>
  9360. <el-dialog
  9361. :title="noteName != '' ? noteName : '查看问卷'"
  9362. :visible.sync="dialogVisible5"
  9363. :append-to-body="true"
  9364. width="1000px"
  9365. :before-close="handleClose"
  9366. class="dialog_diy dialog_diy3"
  9367. >
  9368. <div>
  9369. <div
  9370. class="a_add_title"
  9371. style="
  9372. display: flex;
  9373. flex-direction: row;
  9374. align-items: center;
  9375. justify-content: center;
  9376. "
  9377. >
  9378. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9379. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9380. </div>
  9381. <div class="a_addBox">
  9382. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9383. 题目内容
  9384. </div>
  9385. <div
  9386. class="a_add_box"
  9387. v-for="(item1, index1) in askJson.askCount"
  9388. :key="index1"
  9389. >
  9390. <div class="a_add_head">
  9391. <div style="display: flex">
  9392. <span class="askIndex"> {{ index1 + 1 }}</span>
  9393. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9394. </div>
  9395. <img
  9396. v-if="askJson.askJson[index1].img"
  9397. :src="askJson.askJson[index1].img"
  9398. style="height: 300px; margin-top: 10px; max-width: 100%"
  9399. />
  9400. </div>
  9401. <div class="a_add_body">
  9402. <div class="a_add_input">
  9403. <el-radio-group
  9404. v-model="radio[index1]"
  9405. v-if="
  9406. askJson.askJson[index1].type == '1' ||
  9407. !askJson.askJson[index1].type
  9408. "
  9409. >
  9410. <el-radio
  9411. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9412. .checkList"
  9413. :key="checkIndex"
  9414. :label="checkIndex"
  9415. :disabled="isAnswer"
  9416. class="redioStyle"
  9417. ><span v-html="item2"></span
  9418. ></el-radio>
  9419. </el-radio-group>
  9420. <el-checkbox-group
  9421. v-model="radio[index1]"
  9422. v-if="askJson.askJson[index1].type == '2'"
  9423. >
  9424. <el-checkbox
  9425. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9426. .checkList"
  9427. :key="checkIndex1"
  9428. :label="checkIndex1"
  9429. :disabled="isAnswer"
  9430. class="redioStyle"
  9431. ><span v-html="item2"></span>
  9432. </el-checkbox>
  9433. </el-checkbox-group>
  9434. </div>
  9435. </div>
  9436. </div>
  9437. </div>
  9438. </div>
  9439. <span slot="footer" class="dialog-footer">
  9440. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9441. >取 消</el-button
  9442. >
  9443. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9444. >确 定</el-button
  9445. >
  9446. </span>
  9447. </el-dialog>
  9448. <el-dialog
  9449. :title="noteName != '' ? noteName : '查看问卷'"
  9450. :visible.sync="dialogVisible5Teacher"
  9451. :append-to-body="true"
  9452. width="1000px"
  9453. :before-close="handleClose"
  9454. class="dialog_diy dialog_diy3"
  9455. >
  9456. <div>
  9457. <div class="w_name">
  9458. 学生姓名:<span>{{ sStudent.student }}</span>
  9459. </div>
  9460. <div
  9461. class="a_add_title"
  9462. style="
  9463. display: flex;
  9464. flex-direction: row;
  9465. align-items: center;
  9466. justify-content: center;
  9467. "
  9468. >
  9469. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9470. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9471. </div>
  9472. <div class="a_addBox">
  9473. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9474. 题目内容
  9475. </div>
  9476. <div
  9477. class="a_add_box"
  9478. v-for="(item1, index1) in askJson.askCount"
  9479. :key="index1"
  9480. >
  9481. <div class="a_add_head">
  9482. <div style="display: flex">
  9483. <span class="askIndex">{{ index1 + 1 }}</span>
  9484. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9485. </div>
  9486. <img
  9487. v-if="askJson.askJson[index1].img"
  9488. :src="askJson.askJson[index1].img"
  9489. style="height: 300px; margin-top: 10px; max-width: 100%"
  9490. />
  9491. </div>
  9492. <div class="a_add_body">
  9493. <div class="a_add_input">
  9494. <el-radio-group
  9495. v-model="radio[index1]"
  9496. v-if="
  9497. askJson.askJson[index1].type == '1' ||
  9498. !askJson.askJson[index1].type
  9499. "
  9500. >
  9501. <el-radio
  9502. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9503. .checkList"
  9504. :key="checkIndex"
  9505. :label="checkIndex"
  9506. :disabled="isAnswer"
  9507. class="redioStyle"
  9508. ><span v-html="item2"></span
  9509. ></el-radio>
  9510. </el-radio-group>
  9511. <el-checkbox-group
  9512. v-model="radio[index1]"
  9513. v-if="askJson.askJson[index1].type == '2'"
  9514. >
  9515. <el-checkbox
  9516. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9517. .checkList"
  9518. :key="checkIndex1"
  9519. :label="checkIndex1"
  9520. :disabled="isAnswer"
  9521. class="redioStyle"
  9522. ><span v-html="item2"></span>
  9523. </el-checkbox>
  9524. </el-checkbox-group>
  9525. </div>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. <span slot="footer" class="dialog-footer">
  9531. <el-button
  9532. @click="dialogVisible5Teacher = false"
  9533. v-show="noteName == ''"
  9534. >取 消</el-button
  9535. >
  9536. <el-button
  9537. type="primary"
  9538. @click="addStudentAskTeacher"
  9539. v-show="noteName == ''"
  9540. >确 定</el-button
  9541. >
  9542. </span>
  9543. </el-dialog>
  9544. <el-dialog
  9545. :title="noteName != '' ? noteName : '查看选择题'"
  9546. :visible.sync="dialogVisibleChoice"
  9547. :append-to-body="true"
  9548. width="1000px"
  9549. :before-close="handleClose"
  9550. class="dialog_diy dialog_diy3"
  9551. >
  9552. <div>
  9553. <!-- <div class="a_add_title" style="
  9554. display: flex;
  9555. flex-direction: row;
  9556. align-items: center;
  9557. justify-content: center;
  9558. ">
  9559. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9560. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9561. </div> -->
  9562. <div class="a_addBox">
  9563. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9564. 题目内容
  9565. </div>
  9566. <div
  9567. class="a_add_box"
  9568. v-for="(item1, index1) in testJson.testCount"
  9569. :key="index1"
  9570. >
  9571. <div class="a_add_head">
  9572. <div style="display: flex;">
  9573. <span class="askIndex">{{ index1 + 1 }}</span>
  9574. <div
  9575. v-if="testJson.testJson[index1].type == '1'"
  9576. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9577. >
  9578. (单选题)
  9579. </div>
  9580. <div
  9581. v-if="testJson.testJson[index1].type == '2'"
  9582. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9583. >
  9584. (多选题)
  9585. </div>
  9586. <div class="renderedFor"><span>题目:</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9587. </div>
  9588. <img
  9589. v-if="testJson.testJson[index1].img"
  9590. :src="testJson.testJson[index1].img"
  9591. style="height: 300px; margin-top: 10px; max-width: 100%"
  9592. />
  9593. </div>
  9594. <div
  9595. class="timuImgBox"
  9596. v-if="
  9597. testJson.testJson[index1].timuList &&
  9598. testJson.testJson[index1].timuList.length
  9599. "
  9600. >
  9601. <div
  9602. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9603. :key="tIndex"
  9604. class="timuImg"
  9605. @click.stop="previewImg(timg.src)"
  9606. >
  9607. <img :src="timg.src" alt="" />
  9608. </div>
  9609. </div>
  9610. <div class="a_add_body">
  9611. <div class="a_add_input">
  9612. <el-radio-group
  9613. v-model="radio[index1]"
  9614. v-if="testJson.testJson[index1].type == '1'"
  9615. >
  9616. <div class="radioBox">
  9617. <el-radio
  9618. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9619. .checkList"
  9620. :key="checkIndex"
  9621. :label="checkIndex"
  9622. :disabled="isAnswer"
  9623. class="redioStyle"
  9624. >
  9625. <div
  9626. style="margin-right: 10px"
  9627. v-if="item2 && item2.imgType && item2.imgType == 1"
  9628. >
  9629. <div class="inImg" @click.stop="previewImg(item2.src)">
  9630. <img :src="item2.src" alt="" />
  9631. </div>
  9632. </div>
  9633. <span v-else v-html="item2"></span>
  9634. </el-radio>
  9635. </div>
  9636. </el-radio-group>
  9637. <el-checkbox-group
  9638. v-model="radio[index1]"
  9639. v-if="testJson.testJson[index1].type == '2'"
  9640. >
  9641. <div class="radioBox">
  9642. <el-checkbox
  9643. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9644. .checkList"
  9645. :key="checkIndex"
  9646. :label="checkIndex"
  9647. :disabled="isAnswer"
  9648. class="redioStyle"
  9649. >
  9650. <div
  9651. style="margin-right: 10px"
  9652. v-if="item2 && item2.imgType && item2.imgType == 1"
  9653. >
  9654. <div class="inImg" @click.stop="previewImg(item2.src)">
  9655. <img :src="item2.src" alt="" />
  9656. </div>
  9657. </div>
  9658. <span v-else v-html="item2"></span>
  9659. </el-checkbox>
  9660. </div>
  9661. </el-checkbox-group>
  9662. </div>
  9663. </div>
  9664. </div>
  9665. </div>
  9666. </div>
  9667. <span slot="footer" class="dialog-footer">
  9668. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9669. >取 消</el-button
  9670. >
  9671. <el-button
  9672. type="primary"
  9673. @click="addStudentTest"
  9674. v-show="noteName == ''"
  9675. >确 定</el-button
  9676. >
  9677. </span>
  9678. </el-dialog>
  9679. <el-dialog
  9680. :title="noteName != '' ? noteName : '查看选择题'"
  9681. :visible.sync="dialogVisibleChoiceTeacher"
  9682. :append-to-body="true"
  9683. width="1000px"
  9684. :before-close="handleClose"
  9685. class="dialog_diy dialog_diy3"
  9686. >
  9687. <div>
  9688. <div class="w_name">
  9689. 学生姓名:<span>{{ sStudent.student }}</span>
  9690. </div>
  9691. <div class="a_addBox">
  9692. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9693. 题目内容
  9694. </div>
  9695. <div
  9696. class="a_add_box"
  9697. v-for="(item1, index1) in testJson.testCount"
  9698. :key="index1"
  9699. >
  9700. <div class="a_add_head">
  9701. <div style="display: flex">
  9702. <span class="askIndex">{{ index1 + 1 }}</span>
  9703. <div
  9704. v-if="testJson.testJson[index1].type == '1'"
  9705. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9706. >
  9707. (单选题)
  9708. </div>
  9709. <div
  9710. v-if="testJson.testJson[index1].type == '2'"
  9711. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9712. >
  9713. (多选题)
  9714. </div>
  9715. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9716. </div>
  9717. <img
  9718. v-if="testJson.testJson[index1].img"
  9719. :src="testJson.testJson[index1].img"
  9720. style="height: 300px; margin-top: 10px; max-width: 100%"
  9721. />
  9722. </div>
  9723. <div
  9724. class="timuImgBox"
  9725. v-if="
  9726. testJson.testJson[index1].timuList &&
  9727. testJson.testJson[index1].timuList.length
  9728. "
  9729. >
  9730. <div
  9731. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9732. :key="tIndex"
  9733. class="timuImg"
  9734. @click.stop="previewImg(timg.src)"
  9735. >
  9736. <img :src="timg.src" alt="" />
  9737. </div>
  9738. </div>
  9739. <div class="a_add_body">
  9740. <div class="a_add_input">
  9741. <el-radio-group
  9742. v-model="radio[index1]"
  9743. v-if="testJson.testJson[index1].type == '1'"
  9744. >
  9745. <div class="radioBox">
  9746. <el-radio
  9747. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9748. .checkList"
  9749. :key="checkIndex"
  9750. :label="checkIndex"
  9751. :disabled="isAnswer"
  9752. class="redioStyle"
  9753. >
  9754. <div
  9755. style="margin-right: 10px"
  9756. v-if="item2 && item2.imgType && item2.imgType == 1"
  9757. >
  9758. <div class="inImg" @click.stop="previewImg(item2.src)">
  9759. <img :src="item2.src" alt="" />
  9760. </div>
  9761. </div>
  9762. <span v-else v-html="item2"></span>
  9763. </el-radio>
  9764. </div>
  9765. </el-radio-group>
  9766. <el-checkbox-group
  9767. v-model="radio[index1]"
  9768. v-if="testJson.testJson[index1].type == '2'"
  9769. >
  9770. <div class="radioBox">
  9771. <el-checkbox
  9772. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9773. .checkList"
  9774. :key="checkIndex"
  9775. :label="checkIndex"
  9776. :disabled="isAnswer"
  9777. class="redioStyle"
  9778. >
  9779. <div
  9780. style="margin-right: 10px"
  9781. v-if="item2 && item2.imgType && item2.imgType == 1"
  9782. >
  9783. <div class="inImg" @click.stop="previewImg(item2.src)">
  9784. <img :src="item2.src" alt="" />
  9785. </div>
  9786. </div>
  9787. <span v-else v-html="item2"></span>
  9788. </el-checkbox>
  9789. </div>
  9790. </el-checkbox-group>
  9791. </div>
  9792. </div>
  9793. </div>
  9794. </div>
  9795. </div>
  9796. <span slot="footer" class="dialog-footer">
  9797. <el-button
  9798. @click="dialogVisibleChoiceTeacher = false"
  9799. v-show="noteName == ''"
  9800. >取 消</el-button
  9801. >
  9802. <el-button
  9803. type="primary"
  9804. @click="addStudentTestTeacher"
  9805. v-show="noteName == ''"
  9806. >确 定</el-button
  9807. >
  9808. </span>
  9809. </el-dialog>
  9810. <el-dialog
  9811. title="查看富文本"
  9812. :visible.sync="dialogVisible1"
  9813. :append-to-body="true"
  9814. width="500px"
  9815. :before-close="handleClose"
  9816. class="dialog_diy textCss"
  9817. >
  9818. <el-form style="font-size: 20px">
  9819. <el-form-item label="文本标题" class="textTitle">
  9820. <div style="font-size: 20px">{{ text.name }}</div>
  9821. </el-form-item>
  9822. <div>富文本内容</div>
  9823. <div
  9824. v-html="text.url"
  9825. style="font-size: 18px; padding: 40px 0 0 0"
  9826. ></div>
  9827. </el-form>
  9828. <span slot="footer" class="dialog-footer">
  9829. <el-button type="primary" @click="dialogVisible1 = false"
  9830. >确定</el-button
  9831. >
  9832. </span>
  9833. </el-dialog>
  9834. <el-dialog
  9835. title="文件预览"
  9836. :visible.sync="dialogVisible3"
  9837. width="50%"
  9838. :before-close="handleClose"
  9839. class="dialog_diy"
  9840. :class="{ fullStyle: full }"
  9841. >
  9842. <div slot="title" class="header-title">
  9843. <div style="color: #fff">文件预览</div>
  9844. <div style="position: absolute; top: 19px; right: 50px">
  9845. <img
  9846. src="../assets/full.png"
  9847. style="height: 16px; cursor: pointer"
  9848. alt=""
  9849. @click="fullTools"
  9850. />
  9851. </div>
  9852. </div>
  9853. <pdf
  9854. v-if="showPDF"
  9855. :pdfUrl="pptImgUrl"
  9856. style="width: 100%; height: 520px; overflow: auto"
  9857. :class="{ fullStyle: full }"
  9858. ></pdf>
  9859. <iframe
  9860. v-else
  9861. :src="pptImgUrl"
  9862. frameborder="0"
  9863. width="100%"
  9864. height="600"
  9865. :class="{ fullStyle: full }"
  9866. ></iframe>
  9867. </el-dialog>
  9868. <el-dialog
  9869. title="文件预览"
  9870. :visible.sync="dialogVisible6"
  9871. width="50%"
  9872. :before-close="handleClose"
  9873. class="dialog_diy"
  9874. >
  9875. <iframe
  9876. :src="pptImgUrl1"
  9877. frameborder="0"
  9878. width="100%"
  9879. height="600"
  9880. ></iframe>
  9881. </el-dialog>
  9882. <el-dialog
  9883. title="提示"
  9884. :visible.sync="dialogVisible4"
  9885. :append-to-body="true"
  9886. width="800px"
  9887. :before-close="handleClose"
  9888. class="dialog_diy notice"
  9889. >
  9890. <div>此功能暂未开放!</div>
  9891. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9892. </el-dialog>
  9893. <el-dialog
  9894. title="问答"
  9895. :visible.sync="answerDialogVisible"
  9896. :append-to-body="true"
  9897. width="800px"
  9898. :before-close="handleClose"
  9899. class="dialog_diy"
  9900. >
  9901. <div>
  9902. <div
  9903. style="
  9904. display: flex;
  9905. flex-wrap: nowrap;
  9906. flex-direction: column;
  9907. position: relative;
  9908. "
  9909. >
  9910. <div class="queTop" style="padding: 20px 0 20px 0">
  9911. <div class="question">
  9912. <img src="../assets/icon/question.png" alt />
  9913. </div>
  9914. <div class="queTitle">
  9915. <div style="width: 90px; min-width: 90px">提问:</div>
  9916. <div>{{ answerQ }}</div>
  9917. </div>
  9918. </div>
  9919. <div class="ediBottom">
  9920. <textarea
  9921. rows="6"
  9922. class="binfo_input"
  9923. cols
  9924. style="width: 95%; height: 120px"
  9925. v-model="questionAnswer"
  9926. ></textarea>
  9927. </div>
  9928. </div>
  9929. </div>
  9930. <div slot="footer">
  9931. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9932. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9933. </div>
  9934. </el-dialog>
  9935. <el-dialog
  9936. title="问答"
  9937. :visible.sync="answerDialogVisibleTeacher"
  9938. :append-to-body="true"
  9939. width="800px"
  9940. :before-close="handleClose"
  9941. class="dialog_diy"
  9942. >
  9943. <div>
  9944. <div class="w_name">
  9945. 学生姓名:<span>{{ sStudent.student }}</span>
  9946. </div>
  9947. <div
  9948. style="
  9949. display: flex;
  9950. flex-wrap: nowrap;
  9951. flex-direction: column;
  9952. position: relative;
  9953. "
  9954. >
  9955. <div class="queTop" style="padding: 20px 0 20px 0">
  9956. <div class="question">
  9957. <img src="../assets/icon/question.png" alt />
  9958. </div>
  9959. <div class="queTitle">
  9960. <div style="width: 90px; min-width: 90px">提问:</div>
  9961. <div>{{ answerQ }}</div>
  9962. </div>
  9963. </div>
  9964. <div class="ediBottom">
  9965. <textarea
  9966. rows="6"
  9967. class="binfo_input"
  9968. cols
  9969. style="width: 95%; height: 120px"
  9970. v-model="questionAnswer"
  9971. ></textarea>
  9972. </div>
  9973. </div>
  9974. </div>
  9975. <div slot="footer">
  9976. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9977. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9978. </div>
  9979. </el-dialog>
  9980. <el-dialog
  9981. title="倒计时"
  9982. :visible.sync="timeDialogVisible"
  9983. :append-to-body="true"
  9984. width="800px"
  9985. :before-close="handleClose"
  9986. class="dialog_diy"
  9987. >
  9988. <div>
  9989. <div style="margin-bottom: 20px; color: #999">
  9990. 提示:点击“+”或“-”修改倒计时时长。
  9991. </div>
  9992. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9993. </div>
  9994. <div slot="footer">
  9995. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9996. </div>
  9997. </el-dialog>
  9998. <el-dialog
  9999. title="权限设置"
  10000. :visible.sync="juriVisible"
  10001. :append-to-body="true"
  10002. width="400px"
  10003. :before-close="handleClose"
  10004. class="dialog_diy"
  10005. >
  10006. <div>
  10007. <div class="open_box">
  10008. <div class="switch_box">
  10009. <span>允许学生查看所有作业</span>
  10010. <el-switch
  10011. v-model="sIsOpen"
  10012. active-text=""
  10013. class="switchCss"
  10014. @change="updateSLook"
  10015. ></el-switch>
  10016. </div>
  10017. <div
  10018. class="switch_box"
  10019. v-if="
  10020. (courseDetail.userid == userid ||
  10021. (courseDetail.course_teacher &&
  10022. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10023. "
  10024. >
  10025. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10026. <span>禁止学生查看阶段</span>
  10027. <el-switch
  10028. v-model="IsLookOpen"
  10029. active-text=""
  10030. class="switchCss"
  10031. @change="updateLookOpen"
  10032. ></el-switch>
  10033. </div>
  10034. <div class="switch_box" v-if="courseDetail.userid == userid">
  10035. <span>开启跟随模式</span>
  10036. <el-switch
  10037. v-model="IsFollow"
  10038. active-text=""
  10039. class="switchCss"
  10040. @change="updateFollow"
  10041. ></el-switch>
  10042. </div>
  10043. <div class="switch_box" v-if="courseDetail.userid == userid">
  10044. <span>允许学生查看内容资料</span>
  10045. <el-switch
  10046. v-model="IsStulook"
  10047. active-text=""
  10048. class="switchCss"
  10049. @change="updateIsStulook"
  10050. ></el-switch>
  10051. </div>
  10052. </div>
  10053. </div>
  10054. <div slot="footer">
  10055. <el-button
  10056. style="background: #409efe; color: #fff"
  10057. @click="juriVisible = false"
  10058. >关 闭</el-button
  10059. >
  10060. </div>
  10061. </el-dialog>
  10062. <el-dialog
  10063. title="查看视频"
  10064. :visible.sync="videoVisible"
  10065. :append-to-body="true"
  10066. width="1000px"
  10067. :before-close="handleClose"
  10068. class="dialog_diy1"
  10069. >
  10070. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10071. <video-player
  10072. class="video-player vjs-custom-skin"
  10073. :playsinline="true"
  10074. :options="videoDetail"
  10075. @play="onPlayerPlay($event)"
  10076. style="width: 100%; height: 100%"
  10077. ></video-player>
  10078. </div>
  10079. <div slot="footer">
  10080. <el-button
  10081. style="background: #409efe; color: #fff"
  10082. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10083. >
  10084. 关 闭</el-button
  10085. >
  10086. </div>
  10087. </el-dialog>
  10088. <el-dialog
  10089. title="查看详情"
  10090. :visible.sync="commentDialogVisible"
  10091. :append-to-body="true"
  10092. width="800px"
  10093. :before-close="handleClose"
  10094. class="dialog_diy"
  10095. >
  10096. <div class="commentTop">
  10097. <div class="studentDetail">
  10098. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10099. <div class="nameAndTime">
  10100. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10101. <div>{{ commentDetail.time }}</div>
  10102. </div>
  10103. <div
  10104. class="returnBtn"
  10105. style="margin-left: auto; width: 80px"
  10106. v-if="
  10107. commentDetail.works &&
  10108. commentDetail.type == 0 &&
  10109. (tType == 1 || tType == 4)
  10110. "
  10111. @click="
  10112. showPicturePaint(
  10113. commentDetail.img ? commentDetail.img : commentDetail.works
  10114. )
  10115. "
  10116. >
  10117. 教师批注
  10118. </div>
  10119. </div>
  10120. <div
  10121. class="worksAnswer"
  10122. v-if="commentDetail.works && commentDetail.type == 2"
  10123. >
  10124. {{ JSON.parse(commentDetail.works)[0].answer }}
  10125. </div>
  10126. <div
  10127. class="worksAnswer"
  10128. v-if="commentDetail.works && commentDetail.type == 1"
  10129. >
  10130. <img
  10131. src="../assets/teacherWork.png"
  10132. v-if="commentDetail.ateacher"
  10133. class="w_teachert"
  10134. />
  10135. <pdf
  10136. v-if="showPDF"
  10137. :pdfUrl="pptImgUrl"
  10138. style="width: 100%; height: 520px; overflow: auto"
  10139. :class="{ fullStyle: full }"
  10140. ></pdf>
  10141. <iframe
  10142. v-else
  10143. :src="pptImgUrl"
  10144. frameborder="0"
  10145. width="100%"
  10146. height="600"
  10147. :class="{ fullStyle: full }"
  10148. ></iframe>
  10149. </div>
  10150. <div
  10151. class="worksAnswer"
  10152. v-if="commentDetail.works && commentDetail.type == 0"
  10153. >
  10154. <img
  10155. src="../assets/teacherWork.png"
  10156. v-if="commentDetail.ateacher"
  10157. class="w_teachert"
  10158. style="right: 105px"
  10159. />
  10160. <img
  10161. :src="commentDetail.works"
  10162. alt=""
  10163. @click="previewImg(commentDetail.works)"
  10164. />
  10165. </div>
  10166. <div
  10167. class="worksAnswer"
  10168. v-if="commentDetail.works && commentDetail.type == 3"
  10169. >
  10170. <img
  10171. src="../assets/teacherWork.png"
  10172. v-if="commentDetail.ateacher"
  10173. class="w_teachert"
  10174. />
  10175. <video-player
  10176. class="video-player vjs-custom-skin"
  10177. :playsinline="true"
  10178. :options="videoDetail"
  10179. @play="onPlayerPlay($event)"
  10180. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10181. ></video-player>
  10182. </div>
  10183. <div
  10184. class="worksAnswer"
  10185. v-if="commentDetail.works && commentDetail.type == 10"
  10186. >
  10187. <div class="cont" v-html="commentDetail.works.text"></div>
  10188. </div>
  10189. <div
  10190. class="worksAnswer codeFileBox"
  10191. v-if="commentDetail.works && commentDetail.type == 12"
  10192. @click="downloadFile(commentDetail.works)"
  10193. >
  10194. <img src="../assets/icon/codeFile.png" />
  10195. <div>点击下载文件</div>
  10196. </div>
  10197. <div
  10198. class="worksAnswer codeFileBox"
  10199. v-if="commentDetail.works && commentDetail.type == 15"
  10200. @click="
  10201. openCocoPi(
  10202. 57,
  10203. commentIndexJson.toolIndex,
  10204. commentDetail.userid,
  10205. commentDetail.sName
  10206. )
  10207. "
  10208. >
  10209. <img src="../assets/icon/codeFile.png" />
  10210. <div>点击打开CocoPi</div>
  10211. </div>
  10212. <div
  10213. class="worksAnswer"
  10214. v-if="commentDetail.works && commentDetail.type == 13"
  10215. >
  10216. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10217. </div>
  10218. <div
  10219. class="worksAnswer"
  10220. v-if="commentDetail.works && commentDetail.type == 4"
  10221. >
  10222. <div class="evalCss">
  10223. <div class="nav">请选择星星进行评分</div>
  10224. <div class="middleBox" v-if="eScore.eStar">
  10225. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10226. <div class="nameAndrate">
  10227. <div>{{ e.value }}</div>
  10228. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10229. </div>
  10230. <div v-if="e.detail">{{ e.detail }}</div>
  10231. </div>
  10232. <div class="bz">
  10233. <textarea
  10234. disabled
  10235. rows="4"
  10236. class="pj"
  10237. style="
  10238. padding: 10px 5px;
  10239. width: 70%;
  10240. background: #f7f6f9;
  10241. font-size: 14px;
  10242. text-indent: 10px;
  10243. color: #000;
  10244. "
  10245. cols
  10246. v-model="eScore.eBzText"
  10247. placeholder="请输入评价内容..."
  10248. ></textarea>
  10249. </div>
  10250. </div>
  10251. </div>
  10252. </div>
  10253. <div class="comment">
  10254. <div class="commentList">
  10255. <div class="commentImg">
  10256. <img
  10257. @click="
  10258. isLikes(
  10259. commentDetail.wid,
  10260. userid,
  10261. 1,
  10262. null,
  10263. commentDetail.isLikes,
  10264. commentDetail.sName
  10265. )
  10266. "
  10267. :src="commentDetail.isLikes == true ? likes : noLikes"
  10268. alt=""
  10269. />
  10270. </div>
  10271. <div>{{ commentDetail.likesCount }}</div>
  10272. </div>
  10273. <div class="commentList">
  10274. <div class="commentImg">
  10275. <img src="../assets/icon/comment/comment.png" alt="" />
  10276. </div>
  10277. <div>{{ commentDetail.commentCount }}</div>
  10278. </div>
  10279. </div>
  10280. <div class="drawPBox" v-if="commentDetail.img">
  10281. <span>教师批注</span>
  10282. <img
  10283. :src="commentDetail.img"
  10284. alt=""
  10285. @click="previewImg(commentDetail.img)"
  10286. />
  10287. <span
  10288. class="deleteImg"
  10289. v-if="tType == 1 || tType == 4"
  10290. @click.stop="deletePicturePaint(commentDetail.wid)"
  10291. style="
  10292. font-size: 14px;
  10293. width: auto !important;
  10294. color: #b4b4b4;
  10295. top: unset;
  10296. bottom: 0;
  10297. border: none;
  10298. padding: 0;
  10299. height: auto !important;
  10300. margin: 0;
  10301. "
  10302. >删除</span
  10303. >
  10304. </div>
  10305. </div>
  10306. <div class="commentBox">
  10307. <div class="pl">评论:</div>
  10308. <div style="max-height: 200px; overflow: auto">
  10309. <div
  10310. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10311. style="padding: 10px 0 0 0"
  10312. >
  10313. <div
  10314. class="studentDetail"
  10315. style="padding-top: 10px"
  10316. v-for="(co, coIndex) in commentDetail.commentJson"
  10317. :key="coIndex"
  10318. >
  10319. <div class="tx" style="min-width: 50px">
  10320. <img src="../assets/avatar.png" alt="" />
  10321. </div>
  10322. <div class="plPerson">
  10323. <div class="plName">
  10324. <div>{{ co.commentPeople }}</div>
  10325. <div style="margin-left: 5px">
  10326. {{ co.commentTime }}
  10327. </div>
  10328. <div
  10329. class="deleteComment"
  10330. v-if="userid == co.userid"
  10331. @click="deleteComment(co.wid)"
  10332. >
  10333. 删除
  10334. </div>
  10335. </div>
  10336. <div class="plContent">{{ co.commentText }}</div>
  10337. </div>
  10338. </div>
  10339. </div>
  10340. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10341. </div>
  10342. </div>
  10343. <div style="margin-top: 10px">
  10344. <div class="displayBox">
  10345. <div
  10346. style="
  10347. color: #556db4;
  10348. font-size: 14px;
  10349. font-weight: bold;
  10350. padding-bottom: 10px;
  10351. "
  10352. >
  10353. 评价
  10354. </div>
  10355. <div class="easy_comment" v-if="false">
  10356. <div
  10357. v-for="(p, pIndex) in PlTextList"
  10358. :key="pIndex"
  10359. @click="fastText(p, 1)"
  10360. >
  10361. {{ p }}
  10362. </div>
  10363. </div>
  10364. </div>
  10365. <div>
  10366. <textarea
  10367. rows="3"
  10368. class="pj"
  10369. style="padding: 10px 5px"
  10370. cols
  10371. v-model="commentText"
  10372. placeholder="请输入评论"
  10373. ></textarea>
  10374. </div>
  10375. </div>
  10376. <div slot="footer">
  10377. <el-button
  10378. @click="
  10379. (commentDialogVisible = false),
  10380. (commentIndexJson = {}),
  10381. videoDetail.sources && videoDetail.sources[0]
  10382. ? (videoDetail.sources[0].src = '')
  10383. : ''
  10384. "
  10385. >取 消</el-button
  10386. >
  10387. <el-button
  10388. type="primary"
  10389. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10390. >确 定</el-button
  10391. >
  10392. </div>
  10393. </el-dialog>
  10394. <el-dialog
  10395. title="查看文档"
  10396. :visible.sync="fullDialogVisible"
  10397. :append-to-body="true"
  10398. width="100%"
  10399. :before-close="handleClose"
  10400. :show-close="false"
  10401. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10402. >
  10403. <div slot="title" class="header-title">
  10404. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10405. <div v-else style="color: #fff">查看文档</div>
  10406. <div
  10407. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10408. style="
  10409. cursor: pointer;
  10410. position: absolute;
  10411. top: 20px;
  10412. right: 20px;
  10413. color: #fff;
  10414. "
  10415. >
  10416. 退出全屏
  10417. </div>
  10418. </div>
  10419. <div style="height: 100%;position: relative;">
  10420. <el-button
  10421. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10422. size="medium"
  10423. type="primary"
  10424. @click="
  10425. () => {
  10426. (fullDialogVisible = false),
  10427. changeSplitScreenBehavior({ code: 99 });
  10428. }
  10429. "
  10430. style="
  10431. cursor: pointer;
  10432. position: absolute;
  10433. top: 10px;
  10434. right: 20px;
  10435. color: #fff;
  10436. "
  10437. >
  10438. 退出全屏
  10439. </el-button>
  10440. <div
  10441. class="wheel"
  10442. v-if="fulltype == 1"
  10443. style="
  10444. box-shadow: 0 0 6px 1px #f2f2f2;
  10445. width: 100%;
  10446. height:100%;
  10447. background: #f1f1f1;
  10448. "
  10449. >
  10450. <div class="title" style="width: 100%; box-sizing: border-box">
  10451. 查看文档
  10452. </div>
  10453. <el-form class="textBox" style="height: 90%">
  10454. <el-form-item class="textTitle">
  10455. <div style="font-size: 22px">
  10456. {{ fullUrl.name }}
  10457. </div>
  10458. </el-form-item>
  10459. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10460. <div
  10461. v-html="fullUrl.url"
  10462. class="textContent"
  10463. style="height: auto"
  10464. ></div>
  10465. </el-form>
  10466. </div>
  10467. <div
  10468. class="wheel"
  10469. v-else-if="
  10470. (fulltype == 2 || fulltype == 4) &&
  10471. fullUrl.indexOf(
  10472. 'https://view.officeapps.live.com/op/view.aspx?src='
  10473. ) != -1
  10474. "
  10475. style="width: 100%;height:100%; margin: 0 auto"
  10476. >
  10477. <iframe
  10478. style="width: 100%; height: 100%; border: none"
  10479. :src="fullUrl"
  10480. ></iframe>
  10481. </div>
  10482. <!-- <iframe
  10483. v-else-if="fulltype == 2"
  10484. style="width: 100%; height: 100%; border: none"
  10485. :src="fullUrl"
  10486. security="restricted"
  10487. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10488. ></iframe> -->
  10489. <iframe
  10490. style="width: 100%; height: 100%; border: none"
  10491. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10492. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  10493. :src="fullUrl"
  10494. ></iframe>
  10495. <iframe
  10496. style="width: 100%; height: 100%; border: none"
  10497. security="restricted"
  10498. v-else-if="(fulltype == 2 || fulltype == 4)"
  10499. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10500. :src="fullUrl"
  10501. ></iframe>
  10502. <pdf
  10503. v-else-if="fulltype == 3"
  10504. :pdfUrl="fullUrl"
  10505. style="width: 100%; height: 100%; overflow: auto"
  10506. ></pdf>
  10507. <iframe
  10508. style="width: 100%; height: 100%; border: none"
  10509. security="restricted"
  10510. v-if="(fulltype == 16)"
  10511. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10512. :src="fullUrl"
  10513. ></iframe>
  10514. </div>
  10515. <!-- <div slot="footer">
  10516. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10517. </div> -->
  10518. </el-dialog>
  10519. <el-dialog
  10520. title="个人评价"
  10521. :visible.sync="studentEvalDialogVisible"
  10522. :append-to-body="true"
  10523. width="800px"
  10524. :before-close="handleClose"
  10525. class="dialog_diy"
  10526. >
  10527. <div class="evalCss">
  10528. <div class="nav">请选择星星进行评分</div>
  10529. <div class="middleBox" v-if="eScore.eStar">
  10530. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10531. <div class="nameAndrate">
  10532. <div>{{ e.value }}</div>
  10533. <el-rate
  10534. v-model="eScore.eStar[eIndex]"
  10535. :disabled="isStar"
  10536. ></el-rate>
  10537. </div>
  10538. <div v-if="e.detail">{{ e.detail }}</div>
  10539. </div>
  10540. <div class="easy_comment" v-if="false">
  10541. <div
  10542. v-for="(p, pIndex) in PlTextList"
  10543. :key="pIndex"
  10544. @click="fastText(p, 2)"
  10545. >
  10546. {{ p }}
  10547. </div>
  10548. </div>
  10549. <div class="bz">
  10550. <textarea
  10551. :disabled="isStar"
  10552. rows="4"
  10553. class="pj"
  10554. style="
  10555. padding: 10px 5px;
  10556. width: 70%;
  10557. background: #f7f6f9;
  10558. font-size: 14px;
  10559. text-indent: 10px;
  10560. "
  10561. cols
  10562. v-model="eScore.eBzText"
  10563. placeholder="请输入评价内容..."
  10564. ></textarea>
  10565. </div>
  10566. </div>
  10567. </div>
  10568. <div slot="footer">
  10569. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10570. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10571. >确 定</el-button
  10572. >
  10573. </div>
  10574. </el-dialog>
  10575. <el-dialog
  10576. title="个人评价"
  10577. :visible.sync="studentEvalDialogVisibleTeacher"
  10578. :append-to-body="true"
  10579. width="800px"
  10580. :before-close="handleClose"
  10581. class="dialog_diy"
  10582. >
  10583. <div class="w_name">
  10584. 学生姓名:<span>{{ sStudent.student }}</span>
  10585. </div>
  10586. <div class="evalCss">
  10587. <div class="nav">请选择星星进行评分</div>
  10588. <div class="middleBox" v-if="eScore.eStar">
  10589. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10590. <div class="nameAndrate">
  10591. <div>{{ e.value }}</div>
  10592. <el-rate
  10593. v-model="eScore.eStar[eIndex]"
  10594. :disabled="isStar"
  10595. ></el-rate>
  10596. </div>
  10597. <div v-if="e.detail">{{ e.detail }}</div>
  10598. </div>
  10599. <div class="easy_comment" v-if="false">
  10600. <div
  10601. v-for="(p, pIndex) in PlTextList"
  10602. :key="pIndex"
  10603. @click="fastText(p, 2)"
  10604. >
  10605. {{ p }}
  10606. </div>
  10607. </div>
  10608. <div class="bz">
  10609. <textarea
  10610. :disabled="isStar"
  10611. rows="4"
  10612. class="pj"
  10613. style="
  10614. padding: 10px 5px;
  10615. width: 70%;
  10616. background: #f7f6f9;
  10617. font-size: 14px;
  10618. text-indent: 10px;
  10619. "
  10620. cols
  10621. v-model="eScore.eBzText"
  10622. placeholder="请输入评价内容..."
  10623. ></textarea>
  10624. </div>
  10625. </div>
  10626. </div>
  10627. <div slot="footer">
  10628. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10629. >取 消</el-button
  10630. >
  10631. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10632. >确 定</el-button
  10633. >
  10634. </div>
  10635. </el-dialog>
  10636. <el-dialog
  10637. title="选择匹配"
  10638. :visible.sync="dialogVisibleSelect"
  10639. :append-to-body="true"
  10640. width="90%"
  10641. :before-close="handleClose"
  10642. class="dialog_diy dialog_diy3"
  10643. >
  10644. <div v-if="selectJson">
  10645. <div class="select_box2">
  10646. <div class="select_box2_title">
  10647. <div>选择匹配</div>
  10648. <div>请选择对应的答案进行答题!</div>
  10649. </div>
  10650. <div class="select_box2_box">
  10651. <div class="select_box2_img">
  10652. <img
  10653. :src="selectJson.url"
  10654. @click="previewImg(selectJson.url)"
  10655. alt=""
  10656. />
  10657. </div>
  10658. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10659. <div style="padding-top: 15px">
  10660. <div class="select_answer_title" v-if="isSelect">
  10661. {{ selectAnswer.stu }}
  10662. </div>
  10663. <div class="select_answer_title" v-else>
  10664. 根据题目选择对应答案
  10665. </div>
  10666. <div
  10667. class="select_box2_answer_box"
  10668. v-for="(item2, checkIndex) in selectJson.select"
  10669. :key="checkIndex"
  10670. >
  10671. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10672. <el-select
  10673. :disabled="isSelect"
  10674. v-model="selectAnswer.answer[checkIndex]"
  10675. placeholder="请选择正确答案"
  10676. >
  10677. <el-option
  10678. v-for="(e, eIndex) in selectJson.select"
  10679. :key="eIndex"
  10680. :label="e"
  10681. :value="eIndex"
  10682. >
  10683. </el-option>
  10684. </el-select>
  10685. </div>
  10686. </div>
  10687. <div
  10688. class="rightAnswerCss"
  10689. v-if="isSelect && (tType == 1 || tType == 4)"
  10690. >
  10691. <div
  10692. v-for="(a, aIndex) in selectJson.answer"
  10693. :key="aIndex"
  10694. class="rightAnswer"
  10695. >
  10696. <div
  10697. v-if="selectAnswer.answer[aIndex] === a"
  10698. style="color: #767de1"
  10699. >
  10700. 回答正确
  10701. </div>
  10702. <div v-else>回答错误</div>
  10703. <div
  10704. style="margin-left: 10px"
  10705. v-if="selectAnswer.answer[aIndex] !== a"
  10706. >
  10707. 正确答案:
  10708. </div>
  10709. <div
  10710. :class="
  10711. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10712. "
  10713. >
  10714. {{ selectJson.select[a] }}
  10715. </div>
  10716. </div>
  10717. </div>
  10718. </div>
  10719. <div class="upAnswerCss">
  10720. <el-button
  10721. type="primary"
  10722. @click="addSelectAnswer"
  10723. v-if="!isSelect"
  10724. >提交答案</el-button
  10725. >
  10726. </div>
  10727. </div>
  10728. </div>
  10729. </div>
  10730. </el-dialog>
  10731. <el-dialog
  10732. title="选择匹配"
  10733. :visible.sync="dialogVisibleSelectTeacher"
  10734. :append-to-body="true"
  10735. width="90%"
  10736. :before-close="handleClose"
  10737. class="dialog_diy dialog_diy3"
  10738. >
  10739. <div v-if="selectJson">
  10740. <div class="w_name">
  10741. 学生姓名:<span>{{ sStudent.student }}</span>
  10742. </div>
  10743. <div class="select_box2">
  10744. <div class="select_box2_title">
  10745. <div>选择匹配</div>
  10746. <div>请选择对应的答案进行答题!</div>
  10747. </div>
  10748. <div class="select_box2_box">
  10749. <div class="select_box2_img">
  10750. <img
  10751. :src="selectJson.url"
  10752. @click="previewImg(selectJson.url)"
  10753. alt=""
  10754. />
  10755. </div>
  10756. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10757. <div style="padding-top: 15px">
  10758. <div class="select_answer_title" v-if="isSelect">
  10759. {{ selectAnswer.stu }}
  10760. </div>
  10761. <div class="select_answer_title" v-else>
  10762. 根据题目选择对应答案
  10763. </div>
  10764. <div
  10765. class="select_box2_answer_box"
  10766. v-for="(item2, checkIndex) in selectJson.select"
  10767. :key="checkIndex"
  10768. >
  10769. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10770. <el-select
  10771. :disabled="isSelect"
  10772. v-model="selectAnswer.answer[checkIndex]"
  10773. placeholder="请选择正确答案"
  10774. >
  10775. <el-option
  10776. v-for="(e, eIndex) in selectJson.select"
  10777. :key="eIndex"
  10778. :label="e"
  10779. :value="eIndex"
  10780. >
  10781. </el-option>
  10782. </el-select>
  10783. </div>
  10784. </div>
  10785. <div
  10786. class="rightAnswerCss"
  10787. v-if="isSelect && (tType == 1 || tType == 4)"
  10788. >
  10789. <div
  10790. v-for="(a, aIndex) in selectJson.answer"
  10791. :key="aIndex"
  10792. class="rightAnswer"
  10793. >
  10794. <div
  10795. v-if="selectAnswer.answer[aIndex] === a"
  10796. style="color: #767de1"
  10797. >
  10798. 回答正确
  10799. </div>
  10800. <div v-else>回答错误</div>
  10801. <div
  10802. style="margin-left: 10px"
  10803. v-if="selectAnswer.answer[aIndex] !== a"
  10804. >
  10805. 正确答案:
  10806. </div>
  10807. <div
  10808. :class="
  10809. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10810. "
  10811. >
  10812. {{ selectJson.select[a] }}
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. <div class="upAnswerCss">
  10818. <el-button
  10819. type="primary"
  10820. @click="addSelectAnswerTeacher"
  10821. v-if="!isSelect"
  10822. >提交答案</el-button
  10823. >
  10824. </div>
  10825. </div>
  10826. </div>
  10827. </div>
  10828. </el-dialog>
  10829. <el-dialog
  10830. title="教师评分"
  10831. :visible.sync="dialogVisibleScore"
  10832. :append-to-body="true"
  10833. width="800px"
  10834. :before-close="handleClose"
  10835. class="dialog_diy"
  10836. >
  10837. <div>
  10838. <div class="studentDetail">
  10839. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10840. <div class="nameAndTime">
  10841. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10842. <div>{{ commentDetail.time }}</div>
  10843. </div>
  10844. </div>
  10845. <div
  10846. class="worksAnswer"
  10847. v-if="commentDetail.works && commentDetail.type == 2"
  10848. >
  10849. {{ JSON.parse(commentDetail.works)[0].answer }}
  10850. </div>
  10851. <div
  10852. class="worksAnswer"
  10853. v-if="commentDetail.works && commentDetail.type == 1"
  10854. >
  10855. <pdf
  10856. v-if="showPDF"
  10857. :pdfUrl="pptImgUrl"
  10858. style="width: 100%; height: 520px; overflow: auto"
  10859. :class="{ fullStyle: full }"
  10860. ></pdf>
  10861. <iframe
  10862. v-else
  10863. :src="pptImgUrl"
  10864. frameborder="0"
  10865. width="100%"
  10866. height="600"
  10867. :class="{ fullStyle: full }"
  10868. ></iframe>
  10869. </div>
  10870. <div
  10871. class="worksAnswer"
  10872. v-if="commentDetail.works && commentDetail.type == 0"
  10873. >
  10874. <img
  10875. :src="commentDetail.works"
  10876. alt=""
  10877. @click="previewImg(commentDetail.works)"
  10878. />
  10879. </div>
  10880. <div
  10881. class="worksAnswer"
  10882. v-if="commentDetail.works && commentDetail.type == 3"
  10883. >
  10884. <video-player
  10885. class="video-player vjs-custom-skin"
  10886. :playsinline="true"
  10887. :options="videoDetail"
  10888. @play="onPlayerPlay($event)"
  10889. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10890. ></video-player>
  10891. </div>
  10892. <div
  10893. class="worksAnswer codeFileBox"
  10894. v-if="commentDetail.works && commentDetail.type == 12"
  10895. @click="downloadFile(commentDetail.works)"
  10896. >
  10897. <img src="../assets/icon/codeFile.png" />
  10898. <div>点击下载文件</div>
  10899. </div>
  10900. <div
  10901. class="worksAnswer codeFileBox"
  10902. v-if="commentDetail.works && commentDetail.type == 15"
  10903. @click="
  10904. openCocoPi(
  10905. 57,
  10906. commentIndexJson.toolIndex,
  10907. commentDetail.userid,
  10908. commentDetail.sName
  10909. )
  10910. "
  10911. >
  10912. <img src="../assets/icon/codeFile.png" />
  10913. <div>点击打开CocoPi</div>
  10914. </div>
  10915. <div
  10916. class="worksAnswer"
  10917. v-if="commentDetail.works && commentDetail.type == 13"
  10918. >
  10919. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10920. </div>
  10921. <div class="scoreBox">
  10922. <span class="t">请输入分数</span>
  10923. <el-input-number
  10924. :disabled="courseDetail.userid != userid"
  10925. v-model="wScore"
  10926. :controls="false"
  10927. :min="0"
  10928. :max="100"
  10929. ></el-input-number>
  10930. </div>
  10931. <div class="scoreDetailBox">
  10932. <span class="t">评分评论</span>
  10933. <el-input
  10934. type="textarea"
  10935. :rows="5"
  10936. :disabled="courseDetail.userid != userid"
  10937. resize="none"
  10938. v-model="scoreDetail"
  10939. placeholder="请输入对学生的评价"
  10940. >
  10941. </el-input>
  10942. </div>
  10943. </div>
  10944. <span slot="footer" class="dialog-footer">
  10945. <el-button
  10946. @click="
  10947. (dialogVisibleScore = false),
  10948. (commentIndexJson = {}),
  10949. videoDetail.sources && videoDetail.sources[0]
  10950. ? (videoDetail.sources[0].src = '')
  10951. : ''
  10952. "
  10953. >取 消</el-button
  10954. >
  10955. <el-button
  10956. type="primary"
  10957. v-if="courseDetail.userid == userid"
  10958. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10959. >确 定
  10960. </el-button>
  10961. </span>
  10962. </el-dialog>
  10963. <el-dialog
  10964. title="排序"
  10965. :visible.sync="dialogVisibleSentence"
  10966. :append-to-body="true"
  10967. width="1000px"
  10968. :before-close="handleClose"
  10969. class="dialog_diy dialog_diy3"
  10970. >
  10971. <div>
  10972. <div class="sentenBox">
  10973. <div
  10974. v-for="(st, stIndex) in sentenceList"
  10975. :key="stIndex"
  10976. style="padding-bottom: 20px"
  10977. >
  10978. <div
  10979. style="padding: 15px 0 10px 20px"
  10980. class="sentenceTitle"
  10981. :index="stIndex + 1"
  10982. >
  10983. 题目{{ stIndex + 1 }}:请选择正确顺序
  10984. </div>
  10985. <div class="cardList" v-if="st.chooseSenList">
  10986. <div class="cardBox">
  10987. <div
  10988. v-for="(r, rIndex) in st.chooseSenList"
  10989. :key="rIndex"
  10990. @click="returnCard(r, stIndex, rIndex)"
  10991. >
  10992. <el-tooltip
  10993. class="item"
  10994. effect="light"
  10995. :content="r"
  10996. placement="top"
  10997. v-if="r != '' && r != undefined"
  10998. >
  10999. <div
  11000. :class="{
  11001. isCard: r,
  11002. isChooseCard: r == '' || r == undefined,
  11003. }"
  11004. >
  11005. <div>{{ r }}</div>
  11006. </div>
  11007. </el-tooltip>
  11008. <div
  11009. :class="{
  11010. isCard: r,
  11011. isChooseCard: r == '' || r == undefined,
  11012. }"
  11013. v-else
  11014. >
  11015. <div>{{ r }}</div>
  11016. </div>
  11017. </div>
  11018. </div>
  11019. </div>
  11020. <div class="cardList" v-if="st.addChangeSen">
  11021. <div class="cardBox">
  11022. <div
  11023. v-for="(s, sIndex) in st.addChangeSen"
  11024. :key="sIndex"
  11025. @click="setRightAnswer(s, stIndex, sIndex)"
  11026. >
  11027. <el-tooltip
  11028. class="item"
  11029. effect="light"
  11030. :content="s"
  11031. placement="top"
  11032. v-if="s != '' && s != undefined"
  11033. >
  11034. <div
  11035. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11036. >
  11037. <div>{{ s }}</div>
  11038. </div>
  11039. </el-tooltip>
  11040. <div
  11041. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11042. v-else
  11043. >
  11044. <div>{{ s }}</div>
  11045. </div>
  11046. </div>
  11047. </div>
  11048. </div>
  11049. </div>
  11050. </div>
  11051. </div>
  11052. <span slot="footer" class="dialog-footer">
  11053. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11054. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11055. </span>
  11056. </el-dialog>
  11057. <el-dialog
  11058. title="排序"
  11059. :visible.sync="dialogVisibleSentenceTeacher"
  11060. :append-to-body="true"
  11061. width="1000px"
  11062. :before-close="handleClose"
  11063. class="dialog_diy dialog_diy3"
  11064. >
  11065. <div>
  11066. <div class="w_name">
  11067. 学生姓名:<span>{{ sStudent.student }}</span>
  11068. </div>
  11069. <div class="sentenBox">
  11070. <div
  11071. v-for="(st, stIndex) in sentenceList"
  11072. :key="stIndex"
  11073. style="padding-bottom: 20px"
  11074. >
  11075. <div
  11076. style="padding: 15px 0 10px 20px"
  11077. class="sentenceTitle"
  11078. :index="stIndex + 1"
  11079. >
  11080. 题目{{ stIndex + 1 }}:请选择正确顺序
  11081. </div>
  11082. <div class="cardList" v-if="st.chooseSenList">
  11083. <div class="cardBox">
  11084. <div
  11085. v-for="(r, rIndex) in st.chooseSenList"
  11086. :key="rIndex"
  11087. @click="returnCard(r, stIndex, rIndex)"
  11088. >
  11089. <el-tooltip
  11090. class="item"
  11091. effect="light"
  11092. :content="r"
  11093. placement="top"
  11094. v-if="r != '' && r != undefined"
  11095. >
  11096. <div
  11097. :class="{
  11098. isCard: r,
  11099. isChooseCard: r == '' || r == undefined,
  11100. }"
  11101. >
  11102. <div>{{ r }}</div>
  11103. </div>
  11104. </el-tooltip>
  11105. <div
  11106. :class="{
  11107. isCard: r,
  11108. isChooseCard: r == '' || r == undefined,
  11109. }"
  11110. v-else
  11111. >
  11112. <div>{{ r }}</div>
  11113. </div>
  11114. </div>
  11115. </div>
  11116. </div>
  11117. <div class="cardList" v-if="st.addChangeSen">
  11118. <div class="cardBox">
  11119. <div
  11120. v-for="(s, sIndex) in st.addChangeSen"
  11121. :key="sIndex"
  11122. @click="setRightAnswer(s, stIndex, sIndex)"
  11123. >
  11124. <el-tooltip
  11125. class="item"
  11126. effect="light"
  11127. :content="s"
  11128. placement="top"
  11129. v-if="s != '' && s != undefined"
  11130. >
  11131. <div
  11132. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11133. >
  11134. <div>{{ s }}</div>
  11135. </div>
  11136. </el-tooltip>
  11137. <div
  11138. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11139. v-else
  11140. >
  11141. <div>{{ s }}</div>
  11142. </div>
  11143. </div>
  11144. </div>
  11145. </div>
  11146. </div>
  11147. </div>
  11148. </div>
  11149. <span slot="footer" class="dialog-footer">
  11150. <el-button @click="dialogVisibleSentenceTeacher = false"
  11151. >取 消</el-button
  11152. >
  11153. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11154. </span>
  11155. </el-dialog>
  11156. <el-dialog
  11157. title="排序"
  11158. :visible.sync="dialogVisibleSentence1"
  11159. :append-to-body="true"
  11160. width="1000px"
  11161. :before-close="handleClose"
  11162. class="dialog_diy dialog_diy3"
  11163. >
  11164. <div>
  11165. <div class="sentenBox">
  11166. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11167. {{ sentenceList1.stuName }}的作业
  11168. </div>
  11169. <div
  11170. v-for="(st, stIndex) in sentenceList1"
  11171. :key="stIndex"
  11172. style="padding-bottom: 20px"
  11173. >
  11174. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11175. 第{{ stIndex + 1 }}题
  11176. </div>
  11177. <div class="isWrong">
  11178. <div class="cardList1" v-if="st.chooseSenList">
  11179. <div class="cardBox">
  11180. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11181. <el-tooltip
  11182. class="item"
  11183. effect="light"
  11184. :content="s"
  11185. placement="top"
  11186. >
  11187. <div class="isCard">
  11188. <div>{{ s }}</div>
  11189. </div>
  11190. </el-tooltip>
  11191. </div>
  11192. </div>
  11193. <div class="cardAnswerBox">
  11194. 组成句子:{{ st.chooseSenList.join(" ") }}
  11195. </div>
  11196. </div>
  11197. <div v-if="tType == 2" class="isTj">
  11198. <div class="isTjImg">
  11199. <img src="../assets/icon/conSentences/right.png" alt="" />
  11200. </div>
  11201. <div>已提交</div>
  11202. </div>
  11203. <div
  11204. class="answerRight isTj"
  11205. v-if="
  11206. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11207. (tType == 1 || tType == 4)
  11208. "
  11209. >
  11210. <div class="isTjImg">
  11211. <img src="../assets/icon/conSentences/right.png" alt="" />
  11212. </div>
  11213. <div>回答正确</div>
  11214. </div>
  11215. <div
  11216. class="answerRight isTj"
  11217. v-if="
  11218. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11219. (tType == 1 || tType == 4)
  11220. "
  11221. >
  11222. <div class="isTjImg">
  11223. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11224. </div>
  11225. <div>回答错误</div>
  11226. </div>
  11227. </div>
  11228. <div
  11229. v-if="
  11230. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11231. (tType == 1 || tType == 4)
  11232. "
  11233. >
  11234. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11235. <div
  11236. class="cardList"
  11237. v-if="st.rightAnswer"
  11238. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11239. >
  11240. <div class="cardBox">
  11241. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11242. <el-tooltip
  11243. class="item"
  11244. effect="light"
  11245. :content="r"
  11246. placement="top"
  11247. >
  11248. <div class="isCard1">
  11249. <div>{{ r }}</div>
  11250. </div>
  11251. </el-tooltip>
  11252. </div>
  11253. </div>
  11254. <div class="cardAnswerBox">
  11255. 组成句子:{{ st.rightAnswer.join(" ") }}
  11256. </div>
  11257. </div>
  11258. </div>
  11259. </div>
  11260. </div>
  11261. </div>
  11262. <span slot="footer" class="dialog-footer">
  11263. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11264. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11265. >确 定</el-button
  11266. >
  11267. </span>
  11268. </el-dialog>
  11269. <el-dialog
  11270. title="教师提交作业"
  11271. :visible.sync="dialogVisibleWorks"
  11272. :append-to-body="true"
  11273. width="500px"
  11274. :before-close="handleClose"
  11275. class="dialog_change"
  11276. >
  11277. <div class="marginT">
  11278. <div class="w_name">
  11279. 学生姓名:<span>{{ sStudent.student }}</span>
  11280. </div>
  11281. <div>上传文件</div>
  11282. <div style="display: flex; gap: 10px">
  11283. <div
  11284. class="chapter_add"
  11285. @click="addImg($event)"
  11286. v-if="studyJuri[0].cover.length == 0"
  11287. >
  11288. <div class="up_photo">
  11289. <img src="../assets/icon/uploadImg.png" alt />
  11290. </div>
  11291. <!-- <input
  11292. type="file"
  11293. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11294. style="display: none"
  11295. @change="beforeUpload1($event, 1)"
  11296. /> -->
  11297. <input
  11298. type="file"
  11299. accept="*"
  11300. style="display: none"
  11301. @change="beforeUpload1($event, 1)"
  11302. />
  11303. <!-- <input
  11304. type="file"
  11305. accept="image/*"
  11306. capture="camera"
  11307. style="display: none"
  11308. @change="beforeUpload1($event, 1)"
  11309. /> -->
  11310. </div>
  11311. <div
  11312. class="chapter_add"
  11313. @click="addImg($event)"
  11314. v-if="studyJuri[0].cover.length == 0"
  11315. >
  11316. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11317. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11318. </div>
  11319. <input
  11320. type="file"
  11321. accept="image/*"
  11322. capture="camera"
  11323. style="display: none"
  11324. @change="beforeUpload1($event, 1)"
  11325. />
  11326. </div>
  11327. </div>
  11328. <!-- capture="camera" -->
  11329. <div
  11330. class="chapter_add"
  11331. style="
  11332. display: flex;
  11333. width: 100%;
  11334. flex-direction: row;
  11335. flex-wrap: wrap;
  11336. justify-content: flex-start;
  11337. padding: 15px 0;
  11338. "
  11339. v-if="studyJuri[0].cover.length > 0"
  11340. >
  11341. <div class="upCover">
  11342. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11343. <img :src="word" alt v-else-if="fileType == 1" />
  11344. <img :src="video" alt v-else-if="fileType == 2" />
  11345. <img :src="word2" alt v-else-if="fileType == 3" />
  11346. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11347. <div class="deleteWord" @click="clean(1)">
  11348. <img src="../assets/icon/deleteWorks.png" alt />
  11349. </div>
  11350. </div>
  11351. </div>
  11352. </div>
  11353. <div
  11354. class="upload_send"
  11355. @click="addCourseWorksTeacher(taskCount)"
  11356. v-if="!proVisible"
  11357. >
  11358. 提交
  11359. </div>
  11360. </el-dialog>
  11361. <ImgDraw
  11362. :drawShow="drawShow"
  11363. @closeDraw="closeDraw"
  11364. @addImgDraw="addImgDraw"
  11365. :bg="bg"
  11366. ></ImgDraw>
  11367. <el-dialog
  11368. title="表格"
  11369. :visible.sync="dialogVisibleTable"
  11370. :append-to-body="true"
  11371. width="95%"
  11372. :before-close="handleClose"
  11373. class="dialog_diy"
  11374. >
  11375. <el-form>
  11376. <div
  11377. style="
  11378. display: flex;
  11379. align-items: center;
  11380. justify-content: space-between;
  11381. "
  11382. >
  11383. <span>表格内容</span>
  11384. <el-button type="primary" size="small" @click="returnTableText"
  11385. >还原模板</el-button
  11386. >
  11387. </div>
  11388. <Table
  11389. v-model="tableJson.text"
  11390. @change="change"
  11391. v-if="dialogVisibleTable"
  11392. ></Table>
  11393. </el-form>
  11394. <span slot="footer" class="dialog-footer">
  11395. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11396. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11397. </span>
  11398. </el-dialog>
  11399. <el-dialog
  11400. title="表格"
  11401. :visible.sync="dialogVisibleTableTeacher"
  11402. :append-to-body="true"
  11403. width="95%"
  11404. :before-close="handleClose"
  11405. class="dialog_diy"
  11406. >
  11407. <el-form>
  11408. <div class="w_name">
  11409. 学生姓名:<span>{{ sStudent.student }}</span>
  11410. </div>
  11411. <div>表格内容</div>
  11412. <Table
  11413. v-model="tableJson.text"
  11414. @change="change"
  11415. v-if="dialogVisibleTableTeacher"
  11416. ></Table>
  11417. </el-form>
  11418. <span slot="footer" class="dialog-footer">
  11419. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11420. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11421. </span>
  11422. </el-dialog>
  11423. <el-dialog
  11424. title="文档"
  11425. :visible.sync="dialogVisibleWord"
  11426. :append-to-body="true"
  11427. width="95%"
  11428. :before-close="handleClose"
  11429. class="dialog_diy"
  11430. >
  11431. <el-form>
  11432. <div
  11433. style="
  11434. display: flex;
  11435. align-items: center;
  11436. justify-content: space-between;
  11437. "
  11438. >
  11439. <span>文档内容</span>
  11440. <el-button type="primary" size="small" @click="returnWordText"
  11441. >还原模板</el-button
  11442. >
  11443. </div>
  11444. <editor-bar
  11445. v-model="wordJson.text"
  11446. v-if="dialogVisibleWord"
  11447. ></editor-bar>
  11448. </el-form>
  11449. <span slot="footer" class="dialog-footer">
  11450. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11451. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11452. </span>
  11453. </el-dialog>
  11454. <el-dialog
  11455. title="文档"
  11456. :visible.sync="dialogVisibleWordTeacher"
  11457. :append-to-body="true"
  11458. width="95%"
  11459. :before-close="handleClose"
  11460. class="dialog_diy"
  11461. >
  11462. <el-form>
  11463. <div class="w_name">
  11464. 学生姓名:<span>{{ sStudent.student }}</span>
  11465. </div>
  11466. <div>文档内容</div>
  11467. <editor-bar
  11468. v-model="wordJson.text"
  11469. v-if="dialogVisibleWordTeacher"
  11470. ></editor-bar>
  11471. </el-form>
  11472. <span slot="footer" class="dialog-footer">
  11473. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11474. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11475. </span>
  11476. </el-dialog>
  11477. <el-dialog
  11478. title="表格"
  11479. :visible.sync="dialogVisibleTable2"
  11480. :append-to-body="true"
  11481. width="95%"
  11482. :before-close="handleClose"
  11483. class="dialog_diy"
  11484. >
  11485. <el-form>
  11486. <div class="cont" v-html="tableJson.text"></div>
  11487. </el-form>
  11488. <span slot="footer" class="dialog-footer">
  11489. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11490. </span>
  11491. </el-dialog>
  11492. <el-dialog
  11493. title="文档"
  11494. :visible.sync="dialogVisibleTable3"
  11495. :append-to-body="true"
  11496. width="95%"
  11497. :before-close="handleClose"
  11498. class="dialog_diy"
  11499. >
  11500. <el-form>
  11501. <div class="cont" v-html="tableJson.text"></div>
  11502. </el-form>
  11503. <span slot="footer" class="dialog-footer">
  11504. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11505. </span>
  11506. </el-dialog>
  11507. <el-dialog
  11508. title="分组设置"
  11509. :visible.sync="dialogVisibleGroup"
  11510. :append-to-body="true"
  11511. width="95%"
  11512. :before-close="handleClose"
  11513. class="dialog_diy"
  11514. >
  11515. <div v-if="dialogVisibleGroup">
  11516. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11517. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11518. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11519. </div>
  11520. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11521. @click="lockChair">
  11522. 锁定位置
  11523. </div>
  11524. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11525. 解锁位置
  11526. </div> -->
  11527. <div class="group_switch">
  11528. <span>开放选座</span>
  11529. <el-switch
  11530. v-model="islock"
  11531. active-text=""
  11532. class="switchCss"
  11533. @change="lockChair"
  11534. ></el-switch>
  11535. </div>
  11536. <div
  11537. type="primary"
  11538. @click="updateGroup"
  11539. class="returnBtn"
  11540. style="background-color: #225bc7"
  11541. >
  11542. 分组设置
  11543. </div>
  11544. </div>
  11545. <div>
  11546. <div
  11547. class="g_d_box"
  11548. v-if="groupJson.group && groupStudent[toolindex]"
  11549. >
  11550. <div
  11551. class="g_d_group"
  11552. v-for="(g, gindex) in groupJson.group"
  11553. :key="gindex"
  11554. >
  11555. <div class="g_d_group_chair">
  11556. <div v-if="groupJson.number > 1">
  11557. <span
  11558. :class="{
  11559. isChair:
  11560. groupStudent[toolindex][gindex] &&
  11561. groupStudent[toolindex][gindex][0],
  11562. updateChair:
  11563. courseDetail.userid == userid &&
  11564. groupStudent[toolindex][gindex] &&
  11565. groupStudent[toolindex][gindex][0] &&
  11566. groupJson.islock == 2,
  11567. }"
  11568. ><span
  11569. class="updateChairBtn"
  11570. @click="
  11571. updateGroupChair(
  11572. groupStudent[toolindex][gindex] &&
  11573. groupStudent[toolindex][gindex][0]
  11574. )
  11575. "
  11576. >修改</span
  11577. ></span
  11578. ><span>{{
  11579. groupStudent[toolindex][gindex] &&
  11580. groupStudent[toolindex][gindex][0]
  11581. ? groupStudent[toolindex][gindex] &&
  11582. groupStudent[toolindex][gindex][0].name
  11583. : "空位置"
  11584. }}</span>
  11585. </div>
  11586. <div v-if="groupJson.number > 4">
  11587. <span
  11588. :class="{
  11589. isChair:
  11590. groupStudent[toolindex][gindex] &&
  11591. groupStudent[toolindex][gindex][4],
  11592. updateChair:
  11593. courseDetail.userid == userid &&
  11594. groupStudent[toolindex][gindex] &&
  11595. groupStudent[toolindex][gindex][4] &&
  11596. groupJson.islock == 2,
  11597. }"
  11598. ><span
  11599. class="updateChairBtn"
  11600. @click="
  11601. updateGroupChair(
  11602. groupStudent[toolindex][gindex] &&
  11603. groupStudent[toolindex][gindex][4]
  11604. )
  11605. "
  11606. >修改</span
  11607. ></span
  11608. ><span>{{
  11609. groupStudent[toolindex][gindex] &&
  11610. groupStudent[toolindex][gindex][4]
  11611. ? groupStudent[toolindex][gindex] &&
  11612. groupStudent[toolindex][gindex][4].name
  11613. : "空位置"
  11614. }}</span>
  11615. </div>
  11616. <div v-if="groupJson.number > 8">
  11617. <span
  11618. :class="{
  11619. isChair:
  11620. groupStudent[toolindex][gindex] &&
  11621. groupStudent[toolindex][gindex][8],
  11622. updateChair:
  11623. courseDetail.userid == userid &&
  11624. groupStudent[toolindex][gindex] &&
  11625. groupStudent[toolindex][gindex][8] &&
  11626. groupJson.islock == 2,
  11627. }"
  11628. ><span
  11629. class="updateChairBtn"
  11630. @click="
  11631. updateGroupChair(
  11632. groupStudent[toolindex][gindex] &&
  11633. groupStudent[toolindex][gindex][8]
  11634. )
  11635. "
  11636. >修改</span
  11637. ></span
  11638. ><span>{{
  11639. groupStudent[toolindex][gindex] &&
  11640. groupStudent[toolindex][gindex][8]
  11641. ? groupStudent[toolindex][gindex] &&
  11642. groupStudent[toolindex][gindex][8].name
  11643. : "空位置"
  11644. }}</span>
  11645. </div>
  11646. </div>
  11647. <div class="g_d_group_tableBox">
  11648. <div class="g_d_group_chair2">
  11649. <div v-if="groupJson.number > 2">
  11650. <span
  11651. :class="{
  11652. isChair:
  11653. groupStudent[toolindex][gindex] &&
  11654. groupStudent[toolindex][gindex][2],
  11655. updateChair:
  11656. courseDetail.userid == userid &&
  11657. groupStudent[toolindex][gindex] &&
  11658. groupStudent[toolindex][gindex][2] &&
  11659. groupJson.islock == 2,
  11660. }"
  11661. ><span
  11662. class="updateChairBtn"
  11663. @click="
  11664. updateGroupChair(
  11665. groupStudent[toolindex][gindex] &&
  11666. groupStudent[toolindex][gindex][2]
  11667. )
  11668. "
  11669. >修改</span
  11670. ></span
  11671. ><span>{{
  11672. groupStudent[toolindex][gindex] &&
  11673. groupStudent[toolindex][gindex][2]
  11674. ? groupStudent[toolindex][gindex] &&
  11675. groupStudent[toolindex][gindex][2].name
  11676. : "空位置"
  11677. }}</span>
  11678. </div>
  11679. <div v-if="groupJson.number > 6">
  11680. <span
  11681. :class="{
  11682. isChair:
  11683. groupStudent[toolindex][gindex] &&
  11684. groupStudent[toolindex][gindex][6],
  11685. updateChair:
  11686. courseDetail.userid == userid &&
  11687. groupStudent[toolindex][gindex] &&
  11688. groupStudent[toolindex][gindex][6] &&
  11689. groupJson.islock == 2,
  11690. }"
  11691. ><span
  11692. class="updateChairBtn"
  11693. @click="
  11694. updateGroupChair(
  11695. groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][6]
  11697. )
  11698. "
  11699. >修改</span
  11700. ></span
  11701. ><span>{{
  11702. groupStudent[toolindex][gindex] &&
  11703. groupStudent[toolindex][gindex][6]
  11704. ? groupStudent[toolindex][gindex] &&
  11705. groupStudent[toolindex][gindex][6].name
  11706. : "空位置"
  11707. }}</span>
  11708. </div>
  11709. </div>
  11710. <div class="g_d_group_table">
  11711. <div>
  11712. {{ g.name }}
  11713. </div>
  11714. <div>
  11715. <div
  11716. v-if="
  11717. courseDetail.userid == userid && groupJson.islock == 2
  11718. "
  11719. @click="deleteGroupChair(gindex)"
  11720. >
  11721. 移除组员
  11722. </div>
  11723. <div
  11724. @click="selectGroup(gindex)"
  11725. v-else-if="
  11726. groupStudentUid[toolindex] &&
  11727. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11728. "
  11729. >
  11730. 加入分组
  11731. </div>
  11732. <div
  11733. @click="
  11734. exitGroup(
  11735. groupStudent[toolindex][gindex] &&
  11736. groupStudent[toolindex][gindex][
  11737. groupStudentUid[toolindex][gindex].indexOf(userid)
  11738. ].id
  11739. )
  11740. "
  11741. v-else-if="
  11742. groupStudentUid[toolindex] &&
  11743. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11744. "
  11745. >
  11746. 退出分组
  11747. </div>
  11748. </div>
  11749. </div>
  11750. <div class="g_d_group_chair2">
  11751. <div v-if="groupJson.number > 3">
  11752. <span
  11753. :class="{
  11754. isChair:
  11755. groupStudent[toolindex][gindex] &&
  11756. groupStudent[toolindex][gindex][3],
  11757. updateChair:
  11758. courseDetail.userid == userid &&
  11759. groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][3] &&
  11761. groupJson.islock == 2,
  11762. }"
  11763. ><span
  11764. class="updateChairBtn"
  11765. @click="
  11766. updateGroupChair(
  11767. groupStudent[toolindex][gindex] &&
  11768. groupStudent[toolindex][gindex][3]
  11769. )
  11770. "
  11771. >修改</span
  11772. ></span
  11773. ><span>{{
  11774. groupStudent[toolindex][gindex] &&
  11775. groupStudent[toolindex][gindex][3]
  11776. ? groupStudent[toolindex][gindex] &&
  11777. groupStudent[toolindex][gindex][3].name
  11778. : "空位置"
  11779. }}</span>
  11780. </div>
  11781. <div v-if="groupJson.number > 7">
  11782. <span
  11783. :class="{
  11784. isChair:
  11785. groupStudent[toolindex][gindex] &&
  11786. groupStudent[toolindex][gindex][7],
  11787. updateChair:
  11788. courseDetail.userid == userid &&
  11789. groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][7] &&
  11791. groupJson.islock == 2,
  11792. }"
  11793. ><span
  11794. class="updateChairBtn"
  11795. @click="
  11796. updateGroupChair(
  11797. groupStudent[toolindex][gindex] &&
  11798. groupStudent[toolindex][gindex][7]
  11799. )
  11800. "
  11801. >修改</span
  11802. ></span
  11803. ><span>{{
  11804. groupStudent[toolindex][gindex] &&
  11805. groupStudent[toolindex][gindex][7]
  11806. ? groupStudent[toolindex][gindex] &&
  11807. groupStudent[toolindex][gindex][7].name
  11808. : "空位置"
  11809. }}</span>
  11810. </div>
  11811. </div>
  11812. </div>
  11813. <div class="g_d_group_chair">
  11814. <div v-if="groupJson.number > 1">
  11815. <span
  11816. :class="{
  11817. isChair:
  11818. groupStudent[toolindex][gindex] &&
  11819. groupStudent[toolindex][gindex][1],
  11820. updateChair:
  11821. courseDetail.userid == userid &&
  11822. groupStudent[toolindex][gindex] &&
  11823. groupStudent[toolindex][gindex][1] &&
  11824. groupJson.islock == 2,
  11825. }"
  11826. ><span
  11827. class="updateChairBtn"
  11828. @click="
  11829. updateGroupChair(
  11830. groupStudent[toolindex][gindex] &&
  11831. groupStudent[toolindex][gindex][1]
  11832. )
  11833. "
  11834. >修改</span
  11835. ></span
  11836. ><span>{{
  11837. groupStudent[toolindex][gindex] &&
  11838. groupStudent[toolindex][gindex][1]
  11839. ? groupStudent[toolindex][gindex] &&
  11840. groupStudent[toolindex][gindex][1].name
  11841. : "空位置"
  11842. }}</span>
  11843. </div>
  11844. <div v-if="groupJson.number > 5">
  11845. <span
  11846. :class="{
  11847. isChair:
  11848. groupStudent[toolindex][gindex] &&
  11849. groupStudent[toolindex][gindex][5],
  11850. updateChair:
  11851. courseDetail.userid == userid &&
  11852. groupStudent[toolindex][gindex] &&
  11853. groupStudent[toolindex][gindex][5] &&
  11854. groupJson.islock == 2,
  11855. }"
  11856. ><span
  11857. class="updateChairBtn"
  11858. @click="
  11859. updateGroupChair(
  11860. groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][5]
  11862. )
  11863. "
  11864. >修改</span
  11865. ></span
  11866. ><span>{{
  11867. groupStudent[toolindex][gindex] &&
  11868. groupStudent[toolindex][gindex][5]
  11869. ? groupStudent[toolindex][gindex] &&
  11870. groupStudent[toolindex][gindex][5].name
  11871. : "空位置"
  11872. }}</span>
  11873. </div>
  11874. <div v-if="groupJson.number > 9">
  11875. <span
  11876. :class="{
  11877. isChair:
  11878. groupStudent[toolindex][gindex] &&
  11879. groupStudent[toolindex][gindex][9],
  11880. updateChair:
  11881. courseDetail.userid == userid &&
  11882. groupStudent[toolindex][gindex] &&
  11883. groupStudent[toolindex][gindex][9] &&
  11884. groupJson.islock == 2,
  11885. }"
  11886. ><span
  11887. class="updateChairBtn"
  11888. @click="
  11889. updateGroupChair(
  11890. groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][9]
  11892. )
  11893. "
  11894. >修改</span
  11895. ></span
  11896. ><span>{{
  11897. groupStudent[toolindex][gindex] &&
  11898. groupStudent[toolindex][gindex][9]
  11899. ? groupStudent[toolindex][gindex] &&
  11900. groupStudent[toolindex][gindex][9].name
  11901. : "空位置"
  11902. }}</span>
  11903. </div>
  11904. </div>
  11905. </div>
  11906. </div>
  11907. </div>
  11908. </div>
  11909. <span slot="footer" class="dialog-footer">
  11910. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11911. </span>
  11912. </el-dialog>
  11913. <el-dialog
  11914. title="分组设置"
  11915. :visible.sync="dialogVisibleGroup2"
  11916. :append-to-body="true"
  11917. width="650px"
  11918. :before-close="handleClose"
  11919. class="dialog_diy"
  11920. >
  11921. <div class="groupBox">
  11922. <div v-if="groupJson2.group" class="groupContent">
  11923. <div class="groupTitle">请设置小组数量及名称</div>
  11924. <div
  11925. v-for="(item, index) in groupJson2.group"
  11926. :key="index"
  11927. class="groupName"
  11928. >
  11929. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11930. <el-input
  11931. v-model="item.name"
  11932. placeholder="请输入名称..."
  11933. style="width: 250px"
  11934. ></el-input>
  11935. <!-- <div class="groupBtn">
  11936. <el-button type="primary" size="small" @click="addGroup(index)">
  11937. 添加</el-button>
  11938. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11939. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11940. </div> -->
  11941. </div>
  11942. </div>
  11943. <div class="groupContent">
  11944. <div class="groupTitle">请设置每组人数</div>
  11945. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11946. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11947. <el-input
  11948. v-model="groupJson2.number"
  11949. style="width: 150px"
  11950. placeholder="请输入2-10的数字"
  11951. @change="numberPan"
  11952. ></el-input>
  11953. </div>
  11954. </div>
  11955. <span slot="footer" class="dialog-footer">
  11956. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11957. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11958. </span>
  11959. </el-dialog>
  11960. <el-dialog
  11961. title="作业提交"
  11962. :visible.sync="dialogVisibleGroupWork"
  11963. :append-to-body="true"
  11964. width="500px"
  11965. :before-close="handleClose"
  11966. class="dialog_change"
  11967. >
  11968. <div class="marginT">
  11969. <div>上传文件</div>
  11970. <div
  11971. class="chapter_add"
  11972. @click="addImg($event)"
  11973. v-if="studyJuri[0].cover.length == 0"
  11974. >
  11975. <div class="up_photo">
  11976. <img src="../assets/icon/uploadImg.png" alt />
  11977. </div>
  11978. <!-- <input
  11979. type="file"
  11980. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11981. style="display: none"
  11982. @change="beforeUpload1($event, 1)"
  11983. /> -->
  11984. <input
  11985. type="file"
  11986. accept="*"
  11987. style="display: none"
  11988. @change="beforeUpload1($event, 1)"
  11989. />
  11990. </div>
  11991. <!-- capture="camera" -->
  11992. <div
  11993. class="chapter_add"
  11994. style="
  11995. display: flex;
  11996. width: 100%;
  11997. flex-direction: row;
  11998. flex-wrap: wrap;
  11999. justify-content: flex-start;
  12000. padding: 15px 0;
  12001. "
  12002. v-if="studyJuri[0].cover.length > 0"
  12003. >
  12004. <div class="upCover">
  12005. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12006. <img :src="word" alt v-else-if="fileType == 1" />
  12007. <img :src="video" alt v-else-if="fileType == 2" />
  12008. <img :src="word2" alt v-else-if="fileType == 3" />
  12009. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12010. <div class="deleteWord" @click="clean(1)">
  12011. <img src="../assets/icon/deleteWorks.png" alt />
  12012. </div>
  12013. </div>
  12014. </div>
  12015. </div>
  12016. <div
  12017. class="upload_send"
  12018. @click="addCourseWorks2(taskCount)"
  12019. v-if="!proVisible"
  12020. >
  12021. 提交
  12022. </div>
  12023. </el-dialog>
  12024. <el-dialog
  12025. title="修改分组"
  12026. :visible.sync="dialogVisibleUpdateGroup"
  12027. :append-to-body="true"
  12028. width="350px"
  12029. :before-close="handleClose"
  12030. class="dialog_diy"
  12031. >
  12032. <div>
  12033. <h2>
  12034. {{ this.updateGroupUser.name }}
  12035. </h2>
  12036. <div style="color: rgb(171 171 171); margin-top: 10px">
  12037. 请选择要进入的分组
  12038. </div>
  12039. <el-radio-group v-model="checkChair">
  12040. <el-radio
  12041. style="display: block; margin-top: 20px"
  12042. v-for="(item, index) in updateGroupArray"
  12043. :label="item.label"
  12044. :key="index"
  12045. >{{ item.name }}</el-radio
  12046. >
  12047. </el-radio-group>
  12048. </div>
  12049. <span slot="footer" class="dialog-footer">
  12050. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12051. <el-button type="primary" @click="updateChair">确定</el-button>
  12052. </span>
  12053. </el-dialog>
  12054. <el-dialog
  12055. title="移除组员"
  12056. :visible.sync="dialogVisibleDeleteGroup"
  12057. :append-to-body="true"
  12058. width="350px"
  12059. :before-close="handleClose"
  12060. class="dialog_diy"
  12061. >
  12062. <div>
  12063. <h2>
  12064. {{ this.deleteGroupArray.name }}
  12065. </h2>
  12066. <div style="color: rgb(171 171 171); margin-top: 10px">
  12067. 请选择要删除的组员
  12068. </div>
  12069. <el-checkbox-group v-model="checkDeleteGroup">
  12070. <el-checkbox
  12071. style="display: flex; margin-top: 20px"
  12072. v-for="(item, index) in deleteGroupUser"
  12073. :label="item.userid"
  12074. :key="index"
  12075. >{{ item.name }}</el-checkbox
  12076. >
  12077. </el-checkbox-group>
  12078. </div>
  12079. <span slot="footer" class="dialog-footer">
  12080. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12081. <el-button type="primary" @click="deleteChair">确定</el-button>
  12082. </span>
  12083. </el-dialog>
  12084. <el-dialog
  12085. title="批量上传"
  12086. :visible.sync="dialogVisiblePl"
  12087. :append-to-body="true"
  12088. width="700px"
  12089. :before-close="handleClose"
  12090. class="dialog_change"
  12091. >
  12092. <div class="marginT">
  12093. <div class="plworkBox">
  12094. <div
  12095. class="chapter_add"
  12096. style="
  12097. display: flex;
  12098. width: 150px;
  12099. flex-direction: row;
  12100. flex-wrap: wrap;
  12101. justify-content: flex-start;
  12102. margin: 0 10px 10px 0;
  12103. "
  12104. v-for="(item, index) in plworkFile"
  12105. :key="index"
  12106. >
  12107. <div class="upCover2">
  12108. <img
  12109. :src="item.url"
  12110. alt
  12111. v-if="item.fileType == 1"
  12112. @click="previewImg(item.url)"
  12113. />
  12114. <img :src="word" alt v-else-if="item.fileType == 4" />
  12115. <img :src="video" alt v-else />
  12116. <!-- <span class="picName">{{ item.name }}</span> -->
  12117. <!-- <el-input
  12118. v-model="item.username"
  12119. placeholder="请输入学生名字"
  12120. style="margin-top: 10px"
  12121. ></el-input> -->
  12122. <div
  12123. class="pl_select_box"
  12124. @click="
  12125. getUpdateMore(true, checkUpload(), item.username, index)
  12126. "
  12127. >
  12128. {{ getSName(item.username) }}
  12129. </div>
  12130. <!-- <el-select
  12131. style="margin-top: 10px"
  12132. v-model="item.username"
  12133. filterable
  12134. allow-create
  12135. placeholder="请选择学生"
  12136. >
  12137. <el-option
  12138. v-for="item1 in checkUpload()"
  12139. :key="item1.userid"
  12140. :label="item1.name ? item1.name : item1.username"
  12141. :value="item1.userid"
  12142. >
  12143. </el-option>
  12144. </el-select> -->
  12145. <div class="deleteWord" @click="clean2(index)">
  12146. <img src="../assets/icon/deleteWorks.png" alt />
  12147. </div>
  12148. </div>
  12149. </div>
  12150. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12151. <div class="up_photo2">
  12152. <img src="../assets/icon/plwork.png" alt />
  12153. <span>点击上传文件</span>
  12154. </div>
  12155. <input
  12156. type="file"
  12157. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12158. multiple="multiple"
  12159. style="display: none"
  12160. @change="beforeUpload3($event, 6)"
  12161. />
  12162. </div>
  12163. </div>
  12164. </div>
  12165. <!-- capture="camera" -->
  12166. <div
  12167. class="upload_send"
  12168. @click="addCourseWorksPl(taskCount)"
  12169. v-if="!proVisible2"
  12170. >
  12171. 提交
  12172. </div>
  12173. </el-dialog>
  12174. <el-dialog
  12175. title="修改名称"
  12176. :visible.sync="dialogVisibleSname"
  12177. width="500px"
  12178. :before-close="handleClose"
  12179. class="dialog_diy"
  12180. center
  12181. >
  12182. <div
  12183. style="
  12184. text-align: center;
  12185. display: flex;
  12186. align-items: center;
  12187. justify-content: center;
  12188. "
  12189. >
  12190. <span class="tian1">名称</span>
  12191. <div
  12192. class="pl_select_box"
  12193. style="margin-left: 10px; width: 200px"
  12194. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12195. >
  12196. {{ getSName(worksSName) }}
  12197. </div>
  12198. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12199. placeholder="请选择学生">
  12200. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12201. :value="item.userid">
  12202. </el-option>
  12203. </el-select> -->
  12204. <!-- <el-input
  12205. v-model="worksSName"
  12206. style="width: 250px; margin: 15px 0px"
  12207. ></el-input> -->
  12208. </div>
  12209. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12210. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12211. <el-button type="primary" @click="updateName">确 定</el-button>
  12212. </span>
  12213. </el-dialog>
  12214. <el-dialog
  12215. title="英语写作"
  12216. :visible.sync="engDialogVisible"
  12217. :append-to-body="true"
  12218. width="800px"
  12219. :before-close="handleClose"
  12220. class="dialog_diy"
  12221. >
  12222. <onlineWrite
  12223. v-if="engDialogVisible"
  12224. :englishList="englishList"
  12225. :myAnswerList1="myAnswerList1"
  12226. :userid="userid"
  12227. ref="engJson"
  12228. ></onlineWrite>
  12229. <span slot="footer" class="dialog-footer">
  12230. <el-button @click="engDialogVisible = false">取 消</el-button>
  12231. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12232. </span>
  12233. </el-dialog>
  12234. <el-dialog
  12235. title="英语写作"
  12236. :visible.sync="engUpdateDialogVisible"
  12237. :append-to-body="true"
  12238. width="800px"
  12239. :before-close="handleClose"
  12240. class="dialog_diy fullStyle"
  12241. >
  12242. <div class="engUpBox">
  12243. <div class="engUpTop">
  12244. <div class="engTitle">
  12245. <div>作文题目:</div>
  12246. <div>{{ englishList1.engTitle }}</div>
  12247. </div>
  12248. <div class="engText">
  12249. <div>作文内容:</div>
  12250. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12251. </div>
  12252. </div>
  12253. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12254. <div class="oldBox">
  12255. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12256. <div class="oldText">
  12257. <div class="detailBox">
  12258. <div class="oldDetail">
  12259. <div>标题:</div>
  12260. <div>{{ oldEnglishJson.engTitle }} </div>
  12261. </div>
  12262. <div class="oldDetail1">
  12263. <div>正文:</div>
  12264. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12265. </div>
  12266. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12267. <div>图片:</div>
  12268. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12269. </div>
  12270. </div>
  12271. </div>
  12272. </div>
  12273. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12274. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12275. <div class="oldText">
  12276. <div class="detailBox" style="position: relative;">
  12277. <div class="oldDetail">
  12278. <div>标题:</div>
  12279. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12280. <div v-else v-html="newEnglishList.engTitle"></div>
  12281. </div>
  12282. <div class="oldDetail">
  12283. <div>正文:</div>
  12284. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12285. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12286. </div>
  12287. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12288. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12289. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12290. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12291. </div>
  12292. </div>
  12293. </div>
  12294. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12295. <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">
  12296. <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>
  12297. <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>
  12298. </div>
  12299. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12300. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12301. <div class="detailBox" style="position: relative;">
  12302. <div class="oldDetail">
  12303. <div>标题:</div>
  12304. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12305. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12306. </div>
  12307. <div class="oldDetail">
  12308. <div>正文:</div>
  12309. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12310. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12311. </div>
  12312. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12313. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12314. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12315. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12316. </div>
  12317. </div>
  12318. <div class="oldText" v-else-if="newEngIndex == -1">
  12319. <div class="detailBox" style="position: relative;">
  12320. <div class="oldDetail">
  12321. <div>标题:</div>
  12322. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12323. <div v-else v-html="newEnglishList.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="newEnglishList.engText" @input="gx"/>
  12328. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12329. </div>
  12330. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12331. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12332. <el-button @click="aiCorrect(newEnglishList.engText,3)" 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 && newEnglishList1.length > 0">
  12337. <div class="detailBox" style="position: relative;">
  12338. <div class="oldDetail">
  12339. <div>标题:</div>
  12340. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12341. <div v-else>
  12342. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12343. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12344. </div>
  12345. </div>
  12346. <div class="oldDetail">
  12347. <div>正文:</div>
  12348. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12349. <div v-else>
  12350. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12351. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12352. </div>
  12353. </div>
  12354. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12355. <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>
  12356. <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>
  12357. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12358. </div>
  12359. </div>
  12360. </div>
  12361. </div>
  12362. </div>
  12363. <span slot="footer" class="dialog-footer">
  12364. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12365. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12366. </span>
  12367. </el-dialog>
  12368. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12369. <interVideo
  12370. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12371. :videoJson="videoJson"
  12372. :userid="userid"
  12373. :id="id"
  12374. :courseType="courseType"
  12375. :taskCount="taskCount"
  12376. :toolindex="toolindex"
  12377. :videoType="videoType"
  12378. ></interVideo>
  12379. <UpdateMore
  12380. :dialogVisibleMember.sync="dialogVisibleMember"
  12381. :cList="uploadStudentJuri"
  12382. :userid="userid"
  12383. :searchTN="worksSName2"
  12384. @setPlname="setPlname"
  12385. ></UpdateMore>
  12386. <!-- <wordCloud
  12387. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12388. :data="wordCloudData"
  12389. ></wordCloud> -->
  12390. <el-dialog
  12391. title="词云"
  12392. :visible.sync="dialogVisibleWordCloud"
  12393. width="30%"
  12394. class="dialog_diy"
  12395. :before-close="handleClose">
  12396. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12397. </el-dialog>
  12398. <el-dialog
  12399. title="挑人"
  12400. :visible.sync="dialogVisiblePickPeople"
  12401. width="650px"
  12402. :before-close="handleClose"
  12403. class="dialog_diy"
  12404. center
  12405. >
  12406. <div class="pick_box">
  12407. <div
  12408. class="noWorksName"
  12409. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12410. v-for="(item, index) in uploadStudentJuri"
  12411. :key="index"
  12412. @click="pickStudent(item)"
  12413. >
  12414. {{ item.name }}
  12415. </div>
  12416. </div>
  12417. </el-dialog>
  12418. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12419. :englishVoiceJson='englishVoiceJson'
  12420. :userid="userid"
  12421. :id="id"
  12422. :courseType="courseType"
  12423. :taskCount="taskCount"
  12424. :toolindex="toolindex"
  12425. @selectSWorks="selectSWorks"
  12426. @selectStudent="selectStudent"
  12427. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12428. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12429. :userid="userid"
  12430. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12431. :commentDetail="commentDetail"
  12432. :courseDetail="courseDetail"
  12433. :wScore="wScore"
  12434. :scoreDetail="scoreDetail"
  12435. @selectSWorks="selectSWorks"
  12436. @selectStudent="selectStudent"></checkEnglishVoice>
  12437. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12438. <choseWorksDetailDialog
  12439. ref="choseWorksDetailDialogRef"
  12440. :worksStudentData="worksStudent"
  12441. :noWorksSData="noWorksS"
  12442. :chapInfoListData="chapInfoList"
  12443. :courseType="courseType"
  12444. :taskCount="taskCount"
  12445. :tType="tType"
  12446. :sIsOpen="sIsOpen"
  12447. :courseDetail="courseDetail"
  12448. :groupStudent2="groupStudent"
  12449. :groupStudentUid2="groupStudentUid"
  12450. :oid="oid"
  12451. :org="org"
  12452. @getCourseDetail="getCourseDetail"
  12453. @selectSLook="selectSLook"
  12454. @selectSWorks="selectSWorks"
  12455. @selectStudent="selectStudent"
  12456. @deleteWorks="deleteWorks"
  12457. @openTools="openTools"
  12458. @openWord="openWord"
  12459. @openScore="openScore"
  12460. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12461. />
  12462. <el-dialog
  12463. :visible.sync="confirmOpenDig"
  12464. width="500px"
  12465. :modal="false"
  12466. class="confirmOpenDigCss dialog_diyCopy"
  12467. :before-close="handleClose">
  12468. <div style="display: flex;align-items: center;">
  12469. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12470. <span>“{{ courseDetail.title }}”开课啦</span>
  12471. </div>
  12472. <div style="margin: 20px 0 35px;">
  12473. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12474. <div>要认真听讲哦~</div>
  12475. </div>
  12476. <div style="text-align: center;">
  12477. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12478. </div>
  12479. </el-dialog>
  12480. <appStoreC ref="appStoreC"
  12481. :sStudent="sStudent"
  12482. :courseType="courseType"
  12483. :taskCount="taskCount"
  12484. :toolindex="toolindex"
  12485. @selectSWorks="selectSWorks"
  12486. @selectStudent="selectStudent"
  12487. ></appStoreC>
  12488. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12489. </div>
  12490. </template>
  12491. <script>
  12492. import "../common/aws-sdk-2.235.1.min.js";
  12493. // import pdf from "./components/pdf3";
  12494. import pdf from "./components/vpdf";
  12495. import AskStatic from "./components/askStatic";
  12496. import AskStatic2 from "./components/askStatic2";
  12497. import AnswerData2 from "./components/answerData2";
  12498. import AnswerData from "./components/answerData";
  12499. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  12500. import EditorBar from "./tools/wangEnduit.vue";
  12501. import Table from "./tools/table.vue";
  12502. import Time from "./tools/time.vue";
  12503. import Mind from "./tools/jsmind.vue";
  12504. import Sunburst from "./tools/sunburst";
  12505. import SeeBoard from "./tools/seeBoard";
  12506. import * as imageConversion from "image-conversion";
  12507. import Audio from "./components/audio.vue";
  12508. import ImgDraw from "./tools/imgDraw/imgDraw";
  12509. import { Empty } from "element-ui";
  12510. import RecordRTC from "recordrtc";
  12511. import interVideo from "./interVideo/index.vue";
  12512. import UpdateMore from "./updateMore/updateMore.vue";
  12513. import wordCloud from "./wordCloud/index.vue";
  12514. import axios from "axios";
  12515. import JSZip from "jszip";
  12516. import FileSaver from "file-saver";
  12517. import onlineWrite from "./components/onlineWrite";
  12518. import englishEva from "./components/englishEva";
  12519. import * as Diff from 'diff'
  12520. import EnglishVoice from './EnglishVoice2/index.vue'
  12521. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12522. import correctText from './components/correctText.vue'
  12523. import scoreItem from './scoreList/scoreItem.vue'
  12524. import scoreZong from './scoreZong/index.vue'
  12525. import classRoomHelper from './classRoomHelper/index.vue'
  12526. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  12527. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12528. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12529. import { v4 as uuidv4 } from "uuid";
  12530. var OpenCC = require("opencc-js");
  12531. import choseWordCloud from './components/choseWordCloud.vue'
  12532. import appStoreC from "./components/appStoreC.vue";
  12533. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12534. import { myMixin } from "@/mixins/mixin.js"
  12535. import { tools as toolsList } from "@/common/tools2.js";
  12536. import katex from 'katex'
  12537. import 'katex/dist/katex.min.css'
  12538. let converter = OpenCC.Converter({
  12539. from: "hk",
  12540. to: "cn"
  12541. });
  12542. const getFile = (url) => {
  12543. return new Promise((resolve, reject) => {
  12544. var credentials = {
  12545. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12546. secretAccessKey: "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",
  12547. }; //秘钥形式的登录上传
  12548. window.AWS.config.update(credentials);
  12549. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12550. let url2 = url;
  12551. let _url2 = "";
  12552. if (
  12553. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12554. ) {
  12555. _url2 = url2.split(
  12556. "https://view.officeapps.live.com/op/view.aspx?src="
  12557. )[1];
  12558. } else {
  12559. _url2 = url2;
  12560. }
  12561. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12562. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12563. var params = {
  12564. Bucket: "ccrb",
  12565. Key: name
  12566. };
  12567. s3.getObject(params, function (err, data) {
  12568. if (err) {
  12569. console.log(err, err.stack)
  12570. resolve({ data: 1 });
  12571. }else {
  12572. resolve({ data: data.Body });
  12573. console.log(data);
  12574. } // sxuccessful response
  12575. });
  12576. // axios({
  12577. // method: "get",
  12578. // url,
  12579. // responseType: "blob",
  12580. // })
  12581. // .then((data) => {
  12582. // resolve({ data: data.data });
  12583. // })
  12584. // .catch((error) => {
  12585. // resolve({ data: 1 });
  12586. // // reject(error.toString());
  12587. // });
  12588. });
  12589. };
  12590. export default {
  12591. mixins: [ myMixin ],
  12592. components: {
  12593. choseWordCloud,
  12594. EditorBar,
  12595. Time,
  12596. pdf,
  12597. AskStatic,
  12598. AskStatic2,
  12599. Mind,
  12600. Sunburst,
  12601. SeeBoard,
  12602. AnswerData2,
  12603. AnswerData,
  12604. sortToolWorkShow,
  12605. Audio,
  12606. ImgDraw,
  12607. Table,
  12608. interVideo,
  12609. UpdateMore,
  12610. wordCloud,
  12611. onlineWrite,
  12612. englishEva,
  12613. EnglishVoice,
  12614. checkEnglishVoice,
  12615. correctText,
  12616. scoreItem,
  12617. classRoomHelper,
  12618. scoreZong,
  12619. statisticalAnalysis,
  12620. choseWorksDetailDialog,
  12621. appStoreC,
  12622. cocoFlowDia,
  12623. studentClassRoomHelper
  12624. },
  12625. data() {
  12626. return {
  12627. startTime: "",
  12628. // 是否允许学生查看内容资料 2不可以 1可以
  12629. IsStulook:false,
  12630. homeWorkLoading:false,
  12631. wordCloudKey: 0,
  12632. bg: null,
  12633. drawShow: false,
  12634. dialogVisible: false,
  12635. dialogVisiblePl: false,
  12636. commentDialogVisible: false,
  12637. dialogVisibleMember: false,
  12638. dialogVisibleWordCloud: false,
  12639. videoVisible: false,
  12640. isStar: false,
  12641. studentEvalDialogVisible: false,
  12642. studentEvalDialogVisibleTeacher: false,
  12643. dialogVisibleSelect: false,
  12644. dialogVisibleSelectTeacher: false,
  12645. dialogVisibleScore: false,
  12646. dialogVisibleENScore: false,
  12647. dialogVisibleSentence: false,
  12648. dialogVisibleSentenceTeacher: false,
  12649. dialogVisibleSentence1: false,
  12650. dialogVisibleWorks: false,
  12651. dialogVisibleTable: false,
  12652. dialogVisibleTableTeacher: false,
  12653. dialogVisibleWord: false,
  12654. dialogVisibleWordTeacher: false,
  12655. dialogVisibleTable2: false,
  12656. dialogVisibleTable3: false,
  12657. dialogVisibleGroupWork: false,
  12658. dialogVisibleUpdateGroup: false,
  12659. dialogVisibleDeleteGroup: false,
  12660. dialogVisibleSname: false,
  12661. dialogVisibleVideo: false,
  12662. dialogVisiblePickPeople: false,
  12663. engDialogVisible: false,
  12664. engUpdateDialogVisible: false,
  12665. engEvaDialogVisible: false,
  12666. evaEngJson: {
  12667. teacherJson: {},
  12668. studentJson: {},
  12669. message: {},
  12670. },
  12671. isNoUserid:false,
  12672. engListLength:0,
  12673. engWid:"",
  12674. newEnglishList:{
  12675. engTitle:"",
  12676. engText:"",
  12677. },
  12678. newEnglishList1:[],
  12679. oldEnglishJson:{},
  12680. oldEnglishJson1:{},
  12681. englishList1:{},
  12682. englishList:{},
  12683. myAnswerList1:{},
  12684. topHeight:0,
  12685. newEngIndex:-1,
  12686. englishToolIndex:0,
  12687. worksSName: "",
  12688. classJuri: [],
  12689. uploadStudentJuri: [],
  12690. uploadCid: "",
  12691. snameWid: "",
  12692. sStudent: {},
  12693. sTool: "",
  12694. bzText: "",
  12695. commentDetail: [],
  12696. selectAnswer: [],
  12697. videoDetail: {},
  12698. selectJson: {},
  12699. eScore: { eBzText: "", eStar: [] },
  12700. id: this.$route.query.courseId,
  12701. userid: this.$route.query.userid,
  12702. classId: this.$route.query.cid,
  12703. role: this.$route.query.role,
  12704. // courseTypeLine: this.$route.query.type,
  12705. oid: this.$route.query.oid,
  12706. org: this.$route.query.org,
  12707. tType: this.$route.query.tType,
  12708. courseType: this.$route.query.type,
  12709. screenType: this.$route.query.screenType,
  12710. tcid2: this.$route.query.tcid,
  12711. tcid: "",
  12712. pptImgUrl: "",
  12713. pptImgUrl1: "",
  12714. commentText: "",
  12715. full: false,
  12716. sIsOpen: false,
  12717. IsLookOpen: false,
  12718. IsFollow: false,
  12719. pzDialog: false,
  12720. contentDialog: false,
  12721. mlDialog: false,
  12722. type: 1,
  12723. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12724. sentenceList1: [],
  12725. tableJson: [],
  12726. tableJsonO: [],
  12727. wordJson: [],
  12728. wordJsonO: [],
  12729. vedio: [],
  12730. text: [],
  12731. textList: [],
  12732. line: [],
  12733. lineList: [],
  12734. chapTools: [],
  12735. chapToolList: [],
  12736. file: [],
  12737. fileC: [],
  12738. vedioTime: [],
  12739. upToolImg: "",
  12740. preTime: 0,
  12741. rateList: {
  12742. ca: 0,
  12743. },
  12744. rateParams: [],
  12745. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12746. studyJuri: [
  12747. {
  12748. content: "",
  12749. cover: [],
  12750. upVedio: [],
  12751. upFile: [],
  12752. },
  12753. ],
  12754. isClose: 0,
  12755. plworkFile: [],
  12756. mr: require("../assets/vedioPic.png"),
  12757. word: require("../assets/icon/isWord.png"),
  12758. word2: require("../assets/icon/word2.png"),
  12759. video: require("../assets/icon/isVideo.png"),
  12760. noLikes: require("../assets/icon/comment/noLikes.png"),
  12761. likes: require("../assets/icon/comment/likes.png"),
  12762. scoreImg: require("../assets/score.png"),
  12763. courseDetail: {},
  12764. reply: "",
  12765. isSelect: false,
  12766. chapInfo: [],
  12767. chapInfoList: [],
  12768. taskCount: 0,
  12769. imgList: [],
  12770. noImgList: [],
  12771. pzList: [],
  12772. timeWorkList: [],
  12773. PlTextList: [
  12774. "Excellent!",
  12775. "nice!",
  12776. "很有创意!",
  12777. "还不错哦~",
  12778. "继续努力哦~",
  12779. ],
  12780. isClickNav: "",
  12781. navId: "",
  12782. playerOptions: {
  12783. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12784. autoplay: false, //如果true,浏览器准备好时开始回放。
  12785. muted: false, // 默认情况下将会消除任何音频。
  12786. loop: false, // 导致视频一结束就重新开始。
  12787. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12788. language: "zh-CN",
  12789. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12790. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12791. sources: [
  12792. {
  12793. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12794. src: "", //url地址require("../../assets/media/aaa.mp4")
  12795. },
  12796. ],
  12797. // poster: require("../../assets/tu31.png"), //你的封面地址
  12798. // poster: dataRes.imgUrl, //你的封面地址
  12799. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12800. controlBar: {
  12801. timeDivider: true, //当前时间和持续时间的分隔符
  12802. durationDisplay: true, //显示持续时间
  12803. remainingTimeDisplay: false, //是否显示剩余时间功能
  12804. fullscreenToggle: true, //全屏按钮
  12805. },
  12806. },
  12807. playerOptions1: {
  12808. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12809. autoplay: false, //如果true,浏览器准备好时开始回放。
  12810. muted: false, // 默认情况下将会消除任何音频。
  12811. loop: false, // 导致视频一结束就重新开始。
  12812. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12813. language: "zh-CN",
  12814. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12815. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12816. sources: [
  12817. {
  12818. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12819. src: "", //url地址require("../../assets/media/aaa.mp4")
  12820. },
  12821. ],
  12822. // poster: require("../../assets/tu31.png"), //你的封面地址
  12823. // poster: dataRes.imgUrl, //你的封面地址
  12824. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12825. controlBar: {
  12826. timeDivider: true, //当前时间和持续时间的分隔符
  12827. durationDisplay: true, //显示持续时间
  12828. remainingTimeDisplay: false, //是否显示剩余时间功能
  12829. fullscreenToggle: true, //全屏按钮
  12830. },
  12831. },
  12832. playerO: {},
  12833. noneBtnImg: false,
  12834. proVisible: false,
  12835. proVisible2: false,
  12836. progress: 0,
  12837. isFinishSize: 0,
  12838. isAllSize: 0,
  12839. questionAnswer: "",
  12840. answerQ: "", //问答标题
  12841. rateJson: [],
  12842. wbCount: 0,
  12843. wordCount: 0,
  12844. mindCount: 0,
  12845. askCount: 0,
  12846. noteCount: 0,
  12847. mindNetWorkCount: 0,
  12848. libraryCount: 0,
  12849. workCount: 0,
  12850. timeCount: 0,
  12851. answerCount: 0,
  12852. trainCount: 0,
  12853. evalCount: 0,
  12854. dialogImageUrl: "",
  12855. pictureDialog: false,
  12856. toolTypeList: [],
  12857. dialogVisible1: false,
  12858. dialogVisible2: false,
  12859. dialogVisible3: false,
  12860. dialogVisible6: false,
  12861. dialogVisible4: false,
  12862. isNoHomeWork: false,
  12863. dialogVisible5: false,
  12864. dialogVisible5Teacher: false,
  12865. dialogVisibleChoice: false,
  12866. dialogVisibleChoiceTeacher: false,
  12867. answerDialogVisible: false,
  12868. answerDialogVisibleTeacher: false,
  12869. juriVisible: false,
  12870. timeDialogVisible: false,
  12871. replyDialogVisible: false,
  12872. toolDialogVisible: false,
  12873. replyIndex: 0,
  12874. replyPid: "",
  12875. radio: [],
  12876. isAsk: false,
  12877. askJson: {
  12878. askCount: 1,
  12879. askTitle: "",
  12880. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12881. },
  12882. testJson: {},
  12883. videoType:0,
  12884. checkJson: [],
  12885. askList: [],
  12886. answerList: [],
  12887. navList: [],
  12888. addPzDialog: false,
  12889. pzConText: "",
  12890. worksStudent: [],
  12891. isCloseList: [],
  12892. workStudent: [],
  12893. groupStudent: [],
  12894. groupStudentUid: [],
  12895. noWorksS: [],
  12896. isWorksS: [],
  12897. noWorksStudent: [],
  12898. toolindex: 0,
  12899. toolDetailIndex: null,
  12900. groupIndex: 0,
  12901. workTypeB: false,
  12902. workTypeC: false,
  12903. isAnswer: false,
  12904. isHovered: false,
  12905. isHovered1: false,
  12906. isHovered2: false,
  12907. commentTagShow:0,
  12908. timer: null,
  12909. timer2: null,
  12910. opertimer: null,
  12911. showType: 0,
  12912. fileType: 0,
  12913. showPDF: false,
  12914. noteName: "",
  12915. evaJuri: [],
  12916. evalua: "",
  12917. eTitle: "",
  12918. eName: "",
  12919. eJson: {},
  12920. fid: "", //一级
  12921. sid: "", //二级
  12922. tid: "", //二级
  12923. typeMode: 1,
  12924. eJSONNum: 0,
  12925. Etype: 1,
  12926. data: {
  12927. meta: {
  12928. name: "example",
  12929. author: "dd@163.com",
  12930. version: "0.2",
  12931. },
  12932. format: "node_array",
  12933. data: [{ id: "root", isroot: true, topic: "" }],
  12934. },
  12935. fullDialogVisible: false,
  12936. fulltype: "",
  12937. fullUrl: "",
  12938. commentIndexJson: {},
  12939. Stbodywidth: 0,
  12940. ispzType: 0,
  12941. pzType: 1,
  12942. wScore: 0,
  12943. scoreDetail: "",
  12944. videoStart: false,
  12945. recorder: null,
  12946. groupJson: {},
  12947. islock: false,
  12948. groupJson2: {},
  12949. dialogVisibleGroup: false,
  12950. dialogVisibleGroup2: false,
  12951. updateGroupArray: [],
  12952. updateGroupUser: {},
  12953. deleteGroupUser: [],
  12954. deleteGroupArray: {},
  12955. checkChair: "",
  12956. checkDeleteGroup: [],
  12957. inviteCode: "",
  12958. courseGroupStudent: [],
  12959. courseGroupStudentUid: [],
  12960. courseGroup: {},
  12961. isGroup: false,
  12962. // toolIndex: null,
  12963. tool: {},
  12964. isWorkTool: [
  12965. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12966. ], //, 40
  12967. videoJson: {},
  12968. toolType: 0,
  12969. checktoolArray: [],
  12970. vChapterData: [],
  12971. isUpdateToolDetail: false,
  12972. isUpdateToolDetail1: false,
  12973. updateToolDetailInner: "",
  12974. checkboxList: [],
  12975. plIndex: "",
  12976. worksSName2: "",
  12977. worksSid: "",
  12978. wordCloudData: [],
  12979. isPickStudent: [],
  12980. pzStype: 1,
  12981. myAnList: {},
  12982. userMes:{},
  12983. downLoading: false,
  12984. greyType: false,
  12985. correctWord: [],
  12986. isUpdateText: "",
  12987. EnglishVoiceDialog: false,
  12988. englishVoiceJson: {},
  12989. englishVoiceJsonWork:[],
  12990. scoreList:{
  12991. listdata:[],
  12992. isScoreList:[],
  12993. },
  12994. classRoomHelperWidth: '85px',
  12995. orgArray:[],
  12996. oidArray:[],
  12997. toolsList: toolsList,
  12998. splitScreenData:{
  12999. isOpen:false,
  13000. userId:"",
  13001. uid:"",
  13002. myUid:"",
  13003. loading:false,
  13004. behavior:null,
  13005. },
  13006. confirmOpenDig:false,
  13007. confirmOpenDigData:'',
  13008. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  13009. diffKey:"1",
  13010. };
  13011. },
  13012. methods: {
  13013. //查看应用中心作业
  13014. openCocoFlow(w){
  13015. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13016. },
  13017. getAIJ(){
  13018. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13019. let oid = res.data[0];
  13020. let org = res.data[1];
  13021. let oidArray = [];
  13022. let orgArray = [];
  13023. oid.forEach(i=>oidArray.push(i.oid))
  13024. org.forEach(i=>orgArray.push(i.oid))
  13025. this.orgArray = orgArray;
  13026. this.oidArray = oidArray;
  13027. })
  13028. },
  13029. insertMemorandum(_html){//保存行为操作
  13030. //variable
  13031. //btn
  13032. let params = [{
  13033. uid:this.userid,
  13034. courseId:this.id+(this.tcid2?this.tcid2:''),
  13035. content:_html
  13036. }]
  13037. console.log("👇👇")
  13038. console.log(params)
  13039. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13040. if(res.data==1){
  13041. console.log('保存操作成功')
  13042. }else{
  13043. console.log('保存操作失败')
  13044. }
  13045. }).catch(e=>{
  13046. console.log('保存操作失败')
  13047. console.log(e)
  13048. })
  13049. },
  13050. gx(){
  13051. this.$forceUpdate();
  13052. },
  13053. isUpdateCorrect(t,p){
  13054. if(this.greyType == false){
  13055. this.isUpdateText = t;
  13056. this.greyType = true;
  13057. }else{
  13058. if(p == 1){
  13059. this.newEnglishList.engText = this.isUpdateText;
  13060. }else if(p == 2){
  13061. this.oldEnglishJson1.engText = this.isUpdateText;
  13062. }else if(p == 3){
  13063. this.newEnglishList.engText = this.isUpdateText;
  13064. }else{
  13065. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13066. }
  13067. this.greyType = false
  13068. }
  13069. },
  13070. aiCorrect(t,p){
  13071. let aiText = "";
  13072. const loading = this.$loading.service({
  13073. background: "rgba(255, 255, 255)",
  13074. target: document.querySelectorAll(".loadingText")[0],
  13075. });
  13076. let param = {
  13077. model: "gpt-3.5-turbo",
  13078. temperature: 0,
  13079. max_tokens: 2048,
  13080. top_p: 1,
  13081. frequency_penalty: 0,
  13082. presence_penalty: 0,
  13083. messages: [
  13084. {
  13085. role: "user",
  13086. content:
  13087. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13088. },
  13089. ],
  13090. uid: this.userid,
  13091. stream: false,
  13092. };
  13093. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13094. (res) => {
  13095. if (
  13096. res.data.FunctionResponse &&
  13097. res.data.FunctionResponse.result &&
  13098. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13099. ) {
  13100. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13101. return;
  13102. }
  13103. aiText =
  13104. res.data.FunctionResponse.choices[0].message.content;
  13105. aiText = aiText.replace(/%/g,"%25");
  13106. // let w = "";
  13107. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13108. // for(var k = 0;k<a.length;k++){
  13109. // //diffWordsWithSpace
  13110. // if(a.length > 1){
  13111. // if(a[k].added == true){
  13112. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13113. // }else if(a[k].removed == true){
  13114. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13115. // }else{
  13116. // w += '<span>' + a[k].value + '</span>';
  13117. // }
  13118. // }else{
  13119. // if(p == 1){
  13120. // w = this.newEnglishList.engText;
  13121. // }else if(p == 2){
  13122. // w = this.oldEnglishJson1.engText;
  13123. // }else if(p == 3){
  13124. // w = this.newEnglishList.engText;
  13125. // }else{
  13126. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13127. // }
  13128. // }
  13129. // }
  13130. if(p == 1){
  13131. this.newEnglishList.engText = aiText;
  13132. }else if(p == 2){
  13133. this.oldEnglishJson1.engText = aiText;
  13134. }else if(p == 3){
  13135. this.newEnglishList.engText = aiText;
  13136. }else{
  13137. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13138. }
  13139. loading.close();
  13140. },
  13141. (err) => {
  13142. console.log(err);
  13143. loading.close();
  13144. }
  13145. );
  13146. },
  13147. addToolChoose() {
  13148. if (!this.checktoolArray.length) {
  13149. this.$message.error("请选择要添加的任务");
  13150. return;
  13151. }
  13152. if (
  13153. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13154. this.taskCount
  13155. ].toolChoose[0].tool.length
  13156. ) {
  13157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13158. this.taskCount
  13159. ].toolChoose[0].tool = this.checktoolArray;
  13160. } else {
  13161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13162. this.taskCount
  13163. ].toolChoose.push({
  13164. tool: this.checktoolArray,
  13165. toolDetail: "",
  13166. toolType: 0,
  13167. askCount: 1,
  13168. askTitle: "",
  13169. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13170. });
  13171. }
  13172. let params = [
  13173. {
  13174. cid: this.id,
  13175. chapters: JSON.stringify(this.chapInfoList),
  13176. uid: this.userid,
  13177. unitIndex: this.courseType,
  13178. },
  13179. ];
  13180. this.ajax
  13181. .post(this.$store.state.api + "updateWorkNew4", params)
  13182. .then((res) => {
  13183. this.$message({
  13184. message: "添加成功",
  13185. type: "success",
  13186. });
  13187. this.checktoolArray = [];
  13188. this.getCourseDetail(2);
  13189. this.checkBz(
  13190. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13191. this.taskCount
  13192. ].toolChoose.length - 1
  13193. );
  13194. this.toolDialogVisible = false;
  13195. this.refreshCourse();
  13196. this.$forceUpdate();
  13197. })
  13198. .catch((err) => {
  13199. console.error(err);
  13200. });
  13201. },
  13202. checkBz(index) {
  13203. this.isUpdateToolDetail = false;
  13204. this.$forceUpdate();
  13205. setTimeout(() => {
  13206. document.scrollingElement.scrollTop =
  13207. document.querySelectorAll(".filebox")[index].offsetTop +
  13208. document.querySelector(".student_body").offsetTop;
  13209. }, 500);
  13210. },
  13211. updateToolDetail(i, type) {
  13212. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13213. this.toolDetailIndex = i
  13214. this.isUpdateToolDetail1 = true;
  13215. setTimeout(() => {
  13216. this.updateToolDetailInner = JSON.parse(
  13217. JSON.stringify(
  13218. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13219. this.taskCount
  13220. ].toolChoose[i].toolDetail
  13221. )
  13222. );
  13223. document.querySelector(".checkTextArea").focus();
  13224. }, 0);
  13225. } else if((this.isUpdateToolDetail1 && type != 2)){
  13226. // this.toolDetailIndex = i;
  13227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13228. this.taskCount
  13229. ].toolChoose[i].toolDetail = JSON.parse(
  13230. JSON.stringify(this.updateToolDetailInner)
  13231. );
  13232. let params = [
  13233. {
  13234. cid: this.id,
  13235. chapters: JSON.stringify(this.chapInfoList),
  13236. uid: this.userid,
  13237. unitIndex: this.courseType,
  13238. },
  13239. ];
  13240. this.ajax
  13241. .post(this.$store.state.api + "updateWorkNew4", params)
  13242. .then((res) => {
  13243. this.isUpdateToolDetail1 = false;
  13244. this.$message({
  13245. message: "修改成功",
  13246. type: "success",
  13247. });
  13248. this.toolDetailIndex = null;
  13249. this.updateToolDetailInner = "";
  13250. this.getCourseDetail(2);
  13251. this.$forceUpdate();
  13252. })
  13253. .catch((err) => {
  13254. console.error(err);
  13255. });
  13256. } else if((this.isUpdateToolDetail1 && type == 2)){
  13257. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13258. this.taskCount
  13259. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13260. JSON.stringify(this.updateToolDetailInner)
  13261. );
  13262. let params = [
  13263. {
  13264. cid: this.id,
  13265. chapters: JSON.stringify(this.chapInfoList),
  13266. uid: this.userid,
  13267. unitIndex: this.courseType,
  13268. },
  13269. ];
  13270. this.ajax
  13271. .post(this.$store.state.api + "updateWorkNew4", params)
  13272. .then((res) => {
  13273. this.$message({
  13274. message: "修改成功",
  13275. type: "success",
  13276. });
  13277. this.toolDetailIndex = i;
  13278. this.isUpdateToolDetail1 = true;
  13279. setTimeout(() => {
  13280. this.updateToolDetailInner = JSON.parse(
  13281. JSON.stringify(
  13282. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13283. this.taskCount
  13284. ].toolChoose[i].toolDetail
  13285. )
  13286. );
  13287. document.querySelector(".checkTextArea").focus();
  13288. }, 0);
  13289. this.getCourseDetail(2);
  13290. this.$forceUpdate();
  13291. })
  13292. .catch((err) => {
  13293. console.error(err);
  13294. });
  13295. }
  13296. },
  13297. jumpGj(i, j, k, l) {
  13298. for (var z = 0; z < this.navList.length; z++) {
  13299. for (var q = 0; q < this.navList[z].task.length; q++) {
  13300. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13301. this.navList[z].task[q].tool[w].isTool = false;
  13302. }
  13303. }
  13304. }
  13305. this.navList[i].task[j].tool[k].isTool =
  13306. !this.navList[i].task[j].tool[k].isTool;
  13307. var a = document.scrollingElement;
  13308. this.navId = ""
  13309. let target = document.querySelector(`#gj${k}`);
  13310. if (target) {
  13311. // target.scrollIntoView(true);
  13312. // setTimeout(() => {
  13313. // a.scrollTop = a.scrollTop - 150;
  13314. // }, 0);
  13315. target.scrollIntoView();
  13316. setTimeout(()=>{
  13317. let scrollBody = document.querySelector('.body_student').parentElement
  13318. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13319. }, 0);
  13320. }
  13321. let flag = this.courseType == i;
  13322. let flag2 = this.taskCount == j
  13323. if (l) {
  13324. this.courseType = i;
  13325. // this.navId = l;
  13326. this.taskCount = j;
  13327. this.selectPz();
  13328. this.getHomeWork();
  13329. this.getCourseDetail(2);
  13330. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13331. if(flag){
  13332. if(flag2){
  13333. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13334. }else{
  13335. 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>`)
  13336. }
  13337. }else{
  13338. 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>`)
  13339. }
  13340. }
  13341. // var b = this.$refs["bz" + k][0];
  13342. // a.scrollTop = b.offsetTop;
  13343. },
  13344. addTools2(i) {
  13345. if (i == 4) {
  13346. // this.openTools2(4);
  13347. this.$message.error("暂未开放");
  13348. return;
  13349. }
  13350. if (i == 45) {
  13351. // this.openTools2(45);
  13352. this.$message.error("暂未开放");
  13353. return;
  13354. }
  13355. if (i == 47) {
  13356. // this.openTools2(47);
  13357. this.$message.error("暂未开放");
  13358. return;
  13359. }
  13360. if (i == 49) {
  13361. // this.openTools2(49);
  13362. this.$message.error("暂未开放");
  13363. return;
  13364. }
  13365. if (i == 62) {
  13366. // this.openTools(itemTaskIndex, 62, toolIndex);
  13367. this.$message.error("暂未开放");
  13368. return;
  13369. }
  13370. if (i == 15) {
  13371. // this.openTools(itemTaskIndex, 15, toolIndex);
  13372. this.$message.error("暂未开放");
  13373. return;
  13374. }
  13375. if (i == 40) {
  13376. // this.openTools(itemTaskIndex, 40, toolIndex);
  13377. this.$message.error("暂未开放");
  13378. return;
  13379. }
  13380. if (i == 41) {
  13381. // this.openTools(itemTaskIndex, 41, toolIndex);
  13382. this.$message.error("暂未开放");
  13383. return;
  13384. }
  13385. if (i == 42) {
  13386. // this.openTools(itemTaskIndex, 42, toolIndex);
  13387. this.$message.error("暂未开放");
  13388. return;
  13389. }
  13390. if (this.checktoolArray.length > 0) {
  13391. if (this.checktoolArray.indexOf(i) != -1) {
  13392. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13393. } else {
  13394. this.checktoolArray = [];
  13395. this.checktoolArray.push(i);
  13396. }
  13397. } else {
  13398. this.checktoolArray.push(i);
  13399. }
  13400. this.$forceUpdate();
  13401. },
  13402. jump() {
  13403. window.topU.postMessage({ tools: "43" }, "*");
  13404. },
  13405. getUpdateMore(f, checkboxList, searchTN, index) {
  13406. this.dialogVisibleMember = f;
  13407. this.checkboxList = checkboxList;
  13408. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13409. this.plIndex = index;
  13410. },
  13411. setPlname(a) {
  13412. if (this.plworkFile.length) {
  13413. this.plworkFile[this.plIndex].username = a;
  13414. } else {
  13415. this.worksSName = a;
  13416. }
  13417. this.dialogVisibleMember = false;
  13418. },
  13419. previewImg(url,w=null) {
  13420. this.$hevueImgPreview(url);
  13421. if(w){
  13422. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13423. }
  13424. },
  13425. checkImg(list) {
  13426. if (!list.length) {
  13427. return;
  13428. }
  13429. this.$hevueImgPreview({
  13430. multiple: true, // 开启多图预览模式
  13431. imgList: list, // 需要预览的多图数组
  13432. });
  13433. },
  13434. change(val) {
  13435. console.log(val);
  13436. },
  13437. goTo(path) {
  13438. this.$router.push(path);
  13439. },
  13440. handlePictureCardPreview(url) {
  13441. this.dialogImageUrl = url;
  13442. this.pictureDialog = true;
  13443. },
  13444. clean(type) {
  13445. if (type == 1) {
  13446. this.studyJuri[0].cover.splice(0, 1);
  13447. } else if (type == 2) {
  13448. this.studyJuri[0].upVedio.splice(0, 1);
  13449. } else {
  13450. this.studyJuri[0].upFile.splice(0, 1);
  13451. }
  13452. },
  13453. clean2(index) {
  13454. this.plworkFile.splice(index, 1);
  13455. },
  13456. handleClose(done) {
  13457. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13458. this.videoDetail.sources[0].src = "";
  13459. }
  13460. this.commentIndexJson = {};
  13461. done();
  13462. },
  13463. fullTools() {
  13464. this.full = !this.full;
  13465. },
  13466. imgChange(file, fileList, type) {
  13467. if (type == 1) {
  13468. var _tmp = this.studyJuri[0].cover;
  13469. } else if (type == 2) {
  13470. var _tmp = this.studyJuri[0].upVedio;
  13471. } else {
  13472. var _tmp = this.studyJuri[0].upFile;
  13473. }
  13474. this.noneBtnImg = _tmp.length >= 1;
  13475. },
  13476. setContent(bool) {
  13477. this.contentDialog = bool;
  13478. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13479. document.querySelector(".workd_media").style.height = "650px";
  13480. } else if (document.querySelector(".workd_media")) {
  13481. document.querySelector(".workd_media").style.height = "auto";
  13482. }
  13483. },
  13484. setContent2(bool) {
  13485. this.mlDialog = bool;
  13486. if (
  13487. bool &&
  13488. this.contentDialog &&
  13489. document.querySelector(".workd_media")
  13490. ) {
  13491. document.querySelector(".workd_media").style.height = "650px";
  13492. } else if (document.querySelector(".workd_media")) {
  13493. document.querySelector(".workd_media").style.height = "auto";
  13494. }
  13495. this.$forceUpdate();
  13496. },
  13497. openToolAll() {
  13498. this.toolDialogVisible = true;
  13499. },
  13500. addImg(e) {
  13501. var el = e.currentTarget;
  13502. // this.$message.success('触发上传')
  13503. el.getElementsByTagName("input")[0].click();
  13504. e.target.value = "";
  13505. },
  13506. addSelectAnswer() {
  13507. let params = [
  13508. {
  13509. uid: this.userid,
  13510. cid: this.id,
  13511. stage: this.courseType,
  13512. task: this.taskCount,
  13513. tool: this.toolindex,
  13514. content: this.selectAnswer.answer,
  13515. type: 7,
  13516. },
  13517. ];
  13518. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13519. this.homeWorkLoading = true
  13520. this.ajax
  13521. .post(this.$store.state.api + "addCourseWorks", params)
  13522. .then((res) => {
  13523. this.$message({
  13524. message: "提交成功",
  13525. type: "success",
  13526. });
  13527. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13528. setTimeout(() => {
  13529. this.homeWorkLoading = false
  13530. }, 500);
  13531. this.dialogVisibleSelect = false;
  13532. // this.selectAnswer = {};
  13533. this.selectSWorks();
  13534. this.selectStudent();
  13535. })
  13536. .catch((err) => {
  13537. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13538. setTimeout(() => {
  13539. this.homeWorkLoading = false
  13540. }, 500);
  13541. this.$message.error("提交失败");
  13542. console.error(err);
  13543. });
  13544. },
  13545. addSelectAnswerTeacher() {
  13546. let params = [
  13547. {
  13548. uid: this.sStudent.userid,
  13549. cid: this.id,
  13550. stage: this.courseType,
  13551. task: this.taskCount,
  13552. tool: this.toolindex,
  13553. content: this.selectAnswer.answer,
  13554. type: 7,
  13555. },
  13556. ];
  13557. this.ajax
  13558. .post(this.$store.state.api + "addCourseWorks", params)
  13559. .then((res) => {
  13560. this.$message({
  13561. message: "提交成功",
  13562. type: "success",
  13563. });
  13564. this.dialogVisibleSelectTeacher = false;
  13565. // this.selectAnswer = {};
  13566. this.selectSWorks();
  13567. this.selectStudent();
  13568. })
  13569. .catch((err) => {
  13570. this.$message.error("提交失败");
  13571. console.error(err);
  13572. });
  13573. },
  13574. addSenWorks() {
  13575. for (var i = 0; i < this.sentenceList.length; i++) {
  13576. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13577. if (
  13578. this.sentenceList[i].chooseSenList[j] == undefined ||
  13579. this.sentenceList[i].chooseSenList[j] == ""
  13580. ) {
  13581. this.$message.error("请将答案填写完整!");
  13582. return;
  13583. }
  13584. }
  13585. }
  13586. let params = [
  13587. {
  13588. uid: this.userid,
  13589. cid: this.id,
  13590. stage: this.courseType,
  13591. task: this.taskCount,
  13592. tool: this.toolindex,
  13593. content: JSON.stringify(this.sentenceList),
  13594. type: 9,
  13595. },
  13596. ];
  13597. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13598. this.homeWorkLoading = true
  13599. this.ajax
  13600. .post(this.$store.state.api + "addCourseWorks", params)
  13601. .then((res) => {
  13602. this.$message({
  13603. message: "提交成功",
  13604. type: "success",
  13605. });
  13606. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13607. setTimeout(() => {
  13608. this.homeWorkLoading = false
  13609. }, 500);
  13610. this.dialogVisibleSentence = false;
  13611. // this.selectAnswer = {};
  13612. this.selectSWorks();
  13613. this.selectStudent();
  13614. })
  13615. .catch((err) => {
  13616. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13617. setTimeout(() => {
  13618. this.homeWorkLoading = false
  13619. }, 500);
  13620. this.$message.error("提交失败");
  13621. console.error(err);
  13622. });
  13623. },
  13624. addSenWorksTeacher() {
  13625. for (var i = 0; i < this.sentenceList.length; i++) {
  13626. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13627. if (
  13628. this.sentenceList[i].chooseSenList[j] == undefined ||
  13629. this.sentenceList[i].chooseSenList[j] == ""
  13630. ) {
  13631. this.$message.error("请将答案填写完整!");
  13632. return;
  13633. }
  13634. }
  13635. }
  13636. let params = [
  13637. {
  13638. uid: this.sStudent.userid,
  13639. cid: this.id,
  13640. stage: this.courseType,
  13641. task: this.taskCount,
  13642. tool: this.toolindex,
  13643. content: JSON.stringify(this.sentenceList),
  13644. type: 9,
  13645. },
  13646. ];
  13647. this.ajax
  13648. .post(this.$store.state.api + "addCourseWorks", params)
  13649. .then((res) => {
  13650. this.$message({
  13651. message: "提交成功",
  13652. type: "success",
  13653. });
  13654. this.dialogVisibleSentenceTeacher = false;
  13655. // this.selectAnswer = {};
  13656. this.selectSWorks();
  13657. this.selectStudent();
  13658. })
  13659. .catch((err) => {
  13660. this.$message.error("提交失败");
  13661. console.error(err);
  13662. });
  13663. },
  13664. returnTableText() {
  13665. this.$confirm("确定还原此模板吗?", "提示", {
  13666. confirmButtonText: "确定",
  13667. cancelButtonText: "取消",
  13668. type: "warning",
  13669. })
  13670. .then(() => {
  13671. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13672. })
  13673. .catch(() => {});
  13674. },
  13675. addTableWorks() {
  13676. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13677. this.homeWorkLoading = true
  13678. let params = [
  13679. {
  13680. uid: this.userid,
  13681. cid: this.id,
  13682. stage: this.courseType,
  13683. task: this.taskCount,
  13684. tool: this.toolindex,
  13685. content: JSON.stringify(this.tableJson),
  13686. type: 10,
  13687. },
  13688. ];
  13689. this.ajax
  13690. .post(this.$store.state.api + "addCourseWorks", params)
  13691. .then((res) => {
  13692. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13693. this.$message({
  13694. message: "提交成功",
  13695. type: "success",
  13696. });
  13697. this.dialogVisibleTable = false;
  13698. setTimeout(() => {
  13699. this.homeWorkLoading = false
  13700. }, 500);
  13701. // this.selectAnswer = {};
  13702. this.selectSWorks();
  13703. this.selectStudent();
  13704. })
  13705. .catch((err) => {
  13706. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13707. setTimeout(() => {
  13708. this.homeWorkLoading = false
  13709. }, 500);
  13710. this.$message.error("提交失败");
  13711. console.error(err);
  13712. });
  13713. },
  13714. tableRowClassName({ row, rowIndex }) {
  13715. if ((rowIndex + 1) % 2 === 0) {
  13716. return "even_row";
  13717. } else {
  13718. return "";
  13719. }
  13720. },
  13721. addTableWorksTeacher() {
  13722. let params = [
  13723. {
  13724. uid: this.sStudent.userid,
  13725. cid: this.id,
  13726. stage: this.courseType,
  13727. task: this.taskCount,
  13728. tool: this.toolindex,
  13729. content: JSON.stringify(this.tableJson),
  13730. type: 10,
  13731. },
  13732. ];
  13733. this.ajax
  13734. .post(this.$store.state.api + "addCourseWorks", params)
  13735. .then((res) => {
  13736. this.$message({
  13737. message: "提交成功",
  13738. type: "success",
  13739. });
  13740. this.dialogVisibleTableTeacher = false;
  13741. // this.selectAnswer = {};
  13742. this.selectSWorks();
  13743. this.selectStudent();
  13744. })
  13745. .catch((err) => {
  13746. this.$message.error("提交失败");
  13747. console.error(err);
  13748. });
  13749. },
  13750. returnWordText() {
  13751. this.$confirm("确定还原此模板吗?", "提示", {
  13752. confirmButtonText: "确定",
  13753. cancelButtonText: "取消",
  13754. type: "warning",
  13755. })
  13756. .then(() => {
  13757. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13758. })
  13759. .catch(() => {});
  13760. },
  13761. addWordWorks() {
  13762. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13763. this.homeWorkLoading = true
  13764. let params = [
  13765. {
  13766. uid: this.userid,
  13767. cid: this.id,
  13768. stage: this.courseType,
  13769. task: this.taskCount,
  13770. tool: this.toolindex,
  13771. content: JSON.stringify(this.wordJson),
  13772. type: 13,
  13773. atool: 52,
  13774. },
  13775. ];
  13776. this.ajax
  13777. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13778. .then((res) => {
  13779. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13780. this.$message({
  13781. message: "提交成功",
  13782. type: "success",
  13783. });
  13784. this.dialogVisibleWord = false;
  13785. setTimeout(() => {
  13786. this.homeWorkLoading = false
  13787. }, 500);
  13788. // this.selectAnswer = {};
  13789. this.selectSWorks();
  13790. this.selectStudent();
  13791. })
  13792. .catch((err) => {
  13793. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13794. setTimeout(() => {
  13795. this.homeWorkLoading = false
  13796. }, 500);
  13797. this.$message.error("提交失败");
  13798. console.error(err);
  13799. });
  13800. },
  13801. addWordWorksTeacher() {
  13802. let params = [
  13803. {
  13804. uid: this.sStudent.userid,
  13805. cid: this.id,
  13806. stage: this.courseType,
  13807. task: this.taskCount,
  13808. tool: this.toolindex,
  13809. content: JSON.stringify(this.wordJson),
  13810. type: 13,
  13811. atool: 52,
  13812. },
  13813. ];
  13814. this.ajax
  13815. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13816. .then((res) => {
  13817. this.$message({
  13818. message: "提交成功",
  13819. type: "success",
  13820. });
  13821. this.dialogVisibleWordTeacher = false;
  13822. // this.selectAnswer = {};
  13823. this.selectSWorks();
  13824. this.selectStudent();
  13825. })
  13826. .catch((err) => {
  13827. this.$message.error("提交失败");
  13828. console.error(err);
  13829. });
  13830. },
  13831. addCourseWorks(i) {
  13832. var typesql;
  13833. if (this.fileType === 0) {
  13834. typesql = 1;
  13835. } else if (this.fileType === 1) {
  13836. typesql = 4;
  13837. } else if (this.fileType === 2) {
  13838. typesql = 5;
  13839. } else if (this.fileType === 3) {
  13840. typesql = 12;
  13841. }
  13842. if (!this.studyJuri[0].cover[0].url) {
  13843. this.$message.error("请上传文件");
  13844. return;
  13845. }
  13846. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13847. this.homeWorkLoading = true
  13848. let params = [
  13849. {
  13850. uid: this.userid,
  13851. cid: this.id,
  13852. stage: this.courseType,
  13853. task: i,
  13854. tool: this.toolindex,
  13855. content: this.studyJuri[0].cover[0].url,
  13856. type: typesql,
  13857. },
  13858. ];
  13859. this.ajax
  13860. .post(this.$store.state.api + "addCourseWorksR", params)
  13861. .then((res) => {
  13862. this.$message({
  13863. message: "提交成功",
  13864. type: "success",
  13865. });
  13866. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13867. setTimeout(() => {
  13868. this.homeWorkLoading = false
  13869. }, 500);
  13870. this.studyJuri[0].cover = [];
  13871. this.dialogVisible = false;
  13872. this.getCourseDetail(2);
  13873. })
  13874. .catch((err) => {
  13875. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13876. setTimeout(() => {
  13877. this.homeWorkLoading = false
  13878. }, 500);
  13879. this.$message.error("提交失败");
  13880. console.error(err);
  13881. });
  13882. },
  13883. addCourseWorksPl(i) {
  13884. let _files = this.plworkFile;
  13885. var c = 1;
  13886. for (var k = 0; k < _files.length; k++) {
  13887. if (!_files[k].username) {
  13888. c = 2;
  13889. }
  13890. }
  13891. if (c == 2) {
  13892. this.$message.error("请填写学生姓名");
  13893. return;
  13894. }
  13895. let params = [
  13896. {
  13897. ateacher: this.userid,
  13898. cid: this.id,
  13899. stage: this.courseType,
  13900. task: i,
  13901. tool: this.toolindex,
  13902. content: JSON.stringify(_files),
  13903. },
  13904. ];
  13905. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13906. this.homeWorkLoading = true
  13907. this.ajax
  13908. .post(this.$store.state.api + "addCourseWorksPl", params)
  13909. .then((res) => {
  13910. this.$message({
  13911. message: "提交成功",
  13912. type: "success",
  13913. });
  13914. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13915. setTimeout(() => {
  13916. this.homeWorkLoading = false
  13917. }, 500);
  13918. this.plworkFile = [];
  13919. this.dialogVisiblePl = false;
  13920. this.getCourseDetail(2);
  13921. })
  13922. .catch((err) => {
  13923. this.$message.error("提交失败");
  13924. setTimeout(() => {
  13925. this.homeWorkLoading = false
  13926. }, 500);
  13927. console.error(err);
  13928. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13929. });
  13930. },
  13931. addCourseWorks2(i) {
  13932. var typesql;
  13933. if (this.fileType === 0) {
  13934. typesql = 0;
  13935. } else if (this.fileType === 1) {
  13936. typesql = 1;
  13937. } else if (this.fileType === 2) {
  13938. typesql = 3;
  13939. } else if (this.fileType === 3) {
  13940. typesql = 12;
  13941. }
  13942. if (!this.studyJuri[0].cover[0].url) {
  13943. this.$message.error("请上传文件");
  13944. return;
  13945. }
  13946. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13947. this.homeWorkLoading = true
  13948. let params = [
  13949. {
  13950. uid: this.userid,
  13951. cid: this.id,
  13952. stage: this.courseType,
  13953. task: i,
  13954. tool: this.toolindex,
  13955. content: JSON.stringify({
  13956. type: typesql,
  13957. groupIndex: this.groupIndex,
  13958. url: this.studyJuri[0].cover[0].url,
  13959. }),
  13960. type: 11,
  13961. atool: 49,
  13962. text: "",
  13963. },
  13964. ];
  13965. this.ajax
  13966. .post(this.$store.state.api + "addCourseWorks5", params)
  13967. .then((res) => {
  13968. this.$message({
  13969. message: "提交成功",
  13970. type: "success",
  13971. });
  13972. setTimeout(() => {
  13973. this.homeWorkLoading = false
  13974. }, 500);
  13975. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13976. type: typesql,
  13977. groupIndex: this.groupIndex,
  13978. url: this.studyJuri[0].cover[0].url,
  13979. }),type: "course_tool_sub" }, "success")
  13980. this.studyJuri[0].cover = [];
  13981. this.dialogVisibleGroupWork = false;
  13982. this.getCourseDetail(2);
  13983. })
  13984. .catch((err) => {
  13985. this.$message.error("提交失败");
  13986. setTimeout(() => {
  13987. this.homeWorkLoading = false
  13988. }, 500);
  13989. console.error(err);
  13990. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13991. type: typesql,
  13992. groupIndex: this.groupIndex,
  13993. url: this.studyJuri[0].cover[0].url,
  13994. }),type: "course_tool_sub" }, err)
  13995. });
  13996. },
  13997. addEnglishWork() {
  13998. this.myAnList = this.$refs['engJson'].myAnswerList;
  13999. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14000. this.$message.error("请输入作文标题和正文!");
  14001. return;
  14002. }
  14003. let params = [
  14004. {
  14005. uid: this.userid,
  14006. cid: this.id,
  14007. stage: this.courseType,
  14008. task: this.taskCount,
  14009. tool: this.englishToolIndex,
  14010. content: JSON.stringify(this.myAnList),
  14011. type: 16,
  14012. atool: 69,
  14013. text: "",
  14014. },
  14015. ];
  14016. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14017. this.homeWorkLoading = true
  14018. this.ajax
  14019. .post(this.$store.state.api + "addCourseWorks5", params)
  14020. .then((res) => {
  14021. this.$message({
  14022. message: "提交成功",
  14023. type: "success",
  14024. });
  14025. setTimeout(() => {
  14026. this.homeWorkLoading = false
  14027. }, 500);
  14028. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14029. data: JSON.stringify(this.myAnList),
  14030. type: "course_tool_sub" }, "success")
  14031. this.myAnList = {};
  14032. this.englishList = {};
  14033. this.englishToolIndex = 0;
  14034. this.engDialogVisible = false;
  14035. this.selectSWorks();
  14036. this.selectStudent();
  14037. })
  14038. .catch((err) => {
  14039. this.$message.error("提交失败");
  14040. console.error(err);
  14041. setTimeout(() => {
  14042. this.homeWorkLoading = false
  14043. }, 500);
  14044. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14045. data: JSON.stringify(this.myAnList),
  14046. type: "course_tool_sub" }, err)
  14047. });
  14048. },
  14049. addCourseWorksGong(i, data, tool) {
  14050. let params = [
  14051. {
  14052. uid: this.userid,
  14053. cid: this.id,
  14054. stage: this.courseType,
  14055. task: this.taskCount,
  14056. tool: i,
  14057. content: data,
  14058. type: 12,
  14059. atool: tool,
  14060. text: "",
  14061. },
  14062. ];
  14063. this.ajax
  14064. .post(this.$store.state.api + "addCourseWorks5", params)
  14065. .then((res) => {
  14066. this.$message({
  14067. message: "提交成功",
  14068. type: "success",
  14069. });
  14070. this.studyJuri[0].cover = [];
  14071. this.selectSWorks();
  14072. this.selectStudent();
  14073. })
  14074. .catch((err) => {
  14075. this.$message.error("提交失败");
  14076. console.error(err);
  14077. });
  14078. },
  14079. addCourseWorksGongTeacher(i, data, tool) {
  14080. let params = [
  14081. {
  14082. uid: this.sStudent.userid,
  14083. cid: this.id,
  14084. stage: this.courseType,
  14085. task: this.taskCount,
  14086. tool: i,
  14087. content: data,
  14088. type: 12,
  14089. atool: tool,
  14090. text: "",
  14091. },
  14092. ];
  14093. this.ajax
  14094. .post(this.$store.state.api + "addCourseWorks5", params)
  14095. .then((res) => {
  14096. this.$message({
  14097. message: "提交成功",
  14098. type: "success",
  14099. });
  14100. this.studyJuri[0].cover = [];
  14101. this.dialogVisibleWorks = false;
  14102. this.selectSWorks();
  14103. this.selectStudent();
  14104. })
  14105. .catch((err) => {
  14106. this.$message.error("提交失败");
  14107. console.error(err);
  14108. });
  14109. },
  14110. addCourseWorksGongPl(i, data, tool, type) {
  14111. let params = [
  14112. {
  14113. uid: this.sStudent.userid,
  14114. cid: this.id,
  14115. stage: this.courseType,
  14116. task: this.taskCount,
  14117. tool: i,
  14118. content: data,
  14119. type: type,
  14120. atool: tool,
  14121. text: "",
  14122. },
  14123. ];
  14124. this.ajax
  14125. .post(this.$store.state.api + "addCourseWorks5", params)
  14126. .then((res) => {
  14127. this.$message({
  14128. message: "提交成功",
  14129. type: "success",
  14130. });
  14131. this.studyJuri[0].cover = [];
  14132. this.dialogVisibleWorks = false;
  14133. this.selectSWorks();
  14134. this.selectStudent();
  14135. })
  14136. .catch((err) => {
  14137. this.$message.error("提交失败");
  14138. console.error(err);
  14139. });
  14140. },
  14141. addCourseWorksTeacher(i) {
  14142. var typesql;
  14143. if (this.sTool == 32) {
  14144. this.addCourseWorksGongTeacher(
  14145. this.toolindex,
  14146. this.studyJuri[0].cover[0].url,
  14147. this.sTool
  14148. );
  14149. return;
  14150. }
  14151. if (this.fileType === 0) {
  14152. typesql = 1;
  14153. } else if (this.fileType === 1) {
  14154. typesql = 4;
  14155. } else if (this.fileType === 2) {
  14156. typesql = 5;
  14157. } else if (this.fileType === 3) {
  14158. typesql = 12;
  14159. }
  14160. if (this.sTool == 50) {
  14161. this.addCourseWorksGongPl(
  14162. this.toolindex,
  14163. this.studyJuri[0].cover[0].url,
  14164. this.sTool,
  14165. typesql
  14166. );
  14167. return;
  14168. }
  14169. if (!this.studyJuri[0].cover[0].url) {
  14170. this.$message.error("请上传文件");
  14171. return;
  14172. }
  14173. let params = [
  14174. {
  14175. uid: this.sStudent.userid,
  14176. cid: this.id,
  14177. stage: this.courseType,
  14178. task: i,
  14179. tool: this.toolindex,
  14180. content: this.studyJuri[0].cover[0].url,
  14181. type: typesql,
  14182. ateacher: this.userid,
  14183. },
  14184. ];
  14185. this.ajax
  14186. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14187. .then((res) => {
  14188. this.$message({
  14189. message: "提交成功",
  14190. type: "success",
  14191. });
  14192. this.studyJuri[0].cover = [];
  14193. this.dialogVisibleWorks = false;
  14194. this.getCourseDetail(2);
  14195. })
  14196. .catch((err) => {
  14197. this.$message.error("提交失败");
  14198. console.error(err);
  14199. });
  14200. },
  14201. selectUploadStudent(type) {
  14202. const loading = this.$loading.service({
  14203. background: "rgba(255, 255, 255, 0.7)",
  14204. target: document.body,
  14205. });
  14206. let params = {
  14207. cid: this.uploadCid,
  14208. oid: this.oid,
  14209. cn: "",
  14210. };
  14211. this.ajax
  14212. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14213. .then((res) => {
  14214. loading.close();
  14215. var studentK = [];
  14216. if (this.isWorksS[this.toolindex].length > 0) {
  14217. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14218. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14219. }
  14220. studentK = studentK.join(",");
  14221. }
  14222. this.uploadStudentJuri = res.data[0].filter((el) => {
  14223. return studentK.indexOf(el.userid) == -1;
  14224. });
  14225. if (this.worksSName && this.worksSid) {
  14226. this.uploadStudentJuri.push({
  14227. userid: this.worksSid,
  14228. name: this.worksSName,
  14229. });
  14230. }
  14231. if (type == 1) {
  14232. this.plworkFile = [];
  14233. this.dialogVisibleSname = true;
  14234. } else if (type == 2) {
  14235. this.dialogVisiblePl = true;
  14236. }
  14237. })
  14238. .catch((err) => {
  14239. loading.close();
  14240. console.error(err);
  14241. });
  14242. },
  14243. selectPickStudent() {
  14244. const loading = this.$loading.service({
  14245. background: "rgba(255, 255, 255, 0.7)",
  14246. target: document.body,
  14247. });
  14248. let params = {
  14249. cid: this.uploadCid,
  14250. oid: this.oid,
  14251. cn: "",
  14252. };
  14253. this.ajax
  14254. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14255. .then((res) => {
  14256. loading.close();
  14257. this.uploadStudentJuri = res.data[0];
  14258. this.dialogVisiblePickPeople = true;
  14259. })
  14260. .catch((err) => {
  14261. loading.close();
  14262. console.error(err);
  14263. });
  14264. },
  14265. arrayToArray(arrayo, arrayt) {
  14266. let array1 = arrayo;
  14267. let array2 = arrayt;
  14268. let commonElements = [];
  14269. for (let i = 0; i < array1.length; i++) {
  14270. for (let j = 0; j < array2.length; j++) {
  14271. if (array1[i] === array2[j]) {
  14272. commonElements.push(array1[i]);
  14273. }
  14274. }
  14275. }
  14276. return commonElements;
  14277. },
  14278. selectWorksStudent() {
  14279. let params = {
  14280. oid: this.oid,
  14281. cid: this.courseDetail.juri,
  14282. };
  14283. this.ajax
  14284. .get(this.$store.state.api + "selectWorksStudent", params)
  14285. .then((res) => {
  14286. var a = res.data[0];
  14287. for (var i = 0; i < this.isWorksS.length; i++) {
  14288. this.noWorksS[i] = [];
  14289. var studentK = [];
  14290. if (this.isWorksS[i].length > 0) {
  14291. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14292. studentK.push(this.isWorksS[i][z].uid);
  14293. }
  14294. studentK = studentK.join(",");
  14295. for (var j = 0; j < a.length; j++) {
  14296. if (studentK.indexOf(a[j].userid) == -1) {
  14297. if (this.tcid) {
  14298. // a[j].classid.indexOf(this.tcid) != -1
  14299. if (
  14300. this.arrayToArray(
  14301. a[j].classid.split(","),
  14302. this.tcid.split(",")
  14303. ).length
  14304. ) {
  14305. this.noWorksS[i].push({
  14306. student: a[j].name,
  14307. userid: a[j].userid,
  14308. });
  14309. }
  14310. } else {
  14311. this.noWorksS[i].push({
  14312. student: a[j].name,
  14313. userid: a[j].userid,
  14314. });
  14315. }
  14316. }
  14317. }
  14318. } else {
  14319. for (var k = 0; k < a.length; k++) {
  14320. if (this.tcid) {
  14321. if (
  14322. this.arrayToArray(
  14323. a[k].classid.split(","),
  14324. this.tcid.split(",")
  14325. ).length
  14326. ) {
  14327. this.noWorksS[i].push({
  14328. student: a[k].name,
  14329. userid: a[k].userid,
  14330. });
  14331. }
  14332. } else {
  14333. this.noWorksS[i].push({
  14334. student: a[k].name,
  14335. userid: a[k].userid,
  14336. });
  14337. }
  14338. }
  14339. }
  14340. }
  14341. this.$forceUpdate();
  14342. if (
  14343. Object.keys(this.commentDetail).length &&
  14344. Object.keys(this.commentIndexJson).length &&
  14345. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14346. ) {
  14347. let a = 1;
  14348. let c = this.commentIndexJson;
  14349. if (
  14350. this.commentIndexJson.gindex ||
  14351. this.commentIndexJson.gindex === 0
  14352. ) {
  14353. for (
  14354. var i = 0;
  14355. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14356. i++
  14357. ) {
  14358. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14359. groupA: for (var k = 0; k < _el.length; k++) {
  14360. let el = _el[k];
  14361. if (el.wid == this.commentDetail.wid) {
  14362. a = 2;
  14363. this.commentOther(
  14364. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14365. this.commentIndexJson.toolIndex,
  14366. k,
  14367. this.commentIndexJson.gindex
  14368. );
  14369. break groupA;
  14370. }
  14371. }
  14372. }
  14373. if (a === 1) {
  14374. this.commentDetail = [];
  14375. this.commentIndexJson = {};
  14376. this.commentDialogVisible = false;
  14377. this.$message("此作业已被删除");
  14378. }
  14379. } else {
  14380. if (this.isGroup && this.commentIndexJson.gid) {
  14381. groupA: for (
  14382. var i = 0;
  14383. i < this.courseGroup.group.length;
  14384. i++
  14385. ) {
  14386. let _group = this.courseGroup.group[i];
  14387. if (_group.id == this.commentIndexJson.gid) {
  14388. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14389. for (var k = 0; k < _el2.length; k++) {
  14390. let el2 = _el2[k];
  14391. if (el2.wid == this.commentDetail.wid) {
  14392. a = 2;
  14393. this.commentOther(
  14394. _el2[k],
  14395. this.commentIndexJson.toolIndex,
  14396. k,
  14397. null,
  14398. this.commentIndexJson.gid
  14399. );
  14400. break groupA;
  14401. }
  14402. }
  14403. }
  14404. }
  14405. }
  14406. if (a == 1) {
  14407. for (
  14408. var i = 0;
  14409. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14410. i++
  14411. ) {
  14412. let el =
  14413. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14414. if (el.wid == this.commentDetail.wid) {
  14415. a = 2;
  14416. this.commentOther(
  14417. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14418. this.commentIndexJson.toolIndex,
  14419. i
  14420. );
  14421. break;
  14422. }
  14423. }
  14424. }
  14425. if (a === 1) {
  14426. this.commentDetail = [];
  14427. this.commentIndexJson = {};
  14428. this.commentDialogVisible = false;
  14429. this.$message("此作业已被删除");
  14430. }
  14431. }
  14432. }
  14433. })
  14434. .catch((err) => {
  14435. console.error(err);
  14436. });
  14437. },
  14438. selectStudent() {
  14439. //学生查看自己作业
  14440. let params = {
  14441. uid: this.userid,
  14442. cid: this.id,
  14443. s: this.courseType,
  14444. t: this.taskCount,
  14445. };
  14446. this.ajax
  14447. .get(this.$store.state.api + "selectStudentWorks", params)
  14448. .then((res) => {
  14449. var a =
  14450. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14451. this.taskCount
  14452. ].toolChoose;
  14453. var b = res.data[0];
  14454. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14455. var y = [
  14456. "AVI",
  14457. "NAVI",
  14458. "MPEG",
  14459. "ASF",
  14460. "MOV",
  14461. "WMV",
  14462. "3GP",
  14463. "RM",
  14464. "RMVB",
  14465. "FLV",
  14466. "F4V",
  14467. "H.264",
  14468. "H.265",
  14469. "REAL VIDEO",
  14470. "MKV",
  14471. "WebM",
  14472. "HDDVD",
  14473. "MP4",
  14474. "MPG",
  14475. "M4V",
  14476. "MGV",
  14477. "OGV",
  14478. "QTM",
  14479. "STR",
  14480. "AMC",
  14481. "DVX",
  14482. "EVO",
  14483. "DAT",
  14484. "OGG",
  14485. "OGM",
  14486. ];
  14487. for (var i = 0; i < a.length; i++) {
  14488. this.workStudent[i] = [];
  14489. for (var j = 0; j < b.length; j++) {
  14490. if (i == b[j].tool) {
  14491. if (
  14492. (b[j].type == 1 ||
  14493. b[j].type == 4 ||
  14494. b[j].type == 5 ||
  14495. b[j].type == 6 ||
  14496. b[j].type == 12 ||
  14497. b[j].type == 7) &&
  14498. a[i].tool[0] != 15 &&
  14499. a[i].tool[0] != 4 &&
  14500. a[i].tool[0] != 45 &&
  14501. a[i].tool[0] != 50 &&
  14502. a[i].tool[0] != 32 &&
  14503. a[i].tool[0] != 57 &&
  14504. a[i].tool[0] != 52 &&
  14505. a[i].tool[0] != 69
  14506. ) {
  14507. if (
  14508. c.indexOf(
  14509. b[j].content
  14510. .split(".")
  14511. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14512. ) != -1 &&
  14513. a[i].tool[0] == 16 &&
  14514. b[j].atool != 50
  14515. ) {
  14516. this.workStudent[i].push({
  14517. works: b[j].content,
  14518. sName: b[j].name,
  14519. score: b[j].score,
  14520. img: b[j].img,
  14521. type: 1,
  14522. time: b[j].time,
  14523. userid: b[j].userid,
  14524. wid: b[j].id,
  14525. });
  14526. } else if (
  14527. y.indexOf(
  14528. b[j].content
  14529. .split(".")
  14530. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14531. ) != -1 &&
  14532. a[i].tool[0] == 16 &&
  14533. b[j].atool != 50
  14534. ) {
  14535. this.workStudent[i].push({
  14536. userid: b[j].userid,
  14537. wid: b[j].id,
  14538. works: b[j].content,
  14539. sName: b[j].name,
  14540. score: b[j].score,
  14541. img: b[j].img,
  14542. type: 3,
  14543. time: b[j].time,
  14544. });
  14545. } else if (b[j].type == 6 && b[j].atool != 50) {
  14546. this.workStudent[i].push({
  14547. userid: b[j].userid,
  14548. wid: b[j].id,
  14549. works: b[j].content,
  14550. sName: b[j].name,
  14551. score: b[j].score,
  14552. img: b[j].img,
  14553. type: 4,
  14554. time: b[j].time,
  14555. });
  14556. } else if (b[j].type == 7 && b[j].atool != 50) {
  14557. this.workStudent[i].push({
  14558. userid: b[j].userid,
  14559. wid: b[j].id,
  14560. works: b[j].content,
  14561. sName: b[j].name,
  14562. score: b[j].score,
  14563. img: b[j].img,
  14564. type: 5,
  14565. time: b[j].time,
  14566. });
  14567. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14568. this.workStudent[i].push({
  14569. works: b[j].content,
  14570. sName: b[j].name,
  14571. score: b[j].score,
  14572. img: b[j].img,
  14573. type: 12,
  14574. time: b[j].time,
  14575. userid: b[j].userid,
  14576. wid: b[j].id,
  14577. });
  14578. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14579. this.workStudent[i].push({
  14580. works: b[j].content,
  14581. sName: b[j].name,
  14582. score: b[j].score,
  14583. img: b[j].img,
  14584. type: 0,
  14585. time: b[j].time,
  14586. userid: b[j].userid,
  14587. wid: b[j].id,
  14588. });
  14589. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14590. this.workStudent[i].push({
  14591. works: b[j].content,
  14592. sName: b[j].name,
  14593. score: b[j].score,
  14594. img: b[j].img,
  14595. type: 0,
  14596. time: b[j].time,
  14597. userid: b[j].userid,
  14598. wid: b[j].id,
  14599. });
  14600. }
  14601. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14602. this.workStudent[i].push({
  14603. works: b[j].content,
  14604. sName: b[j].name,
  14605. score: b[j].score,
  14606. img: b[j].img,
  14607. type: 2,
  14608. time: b[j].time,
  14609. userid: b[j].userid,
  14610. wid: b[j].id,
  14611. });
  14612. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14613. this.workStudent[i].push({
  14614. works: b[j].content,
  14615. sName: b[j].name,
  14616. score: b[j].score,
  14617. img: b[j].img,
  14618. type: 20,
  14619. time: b[j].time,
  14620. userid: b[j].userid,
  14621. wid: b[j].id,
  14622. });
  14623. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14624. //问卷
  14625. this.workStudent[i].push({
  14626. works: b[j].content,
  14627. sName: b[j].name,
  14628. score: b[j].score,
  14629. img: b[j].img,
  14630. type: 2,
  14631. time: b[j].time,
  14632. userid: b[j].userid,
  14633. wid: b[j].id,
  14634. });
  14635. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14636. //选择题
  14637. this.workStudent[i].push({
  14638. works: b[j].content,
  14639. sName: b[j].name,
  14640. score: b[j].score,
  14641. img: b[j].img,
  14642. type: 8,
  14643. time: b[j].time,
  14644. userid: b[j].userid,
  14645. wid: b[j].id,
  14646. });
  14647. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14648. //选择题
  14649. this.workStudent[i].push({
  14650. works: b[j].content,
  14651. sName: b[j].name,
  14652. score: b[j].score,
  14653. img: b[j].img,
  14654. type: 9,
  14655. time: b[j].time,
  14656. userid: b[j].userid,
  14657. wid: b[j].id,
  14658. });
  14659. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14660. //选择题
  14661. this.workStudent[i].push({
  14662. works: b[j].content,
  14663. sName: b[j].name,
  14664. score: b[j].score,
  14665. img: b[j].img,
  14666. type: 10,
  14667. time: b[j].time,
  14668. userid: b[j].userid,
  14669. wid: b[j].id,
  14670. });
  14671. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14672. //选择题
  14673. this.workStudent[i].push({
  14674. works: b[j].content,
  14675. sName: b[j].name,
  14676. score: b[j].score,
  14677. img: b[j].img,
  14678. type: 13,
  14679. time: b[j].time,
  14680. userid: b[j].userid,
  14681. wid: b[j].id,
  14682. });
  14683. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14684. //选择题
  14685. this.workStudent[i].push({
  14686. works: b[j].content,
  14687. sName: b[j].name,
  14688. score: b[j].score,
  14689. img: b[j].img,
  14690. type: 12,
  14691. time: b[j].time,
  14692. userid: b[j].userid,
  14693. wid: b[j].id,
  14694. });
  14695. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14696. //选择题
  14697. this.workStudent[i].push({
  14698. works: b[j].content,
  14699. sName: b[j].name,
  14700. score: b[j].score,
  14701. img: b[j].img,
  14702. type: 12,
  14703. time: b[j].time,
  14704. userid: b[j].userid,
  14705. wid: b[j].id,
  14706. });
  14707. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14708. //选择题
  14709. this.workStudent[i].push({
  14710. works: b[j].content,
  14711. sName: b[j].name,
  14712. score: b[j].score,
  14713. img: b[j].img,
  14714. type: 15,
  14715. time: b[j].time,
  14716. userid: b[j].userid,
  14717. wid: b[j].id,
  14718. });
  14719. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14720. //英语写作
  14721. this.workStudent[i].push({
  14722. works: b[j].content,
  14723. sName: b[j].name,
  14724. score: b[j].score,
  14725. img: b[j].img,
  14726. type: 16,
  14727. time: b[j].time,
  14728. userid: b[j].userid,
  14729. wid: b[j].id,
  14730. aiCode: b[j].aiCode,
  14731. teacherCode: b[j].teacherCode
  14732. });
  14733. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14734. //英语口语
  14735. this.workStudent[i].push({
  14736. works: b[j].content,
  14737. sName: b[j].name,
  14738. score: b[j].score,
  14739. img: b[j].img,
  14740. type: 17,
  14741. time: b[j].time,
  14742. userid: b[j].userid,
  14743. wid: b[j].id,
  14744. });
  14745. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14746. //英语口语
  14747. this.workStudent[i].push({
  14748. works: b[j].content,
  14749. sName: b[j].name,
  14750. score: b[j].score,
  14751. img: b[j].img,
  14752. type: 14,
  14753. time: b[j].time,
  14754. userid: b[j].userid,
  14755. wid: b[j].id,
  14756. });
  14757. }
  14758. }
  14759. }
  14760. }
  14761. })
  14762. .catch((err) => {
  14763. console.error(err);
  14764. });
  14765. },
  14766. openVideo(w) {
  14767. this.videoDetail = {};
  14768. this.playerOptions1.sources[0].src = w.works;
  14769. this.videoDetail = this.playerOptions1;
  14770. this.videoVisible = true;
  14771. },
  14772. isLikes(wid, uid, t, c, isLikes,sName) {
  14773. if (isLikes == false) {
  14774. let params = [
  14775. {
  14776. wid: wid,
  14777. lid: uid,
  14778. t: t,
  14779. c: c,
  14780. },
  14781. ];
  14782. this.ajax
  14783. .post(this.$store.state.api + "insertComment", params)
  14784. .then((res) => {
  14785. this.$message({
  14786. message: "点赞成功",
  14787. type: "success",
  14788. });
  14789. this.selectSWorks();
  14790. this.selectStudent();
  14791. if(this.tType==1){
  14792. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14793. }
  14794. })
  14795. .catch((err) => {
  14796. this.$message.error("点赞失败");
  14797. console.error(err);
  14798. });
  14799. } else {
  14800. let params = {
  14801. wid: wid,
  14802. lid: uid,
  14803. type: t,
  14804. };
  14805. this.ajax
  14806. .get(this.$store.state.api + "deleteComment", params)
  14807. .then((res) => {
  14808. this.$message({
  14809. message: "取消点赞成功",
  14810. type: "success",
  14811. });
  14812. this.selectSWorks();
  14813. this.selectStudent();
  14814. })
  14815. .catch((err) => {
  14816. console.error(err);
  14817. });
  14818. }
  14819. },
  14820. deleteComment(wid) {
  14821. this.$confirm("确定删除此评论吗?", "提示", {
  14822. confirmButtonText: "确定",
  14823. cancelButtonText: "取消",
  14824. type: "warning",
  14825. })
  14826. .then(() => {
  14827. let params = {
  14828. id: wid,
  14829. };
  14830. this.ajax
  14831. .get(this.$store.state.api + "deleteComment2", params)
  14832. .then((res) => {
  14833. this.$message({
  14834. message: "删除评论成功",
  14835. type: "success",
  14836. });
  14837. this.selectSWorks();
  14838. this.selectStudent();
  14839. })
  14840. .catch((err) => {
  14841. console.error(err);
  14842. });
  14843. })
  14844. .catch(() => {});
  14845. },
  14846. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14847. this.commentIndexJson = {
  14848. toolIndex: toolIndex,
  14849. wIndex: wIndex,
  14850. gindex: gindex,
  14851. gid: gid,
  14852. };
  14853. this.commentDetail = [];
  14854. this.commentDialogVisible = true;
  14855. this.commentDetail = w;
  14856. if (w.works && w.type == 1) {
  14857. // this.pptImgUrl = "";
  14858. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14859. if (
  14860. a.indexOf(
  14861. w.works
  14862. .split(".")
  14863. [w.works.split(".").length - 1].toLocaleUpperCase()
  14864. ) != -1
  14865. ) {
  14866. let _uuurl = await this.checkLink(w.works);
  14867. this.pptImgUrl =
  14868. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14869. this.showPDF = false;
  14870. } else if (
  14871. w.works
  14872. .split(".")
  14873. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14874. ) {
  14875. this.pptImgUrl = w.works;
  14876. this.showPDF = true;
  14877. }
  14878. } else if (w.works && w.type == 3) {
  14879. this.videoDetail = {};
  14880. this.playerOptions1.sources[0].src = w.works;
  14881. this.videoDetail = this.playerOptions1;
  14882. // this.videoVisible = true;
  14883. } else if (w.works && w.type == 4) {
  14884. this.eScore = JSON.parse(w.works);
  14885. this.rateJson =
  14886. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14887. this.taskCount
  14888. ].toolChoose[toolIndex].rateJson;
  14889. } else if (w.works && w.type == 10) {
  14890. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14891. } else if (w.works && w.type == 13) {
  14892. this.wordJson =
  14893. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14894. this.taskCount
  14895. ].toolChoose[toolIndex].wordJson;
  14896. }
  14897. },
  14898. async openScore(w, index) {
  14899. this.wScore = 0;
  14900. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14901. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14902. this.commentDetail = [];
  14903. if(w.type == 17){
  14904. this.dialogVisibleENScore = true;
  14905. }else{
  14906. this.dialogVisibleScore = true;
  14907. }
  14908. this.commentDetail = w;
  14909. if (w.works && w.type == 1) {
  14910. this.pptImgUrl = "";
  14911. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14912. if (
  14913. a.indexOf(
  14914. w.works
  14915. .split(".")
  14916. [w.works.split(".").length - 1].toLocaleUpperCase()
  14917. ) != -1
  14918. ) {
  14919. let _uuurl = await this.checkLink(w.works);
  14920. this.pptImgUrl =
  14921. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14922. this.showPDF = false;
  14923. } else if (
  14924. w.works
  14925. .split(".")
  14926. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14927. ) {
  14928. this.pptImgUrl = w.works;
  14929. this.showPDF = true;
  14930. }
  14931. } else if (w.works && w.type == 3) {
  14932. this.videoDetail = {};
  14933. this.playerOptions1.sources[0].src = w.works;
  14934. this.videoDetail = this.playerOptions1;
  14935. }else if(w.type == 17){
  14936. let englishVoiceJson = {}
  14937. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14938. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14939. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14940. .toolChoose[index].englishVoiceJson
  14941. : {};
  14942. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14943. }
  14944. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14945. },
  14946. addComment(wid, uid, t,detail) {
  14947. if (this.commentText == "") {
  14948. this.$message.error("请输入评论");
  14949. return;
  14950. }
  14951. let params2 = [
  14952. {
  14953. wid: wid,
  14954. lid: uid,
  14955. t: t,
  14956. },
  14957. ];
  14958. this.ajax
  14959. .post(this.$store.state.api + "getComment", params2)
  14960. .then((res) => {
  14961. if (res.data[0].length > 0) {
  14962. this.$message.error("一个作业只能评论一条");
  14963. } else {
  14964. let params = [
  14965. {
  14966. wid: wid,
  14967. lid: uid,
  14968. t: t,
  14969. c: this.commentText,
  14970. },
  14971. ];
  14972. this.ajax
  14973. .post(this.$store.state.api + "insertComment", params)
  14974. .then((res) => {
  14975. this.$message({
  14976. message: "评论成功",
  14977. type: "success",
  14978. });
  14979. this.commentText = "";
  14980. this.selectSWorks();
  14981. this.selectStudent();
  14982. if(this.tType!=2){
  14983. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14984. }
  14985. })
  14986. .catch((err) => {
  14987. this.$message.error("评论失败");
  14988. console.error(err);
  14989. });
  14990. }
  14991. })
  14992. .catch((err) => {
  14993. // this.$message.error("评论失败");
  14994. console.error(err);
  14995. });
  14996. },
  14997. scoreWork(wid,sName) {
  14998. if (this.wScore == 0) {
  14999. this.$message.error("请评分");
  15000. return;
  15001. }
  15002. let params = [
  15003. {
  15004. wid: wid,
  15005. score: JSON.stringify({
  15006. wScore: this.wScore,
  15007. detail: this.scoreDetail,
  15008. }),
  15009. },
  15010. ];
  15011. this.ajax
  15012. .post(this.$store.state.api + "scoreWork", params)
  15013. .then((res) => {
  15014. this.$message({
  15015. message: "评分成功",
  15016. type: "success",
  15017. });
  15018. this.wScore = 0;
  15019. this.scoreDetail = "";
  15020. this.dialogVisibleScore = false;
  15021. this.selectSWorks();
  15022. this.selectStudent();
  15023. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15024. })
  15025. .catch((err) => {
  15026. this.$message.error("评分失败");
  15027. console.error(err);
  15028. });
  15029. },
  15030. openXz(w, i) {
  15031. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15032. .taskJson[this.taskCount].toolChoose[i].selectJson
  15033. ? JSON.parse(
  15034. JSON.stringify(
  15035. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15036. this.taskCount
  15037. ].toolChoose[i].selectJson
  15038. )
  15039. )
  15040. : { url: "", select: [], answer: [] };
  15041. var a = w.works.split(",");
  15042. for (var k = 0; k < a.length; k++) {
  15043. a[k] = parseInt(a[k]);
  15044. }
  15045. this.selectAnswer = { answer: a, stu: w.sName };
  15046. this.isSelect = true;
  15047. this.dialogVisibleSelect = true;
  15048. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15049. },
  15050. openSen(w, i) {
  15051. console.log("openSen")
  15052. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15053. this.sentenceList1 = JSON.parse(w.works);
  15054. this.sentenceList1.stuName = w.sName;
  15055. this.dialogVisibleSentence1 = true;
  15056. },
  15057. openPj(w, toolindex) {
  15058. console.log("openPJ")
  15059. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15060. this.isStar = true;
  15061. this.eScore = JSON.parse(w);
  15062. this.rateJson =
  15063. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15064. this.taskCount
  15065. ].toolChoose[toolindex].rateJson;
  15066. this.studentEvalDialogVisible = true;
  15067. },
  15068. openEnglishEva(id,i){
  15069. let params = {
  15070. wid: id
  15071. };
  15072. this.ajax
  15073. .get(this.$store.state.api + "selectEngWork", params)
  15074. .then((res) => {
  15075. this.evaEngJson.message = res.data[0][0];
  15076. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15077. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15078. .toolChoose[i].englishList;
  15079. this.engEvaDialogVisible = true;
  15080. })
  15081. .catch((err) => {
  15082. console.error(err);
  15083. });
  15084. },
  15085. deleteWorks(id) {
  15086. this.$confirm("确定删除此作业吗?", "提示", {
  15087. confirmButtonText: "确定",
  15088. cancelButtonText: "取消",
  15089. type: "warning",
  15090. })
  15091. .then(() => {
  15092. let params = [
  15093. {
  15094. id: id,
  15095. },
  15096. ];
  15097. this.ajax
  15098. .post(this.$store.state.api + "deleteCourseWork", params)
  15099. .then((res) => {
  15100. this.$message({
  15101. message: "删除成功",
  15102. type: "success",
  15103. });
  15104. this.selectStudent();
  15105. this.selectSWorks();
  15106. this.selectSLook();
  15107. })
  15108. .catch((err) => {
  15109. this.$message.error("网络异常");
  15110. console.error(err);
  15111. });
  15112. })
  15113. .catch(() => {});
  15114. },
  15115. selectSWorks(gindex) {
  15116. //教师查看全部作业
  15117. let params = {
  15118. cid: this.id,
  15119. s: this.courseType,
  15120. t: this.taskCount,
  15121. };
  15122. this.ajax
  15123. .get(this.$store.state.api + "selectSWorks", params)
  15124. .then((res) => {
  15125. var a =
  15126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15127. this.taskCount
  15128. ].toolChoose;
  15129. var b = res.data[0];
  15130. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15131. var y = [
  15132. "AVI",
  15133. "NAVI",
  15134. "MPEG",
  15135. "ASF",
  15136. "MOV",
  15137. "WMV",
  15138. "3GP",
  15139. "RM",
  15140. "RMVB",
  15141. "FLV",
  15142. "F4V",
  15143. "H.264",
  15144. "H.265",
  15145. "REAL VIDEO",
  15146. "MKV",
  15147. "WebM",
  15148. "HDDVD",
  15149. "MP4",
  15150. "MPG",
  15151. "M4V",
  15152. "MGV",
  15153. "OGV",
  15154. "QTM",
  15155. "STR",
  15156. "AMC",
  15157. "DVX",
  15158. "EVO",
  15159. "DAT",
  15160. "OGG",
  15161. "OGM",
  15162. ];
  15163. var d = res.data[1];
  15164. var e = res.data[2];
  15165. var f = res.data[3];
  15166. let _worksStudent = [];
  15167. var _worksStudent2 = [];
  15168. for (var i = 0; i < a.length; i++) {
  15169. _worksStudent[i] = [];
  15170. _worksStudent2[i] = [];
  15171. if (
  15172. !this.isCloseList[i] ||
  15173. this.isCloseList[i].isClose == undefined
  15174. ) {
  15175. this.isCloseList[i] = { isClose: 0 };
  15176. }
  15177. this.groupStudent[i] = [];
  15178. this.groupStudentUid[i] = [];
  15179. if (this.isGroup) {
  15180. for (
  15181. var groupI = 0;
  15182. groupI < this.courseGroup.group.length;
  15183. groupI++
  15184. ) {
  15185. this.courseGroup.group[groupI].works[i] = [];
  15186. }
  15187. }
  15188. this.isWorksS[i] = [];
  15189. this.checkJson[i] = [];
  15190. if (a[i].tool[0] == 49) {
  15191. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15192. this.groupStudent[i][gA] = [];
  15193. this.groupStudentUid[i][gA] = [];
  15194. _worksStudent[i][gA] = [];
  15195. _worksStudent2[i][gA] = [];
  15196. this.isCloseList[i][gA] = [];
  15197. // debugger
  15198. for (var g = 0; g < f.length; g++) {
  15199. if (
  15200. f[g].ttype == 2 &&
  15201. this.tcid &&
  15202. this.arrayToArray(
  15203. (f[g].classid ? f[g].classid.split(",") : []),
  15204. this.tcid.split(",")
  15205. ).length == 0
  15206. ) {
  15207. continue;
  15208. }
  15209. let _classId = this.arrayToArray(
  15210. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15211. this.classId ? this.classId.split(",") : []
  15212. )
  15213. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15214. (f[g].classid ? f[g].classid.split(",") : []),
  15215. this.tcid.split(",")
  15216. ).length !== 0 || this.arrayToArray(
  15217. (f[g].classid ? f[g].classid.split(",") : []),
  15218. _classId
  15219. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15220. this.groupStudent[i][gA].push(f[g]);
  15221. this.groupStudentUid[i][gA].push(f[g].userid);
  15222. }
  15223. }
  15224. }
  15225. this.$forceUpdate();
  15226. }
  15227. for (var j = 0; j < b.length; j++) {
  15228. if (
  15229. b[j].ttype == 2 &&
  15230. this.tcid &&
  15231. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15232. .length == 0
  15233. ) {
  15234. continue;
  15235. }
  15236. var likesCount = 0;
  15237. var commentCount = 0;
  15238. var isLikes = false;
  15239. var commentJson = [];
  15240. var likeJson = [];
  15241. var data = b[j];
  15242. if (i == b[j].tool) {
  15243. if (data.type == 2 && a[i].tool[0] == 4) {
  15244. // if(JSON.parse(data.content)[0].anwer){
  15245. var checkL =
  15246. JSON.parse(data.content)[0].anwer instanceof Array
  15247. ? JSON.parse(data.content)[0].anwer
  15248. : JSON.parse(data.content)[0].anwer.split(",");
  15249. for (var z = 0; z < checkL.length; z++) {
  15250. if (!this.checkJson[i][z]) {
  15251. this.checkJson[i].push({
  15252. checkCount: [],
  15253. checkPerson: [],
  15254. rightPerson: [],
  15255. });
  15256. }
  15257. if (!this.checkJson[i][z].checkCount.length) {
  15258. this.checkJson[i][z].checkCount = [];
  15259. let _askItemCount = JSON.parse(data.content)[0].askJson
  15260. .askJson[z].askItem;
  15261. for (var aic = 0; aic < _askItemCount; aic++) {
  15262. this.checkJson[i][z].checkCount.push(0);
  15263. }
  15264. }
  15265. if (checkL[z] instanceof Array) {
  15266. if (
  15267. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15268. checkL[z].sort().join(",")
  15269. ) {
  15270. this.checkJson[i][z].rightPerson.push(data.name);
  15271. }
  15272. for (var q = 0; q < checkL[z].length; q++) {
  15273. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15274. ? this.checkJson[i][z].checkPerson[
  15275. parseInt(checkL[z][q])
  15276. ].push(data.name)
  15277. : (this.checkJson[i][z].checkPerson[
  15278. parseInt(checkL[z][q])
  15279. ] = [data.name]);
  15280. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15281. ? this.checkJson[i][z].checkCount[
  15282. parseInt(checkL[z][q])
  15283. ]++
  15284. : (this.checkJson[i][z].checkCount[
  15285. parseInt(checkL[z][q])
  15286. ] = 1);
  15287. }
  15288. } else {
  15289. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15290. this.checkJson[i][z].rightPerson.push(data.name);
  15291. }
  15292. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15293. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15294. ? this.checkJson[i][z].checkPerson[
  15295. parseInt(checkL[z])
  15296. ].push(data.name)
  15297. : (this.checkJson[i][z].checkPerson[
  15298. parseInt(checkL[z])
  15299. ] = [data.name]);
  15300. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15301. ? this.checkJson[i][z].checkCount[
  15302. parseInt(checkL[z])
  15303. ]++
  15304. : (this.checkJson[i][z].checkCount[
  15305. parseInt(checkL[z])
  15306. ] = 1);
  15307. }
  15308. }
  15309. }
  15310. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15311. var checkL = JSON.parse(data.content)[0].anwer;
  15312. for (var z = 0; z < checkL.length; z++) {
  15313. if (!this.checkJson[i][z]) {
  15314. this.checkJson[i].push({
  15315. checkCount: [],
  15316. checkPerson: [],
  15317. rightPerson: [],
  15318. });
  15319. }
  15320. if (!this.checkJson[i][z].checkCount.length) {
  15321. this.checkJson[i][z].checkCount = [];
  15322. let _askItemCount = JSON.parse(data.content)[0].testJson
  15323. .testJson[z].testItem;
  15324. for (var aic = 0; aic < _askItemCount; aic++) {
  15325. this.checkJson[i][z].checkCount.push(0);
  15326. }
  15327. }
  15328. if (checkL[z] instanceof Array) {
  15329. if (
  15330. JSON.parse(data.content)[0]
  15331. .testJson.testJson[z].answer.sort()
  15332. .join(",") == checkL[z].sort().join(",")
  15333. ) {
  15334. this.checkJson[i][z].rightPerson.push(data.name);
  15335. }
  15336. for (var q = 0; q < checkL[z].length; q++) {
  15337. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15338. ? this.checkJson[i][z].checkPerson[
  15339. parseInt(checkL[z][q])
  15340. ].push(data.name)
  15341. : (this.checkJson[i][z].checkPerson[
  15342. parseInt(checkL[z][q])
  15343. ] = [data.name]);
  15344. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15345. ? this.checkJson[i][z].checkCount[
  15346. parseInt(checkL[z][q])
  15347. ]++
  15348. : (this.checkJson[i][z].checkCount[
  15349. parseInt(checkL[z][q])
  15350. ] = 1);
  15351. }
  15352. } else {
  15353. if (
  15354. JSON.parse(data.content)[0].testJson.testJson[z]
  15355. .answer == checkL[z]
  15356. ) {
  15357. this.checkJson[i][z].rightPerson.push(data.name);
  15358. }
  15359. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15360. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15361. ? this.checkJson[i][z].checkPerson[
  15362. parseInt(checkL[z])
  15363. ].push(data.name)
  15364. : (this.checkJson[i][z].checkPerson[
  15365. parseInt(checkL[z])
  15366. ] = [data.name]);
  15367. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15368. ? this.checkJson[i][z].checkCount[
  15369. parseInt(checkL[z])
  15370. ]++
  15371. : (this.checkJson[i][z].checkCount[
  15372. parseInt(checkL[z])
  15373. ] = 1);
  15374. }
  15375. }
  15376. }
  15377. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15378. var checkL = JSON.parse(data.content);
  15379. for (var z = 0; z < checkL.length; z++) {
  15380. if (!this.checkJson[i][z]) {
  15381. this.checkJson[i].push({
  15382. checkCount: [],
  15383. checkPerson: [],
  15384. rightPerson: [],
  15385. });
  15386. }
  15387. this.checkJson[i][z].checkPerson.push(data.name);
  15388. if (
  15389. checkL[z].chooseSenList.toString() ==
  15390. checkL[z].rightAnswer.toString()
  15391. ) {
  15392. this.checkJson[i][z].rightPerson.push(data.name);
  15393. }
  15394. }
  15395. }
  15396. for (var k = 0; k < d.length; k++) {
  15397. //点赞
  15398. if (d[k].workId == b[j].id) {
  15399. likesCount++;
  15400. likeJson.push(d[k])
  15401. if (d[k].likesId == this.userid) {
  15402. isLikes = true;
  15403. }
  15404. }
  15405. }
  15406. for (var l = 0; l < e.length; l++) {
  15407. //评论
  15408. if (e[l].workId == b[j].id) {
  15409. if (e[l].comment != "") {
  15410. commentCount++;
  15411. commentJson.push({
  15412. commentText: e[l].comment,
  15413. commentTime: e[l].commentTime,
  15414. commentPeople: e[l].commentPeople,
  15415. userid: e[l].userid,
  15416. wid: e[l].id,
  15417. });
  15418. }
  15419. }
  15420. }
  15421. if (
  15422. (b[j].type == 1 ||
  15423. b[j].type == 4 ||
  15424. b[j].type == 5 ||
  15425. b[j].type == 6 ||
  15426. b[j].type == 12 ||
  15427. b[j].type == 7) &&
  15428. a[i].tool[0] != 15 &&
  15429. a[i].tool[0] != 4 &&
  15430. a[i].tool[0] != 45 &&
  15431. a[i].tool[0] != 50 &&
  15432. a[i].tool[0] != 32 &&
  15433. a[i].tool[0] != 57 &&
  15434. a[i].tool[0] != 52
  15435. ) {
  15436. if (
  15437. c.indexOf(
  15438. b[j].content
  15439. .split(".")
  15440. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15441. ) != -1 &&
  15442. a[i].tool[0] == 16 &&
  15443. b[j].atool != 50
  15444. ) {
  15445. let _works = {
  15446. userid: b[j].userid,
  15447. ateacher: b[j].ateacher,
  15448. wid: b[j].id,
  15449. works: b[j].content,
  15450. sName: b[j].name,
  15451. type: 1,
  15452. ttype:b[j].ttype,
  15453. time: b[j].time,
  15454. score: b[j].score,
  15455. img: b[j].img,
  15456. likesCount: likesCount,
  15457. commentCount: commentCount,
  15458. isLikes: isLikes,
  15459. commentJson: commentJson,
  15460. likeJson:likeJson
  15461. };
  15462. if (this.isGroup) {
  15463. let isGw = 1;
  15464. for (
  15465. var groupI = 0;
  15466. groupI < this.courseGroup.group.length;
  15467. groupI++
  15468. ) {
  15469. let gid = this.courseGroup.group[groupI].id;
  15470. if (
  15471. this.courseGroupStudentUid[gid].indexOf(
  15472. b[j].userid
  15473. ) != -1
  15474. ) {
  15475. isGw = 2;
  15476. this.courseGroup.group[groupI].works[i].push(_works);
  15477. break;
  15478. }
  15479. }
  15480. if (isGw == 1) {
  15481. _worksStudent[i].push(_works);
  15482. }
  15483. } else {
  15484. _worksStudent[i].push(_works);
  15485. }
  15486. _worksStudent2[i].push(_works);
  15487. this.isWorksS[i].push({
  15488. uid: b[j].userid,
  15489. sName: b[j].name,
  15490. });
  15491. } else if (
  15492. y.indexOf(
  15493. b[j].content
  15494. .split(".")
  15495. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15496. ) != -1 &&
  15497. a[i].tool[0] == 16 &&
  15498. b[j].atool != 50
  15499. ) {
  15500. let _works = {
  15501. userid: b[j].userid,
  15502. ateacher: b[j].ateacher,
  15503. wid: b[j].id,
  15504. works: b[j].content,
  15505. sName: b[j].name,
  15506. type: 3,
  15507. ttype:b[j].ttype,
  15508. time: b[j].time,
  15509. score: b[j].score,
  15510. img: b[j].img,
  15511. likesCount: likesCount,
  15512. commentCount: commentCount,
  15513. isLikes: isLikes,
  15514. commentJson: commentJson,
  15515. likeJson:likeJson
  15516. };
  15517. if (this.isGroup) {
  15518. let isGw = 1;
  15519. for (
  15520. var groupI = 0;
  15521. groupI < this.courseGroup.group.length;
  15522. groupI++
  15523. ) {
  15524. let gid = this.courseGroup.group[groupI].id;
  15525. if (
  15526. this.courseGroupStudentUid[gid].indexOf(
  15527. b[j].userid
  15528. ) != -1
  15529. ) {
  15530. isGw = 2;
  15531. this.courseGroup.group[groupI].works[i].push(_works);
  15532. break;
  15533. }
  15534. }
  15535. if (isGw == 1) {
  15536. _worksStudent[i].push(_works);
  15537. }
  15538. } else {
  15539. _worksStudent[i].push(_works);
  15540. }
  15541. _worksStudent2[i].push(_works);
  15542. this.isWorksS[i].push({
  15543. uid: b[j].userid,
  15544. sName: b[j].name,
  15545. });
  15546. } else if (b[j].type == 6 && b[j].atool != 50) {
  15547. let _works = {
  15548. userid: b[j].userid,
  15549. ateacher: b[j].ateacher,
  15550. wid: b[j].id,
  15551. works: b[j].content,
  15552. sName: b[j].name,
  15553. type: 4,
  15554. ttype:b[j].ttype,
  15555. time: b[j].time,
  15556. score: b[j].score,
  15557. img: b[j].img,
  15558. likesCount: likesCount,
  15559. commentCount: commentCount,
  15560. isLikes: isLikes,
  15561. commentJson: commentJson,
  15562. likeJson:likeJson
  15563. };
  15564. _worksStudent[i].push(_works);
  15565. _worksStudent2[i].push(_works);
  15566. this.isWorksS[i].push({
  15567. uid: b[j].userid,
  15568. sName: b[j].name,
  15569. });
  15570. } else if (b[j].type == 7 && b[j].atool != 50) {
  15571. let _work = {
  15572. userid: b[j].userid,
  15573. ateacher: b[j].ateacher,
  15574. wid: b[j].id,
  15575. works: b[j].content,
  15576. sName: b[j].name,
  15577. type: 5,
  15578. ttype:b[j].ttype,
  15579. time: b[j].time,
  15580. score: b[j].score,
  15581. img: b[j].img,
  15582. likesCount: likesCount,
  15583. commentCount: commentCount,
  15584. isLikes: isLikes,
  15585. commentJson: commentJson,
  15586. likeJson:likeJson
  15587. };
  15588. _worksStudent[i].push(_work);
  15589. _worksStudent2[i].push(_work);
  15590. this.isWorksS[i].push({
  15591. uid: b[j].userid,
  15592. sName: b[j].name,
  15593. });
  15594. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15595. let _works = {
  15596. userid: b[j].userid,
  15597. ateacher: b[j].ateacher,
  15598. wid: b[j].id,
  15599. works: b[j].content,
  15600. sName: b[j].name,
  15601. type: 12,
  15602. ttype:b[j].ttype,
  15603. time: b[j].time,
  15604. score: b[j].score,
  15605. img: b[j].img,
  15606. likesCount: likesCount,
  15607. commentCount: commentCount,
  15608. isLikes: isLikes,
  15609. commentJson: commentJson,
  15610. likeJson:likeJson
  15611. };
  15612. if (this.isGroup) {
  15613. let isGw = 1;
  15614. for (
  15615. var groupI = 0;
  15616. groupI < this.courseGroup.group.length;
  15617. groupI++
  15618. ) {
  15619. let gid = this.courseGroup.group[groupI].id;
  15620. if (
  15621. this.courseGroupStudentUid[gid].indexOf(
  15622. b[j].userid
  15623. ) != -1
  15624. ) {
  15625. isGw = 2;
  15626. this.courseGroup.group[groupI].works[i].push(_works);
  15627. break;
  15628. }
  15629. }
  15630. if (isGw == 1) {
  15631. _worksStudent[i].push(_works);
  15632. }
  15633. } else {
  15634. _worksStudent[i].push(_works);
  15635. }
  15636. _worksStudent2[i].push(_works);
  15637. this.isWorksS[i].push({
  15638. uid: b[j].userid,
  15639. sName: b[j].name,
  15640. });
  15641. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15642. let _works = {
  15643. userid: b[j].userid,
  15644. ateacher: b[j].ateacher,
  15645. wid: b[j].id,
  15646. works: b[j].content,
  15647. sName: b[j].name,
  15648. type: 0,
  15649. ttype:b[j].ttype,
  15650. time: b[j].time,
  15651. score: b[j].score,
  15652. img: b[j].img,
  15653. likesCount: likesCount,
  15654. commentCount: commentCount,
  15655. isLikes: isLikes,
  15656. commentJson: commentJson,
  15657. likeJson:likeJson
  15658. };
  15659. if (this.isGroup) {
  15660. let isGw = 1;
  15661. for (
  15662. var groupI = 0;
  15663. groupI < this.courseGroup.group.length;
  15664. groupI++
  15665. ) {
  15666. let gid = this.courseGroup.group[groupI].id;
  15667. if (
  15668. this.courseGroupStudentUid[gid].indexOf(
  15669. b[j].userid
  15670. ) != -1
  15671. ) {
  15672. isGw = 2;
  15673. this.courseGroup.group[groupI].works[i].push(_works);
  15674. break;
  15675. }
  15676. }
  15677. if (isGw == 1) {
  15678. _worksStudent[i].push(_works);
  15679. }
  15680. } else {
  15681. _worksStudent[i].push(_works);
  15682. }
  15683. _worksStudent2[i].push(_works);
  15684. this.isWorksS[i].push({
  15685. uid: b[j].userid,
  15686. sName: b[j].name,
  15687. });
  15688. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15689. let _works = {
  15690. userid: b[j].userid,
  15691. ateacher: b[j].ateacher,
  15692. wid: b[j].id,
  15693. works: b[j].content,
  15694. sName: b[j].name,
  15695. type: 0,
  15696. ttype:b[j].ttype,
  15697. time: b[j].time,
  15698. score: b[j].score,
  15699. img: b[j].img,
  15700. likesCount: likesCount,
  15701. commentCount: commentCount,
  15702. isLikes: isLikes,
  15703. commentJson: commentJson,
  15704. likeJson:likeJson
  15705. };
  15706. if (this.isGroup) {
  15707. let isGw = 1;
  15708. for (
  15709. var groupI = 0;
  15710. groupI < this.courseGroup.group.length;
  15711. groupI++
  15712. ) {
  15713. let gid = this.courseGroup.group[groupI].id;
  15714. if (
  15715. this.courseGroupStudentUid[gid].indexOf(
  15716. b[j].userid
  15717. ) != -1
  15718. ) {
  15719. isGw = 2;
  15720. this.courseGroup.group[groupI].works[i].push(_works);
  15721. break;
  15722. }
  15723. }
  15724. if (isGw == 1) {
  15725. _worksStudent[i].push(_works);
  15726. }
  15727. } else {
  15728. _worksStudent[i].push(_works);
  15729. }
  15730. _worksStudent2[i].push(_works);
  15731. this.isWorksS[i].push({
  15732. uid: b[j].userid,
  15733. sName: b[j].name,
  15734. });
  15735. }
  15736. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15737. let _works = {
  15738. userid: b[j].userid,
  15739. ateacher: b[j].ateacher,
  15740. wid: b[j].id,
  15741. works: b[j].content,
  15742. sName: b[j].name,
  15743. type: 2,
  15744. ttype:b[j].ttype,
  15745. time: b[j].time,
  15746. score: b[j].score,
  15747. img: b[j].img,
  15748. likesCount: likesCount,
  15749. commentCount: commentCount,
  15750. isLikes: isLikes,
  15751. commentJson: commentJson,
  15752. likeJson:likeJson
  15753. };
  15754. if (this.isGroup) {
  15755. let isGw = 1;
  15756. for (
  15757. var groupI = 0;
  15758. groupI < this.courseGroup.group.length;
  15759. groupI++
  15760. ) {
  15761. let gid = this.courseGroup.group[groupI].id;
  15762. if (
  15763. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15764. -1
  15765. ) {
  15766. isGw = 2;
  15767. this.courseGroup.group[groupI].works[i].push(_works);
  15768. break;
  15769. }
  15770. }
  15771. if (isGw == 1) {
  15772. _worksStudent[i].push(_works);
  15773. }
  15774. } else {
  15775. _worksStudent[i].push(_works);
  15776. }
  15777. _worksStudent2[i].push(_works);
  15778. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15779. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15780. let _works = {
  15781. userid: b[j].userid,
  15782. ateacher: b[j].ateacher,
  15783. wid: b[j].id,
  15784. works: b[j].content,
  15785. sName: b[j].name,
  15786. type: 20,
  15787. ttype:b[j].ttype,
  15788. time: b[j].time,
  15789. score: b[j].score,
  15790. img: b[j].img,
  15791. likesCount: likesCount,
  15792. commentCount: commentCount,
  15793. isLikes: isLikes,
  15794. commentJson: commentJson,
  15795. likeJson:likeJson
  15796. };
  15797. if (this.isGroup) {
  15798. let isGw = 1;
  15799. for (
  15800. var groupI = 0;
  15801. groupI < this.courseGroup.group.length;
  15802. groupI++
  15803. ) {
  15804. let gid = this.courseGroup.group[groupI].id;
  15805. if (
  15806. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15807. -1
  15808. ) {
  15809. isGw = 2;
  15810. this.courseGroup.group[groupI].works[i].push(_works);
  15811. break;
  15812. }
  15813. }
  15814. if (isGw == 1) {
  15815. _worksStudent[i].push(_works);
  15816. }
  15817. } else {
  15818. _worksStudent[i].push(_works);
  15819. }
  15820. _worksStudent2[i].push(_works);
  15821. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15822. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15823. //问卷
  15824. let _work = {
  15825. userid: b[j].userid,
  15826. ateacher: b[j].ateacher,
  15827. wid: b[j].id,
  15828. works: b[j].content,
  15829. sName: b[j].name,
  15830. type: 2,
  15831. ttype:b[j].ttype,
  15832. time: b[j].time,
  15833. score: b[j].score,
  15834. img: b[j].img,
  15835. likesCount: likesCount,
  15836. commentCount: commentCount,
  15837. isLikes: isLikes,
  15838. commentJson: commentJson,
  15839. likeJson:likeJson
  15840. };
  15841. _worksStudent[i].push(_work);
  15842. _worksStudent2[i].push(_work);
  15843. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15844. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15845. //选择题
  15846. let _work = {
  15847. userid: b[j].userid,
  15848. ateacher: b[j].ateacher,
  15849. wid: b[j].id,
  15850. works: b[j].content,
  15851. sName: b[j].name,
  15852. type: 8,
  15853. ttype:b[j].ttype,
  15854. time: b[j].time,
  15855. score: b[j].score,
  15856. img: b[j].img,
  15857. likesCount: likesCount,
  15858. commentCount: commentCount,
  15859. isLikes: isLikes,
  15860. commentJson: commentJson,
  15861. likeJson:likeJson
  15862. };
  15863. _worksStudent[i].push(_work);
  15864. _worksStudent2[i].push(_work);
  15865. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15866. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15867. //选择题
  15868. let _work = {
  15869. userid: b[j].userid,
  15870. ateacher: b[j].ateacher,
  15871. wid: b[j].id,
  15872. works: b[j].content,
  15873. sName: b[j].name,
  15874. type: 9,
  15875. ttype:b[j].ttype,
  15876. time: b[j].time,
  15877. score: b[j].score,
  15878. img: b[j].img,
  15879. likesCount: likesCount,
  15880. commentCount: commentCount,
  15881. isLikes: isLikes,
  15882. commentJson: commentJson,
  15883. likeJson:likeJson
  15884. };
  15885. _worksStudent[i].push(_work);
  15886. _worksStudent2[i].push(_work);
  15887. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15888. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15889. //选择题
  15890. let _work = {
  15891. userid: b[j].userid,
  15892. ateacher: b[j].ateacher,
  15893. wid: b[j].id,
  15894. works: b[j].content,
  15895. sName: b[j].name,
  15896. type: 10,
  15897. ttype:b[j].ttype,
  15898. time: b[j].time,
  15899. score: b[j].score,
  15900. img: b[j].img,
  15901. likesCount: likesCount,
  15902. commentCount: commentCount,
  15903. isLikes: isLikes,
  15904. commentJson: commentJson,
  15905. likeJson:likeJson
  15906. };
  15907. _worksStudent[i].push(_work);
  15908. _worksStudent2[i].push(_work);
  15909. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15910. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15911. //选择题
  15912. let _work = {
  15913. userid: b[j].userid,
  15914. ateacher: b[j].ateacher,
  15915. wid: b[j].id,
  15916. works: b[j].content,
  15917. sName: b[j].name,
  15918. type: 13,
  15919. ttype:b[j].ttype,
  15920. time: b[j].time,
  15921. score: b[j].score,
  15922. img: b[j].img,
  15923. likesCount: likesCount,
  15924. commentCount: commentCount,
  15925. isLikes: isLikes,
  15926. commentJson: commentJson,
  15927. likeJson:likeJson
  15928. };
  15929. _worksStudent[i].push(_work);
  15930. _worksStudent2[i].push(_work);
  15931. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15932. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15933. //选择题
  15934. let _work = {
  15935. userid: b[j].userid,
  15936. ateacher: b[j].ateacher,
  15937. wid: b[j].id,
  15938. works: b[j].content,
  15939. sName: b[j].name,
  15940. type: 16,
  15941. ttype:b[j].ttype,
  15942. time: b[j].time,
  15943. score: b[j].score,
  15944. img: b[j].img,
  15945. likesCount: likesCount,
  15946. commentCount: commentCount,
  15947. isLikes: isLikes,
  15948. commentJson: commentJson,
  15949. aiCode: b[j].aiCode,
  15950. teacherCode: b[j].teacherCode,
  15951. likeJson:likeJson
  15952. };
  15953. _worksStudent[i].push(_work);
  15954. _worksStudent2[i].push(_work);
  15955. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15956. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15957. //英语口语
  15958. let _work = {
  15959. userid: b[j].userid,
  15960. ateacher: b[j].ateacher,
  15961. wid: b[j].id,
  15962. works: b[j].content,
  15963. sName: b[j].name,
  15964. type: 17,
  15965. ttype:b[j].ttype,
  15966. time: b[j].time,
  15967. score: b[j].score,
  15968. img: b[j].img,
  15969. likesCount: likesCount,
  15970. commentCount: commentCount,
  15971. isLikes: isLikes,
  15972. commentJson: commentJson,
  15973. likeJson:likeJson
  15974. };
  15975. _worksStudent[i].push(_work);
  15976. _worksStudent2[i].push(_work);
  15977. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15978. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15979. //交互视频
  15980. let _work = {
  15981. userid: b[j].userid,
  15982. ateacher: b[j].ateacher,
  15983. wid: b[j].id,
  15984. works: b[j].content,
  15985. sName: b[j].name,
  15986. type: 14,
  15987. ttype:b[j].ttype,
  15988. time: b[j].time,
  15989. score: b[j].score,
  15990. img: b[j].img,
  15991. likesCount: likesCount,
  15992. commentCount: commentCount,
  15993. isLikes: isLikes,
  15994. commentJson: commentJson,
  15995. likeJson:likeJson
  15996. };
  15997. _worksStudent[i].push(_work);
  15998. _worksStudent2[i].push(_work);
  15999. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16000. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16001. let _gindex = JSON.parse(b[j].content);
  16002. if (
  16003. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16004. b[j].userid
  16005. ) != -1
  16006. ) {
  16007. let _work = {
  16008. userid: b[j].userid,
  16009. ateacher: b[j].ateacher,
  16010. wid: b[j].id,
  16011. works: _gindex.url,
  16012. sName: b[j].name,
  16013. type: _gindex.type,
  16014. ttype:b[j].ttype,
  16015. time: b[j].time,
  16016. score: b[j].score,
  16017. img: b[j].img,
  16018. likesCount: likesCount,
  16019. commentCount: commentCount,
  16020. isLikes: isLikes,
  16021. commentJson: commentJson,
  16022. likeJson:likeJson
  16023. };
  16024. _worksStudent[i][_gindex.groupIndex].push(_work);
  16025. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16026. }
  16027. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16028. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16029. let _work = {
  16030. userid: b[j].userid,
  16031. ateacher: b[j].ateacher,
  16032. wid: b[j].id,
  16033. works: b[j].content,
  16034. sName: b[j].name ? b[j].name : b[j].userid,
  16035. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16036. ttype:b[j].ttype,
  16037. time: b[j].time,
  16038. score: b[j].score,
  16039. img: b[j].img,
  16040. likesCount: likesCount,
  16041. commentCount: commentCount,
  16042. isLikes: isLikes,
  16043. commentJson: commentJson,
  16044. likeJson:likeJson
  16045. };
  16046. _worksStudent[i].push(_work);
  16047. _worksStudent2[i].push(_work);
  16048. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16049. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16050. let _work = {
  16051. userid: b[j].userid,
  16052. ateacher: b[j].ateacher,
  16053. wid: b[j].id,
  16054. works: b[j].content,
  16055. sName: b[j].name ? b[j].name : b[j].userid,
  16056. type: 12,
  16057. ttype:b[j].ttype,
  16058. time: b[j].time,
  16059. score: b[j].score,
  16060. img: b[j].img,
  16061. likesCount: likesCount,
  16062. commentCount: commentCount,
  16063. isLikes: isLikes,
  16064. commentJson: commentJson,
  16065. likeJson:likeJson
  16066. };
  16067. _worksStudent[i].push(_work);
  16068. _worksStudent2[i].push(_work);
  16069. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16070. } else if (
  16071. a[i].tool[0] == 57 &&
  16072. b[j].atool == 57 &&
  16073. b[j].type == 12
  16074. ) {
  16075. let _work = {
  16076. userid: b[j].userid,
  16077. ateacher: b[j].ateacher,
  16078. wid: b[j].id,
  16079. works: b[j].content,
  16080. sName: b[j].name ? b[j].name : b[j].userid,
  16081. type: 12,
  16082. ttype:b[j].ttype,
  16083. time: b[j].time,
  16084. score: b[j].score,
  16085. img: b[j].img,
  16086. likesCount: likesCount,
  16087. commentCount: commentCount,
  16088. isLikes: isLikes,
  16089. commentJson: commentJson,
  16090. likeJson:likeJson
  16091. };
  16092. _worksStudent[i].push(_work);
  16093. _worksStudent2[i].push(_work);
  16094. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16095. } else if (
  16096. a[i].tool[0] == 57 &&
  16097. b[j].atool == 57 &&
  16098. b[j].type == 15
  16099. ) {
  16100. let _work = {
  16101. userid: b[j].userid,
  16102. ateacher: b[j].ateacher,
  16103. wid: b[j].id,
  16104. works: b[j].content,
  16105. sName: b[j].name ? b[j].name : b[j].userid,
  16106. type: 15,
  16107. ttype:b[j].ttype,
  16108. time: b[j].time,
  16109. score: b[j].score,
  16110. img: b[j].img,
  16111. likesCount: likesCount,
  16112. commentCount: commentCount,
  16113. isLikes: isLikes,
  16114. commentJson: commentJson,
  16115. likeJson:likeJson
  16116. };
  16117. _worksStudent[i].push(_work);
  16118. _worksStudent2[i].push(_work);
  16119. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16120. }
  16121. }
  16122. }
  16123. if (_worksStudent[i] && _worksStudent[i].length) {
  16124. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16125. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16126. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16127. var scoreA = parseFloat(jscoreA);
  16128. var scoreB = parseFloat(jscoreB);
  16129. if (scoreA == scoreB) {
  16130. return b.likesCount - a.likesCount;
  16131. }
  16132. return scoreB - scoreA;
  16133. });
  16134. if (this.isGroup) {
  16135. for (
  16136. var groupI = 0;
  16137. groupI < this.courseGroup.group.length;
  16138. groupI++
  16139. ) {
  16140. this.courseGroup.group[groupI].works[i] =
  16141. this.courseGroup.group[groupI].works[i].sort(function (
  16142. a,
  16143. b
  16144. ) {
  16145. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16146. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16147. var scoreA = parseFloat(jscoreA);
  16148. var scoreB = parseFloat(jscoreB);
  16149. if (scoreA == scoreB) {
  16150. return b.likesCount - a.likesCount;
  16151. }
  16152. return scoreB - scoreA;
  16153. });
  16154. }
  16155. }
  16156. }
  16157. }
  16158. this.timeWorkList = _worksStudent2;
  16159. for (var i = 0; i < a.length; i++) {
  16160. for (var j = 0; j < b.length; j++) {
  16161. var data = b[j];
  16162. if (i == b[j].tool) {
  16163. if (data.type == 2 || data.type == 8) {
  16164. for (var z = 0; z < this.checkJson[i].length; z++) {
  16165. this.checkJson[i][z].checkPerent = [];
  16166. this.checkJson[i][z].right = Math.round(
  16167. (this.checkJson[i][z].rightPerson.length /
  16168. parseInt(_worksStudent[i].length)) *
  16169. 100
  16170. );
  16171. let aaaa = this.checkJson[i][z];
  16172. for (
  16173. var k = 0;
  16174. k < this.checkJson[i][z].checkCount.length;
  16175. k++
  16176. ) {
  16177. this.checkJson[i][z].checkPerent.push(
  16178. Math.round(
  16179. (this.checkJson[i][z].checkCount[k] /
  16180. parseInt(_worksStudent[i].length)) *
  16181. 100
  16182. )
  16183. );
  16184. }
  16185. }
  16186. } else if (data.type == 9) {
  16187. for (var z = 0; z < this.checkJson[i].length; z++) {
  16188. this.checkJson[i][z].checkPerent = [];
  16189. this.checkJson[i][z].right = Math.round(
  16190. (this.checkJson[i][z].rightPerson.length /
  16191. this.checkJson[i][z].checkPerson.length) *
  16192. 100
  16193. );
  16194. }
  16195. }
  16196. }
  16197. }
  16198. }
  16199. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16200. this.joinGroup(gindex);
  16201. }
  16202. this.worksStudent = _worksStudent;
  16203. this.selectWorksStudent();
  16204. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16205. this.$nextTick(()=>{
  16206. setTimeout(()=>{
  16207. setTimeout(()=>{
  16208. this.panToolHeight('tool-'+ci);
  16209. }, 500)
  16210. }, 0)
  16211. })
  16212. }
  16213. })
  16214. .catch((err) => {
  16215. console.error(err);
  16216. });
  16217. },
  16218. pngToWhiteBg(file) {
  16219. const _file = file;
  16220. let read = new FileReader();
  16221. read.readAsDataURL(file); // 文件转base64
  16222. return new Promise((resolve, reject) => {
  16223. read.onload = (e) => {
  16224. let img = new Image();
  16225. img.src = e.target.result;
  16226. img.onload = async () => {
  16227. // 生成canvas
  16228. let canvas = document.createElement("canvas");
  16229. let context = canvas.getContext("2d");
  16230. // 绘制图片到canvas上
  16231. canvas.width = img.width;
  16232. canvas.height = img.height;
  16233. // 在canvas绘制前填充白色背景
  16234. context.fillStyle = "#fff";
  16235. context.fillRect(0, 0, canvas.width, canvas.height);
  16236. context.drawImage(img, 0, 0);
  16237. let base64 = canvas.toDataURL(file["type"], 1);
  16238. let newFile = this.dataUrlToFile(base64, _file);
  16239. resolve(newFile);
  16240. };
  16241. };
  16242. });
  16243. },
  16244. dataUrlToFile(dataurl, file) {
  16245. let arr = dataurl.split(","),
  16246. mime = arr[0].match(/:(.*?);/)[1],
  16247. bstr = atob(arr[1]),
  16248. n = bstr.length,
  16249. u8arr = new Uint8Array(n);
  16250. while (n--) {
  16251. u8arr[n] = bstr.charCodeAt(n);
  16252. }
  16253. // return new Blob([u8arr], { type: mime });
  16254. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16255. type: mime,
  16256. });
  16257. },
  16258. async beforeUpload1(event, type, i) {
  16259. // this.$message.success('进入上传')
  16260. var file = "";
  16261. if (type == 5) {
  16262. file = event;
  16263. } else {
  16264. file = event.target.files[0];
  16265. }
  16266. var credentials = {
  16267. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16268. secretAccessKey: "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",
  16269. }; //秘钥形式的登录上传
  16270. window.AWS.config.update(credentials);
  16271. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16272. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16273. var _this = this;
  16274. _this.progress = 0;
  16275. _this.proVisible = true;
  16276. _this.isFinishSize = 0;
  16277. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16278. var b = [
  16279. "DOC",
  16280. "DOCX",
  16281. "DOCM",
  16282. "DOTM",
  16283. "DOTX",
  16284. "PPTX",
  16285. "PPSX",
  16286. "PPT",
  16287. "PPS",
  16288. "PPTM",
  16289. "POTM",
  16290. "PPAM",
  16291. "POTX",
  16292. "PPSM",
  16293. ];
  16294. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16295. var photoA = [
  16296. "BMP",
  16297. "GIF",
  16298. "PNG",
  16299. "JPEG",
  16300. "JPEG",
  16301. "JPG",
  16302. "TIF",
  16303. "PCX",
  16304. "TGA",
  16305. "EXIF",
  16306. "FPX",
  16307. "SVG",
  16308. "APNG",
  16309. ];
  16310. // if (
  16311. // b.indexOf(
  16312. // file.name
  16313. // .split(".")
  16314. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16315. // ) != -1
  16316. // ) {
  16317. // if (file.size / 1024 / 1024 > 10) {
  16318. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16319. // return;
  16320. // }
  16321. // } else if (
  16322. // excelA.indexOf(
  16323. // file.name
  16324. // .split(".")
  16325. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16326. // ) != "-1"
  16327. // ) {
  16328. // if (file.size / 1024 / 1024 > 5) {
  16329. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16330. // return;
  16331. // }
  16332. // }
  16333. if (
  16334. photoA.indexOf(
  16335. file.name
  16336. .split(".")
  16337. [file.name.split(".").length - 1].toLocaleUpperCase()
  16338. ) != -1 &&
  16339. type != 4
  16340. ) {
  16341. // const blob = await imageConversion.compress(file, 0.8)
  16342. file = await this.pngToWhiteBg(file);
  16343. const blob = await imageConversion.compressAccurately(file, 256);
  16344. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16345. file = new File([blob], file.name, { type: file.type });
  16346. }
  16347. if (file) {
  16348. var params = {
  16349. Key:
  16350. file.name.split(".")[0] +
  16351. new Date().getTime() +
  16352. "." +
  16353. file.name.split(".")[file.name.split(".").length - 1],
  16354. ContentType: file.type,
  16355. Body: file,
  16356. "Access-Control-Allow-Credentials": "*",
  16357. ACL: "public-read",
  16358. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16359. var options = {
  16360. // partSize: 2048 * 1024 * 1024,
  16361. partSize: 1024 * 1024 * 1024,
  16362. queueSize: 2,
  16363. leavePartsOnError: true,
  16364. };
  16365. bucket
  16366. .upload(params, options)
  16367. .on("httpUploadProgress", function (evt) {
  16368. //这里可以写进度条
  16369. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16370. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16371. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16372. })
  16373. .send(function (err, data) {
  16374. _this.progress = 100;
  16375. _this.isFinishSize = _this.isAllSize;
  16376. setTimeout(() => {
  16377. _this.proVisible = false;
  16378. }, 1000);
  16379. if (err) {
  16380. var a = _this.$refs.upload1.uploadFiles;
  16381. a.splice(a.length - 1, a.length);
  16382. _this.$message.error("上传失败");
  16383. } else {
  16384. // _this.$message.success('上传成功')
  16385. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16386. var c = [
  16387. "AVI",
  16388. "NAVI",
  16389. "MPEG",
  16390. "ASF",
  16391. "MOV",
  16392. "WMV",
  16393. "3GP",
  16394. "RM",
  16395. "RMVB",
  16396. "FLV",
  16397. "F4V",
  16398. "H.264",
  16399. "H.265",
  16400. "REAL VIDEO",
  16401. "MKV",
  16402. "WebM",
  16403. "HDDVD",
  16404. "MP4",
  16405. "MPG",
  16406. "M4V",
  16407. "MGV",
  16408. "OGV",
  16409. "QTM",
  16410. "STR",
  16411. "AMC",
  16412. "DVX",
  16413. "EVO",
  16414. "DAT",
  16415. "OGG",
  16416. "OGM",
  16417. ];
  16418. if (type == 1) {
  16419. _this.studyJuri[0].cover.push({
  16420. name: file.name,
  16421. url: data.Location,
  16422. uid: file.uid,
  16423. });
  16424. if (
  16425. c.indexOf(
  16426. _this.studyJuri[0].cover[0].url
  16427. .split(".")
  16428. [
  16429. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16430. ].toLocaleUpperCase()
  16431. ) != -1
  16432. ) {
  16433. _this.fileType = 2;
  16434. } else if (
  16435. b.indexOf(
  16436. _this.studyJuri[0].cover[0].url
  16437. .split(".")
  16438. [
  16439. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16440. ].toLocaleUpperCase()
  16441. ) != -1
  16442. ) {
  16443. _this.fileType = 1;
  16444. } else if (
  16445. photoA.indexOf(
  16446. _this.studyJuri[0].cover[0].url
  16447. .split(".")
  16448. [
  16449. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16450. ].toLocaleUpperCase()
  16451. ) != -1
  16452. ) {
  16453. _this.fileType = 0;
  16454. } else {
  16455. _this.fileType = 3;
  16456. }
  16457. _this.imgChange(null, null, type);
  16458. } else if (type == 2) {
  16459. _this.upToolImg = data.Location;
  16460. _this.imgChange(null, null, type);
  16461. _this.addCourseWorks(i);
  16462. } else if (type == 4) {
  16463. _this.addPz("3", data.Location);
  16464. } else if (type == 5) {
  16465. _this.addImgDrawImG(data.Location);
  16466. } else if (type == 6) {
  16467. var _ftype = 1;
  16468. if (
  16469. c.indexOf(
  16470. data.Location.split(".")[
  16471. data.Location.split(".").length - 1
  16472. ].toLocaleUpperCase()
  16473. ) != -1
  16474. ) {
  16475. _ftype = 5;
  16476. } else if (
  16477. b.indexOf(
  16478. data.Location.split(".")[
  16479. data.Location.split(".").length - 1
  16480. ].toLocaleUpperCase()
  16481. ) != -1
  16482. ) {
  16483. _ftype = 4;
  16484. } else {
  16485. _ftype = 1;
  16486. }
  16487. _this.plworkFile.push({
  16488. name: file.name,
  16489. url: data.Location,
  16490. uid: file.uid,
  16491. fileType: _ftype,
  16492. username:
  16493. _this.plworkFile.length > 10
  16494. ? _this.plworkFile.length + 1
  16495. : "0" + (_this.plworkFile.length + 1),
  16496. });
  16497. } else if (type == 7) {
  16498. _this.addCourseWorksGong(i, data.Location, 32);
  16499. } else if (type == 8) {
  16500. _this.addCourseWorksGong(i, data.Location, 57);
  16501. }
  16502. _this.imgChange(null, null, type);
  16503. console.log(data.Location);
  16504. // _this.$message.success('上传成功'+data.Location)
  16505. }
  16506. });
  16507. }
  16508. },
  16509. async beforeUpload3(event, type, i) {
  16510. // this.$message.success('进入上传')
  16511. let file = "";
  16512. let cfindex2 = 0;
  16513. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16514. file = event.target.files[cfindex];
  16515. var credentials = {
  16516. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16517. secretAccessKey: "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",
  16518. }; //秘钥形式的登录上传
  16519. window.AWS.config.update(credentials);
  16520. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16521. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16522. var _this = this;
  16523. // _this.progress = 0;
  16524. _this.proVisible2 = true;
  16525. var b = [
  16526. "DOC",
  16527. "DOCX",
  16528. "DOCM",
  16529. "DOTM",
  16530. "DOTX",
  16531. "PPTX",
  16532. "PPSX",
  16533. "PPT",
  16534. "PPS",
  16535. "PPTM",
  16536. "POTM",
  16537. "PPAM",
  16538. "POTX",
  16539. "PPSM",
  16540. ];
  16541. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16542. var photoA = [
  16543. "BMP",
  16544. "GIF",
  16545. "PNG",
  16546. "JPEG",
  16547. "JPG",
  16548. "TIF",
  16549. "PCX",
  16550. "TGA",
  16551. "EXIF",
  16552. "FPX",
  16553. "SVG",
  16554. "APNG",
  16555. ];
  16556. if (
  16557. photoA.indexOf(
  16558. file.name
  16559. .split(".")
  16560. [file.name.split(".").length - 1].toLocaleUpperCase()
  16561. ) != -1 &&
  16562. type != 4
  16563. ) {
  16564. // const blob = await imageConversion.compress(file, 0.8)
  16565. file = await this.pngToWhiteBg(file);
  16566. const blob = await imageConversion.compressAccurately(file, 256);
  16567. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16568. file = new File([blob], file.name, { type: file.type });
  16569. }
  16570. if (file) {
  16571. var params = {
  16572. Key:
  16573. file.name.split(".")[0] +
  16574. new Date().getTime() +
  16575. "." +
  16576. file.name.split(".")[file.name.split(".").length - 1],
  16577. ContentType: file.type,
  16578. Body: file,
  16579. "Access-Control-Allow-Credentials": "*",
  16580. ACL: "public-read",
  16581. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16582. var options = {
  16583. // partSize: 2048 * 1024 * 1024,
  16584. partSize: 1024 * 1024 * 1024,
  16585. queueSize: 2,
  16586. leavePartsOnError: true,
  16587. };
  16588. bucket
  16589. .upload(params, options)
  16590. .on("httpUploadProgress", function (evt) {
  16591. //这里可以写进度条
  16592. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16593. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16594. })
  16595. .send(function (err, data) {
  16596. // _this.progress = 100;
  16597. cfindex2++;
  16598. setTimeout(() => {
  16599. if (
  16600. cfindex2 == event.target.files.length - 1 ||
  16601. cfindex2 > event.target.files.length - 1
  16602. ) {
  16603. _this.proVisible2 = false;
  16604. }
  16605. }, 1000);
  16606. if (err) {
  16607. var a = _this.$refs.upload1.uploadFiles;
  16608. a.splice(a.length - 1, a.length);
  16609. _this.$message.error("上传失败");
  16610. } else {
  16611. // _this.$message.success('上传成功')
  16612. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16613. var c = [
  16614. "AVI",
  16615. "NAVI",
  16616. "MPEG",
  16617. "ASF",
  16618. "MOV",
  16619. "WMV",
  16620. "3GP",
  16621. "RM",
  16622. "RMVB",
  16623. "FLV",
  16624. "F4V",
  16625. "H.264",
  16626. "H.265",
  16627. "REAL VIDEO",
  16628. "MKV",
  16629. "WebM",
  16630. "HDDVD",
  16631. "MP4",
  16632. "MPG",
  16633. "M4V",
  16634. "MGV",
  16635. "OGV",
  16636. "QTM",
  16637. "STR",
  16638. "AMC",
  16639. "DVX",
  16640. "EVO",
  16641. "DAT",
  16642. "OGG",
  16643. "OGM",
  16644. ];
  16645. if (type == 1) {
  16646. _this.studyJuri[0].cover.push({
  16647. name: file.name,
  16648. url: data.Location,
  16649. uid: file.uid,
  16650. });
  16651. if (
  16652. c.indexOf(
  16653. _this.studyJuri[0].cover[0].url
  16654. .split(".")
  16655. [
  16656. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16657. ].toLocaleUpperCase()
  16658. ) != -1
  16659. ) {
  16660. _this.fileType = 2;
  16661. } else if (
  16662. b.indexOf(
  16663. _this.studyJuri[0].cover[0].url
  16664. .split(".")
  16665. [
  16666. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16667. ].toLocaleUpperCase()
  16668. ) != -1
  16669. ) {
  16670. _this.fileType = 1;
  16671. } else {
  16672. _this.fileType = 0;
  16673. }
  16674. _this.imgChange(null, null, type);
  16675. } else if (type == 2) {
  16676. _this.upToolImg = data.Location;
  16677. _this.imgChange(null, null, type);
  16678. _this.addCourseWorks(i);
  16679. } else if (type == 4) {
  16680. _this.addPz("3", data.Location);
  16681. } else if (type == 5) {
  16682. _this.addImgDrawImG(data.Location);
  16683. } else if (type == 6) {
  16684. var _ftype = 1;
  16685. if (
  16686. c.indexOf(
  16687. data.Location.split(".")[
  16688. data.Location.split(".").length - 1
  16689. ].toLocaleUpperCase()
  16690. ) != -1
  16691. ) {
  16692. _ftype = 5;
  16693. } else if (
  16694. b.indexOf(
  16695. data.Location.split(".")[
  16696. data.Location.split(".").length - 1
  16697. ].toLocaleUpperCase()
  16698. ) != -1
  16699. ) {
  16700. _ftype = 4;
  16701. } else {
  16702. _ftype = 1;
  16703. }
  16704. _this.plworkFile.push({
  16705. name: file.name,
  16706. url: data.Location,
  16707. uid: file.uid,
  16708. fileType: _ftype,
  16709. username:
  16710. _this.plworkFile.length + 1 > 9
  16711. ? _this.plworkFile.length + 1
  16712. : "0" + (_this.plworkFile.length + 1),
  16713. });
  16714. }
  16715. _this.imgChange(null, null, type);
  16716. console.log(data.Location);
  16717. // _this.$message.success('上传成功'+data.Location)
  16718. }
  16719. });
  16720. }
  16721. }
  16722. },
  16723. beforeUpload2(event, type) {
  16724. var file = event.target.files[0];
  16725. var credentials = {
  16726. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16727. secretAccessKey: "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",
  16728. }; //秘钥形式的登录上传
  16729. window.AWS.config.update(credentials);
  16730. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16731. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16732. var _this = this;
  16733. _this.progress = 0;
  16734. _this.proVisible = true;
  16735. if (file) {
  16736. var params = {
  16737. Key:
  16738. file.name.split(".")[0] +
  16739. new Date().getTime() +
  16740. "." +
  16741. file.name.split(".")[file.name.split(".").length - 1],
  16742. ContentType: file.type,
  16743. Body: file,
  16744. "Access-Control-Allow-Credentials": "*",
  16745. ACL: "public-read",
  16746. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16747. var options = {
  16748. partSize: 2048 * 1024 * 1024,
  16749. queueSize: 2,
  16750. leavePartsOnError: true,
  16751. };
  16752. bucket
  16753. .upload(params, options)
  16754. .on("httpUploadProgress", function (evt) {
  16755. //这里可以写进度条
  16756. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16757. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16758. })
  16759. .send(function (err, data) {
  16760. _this.progress = 100;
  16761. setTimeout(() => {
  16762. _this.proVisible = false;
  16763. }, 1000);
  16764. if (err) {
  16765. var a = _this.$refs.upload1.uploadFiles;
  16766. a.splice(a.length - 1, a.length);
  16767. _this.$message.error("上传失败");
  16768. } else {
  16769. if (type == 2) {
  16770. _this.studyJuri[0].upVedio.push({
  16771. name: file.name,
  16772. url: data.Location,
  16773. uid: file.uid,
  16774. });
  16775. _this.imgChange(null, null, type);
  16776. } else if (type == 3) {
  16777. _this.studyJuri[0].upFile.push({
  16778. name: file.name,
  16779. url: data.Location,
  16780. uid: file.uid,
  16781. });
  16782. _this.imgChange(null, null, type);
  16783. }
  16784. console.log(data.Location);
  16785. }
  16786. });
  16787. }
  16788. },
  16789. allScrell() {
  16790. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16791. },
  16792. nextOrpreSteps(t) {
  16793. if (this.IsFollow && this.tType == 2) {
  16794. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16795. return;
  16796. }
  16797. var b = this.chapInfoList.length - 1;
  16798. if (t == 0) {
  16799. if (this.courseType == 0) {
  16800. if (this.taskCount == 0) {
  16801. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16802. if (this.IsLookOpen) {
  16803. if (
  16804. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16805. ) {
  16806. if (
  16807. this.courseDetail.userid != this.userid &&
  16808. (!this.courseDetail.course_teacher ||
  16809. (this.courseDetail.course_teacher &&
  16810. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16811. ) {
  16812. this.$message.error("任务未解锁");
  16813. } else {
  16814. this.$message.error("上一任务未解锁");
  16815. }
  16816. return;
  16817. }
  16818. }
  16819. this.navList[this.courseType].isOpen = false;
  16820. this.courseType = b;
  16821. this.taskCount =
  16822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16823. .length - 1;
  16824. this.navList[this.courseType].isOpen = true;
  16825. } else {
  16826. this.taskCount--;
  16827. }
  16828. } else {
  16829. if (this.taskCount == 0) {
  16830. this.navList[this.courseType].isOpen = false;
  16831. this.courseType--;
  16832. this.taskCount =
  16833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16834. .length - 1;
  16835. this.navList[this.courseType].isOpen = true;
  16836. } else {
  16837. this.taskCount--;
  16838. }
  16839. }
  16840. } else {
  16841. if (this.courseType == b) {
  16842. if (
  16843. this.taskCount ==
  16844. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16845. 1
  16846. ) {
  16847. this.navList[this.courseType].isOpen = false;
  16848. this.courseType = 0;
  16849. this.taskCount = 0;
  16850. this.navList[this.courseType].isOpen = true;
  16851. } else {
  16852. var bbb = parseInt(this.taskCount) + 1;
  16853. if (
  16854. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16855. .isLook &&
  16856. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16857. (this.courseDetail.course_teacher &&
  16858. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16859. this.IsLookOpen
  16860. ) {
  16861. this.$message.error("任务未解锁");
  16862. return;
  16863. }
  16864. this.taskCount++;
  16865. if (this.IsLookOpen) {
  16866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16867. this.taskCount
  16868. ].isLook = true;
  16869. this.addCourseState(3);
  16870. }
  16871. }
  16872. } else {
  16873. if (
  16874. this.taskCount ==
  16875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16876. 1
  16877. ) {
  16878. var bbb = parseInt(this.courseType) + 1;
  16879. if (
  16880. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16881. this.courseDetail.userid != this.userid &&
  16882. (!this.courseDetail.course_teacher ||
  16883. (this.courseDetail.course_teacher &&
  16884. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16885. this.IsLookOpen
  16886. ) {
  16887. this.$message.error("任务未解锁");
  16888. return;
  16889. }
  16890. this.navList[this.courseType].isOpen = false;
  16891. this.courseType++;
  16892. this.taskCount = 0;
  16893. this.navList[this.courseType].isOpen = true;
  16894. } else {
  16895. var bbb = parseInt(this.taskCount) + 1;
  16896. if (
  16897. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16898. .isLook &&
  16899. this.courseDetail.userid != this.userid &&
  16900. (!this.courseDetail.course_teacher ||
  16901. (this.courseDetail.course_teacher &&
  16902. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16903. this.IsLookOpen
  16904. ) {
  16905. this.$message.error("任务未解锁");
  16906. return;
  16907. }
  16908. this.taskCount++;
  16909. }
  16910. if (this.IsLookOpen) {
  16911. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16912. this.taskCount
  16913. ].isLook = true;
  16914. this.addCourseState(3);
  16915. }
  16916. }
  16917. // if (
  16918. // this.taskCount ==
  16919. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16920. // ) {
  16921. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16922. // } else {
  16923. // this.taskCount++;
  16924. // }
  16925. }
  16926. document.scrollingElement.scrollTop = 0;
  16927. this.showType = 7;
  16928. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16929. // if (this.vedio[this.taskCount].length > 0) {
  16930. // var a =
  16931. // document.getElementsByClassName("box_course")[this.taskCount]
  16932. // .offsetHeight;
  16933. // document.getElementsByClassName("vedioList")[
  16934. // this.taskCount
  16935. // ].style.height = a + "px";
  16936. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16937. // a - 40 + "px";
  16938. // }
  16939. this.isNoHomeWork = false;
  16940. (this.studyJuri = [
  16941. {
  16942. content: "",
  16943. cover: [],
  16944. upVedio: [],
  16945. upFile: [],
  16946. },
  16947. ]),
  16948. (this.radio = []);
  16949. this.isClickNav = "";
  16950. this.selectPz();
  16951. this.getHomeWork();
  16952. this.getCourseDetail(2);
  16953. this.$forceUpdate();
  16954. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16955. this.setCTask();
  16956. }
  16957. },
  16958. openTask(s, n, i,ctype) {
  16959. if (this.IsFollow && this.tType == 2) {
  16960. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16961. return;
  16962. }
  16963. if (this.IsLookOpen &&
  16964. this.courseDetail.userid != this.userid &&
  16965. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16966. if (
  16967. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16968. this.courseDetail.userid != this.userid &&
  16969. (!this.courseDetail.course_teacher ||
  16970. (this.courseDetail.course_teacher &&
  16971. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16972. ) {
  16973. this.$message.error("任务未解锁");
  16974. return;
  16975. }
  16976. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16977. if (
  16978. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16979. .isLook
  16980. ) {
  16981. this.$message.error("上一任务未解锁");
  16982. return;
  16983. }
  16984. } else if (s > this.courseType) {
  16985. if (n > 0) {
  16986. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16987. this.$message.error("上一任务未解锁");
  16988. return;
  16989. }
  16990. } else {
  16991. if (
  16992. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16993. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16994. ].isLook
  16995. ) {
  16996. this.$message.error("上一任务未解锁");
  16997. return;
  16998. }
  16999. }
  17000. }
  17001. }
  17002. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  17003. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17004. return;
  17005. }
  17006. let flag = this.courseType==s;
  17007. this.courseType = s;
  17008. this.navId = i;
  17009. this.taskCount = n;
  17010. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17011. if(ctype == 2){
  17012. this.navList[s].task[n].isOpen = true
  17013. }else{
  17014. this.navList[this.courseType].task[this.taskCount].isOpen =
  17015. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17016. }
  17017. if (this.IsLookOpen) {
  17018. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17019. this.taskCount
  17020. ].isLook = true;
  17021. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17022. this.addCourseState(3,yym);
  17023. }
  17024. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17025. this.isCloseList[ci].isClose = 0;
  17026. this.isCloseList[ci].isCloseBoolean = false;
  17027. this.$nextTick(()=>{
  17028. setTimeout(()=>{
  17029. setTimeout(()=>{
  17030. this.panToolHeight('tool-'+ci);
  17031. }, 0)
  17032. }, 0)
  17033. })
  17034. }
  17035. this.showType = 0;
  17036. this.isNoHomeWork = false;
  17037. (this.studyJuri = [
  17038. {
  17039. content: "",
  17040. cover: [],
  17041. upVedio: [],
  17042. upFile: [],
  17043. },
  17044. ]),
  17045. (this.radio = []);
  17046. document.scrollingElement.scrollTop = 0;
  17047. // setTimeout(() => {
  17048. // let a = document.getElementById(i);
  17049. // if (a.offsetTop - 110 == 0) {
  17050. // window.scrollTo(0, 0);
  17051. // } else {
  17052. // window.scrollTo(0, a.offsetTop);
  17053. // }
  17054. // }, 0);
  17055. for (var z = 0; z < this.navList.length; z++) {
  17056. for (var q = 0; q < this.navList[z].task.length; q++) {
  17057. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17058. this.navList[z].task[q].tool[w].isTool = false;
  17059. }
  17060. }
  17061. }
  17062. this.selectPz();
  17063. this.getHomeWork();
  17064. this.getCourseDetail(2);
  17065. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17066. this.setCTask();
  17067. }
  17068. if(flag){
  17069. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17070. }else{
  17071. 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>`)
  17072. }
  17073. },
  17074. get(i) {
  17075. if (this.IsFollow && this.tType == 2) {
  17076. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17077. return;
  17078. }
  17079. // for(var k=0;k<this.navList.length;k++){
  17080. // this.navList[k].isOpen = false;
  17081. // }
  17082. // this.navList[i].isOpen = true;
  17083. let a = this.navList[i].isOpen
  17084. this.navList[i].isOpen = !this.navList[i].isOpen;
  17085. this.$forceUpdate()
  17086. if (this.navList[i].isOpen) {
  17087. this.openTask(i, 0, (i + "-0"),2);
  17088. }
  17089. },
  17090. addQuestion() {
  17091. this.answerList.push({
  17092. answerTitle: this.answerQ,
  17093. answer: this.questionAnswer,
  17094. });
  17095. let params = [
  17096. {
  17097. uid: this.userid,
  17098. cid: this.id,
  17099. stage: this.courseType,
  17100. task: this.taskCount,
  17101. tool: this.toolindex,
  17102. content: JSON.stringify(this.answerList),
  17103. type: 3,
  17104. },
  17105. ];
  17106. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17107. this.homeWorkLoading = true
  17108. this.ajax
  17109. .post(this.$store.state.api + "addCourseWorks", params)
  17110. .then((res) => {
  17111. this.$message({
  17112. message: "提交成功",
  17113. type: "success",
  17114. });
  17115. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17116. setTimeout(() => {
  17117. this.homeWorkLoading = false
  17118. }, 500);
  17119. this.answerList = [];
  17120. this.answerDialogVisible = false;
  17121. this.selectStudent();
  17122. this.selectSWorks();
  17123. this.selectSLook();
  17124. })
  17125. .catch((err) => {
  17126. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17127. setTimeout(() => {
  17128. this.homeWorkLoading = false
  17129. }, 500);
  17130. this.$message.error("提交失败");
  17131. console.error(err);
  17132. });
  17133. },
  17134. addQuestionTeacher() {
  17135. this.answerList.push({
  17136. answerTitle: this.answerQ,
  17137. answer: this.questionAnswer,
  17138. });
  17139. let params = [
  17140. {
  17141. uid: this.sStudent.userid,
  17142. cid: this.id,
  17143. stage: this.courseType,
  17144. task: this.taskCount,
  17145. tool: this.toolindex,
  17146. content: JSON.stringify(this.answerList),
  17147. type: 3,
  17148. ateacher: this.userid,
  17149. },
  17150. ];
  17151. this.ajax
  17152. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17153. .then((res) => {
  17154. this.$message({
  17155. message: "提交成功",
  17156. type: "success",
  17157. });
  17158. this.answerList = [];
  17159. this.questionAnswer = "";
  17160. this.answerDialogVisibleTeacher = false;
  17161. this.selectStudent();
  17162. this.selectSWorks();
  17163. this.selectSLook();
  17164. })
  17165. .catch((err) => {
  17166. this.$message.error("提交失败");
  17167. console.error(err);
  17168. });
  17169. },
  17170. refreshCourse() {
  17171. // window.location.reload();
  17172. this.navList = [];
  17173. this.getCourseDetail(1);
  17174. },
  17175. getCourseDetail(type, gindex) {
  17176. let loading;
  17177. if (type != 2) {
  17178. loading = this.$loading.service({
  17179. background: "rgba(255, 255, 255, 0.7)",
  17180. target: document.querySelector(".student_table"),
  17181. });
  17182. }
  17183. this.downLoading = false
  17184. // this.navList[0].isOpen = false;
  17185. // this.navList[this.courseType].isOpen = true;
  17186. // this.courseType = this.courseTypeLine;
  17187. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17188. let params = {
  17189. courseId: this.id,
  17190. };
  17191. this.ajax
  17192. .get(this.$store.state.api + "selectCourseDetail3", params)
  17193. .then((res) => {
  17194. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17195. if (type != 2) {
  17196. loading.close();
  17197. if (
  17198. this.courseType >
  17199. JSON.parse(res.data[0][0].chapters).length - 1
  17200. ) {
  17201. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17202. }
  17203. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17204. .chapterInfo[0].taskJson;
  17205. var b = [
  17206. "AVI",
  17207. "NAVI",
  17208. "MPEG",
  17209. "ASF",
  17210. "MOV",
  17211. "WMV",
  17212. "3GP",
  17213. "RM",
  17214. "RMVB",
  17215. "FLV",
  17216. "F4V",
  17217. "H.264",
  17218. "H.265",
  17219. "REAL VIDEO",
  17220. "MKV",
  17221. "WebM",
  17222. "HDDVD",
  17223. "MP4",
  17224. "MPG",
  17225. "M4V",
  17226. "MGV",
  17227. "OGV",
  17228. "QTM",
  17229. "STR",
  17230. "AMC",
  17231. "DVX",
  17232. "EVO",
  17233. "DAT",
  17234. "OGG",
  17235. "OGM",
  17236. "MP3",
  17237. ];
  17238. let _chapterData = [];
  17239. for (var i = 0; i < a.length; i++) {
  17240. var c = a[i].chapterData;
  17241. this.vedio[i] = [];
  17242. this.textList[i] = [];
  17243. this.lineList[i] = [];
  17244. this.chapToolList[i] = [];
  17245. this.file[i] = [];
  17246. this.fileC[i] = [];
  17247. _chapterData[i] = c.filter((el) => {
  17248. return el.type != 12;
  17249. });
  17250. this.fileC[i] = c.filter((el) => {
  17251. return el.type == 12;
  17252. });
  17253. if (this.tType == 2) {
  17254. if (this.fileC[i].length) {
  17255. let yym1 = this.fileC[i].filter(e=>{
  17256. if(!converter(e.name).includes(converter("教案"))){
  17257. return e
  17258. }
  17259. })
  17260. this.fileC[i] = yym1
  17261. }
  17262. }
  17263. // else if (c[j].type == 12) {
  17264. // this.fileC[i].push(c[j]);
  17265. // }
  17266. for (var j = 0; j < c.length; j++) {
  17267. if (c[j].type == 7) {
  17268. this.chapToolList[i].push(c[j]);
  17269. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17270. this.lineList[i].push(c[j]);
  17271. } else if (c[j].type == 6) {
  17272. this.textList[i].push(c[j]);
  17273. } else {
  17274. if (
  17275. b.indexOf(
  17276. c[j].url
  17277. .split(".")
  17278. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17279. ) != -1
  17280. ) {
  17281. this.vedio[i].push(c[j]);
  17282. } else {
  17283. this.file[i].push(c[j]);
  17284. }
  17285. }
  17286. }
  17287. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17288. d.sources[0].src =
  17289. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17290. this.playerO[i] = d;
  17291. }
  17292. this.courseDetail = res.data[0][0];
  17293. if(this.tType == 2){
  17294. this.tcid = this.arrayToArray(
  17295. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17296. this.classId ? this.classId.split(",") : []
  17297. ).join(",");
  17298. }else{
  17299. this.tcid = this.arrayToArray(
  17300. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17301. this.tcid2 ? this.tcid2.split(",") : []
  17302. ).join(",");
  17303. }
  17304. this.evalua = res.data[0][0].evaId;
  17305. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17306. this.courseType
  17307. ];
  17308. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17309. if (this.tcid && res.data[1].length) {
  17310. let _inviteA = [];
  17311. for (var ik = 0; ik < res.data[1].length; ik++) {
  17312. _inviteA.push({
  17313. cid: res.data[1][ik].classid,
  17314. ic: res.data[1][ik].code,
  17315. });
  17316. }
  17317. for (var ik = 0; ik < _inviteA.length; ik++) {
  17318. if (
  17319. this.arrayToArray(
  17320. _inviteA[ik].cid.split(","),
  17321. this.tcid.split(",")
  17322. ).length
  17323. ) {
  17324. this.inviteCode = _inviteA[ik].ic;
  17325. break;
  17326. }
  17327. }
  17328. }
  17329. for (var l = 0; l < this.chapInfoList.length; l++) {
  17330. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17331. for (var m = 0; m < w.length; m++) {
  17332. w[m].id = l + "-" + m;
  17333. }
  17334. }
  17335. if (
  17336. _chapterData[this.taskCount].length &&
  17337. _chapterData[this.taskCount][0].type == 2
  17338. ) {
  17339. this.showType = 0;
  17340. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17341. } else {
  17342. if (_chapterData[this.taskCount].length > 0) {
  17343. let _url = _chapterData[this.taskCount][0].url;
  17344. if (
  17345. _chapterData[this.taskCount][0].type == 8 ||
  17346. _chapterData[this.taskCount][0].type == 14 ||
  17347. _chapterData[this.taskCount][0].type == 15
  17348. ) {
  17349. this.showType = 2;
  17350. if (
  17351. _url.indexOf("https://") == -1 &&
  17352. _url.indexOf("http://") == -1
  17353. ) {
  17354. _url = "https://" + _url;
  17355. }
  17356. this.pptImgUrl1 = _url;
  17357. } else if (_chapterData[this.taskCount][0].type == 3) {
  17358. if (
  17359. _url
  17360. .split(".")
  17361. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17362. ) {
  17363. this.showType = 3;
  17364. this.pptImgUrl1 = _url;
  17365. } else if (
  17366. this.isAssetTypeAnImage(
  17367. _url
  17368. .split(".")
  17369. [_url.split(".").length - 1].toLocaleLowerCase()
  17370. )
  17371. ) {
  17372. this.showType = 4;
  17373. this.pptImgUrl1 = _url;
  17374. } else {
  17375. this.showType = 2;
  17376. this.pptImgUrl1 =
  17377. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17378. encodeURIComponent(_url);
  17379. }
  17380. } else if (_chapterData[this.taskCount][0].type == 13) {
  17381. this.showType = 4;
  17382. this.pptImgUrl1 = _url;
  17383. } else if (_chapterData[this.taskCount][0].type == 6) {
  17384. this.showType = 1;
  17385. this.text = this.textList[this.taskCount][0];
  17386. } else if (_chapterData[this.taskCount][0].type == 16) {
  17387. this.showType = 16;
  17388. this.pptImgUrl1 = _url;
  17389. }
  17390. }
  17391. }
  17392. this.isClickNav = 0;
  17393. if (
  17394. !_chapterData[this.taskCount].length ||
  17395. _chapterData[this.taskCount][0].type == 12
  17396. ) {
  17397. this.isClickNav = "";
  17398. this.showType = "";
  17399. }
  17400. if (this.tType == 2) {
  17401. _chapterData.forEach((e,i)=>{
  17402. if (e.length) {
  17403. let yym = e.filter(k=>{
  17404. if(!converter(k.name).includes(converter("教案"))){
  17405. return k
  17406. }
  17407. })
  17408. _chapterData[i] = yym
  17409. }
  17410. })
  17411. }
  17412. this.vChapterData = _chapterData;
  17413. } else {
  17414. this.showType = 0;
  17415. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17416. .chapterInfo[0].taskJson;
  17417. var b = [
  17418. "AVI",
  17419. "NAVI",
  17420. "MPEG",
  17421. "ASF",
  17422. "MOV",
  17423. "WMV",
  17424. "3GP",
  17425. "RM",
  17426. "RMVB",
  17427. "FLV",
  17428. "F4V",
  17429. "H.264",
  17430. "H.265",
  17431. "REAL VIDEO",
  17432. "MKV",
  17433. "WebM",
  17434. "HDDVD",
  17435. "MP4",
  17436. "MPG",
  17437. "M4V",
  17438. "MGV",
  17439. "OGV",
  17440. "QTM",
  17441. "STR",
  17442. "AMC",
  17443. "DVX",
  17444. "EVO",
  17445. "DAT",
  17446. "OGG",
  17447. "OGM",
  17448. "MP3",
  17449. ];
  17450. let _chapterData = [];
  17451. for (var i = 0; i < a.length; i++) {
  17452. var c = a[i].chapterData;
  17453. this.vedio[i] = [];
  17454. this.textList[i] = [];
  17455. this.lineList[i] = [];
  17456. this.chapToolList[i] = [];
  17457. this.file[i] = [];
  17458. this.fileC[i] = [];
  17459. _chapterData[i] = c.filter((el) => {
  17460. return el.type != 12;
  17461. });
  17462. this.fileC[i] = c.filter((el) => {
  17463. return el.type == 12;
  17464. });
  17465. if (this.tType == 2) {
  17466. if (this.fileC[i].length) {
  17467. let yym1 = this.fileC[i].filter(e=>{
  17468. if(!converter(e.name).includes(converter("教案"))){
  17469. return e
  17470. }
  17471. })
  17472. this.fileC[i] = yym1
  17473. }
  17474. }
  17475. for (var j = 0; j < c.length; j++) {
  17476. if (c[j].type == 7) {
  17477. this.chapToolList[i].push(c[j]);
  17478. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17479. this.lineList[i].push(c[j]);
  17480. } else if (c[j].type == 6) {
  17481. this.textList[i].push(c[j]);
  17482. } else {
  17483. if (
  17484. b.indexOf(
  17485. c[j].url
  17486. .split(".")
  17487. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17488. ) != -1
  17489. ) {
  17490. this.vedio[i].push(c[j]);
  17491. } else {
  17492. this.file[i].push(c[j]);
  17493. }
  17494. }
  17495. }
  17496. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17497. d.sources[0].src =
  17498. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17499. this.playerO[i] = d;
  17500. }
  17501. if (
  17502. _chapterData[this.taskCount].length &&
  17503. _chapterData[this.taskCount][0].type == 2
  17504. ) {
  17505. this.showType = 0;
  17506. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17507. } else {
  17508. if (_chapterData[this.taskCount].length > 0) {
  17509. let _url = _chapterData[this.taskCount][0].url;
  17510. if (
  17511. _chapterData[this.taskCount][0].type == 8 ||
  17512. _chapterData[this.taskCount][0].type == 14 ||
  17513. _chapterData[this.taskCount][0].type == 15
  17514. ) {
  17515. this.showType = 2;
  17516. if (
  17517. _url.indexOf("https://") == -1 &&
  17518. _url.indexOf("http://") == -1
  17519. ) {
  17520. _url = "https://" + _url;
  17521. }
  17522. this.pptImgUrl1 = _url;
  17523. } else if (_chapterData[this.taskCount][0].type == 3) {
  17524. if (
  17525. _url
  17526. .split(".")
  17527. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17528. ) {
  17529. this.showType = 3;
  17530. this.pptImgUrl1 = _url;
  17531. } else if (
  17532. this.isAssetTypeAnImage(
  17533. _url
  17534. .split(".")
  17535. [_url.split(".").length - 1].toLocaleLowerCase()
  17536. )
  17537. ) {
  17538. this.showType = 4;
  17539. this.pptImgUrl1 = _url;
  17540. } else {
  17541. this.showType = 2;
  17542. this.pptImgUrl1 =
  17543. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17544. encodeURIComponent(_url);
  17545. }
  17546. } else if (_chapterData[this.taskCount][0].type == 13) {
  17547. this.showType = 4;
  17548. this.pptImgUrl1 = _url;
  17549. } else if (_chapterData[this.taskCount][0].type == 6) {
  17550. this.showType = 1;
  17551. this.text = this.textList[this.taskCount][0];
  17552. } else if (_chapterData[this.taskCount][0].type == 16) {
  17553. this.showType = 16;
  17554. this.pptImgUrl1 = _url;
  17555. }
  17556. }
  17557. }
  17558. this.isClickNav = 0;
  17559. if (
  17560. !_chapterData[this.taskCount].length ||
  17561. _chapterData[this.taskCount][0].type == 12
  17562. ) {
  17563. this.isClickNav = "";
  17564. this.showType = "";
  17565. }
  17566. console.log('_chapterData66666',_chapterData);
  17567. if (this.tType == 2) {
  17568. _chapterData.forEach((e,i)=>{
  17569. if (e.length) {
  17570. let yym = e.filter(k=>{
  17571. if(!converter(k.name).includes(converter("教案"))){
  17572. return k
  17573. }
  17574. })
  17575. _chapterData[i] = yym
  17576. }
  17577. })
  17578. }
  17579. this.vChapterData = _chapterData;
  17580. this.$forceUpdate();
  17581. }
  17582. // else {
  17583. // this.courseDetail = res.data[0][0];
  17584. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17585. // }
  17586. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17587. if (type == 10) {
  17588. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17589. console.log('this.userid',this.userid);
  17590. if (this.courseDetail.userid == this.userid) {
  17591. // 开局关闭学生查看内容
  17592. this.StulookMode(false)
  17593. // 开局打开跟随模式
  17594. this.followingMode(true)
  17595. }
  17596. }
  17597. let _this = this;
  17598. if (_this.timer) {
  17599. clearInterval(_this.timer);
  17600. _this.timer = null;
  17601. }
  17602. if (_this.tcid) {
  17603. _this.getCourseGroup(gindex);
  17604. } else {
  17605. _this.selectSWorks(gindex);
  17606. }
  17607. _this.selectStudent();
  17608. _this.selectSLook();
  17609. _this.getPick();
  17610. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17611. // _this.setCTask();
  17612. // }
  17613. if (_this.dialogVisibleGroup) {
  17614. _this.groupJson =
  17615. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17616. _this.taskCount
  17617. ].toolChoose[_this.toolindex].groupJson;
  17618. }
  17619. _this.$nextTick(() => {
  17620. setTimeout(() => {
  17621. _this.checkEva();
  17622. }, 1000);
  17623. });
  17624. _this.timer = setInterval(function () {
  17625. // _this.getCourseDetail(2);
  17626. if (_this.tcid) {
  17627. _this.getCourseGroup();
  17628. } else {
  17629. _this.selectSWorks();
  17630. }
  17631. _this.selectStudent();
  17632. _this.selectSLook();
  17633. _this.getPick();
  17634. // _this.getSplitScreenData();
  17635. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17636. // _this.setCTask();
  17637. // }
  17638. if (_this.dialogVisibleGroup) {
  17639. _this.groupJson =
  17640. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17641. _this.taskCount
  17642. ].toolChoose[_this.toolindex].groupJson;
  17643. }
  17644. if (_this.tType == 4 || _this.ispzType == 4) {
  17645. _this.selectPz();
  17646. }
  17647. }, 5000);
  17648. if (_this.timer2 == null) {
  17649. _this.timer2 = setInterval(()=> {
  17650. _this.getSplitScreenData();//获取分屏数据
  17651. }, 5000);
  17652. }
  17653. _this.$nextTick(function () {
  17654. setTimeout(() => {
  17655. // var a =
  17656. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17657. // document.getElementsByClassName("vedioList")[0].style.height =
  17658. // a + "px";
  17659. // document.getElementsByClassName("navBox")[0].style.height =
  17660. // a - 40 + "px";
  17661. // if (_this.vedio[_this.taskCount].length > 0) {
  17662. // _this.vedioTime = [];
  17663. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17664. // _this.vedioTime[i] = document.getElementsByClassName(
  17665. // "vjs-duration-display"
  17666. // )[i].textContent;
  17667. // }
  17668. // }
  17669. }, 1000);
  17670. });
  17671. })
  17672. .catch((err) => {
  17673. loading.close();
  17674. console.error(err);
  17675. });
  17676. },
  17677. getCourseGroup(gindex) {
  17678. let params = {
  17679. cid: this.id,
  17680. classid: this.tcid ? this.tcid : "1",
  17681. };
  17682. this.ajax
  17683. .get(this.$store.state.api + "getCourseGroup", params)
  17684. .then((res) => {
  17685. if (res.data && res.data[0].length) {
  17686. if (!this.isGroup) {
  17687. let courseGroup = JSON.parse(res.data[0][0].group);
  17688. courseGroup.group = courseGroup.group.filter((el) => {
  17689. el.works = [];
  17690. return el;
  17691. });
  17692. if (courseGroup.isopen == 2) {
  17693. this.isGroup = false;
  17694. this.selectSWorks(gindex);
  17695. return;
  17696. }
  17697. this.courseGroup = courseGroup;
  17698. let groupPerson = res.data[1];
  17699. let group = JSON.parse(res.data[0][0].group).group;
  17700. let courseGroupStudent = {};
  17701. let courseGroupStudentUid = {};
  17702. for (var i = 0; i < group.length; i++) {
  17703. courseGroupStudent[group[i].id] = [];
  17704. courseGroupStudentUid[group[i].id] = [];
  17705. for (var j = 0; j < groupPerson.length; j++) {
  17706. if (groupPerson[j].groupCid == group[i].id) {
  17707. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17708. courseGroupStudentUid[group[i].id].push(
  17709. groupPerson[j].userid
  17710. );
  17711. }
  17712. }
  17713. }
  17714. this.courseGroupStudent = courseGroupStudent;
  17715. this.courseGroupStudentUid = courseGroupStudentUid;
  17716. }
  17717. if (this.courseGroup.isopen == 2) {
  17718. this.isGroup = false;
  17719. } else {
  17720. this.isGroup = true;
  17721. }
  17722. this.selectSWorks(gindex);
  17723. } else {
  17724. this.selectSWorks(gindex);
  17725. this.isGroup = false;
  17726. }
  17727. })
  17728. .catch((err) => {
  17729. // this.$message.error("网络不佳");
  17730. console.error(err);
  17731. });
  17732. },
  17733. setOperationTime() {
  17734. let _this = this;
  17735. if (_this.opertimer) {
  17736. clearInterval(_this.opertimer);
  17737. _this.opertimer = null;
  17738. }
  17739. _this.opertimer = setInterval(() => {
  17740. _this.setoTime("600");
  17741. }, 600000);
  17742. },
  17743. setoTime(time) {
  17744. let params = [
  17745. {
  17746. uid: this.userid,
  17747. cid: this.id,
  17748. type: "2",
  17749. time: time,
  17750. },
  17751. ];
  17752. this.ajax
  17753. .post(this.$store.state.api + "addOperationTimeT2", params)
  17754. .then((res) => {})
  17755. .catch((err) => {
  17756. console.error(err);
  17757. });
  17758. },
  17759. addPz(type, content) {
  17760. if (type == "1" && this.pzConText == "") {
  17761. this.$message.error("评论不能为空!");
  17762. return;
  17763. }
  17764. let params = [
  17765. {
  17766. cid: this.id,
  17767. uid: this.userid,
  17768. s: this.courseType,
  17769. t: this.taskCount,
  17770. c: type == "1" ? this.pzConText : content,
  17771. type: type,
  17772. },
  17773. ];
  17774. this.ajax
  17775. .post(this.$store.state.api + "addPz2", params)
  17776. .then((res) => {
  17777. this.$message({
  17778. message: "添加成功",
  17779. type: "success",
  17780. });
  17781. this.pzConText = "";
  17782. this.addPzDialog = false;
  17783. this.selectPz();
  17784. if(this.tType!=2){
  17785. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17786. }
  17787. })
  17788. .catch((err) => {
  17789. this.$message.error("添加失败");
  17790. console.error(err);
  17791. });
  17792. },
  17793. setReplyIndex(id, i) {
  17794. this.replyIndex = i;
  17795. this.replyPid = id;
  17796. this.replyDialogVisible = true;
  17797. },
  17798. addHf() {
  17799. if (this.reply == "") {
  17800. this.$message.error("回复不能为空!");
  17801. return;
  17802. }
  17803. let params = [
  17804. {
  17805. cid: this.id,
  17806. uid: this.userid,
  17807. s: this.courseType,
  17808. t: this.taskCount,
  17809. type: "1",
  17810. ct: 2,
  17811. pid: this.replyPid,
  17812. c: this.reply,
  17813. },
  17814. ];
  17815. this.ajax
  17816. .post(this.$store.state.api + "addHf", params)
  17817. .then((res) => {
  17818. this.reply = "";
  17819. this.$message({
  17820. message: "回复成功",
  17821. type: "success",
  17822. });
  17823. this.replyDialogVisible = false;
  17824. this.selectPz();
  17825. })
  17826. .catch((err) => {
  17827. this.$message.error("回复失败");
  17828. console.error(err);
  17829. });
  17830. },
  17831. deletePz(id) {
  17832. this.$confirm("确定删除此评论吗?", "提示", {
  17833. confirmButtonText: "确定",
  17834. cancelButtonText: "取消",
  17835. type: "warning",
  17836. })
  17837. .then(() => {
  17838. let params = [
  17839. {
  17840. id: id,
  17841. },
  17842. ];
  17843. this.ajax
  17844. .post(this.$store.state.api + "deletePz", params)
  17845. .then((res) => {
  17846. this.$message({
  17847. message: "删除成功",
  17848. type: "success",
  17849. });
  17850. this.selectPz();
  17851. })
  17852. .catch((err) => {
  17853. this.$message.error("网络异常");
  17854. console.error(err);
  17855. });
  17856. })
  17857. .catch(() => {});
  17858. },
  17859. deleteReply(id) {
  17860. this.$confirm("确定删除此回复吗?", "提示", {
  17861. confirmButtonText: "确定",
  17862. cancelButtonText: "取消",
  17863. type: "warning",
  17864. })
  17865. .then(() => {
  17866. let params = [
  17867. {
  17868. id: id,
  17869. },
  17870. ];
  17871. this.ajax
  17872. .post(this.$store.state.api + "deleteReply", params)
  17873. .then((res) => {
  17874. this.$message({
  17875. message: "删除成功",
  17876. type: "success",
  17877. });
  17878. this.selectPz();
  17879. })
  17880. .catch((err) => {
  17881. this.$message.error("网络异常");
  17882. console.error(err);
  17883. });
  17884. })
  17885. .catch(() => {});
  17886. },
  17887. setPz() {
  17888. if (this.ispzType == 4) {
  17889. this.ispzType = 0;
  17890. this.pzDialog = false;
  17891. return;
  17892. }
  17893. this.ispzType = 4;
  17894. this.pzDialog = true;
  17895. this.selectPz();
  17896. },
  17897. selectPz() {
  17898. let params = {
  17899. cid: this.id,
  17900. s: this.courseType,
  17901. t: this.taskCount,
  17902. type: this.pzStype,
  17903. uid: this.userid,
  17904. };
  17905. this.ajax
  17906. .get(this.$store.state.api + "selectPzListType", params)
  17907. .then((res) => {
  17908. this.pzList = res.data[0];
  17909. var a = res.data[1];
  17910. for (var i = 0; i < a.length; i++) {
  17911. for (var j = 0; j < this.pzList.length; j++) {
  17912. if (!this.pzList[j].hfList) {
  17913. this.pzList[j].hfList = [];
  17914. }
  17915. if (a[i].pid == this.pzList[j].id) {
  17916. this.pzList[j].hfList.push(a[i]);
  17917. }
  17918. }
  17919. }
  17920. })
  17921. .catch((err) => {
  17922. console.error(err);
  17923. });
  17924. },
  17925. // selectHf() {
  17926. // let params = {
  17927. // cid: this.id,
  17928. // s: this.courseType,
  17929. // t: this.taskCount,
  17930. // };
  17931. // this.ajax
  17932. // .get(this.$store.state.api + "selectHfList", params)
  17933. // .then((res) => {
  17934. // var a = res.data[0];
  17935. // for (var i = 0; i < a.length; i++) {
  17936. // for (var j = 0; j < this.pzList.length; j++) {
  17937. // if (!this.pzList[i].hfList) {
  17938. // this.pzList[i].hfList = [];
  17939. // }
  17940. // if (a[i].pid == this.pzList[j].id) {
  17941. // this.pzList[i].hfList.push(a[i]);
  17942. // }
  17943. // }
  17944. // }
  17945. // })
  17946. // .catch((err) => {
  17947. // console.error(err);
  17948. // });
  17949. // },
  17950. updateSLook() {
  17951. let params = {
  17952. sopen: this.sIsOpen == false ? 1 : 2,
  17953. cid: this.id,
  17954. };
  17955. this.ajax
  17956. .get(this.$store.state.api + "updateCourseSLook", params)
  17957. .then((res) => {
  17958. if (this.sIsOpen == true) {
  17959. this.$message({
  17960. message: "权限设置成功",
  17961. type: "success",
  17962. });
  17963. } else {
  17964. this.$message({
  17965. message: "权限关闭成功",
  17966. type: "success",
  17967. });
  17968. }
  17969. })
  17970. .catch((err) => {
  17971. console.error(err);
  17972. });
  17973. },
  17974. updateIsStulook(){
  17975. let params = [
  17976. {
  17977. sopen: this.IsStulook == false ? 2 : 1,
  17978. cid: this.id
  17979. }
  17980. ];
  17981. this.ajax
  17982. .post(this.$store.state.api + "updateCourseStulook", params)
  17983. .then(res => {
  17984. if (this.IsStulook == true) {
  17985. this.$message({
  17986. message: "学生查看内容资料权限已开启",
  17987. type: "success"
  17988. });
  17989. } else {
  17990. this.$message({
  17991. message: "关闭学生查看内容资料权限",
  17992. type: "success"
  17993. });
  17994. }
  17995. // this.setCTask();
  17996. })
  17997. .catch(err => {
  17998. console.error(err);
  17999. });
  18000. },
  18001. updateFollow() {
  18002. let params = [
  18003. {
  18004. sopen: this.IsFollow == false ? 1 : 2,
  18005. cid: this.id,
  18006. },
  18007. ];
  18008. this.ajax
  18009. .post(this.$store.state.api + "updateCourseFollow", params)
  18010. .then((res) => {
  18011. if (this.IsFollow == true) {
  18012. this.$message({
  18013. message: "跟随模式已开启",
  18014. type: "success",
  18015. });
  18016. } else {
  18017. this.$message({
  18018. message: "跟随模式已关闭",
  18019. type: "success",
  18020. });
  18021. }
  18022. this.setCTask();
  18023. })
  18024. .catch((err) => {
  18025. console.error(err);
  18026. });
  18027. },
  18028. setCTask() {
  18029. let params = [
  18030. {
  18031. sopen: this.courseType + "-" + this.taskCount,
  18032. cid: this.id,
  18033. },
  18034. ];
  18035. this.ajax
  18036. .post(this.$store.state.api + "updateCourseFollowC", params)
  18037. .then((res) => {})
  18038. .catch((err) => {
  18039. console.error(err);
  18040. });
  18041. },
  18042. updateLookOpen() {
  18043. let params = [
  18044. {
  18045. sopen: this.IsLookOpen == false ? 1 : 2,
  18046. cid: this.id,
  18047. },
  18048. ];
  18049. this.ajax
  18050. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18051. .then((res) => {
  18052. if (this.IsLookOpen == true) {
  18053. // if (this.courseType != 0 && this.taskCount != 0) {
  18054. // this.openTask(0, 0, "0-0");
  18055. // }
  18056. this.$message({
  18057. message: "权限设置成功",
  18058. type: "success",
  18059. });
  18060. } else {
  18061. this.$message({
  18062. message: "权限关闭成功",
  18063. type: "success",
  18064. });
  18065. }
  18066. this.getCourseState(2);
  18067. })
  18068. .catch((err) => {
  18069. console.error(err);
  18070. });
  18071. },
  18072. selectSLook() {
  18073. let params = {
  18074. cid: this.id,
  18075. };
  18076. this.ajax
  18077. .get(this.$store.state.api + "selectCourseSLook", params)
  18078. .then((res) => {
  18079. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18080. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18081. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18082. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18083. if (!this.IsLookOpen) {
  18084. this.setNavList();
  18085. }else {
  18086. this.getCourseState(1);
  18087. }
  18088. if ((this.IsFollow && this.tType == 2)) {
  18089. this.setContent2(false);
  18090. let _followC = res.data[0][0].followC.split("-");
  18091. if (
  18092. this.courseType != _followC[0] ||
  18093. this.taskCount != _followC[1]
  18094. ) {
  18095. this.navList[this.courseType].isOpen = false;
  18096. this.courseType = _followC[0];
  18097. this.navList[this.courseType].isOpen = true;
  18098. this.taskCount = parseInt(_followC[1]);
  18099. this.navId = res.data[0][0].followC;
  18100. document.scrollingElement.scrollTop = 0;
  18101. this.getCourseDetail(2);
  18102. }
  18103. }
  18104. })
  18105. .catch((err) => {
  18106. console.error(err);
  18107. });
  18108. },
  18109. setNavList() {
  18110. if (this.navList.length == 0) {
  18111. this.navList = [];
  18112. var copyList = [];
  18113. for (var l = 0; l < this.chapInfoList.length; l++) {
  18114. var q = this.chapInfoList[l].dyName;
  18115. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18116. var e;
  18117. copyList.push({
  18118. dyName: q,
  18119. isOpen: l === 0 ? true : false,
  18120. task: [],
  18121. });
  18122. for (var r = 0; r < w.length; r++) {
  18123. e = w[r].task;
  18124. if (this.chapInfoList[l].easy == 1) {
  18125. copyList[l].task.push({
  18126. taskName: q,
  18127. id: l + "-" + r,
  18128. isLook: w[r].isLook,
  18129. isOpen: r === 0 ? true : false,
  18130. tool: [],
  18131. });
  18132. } else {
  18133. copyList[l].task.push({
  18134. taskName: e,
  18135. id: l + "-" + r,
  18136. isLook: w[r].isLook,
  18137. isOpen: r === 0 ? true : false,
  18138. tool: [],
  18139. });
  18140. }
  18141. var t = w[r].toolChoose;
  18142. for (var k = 0; k < t.length; k++) {
  18143. var tool = t[k].tool[0];
  18144. copyList[l].task[r].tool.push({
  18145. tool: tool,
  18146. isTool: false,
  18147. });
  18148. }
  18149. // this.navId = this.navId ? this.navId : l + "-" + r;
  18150. // this.navId = l + "-" + r;
  18151. }
  18152. }
  18153. this.navList = copyList;
  18154. this.navList[0].isOpen = false;
  18155. this.navList[this.courseType].isOpen = true;
  18156. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18157. } else {
  18158. this.setNavList2();
  18159. }
  18160. },
  18161. setNavList2() {
  18162. for (var l = 0; l < this.chapInfoList.length; l++) {
  18163. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18164. for (var r = 0; r < w.length; r++) {
  18165. this.navList[l].task[r].isLook = w[r].isLook;
  18166. }
  18167. }
  18168. if (
  18169. this.IsLookOpen &&
  18170. !this.navList[this.courseType].task[this.taskCount].isLook
  18171. ) {
  18172. this.openTask(0, 0, "0-0");
  18173. }
  18174. this.$forceUpdate();
  18175. },
  18176. getCourseState(type) {
  18177. let params = {
  18178. cid: this.id,
  18179. };
  18180. this.ajax
  18181. .get(this.$store.state.api + "getCourseState", params)
  18182. .then((res) => {
  18183. // if (res.data[0].length > 0) {
  18184. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18185. // }
  18186. if (res.data[0].length > 0 && type == 1) {
  18187. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18188. this.setNavList();
  18189. this.$forceUpdate();
  18190. } else if (res.data[0].length > 0 && type == 2) {
  18191. this.addCourseState(2);
  18192. } else {
  18193. // this.addCourseState(1);
  18194. }
  18195. })
  18196. .catch((err) => {
  18197. console.error(err);
  18198. });
  18199. },
  18200. addCourseState(type,val = '') {
  18201. let _state = val ? val : this.chapInfoList;
  18202. // this.courseType this.taskCount
  18203. if (type == 1 || type == 2) {
  18204. for (var i = 0; i < _state.length; i++) {
  18205. let el = _state[i].chapterInfo[0].taskJson;
  18206. for (var j = 0; j < el.length; j++) {
  18207. // if (i == 0 && j == 0) {
  18208. // el[j].isLook = true;
  18209. // } else {
  18210. // el[j].isLook = false;
  18211. // }
  18212. if (
  18213. this.courseType > i ||
  18214. (this.courseType == i && this.taskCount + 1 > j)
  18215. ) {
  18216. el[j].isLook = true;
  18217. } else {
  18218. el[j].isLook = false;
  18219. }
  18220. }
  18221. }
  18222. }
  18223. let params = [
  18224. {
  18225. cid: this.id,
  18226. state: JSON.stringify(_state),
  18227. },
  18228. ];
  18229. this.ajax
  18230. .post(
  18231. this.$store.state.api +
  18232. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18233. params
  18234. )
  18235. .then((res) => {
  18236. if (this.IsLookOpen) {
  18237. this.setNavList();
  18238. }
  18239. if (type == 3 && type == 2) {
  18240. this.getCourseState(1);
  18241. }
  18242. })
  18243. .catch((err) => {
  18244. console.error(err);
  18245. });
  18246. },
  18247. getHomeWork() {
  18248. let params = {
  18249. cid: this.id,
  18250. stage: this.courseType,
  18251. task: this.taskCount,
  18252. uid: this.userid,
  18253. };
  18254. this.ajax
  18255. .get(this.$store.state.api + "selectWork", params)
  18256. .then((res) => {
  18257. if (res.data[0].length > 0) {
  18258. this.studyJuri = JSON.parse(res.data[0][0].content);
  18259. this.isNoHomeWork = true;
  18260. }
  18261. })
  18262. .catch((err) => {
  18263. console.error(err);
  18264. });
  18265. },
  18266. isAssetTypeAnImage(ext) {
  18267. return (
  18268. [
  18269. "png",
  18270. "jpg",
  18271. "jpeg",
  18272. "bmp",
  18273. "gif",
  18274. "webp",
  18275. "psd",
  18276. "svg",
  18277. "tiff",
  18278. ].indexOf(ext) !== -1
  18279. );
  18280. },
  18281. switchVideo(media) {
  18282. this.playerO = {};
  18283. this.playerOptions.poster = "";
  18284. this.playerOptions.sources[0].src = media;
  18285. this.playerO = this.playerOptions;
  18286. },
  18287. onPlayerPlay() {},
  18288. onPlayerTimeupdate(player) {
  18289. let gklog = player.cache_.currentTime; //当前播放的秒数
  18290. let a = player.cache_.duration; //视频的总时长
  18291. let gklog2 = parseInt(gklog);
  18292. // if(gklog2 == '3'){
  18293. // player.pause()
  18294. // setTimeout(()=>{
  18295. // player.currentTime(gklog2+1)
  18296. // player.play()
  18297. // },1000)
  18298. // }
  18299. console.log(" onPlayerTimeupdate!", gklog);
  18300. console.log(" onPlayerTimeupdate!", gklog2);
  18301. },
  18302. lookVedio(u, i) {
  18303. this.isClickNav = "";
  18304. // this.playerOptions.sources[0].src = u;
  18305. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18306. d.sources[0].src = u;
  18307. this.playerO[this.taskCount] = d;
  18308. this.showType = 0;
  18309. // this.isClickNav = "video" + i;
  18310. this.isClickNav = i;
  18311. this.$forceUpdate();
  18312. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18313. },
  18314. lookText(i, t) {
  18315. this.isClickNav = "";
  18316. // this.text = this.textList[i][t];
  18317. this.text = this.vChapterData[i][t];
  18318. // this.dialogVisible1 = true;
  18319. this.showType = 1;
  18320. // this.isClickNav = "text" + t;
  18321. this.isClickNav = t;
  18322. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18323. },
  18324. lookTools(i, t) {
  18325. this.chapTools = this.chapToolList[i][t];
  18326. this.dialogVisible2 = true;
  18327. },
  18328. async openFile(f,w) {
  18329. this.pptImgUrl = "";
  18330. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18331. if (
  18332. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18333. -1
  18334. ) {
  18335. let _uuurl = await this.checkLink(f);
  18336. this.pptImgUrl =
  18337. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18338. this.showPDF = false;
  18339. this.dialogVisible3 = true;
  18340. } else if (
  18341. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18342. ) {
  18343. this.pptImgUrl = f;
  18344. this.showPDF = true;
  18345. this.dialogVisible3 = true;
  18346. }
  18347. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18348. },
  18349. openTable(f) {
  18350. this.tableJson = JSON.parse(f.works);
  18351. this.dialogVisibleTable2 = true;
  18352. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18353. },
  18354. openWord(f) {
  18355. this.tableJson = JSON.parse(f.works);
  18356. this.dialogVisibleTable3 = true;
  18357. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18358. },
  18359. doUrl(url, i) {
  18360. this.isClickNav = "";
  18361. this.pptImgUrl1 = "";
  18362. this.showType = 2;
  18363. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18364. url = "https://" + url;
  18365. }
  18366. this.pptImgUrl1 = "";
  18367. this.diffKey = new Date().getTime();
  18368. setTimeout(() => {
  18369. this.pptImgUrl1 = url;
  18370. }, 500);
  18371. // this.isClickNav = "line" + i;
  18372. this.isClickNav = i;
  18373. this.$forceUpdate();
  18374. },
  18375. checkPhoto(f, i) {
  18376. this.showType = 4;
  18377. this.pptImgUrl1 = f.url;
  18378. this.isClickNav = i;
  18379. this.$forceUpdate();
  18380. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18381. },
  18382. checkHtml(f, i){
  18383. this.showType = 16;
  18384. this.pptImgUrl1 = f.url;
  18385. this.isClickNav = i;
  18386. this.$forceUpdate();
  18387. },
  18388. async downFile(f, i) {
  18389. this.isClickNav = "";
  18390. this.pptImgUrl1 = "";
  18391. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18392. if (
  18393. a.indexOf(
  18394. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18395. ) != -1
  18396. ) {
  18397. let _uuurl = await this.checkLink(f.url);
  18398. this.pptImgUrl1 =
  18399. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18400. // this.dialogVisible3 = true;
  18401. this.showType = 2;
  18402. } else if (
  18403. this.isAssetTypeAnImage(
  18404. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18405. )
  18406. ) {
  18407. this.showType = 4;
  18408. this.pptImgUrl1 = f.url;
  18409. } else if (
  18410. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18411. "PDF"
  18412. ) {
  18413. this.pptImgUrl1 = f.url;
  18414. // this.dialogVisible3 = true;
  18415. this.showType = 3;
  18416. } else {
  18417. window.open(this.file[i].url);
  18418. }
  18419. // this.isClickNav = "word" + i;
  18420. this.isClickNav = i;
  18421. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18422. },
  18423. downFileList(i) {
  18424. window.open(this.noImgList[i].url);
  18425. },
  18426. openAddWork() {
  18427. this.dialogVisible = true;
  18428. },
  18429. addBzWorks() {
  18430. let params = [
  18431. {
  18432. uid: this.userid,
  18433. cid: this.id,
  18434. stage: this.courseType,
  18435. task: this.taskCount,
  18436. tool: this.toolindex,
  18437. content: JSON.stringify(this.eScore),
  18438. type: 6,
  18439. },
  18440. ];
  18441. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18442. this.homeWorkLoading = true
  18443. this.ajax
  18444. .post(this.$store.state.api + "addCourseWorks", params)
  18445. .then((res) => {
  18446. this.$message({
  18447. message: "提交成功",
  18448. type: "success",
  18449. });
  18450. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18451. setTimeout(() => {
  18452. this.homeWorkLoading = false
  18453. }, 500);
  18454. this.eScore = { eBzText: "", eStar: [] };
  18455. this.studentEvalDialogVisible = false;
  18456. this.selectSWorks();
  18457. })
  18458. .catch((err) => {
  18459. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18460. setTimeout(() => {
  18461. this.homeWorkLoading = false
  18462. }, 500);
  18463. this.$message.error("提交失败");
  18464. console.error(err);
  18465. });
  18466. },
  18467. addBzWorksTeacher() {
  18468. let params = [
  18469. {
  18470. uid: this.sStudent.userid,
  18471. cid: this.id,
  18472. stage: this.courseType,
  18473. task: this.taskCount,
  18474. tool: this.toolindex,
  18475. content: JSON.stringify(this.eScore),
  18476. type: 6,
  18477. },
  18478. ];
  18479. this.ajax
  18480. .post(this.$store.state.api + "addCourseWorks", params)
  18481. .then((res) => {
  18482. this.$message({
  18483. message: "提交成功",
  18484. type: "success",
  18485. });
  18486. this.eScore = { eBzText: "", eStar: [] };
  18487. this.studentEvalDialogVisibleTeacher = false;
  18488. this.selectSWorks();
  18489. })
  18490. .catch((err) => {
  18491. this.$message.error("提交失败");
  18492. console.error(err);
  18493. });
  18494. },
  18495. addStudentAsk() {
  18496. if (!this.radio.length) {
  18497. this.$message.error("请选择选项");
  18498. return;
  18499. }
  18500. for (var i = 0; i < this.askJson.askCount; i++) {
  18501. if (
  18502. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18503. (this.radio[i] !== 0 && !this.radio[i])
  18504. ) {
  18505. this.$message.error("请选择选项");
  18506. return;
  18507. }
  18508. }
  18509. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18510. let params = [
  18511. {
  18512. uid: this.userid,
  18513. cid: this.id,
  18514. stage: this.courseType,
  18515. task: this.taskCount,
  18516. tool: this.toolindex,
  18517. content: JSON.stringify(this.askList),
  18518. type: 2,
  18519. },
  18520. ];
  18521. // console.log('params',params);
  18522. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18523. this.homeWorkLoading = true
  18524. this.ajax
  18525. .post(this.$store.state.api + "addCourseWorks", params)
  18526. .then((res) => {
  18527. this.$message({
  18528. message: "提交成功",
  18529. type: "success",
  18530. });
  18531. setTimeout(() => {
  18532. this.homeWorkLoading = false
  18533. }, 500);
  18534. this.askList = [];
  18535. this.dialogVisible5 = false;
  18536. this.selectStudent();
  18537. this.selectSWorks();
  18538. this.selectSLook();
  18539. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18540. })
  18541. .catch((err) => {
  18542. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18543. setTimeout(() => {
  18544. this.homeWorkLoading = false
  18545. }, 500);
  18546. this.$message.error("提交失败");
  18547. console.error(err);
  18548. });
  18549. },
  18550. addStudentAskTeacher() {
  18551. if (!this.radio.length) {
  18552. this.$message.error("请选择选项");
  18553. return;
  18554. }
  18555. for (var i = 0; i < this.askJson.askCount; i++) {
  18556. if (
  18557. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18558. (this.radio[i] !== 0 && !this.radio[i])
  18559. ) {
  18560. this.$message.error("请选择选项");
  18561. return;
  18562. }
  18563. }
  18564. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18565. let params = [
  18566. {
  18567. uid: this.sStudent.userid,
  18568. cid: this.id,
  18569. stage: this.courseType,
  18570. task: this.taskCount,
  18571. tool: this.toolindex,
  18572. content: JSON.stringify(this.askList),
  18573. type: 2,
  18574. },
  18575. ];
  18576. this.ajax
  18577. .post(this.$store.state.api + "addCourseWorks", params)
  18578. .then((res) => {
  18579. this.$message({
  18580. message: "提交成功",
  18581. type: "success",
  18582. });
  18583. this.askList = [];
  18584. this.dialogVisible5Teacher = false;
  18585. this.selectStudent();
  18586. this.selectSWorks();
  18587. this.selectSLook();
  18588. })
  18589. .catch((err) => {
  18590. this.$message.error("提交失败");
  18591. console.error(err);
  18592. });
  18593. },
  18594. addStudentTest() {
  18595. if (!this.radio.length) {
  18596. this.$message.error("请选择选项");
  18597. return;
  18598. }
  18599. for (var i = 0; i < this.testJson.testCount; i++) {
  18600. if (
  18601. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18602. (this.radio[i] !== 0 && !this.radio[i])
  18603. ) {
  18604. this.$message.error("请选择选项");
  18605. return;
  18606. }
  18607. }
  18608. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18609. let params = [
  18610. {
  18611. uid: this.userid,
  18612. cid: this.id,
  18613. stage: this.courseType,
  18614. task: this.taskCount,
  18615. tool: this.toolindex,
  18616. content: JSON.stringify(this.askList),
  18617. type: 8,
  18618. },
  18619. ];
  18620. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18621. this.homeWorkLoading = true
  18622. this.ajax
  18623. .post(this.$store.state.api + "addCourseWorks", params)
  18624. .then((res) => {
  18625. this.$message({
  18626. message: "提交成功",
  18627. type: "success",
  18628. });
  18629. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18630. setTimeout(() => {
  18631. this.homeWorkLoading = false
  18632. }, 500);
  18633. this.askList = [];
  18634. this.dialogVisibleChoice = false;
  18635. this.selectStudent();
  18636. this.selectSWorks();
  18637. this.selectSLook();
  18638. })
  18639. .catch((err) => {
  18640. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18641. setTimeout(() => {
  18642. this.homeWorkLoading = false
  18643. }, 500);
  18644. this.$message.error("提交失败");
  18645. console.error(err);
  18646. });
  18647. },
  18648. addStudentTestTeacher() {
  18649. if (!this.radio.length) {
  18650. this.$message.error("请选择选项");
  18651. return;
  18652. }
  18653. for (var i = 0; i < this.testJson.testCount; i++) {
  18654. if (
  18655. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18656. (this.radio[i] !== 0 && !this.radio[i])
  18657. ) {
  18658. this.$message.error("请选择选项");
  18659. return;
  18660. }
  18661. }
  18662. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18663. let params = [
  18664. {
  18665. uid: this.sStudent.userid,
  18666. cid: this.id,
  18667. stage: this.courseType,
  18668. task: this.taskCount,
  18669. tool: this.toolindex,
  18670. content: JSON.stringify(this.askList),
  18671. type: 8,
  18672. },
  18673. ];
  18674. this.ajax
  18675. .post(this.$store.state.api + "addCourseWorks", params)
  18676. .then((res) => {
  18677. this.$message({
  18678. message: "提交成功",
  18679. type: "success",
  18680. });
  18681. this.askList = [];
  18682. this.dialogVisibleChoiceTeacher = false;
  18683. this.selectStudent();
  18684. this.selectSWorks();
  18685. this.selectSLook();
  18686. })
  18687. .catch((err) => {
  18688. this.$message.error("提交失败");
  18689. console.error(err);
  18690. });
  18691. },
  18692. addWork() {
  18693. if (this.studyJuri[0].content == "") {
  18694. this.$message.error("请将信息填写完整");
  18695. return;
  18696. } else if (this.studyJuri[0].cover.length == 0) {
  18697. this.$message.error("请将信息填写完整");
  18698. return;
  18699. } else if (this.studyJuri[0].upVedio.length == 0) {
  18700. this.$message.error("请将信息填写完整");
  18701. return;
  18702. }
  18703. if (this.isNoHomeWork) {
  18704. this.$confirm(
  18705. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18706. "提示",
  18707. {
  18708. confirmButtonText: "确定",
  18709. cancelButtonText: "取消",
  18710. type: "warning",
  18711. }
  18712. )
  18713. .then(() => {
  18714. let params = [
  18715. {
  18716. uid: this.userid,
  18717. cid: this.id,
  18718. stage: this.courseType,
  18719. task: this.taskCount,
  18720. content: JSON.stringify(this.studyJuri),
  18721. },
  18722. ];
  18723. this.ajax
  18724. .post(this.$store.state.api + "addWorks", params)
  18725. .then((res) => {
  18726. this.$message({
  18727. message: "提交成功",
  18728. type: "success",
  18729. });
  18730. this.isNoHomeWork = true;
  18731. this.dialogVisible = false;
  18732. })
  18733. .catch((err) => {
  18734. this.$message.error("提交失败");
  18735. console.error(err);
  18736. });
  18737. })
  18738. .catch(() => {});
  18739. } else {
  18740. let params = [
  18741. {
  18742. uid: this.userid,
  18743. cid: this.id,
  18744. stage: this.courseType,
  18745. task: this.taskCount,
  18746. content: JSON.stringify(this.studyJuri),
  18747. },
  18748. ];
  18749. this.ajax
  18750. .post(this.$store.state.api + "addWorks", params)
  18751. .then((res) => {
  18752. this.$message({
  18753. message: "提交成功",
  18754. type: "success",
  18755. });
  18756. this.isNoHomeWork = true;
  18757. this.dialogVisible = false;
  18758. })
  18759. .catch((err) => {
  18760. this.$message.error("提交失败");
  18761. console.error(err);
  18762. });
  18763. }
  18764. },
  18765. selectCount() {
  18766. let params = {
  18767. cid: this.id,
  18768. chid: this.courseType,
  18769. uid: this.userid,
  18770. };
  18771. this.ajax
  18772. .get(this.$store.state.api + "selectToolsCount", params)
  18773. .then((res) => {
  18774. for (var i = 0; i < res.data[0].length; i++) {
  18775. if (res.data[0][i].tools == 1) {
  18776. this.wbCount = res.data[0][i].count;
  18777. } else if (res.data[0][i].tools == 2) {
  18778. this.wordCount = res.data[0][i].count;
  18779. } else if (res.data[0][i].tools == 3) {
  18780. this.mindCount = res.data[0][i].count;
  18781. } else if (res.data[0][i].tools == 4) {
  18782. this.askCount = res.data[0][i].count;
  18783. } else if (res.data[0][i].tools == 6) {
  18784. this.noteCount = res.data[0][i].count;
  18785. } else if (res.data[0][i].tools == 7) {
  18786. this.mindNetWorkCount = res.data[0][i].count;
  18787. } else if (res.data[0][i].tools == 8) {
  18788. this.libraryCount = res.data[0][i].count;
  18789. } else if (res.data[0][i].tools == 16) {
  18790. this.workCount = res.data[0][i].count;
  18791. } else if (res.data[0][i].tools == 10) {
  18792. this.timeCount = res.data[0][i].count;
  18793. } else if (res.data[0][i].tools == 15) {
  18794. this.answerCount = res.data[0][i].count;
  18795. } else if (res.data[0][i].tools == 18) {
  18796. this.trainCount = res.data[0][i].count;
  18797. }
  18798. }
  18799. })
  18800. .catch((err) => {
  18801. console.error(err);
  18802. });
  18803. },
  18804. openTools(t, i, index, c, sName,id) {
  18805. var z = JSON.parse(c);
  18806. this.noteName = sName;
  18807. if (t == 4) {
  18808. this.radio = [];
  18809. this.isAnswer = false;
  18810. let b = z[0].anwer;
  18811. this.radio = b;
  18812. this.askJson = z[0].askJson;
  18813. this.isAnswer = true;
  18814. this.dialogVisible5 = true;
  18815. } else if (t == 45) {
  18816. this.radio = [];
  18817. this.isAnswer = false;
  18818. let b = z[0].anwer;
  18819. this.radio = b;
  18820. this.testJson = z[0].testJson;
  18821. this.isAnswer = true;
  18822. this.dialogVisibleChoice = true;
  18823. }else if(t == 69){
  18824. this.oldEnglishJson1 = {}
  18825. this.oldEnglishJson = {}
  18826. this.englishList1 = {}
  18827. this.newEngIndex = -1;
  18828. this.isNoUserid = false;
  18829. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18830. .toolChoose[i].englishList;
  18831. this.oldEnglishJson = z;
  18832. this.engWid = id;
  18833. this.newEnglishList = { engTitle:"",engText:"" }
  18834. this.newEnglishList1 = []
  18835. this.selectEngC(id,z);
  18836. }else if(t == 62){
  18837. this.videoType = 1;
  18838. this.videoJson = {};
  18839. this.videoJson = JSON.parse(c);
  18840. // this.videoJson =
  18841. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18842. // index
  18843. // ].toolChoose[i].videoJson;
  18844. this.dialogVisibleVideo = true;
  18845. //this.dialog
  18846. }
  18847. // else if (t == 15) {
  18848. // this.answerQ = "";
  18849. // this.questionAnswer = "";
  18850. // this.answerQ = z[0].answerTitle;
  18851. // this.questionAnswer = z[0].answer;
  18852. // this.answerDialogVisible = true;
  18853. // }
  18854. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18855. },
  18856. fastText(p, t) {
  18857. if (t == 1) {
  18858. this.commentText += p;
  18859. } else {
  18860. this.eScore.eBzText += p;
  18861. }
  18862. },
  18863. addTools(t, i, index) {
  18864. var a = 0;
  18865. // this.taskCount = index;
  18866. this.toolindex = i;
  18867. if (t == 1) {
  18868. if (this.wbCount > 0) {
  18869. this.updateCount(this.wbCount, t);
  18870. } else {
  18871. this.wbCount++;
  18872. a = this.wbCount;
  18873. this.toolsCount(a, t);
  18874. }
  18875. window.topU.postMessage(
  18876. {
  18877. tools: "1",
  18878. cid: this.id,
  18879. stage: this.courseType,
  18880. task: this.taskCount,
  18881. tool: i,
  18882. },
  18883. "*"
  18884. );
  18885. } else if (t == 2) {
  18886. if (this.wordCount > 0) {
  18887. this.updateCount(this.wordCount, t);
  18888. } else {
  18889. this.wordCount++;
  18890. a = this.wordCount;
  18891. this.toolsCount(a, t);
  18892. }
  18893. window.topU.postMessage({ tools: "2" }, "*");
  18894. } else if (t == 3) {
  18895. if (this.mindCount > 0) {
  18896. this.updateCount(this.mindCount, t);
  18897. } else {
  18898. this.mindCount++;
  18899. a = this.mindCount;
  18900. this.toolsCount(a, t);
  18901. }
  18902. window.topU.postMessage(
  18903. {
  18904. tools: "3",
  18905. cid: this.id,
  18906. stage: this.courseType,
  18907. task: this.taskCount,
  18908. tool: i,
  18909. },
  18910. "*"
  18911. );
  18912. } else if (t == 4) {
  18913. this.radio = [];
  18914. this.noteName = "";
  18915. this.isAnswer = false;
  18916. if (this.askCount > 0) {
  18917. this.updateCount(this.askCount, t);
  18918. } else {
  18919. this.askCount++;
  18920. a = this.askCount;
  18921. this.toolsCount(a, t);
  18922. }
  18923. if (!this.dialogVisible2) {
  18924. this.askJson.askJson =
  18925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18926. index
  18927. ].toolChoose[i].askJson;
  18928. this.askJson.askTitle =
  18929. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18930. index
  18931. ].toolChoose[i].askTitle;
  18932. this.askJson.askCount =
  18933. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18934. index
  18935. ].toolChoose[i].askCount;
  18936. } else {
  18937. this.askJson.askJson = this.chapTools.askJson.askJson;
  18938. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18939. this.askJson.askCount = this.chapTools.askJson.askCount;
  18940. }
  18941. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18942. if (this.askJson.askJson[k].type == "2") {
  18943. this.radio.push([]);
  18944. } else {
  18945. this.radio.push("");
  18946. }
  18947. }
  18948. this.dialogVisible5 = true;
  18949. // window.topU.postMessage({ tools: "4" }, "*");
  18950. } else if (t == 45) {
  18951. this.noteName = "";
  18952. this.radio = [];
  18953. this.isAnswer = false;
  18954. if (this.askCount > 0) {
  18955. this.updateCount(this.askCount, t);
  18956. } else {
  18957. this.askCount++;
  18958. a = this.askCount;
  18959. this.toolsCount(a, t);
  18960. }
  18961. this.testJson =
  18962. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18963. index
  18964. ].toolChoose[i].testJson;
  18965. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18966. if (this.testJson.testJson[k].type == "2") {
  18967. this.radio.push([]);
  18968. } else {
  18969. this.radio.push("");
  18970. }
  18971. }
  18972. this.dialogVisibleChoice = true;
  18973. // window.topU.postMessage({ tools: "4" }, "*");
  18974. } else if (t == 5) {
  18975. if (this.scoreCount > 0) {
  18976. this.updateCount(this.scoreCount, t);
  18977. } else {
  18978. this.scoreCount++;
  18979. a = this.scoreCount;
  18980. this.toolsCount(a, t);
  18981. }
  18982. this.dialogVisible4 = true;
  18983. // window.topU.postMessage({ tools: "5" }, "*");
  18984. } else if (t == 6) {
  18985. if (this.noteCount > 0) {
  18986. this.updateCount(this.noteCount, t);
  18987. } else {
  18988. this.noteCount++;
  18989. a = this.noteCount;
  18990. this.toolsCount(a, t);
  18991. }
  18992. window.topU.postMessage(
  18993. {
  18994. tools: "6",
  18995. cid: this.id,
  18996. stage: this.courseType,
  18997. task: this.taskCount,
  18998. tool: i,
  18999. },
  19000. "*"
  19001. );
  19002. } else if (t == 7) {
  19003. if (this.mindNetWorkCount > 0) {
  19004. this.updateCount(this.mindNetWorkCount, t);
  19005. } else {
  19006. this.mindNetWorkCount++;
  19007. a = this.mindNetWorkCount;
  19008. this.toolsCount(a, t);
  19009. }
  19010. window.topU.postMessage(
  19011. {
  19012. tools: "7",
  19013. cid: this.id,
  19014. stage: this.courseType,
  19015. task: this.taskCount,
  19016. tool: i,
  19017. },
  19018. "*"
  19019. );
  19020. } else if (t == 16) {
  19021. if (this.workCount > 0) {
  19022. this.updateCount(this.workCount, t);
  19023. } else {
  19024. this.workCount++;
  19025. a = this.workCount;
  19026. this.toolsCount(a, t);
  19027. }
  19028. this.dialogVisible = true;
  19029. } else if (t == 50) {
  19030. if (this.tType == 2) {
  19031. this.$message.error("不支持学生使用");
  19032. return;
  19033. }
  19034. this.plworkFile = [];
  19035. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19036. if (!this.uploadCid) {
  19037. this.$message.error(
  19038. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19039. );
  19040. return;
  19041. }
  19042. // this.uploadCid =
  19043. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19044. // index
  19045. // ].toolChoose[i].uploadJson[0];
  19046. this.selectUploadStudent(2);
  19047. } else if (t == 8) {
  19048. if (this.libraryCount > 0) {
  19049. this.updateCount(this.libraryCount, t);
  19050. } else {
  19051. this.libraryCount++;
  19052. a = this.libraryCount;
  19053. this.toolsCount(a, t);
  19054. }
  19055. window.topU.postMessage({ tools: "8" }, "*");
  19056. } else if (t == 17) {
  19057. if (this.libraryCount > 0) {
  19058. this.updateCount(this.libraryCount, t);
  19059. } else {
  19060. this.libraryCount++;
  19061. a = this.libraryCount;
  19062. this.toolsCount(a, t);
  19063. }
  19064. window.topU.postMessage({ tools: "17" }, "*");
  19065. } else if (t == 18) {
  19066. if (this.trainCount > 0) {
  19067. this.updateCount(this.trainCount, t);
  19068. } else {
  19069. this.trainCount++;
  19070. a = this.trainCount;
  19071. this.toolsCount(a, t);
  19072. }
  19073. window.topU.postMessage({ tools: "18" }, "*");
  19074. } else if (t == 10) {
  19075. if (this.timeCount > 0) {
  19076. this.updateCount(this.timeCount, t);
  19077. } else {
  19078. this.timeCount++;
  19079. a = this.timeCount;
  19080. this.toolsCount(a, t);
  19081. }
  19082. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19083. .taskJson[index].toolChoose[i].preTime
  19084. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19085. .toolChoose[i].preTime
  19086. : "";
  19087. this.timeDialogVisible = true;
  19088. } else if (t == 15) {
  19089. this.answerQ = "";
  19090. this.questionAnswer = "";
  19091. if (this.answerCount > 0) {
  19092. this.updateCount(this.answerCount, t);
  19093. } else {
  19094. this.answerCount++;
  19095. a = this.answerCount;
  19096. this.toolsCount(a, t);
  19097. }
  19098. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19099. .taskJson[index].toolChoose[i].answerQ
  19100. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19101. .toolChoose[i].answerQ
  19102. : "";
  19103. this.answerDialogVisible = true;
  19104. } else if (t == 21) {
  19105. window.topU.postMessage({ tools: "21" }, "*");
  19106. } else if (t == 22) {
  19107. window.topU.postMessage({ tools: "22" }, "*");
  19108. } else if (t == 23) {
  19109. window.topU.postMessage({ tools: "23" }, "*");
  19110. } else if (t == 24) {
  19111. window.topU.postMessage({ tools: "24" }, "*");
  19112. } else if (t == 25) {
  19113. window.topU.postMessage({ tools: "25" }, "*");
  19114. } else if (t == 31) {
  19115. window.topU.postMessage({ tools: "31" }, "*");
  19116. } else if (t == 28) {
  19117. window.topU.postMessage({ tools: "28" }, "*");
  19118. } else if (t == 37) {
  19119. window.topU.postMessage({ tools: "37" }, "*");
  19120. } else if (t == 38) {
  19121. window.topU.postMessage({ tools: "38" }, "*");
  19122. } else if (t == 39) {
  19123. window.topU.postMessage({ tools: "39" }, "*");
  19124. } else if (t == 32) {
  19125. window.topU.postMessage({ tools: "32" }, "*");
  19126. } else if (t == 66) {
  19127. window.topU.postMessage({ tools: "66" }, "*");
  19128. } else if (t == 67) {
  19129. window.topU.postMessage({ tools: "67" }, "*");
  19130. } else if (t == 68) {
  19131. window.topU.postMessage({ tools: "68" }, "*");
  19132. } else if (t == 57) {
  19133. // window.topU.postMessage({ tools: "57" }, "*");
  19134. window.topU.postMessage(
  19135. {
  19136. tools: "57u",
  19137. cid: this.id,
  19138. stage: this.courseType,
  19139. task: this.taskCount,
  19140. tool: i,
  19141. },
  19142. "*"
  19143. );
  19144. } else if (t == 58) {
  19145. window.topU.postMessage({ tools: "58" }, "*");
  19146. } else if (t == 59) {
  19147. window.topU.postMessage({ tools: "59" }, "*");
  19148. } else if (t == 60) {
  19149. window.topU.postMessage({ tools: "60" }, "*");
  19150. } else if (t == 61) {
  19151. window.topU.postMessage({ tools: "61" }, "*");
  19152. } else if (t == 63) {
  19153. window.topU.postMessage({ tools: "63" }, "*");
  19154. } else if (t == 71) {
  19155. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19156. // this.$message.error("该工具不可使用");
  19157. // return
  19158. // }
  19159. window.topU.postMessage({ tools: "71" }, "*");
  19160. } else if (t == 72) {
  19161. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19162. .taskJson[index].toolChoose[i].appJson
  19163. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19164. .toolChoose[i].appJson
  19165. : "";
  19166. if(!item || !item.url){
  19167. this.$message.error("应用连接为空, 请到课程管理中添加");
  19168. return;
  19169. }
  19170. if (!document.fullscreenElement) {
  19171. this.enterFullScreen();
  19172. }
  19173. this.$refs.appStoreC.getData(item.url,this.userid)
  19174. // window.open(item.url, "_blank");
  19175. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19176. } else if (t == 69) {
  19177. if (this.worksStudent[i].length) {
  19178. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19179. if (this.userid == this.worksStudent[i][k].userid) {
  19180. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19181. break;
  19182. } else {
  19183. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19184. }
  19185. }
  19186. } else {
  19187. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19188. }
  19189. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19190. .taskJson[index].toolChoose[i].englishList
  19191. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19192. .toolChoose[i].englishList
  19193. : {};
  19194. this.englishToolIndex = i;
  19195. this.myAnList = this.myAnswerList1;
  19196. this.engDialogVisible = true;
  19197. } else if (t == 70) {
  19198. if (this.worksStudent[i].length) {
  19199. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19200. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19201. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19202. break;
  19203. } else {
  19204. this.englishVoiceJsonWork = [];
  19205. }
  19206. }
  19207. } else {
  19208. this.englishVoiceJsonWork = [];
  19209. }
  19210. let englishVoiceJson = {}
  19211. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19212. .taskJson[index].toolChoose[i].englishVoiceJson
  19213. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19214. .toolChoose[i].englishVoiceJson
  19215. : {};
  19216. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19217. this.EnglishVoiceDialog = true;
  19218. } else if (t == 65) {
  19219. if (this.tType == 2) {
  19220. this.$message.error("不支持学生使用");
  19221. return;
  19222. }
  19223. this.uploadCid = this.tcid;
  19224. if (!this.uploadCid) {
  19225. this.$message.error(
  19226. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19227. );
  19228. return;
  19229. }
  19230. this.selectPickStudent();
  19231. } else if (t == 26) {
  19232. window.topU.postMessage(
  19233. {
  19234. tools: "26",
  19235. cid: this.id,
  19236. stage: this.courseType,
  19237. task: this.taskCount,
  19238. tool: i,
  19239. },
  19240. "*"
  19241. );
  19242. } else if (t == 40) {
  19243. if (this.evalCount > 0) {
  19244. this.updateCount(this.evalCount, t);
  19245. } else {
  19246. this.evalCount++;
  19247. a = this.evalCount;
  19248. this.toolsCount(a, t);
  19249. }
  19250. this.eScore = { eBzText: "", eStar: [] };
  19251. if (this.worksStudent[i].length) {
  19252. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19253. if (this.userid == this.worksStudent[i][k].userid) {
  19254. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19255. this.rateJson =
  19256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19257. index
  19258. ].toolChoose[i].rateJson;
  19259. break;
  19260. } else {
  19261. this.rateJson =
  19262. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19263. index
  19264. ].toolChoose[i].rateJson;
  19265. }
  19266. }
  19267. } else {
  19268. this.rateJson =
  19269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19270. index
  19271. ].toolChoose[i].rateJson;
  19272. }
  19273. this.isStar = false;
  19274. this.studentEvalDialogVisible = true;
  19275. } else if (t == 41) {
  19276. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19277. .taskJson[index].toolChoose[i].selectJson
  19278. ? JSON.parse(
  19279. JSON.stringify(
  19280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19281. index
  19282. ].toolChoose[i].selectJson
  19283. )
  19284. )
  19285. : { url: "", select: [], answer: [] };
  19286. if (this.worksStudent[i].length) {
  19287. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19288. if (this.userid == this.worksStudent[i][k].userid) {
  19289. var a = this.worksStudent[i][k].works.split(",");
  19290. for (var ki = 0; ki < a.length; ki++) {
  19291. a[ki] = parseInt(a[ki]);
  19292. }
  19293. this.selectAnswer = {
  19294. answer: a,
  19295. stu: this.worksStudent[i][k].sName,
  19296. };
  19297. break;
  19298. } else {
  19299. this.selectAnswer = { answer: [], stu: "" };
  19300. }
  19301. }
  19302. } else {
  19303. this.selectAnswer = { answer: [], stu: "" };
  19304. }
  19305. this.isSelect = false;
  19306. this.dialogVisibleSelect = true;
  19307. } else if (t == 44) {
  19308. window.topU.postMessage({ tools: "44" }, "*");
  19309. } else if (t == 47) {
  19310. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19311. .taskJson[index].toolChoose[i].sentenceList
  19312. ? JSON.parse(
  19313. JSON.stringify(
  19314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19315. index
  19316. ].toolChoose[i].sentenceList
  19317. )
  19318. )
  19319. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19320. for (var q = 0; q < this.sentenceList.length; q++) {
  19321. this.sentenceList[q].chooseSenList = [];
  19322. this.sentenceList[q].addChangeSen = [];
  19323. this.sentenceList[q].addChangeSen = JSON.parse(
  19324. JSON.stringify(this.sentenceList[q].addSentence)
  19325. );
  19326. this.sentenceList[q].chooseSenList.length =
  19327. this.sentenceList[q].rightAnswer.length;
  19328. }
  19329. this.dialogVisibleSentence = true;
  19330. } else if (t == 48) {
  19331. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19332. .taskJson[index].toolChoose[i].tableJson
  19333. ? JSON.parse(
  19334. JSON.stringify(
  19335. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19336. index
  19337. ].toolChoose[i].tableJson
  19338. )
  19339. )
  19340. : { text: "" };
  19341. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19342. if (this.worksStudent[i].length) {
  19343. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19344. if (this.userid == this.worksStudent[i][k].userid) {
  19345. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19346. break;
  19347. }
  19348. }
  19349. }
  19350. this.dialogVisibleTable = true;
  19351. } else if (t == 52) {
  19352. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19353. .taskJson[index].toolChoose[i].wordJson
  19354. ? JSON.parse(
  19355. JSON.stringify(
  19356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19357. index
  19358. ].toolChoose[i].wordJson
  19359. )
  19360. )
  19361. : { text: "" };
  19362. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19363. if (this.worksStudent[i].length) {
  19364. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19365. if (this.userid == this.worksStudent[i][k].userid) {
  19366. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19367. break;
  19368. }
  19369. }
  19370. }
  19371. this.dialogVisibleWord = true;
  19372. } else if (t == 49) {
  19373. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19374. return
  19375. }
  19376. this.groupJson =
  19377. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19378. index
  19379. ].toolChoose[i].groupJson;
  19380. this.islock = this.groupJson.islock == 1 ? true : false;
  19381. this.dialogVisibleGroup = true;
  19382. } else if (t == 62) {
  19383. this.videoType = 0;
  19384. this.videoJson = {};
  19385. this.videoJson =
  19386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19387. index
  19388. ].toolChoose[i].videoJson;
  19389. this.dialogVisibleVideo = true;
  19390. }
  19391. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19392. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19393. },
  19394. teacherWorkSubmit(t, i, index, s) {
  19395. this.sStudent = s;
  19396. this.toolindex = i;
  19397. this.sTool = t;
  19398. if (this.tType !== "1" && this.tType !== "4") {
  19399. return;
  19400. }
  19401. if (t == 16 || t == 32 || t == 50) {
  19402. this.dialogVisibleWorks = true;
  19403. } else if (t == 15) {
  19404. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19405. .taskJson[index].toolChoose[i].answerQ
  19406. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19407. .toolChoose[i].answerQ
  19408. : "";
  19409. this.questionAnswer = "";
  19410. this.answerDialogVisibleTeacher = true; //问答
  19411. } else if (t == 52) {
  19412. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19413. .taskJson[index].toolChoose[i].wordJson
  19414. ? JSON.parse(
  19415. JSON.stringify(
  19416. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19417. index
  19418. ].toolChoose[i].wordJson
  19419. )
  19420. )
  19421. : { text: "" };
  19422. if (this.worksStudent[i].length) {
  19423. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19424. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19425. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19426. break;
  19427. }
  19428. }
  19429. }
  19430. this.dialogVisibleWordTeacher = true; //文档
  19431. } else if (t == 4) {
  19432. this.radio = [];
  19433. this.noteName = "";
  19434. this.isAnswer = false;
  19435. if (this.askCount > 0) {
  19436. this.updateCount(this.askCount, t);
  19437. } else {
  19438. this.askCount++;
  19439. a = this.askCount;
  19440. this.toolsCount(a, t);
  19441. }
  19442. if (!this.dialogVisible2) {
  19443. this.askJson.askJson =
  19444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19445. index
  19446. ].toolChoose[i].askJson;
  19447. this.askJson.askTitle =
  19448. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19449. index
  19450. ].toolChoose[i].askTitle;
  19451. this.askJson.askCount =
  19452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19453. index
  19454. ].toolChoose[i].askCount;
  19455. } else {
  19456. this.askJson.askJson = this.chapTools.askJson.askJson;
  19457. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19458. this.askJson.askCount = this.chapTools.askJson.askCount;
  19459. }
  19460. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19461. if (this.askJson.askJson[k].type == "2") {
  19462. this.radio.push([]);
  19463. } else {
  19464. this.radio.push("");
  19465. }
  19466. }
  19467. this.dialogVisible5Teacher = true;
  19468. } else if (t == 45) {
  19469. this.noteName = "";
  19470. this.radio = [];
  19471. this.isAnswer = false;
  19472. if (this.askCount > 0) {
  19473. this.updateCount(this.askCount, t);
  19474. } else {
  19475. this.askCount++;
  19476. a = this.askCount;
  19477. this.toolsCount(a, t);
  19478. }
  19479. this.testJson =
  19480. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19481. index
  19482. ].toolChoose[i].testJson;
  19483. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19484. if (this.testJson.testJson[k].type == "2") {
  19485. this.radio.push([]);
  19486. } else {
  19487. this.radio.push("");
  19488. }
  19489. }
  19490. this.dialogVisibleChoiceTeacher = true;
  19491. } else if (t == 41) {
  19492. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19493. .taskJson[index].toolChoose[i].selectJson
  19494. ? JSON.parse(
  19495. JSON.stringify(
  19496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19497. index
  19498. ].toolChoose[i].selectJson
  19499. )
  19500. )
  19501. : { url: "", select: [], answer: [] };
  19502. if (this.worksStudent[i].length) {
  19503. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19504. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19505. var a = this.worksStudent[i][k].works.split(",");
  19506. for (var ki = 0; ki < a.length; ki++) {
  19507. a[ki] = parseInt(a[ki]);
  19508. }
  19509. this.selectAnswer = {
  19510. answer: a,
  19511. stu: this.worksStudent[i][k].sName,
  19512. };
  19513. break;
  19514. } else {
  19515. this.selectAnswer = { answer: [], stu: "" };
  19516. }
  19517. }
  19518. } else {
  19519. this.selectAnswer = { answer: [], stu: "" };
  19520. }
  19521. this.isSelect = false;
  19522. this.dialogVisibleSelectTeacher = true;
  19523. } else if (t == 47) {
  19524. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19525. .taskJson[index].toolChoose[i].sentenceList
  19526. ? JSON.parse(
  19527. JSON.stringify(
  19528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19529. index
  19530. ].toolChoose[i].sentenceList
  19531. )
  19532. )
  19533. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19534. for (var q = 0; q < this.sentenceList.length; q++) {
  19535. this.sentenceList[q].chooseSenList = [];
  19536. this.sentenceList[q].addChangeSen = [];
  19537. this.sentenceList[q].addChangeSen = JSON.parse(
  19538. JSON.stringify(this.sentenceList[q].addSentence)
  19539. );
  19540. this.sentenceList[q].chooseSenList.length =
  19541. this.sentenceList[q].rightAnswer.length;
  19542. }
  19543. this.dialogVisibleSentenceTeacher = true;
  19544. } else if (t == 48) {
  19545. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19546. .taskJson[index].toolChoose[i].tableJson
  19547. ? JSON.parse(
  19548. JSON.stringify(
  19549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19550. index
  19551. ].toolChoose[i].tableJson
  19552. )
  19553. )
  19554. : { text: "" };
  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. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19559. break;
  19560. }
  19561. }
  19562. }
  19563. this.dialogVisibleTableTeacher = true;
  19564. } else if (t == 40) {
  19565. if (this.evalCount > 0) {
  19566. this.updateCount(this.evalCount, t);
  19567. } else {
  19568. this.evalCount++;
  19569. a = this.evalCount;
  19570. this.toolsCount(a, t);
  19571. }
  19572. this.eScore = { eBzText: "", eStar: [] };
  19573. if (this.worksStudent[i].length) {
  19574. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19575. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19576. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19577. this.rateJson =
  19578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19579. index
  19580. ].toolChoose[i].rateJson;
  19581. break;
  19582. } else {
  19583. this.rateJson =
  19584. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19585. index
  19586. ].toolChoose[i].rateJson;
  19587. }
  19588. }
  19589. } else {
  19590. this.rateJson =
  19591. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19592. index
  19593. ].toolChoose[i].rateJson;
  19594. }
  19595. this.isStar = false;
  19596. this.studentEvalDialogVisibleTeacher = true;
  19597. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19598. window.topU.postMessage(
  19599. {
  19600. tools: t + "teacher",
  19601. cid: this.id,
  19602. stage: this.courseType,
  19603. task: this.taskCount,
  19604. tool: i,
  19605. student: this.sStudent,
  19606. },
  19607. "*"
  19608. );
  19609. }else if (t == 72) {
  19610. if (!document.fullscreenElement) {
  19611. this.enterFullScreen();
  19612. }
  19613. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19614. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19615. }
  19616. },
  19617. openCocoPi(tool, i, uid, uname) {
  19618. let student = {
  19619. userid: uid,
  19620. student: uname,
  19621. };
  19622. if (tool == 57) {
  19623. window.topU.postMessage(
  19624. {
  19625. tools: tool + "teacher",
  19626. cid: this.id,
  19627. stage: this.courseType,
  19628. task: this.taskCount,
  19629. tool: i,
  19630. student: student,
  19631. },
  19632. "*"
  19633. );
  19634. }
  19635. },
  19636. setRightAnswer(s, i, j) {
  19637. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19638. if (
  19639. this.sentenceList[i].chooseSenList[q] == undefined ||
  19640. this.sentenceList[i].chooseSenList[q] == ""
  19641. ) {
  19642. this.sentenceList[i].chooseSenList[q] = s;
  19643. this.sentenceList[i].addChangeSen[j] = "";
  19644. break;
  19645. }
  19646. }
  19647. this.$forceUpdate();
  19648. },
  19649. returnCard(r, i, j) {
  19650. var a = this.sentenceList[i].addSentence.indexOf(r);
  19651. this.sentenceList[i].chooseSenList[j] = "";
  19652. this.sentenceList[i].addChangeSen[a] = r;
  19653. this.$forceUpdate();
  19654. },
  19655. // addSentenceTool() {
  19656. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19657. // this.taskCount
  19658. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19659. // this.sentenceList = [
  19660. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19661. // ];
  19662. // this.dialogVisibleSentence = false;
  19663. // },
  19664. toolsCount(a, t) {
  19665. let params = {
  19666. cid: this.id,
  19667. chid: this.courseType,
  19668. uid: this.userid,
  19669. tid: t,
  19670. count: a,
  19671. };
  19672. this.ajax
  19673. .get(this.$store.state.api + "insertToolsCount", params)
  19674. .then((res) => {
  19675. this.selectCount();
  19676. })
  19677. .catch((err) => {
  19678. console.error(err);
  19679. });
  19680. },
  19681. updateCount(c, t) {
  19682. c++;
  19683. let params = {
  19684. cid: this.id,
  19685. chid: this.courseType,
  19686. uid: this.userid,
  19687. tid: t,
  19688. count: c,
  19689. };
  19690. this.ajax
  19691. .get(this.$store.state.api + "updateToolsCount", params)
  19692. .then((res) => {
  19693. this.selectCount();
  19694. })
  19695. .catch((err) => {
  19696. console.error(err);
  19697. });
  19698. },
  19699. checkEva() {
  19700. if (this.evalua != "") {
  19701. for (var i = 0; i < this.evaJuri.length; i++) {
  19702. if (this.evalua == this.evaJuri[i].id) {
  19703. this.eTitle = this.evaJuri[i].title;
  19704. this.eJson = JSON.parse(this.evaJuri[i].content);
  19705. }
  19706. }
  19707. this.$forceUpdate();
  19708. setTimeout(() => {
  19709. this.setMindData();
  19710. }, 0);
  19711. }
  19712. },
  19713. selectEva() {
  19714. let params = {
  19715. oid: this.oid,
  19716. };
  19717. this.ajax
  19718. .get(this.$store.state.api + "selectAllEvaluation", params)
  19719. .then((res) => {
  19720. this.evaJuri = res.data[0];
  19721. })
  19722. .catch((err) => {
  19723. console.error(err);
  19724. });
  19725. },
  19726. setMindData() {
  19727. this.data.data = [];
  19728. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19729. let _eJson = Object.keys(this.eJson);
  19730. let _e = this.eJson;
  19731. for (let i = 0; i < _eJson.length; i++) {
  19732. let element = _e[_eJson[i]];
  19733. this.data.data.push({
  19734. id: element.id,
  19735. parentid: "root",
  19736. topic: element.name,
  19737. });
  19738. let _eJsonc = Object.keys(element.child);
  19739. let _e2 = element.child;
  19740. for (let j = 0; j < _eJsonc.length; j++) {
  19741. let _ec = _e2[_eJsonc[j]];
  19742. this.data.data.push({
  19743. id: _ec.id,
  19744. parentid: element.id,
  19745. topic: _ec.name,
  19746. });
  19747. let _eJsonz = Object.keys(_ec.child);
  19748. let _e3 = _ec.child;
  19749. for (let z = 0; z < _eJsonz.length; z++) {
  19750. let _ez = _e3[_eJsonz[z]];
  19751. this.data.data.push({
  19752. id: _ez.id,
  19753. parentid: _ec.id,
  19754. topic: _ez.name,
  19755. });
  19756. }
  19757. }
  19758. }
  19759. this.$forceUpdate();
  19760. },
  19761. checkFileFull(type, url) {
  19762. this.fullDialogVisible = true;
  19763. this.fulltype = type;
  19764. this.fullUrl = url;
  19765. },
  19766. async checkFileFull1(t, f) {
  19767. this.fullDialogVisible = true;
  19768. if (t == 6) {
  19769. this.fulltype = 1;
  19770. this.fullUrl = JSON.parse(JSON.stringify(f));
  19771. } else if (t == 8 ) {
  19772. this.fulltype = 2;
  19773. this.fullUrl = f.url;
  19774. }else if (t == 15) {
  19775. this.diffKey = new Date().getTime();
  19776. this.fulltype = 4;
  19777. this.fullUrl = f.url;
  19778. } else if (t == 16) {
  19779. this.fulltype = 16;
  19780. this.fullUrl = f.url;
  19781. } else if (
  19782. t == 3 &&
  19783. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19784. "PDF"
  19785. ) {
  19786. this.fulltype = 3;
  19787. this.fullUrl = f.url;
  19788. } else if (t == 3) {
  19789. this.fulltype = 2;
  19790. let _uuurl = await this.checkLink(f.url);
  19791. this.fullUrl =
  19792. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19793. }
  19794. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19795. },
  19796. openSname(n, id, i, uid) {
  19797. this.snameWid = id;
  19798. this.worksSName = n;
  19799. this.worksSid = uid == n ? "" : uid;
  19800. this.toolindex = i;
  19801. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19802. if (!this.uploadCid) {
  19803. this.$message.error(
  19804. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19805. );
  19806. return;
  19807. }
  19808. this.selectUploadStudent(1);
  19809. },
  19810. updateName() {
  19811. let params = {
  19812. n: this.worksSName,
  19813. cid: this.snameWid,
  19814. };
  19815. this.ajax
  19816. .get(this.$store.state.api + "updateCourseWorksName", params)
  19817. .then((res) => {
  19818. this.$message({
  19819. message: "修改成功",
  19820. type: "success",
  19821. });
  19822. this.dialogVisibleSname = false;
  19823. this.getCourseDetail(2);
  19824. this.snameWid = "";
  19825. this.worksSName = "";
  19826. })
  19827. .catch((err) => {
  19828. console.error(err);
  19829. });
  19830. },
  19831. downloadFile2(f) {
  19832. // const loading = this.$loading.service({
  19833. // background: "rgba(255, 255, 255, 0.7)",
  19834. // target: document.body,
  19835. // text: "文件加载中...",
  19836. // });
  19837. // let url2 = f.url;
  19838. // let _url2 = "";
  19839. // if (
  19840. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19841. // ) {
  19842. // _url2 = url2.split(
  19843. // "https://view.officeapps.live.com/op/view.aspx?src="
  19844. // )[1];
  19845. // } else {
  19846. // _url2 = url2;
  19847. // }
  19848. // let params = {
  19849. // url: _url2,
  19850. // name: f.name,
  19851. // };
  19852. // this.ajax
  19853. // .get(this.$store.state.api + "download", params)
  19854. // .then((res) => {
  19855. // loading.close();
  19856. // let content = res.data.data.data;
  19857. // let ab = new ArrayBuffer(content.length);
  19858. // let view = new Uint8Array(ab);
  19859. // for (var i = 0; i < content.length; ++i) {
  19860. // view[i] = content[i];
  19861. // }
  19862. // let elink = document.createElement("a");
  19863. // elink.download = f.name;
  19864. // elink.style.display = "none";
  19865. // let blob = new Blob([ab], {
  19866. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19867. // });
  19868. // elink.href = URL.createObjectURL(blob);
  19869. // document.body.appendChild(elink);
  19870. // elink.click();
  19871. // document.body.removeChild(elink);
  19872. // })
  19873. // .catch((err) => {
  19874. // loading.close();
  19875. // console.error(err);
  19876. // });
  19877. var credentials = {
  19878. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19879. secretAccessKey: "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",
  19880. }; //秘钥形式的登录上传
  19881. window.AWS.config.update(credentials);
  19882. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19883. let url2 = f.url;
  19884. let _url2 = "";
  19885. if (
  19886. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19887. ) {
  19888. _url2 = url2.split(
  19889. "https://view.officeapps.live.com/op/view.aspx?src="
  19890. )[1];
  19891. } else {
  19892. _url2 = url2;
  19893. }
  19894. let _this = this;
  19895. _this.downLoading = true
  19896. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19897. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19898. var params = {
  19899. Bucket: "ccrb",
  19900. Key: name
  19901. };
  19902. s3.getObject(params, function (err, data) {
  19903. _this.downLoading = false
  19904. if (err) console.log(err, err.stack); // an error occurred
  19905. else {
  19906. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19907. let a = document.createElement("a");
  19908. a.name = f.name;
  19909. a.href = url;
  19910. a.download = f.name;
  19911. a.click();
  19912. console.log(data);
  19913. } // sxuccessful response
  19914. });
  19915. return;
  19916. let url = f.url;
  19917. let _url = "";
  19918. if (
  19919. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19920. ) {
  19921. _url = url.split(
  19922. "https://view.officeapps.live.com/op/view.aspx?src="
  19923. )[1];
  19924. } else {
  19925. _url = url;
  19926. }
  19927. _this.downLoading = true
  19928. let x = new XMLHttpRequest();
  19929. x.open("GET", _url, true);
  19930. x.responseType = "blob";
  19931. x.onload = function () {
  19932. _this.downLoading = false
  19933. let url = window.URL.createObjectURL(new Blob([x.response]));
  19934. let a = document.createElement("a");
  19935. a.name = f.name;
  19936. a.href = url;
  19937. a.download = f.name;
  19938. a.click();
  19939. };
  19940. x.send();
  19941. },
  19942. downloadFile(url,uid) {
  19943. if (this.tType == 1 || this.userid == uid) {
  19944. // this.$message.info("查看作业-下载文件")
  19945. var credentials = {
  19946. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19947. secretAccessKey: "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",
  19948. }; //秘钥形式的登录上传
  19949. window.AWS.config.update(credentials);
  19950. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19951. let url2 = url;
  19952. let _url2 = "";
  19953. if (
  19954. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19955. ) {
  19956. _url2 = url2.split(
  19957. "https://view.officeapps.live.com/op/view.aspx?src="
  19958. )[1];
  19959. } else {
  19960. _url2 = url2;
  19961. }
  19962. const loading2 = this.$loading.service({
  19963. background: "rgba(255, 255, 255, 0.7)",
  19964. target: document.body,
  19965. text: "文件加载中...",
  19966. });
  19967. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19968. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19969. var params = {
  19970. Bucket: "ccrb",
  19971. Key: name
  19972. };
  19973. s3.getObject(params, function (err, data) {
  19974. loading2.close();
  19975. if (err) console.log(err, err.stack); // an error occurred
  19976. else {
  19977. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19978. let a = document.createElement("a");
  19979. a.name = name;
  19980. a.href = url;
  19981. a.download = name;
  19982. a.click();
  19983. console.log(data);
  19984. } // sxuccessful response
  19985. });
  19986. }
  19987. return;
  19988. let _this = this;
  19989. let _url = "";
  19990. if (
  19991. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19992. ) {
  19993. _url = url.split(
  19994. "https://view.officeapps.live.com/op/view.aspx?src="
  19995. )[1];
  19996. } else {
  19997. _url = url;
  19998. }
  19999. const x = new XMLHttpRequest();
  20000. x.open("GET", _url, true);
  20001. x.responseType = "blob";
  20002. // this.downLoading = true
  20003. const loading = _this.$loading.service({
  20004. background: "rgba(255, 255, 255, 0.7)",
  20005. target: document.body,
  20006. text: "文件加载中...",
  20007. });
  20008. // _this.$message.success("文件下载中...");
  20009. x.onload = function (e) {
  20010. loading.close();
  20011. let content = x.response;
  20012. let elink = document.createElement("a");
  20013. elink.download = decodeURI(
  20014. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20015. );
  20016. elink.style.display = "none";
  20017. let blob = new Blob([content]);
  20018. elink.href = URL.createObjectURL(blob);
  20019. document.body.appendChild(elink);
  20020. elink.click();
  20021. document.body.removeChild(elink);
  20022. };
  20023. x.send();
  20024. },
  20025. openLine(url) {
  20026. window.open(url);
  20027. },
  20028. resize() {
  20029. if (document.getElementsByClassName("box_course").length) {
  20030. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20031. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20032. if (this.showType == 2 || this.showType == 3) {
  20033. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20034. document.getElementsByClassName("navBox")[0].style.height =
  20035. a - 40 + 0+ "px";
  20036. }
  20037. } else {
  20038. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20039. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20040. }
  20041. }
  20042. }
  20043. this.Stbodywidth =
  20044. document.getElementsByClassName("student_body").length &&
  20045. document.getElementsByClassName("student_body")[0].offsetWidth;
  20046. },
  20047. closeDraw() {
  20048. this.bg = null;
  20049. this.drawShow = false;
  20050. },
  20051. showPicturePaint(url) {
  20052. let params = {
  20053. img: url,
  20054. };
  20055. this.ajax
  20056. .get(this.$store.state.api + "imgToBase64", params)
  20057. .then((res) => {
  20058. this.drawShow = true;
  20059. this.bg = res.data[0].img;
  20060. })
  20061. .catch((err) => {
  20062. console.error(err);
  20063. });
  20064. },
  20065. addImgDraw(base64) {
  20066. let file = { name: "批注图.png" };
  20067. let img = this.dataUrlToFile(base64, file);
  20068. this.beforeUpload1(img, 5);
  20069. },
  20070. addImgDrawImG(url) {
  20071. // console.log(url);
  20072. let params = [
  20073. {
  20074. wid: this.commentDetail.wid,
  20075. img: url,
  20076. },
  20077. ];
  20078. this.ajax
  20079. .post(this.$store.state.api + "updateCourseWorks", params)
  20080. .then((res) => {
  20081. this.$message({
  20082. message: "提交成功",
  20083. type: "success",
  20084. });
  20085. this.drawShow = false;
  20086. this.bg = "";
  20087. this.selectSWorks();
  20088. this.selectStudent();
  20089. })
  20090. .catch((err) => {
  20091. this.$message.error("提交失败");
  20092. console.error(err);
  20093. });
  20094. },
  20095. deletePicturePaint() {
  20096. this.$confirm("确定删除此批注吗?", "提示", {
  20097. confirmButtonText: "确定",
  20098. cancelButtonText: "取消",
  20099. type: "warning",
  20100. })
  20101. .then(() => {
  20102. let params = [
  20103. {
  20104. wid: this.commentDetail.wid,
  20105. img: "",
  20106. },
  20107. ];
  20108. this.ajax
  20109. .post(this.$store.state.api + "updateCourseWorks", params)
  20110. .then((res) => {
  20111. this.$message({
  20112. message: "删除成功",
  20113. type: "success",
  20114. });
  20115. this.selectSWorks();
  20116. this.selectStudent();
  20117. })
  20118. .catch((err) => {
  20119. this.$message.error("删除失败");
  20120. console.error(err);
  20121. });
  20122. })
  20123. .catch(() => {});
  20124. },
  20125. getAudioVideo(constraintsData) {
  20126. if (navigator.mediaDevices === undefined) {
  20127. navigator.mediaDevices = {};
  20128. }
  20129. if (navigator.mediaDevices.getUserMedia === undefined) {
  20130. navigator.mediaDevices.getUserMedia = function (constraints) {
  20131. // 首先,如果有getUserMedia的话,就获得它
  20132. var getUserMedia =
  20133. navigator.getUserMedia ||
  20134. navigator.webkitGetUserMedia ||
  20135. navigator.mozGetUserMedia ||
  20136. navigator.msGetUserMedia;
  20137. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20138. if (!getUserMedia) {
  20139. return Promise.reject({ code: 404 });
  20140. }
  20141. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20142. return new Promise(function (resolve, reject) {
  20143. getUserMedia.call(navigator, constraints, resolve, reject);
  20144. });
  20145. };
  20146. }
  20147. return navigator.mediaDevices.getUserMedia(constraintsData);
  20148. },
  20149. /**
  20150. * 开始录制
  20151. */
  20152. startRecording(callback) {
  20153. let _function = (screenStream) => {
  20154. this.addStreamStopListener(screenStream, () => {
  20155. console.log("流停止监听");
  20156. this.stopRecording();
  20157. this.$emit("streamStop", {});
  20158. // this.stopRecording();
  20159. });
  20160. var options = {
  20161. type: "video",
  20162. mimeType: "video/webm",
  20163. disableLogs: false,
  20164. getNativeBlob: false, // enable it for longer recordings
  20165. ignoreMutedMedia: false,
  20166. };
  20167. // this.video.srcObject = screenStream;
  20168. this.recorder = RecordRTC(screenStream, options);
  20169. this.recorder.startRecording();
  20170. this.recorder.screen = screenStream;
  20171. this.videoStart = true;
  20172. // callback(true);
  20173. };
  20174. this.getAudioVideo({ audio: true })
  20175. .then((res) => {
  20176. this.captureScreen(_function, true);
  20177. console.log("已点击允许,开启成功");
  20178. })
  20179. .catch((err) => {
  20180. // console.log('浏览器不支持,请更换浏览器')
  20181. // } else {
  20182. this.captureScreen(_function, false);
  20183. console.log("请检查是否存在麦克风");
  20184. });
  20185. },
  20186. /**
  20187. * 停止录制
  20188. */
  20189. stopRecording(callback) {
  20190. this.recorder.stopRecording(() => {
  20191. // this.video.src = this.video.srcObject = null;
  20192. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20193. const url = URL.createObjectURL(this.recorder.getBlob());
  20194. const a = document.createElement("a"); //this.fileName+
  20195. let videoFile = new File(
  20196. [this.recorder.getBlob()],
  20197. this.courseDetail.title + "录屏.mp4",
  20198. {
  20199. type: "video/mp4",
  20200. }
  20201. );
  20202. let downloadUrl = URL.createObjectURL(videoFile);
  20203. if(this.$refs.classRoomHelperRef){
  20204. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20205. }
  20206. document.body.appendChild(a);
  20207. a.style.display = "none";
  20208. a.href = url;
  20209. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20210. a.click();
  20211. this.recorder.screen.stop();
  20212. this.recorder.destroy();
  20213. this.recorder = null;
  20214. this.videoStart = false;
  20215. // callback(false);
  20216. });
  20217. },
  20218. //初始化
  20219. captureScreen(callback, type) {
  20220. if (navigator.getDisplayMedia) {
  20221. //录制结束,文件下载
  20222. navigator
  20223. .getDisplayMedia({
  20224. video: true,
  20225. })
  20226. .then((screenStream) => {
  20227. if (type) {
  20228. navigator.mediaDevices
  20229. .getUserMedia({ audio: true })
  20230. .then((mic) => {
  20231. screenStream.addTrack(mic.getTracks()[0]);
  20232. callback(screenStream);
  20233. });
  20234. } else {
  20235. callback(screenStream);
  20236. }
  20237. })
  20238. .catch(function (error) {
  20239. console.log("error", error);
  20240. });
  20241. } else if (navigator.mediaDevices.getDisplayMedia) {
  20242. navigator.mediaDevices
  20243. .getDisplayMedia({
  20244. video: true,
  20245. })
  20246. .then((screenStream) => {
  20247. if (type) {
  20248. navigator.mediaDevices
  20249. .getUserMedia({ audio: true })
  20250. .then((mic) => {
  20251. screenStream.addTrack(mic.getTracks()[0]);
  20252. callback(screenStream);
  20253. });
  20254. } else {
  20255. callback(screenStream);
  20256. }
  20257. })
  20258. .catch(function (error) {
  20259. console.log("error", error);
  20260. });
  20261. } else {
  20262. var error = "getDisplayMedia API are not supported in this browser.";
  20263. console.log("error", error);
  20264. alert(error);
  20265. }
  20266. },
  20267. //流监听
  20268. addStreamStopListener(stream, callback) {
  20269. stream.addEventListener(
  20270. "ended",
  20271. function () {
  20272. callback();
  20273. callback = function () {};
  20274. },
  20275. false
  20276. );
  20277. stream.addEventListener(
  20278. "inactive",
  20279. function () {
  20280. callback();
  20281. callback = function () {};
  20282. },
  20283. false
  20284. );
  20285. stream.getTracks().forEach(function (track) {
  20286. track.addEventListener(
  20287. "ended",
  20288. function () {
  20289. callback();
  20290. callback = function () {};
  20291. },
  20292. false
  20293. );
  20294. track.addEventListener(
  20295. "inactive",
  20296. function () {
  20297. callback();
  20298. callback = function () {};
  20299. },
  20300. false
  20301. );
  20302. });
  20303. },
  20304. updateGroup() {
  20305. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20306. this.dialogVisibleGroup2 = true;
  20307. },
  20308. numberPan() {
  20309. if (
  20310. /[^\d]/.test(this.groupJson.number) ||
  20311. this.groupJson.number < 2 ||
  20312. this.groupJson.number > 10
  20313. ) {
  20314. this.$message.error("请输入2-10的数字");
  20315. this.groupJson.number = "";
  20316. }
  20317. },
  20318. updateGroupJson() {
  20319. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20320. if (
  20321. this.groupStudentUid[this.toolindex][i].length >
  20322. this.groupJson2.number
  20323. ) {
  20324. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20325. return;
  20326. }
  20327. }
  20328. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20329. this.islock = this.groupJson.islock == 1 ? true : false;
  20330. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20331. this.taskCount
  20332. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20333. let params = [
  20334. {
  20335. cid: this.id,
  20336. chapters: JSON.stringify(this.chapInfoList),
  20337. uid: this.userid,
  20338. unitIndex: this.courseType,
  20339. },
  20340. ];
  20341. this.ajax
  20342. .post(this.$store.state.api + "updateWorkNew4", params)
  20343. .then((res) => {
  20344. this.$message.success("设置成功");
  20345. this.getCourseDetail(2);
  20346. this.dialogVisibleGroup2 = false;
  20347. this.groupJson2 = {};
  20348. this.$forceUpdate();
  20349. })
  20350. .catch((err) => {
  20351. this.$message.error("网络不佳");
  20352. console.error(err);
  20353. });
  20354. },
  20355. lockChair() {
  20356. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20357. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20358. this.updateGroupJson();
  20359. },
  20360. selectGroup(index) {
  20361. this.getCourseDetail(2, index);
  20362. },
  20363. joinGroup(index) {
  20364. if (this.groupJson.islock == 2) {
  20365. this.$message.error("位置已被锁定,无法加入");
  20366. return;
  20367. }
  20368. if (
  20369. this.groupStudent[this.toolindex][index].length >
  20370. this.groupJson.number ||
  20371. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20372. ) {
  20373. this.$message.error("位置已满,无法加入");
  20374. return;
  20375. }
  20376. let params = [
  20377. {
  20378. cid: this.id,
  20379. stage: this.courseType,
  20380. task: this.taskCount,
  20381. tool: this.toolindex,
  20382. g: index,
  20383. uid: this.userid,
  20384. },
  20385. ];
  20386. this.ajax
  20387. .post(this.$store.state.api + "joinGroup", params)
  20388. .then((res) => {
  20389. this.$message.success("加入成功");
  20390. this.getCourseDetail(2);
  20391. })
  20392. .catch((err) => {
  20393. this.$message.error("网络不佳");
  20394. console.error(err);
  20395. });
  20396. },
  20397. exitGroup(id) {
  20398. if (this.groupJson.islock == 2) {
  20399. this.$message.error("位置已被锁定,无法退出");
  20400. return;
  20401. }
  20402. let params = [
  20403. {
  20404. gid: id,
  20405. },
  20406. ];
  20407. this.ajax
  20408. .post(this.$store.state.api + "exitGroup", params)
  20409. .then((res) => {
  20410. this.$message.success("退出成功");
  20411. this.getCourseDetail(2);
  20412. })
  20413. .catch((err) => {
  20414. this.$message.error("网络不佳");
  20415. console.error(err);
  20416. });
  20417. },
  20418. groupUpload(index, task, gindex) {
  20419. this.taskCount = task;
  20420. this.toolindex = index;
  20421. this.groupIndex = gindex;
  20422. this.dialogVisibleGroupWork = true;
  20423. },
  20424. updateGroupChair(user) {
  20425. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20426. el.label = index;
  20427. return index != user.group;
  20428. });
  20429. this.updateGroupUser = user;
  20430. this.dialogVisibleUpdateGroup = true;
  20431. },
  20432. updateChair() {
  20433. if (
  20434. this.groupStudent[this.toolindex][this.checkChair].length >
  20435. this.groupJson.number ||
  20436. this.groupStudent[this.toolindex][this.checkChair].length ==
  20437. this.groupJson.number
  20438. ) {
  20439. this.$message.error("位置已满,无法加入");
  20440. return;
  20441. }
  20442. let params = [
  20443. {
  20444. cid: this.id,
  20445. stage: this.courseType,
  20446. task: this.taskCount,
  20447. tool: this.toolindex,
  20448. g: this.checkChair,
  20449. uid: this.updateGroupUser.userid,
  20450. },
  20451. ];
  20452. this.ajax
  20453. .post(this.$store.state.api + "joinGroup", params)
  20454. .then((res) => {
  20455. this.$message.success("修改成功");
  20456. this.updateGroupUser = {};
  20457. this.checkChair = "";
  20458. this.updateGroupArray = {};
  20459. this.dialogVisibleUpdateGroup = false;
  20460. this.getCourseDetail(2);
  20461. })
  20462. .catch((err) => {
  20463. this.$message.error("网络不佳");
  20464. console.error(err);
  20465. });
  20466. },
  20467. deleteGroupChair(gindex) {
  20468. this.checkDeleteGroup = [];
  20469. this.deleteGroupUser = JSON.parse(
  20470. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20471. );
  20472. this.deleteGroupArray = this.groupJson.group[gindex];
  20473. this.groupIndex = gindex;
  20474. this.dialogVisibleDeleteGroup = true;
  20475. },
  20476. async deleteChair() {
  20477. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20478. const gid =
  20479. this.groupStudent[this.toolindex][this.groupIndex][
  20480. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20481. this.checkDeleteGroup[i]
  20482. )
  20483. ];
  20484. let params = [
  20485. {
  20486. gid: gid.id,
  20487. },
  20488. ];
  20489. var a = await this.deleteChairA(params);
  20490. if (i == this.checkDeleteGroup.length - 1) {
  20491. this.$message.success("退出成功");
  20492. this.dialogVisibleDeleteGroup = false;
  20493. this.deleteGroupUser = [];
  20494. this.deleteGroupArray = {};
  20495. this.groupIndex = "";
  20496. this.checkDeleteGroup = [];
  20497. this.getCourseDetail(2);
  20498. }
  20499. }
  20500. },
  20501. deleteChairA(params) {
  20502. return new Promise((resolve, reject) => {
  20503. this.ajax
  20504. .post(this.$store.state.api + "exitGroup", params)
  20505. .then((res) => {
  20506. resolve(1);
  20507. })
  20508. .catch((err) => {
  20509. this.$message.error("网络不佳");
  20510. console.error(err);
  20511. });
  20512. });
  20513. },
  20514. contract(i) {
  20515. if (this.isCloseList[i].isClose == 0) {
  20516. this.isCloseList[i].isClose = 1;
  20517. } else {
  20518. this.isCloseList[i].isClose = 0;
  20519. }
  20520. this.$forceUpdate();
  20521. },
  20522. openWordCloud(toolindex) {
  20523. this.wordCloudData = '';
  20524. let array = [];
  20525. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20526. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20527. array.push({ name: works });
  20528. }
  20529. if (this.isGroup) {
  20530. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20531. let works = this.courseGroup.group[i].works[toolindex];
  20532. for (var j = 0; j < works.length; j++) {
  20533. let answer = JSON.parse(works[j].works)[0].answer;
  20534. array.push({ name: answer });
  20535. }
  20536. }
  20537. }
  20538. let _result = ''
  20539. array.forEach(e=>{
  20540. _result +=e.name+','
  20541. })
  20542. this.wordCloudData = _result;
  20543. this.dialogVisibleWordCloud = true;
  20544. this.wordCloudKey += 1;
  20545. },
  20546. uploadWorks(i) {
  20547. this.$confirm("确定导出作业吗?", "提示", {
  20548. confirmButtonText: "确定",
  20549. cancelButtonText: "取消",
  20550. type: "warning",
  20551. })
  20552. .then(() => {
  20553. const loading = this.$loading.service({
  20554. background: "rgba(255, 255, 255, 0.7)",
  20555. target: document.body,
  20556. text: "文件加载中...",
  20557. });
  20558. const _worksStudent = this.worksStudent;
  20559. let url = [];
  20560. var counts = {};
  20561. for (var l = 0; l < _worksStudent[i].length; l++) {
  20562. var item = _worksStudent[i][l];
  20563. var name = item.sName;
  20564. if (!counts.hasOwnProperty(name)) {
  20565. counts[name] = 0;
  20566. } else {
  20567. counts[name]++;
  20568. }
  20569. if (counts[name] > 0) {
  20570. item.sName += " (" + counts[name] + ")";
  20571. }
  20572. }
  20573. for (var l = 0; l < _worksStudent[i].length; l++) {
  20574. var item = _worksStudent[i][l];
  20575. if (
  20576. item.works.indexOf(
  20577. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20578. ) !== -1 &&
  20579. item.works.indexOf("img") === -1
  20580. ) {
  20581. url.push({ name: item.sName, url: item.works });
  20582. }
  20583. }
  20584. // var toolList = [
  20585. // { name: "电子白板", tool: 1 },
  20586. // { name: "思维导图", tool: 3 },
  20587. // { name: "协同文档", tool: 6 },
  20588. // { name: "思维网格", tool: 7 },
  20589. // { name: "素材库", tool: 8 },
  20590. // { name: "学习资料", tool: 17 },
  20591. // { name: "便签", tool: 2 },
  20592. // { name: "问卷调查", tool: 4 },
  20593. // { name: "选择题", tool: 45 },
  20594. // { name: "倒计时", tool: 10 },
  20595. // { name: "问答", tool: 15 },
  20596. // { name: "课程设计", tool: 26 },
  20597. // { name: "训练服务器", tool: 18 },
  20598. // { name: "作业提交", tool: 16 },
  20599. // { name: "批量上传", tool: 50 },
  20600. // { name: "AIoT Blockly", tool: 21 },
  20601. // { name: "AI Python", tool: 23 },
  20602. // { name: "AI Blockly", tool: 24 },
  20603. // { name: "目标管理", tool: 25 },
  20604. // { name: "数学画板", tool: 31 },
  20605. // { name: "翻译", tool: 28 },
  20606. // { name: "魔盒识字", tool: 37 },
  20607. // { name: "数学画板", tool: 31 },
  20608. // { name: "24点", tool: 38 },
  20609. // { name: "GeoGebra", tool: 39 },
  20610. // { name: "源码编辑", tool: 32 },
  20611. // { name: "个人评价", tool: 40 },
  20612. // { name: "选择匹配", tool: 41 },
  20613. // { name: "汉字宫", tool: 44 },
  20614. // { name: "排序", tool: 47 },
  20615. // { name: "表格", tool: 48 },
  20616. // { name: "文档", tool: 52 },
  20617. // { name: "学生分组", tool: 49 },
  20618. // { name: "CocoPi", tool: 57 },
  20619. // { name: "模拟驾驶", tool: 58 },
  20620. // { name: "路径搜索", tool: 59 },
  20621. // { name: "深度学习", tool: 60 },
  20622. // { name: "全历史", tool: 61 },
  20623. // { name: "交互视频", tool: 62 },
  20624. // { name: "海龟编程", tool: 63 },
  20625. // { name: "挑人", tool: 65 },
  20626. // { name: "公式编辑", tool: 66 },
  20627. // { name: "分子结构", tool: 67 },
  20628. // { name: "时间轴", tool: 68 },
  20629. // ];
  20630. // var toolName = "";
  20631. // for(var w = 0;w<toolList.length;w++){
  20632. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20633. // toolName = toolList[w].name;
  20634. // }
  20635. // }
  20636. console.log(url);
  20637. this.downLoadAll(url, loading);
  20638. })
  20639. .catch(() => {});
  20640. },
  20641. downLoadAll(url, loading) {
  20642. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20643. const zip = new JSZip();
  20644. const cache = {};
  20645. const promises = [];
  20646. data.forEach((item) => {
  20647. const promise = getFile(item.url).then((data) => {
  20648. if (data.data != 1) {
  20649. // 下载文件, 并存成ArrayBuffer对象
  20650. const file_name =
  20651. item.name +
  20652. "." +
  20653. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20654. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20655. cache[file_name] = data.data;
  20656. }
  20657. });
  20658. promises.push(promise);
  20659. });
  20660. Promise.all(promises).then(() => {
  20661. zip.generateAsync({ type: "blob" }).then((content) => {
  20662. // 生成二进制流
  20663. FileSaver.saveAs(
  20664. content,
  20665. this.courseDetail.title + "-" + "作业提交工具.zip"
  20666. ); // 利用file-saver保存文件 自定义文件名
  20667. setTimeout(() => {
  20668. loading.close();
  20669. }, 2000);
  20670. });
  20671. });
  20672. },
  20673. pickStudent(stu) {
  20674. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20675. return;
  20676. }
  20677. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20678. confirmButtonText: "确定",
  20679. cancelButtonText: "取消",
  20680. type: "warning",
  20681. })
  20682. .then(() => {
  20683. let params = [
  20684. {
  20685. uid: stu.userid,
  20686. cid: this.id,
  20687. stage: this.courseType,
  20688. task: this.taskCount,
  20689. tool: this.toolindex,
  20690. },
  20691. ];
  20692. this.ajax
  20693. .post(this.$store.state.api + "updateCoursePick", params)
  20694. .then((res) => {
  20695. this.$message.success("操作成功");
  20696. this.getPick();
  20697. })
  20698. .catch((err) => {
  20699. this.$message.error("网络不佳");
  20700. console.error(err);
  20701. });
  20702. })
  20703. .catch(() => {});
  20704. },
  20705. selectUser(){
  20706. let params = {
  20707. userid: this.userid,
  20708. };
  20709. this.ajax
  20710. .get(this.$store.state.api + "selectUser", params)
  20711. .then((res) => {
  20712. this.userMes = res.data[0];
  20713. })
  20714. .catch((err) => {
  20715. console.error(err);
  20716. });
  20717. },
  20718. setEngText(i){
  20719. this.newEngIndex = i;
  20720. this.$forceUpdate();
  20721. },
  20722. addCorrect(){
  20723. this.$confirm("你确定提交批改嘛?", "提示", {
  20724. confirmButtonText: "确定",
  20725. showCancelButton: false,
  20726. closeOnClickModal: false,
  20727. type: "warning",
  20728. })
  20729. .then(() => {
  20730. let params = {
  20731. cid: this.id,
  20732. s: parseInt(this.courseType),
  20733. t: this.taskCount,
  20734. tool: this.toolindex,
  20735. wid: this.engWid,
  20736. c: this.userid,
  20737. 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) : "",
  20738. };
  20739. this.ajax
  20740. .get(this.$store.state.api + "addEngC", params)
  20741. .then((res) => {
  20742. this.$message.success("提交成功");
  20743. this.engUpdateDialogVisible = false;
  20744. })
  20745. .catch((err) => {
  20746. console.error(err);
  20747. });
  20748. })
  20749. .catch(() => {});
  20750. },
  20751. selectEngC(id,z){
  20752. let params = {
  20753. workid: id,
  20754. };
  20755. this.ajax
  20756. .get(this.$store.state.api + "selectEngC", params)
  20757. .then((res) => {
  20758. if(res.data[0].length == 0){
  20759. this.newEnglishList.engTitle = z.engTitle;
  20760. this.newEnglishList.engText = z.engText;
  20761. }else{
  20762. var a = res.data[0];
  20763. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20764. if(this.userMes[0].type == 2){
  20765. var snum = 0;
  20766. for(var i = 0;i<a.length;i++){
  20767. if(this.userMes[0].userid == a[i].correct){
  20768. this.newEnglishList = JSON.parse(a[i].cWork);
  20769. snum = 1;
  20770. }
  20771. }
  20772. if(snum == 0){
  20773. this.newEnglishList = { engTitle:"",engText:"" };
  20774. this.newEnglishList.engTitle = z.engTitle;
  20775. this.newEnglishList.engText = z.engText;
  20776. }
  20777. }else if(this.userMes[0].type == 1){
  20778. var num = 0;
  20779. for(var w= 0;w<a.length;w++){
  20780. if(this.userMes[0].userid == a[w].correct){
  20781. num = 1;
  20782. }
  20783. }
  20784. if(num == 0){
  20785. this.isNoUserid = true;
  20786. var c = JSON.parse(JSON.stringify(z));
  20787. this.oldEnglishJson1 = c;
  20788. }else{
  20789. this.isNoUserid = false;
  20790. }
  20791. var b = a.sort((item, index) => {
  20792. console.log(item)
  20793. if (item.correct === this.userMes[0].userid) {
  20794. return -1; // 将a移到前面
  20795. } else if (index.correct === this.userMes[0].userid) {
  20796. return 1; // 将b移到前面
  20797. } else {
  20798. return 0; // 保持默认顺序
  20799. }
  20800. });
  20801. for(var p = 0;p<b.length;p++){
  20802. for(var y = 0;y<ppp.length;y++){
  20803. if(b[p].id == ppp[y].id){
  20804. b[p].cWork = JSON.parse(ppp[y].cWork);
  20805. break
  20806. }
  20807. }
  20808. }
  20809. this.newEnglishList1 = b;
  20810. }
  20811. }
  20812. this.greyType = false;
  20813. setTimeout(() => {
  20814. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20815. if(this.newEnglishList1.length > 0){
  20816. if(this.isNoUserid == true){
  20817. this.engListLength = this.newEnglishList1.length + 1;
  20818. this.newEngIndex = -1;
  20819. }else{
  20820. this.engListLength = this.newEnglishList1.length;
  20821. this.newEngIndex = 0;
  20822. }
  20823. }
  20824. if(this.userMes[0].type == 2){
  20825. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20826. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20827. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20828. }else if(this.newEngIndex == -1){
  20829. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20830. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20831. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20832. }
  20833. }, 500);
  20834. this.engUpdateDialogVisible = true;
  20835. this.$forceUpdate();
  20836. })
  20837. .catch((err) => {
  20838. console.error(err);
  20839. });
  20840. },
  20841. getPick() {
  20842. let params = {
  20843. cid: this.id,
  20844. };
  20845. this.ajax
  20846. .get(this.$store.state.api + "getPick", params)
  20847. .then((res) => {
  20848. let array = [];
  20849. for (var i = 0; i < res.data[0].length; i++) {
  20850. array.push(res.data[0][i].userid);
  20851. }
  20852. this.isPickStudent = array;
  20853. if (array.indexOf(this.userid) !== -1) {
  20854. this.$confirm("你被老师选到啦!", "提示", {
  20855. confirmButtonText: "确定",
  20856. showCancelButton: false,
  20857. closeOnClickModal: false,
  20858. type: "warning",
  20859. })
  20860. .then(() => {
  20861. let pa = [
  20862. {
  20863. uid: this.userid,
  20864. cid: this.id,
  20865. },
  20866. ];
  20867. this.ajax
  20868. .post(this.$store.state.api + "deletePick", pa)
  20869. .then((res) => {
  20870. this.getPick();
  20871. })
  20872. .catch((err) => {
  20873. this.$message.error("网络不佳");
  20874. console.error(err);
  20875. });
  20876. })
  20877. .catch(() => {});
  20878. }
  20879. })
  20880. .catch((err) => {
  20881. this.$message.error("网络不佳");
  20882. console.error(err);
  20883. });
  20884. },
  20885. foldEva() {
  20886. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20887. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20888. } else {
  20889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20890. setTimeout(() => {
  20891. this.checkEva();
  20892. setTimeout(() => {
  20893. this.checkEva();
  20894. }, 500);
  20895. }, 0);
  20896. }
  20897. this.$forceUpdate();
  20898. },
  20899. panToolHeight(tool) {
  20900. var _tool = document.querySelectorAll('#'+tool)[0]
  20901. var _toolA = _tool ? _tool.offsetHeight : 0
  20902. var _toolC = 0
  20903. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20904. let boolean2 = (_toolA > _toolC) ? true : false
  20905. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20906. this.$forceUpdate();
  20907. },
  20908. async checkLink(url) {
  20909. console.log(url)
  20910. let _url = url
  20911. try {
  20912. const response = await fetch(url);
  20913. if(!response.ok){
  20914. _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]))
  20915. }
  20916. console.log(response.ok)
  20917. } catch (error) {
  20918. console.error('Error checking link:', error);
  20919. // console.log(false)
  20920. _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]))
  20921. }
  20922. // console.log(_url)
  20923. return _url
  20924. },
  20925. getScoreList(){
  20926. let params = {
  20927. cid: this.id,
  20928. };
  20929. this.ajax
  20930. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20931. .then((res) => {
  20932. let result = res.data;
  20933. this.scoreList.datalist = result[0];
  20934. this.scoreList.isScoreList = result[1];
  20935. })
  20936. .catch((err) => {
  20937. console.error(err);
  20938. });
  20939. },
  20940. setClassRoomHelperWidth(width){
  20941. this.classRoomHelperWidth = width
  20942. },
  20943. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20944. this.$refs.choseWorksDetailDialogRef.open({
  20945. toolType:tooc,
  20946. tType: this.tType,
  20947. toolIndex: toolIndex
  20948. });
  20949. this.changeSplitScreenBehavior({
  20950. code: 1,
  20951. form: {
  20952. toolType:tooc,
  20953. toolIndex: toolIndex,
  20954. courseType: this.courseType,
  20955. taskCount: this.taskCount,
  20956. type: 0
  20957. }
  20958. });
  20959. },
  20960. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20961. this.$refs.statisticalAnalysisRef.open({
  20962. worksStudent: this.worksStudent[toolIndex],
  20963. tType: this.tType,
  20964. toolIndex: toolIndex
  20965. });
  20966. this.changeSplitScreenBehavior({
  20967. code: 2,
  20968. form: {
  20969. toolType:4,
  20970. courseType: this.courseType,
  20971. taskCount: this.taskCount,
  20972. toolIndex: toolIndex,
  20973. type: 0
  20974. }
  20975. });
  20976. },
  20977. statisticalAnalysisRefresh(toolIndex) {
  20978. this.$refs.statisticalAnalysisRef.refreshData({
  20979. worksStudent: this.worksStudent[toolIndex],
  20980. tType: this.tType,
  20981. toolIndex: toolIndex
  20982. });
  20983. },
  20984. async splitScreenBehavior(type = 0) {
  20985. // return;
  20986. if (this.splitScreenData.loading)
  20987. return this.$message.info("操作过快,请稍等");
  20988. if (type == 0) {
  20989. //关闭分屏
  20990. this.splitScreenData.isOpen = false;
  20991. // this.splitScreenData.userId = "";
  20992. // this.splitScreenData.uid = "";
  20993. this.splitScreenData.behavior = null;
  20994. await this.updateSplitScreenData(1);
  20995. this.$message.success("已关闭分屏模式");
  20996. this.studentFreePreview(false);
  20997. this.OpenJobPreview(false);
  20998. // this.followingMode(false);
  20999. } else if (type == 1) {
  21000. //开启分屏
  21001. this.splitScreenData.isOpen = true;
  21002. this.splitScreenData.userId = this.userid;
  21003. this.splitScreenData.uid = this.splitScreenData.myUid;
  21004. this.splitScreenData.behavior = null;
  21005. let status = await this.updateSplitScreenData(0);
  21006. this.changeSplitScreenBehavior({form:{}})
  21007. if (status == 1) {
  21008. this.$message.success("已开启分屏");
  21009. this.studentFreePreview(false);
  21010. this.OpenJobPreview(true);
  21011. // this.followingMode(true);
  21012. } else {
  21013. this.splitScreenData.isOpen = false;
  21014. this.splitScreenData.userId = "";
  21015. this.splitScreenData.uid = "";
  21016. this.splitScreenData.behavior = null;
  21017. this.$message.success("分屏开启失败");
  21018. }
  21019. }
  21020. },
  21021. enterFullScreen() {
  21022. let element = document.documentElement;
  21023. if (element.requestFullscreen) {
  21024. element.requestFullscreen();
  21025. } else if (element.mozRequestFullScreen) { /* Firefox */
  21026. element.mozRequestFullScreen();
  21027. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21028. element.webkitRequestFullscreen();
  21029. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21030. element.msRequestFullscreen();
  21031. }
  21032. },
  21033. exitFullScreen() {
  21034. if (document.exitFullscreen) {
  21035. document.exitFullscreen();
  21036. } else if (document.mozCancelFullScreen) { /* Firefox */
  21037. document.mozCancelFullScreen();
  21038. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21039. document.webkitExitFullscreen();
  21040. } else if (document.msExitFullscreen) { /* IE/Edge */
  21041. document.msExitFullscreen();
  21042. }
  21043. },
  21044. confirmOpen(){
  21045. this.splitScreenData.isOpen = true;
  21046. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21047. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21048. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21049. this.confirmOpenDig = false
  21050. if (!document.fullscreenElement) {
  21051. this.enterFullScreen();
  21052. }
  21053. // if (this.timer2) {
  21054. // clearInterval(this.timer2);
  21055. // this.timer2 = null;
  21056. // }
  21057. // this.timer2 = setInterval(()=> {
  21058. // this.getSplitScreenData();//获取分屏数据
  21059. // }, 5000);
  21060. this.$message.success("分屏模式已开启");
  21061. },
  21062. // 获取分屏数据
  21063. getSplitScreenData() {
  21064. // return;
  21065. // if (this.tType != 1) return;
  21066. let params = {
  21067. cid: this.id
  21068. };
  21069. this.ajax
  21070. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21071. .then(async res => {
  21072. let data = res.data[0][0]["splitScreenData"];
  21073. console.log("获取了分屏数:", data);
  21074. if (data) {
  21075. data = JSON.parse(data);
  21076. if (
  21077. !this.splitScreenData.isOpen &&
  21078. data.isOpen &&
  21079. this.splitScreenData.myUid == data.uid
  21080. ) {
  21081. this.splitScreenData.isOpen = false;
  21082. this.splitScreenData.userId = "";
  21083. this.splitScreenData.uid = "";
  21084. this.splitScreenData.behavior = null;
  21085. await this.updateSplitScreenData(1);
  21086. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21087. this.confirmOpenDig = true
  21088. this.confirmOpenDigData = data
  21089. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21090. this.splitScreenData.isOpen = false;
  21091. this.splitScreenData.userId = "";
  21092. this.splitScreenData.uid = "";
  21093. this.splitScreenData.behavior = null;
  21094. this.$message.error("已结束分屏模式");
  21095. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21096. this.splitScreenData.isOpen = true;
  21097. this.splitScreenData.uid = data.uid;
  21098. this.splitScreenData.userId = data.userId;
  21099. this.splitScreenData.behavior = data.behavior;
  21100. }
  21101. this.doSplitScreenBehavior();
  21102. } else {
  21103. if (this.splitScreenData.isOpen) {
  21104. this.splitScreenData.isOpen = false;
  21105. this.splitScreenData.userId = "";
  21106. this.splitScreenData.uid = "";
  21107. this.splitScreenData.behavior = null;
  21108. this.$message.error("已结束分屏模式");
  21109. // if (this.timer2) {
  21110. // clearInterval(this.timer2);
  21111. // this.timer2 = null;
  21112. // }
  21113. // this.timer2 = setInterval(()=> {
  21114. // this.getSplitScreenData();//获取分屏数据
  21115. // }, 5000);
  21116. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21117. confirmButtonText: '确定', //确认按钮的文字
  21118. showCancelButton: false, //是否显示取消按钮
  21119. showClose: false, //是否显示关闭按钮
  21120. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21121. type: "warning",
  21122. })
  21123. .then(() => {
  21124. if (document.fullscreenElement) {
  21125. this.exitFullScreen();
  21126. }
  21127. })
  21128. .catch(() => {});
  21129. }
  21130. }
  21131. })
  21132. .catch(e => {
  21133. console.log("获取分屏数出错:", e);
  21134. });
  21135. },
  21136. // 操作
  21137. doSplitScreenBehavior() {
  21138. if (
  21139. this.splitScreenData.isOpen &&
  21140. this.splitScreenData.uid != this.splitScreenData.myUid
  21141. ) {
  21142. let behavior = this.splitScreenData.behavior;
  21143. if (behavior) {
  21144. // console.log('behavior',behavior);
  21145. // this.toolindex = behavior.form.toolType
  21146. // 初始状态
  21147. if (behavior.code === 99) {
  21148. //初始化
  21149. this.fullDialogVisible = false;
  21150. if(this.$refs.choseWorksDetailDialogRef.show){
  21151. this.$refs.choseWorksDetailDialogRef.close();
  21152. }
  21153. if(this.$refs.statisticalAnalysisRef.show){
  21154. this.$refs.statisticalAnalysisRef.close();
  21155. }
  21156. }
  21157. // 文件列表
  21158. if (behavior.code === 0) {
  21159. //开启内容列表弹窗
  21160. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21161. }else{
  21162. this.fullDialogVisible = false;
  21163. }
  21164. // 打开工具
  21165. if (behavior.code === 1) {
  21166. //关于选择题的作业详细的操作
  21167. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21168. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21169. this.courseType = behavior.form.courseType;
  21170. this.taskCount = behavior.form.taskCount;
  21171. }
  21172. this.$nextTick(() => {
  21173. if (this.$refs.choseWorksDetailDialogRef.show) {
  21174. //已经打开了
  21175. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21176. } else {
  21177. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21178. }
  21179. });
  21180. }else{
  21181. this.$refs.choseWorksDetailDialogRef.close()
  21182. }
  21183. // 问卷调查
  21184. if(behavior.code === 2){
  21185. if(this.$refs.statisticalAnalysisRef.show){
  21186. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21187. }else{
  21188. this.$refs.statisticalAnalysisRef.open({
  21189. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21190. tType: this.tType,
  21191. toolIndex: behavior.form.toolIndex
  21192. });
  21193. }
  21194. }else{
  21195. this.$refs.statisticalAnalysisRef.close();
  21196. }
  21197. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21198. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21199. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21200. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21201. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21202. if (behavior.form.courseType != this.courseType ||
  21203. behavior.form.taskCount != this.taskCount ||
  21204. behavior.form.toolType != this.toolindex
  21205. ) {
  21206. var a = document.scrollingElement;
  21207. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21208. if (target) {
  21209. target.scrollIntoView(true);
  21210. setTimeout(()=>{
  21211. let scrollBody = document.querySelector('.body_student').parentElement
  21212. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21213. }, 0);
  21214. // setTimeout(() => {
  21215. // a.scrollTop = 0
  21216. // }, 0);
  21217. }
  21218. }
  21219. if(this.courseType !=behavior.form.courseType){
  21220. this.courseType = behavior.form.courseType;
  21221. }
  21222. if(this.taskCount !=behavior.form.taskCount){
  21223. this.taskCount = behavior.form.taskCount;
  21224. }
  21225. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21226. this.toolindex = behavior.form.toolType;
  21227. }
  21228. // if(behavior.form.navId){
  21229. // this.navId = behavior.form.navId
  21230. // }
  21231. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21232. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21233. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21234. this.getCourseDetail()
  21235. }
  21236. this.setContent2(false)
  21237. }
  21238. } else {
  21239. }
  21240. }
  21241. },
  21242. // 修改分屏数据
  21243. updateSplitScreenData(empty = 0) {
  21244. return new Promise(resolve => {
  21245. if(this.userid!==this.courseDetail.userid){
  21246. if(!this.courseDetail.userid){
  21247. return setTimeout(()=>{
  21248. this.updateSplitScreenData(empty)
  21249. },2000)
  21250. }
  21251. return;
  21252. };
  21253. if (
  21254. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21255. this.splitScreenData.userId == this.userid
  21256. ) {
  21257. this.splitScreenData.loading = true;
  21258. let params = [
  21259. {
  21260. cid: this.id,
  21261. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21262. }
  21263. ];
  21264. this.ajax
  21265. .post(
  21266. this.$store.state.api + "update_courseSplitScreenData",
  21267. params
  21268. )
  21269. .then(res => {
  21270. this.splitScreenData.loading = false;
  21271. if (res.data == 1) {
  21272. resolve(1);
  21273. console.log("修改分屏数据成功");
  21274. }
  21275. })
  21276. .catch(e => {
  21277. this.splitScreenData.loading = false;
  21278. console.log("修改分屏数据失败", e);
  21279. resoleve(0);
  21280. });
  21281. } else if (empty == 2 && this.tType == 1) {
  21282. console.log("清空清空清空清空")
  21283. let params = [
  21284. {
  21285. cid: this.id,
  21286. nData: ""
  21287. }
  21288. ];
  21289. return this.ajax
  21290. .post(
  21291. this.$store.state.api + "update_courseSplitScreenData",
  21292. params
  21293. )
  21294. .then(_ => resolve(1))
  21295. .catch(_ => resolve(0));
  21296. } else {
  21297. return resolve(0);
  21298. }
  21299. });
  21300. },
  21301. // 修改分屏数据
  21302. changeSplitScreenBehavior(newValue) {
  21303. if (
  21304. this.splitScreenData.isOpen &&
  21305. this.splitScreenData.uid == this.splitScreenData.myUid
  21306. ) {
  21307. let _behavior = null;
  21308. if(!newValue){
  21309. _behavior = {}
  21310. }else{
  21311. _behavior = newValue
  21312. }
  21313. if(_behavior.form){
  21314. _behavior.form.taskCount = this.taskCount;
  21315. _behavior.form.courseType = this.courseType
  21316. }else{
  21317. _behavior.form = {
  21318. taskCount:this.taskCount,
  21319. courseType:this.courseType,
  21320. }
  21321. }
  21322. this.splitScreenData.behavior = _behavior;
  21323. this.updateSplitScreenData(0);
  21324. }
  21325. },
  21326. studentFreePreview(flag) {
  21327. this.IsLookOpen = flag;
  21328. this.updateLookOpen();
  21329. this.followingMode(flag)
  21330. },
  21331. OpenJobPreview(flag) {
  21332. this.sIsOpen = flag;
  21333. this.updateSLook();
  21334. },
  21335. followingMode(flag) {
  21336. this.IsFollow = flag;
  21337. this.updateFollow();
  21338. },
  21339. StulookMode(flag) {
  21340. this.IsStulook = flag;
  21341. this.updateIsStulook();
  21342. },
  21343. },
  21344. directives: {
  21345. // 使用局部注册指令的方式
  21346. resize: {
  21347. // 指令的名称
  21348. bind(el, binding) {
  21349. // el为绑定的元素,binding为绑定给指令的对象
  21350. let width = "",
  21351. height = "";
  21352. function isReize() {
  21353. const style = document.defaultView.getComputedStyle(el);
  21354. if (width !== style.width || height !== style.height) {
  21355. binding.value(); // 关键
  21356. }
  21357. width = style.width;
  21358. height = style.height;
  21359. }
  21360. el.__vueSetInterval__ = setInterval(isReize, 300);
  21361. },
  21362. unbind(el) {
  21363. clearInterval(el.__vueSetInterval__);
  21364. },
  21365. },
  21366. autoHeight: {
  21367. update(el, binding) {
  21368. const { value } = binding
  21369. if (value && typeof value === 'number') {
  21370. el.style.height = `${value}px`
  21371. } else {
  21372. el.style.height = 'auto'
  21373. }
  21374. },
  21375. componentUpdated(el) {
  21376. el.style.height = `${el.scrollHeight}px`
  21377. },
  21378. },
  21379. },
  21380. beforeDestroy() {
  21381. window.onresize = null;
  21382. clearInterval(this.timer);
  21383. this.timer = null;
  21384. clearInterval(this.timer2);
  21385. this.timer2 = null;
  21386. clearInterval(this.opertimer);
  21387. this.opertimer = null;
  21388. this.updateSplitScreenData(1);
  21389. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21390. let endTime = new Date().toLocaleString("zh-CN", {
  21391. hour12: false,
  21392. timeZone: "Asia/Shanghai"
  21393. }).replace(/\//g, "-")
  21394. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21395. this.syncClassData({
  21396. courseId: this.id,
  21397. title: this.courseDetail.title,
  21398. courseGrade: this.tcid2,
  21399. courseTime: courseTime,
  21400. startTime: this.startTime,
  21401. endTime: endTime,
  21402. })
  21403. console.log('同步数据')
  21404. }
  21405. },
  21406. computed: {
  21407. renderedFormula2() {
  21408. return function(val){
  21409. // 处理换行符和HTML实体
  21410. const normalized = val
  21411. .replace(/&amp;/g, '&')
  21412. .replace(/<br\/?>/g, '\n');
  21413. // 匹配行内公式($...$)和块级公式($$...$$)
  21414. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21415. try {
  21416. return katex.renderToString(expr.trim(), {
  21417. displayMode: false,
  21418. throwOnError: false,
  21419. macros: {
  21420. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21421. }
  21422. });
  21423. } catch (e) {
  21424. console.warn('KaTeX渲染失败:', e);
  21425. return `<span style="color:red">${expr}</span>`;
  21426. }
  21427. })
  21428. }
  21429. },
  21430. renderedFormula() {
  21431. return function(val){
  21432. try {
  21433. // 判断是否含有HTML标签,<tag ...>...</tag>
  21434. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21435. if (!hasTag) {
  21436. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21437. // 纯文本,整体渲染
  21438. try {
  21439. return katex.renderToString(val.trim(), {
  21440. throwOnError: false,
  21441. strict: false,
  21442. output: "htmlAndMathml"
  21443. });
  21444. } catch (e) {
  21445. return val; // 渲染失败原样输出
  21446. }
  21447. } else {
  21448. // 有标签,对每个标签内容渲染
  21449. return val.replace(
  21450. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21451. (match, tag, attrs, inner) => {
  21452. let html;
  21453. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21454. try {
  21455. html = katex.renderToString(inner.trim(), {
  21456. throwOnError: false,
  21457. strict: false,
  21458. output: "htmlAndMathml"
  21459. });
  21460. } catch (e) {
  21461. html = inner;
  21462. }
  21463. return `<${tag}${attrs}>${html}</${tag}>`;
  21464. }
  21465. );
  21466. }
  21467. } catch (e) {
  21468. console.error('KaTeX渲染错误:', e);
  21469. return val;
  21470. }
  21471. }
  21472. },
  21473. isAndroid() {
  21474. return /Android/i.test(navigator.userAgent);
  21475. },
  21476. contentConvent() {
  21477. return function (c) {
  21478. return c
  21479. ? c
  21480. .replaceAll(/\r\n/g, "<br/>")
  21481. .replaceAll(/\n/g, "<br/>")
  21482. .replaceAll(/\s/g, "&nbsp")
  21483. : "";
  21484. };
  21485. },
  21486. commentRight(){
  21487. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21488. return "35px";
  21489. }
  21490. return `calc(${this.classRoomHelperWidth} + 5px)`
  21491. // if(this.$refs["classRoomHelperRef"].type==0){
  21492. // return "100px";
  21493. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21494. // return "502px"
  21495. // }else{
  21496. // return "0px"
  21497. // }
  21498. },
  21499. checkUpload() {
  21500. return function () {
  21501. var studentK = [];
  21502. if (this.plworkFile.length > 0) {
  21503. for (var z = 0; z < this.plworkFile.length; z++) {
  21504. studentK.push(this.plworkFile[z].username);
  21505. }
  21506. studentK = studentK.join(",");
  21507. }
  21508. var a = this.uploadStudentJuri.filter((el) => {
  21509. return studentK.indexOf(el.userid) == -1;
  21510. });
  21511. return a;
  21512. };
  21513. },
  21514. getSName() {
  21515. return function (name) {
  21516. var check = name;
  21517. this.uploadStudentJuri.forEach((el) => {
  21518. if (el.userid == check) {
  21519. check = el.name ? el.name : el.username;
  21520. }
  21521. });
  21522. return check;
  21523. };
  21524. },
  21525. getImgList() {
  21526. return function (val) {
  21527. let srcList = []; // 定义一个数组用来接收后面的img地址
  21528. val.replace(
  21529. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21530. function (match, capture) {
  21531. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21532. srcList.push(capture);
  21533. }
  21534. );
  21535. return srcList;
  21536. };
  21537. },
  21538. retrnToolHeight(){
  21539. return function (tool) {
  21540. var _tool = document.querySelectorAll('#'+tool)[0]
  21541. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21542. };
  21543. },
  21544. Correct() {
  21545. return function (c) {
  21546. let w = "";
  21547. let a = this.correctWord;
  21548. for(var k = 0;k<a.length;k++){
  21549. //diffWordsWithSpace
  21550. if(a.length > 1){
  21551. if(a[k].added == true){
  21552. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21553. }else if(a[k].removed == true){
  21554. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21555. }else{
  21556. w += '<span>' + a[k].value + '</span>';
  21557. }
  21558. }else{
  21559. w = c
  21560. }
  21561. //diffChars方法
  21562. // if(a.length > 1){
  21563. // if(w == ""){
  21564. // if(a[k].added == true){
  21565. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21566. // }else if(a[k].removed == true){
  21567. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21568. // }
  21569. // }else{
  21570. // if(k == a.length - 1){
  21571. // if(a[k].added == true){
  21572. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21573. // }else if(a[k].removed == true){
  21574. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21575. // }
  21576. // }else{
  21577. // if(a[k].added == true){
  21578. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21579. // }else if(a[k].removed == true){
  21580. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21581. // }
  21582. // }
  21583. // }
  21584. // }else{
  21585. // w = c
  21586. // }
  21587. }
  21588. c = w;
  21589. return c;
  21590. };
  21591. },
  21592. },
  21593. mounted() {
  21594. this.startTime = new Date().toLocaleString("zh-CN", {
  21595. hour12: false,
  21596. timeZone: "Asia/Shanghai"
  21597. }).replace(/\//g, "-");
  21598. if (this.tType == 1) {
  21599. // 开局关闭学生查看内容
  21600. this.StulookMode(false)
  21601. // 开局打开跟随模式
  21602. this.followingMode(true)
  21603. }
  21604. document.body.addEventListener("click", (e) => {
  21605. if (this.isUpdateToolDetail1) {
  21606. this.updateToolDetail(this.toolDetailIndex);
  21607. }
  21608. });
  21609. this.setOperationTime();
  21610. this.selectEva();
  21611. this.getCourseDetail(10);
  21612. this.selectCount();
  21613. this.getHomeWork();
  21614. this.selectUser();
  21615. this.getAIJ();
  21616. this.updateSplitScreenData(2);
  21617. this.splitScreenData.myUid = uuidv4();
  21618. this.contentDialog = false;
  21619. this.setContent2(true);
  21620. if (this.tType == 4) {
  21621. this.pzDialog = true;
  21622. this.selectPz();
  21623. }
  21624. // 获取评分列表
  21625. this.getScoreList()
  21626. document.scrollingElement.scrollTop = 0;
  21627. window.addEventListener("resize", () => {
  21628. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21629. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21630. if (this.showType == 2 || this.showType == 3) {
  21631. document.getElementsByClassName("navBox")[0].style.height =
  21632. a - 40 + 0+ "px";
  21633. } else {
  21634. document.getElementsByClassName("navBox")[0].style.height =
  21635. a - 40 + "px";
  21636. }
  21637. });
  21638. let _this = this;
  21639. setTimeout(() => {
  21640. // _this.vedioTime = [];
  21641. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21642. // _this.vedioTime[i] = document.getElementsByClassName(
  21643. // "vjs-duration-display"
  21644. // )[i].textContent;
  21645. // }
  21646. }, 1000);
  21647. try{
  21648. if (this.screenType == 2) {
  21649. window.topU.postMessage({ allScreen: 4 }, "*");
  21650. } else if (this.screenType == 3) {
  21651. window.topU.postMessage({ allScreen: 5 }, "*");
  21652. } else if (this.screenType == 1) {
  21653. window.topU.postMessage({ allScreen: 6 }, "*");
  21654. }
  21655. }catch(e){
  21656. console.log(e)
  21657. }
  21658. },
  21659. };
  21660. </script>
  21661. <style scoped>
  21662. @media screen and (max-width: 1280px) {
  21663. /* .courseIndex > div:first-child(2) {
  21664. width: 15% !important;
  21665. } */
  21666. /* .navText {
  21667. width: 120px !important;
  21668. } */
  21669. .evaCss {
  21670. flex-direction: column !important;
  21671. align-items: center !important;
  21672. }
  21673. .elist_input {
  21674. width: 90% !important;
  21675. }
  21676. .dialog_diy1 >>> .el-dialog {
  21677. width: 100% !important;
  21678. }
  21679. .rightWidthCss {
  21680. width: 100% !important;
  21681. }
  21682. .dialog_diy3 >>> .el-dialog {
  21683. width: 100% !important;
  21684. }
  21685. .addToolCss {
  21686. right: 0 !important;
  21687. width: 100% !important;
  21688. min-width: unset !important;
  21689. }
  21690. }
  21691. .evaCssMax {
  21692. flex-direction: column !important;
  21693. align-items: center !important;
  21694. }
  21695. .dialog_diy >>> .el-dialog {
  21696. margin-top: 10vh !important;
  21697. }
  21698. .body_student {
  21699. width: 77%;
  21700. height: 100%;
  21701. position: absolute;
  21702. left: 22%;
  21703. top: 0;
  21704. }
  21705. .student_head {
  21706. width: 100%;
  21707. margin: 20px auto 0;
  21708. padding-bottom: 20px;
  21709. display: flex;
  21710. flex-direction: column;
  21711. flex-wrap: nowrap;
  21712. align-items: flex-start;
  21713. justify-content: flex-start;
  21714. }
  21715. .pb_left {
  21716. width: 15%;
  21717. margin-right: 10px;
  21718. background: rgb(255, 255, 255);
  21719. position: fixed;
  21720. height: calc(100% - 40px);
  21721. border-radius: 20px;
  21722. padding-bottom: 15px;
  21723. box-sizing: border-box;
  21724. }
  21725. .wheel > img,
  21726. .project > img,
  21727. .star > img,
  21728. .evaluate > img,
  21729. .up_photo > img,
  21730. .chapter_add > img,
  21731. .deleteWord > img,
  21732. .question > img,
  21733. .homework > img {
  21734. width: 100%;
  21735. height: 100%;
  21736. }
  21737. .upCover > img {
  21738. width: 131px;
  21739. height: 69px;
  21740. object-fit: cover;
  21741. }
  21742. .upCover {
  21743. width: calc(100% / 3.5);
  21744. position: relative;
  21745. margin: 0 15px 10px 0;
  21746. display: flex;
  21747. flex-direction: column;
  21748. flex-wrap: nowrap;
  21749. justify-content: center;
  21750. align-content: center;
  21751. align-items: center;
  21752. height: fit-content;
  21753. }
  21754. .upCover2 {
  21755. width: 100%;
  21756. position: relative;
  21757. margin: 0 15px 10px 0;
  21758. display: flex;
  21759. flex-direction: column;
  21760. flex-wrap: nowrap;
  21761. justify-content: center;
  21762. align-content: center;
  21763. align-items: center;
  21764. }
  21765. .upCover2 > img {
  21766. width: 100%;
  21767. height: 90px;
  21768. object-fit: contain;
  21769. }
  21770. .chapter_add {
  21771. width: 120px;
  21772. position: relative;
  21773. text-align: center;
  21774. }
  21775. .isAddThings {
  21776. margin-top: 20px;
  21777. position: relative;
  21778. text-align: center;
  21779. background: #f7f8fa;
  21780. height: 90px;
  21781. width: 90px;
  21782. display: flex;
  21783. flex-direction: column;
  21784. justify-content: center;
  21785. }
  21786. .deleteWord {
  21787. width: 22px;
  21788. height: 22px;
  21789. position: absolute;
  21790. right: -5px;
  21791. top: -5px;
  21792. cursor: pointer;
  21793. }
  21794. .box_course {
  21795. /* width: 60%; */
  21796. width: calc(100% - 300px);
  21797. }
  21798. .wheel {
  21799. width: 100%;
  21800. /* height: 100%; */
  21801. height: 650px;
  21802. }
  21803. .right_box {
  21804. display: flex;
  21805. flex-direction: column;
  21806. margin-left: 30px;
  21807. justify-content: space-around;
  21808. }
  21809. .right_box_title {
  21810. font-size: 23px;
  21811. }
  21812. .people {
  21813. display: flex;
  21814. }
  21815. .student_body {
  21816. width: 100%;
  21817. margin: 0 auto;
  21818. margin-top: 10px;
  21819. padding: 0 0 20px;
  21820. }
  21821. .study_top {
  21822. margin-top: 100px;
  21823. width: 100%;
  21824. height: auto;
  21825. padding-bottom: 20px;
  21826. margin-left: 2px;
  21827. min-height: 90%;
  21828. }
  21829. .study_top .checkbox {
  21830. display: flex;
  21831. align-items: center;
  21832. padding: 15px 0 15px 30px;
  21833. flex: 0 0 auto;
  21834. font-weight: bold;
  21835. border-bottom: 1px solid #eee;
  21836. }
  21837. .study_top .check {
  21838. padding-bottom: 5px;
  21839. text-align: center;
  21840. cursor: pointer;
  21841. height: 30px;
  21842. box-sizing: border-box;
  21843. display: flex;
  21844. }
  21845. .study_top .checked {
  21846. border-bottom: 4px solid #3fc6a0;
  21847. padding-bottom: 5px;
  21848. color: #3fc6a0;
  21849. display: flex;
  21850. height: 35px;
  21851. }
  21852. .study_top .checked > div,
  21853. .study_top .check > div {
  21854. margin-right: 5px;
  21855. }
  21856. .videoTop {
  21857. display: flex;
  21858. flex-direction: row;
  21859. justify-content: space-between;
  21860. background: #fff;
  21861. align-items: center;
  21862. width: 95%;
  21863. padding: 20px;
  21864. }
  21865. .filebox {
  21866. display: flex;
  21867. flex-wrap: wrap;
  21868. flex-direction: column;
  21869. padding: 0 0 5px;
  21870. position: relative;
  21871. }
  21872. .filebox:before {
  21873. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21874. position: absolute;
  21875. top: 20px;
  21876. left: 13px;
  21877. border-left: 2px dotted #cad1dc;
  21878. height: calc(100% - 15px);
  21879. }
  21880. .toolHeng2 > div:last-child::before {
  21881. height: calc(100% - 43px);
  21882. }
  21883. .filebox .tooldetail {
  21884. width: calc(100%);
  21885. margin: 0px 12px;
  21886. padding: 12px;
  21887. line-height: 30px;
  21888. word-break: break-word;
  21889. background: #ffffff;
  21890. border-radius: 8px 8px 8px 8px;
  21891. opacity: 1;
  21892. border: 1px solid #cad1dc;
  21893. overflow:hidden;
  21894. box-sizing:border-box;
  21895. }
  21896. .file {
  21897. display: flex;
  21898. flex-direction: column;
  21899. align-items: center;
  21900. justify-content: center;
  21901. cursor: pointer;
  21902. width: 200px;
  21903. }
  21904. .file div {
  21905. margin-top: 10px;
  21906. width: 150px;
  21907. text-align: center;
  21908. overflow: hidden;
  21909. white-space: nowrap;
  21910. text-overflow: ellipsis;
  21911. }
  21912. .media {
  21913. display: flex;
  21914. flex-direction: column;
  21915. align-items: center;
  21916. justify-content: center;
  21917. margin: 0 20px 20px 0;
  21918. cursor: pointer;
  21919. margin: 12px 0 5px 15px;
  21920. overflow: hidden;
  21921. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21922. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21923. box-sizing: border-box;
  21924. }
  21925. .media img {
  21926. height: 90px;
  21927. width: 160px;
  21928. object-fit: cover;
  21929. }
  21930. .media .title {
  21931. padding: 5px;
  21932. text-align: left;
  21933. width: 100%;
  21934. box-sizing: border-box;
  21935. }
  21936. .media .btn {
  21937. width: 100%;
  21938. height: 35px;
  21939. line-height: 35px;
  21940. color: #fff;
  21941. background: #606060;
  21942. text-align: center;
  21943. overflow: hidden;
  21944. white-space: nowrap;
  21945. text-overflow: ellipsis;
  21946. }
  21947. .detail_content_top {
  21948. width: 100%;
  21949. padding: 25px 0 25px 0;
  21950. }
  21951. .detail_title {
  21952. text-align: center;
  21953. font-size: 24px;
  21954. }
  21955. .detail_time {
  21956. font-size: 13px;
  21957. padding: 15px 0 0 40px;
  21958. }
  21959. .detail_content {
  21960. line-height: 2pc;
  21961. width: 90%;
  21962. margin: 0 auto;
  21963. padding-top: 30px;
  21964. text-indent: 30px;
  21965. overflow: auto;
  21966. height: 200px;
  21967. }
  21968. .score_box >>> .el-rate {
  21969. margin-left: 10px;
  21970. }
  21971. .dialog_change >>> .el-dialog {
  21972. border-radius: 5px;
  21973. }
  21974. .dialog_change >>> .el-dialog__header {
  21975. background: #f2f2f2;
  21976. text-align: center;
  21977. }
  21978. .dialog_change >>> .el-dialog__title {
  21979. line-height: 5px;
  21980. }
  21981. .dialog_change >>> .el-dialog__body {
  21982. background: #fff;
  21983. padding: 10px 20px;
  21984. }
  21985. .score_box {
  21986. display: flex;
  21987. align-items: center;
  21988. margin-bottom: 18px;
  21989. margin-top: 20px;
  21990. }
  21991. .up_photo {
  21992. width: 120px;
  21993. cursor: pointer;
  21994. margin-top: 10px;
  21995. }
  21996. .up_photo2 {
  21997. width: 180px;
  21998. box-sizing: border-box;
  21999. min-width: 180px;
  22000. height: 180px;
  22001. max-height: 180px;
  22002. min-height: 180px;
  22003. cursor: pointer;
  22004. display: flex;
  22005. flex-direction: column;
  22006. align-items: center;
  22007. justify-content: center;
  22008. background: rgb(242, 246, 255);
  22009. /* padding: 25px; */
  22010. margin-bottom: 10px;
  22011. }
  22012. .up_photo2 img {
  22013. width: 50%;
  22014. height: auto;
  22015. }
  22016. .up_photo2 span {
  22017. color: #898989;
  22018. }
  22019. .plworkBox {
  22020. display: flex;
  22021. align-items: center;
  22022. margin-top: 10px;
  22023. flex-wrap: wrap;
  22024. }
  22025. .upload_send {
  22026. margin: 30px auto 30px;
  22027. width: 60%;
  22028. background: #3681fc;
  22029. text-align: center;
  22030. height: 35px;
  22031. line-height: 35px;
  22032. color: #fff;
  22033. border-radius: 5px;
  22034. cursor: pointer;
  22035. }
  22036. .marginT {
  22037. margin-top: 20px;
  22038. }
  22039. .cd_content_steps {
  22040. display: flex;
  22041. width: 90%;
  22042. justify-content: space-around;
  22043. border-top: 1px solid #eeeeee;
  22044. }
  22045. .cd_steps_box {
  22046. display: flex;
  22047. justify-content: center;
  22048. align-items: center;
  22049. flex-direction: column;
  22050. cursor: pointer;
  22051. }
  22052. .first {
  22053. display: flex;
  22054. align-items: center;
  22055. margin: 15px 0 20px 0;
  22056. font-size: 20px;
  22057. }
  22058. .first > div:nth-child(2) {
  22059. font-size: 16px !important;
  22060. padding-left: 10px;
  22061. line-height: 26px;
  22062. box-sizing: border-box;
  22063. }
  22064. .blue_box_one {
  22065. text-align: center;
  22066. color: #fff;
  22067. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22068. border-radius: 7px;
  22069. margin: 10px;
  22070. cursor: pointer;
  22071. width: 95%;
  22072. height: 45px;
  22073. display: flex;
  22074. flex-direction: row;
  22075. justify-content: flex-start;
  22076. align-items: center;
  22077. }
  22078. .blue_box_one > div:nth-child(1) {
  22079. line-height: 30px;
  22080. margin: 0 5px 0 10px;
  22081. width: 30%;
  22082. min-width: 70px;
  22083. border-radius: 4px;
  22084. }
  22085. .blue_box_one > div:nth-child(2) {
  22086. white-space: nowrap;
  22087. text-overflow: ellipsis;
  22088. overflow: hidden;
  22089. word-break: break-all;
  22090. width: 70%;
  22091. text-align: left;
  22092. margin-right: 10px;
  22093. max-width: calc(100% - 85px);
  22094. }
  22095. .blue_box_one > div:nth-child(2):hover {
  22096. overflow: hidden;
  22097. text-overflow: ellipsis;
  22098. white-space: nowrap;
  22099. cursor: pointer;
  22100. }
  22101. .upFile {
  22102. margin: 0 auto;
  22103. width: 120px;
  22104. background: #3681fc;
  22105. color: #fff;
  22106. height: 30px;
  22107. text-align: center;
  22108. line-height: 30px;
  22109. border-radius: 5px;
  22110. font-size: 14px;
  22111. cursor: pointer;
  22112. }
  22113. .courseTitle {
  22114. width: 85%;
  22115. margin: 10px auto 26px auto;
  22116. display: flex;
  22117. flex-direction: row;
  22118. align-items: center;
  22119. justify-content: space-between;
  22120. text-align: center;
  22121. }
  22122. .courseTitle .ctitle {
  22123. font-size: 20px;
  22124. font-weight: bold;
  22125. color: #0e1e33;
  22126. white-space: nowrap;
  22127. overflow: hidden;
  22128. text-overflow: ellipsis;
  22129. }
  22130. .inviteBox {
  22131. font-size: 14px;
  22132. /* margin-top: 5px; */
  22133. color: #00000099;
  22134. text-align: center;
  22135. }
  22136. .courseTitle >>> .el-tooltip {
  22137. width: 100%;
  22138. white-space: nowrap;
  22139. overflow: hidden;
  22140. text-overflow: ellipsis;
  22141. word-break: break-word;
  22142. }
  22143. .ml {
  22144. margin-left: 20px;
  22145. color: #5b7dba;
  22146. border-left: 3px solid #5b7dba;
  22147. padding-left: 5px;
  22148. font-weight: bold;
  22149. }
  22150. .return {
  22151. width: 2rem;
  22152. height: 2rem;
  22153. cursor: pointer;
  22154. }
  22155. .return > img {
  22156. width: 100%;
  22157. height: 100%;
  22158. }
  22159. .returnBtn {
  22160. width: 86px;
  22161. height: 36px;
  22162. background: #3681fc;
  22163. border-radius: 4px;
  22164. color: #fff;
  22165. text-align: center;
  22166. line-height: 36px;
  22167. margin-right: 20px;
  22168. cursor: pointer;
  22169. font-size: 14px;
  22170. font-weight: 400;
  22171. display: flex;
  22172. flex-direction: row;
  22173. flex-wrap: nowrap;
  22174. align-items: center;
  22175. justify-content: center;
  22176. }
  22177. .reBtnIcon,
  22178. .commentIcon,
  22179. .vedioIcon,
  22180. .vedioIcon1 {
  22181. /* width: 36px; */
  22182. height: 36px;
  22183. border-radius: 4px;
  22184. position: relative;
  22185. /* background: #e0eafb; */
  22186. background: #0061ff;
  22187. cursor: pointer;
  22188. margin-right: 12px;
  22189. display: flex;
  22190. align-items: center;
  22191. padding: 0 10px;
  22192. box-sizing: border-box;
  22193. font-size: 14px;
  22194. color: #fff;
  22195. }
  22196. .reBtnIcon::before,
  22197. .commentIcon::before,
  22198. .vedioIcon::before,
  22199. .vedioIcon1::before {
  22200. content: "";
  22201. display: block;
  22202. background-size: 100% 100%;
  22203. background-repeat: no-repeat;
  22204. width: 20px;
  22205. height: 20px;
  22206. margin-right: 5px;
  22207. /* position: absolute; */
  22208. /* top: 8px;
  22209. left: 8px; */
  22210. }
  22211. .vedioIcon1 {
  22212. background: #f63564;
  22213. }
  22214. .reBtnIcon::before {
  22215. background-image: url("../assets/icon/newIcons/refresh.png");
  22216. }
  22217. .commentIcon::before {
  22218. background-image: url("../assets/icon/newIcons/comment.png");
  22219. }
  22220. .vedioIcon::before {
  22221. background-image: url("../assets/icon/newIcons/transcribe.png");
  22222. }
  22223. .vedioIcon1::before {
  22224. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22225. background-image: url("../assets/icon/newIcons/transcribe.png");
  22226. }
  22227. .tool {
  22228. display: flex;
  22229. flex-direction: column;
  22230. flex-wrap: nowrap;
  22231. width: 13%;
  22232. margin: 0 30px;
  22233. align-items: center;
  22234. position: relative;
  22235. padding: 10px 25px;
  22236. cursor: pointer;
  22237. }
  22238. .whiteBIcon {
  22239. width: 150px;
  22240. }
  22241. .whiteBIcon > img {
  22242. width: 100%;
  22243. height: 100%;
  22244. }
  22245. .mask {
  22246. background-color: rgba(0, 0, 0, 0);
  22247. position: fixed;
  22248. top: 0;
  22249. left: 0;
  22250. width: 100%;
  22251. height: 100%;
  22252. z-index: 20000;
  22253. display: flex;
  22254. align-items: center;
  22255. justify-content: center;
  22256. }
  22257. .progressBox {
  22258. width: 500px;
  22259. height: 180px;
  22260. background: #fff;
  22261. border-radius: 10px;
  22262. box-shadow: 0 0 6px 1px #bfbfbf;
  22263. display: flex;
  22264. align-items: center;
  22265. justify-content: center;
  22266. flex-direction: column;
  22267. position: relative;
  22268. color: #6c6c6c;
  22269. }
  22270. .progressBox >>> .el-progress-bar__outer {
  22271. background-color: #d1dfff !important;
  22272. }
  22273. .progressBox .lbox {
  22274. height: 50px;
  22275. font-size: 19px;
  22276. display: flex;
  22277. align-items: center;
  22278. color: #747474;
  22279. }
  22280. .progressBox .lbox img {
  22281. width: 40px;
  22282. margin-right: 20px;
  22283. }
  22284. .closeCss {
  22285. position: absolute;
  22286. top: 8px;
  22287. right: 8px;
  22288. cursor: pointer;
  22289. width: 20px;
  22290. height: 20px;
  22291. }
  22292. .closeCss > img {
  22293. width: 100%;
  22294. height: 100%;
  22295. }
  22296. .uploadVedio {
  22297. display: flex;
  22298. flex-direction: column;
  22299. flex-wrap: nowrap;
  22300. justify-content: center;
  22301. align-items: center;
  22302. margin: 0 15px 10px 0;
  22303. }
  22304. .uploadVedio > img {
  22305. width: 30px;
  22306. height: 30px;
  22307. }
  22308. .uploadVedio > span {
  22309. white-space: nowrap;
  22310. overflow: hidden;
  22311. text-overflow: ellipsis;
  22312. width: 75px;
  22313. margin-top: 7px;
  22314. }
  22315. .picName {
  22316. white-space: nowrap;
  22317. overflow: hidden;
  22318. text-overflow: ellipsis;
  22319. width: 75px;
  22320. margin-top: 7px;
  22321. }
  22322. .new_top {
  22323. display: flex;
  22324. background: #fff;
  22325. flex-direction: row;
  22326. justify-content: flex-start;
  22327. align-items: center;
  22328. height: 60px;
  22329. position: fixed;
  22330. top: 20px;
  22331. left: 22%;
  22332. width: 77%;
  22333. z-index: 999;
  22334. border-radius: 12px 12px 0 0;
  22335. border-bottom: 1px solid #cad1dc;
  22336. padding: 10px 0;
  22337. }
  22338. .new_topFixed {
  22339. width: 100%;
  22340. height: 40px;
  22341. position: fixed;
  22342. top: 0px;
  22343. display: block;
  22344. background: #f2f2f2;
  22345. z-index: 998;
  22346. }
  22347. .before {
  22348. position: absolute;
  22349. background: #c3dad4;
  22350. width: 6px;
  22351. height: 100%;
  22352. }
  22353. .courseIndex {
  22354. display: flex;
  22355. flex-direction: row;
  22356. align-items: center;
  22357. width: calc(100% - 745px);
  22358. }
  22359. .courseIndex > div:nth-child(1) {
  22360. margin: 0 0 0 10px;
  22361. font-size: 20px;
  22362. min-width: 100px;
  22363. font-weight: bold;
  22364. border-left: 4px solid #3363b9;
  22365. height: 32px;
  22366. text-align: center;
  22367. line-height: 35px;
  22368. }
  22369. .courseIndex > div:nth-child(2) {
  22370. font-size: 20px;
  22371. /* width: 300px; */
  22372. max-width: calc(100% - 105px);
  22373. white-space: nowrap;
  22374. overflow: hidden;
  22375. text-overflow: ellipsis;
  22376. }
  22377. .courseIndex > div:nth-child(3) {
  22378. border-bottom: 1px solid #d7d7d7;
  22379. padding-bottom: 5px;
  22380. background: #3681fc;
  22381. width: 55px;
  22382. min-width: 55px;
  22383. border-radius: 5px;
  22384. color: #fff;
  22385. text-align: center;
  22386. height: 20px;
  22387. line-height: 26px;
  22388. font-size: 14px;
  22389. margin: 0 0 0 10px;
  22390. }
  22391. .course_text {
  22392. padding: 20px 0 0 15px;
  22393. text-indent: 30px;
  22394. width: 80%;
  22395. min-height: 20px;
  22396. }
  22397. .vedioList {
  22398. background: #f2f2f2;
  22399. border: 1px solid #ececec;
  22400. /* width: 38.8%; */
  22401. /* width: 300px; */
  22402. width: 100%;
  22403. height: 445px;
  22404. border-radius: 10px;
  22405. overflow: hidden;
  22406. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22407. }
  22408. .vedioNav {
  22409. margin: 10px 0 0 15px;
  22410. border-bottom: 1px solid #d7d7d7;
  22411. padding-bottom: 5px;
  22412. background: #3681fc;
  22413. width: 55px;
  22414. min-width: 55px;
  22415. border-radius: 5px;
  22416. color: #fff;
  22417. text-align: center;
  22418. height: 20px;
  22419. line-height: 26px;
  22420. font-size: 14px;
  22421. }
  22422. .queTop {
  22423. display: flex;
  22424. padding: 20px 0 20px 30px;
  22425. width: 100%;
  22426. flex-direction: row;
  22427. justify-content: flex-start;
  22428. align-items: center;
  22429. box-sizing: border-box;
  22430. }
  22431. .queTopTitle {
  22432. display: flex;
  22433. flex-direction: row;
  22434. flex-wrap: nowrap;
  22435. align-items: center;
  22436. font-weight: bold;
  22437. font-size: 20px;
  22438. color: rgb(14, 30, 51);
  22439. }
  22440. .queTopTitle::before {
  22441. content: "";
  22442. width: 2px;
  22443. height: 22px;
  22444. background: #3681fc;
  22445. border-radius: 3px;
  22446. display: block;
  22447. margin: 2px 6px 0 0;
  22448. }
  22449. .queTopRight {
  22450. display: flex;
  22451. flex-direction: row;
  22452. flex-wrap: nowrap;
  22453. align-items: center;
  22454. }
  22455. .queTopClose {
  22456. margin-right: 20px;
  22457. cursor: pointer;
  22458. position: relative;
  22459. display: flex;
  22460. }
  22461. .closeImg,
  22462. .openImg {
  22463. width: 25px;
  22464. height: 25px;
  22465. position: absolute;
  22466. left: -20px;
  22467. top: -1px;
  22468. }
  22469. .closeImg > img,
  22470. .openImg > img {
  22471. width: 100%;
  22472. height: 100%;
  22473. }
  22474. .question {
  22475. width: 40px;
  22476. margin-right: 10px;
  22477. margin-top: 7px;
  22478. }
  22479. .queTitle {
  22480. margin-left: 5px;
  22481. font-size: 25px;
  22482. display: flex;
  22483. align-items: center;
  22484. }
  22485. .addEditor {
  22486. width: 100px;
  22487. height: 30px;
  22488. background: #42cda6;
  22489. color: #fff;
  22490. border-radius: 5px;
  22491. text-align: center;
  22492. line-height: 30px;
  22493. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22494. cursor: pointer;
  22495. }
  22496. /* .vedioName {
  22497. cursor: pointer;
  22498. margin: 0px 0px 10px 5px;
  22499. white-space: nowrap;
  22500. overflow: hidden;
  22501. text-overflow: ellipsis;
  22502. width: 100%;
  22503. } */
  22504. .vedioTime {
  22505. width: 35px;
  22506. position: absolute;
  22507. color: #fff;
  22508. bottom: 0px;
  22509. right: 0px;
  22510. text-align: center;
  22511. background: #46411f;
  22512. height: 20px;
  22513. font-size: 14px;
  22514. line-height: 20px;
  22515. }
  22516. .homework {
  22517. width: 200px;
  22518. display: flex;
  22519. flex-direction: column;
  22520. flex-wrap: nowrap;
  22521. align-items: center;
  22522. cursor: pointer;
  22523. }
  22524. .homebox {
  22525. display: flex;
  22526. flex-wrap: wrap;
  22527. flex-direction: row;
  22528. justify-content: flex-start;
  22529. align-items: center;
  22530. padding: 15px 0;
  22531. }
  22532. .isChooseActive {
  22533. color: #3681fc !important;
  22534. font-weight: bold !important;
  22535. }
  22536. .chooseWho {
  22537. display: flex;
  22538. width: 100%;
  22539. flex-direction: row;
  22540. flex-wrap: nowrap;
  22541. justify-content: flex-start;
  22542. padding-bottom: 10px;
  22543. }
  22544. .chooseWho > div {
  22545. cursor: pointer;
  22546. padding-bottom: 10px;
  22547. margin: 0 30px 0 0;
  22548. font-weight: 400;
  22549. color: #0e1e33;
  22550. }
  22551. .addPoint > div > img {
  22552. cursor: pointer;
  22553. width: 85px;
  22554. border-radius: 15px;
  22555. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22556. }
  22557. .addPoint > div {
  22558. display: flex;
  22559. flex-direction: column;
  22560. flex-wrap: nowrap;
  22561. align-items: center;
  22562. }
  22563. .isBorder > div {
  22564. margin: 0 0 10px 0;
  22565. align-items: flex-start !important;
  22566. }
  22567. .noiframeBox {
  22568. display: flex;
  22569. flex-wrap: wrap;
  22570. }
  22571. .iframeBox iframe {
  22572. width: 100%;
  22573. height: 800px;
  22574. border: none;
  22575. margin-bottom: 20px;
  22576. border: 1px solid #ccc;
  22577. }
  22578. .upload_toolBtn {
  22579. background: #3681fc;
  22580. color: #fff;
  22581. width: 110px;
  22582. text-align: center;
  22583. height: 35px;
  22584. line-height: 35px;
  22585. font-size: 14px;
  22586. border-radius: 5px;
  22587. cursor: pointer;
  22588. position: absolute;
  22589. right: 10px;
  22590. bottom: 0;
  22591. }
  22592. .binfo_input,
  22593. .pj {
  22594. font: inherit;
  22595. color: currentColor;
  22596. width: 100%;
  22597. margin: 0;
  22598. padding: 15px 14px;
  22599. display: block;
  22600. min-width: 0;
  22601. outline: none;
  22602. box-sizing: content-box;
  22603. background: none;
  22604. -webkit-tap-highlight-color: transparent;
  22605. border: 1px solid rgba(0, 0, 0, 0.23);
  22606. border-radius: 4px;
  22607. box-sizing: border-box;
  22608. resize: none;
  22609. }
  22610. .binfo_input:focus-visible {
  22611. border: 1px solid rgba(61, 103, 188);
  22612. }
  22613. .dialog_diy >>> .el-dialog__header,
  22614. .dialog_diy1 >>> .el-dialog__header {
  22615. background: #454545 !important;
  22616. padding: 15px 20px;
  22617. }
  22618. .dialog_diy >>> .el-dialog__title,
  22619. .dialog_diy1 >>> .el-dialog__title {
  22620. color: #fff;
  22621. }
  22622. .dialog_diy >>> .el-dialog__headerbtn,
  22623. .dialog_diy1 >>> .el-dialog__headerbtn {
  22624. top: 19px;
  22625. }
  22626. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22627. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22628. color: #fff;
  22629. }
  22630. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22631. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22632. color: #fff;
  22633. }
  22634. .dialog_diy1 >>> .el-dialog__body {
  22635. padding: 0;
  22636. }
  22637. .dialog_diy >>> .el-dialog__body,
  22638. .dialog_diy >>> .el-dialog__footer,
  22639. .dialog_diy1 >>> .el-dialog__footer {
  22640. background: #fafafa;
  22641. }
  22642. .a_addBox {
  22643. padding: 0 0 0 15px;
  22644. }
  22645. .a_add_box {
  22646. padding: 10px;
  22647. background: #fff;
  22648. margin-bottom: 10px;
  22649. border-radius: 5px;
  22650. box-shadow: 0 0 5px 0 #d5d5d5;
  22651. }
  22652. .a_add_head {
  22653. display: flex;
  22654. align-items: flex-start;
  22655. /* justify-content: space-between; */
  22656. flex-direction: column;
  22657. /* flex-direction: row; */
  22658. margin: 10px 0 20px 0;
  22659. font-size: 18px;
  22660. width: 100%;
  22661. }
  22662. .askIndex {
  22663. background: #3681fc;
  22664. border-radius: 50%;
  22665. color: #fff;
  22666. width: 25px;
  22667. height: 25px;
  22668. min-width: 25px;
  22669. min-height: 25px;
  22670. text-align: center;
  22671. line-height: 25px;
  22672. margin-right: 5px;
  22673. }
  22674. .a_add_head .a_add_head_input {
  22675. width: 300px;
  22676. }
  22677. .a_add_head .a_add_head_div {
  22678. display: flex;
  22679. align-items: center;
  22680. justify-content: space-between;
  22681. }
  22682. .a_add_body {
  22683. display: flex;
  22684. align-items: center;
  22685. }
  22686. .a_add_input {
  22687. display: flex;
  22688. align-items: center;
  22689. flex-wrap: wrap;
  22690. width: 100%;
  22691. }
  22692. .a_add_input >>> .el-radio-group,
  22693. .a_add_input >>> .el-checkbox-group {
  22694. width: 100%;
  22695. }
  22696. .a_add_input >>> .el-radio,
  22697. .a_add_input >>> .el-checkbox {
  22698. display: flex;
  22699. flex-direction: row;
  22700. flex-wrap: nowrap;
  22701. align-items: center;
  22702. padding: 15px 0;
  22703. }
  22704. .a_add_input >>> .el-radio:not(:last-child),
  22705. .a_add_input >>> .el-checkbox:not(:last-child) {
  22706. width: 100%;
  22707. border-bottom: 1px solid #efefef;
  22708. }
  22709. .redioStyle >>> .el-radio__label {
  22710. font-size: 18px;
  22711. }
  22712. .redioStyle >>> .el-radio__label > span,
  22713. .redioStyle >>> .el-checkbox__label > span {
  22714. word-break: break-all;
  22715. white-space: normal;
  22716. }
  22717. .redioStyle >>> .el-checkbox__label {
  22718. font-size: 18px;
  22719. }
  22720. .toolHeng2 {
  22721. width: 100%;
  22722. padding-left: 15px;
  22723. box-sizing: border-box;
  22724. }
  22725. .workNav {
  22726. font-size: 20px;
  22727. font-weight: bold;
  22728. color: #0e1e33;
  22729. display: flex;
  22730. flex-direction: row;
  22731. flex-wrap: nowrap;
  22732. align-items: center;
  22733. padding: 15px 0 15px 0;
  22734. }
  22735. .workNav::before {
  22736. content: "";
  22737. width: 2px;
  22738. height: 22px;
  22739. background: #3681fc;
  22740. border-radius: 3px;
  22741. display: block;
  22742. margin: 2px 6px 0 0;
  22743. }
  22744. .toolHeng {
  22745. display: flex;
  22746. flex-direction: row;
  22747. flex-wrap: wrap;
  22748. justify-content: flex-start;
  22749. align-items: center;
  22750. width: 100%;
  22751. }
  22752. .toolHeng > div {
  22753. padding-left: 20px;
  22754. }
  22755. .isWidth {
  22756. width: 20%;
  22757. }
  22758. .textTitle {
  22759. display: flex;
  22760. flex-direction: row;
  22761. flex-wrap: nowrap;
  22762. align-items: center;
  22763. width: 95%;
  22764. }
  22765. .textTitle >>> .el-form-item__label {
  22766. font-size: 22px;
  22767. color: #918f8f;
  22768. width: 100px;
  22769. }
  22770. .textTitle >>> .el-form-item__content {
  22771. width: calc(100% - 100px);
  22772. }
  22773. .textCss >>> .el-dialog {
  22774. width: 800px !important;
  22775. height: 400px;
  22776. background: #fafafa;
  22777. }
  22778. .textCss >>> .el-dialog__body {
  22779. margin: 55px 8% 0 8%;
  22780. padding: 0 !important;
  22781. }
  22782. .textCss >>> .el-dialog__footer {
  22783. padding-top: 38px;
  22784. }
  22785. .toolsCss >>> .el-dialog__body {
  22786. padding: 20px;
  22787. }
  22788. .lineCss >>> .el-dialog__body {
  22789. display: flex;
  22790. flex-direction: row;
  22791. align-items: center;
  22792. justify-content: center;
  22793. }
  22794. .newNav {
  22795. display: flex;
  22796. flex-direction: row;
  22797. align-items: baseline;
  22798. justify-content: flex-start;
  22799. }
  22800. .navListItem {
  22801. width: calc(100% - 20px);
  22802. height: 50px;
  22803. margin: 0px auto 10px;
  22804. display: flex;
  22805. flex-direction: row;
  22806. flex-wrap: nowrap;
  22807. align-items: center;
  22808. justify-content: space-between;
  22809. background: #f0f4fa;
  22810. border-radius: 6px 6px 6px 6px;
  22811. }
  22812. .navText {
  22813. cursor: pointer;
  22814. white-space: nowrap;
  22815. overflow: hidden;
  22816. text-overflow: ellipsis;
  22817. width: 220px;
  22818. padding: 0 10px;
  22819. font-weight: 400;
  22820. color: #0e1e33;
  22821. }
  22822. .downIcon {
  22823. width: 20px;
  22824. min-width: 20px;
  22825. height: 20px;
  22826. margin-right: 15px;
  22827. cursor: pointer;
  22828. }
  22829. .downIcon > img {
  22830. width: 100%;
  22831. height: 100%;
  22832. }
  22833. .noVedio {
  22834. display: flex;
  22835. flex-direction: row;
  22836. justify-content: center;
  22837. align-content: center;
  22838. }
  22839. .noNavText {
  22840. cursor: pointer;
  22841. margin: 0px 0px 10px 5px;
  22842. width: 112px;
  22843. }
  22844. .listNoVedio {
  22845. margin: 0 0 0 30px;
  22846. width: 97%;
  22847. }
  22848. .video-player >>> .video-js {
  22849. height: 100%;
  22850. }
  22851. .hangVedioList {
  22852. width: 90% !important;
  22853. height: 150px !important;
  22854. margin: 20px 0 0 30px;
  22855. }
  22856. .hangVedio {
  22857. width: 100%;
  22858. height: 170px !important;
  22859. align-items: flex-start !important;
  22860. }
  22861. .hangHand {
  22862. height: 150px !important;
  22863. }
  22864. .twoChild {
  22865. width: 95%;
  22866. margin: 10px;
  22867. border-radius: 5px;
  22868. background: #f2f2f2;
  22869. display: flex;
  22870. flex-direction: column;
  22871. flex-wrap: nowrap;
  22872. justify-content: flex-start;
  22873. align-items: flex-start;
  22874. transition: all 0.5s;
  22875. overflow: hidden;
  22876. height: 0;
  22877. background: #e7f3ff;
  22878. }
  22879. .twoChild > div:nth-child(1) {
  22880. margin-top: 5px;
  22881. }
  22882. .navChild {
  22883. width: 100%;
  22884. cursor: pointer;
  22885. margin-bottom: 10px;
  22886. position: relative;
  22887. }
  22888. .navChild img {
  22889. position: absolute;
  22890. right: 11px;
  22891. width: 15px;
  22892. top: 50%;
  22893. transform: translateY(-50%);
  22894. }
  22895. .navActive,
  22896. .toolActive {
  22897. height: auto !important;
  22898. overflow: auto !important;
  22899. /* padding-bottom: 16px; */
  22900. }
  22901. .toolActive {
  22902. padding: 0;
  22903. }
  22904. .navTask {
  22905. display: flex;
  22906. flex-direction: row;
  22907. flex-wrap: nowrap;
  22908. align-items: center;
  22909. align-content: flex-start;
  22910. height: 40px;
  22911. justify-content: flex-start;
  22912. padding: 0 10px;
  22913. width: 100%;
  22914. box-sizing: border-box;
  22915. }
  22916. .navTaskname {
  22917. white-space: nowrap;
  22918. text-overflow: ellipsis;
  22919. overflow: hidden;
  22920. word-break: break-all;
  22921. padding-left: 5px;
  22922. }
  22923. .openTaskActive {
  22924. /* background-color: #e0eafb !important;
  22925. color: #0061ff; */
  22926. color:#fff;
  22927. background: rgb(55, 129, 252) !important;
  22928. }
  22929. .iframeName {
  22930. margin: 5px 0;
  22931. border-left: 4px solid #41c4a4;
  22932. padding-left: 4px;
  22933. }
  22934. .toolTitle {
  22935. margin: 0px 0px 20px;
  22936. font-size: 20px;
  22937. font-weight: 500;
  22938. border-left: 4px solid #41c4a4;
  22939. padding-left: 4px;
  22940. }
  22941. .cru_selectBox {
  22942. overflow: auto;
  22943. width: 95%;
  22944. margin: 17px auto 0;
  22945. height: calc(100% - 40px - 21px - 20px - 17px);
  22946. background: #fff;
  22947. border-radius: 8px;
  22948. }
  22949. .cru_selectBox::-webkit-scrollbar,
  22950. .study_top::-webkit-scrollbar,
  22951. .textContent::-webkit-scrollbar {
  22952. /*滚动条整体样式*/
  22953. width: 6px;
  22954. /*高宽分别对应横竖滚动条的尺寸*/
  22955. height: 6px;
  22956. }
  22957. /*定义滚动条轨道 内阴影+圆角*/
  22958. .cru_selectBox::-webkit-scrollbar-track,
  22959. .study_top::-webkit-scrollbar-track,
  22960. .textContent::-webkit-scrollbar {
  22961. border-radius: 10px;
  22962. background-color: #b8bdc9;
  22963. }
  22964. /*定义滑块 内阴影+圆角*/
  22965. .cru_selectBox::-webkit-scrollbar-thumb,
  22966. .study_top::-webkit-scrollbar-thumb,
  22967. .textContent::-webkit-scrollbar-thumb {
  22968. border-radius: 10px;
  22969. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22970. background-color: #2c5ab3;
  22971. }
  22972. .vedioBox {
  22973. border-radius: 0 0 20px 20px;
  22974. background: #fff;
  22975. overflow: auto;
  22976. }
  22977. .taskBox {
  22978. width: 98%;
  22979. background: #f0f4fa;
  22980. margin: 10px auto;
  22981. padding: 0 10px;
  22982. border-radius: 4px;
  22983. box-sizing: border-box;
  22984. }
  22985. .vedioTaskBox {
  22986. width: 100%;
  22987. display: flex;
  22988. flex-direction: row;
  22989. flex-wrap: nowrap;
  22990. align-items: flex-start;
  22991. position: relative;
  22992. }
  22993. .toolBox {
  22994. margin: 15px 0 0 25px;
  22995. display: flex;
  22996. position: relative;
  22997. padding: 18px 20px;
  22998. border-top-left-radius: 5px;
  22999. border-top-right-radius: 5px;
  23000. width: 90%;
  23001. }
  23002. .btnAll {
  23003. position: absolute;
  23004. right: 0;
  23005. display: flex;
  23006. flex-direction: row;
  23007. flex-wrap: nowrap;
  23008. align-items: center;
  23009. }
  23010. .btnLeft,
  23011. .btnRight {
  23012. display: flex;
  23013. flex-direction: row;
  23014. flex-wrap: nowrap;
  23015. align-items: center;
  23016. padding: 5px 0;
  23017. }
  23018. .btnLeft {
  23019. border-right: 1px solid #cad1dc;
  23020. }
  23021. .btnLeft > .custom-tooltip {
  23022. background: #3681fc;
  23023. color: #fff;
  23024. }
  23025. .last:hover {
  23026. background: #3383fa !important;
  23027. color: #fff;
  23028. border: 1px solid #3383fa !important;
  23029. }
  23030. .last,
  23031. .returnBtn1 {
  23032. width: 90px;
  23033. height: 36px;
  23034. background: #ffffff;
  23035. border-radius: 4px;
  23036. border: 1px solid #0061ff;
  23037. color: #0061ff;
  23038. cursor: pointer;
  23039. display: flex;
  23040. flex-direction: row;
  23041. flex-wrap: nowrap;
  23042. align-items: center;
  23043. justify-content: center;
  23044. margin-left: 12px;
  23045. }
  23046. .returnBtn1 {
  23047. background: #f0f4fa;
  23048. border-radius: 4px;
  23049. border: 1px solid #cad1dc;
  23050. margin: 0 12px;
  23051. }
  23052. .lastImg {
  23053. min-width: 15px;
  23054. width: 15px;
  23055. height: 15px;
  23056. display: flex;
  23057. }
  23058. .lastText {
  23059. padding: 0 5px 0 5px;
  23060. box-sizing: border-box;
  23061. font-size: 14px;
  23062. }
  23063. .lastImg > img {
  23064. width: 100%;
  23065. height: 100%;
  23066. }
  23067. /* .vedioTimeBox {
  23068. display: flex;
  23069. flex-direction: row;
  23070. align-items: center;
  23071. flex-wrap: nowrap;
  23072. position: relative;
  23073. } */
  23074. .navBox {
  23075. background: #fff;
  23076. height: calc(100% - 40px);
  23077. overflow-y: auto;
  23078. overflow-x: hidden;
  23079. }
  23080. .worksBox {
  23081. margin: 0 0 10px 25px;
  23082. border-bottom: 1px solid #eeeeee;
  23083. padding: 18px 20px;
  23084. border-radius: 4px;
  23085. width: 90%;
  23086. }
  23087. .worksBTitle {
  23088. font-size: 20px;
  23089. padding-bottom: 15px;
  23090. border-bottom: 1px solid #eeeeee;
  23091. display: flex;
  23092. align-items: center;
  23093. }
  23094. .greenBox {
  23095. width: 5px;
  23096. height: 30px;
  23097. background: #63b6fa;
  23098. margin-right: 5px;
  23099. }
  23100. .worksDetailBox {
  23101. display: flex;
  23102. width: 100%;
  23103. flex-direction: row;
  23104. flex-wrap: wrap;
  23105. align-items: flex-end;
  23106. justify-content: flex-start;
  23107. padding: 15px 5px;
  23108. box-sizing: border-box;
  23109. }
  23110. .works {
  23111. display: flex;
  23112. flex-direction: column;
  23113. flex-wrap: nowrap;
  23114. align-items: flex-start;
  23115. justify-content: flex-start;
  23116. align-content: center;
  23117. max-width: 240px;
  23118. width: calc(100% / 3 - 10px);
  23119. height: auto;
  23120. margin-right: 10px;
  23121. margin-bottom: 10px;
  23122. overflow: hidden;
  23123. height: 140px;
  23124. box-shadow: 0 0 6px 1px #dfdada;
  23125. border-radius: 15px;
  23126. }
  23127. .workImg {
  23128. width: 100%;
  23129. /* height: calc(100% - 40px); */
  23130. height: 105px;
  23131. position: relative;
  23132. }
  23133. .workImg > img {
  23134. width: 100%;
  23135. height: 100%;
  23136. object-fit: contain;
  23137. cursor: pointer;
  23138. }
  23139. .worksName {
  23140. height: 40px;
  23141. line-height: 40px;
  23142. display: flex;
  23143. width: 100%;
  23144. flex-direction: row;
  23145. flex-wrap: nowrap;
  23146. justify-content: space-between;
  23147. align-items: center;
  23148. margin: 0 0 0 10px;
  23149. }
  23150. .worksName > div:nth-child(1) {
  23151. width: 110px;
  23152. white-space: nowrap;
  23153. overflow: hidden;
  23154. text-overflow: ellipsis;
  23155. }
  23156. .worksName > div:nth-child(2) {
  23157. color: #b7b4b5;
  23158. }
  23159. .noWorksS {
  23160. padding: 15px 0;
  23161. display: flex;
  23162. flex-direction: row;
  23163. flex-wrap: wrap;
  23164. align-items: center;
  23165. justify-content: flex-start;
  23166. }
  23167. .noWorksName,
  23168. .isWorksName,
  23169. .isWorksName2 {
  23170. background: #ddebf8;
  23171. color: #000;
  23172. width: 90px;
  23173. height: 25px;
  23174. text-align: center;
  23175. line-height: 25px;
  23176. border-radius: 4px;
  23177. margin: 10px 15px 10px 0;
  23178. white-space: nowrap;
  23179. overflow: hidden;
  23180. padding: 5px;
  23181. text-overflow: ellipsis;
  23182. cursor: pointer;
  23183. border: 1px solid #ddebf8;
  23184. }
  23185. .noWorksName {
  23186. background: #fff;
  23187. color: #0061ff;
  23188. border: 1px solid #0061ff;
  23189. }
  23190. .noWorksName > span{
  23191. max-width: 100%;
  23192. display: block;
  23193. overflow: hidden;
  23194. text-overflow: ellipsis;
  23195. white-space: nowrap;
  23196. }
  23197. .isWorksName2 {
  23198. width: 100px;
  23199. height: 40px;
  23200. line-height: 40px;
  23201. position: relative;
  23202. background: #dae6f9;
  23203. }
  23204. .isWorksName {
  23205. background: #e7ebf1 !important;
  23206. width: 100px;
  23207. height: 40px;
  23208. line-height: 40px;
  23209. position: relative;
  23210. color: #acb4bf;
  23211. border: 1px solid #cad1dc !important;
  23212. }
  23213. .isSelectName,
  23214. .noWorksName:hover {
  23215. background: #3383fa !important;
  23216. color: #fff !important;
  23217. border: 1px solid #3383fa !important;
  23218. }
  23219. .title {
  23220. background: #1e5cc9;
  23221. /* width: 98%; */
  23222. height: 45px;
  23223. color: #fff;
  23224. line-height: 45px;
  23225. padding-left: 20px;
  23226. box-sizing: border-box;
  23227. }
  23228. .textBox {
  23229. font-size: 20px;
  23230. width: 90%;
  23231. display: flex;
  23232. flex-direction: column;
  23233. align-items: center;
  23234. margin: 20px auto 0;
  23235. max-height: calc(100% - 75px);
  23236. overflow: auto;
  23237. }
  23238. .textContent {
  23239. font-size: 18px;
  23240. width: 95%;
  23241. max-width: 95%;
  23242. }
  23243. .answerBg {
  23244. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23245. background-size: 100% 100%;
  23246. width: 100%;
  23247. height: 100%;
  23248. color: #fff;
  23249. text-align: center;
  23250. display: flex;
  23251. flex-direction: column;
  23252. flex-wrap: nowrap;
  23253. align-items: center;
  23254. position: relative;
  23255. justify-content: center;
  23256. }
  23257. /* .answerBg > div:nth-child(1) { */
  23258. /* font-size: 22px;
  23259. padding: 25px 0 10px; */
  23260. /* } */
  23261. .answerContent {
  23262. width: 215px;
  23263. max-height: 60px;
  23264. word-break: break-all;
  23265. text-align: center;
  23266. /* white-space: nowrap; */
  23267. overflow: hidden;
  23268. text-overflow: ellipsis;
  23269. /* padding: 23px 0 0; */
  23270. -webkit-line-clamp: 3;
  23271. -webkit-box-orient: vertical;
  23272. display: -webkit-box;
  23273. font-size: 15px;
  23274. cursor: pointer;
  23275. }
  23276. .elist_input_box {
  23277. display: flex;
  23278. align-items: flex-start;
  23279. flex-wrap: nowrap;
  23280. padding: 10px 0 15px 30px;
  23281. flex-direction: column;
  23282. }
  23283. .elist_input {
  23284. /* width: 40%; */
  23285. width: 45%;
  23286. margin: 20px;
  23287. }
  23288. .elist_input .elist_input_box input {
  23289. font: inherit;
  23290. color: currentColor;
  23291. width: 200px;
  23292. padding: 8px 14px;
  23293. display: block;
  23294. min-width: 0;
  23295. outline: none;
  23296. border: 1px solid rgba(0, 0, 0, 0.23);
  23297. border-radius: 4px;
  23298. box-sizing: border-box;
  23299. background: #fff;
  23300. margin: 0 20px 0 0;
  23301. }
  23302. .elist_input .elist_input_box span {
  23303. height: 36px;
  23304. line-height: 36px;
  23305. color: rgb(82, 82, 82);
  23306. }
  23307. .elist_input .elist_input_box .remove {
  23308. height: 20px;
  23309. width: 20px;
  23310. background-size: 100% 100%;
  23311. background-position: unset;
  23312. margin-left: 5px;
  23313. }
  23314. .elist_input_box >>> .el-rate {
  23315. display: flex;
  23316. height: 36px;
  23317. align-items: center;
  23318. }
  23319. .elist_input_box .elist_inptu_text {
  23320. min-height: 50px;
  23321. /* width: 500px;
  23322. max-height: 150px; */
  23323. width: 100%;
  23324. line-height: 50px;
  23325. color: rgb(82, 82, 82);
  23326. overflow: auto;
  23327. text-indent: 5px;
  23328. background: #f7f6f9;
  23329. border-radius: 10px;
  23330. }
  23331. .elist_input_box .elist_inptu_text input {
  23332. width: 500px;
  23333. }
  23334. .elist_input_box >>> .el-rate__icon {
  23335. font-size: 24px;
  23336. }
  23337. .isClick {
  23338. background: #4d9def;
  23339. }
  23340. .bzBox {
  23341. display: flex;
  23342. flex-direction: row;
  23343. align-items: center;
  23344. }
  23345. .bzBox .yCss {
  23346. width: 7px;
  23347. height: 7px;
  23348. background: #fff;
  23349. margin: 0 16px 0 6px;
  23350. border-radius: 50%;
  23351. border: 5px solid #3681fc;
  23352. z-index: 99;
  23353. }
  23354. .bzBox > div:nth-child(2) {
  23355. font-size: 18px;
  23356. font-weight: bold;
  23357. color: #0e1e33;
  23358. }
  23359. .navTitile {
  23360. padding: 0 0px 0 15px;
  23361. font-size: 16px;
  23362. font-weight: bold;
  23363. color: #0e1e33;
  23364. height: 40px;
  23365. line-height: 40px;
  23366. }
  23367. .isTypeOne {
  23368. width: 240px;
  23369. height: 170px;
  23370. /* border: 1px solid #f8f8f8; */
  23371. border-radius: 10px;
  23372. box-shadow: 0 0 6px 1px #dfdada;
  23373. }
  23374. .e_add_top {
  23375. display: flex;
  23376. justify-content: space-between;
  23377. padding: 10px 20px;
  23378. border-radius: 3px;
  23379. background: #fff;
  23380. }
  23381. .e_add_title2 {
  23382. display: flex;
  23383. align-items: center;
  23384. }
  23385. .e_add_title2 span {
  23386. width: 40px;
  23387. }
  23388. .e_add_title {
  23389. display: flex;
  23390. align-items: center;
  23391. color: #b8b8b8;
  23392. font-size: 18px;
  23393. position: relative;
  23394. height: 40px;
  23395. width: 100%;
  23396. }
  23397. .e_add_title span {
  23398. margin-right: 10px;
  23399. }
  23400. .e_add_title .el_input {
  23401. width: 300px;
  23402. }
  23403. .e_add_title >>> .el-input__inner {
  23404. width: 400px;
  23405. }
  23406. /* .e_add_btn {
  23407. } */
  23408. .e_add_content {
  23409. display: flex;
  23410. width: 100%;
  23411. max-width: 650px;
  23412. height: 550px;
  23413. }
  23414. .e_add_list {
  23415. background: #fff;
  23416. height: 500px;
  23417. width: 210px;
  23418. position: relative;
  23419. margin: 15px 5px 0 0;
  23420. flex-shrink: 0;
  23421. display: flex;
  23422. flex-direction: column;
  23423. }
  23424. .e_add_list_title {
  23425. font-size: 20px;
  23426. width: 100%;
  23427. box-sizing: border-box;
  23428. padding: 15px 40px;
  23429. text-align: center;
  23430. border-bottom: 1px solid #eaeaea;
  23431. position: relative;
  23432. display: flex;
  23433. align-items: center;
  23434. justify-content: center;
  23435. height: 57px;
  23436. background: #f6f6f6;
  23437. }
  23438. .e_add_list_title span {
  23439. overflow: hidden;
  23440. white-space: nowrap;
  23441. text-overflow: ellipsis;
  23442. }
  23443. .e_add_list_title img {
  23444. position: absolute;
  23445. right: 15px;
  23446. width: 25px;
  23447. cursor: pointer;
  23448. top: 50%;
  23449. transform: translateY(-50%);
  23450. }
  23451. .e_add_list_body {
  23452. height: calc(100% - 187px);
  23453. overflow: auto;
  23454. }
  23455. .e_add_list_child {
  23456. width: 100%;
  23457. display: flex;
  23458. align-items: center;
  23459. justify-content: center;
  23460. position: relative;
  23461. box-sizing: border-box;
  23462. padding: 15px 40px;
  23463. text-align: center;
  23464. }
  23465. .e_add_list_child span {
  23466. overflow: hidden;
  23467. white-space: nowrap;
  23468. text-overflow: ellipsis;
  23469. cursor: pointer;
  23470. }
  23471. .e_add_list_child img {
  23472. position: absolute;
  23473. right: 10px;
  23474. width: 21px;
  23475. cursor: pointer;
  23476. top: 50%;
  23477. transform: translateY(-50%);
  23478. }
  23479. .e_add_list_child + .e_add_list_child {
  23480. border-top: 1px solid #eaeaea;
  23481. }
  23482. .e_add_list_child .active {
  23483. color: #409eff;
  23484. }
  23485. .e_add_list_btn {
  23486. position: absolute;
  23487. bottom: 0;
  23488. height: 50px;
  23489. background: rgb(120, 120, 254);
  23490. width: 100%;
  23491. color: #fff;
  23492. font-size: 16px;
  23493. text-align: center;
  23494. line-height: 50px;
  23495. cursor: pointer;
  23496. }
  23497. .e_add_list_detail {
  23498. position: absolute;
  23499. bottom: 0;
  23500. height: 130px;
  23501. background: rgb(120, 120, 254);
  23502. width: 100%;
  23503. color: #fff;
  23504. font-size: 16px;
  23505. display: flex;
  23506. align-items: center;
  23507. justify-content: center;
  23508. }
  23509. .e_add_list_detail textarea {
  23510. height: 90%;
  23511. width: 95%;
  23512. border: none;
  23513. resize: none;
  23514. outline: none;
  23515. padding: 5px;
  23516. box-sizing: border-box;
  23517. }
  23518. .e_add_list_pbox {
  23519. width: 100%;
  23520. max-width: 650px;
  23521. /* height: 600px; */
  23522. }
  23523. .e_add_list_pbox_title {
  23524. height: 50px;
  23525. background: #fff;
  23526. display: flex;
  23527. align-items: center;
  23528. width: 100%;
  23529. box-sizing: border-box;
  23530. padding: 0 20px;
  23531. }
  23532. .type_title {
  23533. font-size: 18px;
  23534. font-weight: 700;
  23535. }
  23536. .type_content {
  23537. font-size: 16px;
  23538. /* margin-left: 30px; */
  23539. }
  23540. .type_content span + span {
  23541. margin-left: 20px;
  23542. }
  23543. .type_content span {
  23544. cursor: pointer;
  23545. padding-bottom: 5px;
  23546. box-sizing: border-box;
  23547. }
  23548. .type_content .active {
  23549. color: #409eff;
  23550. border-bottom: 2px solid #409eff;
  23551. }
  23552. .e_add_list_pbox_content {
  23553. height: calc(100% - 50px);
  23554. display: flex;
  23555. align-items: center;
  23556. width: 100%;
  23557. background: #fff;
  23558. }
  23559. .evaCss {
  23560. display: flex;
  23561. flex-direction: row;
  23562. flex-wrap: nowrap;
  23563. align-items: flex-start;
  23564. padding: 0 0 20px;
  23565. }
  23566. .cru_line {
  23567. position: absolute;
  23568. bottom: 0px;
  23569. transition: all 0.5s;
  23570. left: 0px;
  23571. width: 125px;
  23572. margin-left: -25px;
  23573. }
  23574. .isNoMessage {
  23575. width: 20%;
  23576. margin: 25% auto 0;
  23577. }
  23578. .isNoMessage > img {
  23579. width: 100%;
  23580. height: 100%;
  23581. }
  23582. .fullStyle >>> .el-dialog__body {
  23583. height: 100% !important;
  23584. }
  23585. .fullStyle >>> .el-dialog,
  23586. .fullStyle {
  23587. width: 100% !important;
  23588. max-width: 100% !important;
  23589. height: 100% !important;
  23590. margin: 0 !important;
  23591. }
  23592. .full_diy >>> .el-dialog {
  23593. margin: 0 !important;
  23594. height: 100%;
  23595. padding: 4px;
  23596. }
  23597. .full_diy >>> .el-dialog__body {
  23598. height: calc(100% - 100px);
  23599. }
  23600. .full_diy2 >>> .el-dialog__body {
  23601. height: calc(100% - 50px);
  23602. padding: 0;
  23603. }
  23604. .switchCss {
  23605. /* width: 100%; */
  23606. display: flex;
  23607. flex-direction: row;
  23608. flex-wrap: nowrap;
  23609. align-items: center;
  23610. /* justify-content: center; */
  23611. }
  23612. .isClickNav {
  23613. /* color: #499eef; */
  23614. color: #000;
  23615. }
  23616. .commentImg {
  23617. width: 25px;
  23618. height: 25px;
  23619. cursor: pointer;
  23620. }
  23621. .commentImg > img {
  23622. width: 100%;
  23623. height: 100%;
  23624. }
  23625. .comment {
  23626. background: #f9f9f9;
  23627. border-radius: 0 0 4px 4px;
  23628. display: flex;
  23629. flex-direction: row;
  23630. flex-wrap: nowrap;
  23631. align-items: center;
  23632. justify-content: flex-end;
  23633. height: 35px;
  23634. }
  23635. .commentList {
  23636. display: flex;
  23637. flex-direction: row;
  23638. flex-wrap: nowrap;
  23639. align-items: center;
  23640. justify-content: center;
  23641. align-content: center;
  23642. /* margin-left: 15px; */
  23643. /* margin-left: 8px; */
  23644. }
  23645. .scoreImg {
  23646. width: 17px;
  23647. height: 17px;
  23648. }
  23649. .studentDetail {
  23650. display: flex;
  23651. flex-direction: row;
  23652. flex-wrap: nowrap;
  23653. /* align-items: center; */
  23654. align-items: flex-start;
  23655. }
  23656. .tx {
  23657. width: 50px;
  23658. }
  23659. .tx > img {
  23660. width: 100%;
  23661. height: 100%;
  23662. }
  23663. .nameAndTime {
  23664. display: flex;
  23665. flex-direction: column;
  23666. flex-wrap: nowrap;
  23667. align-items: flex-start;
  23668. margin-left: 10px;
  23669. }
  23670. .worksAnswer {
  23671. color: #4078dd;
  23672. margin: 10px 0;
  23673. font-size: 16px;
  23674. position: relative;
  23675. }
  23676. .worksAnswer > img {
  23677. width: 500px;
  23678. height: 300px;
  23679. object-fit: contain;
  23680. margin: 0 auto;
  23681. display: block;
  23682. }
  23683. .commentTop {
  23684. border-bottom: 1px solid #eaeaea;
  23685. padding-bottom: 10px;
  23686. }
  23687. .commentBox {
  23688. padding-top: 15px;
  23689. }
  23690. .pl {
  23691. font-size: 18px;
  23692. }
  23693. .plPerson {
  23694. width: 100%;
  23695. }
  23696. .plName {
  23697. display: flex;
  23698. flex-direction: row;
  23699. flex-wrap: nowrap;
  23700. align-items: baseline;
  23701. color: #78787a;
  23702. width: 100%;
  23703. }
  23704. .deleteComment {
  23705. cursor: pointer;
  23706. margin-left: auto;
  23707. color: #237ade;
  23708. }
  23709. .plContent {
  23710. margin-top: 5px;
  23711. }
  23712. .evalCss {
  23713. background: #fff;
  23714. font-size: 18px;
  23715. }
  23716. .nav {
  23717. color: #9d9d9d;
  23718. padding: 5px 0 15px 20px;
  23719. }
  23720. .middleBox {
  23721. padding: 5px 0 15px 20px;
  23722. }
  23723. .pfBox {
  23724. padding-bottom: 30px;
  23725. }
  23726. .nameAndrate {
  23727. display: flex;
  23728. flex-direction: row;
  23729. flex-wrap: nowrap;
  23730. align-items: center;
  23731. padding-bottom: 10px;
  23732. height: 30px;
  23733. line-height: 30px;
  23734. }
  23735. .nameAndrate > div {
  23736. margin-left: 10px;
  23737. color: #000;
  23738. height: 30px;
  23739. }
  23740. .nameAndrate >>> .el-rate__icon {
  23741. font-size: 28px !important;
  23742. }
  23743. .pfBox > div:nth-child(2) {
  23744. background: #f7f6f9;
  23745. width: 400px;
  23746. min-height: 45px;
  23747. border-radius: 10px;
  23748. font-size: 16px;
  23749. display: flex;
  23750. flex-wrap: wrap;
  23751. align-items: center;
  23752. padding: 10px 20px;
  23753. box-sizing: border-box;
  23754. color: #000;
  23755. }
  23756. .bz {
  23757. display: flex;
  23758. flex-direction: row;
  23759. flex-wrap: nowrap;
  23760. align-items: flex-start;
  23761. }
  23762. .bz > div {
  23763. padding: 0 10px;
  23764. }
  23765. .select_box2_title {
  23766. background: #fff;
  23767. border-radius: 5px;
  23768. padding: 15px 10px;
  23769. box-sizing: border-box;
  23770. margin-bottom: 10px;
  23771. display: flex;
  23772. flex-direction: row;
  23773. flex-wrap: nowrap;
  23774. align-items: center;
  23775. }
  23776. .select_box2_title > div:nth-child(2) {
  23777. margin-left: 10px;
  23778. color: #c4c4c4;
  23779. }
  23780. .select_box2_box {
  23781. display: flex;
  23782. height: 500px;
  23783. }
  23784. .select_box2_img {
  23785. width: calc(100% - 310px);
  23786. height: 100%;
  23787. overflow: auto;
  23788. background: #fff;
  23789. border-radius: 5px;
  23790. }
  23791. .select_box2_img img {
  23792. width: 100%;
  23793. }
  23794. .select_box2_answer {
  23795. background: #fff;
  23796. margin-left: 10px;
  23797. border-radius: 5px;
  23798. width: 300px;
  23799. overflow: auto;
  23800. height: 90%;
  23801. display: flex;
  23802. flex-direction: column;
  23803. align-items: flex-start;
  23804. padding-top: 10px;
  23805. box-sizing: border-box;
  23806. position: relative;
  23807. }
  23808. .select_answer_title {
  23809. padding: 0 0 15px 20px;
  23810. color: #c4c4c4;
  23811. }
  23812. .select_box2_answer_box {
  23813. margin: 0 0 10px 20px;
  23814. width: 85%;
  23815. display: flex;
  23816. flex-direction: row;
  23817. flex-wrap: nowrap;
  23818. align-items: center;
  23819. }
  23820. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23821. color: #000;
  23822. }
  23823. .upAnswerCss {
  23824. position: absolute;
  23825. bottom: 15px;
  23826. right: 15px;
  23827. }
  23828. .upAnswerCss >>> .el-button {
  23829. width: 95px;
  23830. height: 35px;
  23831. line-height: 35px;
  23832. padding: 0;
  23833. }
  23834. .rightWidthCss {
  23835. width: 60%;
  23836. display: flex;
  23837. flex-direction: row;
  23838. align-items: flex-start;
  23839. }
  23840. .rightAnswer {
  23841. display: flex;
  23842. flex-direction: row;
  23843. flex-wrap: nowrap;
  23844. align-items: center;
  23845. color: red;
  23846. margin-bottom: 31px;
  23847. }
  23848. .rightAnswerCss {
  23849. display: flex;
  23850. flex-direction: column;
  23851. flex-wrap: nowrap;
  23852. padding-top: 60px;
  23853. }
  23854. .blueCss {
  23855. color: #767de1;
  23856. margin-left: 10px;
  23857. }
  23858. .redCss {
  23859. color: red;
  23860. }
  23861. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23862. color: rgb(0 123 255) !important;
  23863. }
  23864. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23865. color: rgb(0 123 255) !important;
  23866. }
  23867. .zuoyeYulan {
  23868. padding-top: 0;
  23869. font-size: 18px;
  23870. display: flex;
  23871. align-items: flex-end;
  23872. }
  23873. .buttonA {
  23874. margin-left: 10px;
  23875. padding: 0;
  23876. }
  23877. .displayBox {
  23878. margin-bottom: 10px;
  23879. display: block;
  23880. border-bottom: 3px solid #eee;
  23881. display: flex;
  23882. align-items: center;
  23883. }
  23884. .easy_comment {
  23885. width: calc(100% - 90px);
  23886. margin-left: 10px;
  23887. display: flex;
  23888. flex-wrap: wrap;
  23889. }
  23890. .easy_comment > div {
  23891. border: 1px solid #4a4a4a;
  23892. color: #666;
  23893. border-radius: 15px;
  23894. padding: 5px 10px;
  23895. font-size: 16px;
  23896. margin-bottom: 10px;
  23897. margin-right: 5px;
  23898. cursor: pointer;
  23899. }
  23900. .easy_comment div:hover {
  23901. border: 1px solid #f7ba2a;
  23902. color: #c69217;
  23903. }
  23904. .xuan_right_box {
  23905. padding: 10px 0;
  23906. background: #f0f4fa;
  23907. margin: 0 15px 0 25px;
  23908. border-bottom-left-radius: 5px;
  23909. border-bottom-right-radius: 5px;
  23910. width: 91.5%;
  23911. }
  23912. .tool_right_box {
  23913. display: flex;
  23914. align-items: center;
  23915. }
  23916. .tool_right_box >>> .katex {
  23917. font-size: 16px;
  23918. }
  23919. .tool_right_box + .tool_right_box {
  23920. margin-top: 10px;
  23921. }
  23922. .right_box_xuan {
  23923. border-radius: 5px;
  23924. padding: 5px;
  23925. margin-left: 10px;
  23926. min-width: 85px;
  23927. background: #fff;
  23928. color: #0061ff;
  23929. border: 1px solid #0061ff;
  23930. font-size: 14px;
  23931. }
  23932. .pButton:hover {
  23933. opacity: 1 !important;
  23934. }
  23935. .pButton {
  23936. position: fixed;
  23937. text-align: center;
  23938. cursor: pointer;
  23939. z-index: 999;
  23940. right: 20px;
  23941. top: 110px;
  23942. width: 50px;
  23943. height: 50px;
  23944. display: flex;
  23945. align-items: center;
  23946. justify-content: center;
  23947. border-radius: 5px;
  23948. }
  23949. .pzClass {
  23950. width: calc(100% - 340px);
  23951. }
  23952. .newDialogCss {
  23953. /* position: fixed;
  23954. right: 5%;
  23955. top: 50%;
  23956. width: 340px;
  23957. transform: translateY(-50%);
  23958. height: 60%;
  23959. box-shadow: 0px 0 8px 0px #555555;
  23960. border-radius: 15px;
  23961. z-index: 999; */
  23962. position: fixed;
  23963. right: 20px;
  23964. top: 101px;
  23965. width: 330px;
  23966. height: calc(100% - 80px);
  23967. z-index: 999;
  23968. background: #fff;
  23969. border-top-right-radius: 0px;
  23970. border-bottom-right-radius: 0px;
  23971. overflow: hidden;
  23972. }
  23973. .newDialogCss>.scoreList{
  23974. width:100%;
  23975. height:100%;
  23976. box-sizing:border-box;
  23977. padding:10px 15px;
  23978. overflow:auto;
  23979. padding-bottom:80px;
  23980. }
  23981. .pzTop {
  23982. color: #fff;
  23983. background: #000;
  23984. display: flex;
  23985. flex-direction: row;
  23986. flex-wrap: nowrap;
  23987. align-items: center;
  23988. justify-content: space-between;
  23989. height: 40px;
  23990. border-radius: 15px 15px 0 0;
  23991. user-select: none;
  23992. }
  23993. .pzTop2 .checkbox {
  23994. display: flex;
  23995. align-items: center;
  23996. padding: 5px 10px;
  23997. flex: 0 0 auto;
  23998. font-weight: bold;
  23999. border-bottom: 1px solid #eee;
  24000. justify-content: space-between;
  24001. }
  24002. .checkbox>.cb-tabList{
  24003. display:flex;
  24004. align-items:center;
  24005. }
  24006. .cb-tabList>div{
  24007. margin-right:20px;
  24008. font-weight:400;
  24009. cursor:pointer;
  24010. }
  24011. .cb-tabList>.cb-tabItem{
  24012. color:#1684FC;
  24013. position:relative;
  24014. }
  24015. .cb-tabItem::after{
  24016. content:"";
  24017. width:100%;
  24018. height:2px;
  24019. background:#1684FC;
  24020. position:absolute;
  24021. bottom:-5px;
  24022. left:0
  24023. }
  24024. .pzTop2 .check {
  24025. text-align: center;
  24026. cursor: pointer;
  24027. box-sizing: border-box;
  24028. display: flex;
  24029. }
  24030. .pzTop2 img {
  24031. width: 25px;
  24032. cursor: pointer;
  24033. }
  24034. .pzTop > div:nth-child(1) {
  24035. padding-left: 10px;
  24036. }
  24037. .pzTop > div:nth-child(2) {
  24038. width: 15px;
  24039. height: 15px;
  24040. padding-right: 10px;
  24041. cursor: pointer;
  24042. }
  24043. .pzTop > div:nth-child(2) > img {
  24044. width: 100%;
  24045. height: 100%;
  24046. }
  24047. .pzBox,
  24048. .noPzBox {
  24049. height: calc(100% - 60px);
  24050. /* background: #ededed; */
  24051. background: #fff;
  24052. /* border-radius: 0 0 15px 15px; */
  24053. }
  24054. .noPzBox {
  24055. display: flex;
  24056. flex-direction: column;
  24057. flex-wrap: nowrap;
  24058. justify-content: center;
  24059. align-items: center;
  24060. }
  24061. .pzList {
  24062. background: #f7f7f7;
  24063. width: 90%;
  24064. margin: 0 auto 15px;
  24065. border-radius: 5px;
  24066. }
  24067. .pzNavTop {
  24068. display: flex;
  24069. flex-direction: row;
  24070. flex-wrap: nowrap;
  24071. padding: 10px 10px 0 10px;
  24072. align-items: center;
  24073. }
  24074. .pzDelete {
  24075. cursor: pointer;
  24076. margin-left: auto;
  24077. font-size: 14px;
  24078. color: #afafaf;
  24079. }
  24080. .pzNavTop > div:nth-child(1) {
  24081. background: #3760af;
  24082. width: 35px;
  24083. height: 35px;
  24084. color: #fff;
  24085. text-align: center;
  24086. line-height: 35px;
  24087. border-radius: 50%;
  24088. font-size: 14px;
  24089. }
  24090. .pzNavTop > div:nth-child(2) {
  24091. font-size: 18px;
  24092. color: #959595;
  24093. margin-left: 5px;
  24094. }
  24095. .pzContent {
  24096. padding: 10px;
  24097. word-break: break-word;
  24098. }
  24099. .pzContent audio {
  24100. width: 100%;
  24101. }
  24102. .pzContent audio::-webkit-media-controls-panel {
  24103. background: #fff;
  24104. }
  24105. .pzContent >>> img {
  24106. max-width: 100%;
  24107. }
  24108. .pzListBox {
  24109. padding-top: 15px;
  24110. height: calc(100% - 110px);
  24111. overflow: auto;
  24112. }
  24113. .addPzButton {
  24114. position: relative;
  24115. margin-top: 3px;
  24116. width: 100%;
  24117. }
  24118. .addPzButton .img1 {
  24119. position: absolute;
  24120. top: 50%;
  24121. right: 25px;
  24122. transform: translateY(-50%);
  24123. height: 100%;
  24124. display: flex;
  24125. align-items: center;
  24126. }
  24127. .addPzButton .img1 div {
  24128. display: flex;
  24129. }
  24130. .addPzButton .img1 div img {
  24131. width: 28px;
  24132. margin-left: 10px;
  24133. cursor: pointer;
  24134. }
  24135. .addPzButton .img1 div span {
  24136. font-size: 14px;
  24137. margin: 4px 0 0 3px;
  24138. color: #afafaf;
  24139. }
  24140. .addPz {
  24141. background: #4b79ce;
  24142. width: 100px;
  24143. color: #fff;
  24144. font-size: 12px;
  24145. height: 30px;
  24146. margin: 0 auto;
  24147. text-align: center;
  24148. line-height: 30px;
  24149. border-radius: 10px;
  24150. cursor: pointer;
  24151. }
  24152. .addDialogCss {
  24153. position: fixed;
  24154. width: 600px;
  24155. height: 70%;
  24156. min-height: 450px;
  24157. box-shadow: 0px 0 8px 0px #555555;
  24158. border-radius: 15px;
  24159. z-index: 999;
  24160. left: 50%;
  24161. top: 50%;
  24162. margin: -18% 0 0 -300px;
  24163. }
  24164. .teacherPz {
  24165. display: flex;
  24166. flex-direction: row;
  24167. align-items: center;
  24168. flex-wrap: nowrap;
  24169. }
  24170. .teacherPzImg {
  24171. width: 30px;
  24172. height: 30px;
  24173. }
  24174. .teacherPzImg > img {
  24175. width: 100%;
  24176. height: 100%;
  24177. }
  24178. .addPzBox {
  24179. height: calc(100% - 40px);
  24180. background: #ededed;
  24181. border-bottom-left-radius: 15px;
  24182. border-bottom-right-radius: 15px;
  24183. }
  24184. .pzAudioClass {
  24185. margin: 15px 14px;
  24186. background: #fff;
  24187. height: 100%;
  24188. display: flex;
  24189. justify-content: center;
  24190. align-items: center;
  24191. }
  24192. .pzConText {
  24193. width: 95%;
  24194. height: 100%;
  24195. margin: 10px auto 0;
  24196. border: none;
  24197. background: #fff;
  24198. border-radius: 0px;
  24199. }
  24200. .pzConText >>> .text {
  24201. height: calc(100% - 82px);
  24202. }
  24203. .addTextCss {
  24204. background: #4b79ce;
  24205. width: 80px;
  24206. height: 30px;
  24207. text-align: center;
  24208. color: #fff;
  24209. line-height: 30px;
  24210. border-radius: 10px;
  24211. margin: 10px auto 0;
  24212. cursor: pointer;
  24213. }
  24214. .pzConText:focus-visible {
  24215. border: none !important;
  24216. }
  24217. .maxWidth {
  24218. width: 1000px;
  24219. }
  24220. .noPz {
  24221. width: 150px;
  24222. margin: 0 auto 20%;
  24223. }
  24224. .noPz > img {
  24225. width: 100%;
  24226. height: 100%;
  24227. }
  24228. .timeAndReply {
  24229. display: flex;
  24230. flex-direction: row;
  24231. flex-wrap: nowrap;
  24232. justify-content: space-between;
  24233. align-items: center;
  24234. font-size: 14px;
  24235. box-sizing: border-box;
  24236. padding: 0 10px 10px 0px;
  24237. }
  24238. .timeAndReply .time {
  24239. color: #bfbfbf;
  24240. padding: 0 0 0 10px;
  24241. box-sizing: border-box;
  24242. }
  24243. .timeAndReply > div:last-child {
  24244. cursor: pointer;
  24245. color: #777;
  24246. }
  24247. /* table 样式 */
  24248. .cont >>> table {
  24249. border-top: 1px solid #ccc;
  24250. border-left: 1px solid #ccc;
  24251. }
  24252. .cont >>> table td,
  24253. .cont >>> table th {
  24254. border-bottom: 1px solid #ccc;
  24255. border-right: 1px solid #ccc;
  24256. /* padding: 20px 5px; */
  24257. padding: 5px 10px;
  24258. max-width: 0px;
  24259. height: 30px;
  24260. vertical-align: baseline;
  24261. box-sizing: border-box;
  24262. }
  24263. .cont >>> table th {
  24264. border-bottom: 2px solid #ccc;
  24265. text-align: center;
  24266. }
  24267. /* blockquote 样式 */
  24268. .cont >>> blockquote {
  24269. display: block;
  24270. border-left: 8px solid #d0e5f2;
  24271. padding: 5px 10px;
  24272. margin: 10px 0;
  24273. line-height: 1.4;
  24274. font-size: 100%;
  24275. background-color: #f1f1f1;
  24276. }
  24277. /* code 样式 */
  24278. .cont >>> code {
  24279. display: inline-block;
  24280. /* *display: inline; */
  24281. zoom: 1;
  24282. background-color: #f1f1f1;
  24283. border-radius: 3px;
  24284. padding: 3px 5px;
  24285. margin: 0 3px;
  24286. }
  24287. .cont >>> pre code {
  24288. display: block;
  24289. }
  24290. /* ul ol 样式 */
  24291. .cont >>> ul,
  24292. ol {
  24293. margin: 10px 0 10px 20px;
  24294. }
  24295. .addPzCheck {
  24296. display: flex;
  24297. flex-direction: row;
  24298. flex-wrap: nowrap;
  24299. padding: 10px 15px 0;
  24300. }
  24301. .addPzCheck span {
  24302. cursor: pointer;
  24303. padding-bottom: 5px;
  24304. font-weight: bold;
  24305. }
  24306. .addPzCheck span + span {
  24307. margin-left: 10px;
  24308. }
  24309. .addPzCheck .isChooseActive {
  24310. color: #3e88f4;
  24311. border-bottom: 2px solid #2f80f3;
  24312. }
  24313. /* code 样式 */
  24314. .cont {
  24315. /* -webkit-user-modify: read-write; */
  24316. overflow-wrap: break-word;
  24317. -webkit-line-break: after-white-space;
  24318. word-break: break-word;
  24319. white-space: pre-line;
  24320. }
  24321. .scoreBox,
  24322. .scoreDetailBox {
  24323. display: flex;
  24324. align-items: center;
  24325. justify-content: flex-start;
  24326. margin-top: 20px;
  24327. font-size: 18px;
  24328. width: 100%;
  24329. }
  24330. .scoreBox .t,
  24331. .scoreDetailBox .t {
  24332. margin-right: 10px;
  24333. width: 100px;
  24334. text-align: right;
  24335. }
  24336. .scoreDetailBox {
  24337. align-items: flex-start;
  24338. }
  24339. .scoreDetailBox >>> .el-textarea {
  24340. width: calc(100% - 200px);
  24341. }
  24342. .scoreBox >>> .el-input {
  24343. width: 130px;
  24344. font-size: 38px;
  24345. }
  24346. .scoreBox >>> .el-input__inner {
  24347. height: 60px;
  24348. }
  24349. .answerScore {
  24350. position: absolute;
  24351. top: 10px;
  24352. right: 10px;
  24353. background: #0000008f;
  24354. border-radius: 5px;
  24355. padding: 3px 5px;
  24356. font-size: 14px;
  24357. color: #fff;
  24358. cursor: pointer;
  24359. }
  24360. .open_box .switch_box {
  24361. width: 100%;
  24362. margin: 0 auto;
  24363. display: flex;
  24364. justify-content: space-between;
  24365. }
  24366. .open_box .switch_box + .switch_box {
  24367. margin-top: 10px;
  24368. }
  24369. .deleteImg,.deleteImg1 {
  24370. width: 25px !important;
  24371. height: 25px !important;
  24372. cursor: pointer;
  24373. position: absolute;
  24374. top: 10px;
  24375. right: 10px;
  24376. }
  24377. .deleteImg2 {
  24378. width: 23px !important;
  24379. height: 23px !important;
  24380. top: 5px;
  24381. right: 5px;
  24382. }
  24383. .deleteImg1{
  24384. width: 23px !important;
  24385. height: 23px !important;
  24386. top: 5px !important;
  24387. right: 30px !important;
  24388. }
  24389. .rightW {
  24390. right: 40px;
  24391. }
  24392. .drawPBox {
  24393. display: flex;
  24394. flex-direction: column;
  24395. position: relative;
  24396. }
  24397. .drawPBox span {
  24398. font-size: 18px;
  24399. color: #606266;
  24400. padding-bottom: 10px;
  24401. margin: 10px 0;
  24402. border-bottom: 1px solid #eaeaea;
  24403. }
  24404. .drawPBox img {
  24405. width: 500px;
  24406. height: 300px;
  24407. object-fit: contain;
  24408. cursor: pointer;
  24409. margin: 0 auto;
  24410. }
  24411. .sentenBox {
  24412. background: #fff;
  24413. height: 450px;
  24414. overflow: auto;
  24415. background-image: url("../assets/icon/conSentences/stuBg.png");
  24416. background-position: 102%;
  24417. background-repeat: no-repeat;
  24418. background-size: 60%;
  24419. }
  24420. .addSen {
  24421. background: #409efe;
  24422. width: 90px;
  24423. color: #fff;
  24424. height: 35px;
  24425. text-align: center;
  24426. line-height: 35px;
  24427. border-radius: 5px;
  24428. float: right;
  24429. margin: 10px 20px 0 0;
  24430. cursor: pointer;
  24431. }
  24432. .sentenTop {
  24433. display: flex;
  24434. flex-direction: row;
  24435. flex-wrap: nowrap;
  24436. align-items: center;
  24437. padding: 55px 0 0 20px;
  24438. box-sizing: border-box;
  24439. }
  24440. .sentenTop > div:nth-child(2) {
  24441. width: 300px;
  24442. margin: 0 15px;
  24443. }
  24444. .sentenTop > div:nth-child(3) {
  24445. background: #409efe;
  24446. color: #fff;
  24447. width: 65px;
  24448. height: 35px;
  24449. text-align: center;
  24450. line-height: 35px;
  24451. border-radius: 5px;
  24452. cursor: pointer;
  24453. }
  24454. .cardList,
  24455. .cardList1 {
  24456. padding: 10px 0 10px 0;
  24457. display: flex;
  24458. flex-direction: row;
  24459. flex-wrap: wrap;
  24460. align-items: center;
  24461. box-sizing: border-box;
  24462. border-bottom: 1px solid #f4f4f4;
  24463. width: 98%;
  24464. margin: 0 auto;
  24465. min-width: 60%;
  24466. max-width: 85%;
  24467. }
  24468. .cardList1 {
  24469. padding: 10px 0 10px 10px !important;
  24470. margin: 0 !important;
  24471. }
  24472. .cardBox {
  24473. display: flex;
  24474. flex-direction: row;
  24475. flex-wrap: wrap;
  24476. align-items: center;
  24477. align-content: center;
  24478. }
  24479. .cardBox > div {
  24480. margin-bottom: 10px;
  24481. }
  24482. .isCard,
  24483. .isChooseCard,
  24484. .noCard,
  24485. .isCard1 {
  24486. min-width: 130px;
  24487. width: auto;
  24488. height: 60px;
  24489. text-align: center;
  24490. line-height: 60px;
  24491. font-size: 20px;
  24492. cursor: pointer;
  24493. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24494. background-size: cover;
  24495. transition: all 2s;
  24496. margin-right: 20px;
  24497. background-size: 100% 100%;
  24498. padding: 0 20px;
  24499. box-sizing: border-box;
  24500. }
  24501. .isCard > div,
  24502. .noCard > div,
  24503. .isCard1 > div {
  24504. white-space: nowrap;
  24505. overflow: hidden;
  24506. text-overflow: ellipsis;
  24507. width: 100%;
  24508. margin: 0 auto;
  24509. }
  24510. .noCard {
  24511. background-image: none;
  24512. }
  24513. .isCard1 {
  24514. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24515. }
  24516. .isChooseCard {
  24517. background-image: none;
  24518. border: 1px dashed #b9b9b9;
  24519. border-radius: 10px;
  24520. }
  24521. .card {
  24522. width: 130px;
  24523. height: 60px;
  24524. }
  24525. .card > img {
  24526. width: 100%;
  24527. height: 100%;
  24528. }
  24529. .rightCardBox {
  24530. margin: 10px 0 0 10px;
  24531. }
  24532. .rightCardBox > div:nth-child(1) {
  24533. margin-bottom: 10px;
  24534. }
  24535. .cardCss {
  24536. display: flex;
  24537. flex-direction: column;
  24538. flex-wrap: nowrap;
  24539. align-items: center;
  24540. border-bottom: 3px solid #b4c3d3;
  24541. padding: 0 0 5px 0;
  24542. margin-right: 10px;
  24543. }
  24544. .cardCss > div:nth-child(2) {
  24545. background: #5b7b9d;
  24546. color: #fff;
  24547. width: 20px;
  24548. height: 20px;
  24549. border-radius: 50%;
  24550. text-align: center;
  24551. line-height: 20px;
  24552. }
  24553. .isWrong {
  24554. display: flex;
  24555. flex-direction: row;
  24556. flex-wrap: nowrap;
  24557. align-content: center;
  24558. align-items: center;
  24559. }
  24560. .answerRight {
  24561. width: 25%;
  24562. }
  24563. .isTj {
  24564. display: flex;
  24565. flex-direction: row;
  24566. flex-wrap: nowrap;
  24567. align-items: center;
  24568. }
  24569. .isTj > div:nth-child(2) {
  24570. color: #727070;
  24571. margin-left: 10px;
  24572. }
  24573. .isTjImg {
  24574. width: 30px;
  24575. height: 30px;
  24576. }
  24577. .isTjImg > img {
  24578. width: 100%;
  24579. height: 100%;
  24580. }
  24581. .cardAnswerBox {
  24582. font-size: 18px;
  24583. width: 97%;
  24584. border: 5px;
  24585. padding: 0;
  24586. border-radius: 5px;
  24587. margin: 10px auto;
  24588. word-break: break-word;
  24589. }
  24590. .w_name {
  24591. margin-bottom: 10px;
  24592. }
  24593. .w_name span {
  24594. font-size: 16px;
  24595. }
  24596. .w_teachert {
  24597. width: 50px !important;
  24598. position: absolute;
  24599. height: auto !important;
  24600. z-index: 10;
  24601. right: 25px;
  24602. top: -25px;
  24603. }
  24604. /* .group_workBox {
  24605. } */
  24606. .group_workBox + .group_workBox {
  24607. margin-top: 20px;
  24608. }
  24609. .group_box {
  24610. padding-bottom: 20px;
  24611. border-bottom: 2px solid #f0f0f0;
  24612. margin-top: 10px;
  24613. }
  24614. .group_title {
  24615. display: flex;
  24616. align-items: center;
  24617. justify-content: space-between;
  24618. width: 95%;
  24619. }
  24620. .group_name {
  24621. background-image: url(../assets/icon/groupN.png);
  24622. width: 220px;
  24623. background-size: 100% 100%;
  24624. height: 67px;
  24625. padding: 0 20px 0 43px;
  24626. box-sizing: border-box;
  24627. line-height: 63px;
  24628. color: #fff;
  24629. overflow: hidden;
  24630. white-space: nowrap;
  24631. text-overflow: ellipsis;
  24632. }
  24633. .group_work {
  24634. width: 100%;
  24635. padding: 0 10px;
  24636. box-sizing: border-box;
  24637. display: flex;
  24638. flex-wrap: wrap;
  24639. }
  24640. .g_d_box {
  24641. display: flex;
  24642. flex-flow: wrap;
  24643. justify-content: space-around;
  24644. }
  24645. .g_d_box .isChair {
  24646. background-image: url(../assets/avatar.png) !important;
  24647. }
  24648. .g_d_group {
  24649. width: 500px;
  24650. margin-bottom: 80px;
  24651. }
  24652. .g_d_group_chair {
  24653. display: flex;
  24654. align-items: center;
  24655. justify-content: center;
  24656. }
  24657. .g_d_group_chair > div + div {
  24658. margin-left: 30px;
  24659. }
  24660. .g_d_group_chair > div,
  24661. .g_d_group_chair2 > div {
  24662. display: flex;
  24663. flex-direction: column;
  24664. align-items: center;
  24665. }
  24666. .g_d_group_chair > div > span:nth-child(1),
  24667. .g_d_group_chair2 > div > span:nth-child(1) {
  24668. background-image: url(../assets/icon/chair.png);
  24669. width: 50px;
  24670. height: 50px;
  24671. display: block;
  24672. background-size: 100% 100%;
  24673. }
  24674. .g_d_group_tableBox {
  24675. display: flex;
  24676. align-items: center;
  24677. justify-content: center;
  24678. }
  24679. .g_d_group_chair2 {
  24680. display: flex;
  24681. flex-direction: column;
  24682. align-items: center;
  24683. justify-content: center;
  24684. }
  24685. .g_d_group_chair2 > div + div {
  24686. margin-top: 10px;
  24687. }
  24688. .g_d_group_table {
  24689. background-image: url(../assets/icon/groupBg.png);
  24690. width: 354px;
  24691. height: 196px;
  24692. background-size: 100% 100%;
  24693. display: flex;
  24694. align-items: center;
  24695. justify-content: center;
  24696. flex-direction: column;
  24697. color: #fff;
  24698. }
  24699. .g_d_group_table > div:nth-child(1) {
  24700. font-size: 24px;
  24701. margin-bottom: 5px;
  24702. }
  24703. .g_d_group_table > div:nth-child(2) div {
  24704. cursor: pointer;
  24705. background: #2e77bf;
  24706. padding: 4px 10px;
  24707. border-radius: 5px;
  24708. }
  24709. /* .groupBox {
  24710. } */
  24711. .groupContent + .groupContent {
  24712. margin-top: 30px;
  24713. }
  24714. .groupTitle {
  24715. font-size: 24px;
  24716. color: rgb(80, 80, 80);
  24717. margin-bottom: 20px;
  24718. }
  24719. .groupName {
  24720. display: flex;
  24721. align-items: center;
  24722. }
  24723. .groupn {
  24724. font-size: 15px;
  24725. margin-right: 10px;
  24726. }
  24727. .groupName + .groupName {
  24728. margin-top: 15px;
  24729. }
  24730. .groupBtn {
  24731. margin-left: 10px;
  24732. }
  24733. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24734. text-align: left;
  24735. }
  24736. .g_d_btnBox {
  24737. display: flex;
  24738. justify-content: flex-end;
  24739. align-items: center;
  24740. margin-bottom: 20px;
  24741. }
  24742. .updateChair {
  24743. position: relative;
  24744. }
  24745. .updateChairBtn {
  24746. position: absolute;
  24747. width: 50px;
  24748. height: 50px;
  24749. overflow: hidden;
  24750. /* display: flex; */
  24751. align-items: center;
  24752. justify-content: center;
  24753. background: #00000087;
  24754. color: #fff;
  24755. border-radius: 50px;
  24756. display: none;
  24757. cursor: pointer;
  24758. }
  24759. .updateChair:hover .updateChairBtn {
  24760. display: flex;
  24761. }
  24762. .group_staic_box {
  24763. display: flex;
  24764. padding: 30px 40px 10px;
  24765. flex-wrap: wrap;
  24766. }
  24767. .group_staic {
  24768. /* width: 50%; */
  24769. margin-bottom: 20px;
  24770. display: flex;
  24771. align-items: center;
  24772. }
  24773. .group_staic span:nth-child(1) {
  24774. width: 150px;
  24775. text-align: right;
  24776. margin-right: 15px;
  24777. }
  24778. .group_staic span:nth-child(2) {
  24779. background: rgb(0 123 255);
  24780. color: #fff;
  24781. border-radius: 5px;
  24782. padding: 5px;
  24783. }
  24784. .codeFileBox {
  24785. height: 300px;
  24786. background: #fff;
  24787. display: flex;
  24788. align-items: center;
  24789. justify-content: center;
  24790. }
  24791. .codeFileBox img {
  24792. width: 200px;
  24793. margin: 0;
  24794. height: auto;
  24795. }
  24796. .codeFileBox div {
  24797. background: rgb(80, 142, 226);
  24798. color: #fff;
  24799. padding: 10px 20px;
  24800. border-radius: 25px;
  24801. cursor: pointer;
  24802. margin-left: 15px;
  24803. }
  24804. .radioBox {
  24805. display: flex;
  24806. flex-direction: column;
  24807. flex-wrap: nowrap;
  24808. align-items: flex-start;
  24809. }
  24810. .radioBox > div {
  24811. margin: 10px 0 0 10px;
  24812. }
  24813. /* .radioBox >>> .el-radio__input,
  24814. .radioBox >>> .el-checkbox__inner {
  24815. margin-left: 10px;
  24816. } */
  24817. .radioBox >>> .el-radio__label,
  24818. .radioBox >>> .el-checkbox__label {
  24819. display: flex;
  24820. align-items: center;
  24821. width: 100%;
  24822. }
  24823. .radioBox >>> .el-radio__label > span {
  24824. width: 100%;
  24825. display: -webkit-box;
  24826. overflow: hidden;
  24827. white-space: normal !important;
  24828. text-overflow: ellipsis;
  24829. word-wrap: break-word;
  24830. }
  24831. .inImg {
  24832. width: 100px;
  24833. cursor: pointer;
  24834. }
  24835. .inImg > img {
  24836. width: 100%;
  24837. height: 100%;
  24838. object-fit: cover;
  24839. }
  24840. .timuImgBox {
  24841. margin: 10px 0;
  24842. display: flex;
  24843. flex-direction: column;
  24844. flex-wrap: wrap;
  24845. align-items: flex-start;
  24846. }
  24847. .timuImg {
  24848. width: 150px;
  24849. margin: 5px 0;
  24850. cursor: pointer;
  24851. }
  24852. .timuImg > img {
  24853. width: 100%;
  24854. height: 100%;
  24855. object-fit: cover;
  24856. }
  24857. .worksTop {
  24858. display: flex;
  24859. flex-direction: row;
  24860. align-items: flex-end;
  24861. }
  24862. .worksTitle{
  24863. display: flex;
  24864. flex-direction: row;
  24865. flex-wrap: nowrap;
  24866. align-items: center;
  24867. }
  24868. .worksTitle::before,.worksTop::before{
  24869. content: '';
  24870. display: block;
  24871. width: 3px;
  24872. height: 20px;
  24873. background: #0061FF;
  24874. border-radius: 3px;
  24875. margin: 0 5px 0 0;
  24876. }
  24877. .corOpen {
  24878. margin: 0 0 0 10px;
  24879. font-size: 14px;
  24880. cursor: pointer;
  24881. color: #505050;
  24882. }
  24883. .corOpen:hover {
  24884. color: #499eef;
  24885. }
  24886. .navCorOpenBox {
  24887. display: flex;
  24888. flex-direction: row;
  24889. align-items: center;
  24890. justify-content: space-between;
  24891. height: 55px;
  24892. background: #ffffff;
  24893. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24894. border-radius: 8px 8px 0px 0px;
  24895. z-index: 9;
  24896. position: relative;
  24897. }
  24898. .navCorOpen {
  24899. padding-right: 15px;
  24900. cursor: pointer;
  24901. width: 45px;
  24902. display: flex;
  24903. }
  24904. .navCorOpen > img {
  24905. width: 100%;
  24906. height: 100%;
  24907. }
  24908. .mlImg {
  24909. width: 40px !important;
  24910. min-width: 40px;
  24911. cursor: pointer;
  24912. transform: rotate(180deg);
  24913. }
  24914. .mlImg > img {
  24915. width: 100%;
  24916. height: 100%;
  24917. }
  24918. .navLeftCss {
  24919. width: 100% !important;
  24920. left: 0 !important;
  24921. }
  24922. .isContentCss {
  24923. width: 100% !important;
  24924. }
  24925. .isAllWidth {
  24926. width: 100% !important;
  24927. }
  24928. .group_switch {
  24929. margin-right: 10px;
  24930. height: 30px;
  24931. display: flex;
  24932. align-items: center;
  24933. }
  24934. .group_switch > span {
  24935. margin-right: 5px;
  24936. }
  24937. .fileC_box {
  24938. padding-top: 15px;
  24939. }
  24940. .fileC_box > .fileC_title {
  24941. padding: 10px 5px 14px 10px;
  24942. border-top: 1px solid #cad1dc;
  24943. font-size: 14px;
  24944. font-weight: 400;
  24945. color: #cad1dc;
  24946. width: calc(100% - 20px);
  24947. margin: 0 auto;
  24948. box-sizing: border-box;
  24949. }
  24950. .pl_select_box {
  24951. height: 40px;
  24952. line-height: 40px;
  24953. width: 100%;
  24954. cursor: pointer;
  24955. padding: 0 20px;
  24956. box-sizing: border-box;
  24957. border-radius: 5px;
  24958. border: 1px solid #d6d6d6;
  24959. white-space: nowrap;
  24960. overflow: hidden;
  24961. text-overflow: ellipsis;
  24962. background: #fff;
  24963. text-align: left;
  24964. }
  24965. .newButton {
  24966. width: 102px;
  24967. height: 36px;
  24968. background: #e7ebf1;
  24969. border-radius: 4px;
  24970. color: #0e1e33;
  24971. font-weight: 400;
  24972. font-size: 14px;
  24973. border: none;
  24974. float: right;
  24975. margin-left: 10px;
  24976. }
  24977. .el-table >>> .even_row {
  24978. background-color: #f0f4fa;
  24979. }
  24980. .stageBoxCss,
  24981. .stageBoxIsCss {
  24982. display: flex;
  24983. flex-direction: row;
  24984. flex-wrap: nowrap;
  24985. align-items: center;
  24986. height: 50px;
  24987. border-bottom: 1px solid #e2f5fc;
  24988. cursor: pointer;
  24989. width: 100%;
  24990. }
  24991. .stageBoxIsCss {
  24992. background: #0061ff;
  24993. color: #fff;
  24994. border-radius: 8px;
  24995. }
  24996. .stageItemTitle {
  24997. display: flex;
  24998. flex-direction: row;
  24999. flex-wrap: nowrap;
  25000. align-items: center;
  25001. margin-left: 15px;
  25002. width: calc(100% - 50px);
  25003. }
  25004. /* .stageNav{ */
  25005. /* font-weight: bold; */
  25006. /* } */
  25007. .stageItemTitle > div:first-child {
  25008. min-width: 55px;
  25009. }
  25010. .stageItemTitle > div:last-child {
  25011. max-width: 242px;
  25012. white-space: nowrap;
  25013. overflow: hidden;
  25014. text-overflow: ellipsis;
  25015. word-break: break-word;
  25016. width: calc(100% - 55px);
  25017. }
  25018. .closeTri,
  25019. .closeTri1 {
  25020. min-width: 15px;
  25021. width: 15px;
  25022. height: 15px;
  25023. transition: all .5s;
  25024. }
  25025. .closeTri1 {
  25026. padding-left: 10px;
  25027. cursor: pointer;
  25028. }
  25029. .closeTri > img,
  25030. .closeTri1 > img {
  25031. width: 100%;
  25032. height: 100%;
  25033. /* transition: all .5s; */
  25034. }
  25035. .noToolBlue {
  25036. min-width: 10px;
  25037. width: 10px;
  25038. height: 10px;
  25039. background: #0061ff;
  25040. border-radius: 50%;
  25041. margin-left: 13px;
  25042. }
  25043. .stageChild,
  25044. .toolChild {
  25045. height: 0;
  25046. overflow: hidden;
  25047. transition: all 0.5s;
  25048. }
  25049. /* .toolChild { */
  25050. /* margin: 0 0 0 17px;
  25051. padding: 0 0 0 20px;
  25052. border-left: 1px solid #d7d7d7; */
  25053. /* } */
  25054. .toolChild > div + div{
  25055. margin-top:5px;
  25056. }
  25057. .gjCss {
  25058. display: flex;
  25059. flex-direction: row;
  25060. flex-wrap: nowrap;
  25061. align-items: center;
  25062. padding: 10px 0 10px 40px;
  25063. box-sizing: border-box;
  25064. font-size: 14px;
  25065. cursor: pointer;
  25066. border-radius:5px;
  25067. }
  25068. .toolChild > div {
  25069. position: relative;
  25070. width:100%;
  25071. }
  25072. /* .toolChild > div::before { */
  25073. /* content: "";
  25074. width: 15px;
  25075. height: 1px;
  25076. background: #cad1dc;
  25077. position: absolute;
  25078. top: 24px;
  25079. left: -20px;
  25080. display: block; */
  25081. /* } */
  25082. .isGjCss {
  25083. /* color: #0061ff; */
  25084. color:#fff;
  25085. background: rgb(55, 129, 252);
  25086. /* background-color: #e0eafb !important;
  25087. color: #0061ff !important; */
  25088. }
  25089. .navItem {
  25090. background: #ffffff;
  25091. border-radius: 4px;
  25092. width: 100%;
  25093. margin: 10px auto;
  25094. position: relative;
  25095. height: 40px;
  25096. display: flex;
  25097. flex-direction: row;
  25098. flex-wrap: nowrap;
  25099. align-items: center;
  25100. }
  25101. .navItemList {
  25102. display: flex;
  25103. flex-direction: row;
  25104. flex-wrap: nowrap;
  25105. align-items: center;
  25106. padding: 0 13px;
  25107. cursor: pointer;
  25108. width: calc(100% - 60px);
  25109. height: 100%;
  25110. }
  25111. .navItemList > div:first-child {
  25112. /* min-width: 60px; */
  25113. min-width:fit-content;
  25114. }
  25115. .navItemList > div:last-child {
  25116. width: calc(100% - 80px);
  25117. white-space: nowrap;
  25118. overflow: hidden;
  25119. text-overflow: ellipsis;
  25120. word-break: break-word;
  25121. }
  25122. /* .isItemList > div {
  25123. color: #fff !important;
  25124. } */
  25125. .tool_work_box {
  25126. width: 100%;
  25127. padding: 0 37px 0;
  25128. box-sizing: border-box;
  25129. }
  25130. .tool_box {
  25131. width: 100%;
  25132. padding: 0 0 0 20px;
  25133. }
  25134. .tool_type_box {
  25135. display: flex;
  25136. flex-direction: row;
  25137. align-items: baseline;
  25138. flex-wrap: nowrap;
  25139. justify-content: flex-start;
  25140. position: relative;
  25141. }
  25142. .toolSort {
  25143. display: flex;
  25144. flex-direction: row;
  25145. flex-wrap: wrap;
  25146. justify-content: flex-start;
  25147. align-items: flex-start;
  25148. padding: 0 0 15px 0;
  25149. }
  25150. .toolSort > div {
  25151. margin: 0 10px 0 0;
  25152. width: 135px;
  25153. box-sizing: border-box;
  25154. border: 2px solid transparent;
  25155. }
  25156. .tools {
  25157. width: 100%;
  25158. display: flex;
  25159. flex-direction: column;
  25160. flex-wrap: nowrap;
  25161. align-items: flex-start;
  25162. }
  25163. .whiteBIcon {
  25164. width: fit-content;
  25165. cursor: pointer;
  25166. display: flex;
  25167. flex-direction: column;
  25168. flex-wrap: nowrap;
  25169. align-items: center;
  25170. font-size: 14px;
  25171. }
  25172. .tool:hover {
  25173. border: 2px solid #a5c7ff;
  25174. border-radius: 5px;
  25175. }
  25176. .whiteBIcon > img {
  25177. width: 65px;
  25178. height: 100%;
  25179. }
  25180. .whiteBIcon > img {
  25181. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25182. border-radius: 15px;
  25183. }
  25184. .check {
  25185. /* width: 20px;
  25186. height: 20px; */
  25187. cursor: pointer;
  25188. margin: 10px 0;
  25189. position: absolute;
  25190. right: 2px;
  25191. top: -5px;
  25192. }
  25193. .noChoose,
  25194. .isChoose {
  25195. width: 15px;
  25196. height: 15px;
  25197. border-radius: 50%;
  25198. border: 1px solid #adadad;
  25199. }
  25200. .isChoose {
  25201. border: 4px solid #0363ff !important;
  25202. width: 10px;
  25203. height: 10px;
  25204. }
  25205. .isToolChoose {
  25206. border: 2px solid #5394ff !important;
  25207. border-radius: 5px;
  25208. box-shadow: 0 0 6px 0px #5394ff;
  25209. }
  25210. .checkDiv {
  25211. display: flex;
  25212. align-items: center;
  25213. }
  25214. .checkDiv span {
  25215. margin-left: 5px;
  25216. color: #858585;
  25217. }
  25218. .check img {
  25219. width: 20px;
  25220. height: 20px;
  25221. }
  25222. .lockTaskIcon {
  25223. width: 20px;
  25224. height: 20px;
  25225. position: absolute;
  25226. right: 10px;
  25227. top: 5px;
  25228. }
  25229. .lockTaskIcon > img {
  25230. width: 100%;
  25231. height: 100%;
  25232. }
  25233. .pick_box {
  25234. display: flex;
  25235. align-items: flex-start;
  25236. flex-wrap: wrap;
  25237. }
  25238. .selectBox {
  25239. width: 110px;
  25240. margin-left: 10px;
  25241. margin: 0 10px 0 auto;
  25242. }
  25243. .selectBox >>> .el-input__inner {
  25244. height: 30px;
  25245. line-height: 30px;
  25246. }
  25247. .selectBox >>> .el-input__icon {
  25248. line-height: 30px;
  25249. }
  25250. .sentenceTitle {
  25251. display: flex;
  25252. flex-direction: row;
  25253. flex-wrap: nowrap;
  25254. align-items: center;
  25255. }
  25256. .sentenceTitle::before {
  25257. content: attr(index);
  25258. background: #3681fc;
  25259. border-radius: 50%;
  25260. color: #fff;
  25261. width: 25px;
  25262. height: 25px;
  25263. min-width: 25px;
  25264. min-height: 25px;
  25265. text-align: center;
  25266. line-height: 25px;
  25267. margin-right: 5px;
  25268. }
  25269. .hfBox {
  25270. padding: 10px;
  25271. box-sizing: border-box;
  25272. }
  25273. .whoReplyWho {
  25274. display: flex;
  25275. flex-direction: row;
  25276. flex-wrap: nowrap;
  25277. align-items: baseline;
  25278. justify-content: flex-start;
  25279. }
  25280. .hfBottom {
  25281. display: flex;
  25282. flex-direction: row;
  25283. flex-wrap: nowrap;
  25284. align-items: center;
  25285. justify-content: space-between;
  25286. font-size: 14px;
  25287. }
  25288. .deleteHfItem {
  25289. cursor: pointer;
  25290. width: 20px;
  25291. height: 20px;
  25292. }
  25293. .deleteHfItem > img {
  25294. width: 100%;
  25295. height: 100%;
  25296. }
  25297. .whoReplyWho > .hfImg {
  25298. width: 12px;
  25299. height: 12px;
  25300. margin: 0 5px;
  25301. }
  25302. .whoReplyWho > .hfImg > img {
  25303. width: 100%;
  25304. height: 100%;
  25305. }
  25306. .hfContent {
  25307. padding-top: 10px;
  25308. box-sizing: border-box;
  25309. display: -webkit-box;
  25310. overflow: hidden;
  25311. white-space: normal !important;
  25312. text-overflow: ellipsis;
  25313. word-wrap: break-word;
  25314. -webkit-box-orient: vertical;
  25315. }
  25316. .hfTime {
  25317. text-align: left;
  25318. box-sizing: border-box;
  25319. padding: 10px 0 10px 0px;
  25320. color: #bfbfbf;
  25321. font-size: 14px;
  25322. }
  25323. .btnAllNT {
  25324. position: fixed;
  25325. bottom: 100px;
  25326. right: 40px;
  25327. z-index: 999;
  25328. display: flex;
  25329. flex-direction: row;
  25330. }
  25331. .btnAllNT > img {
  25332. cursor: pointer;
  25333. width: 80px;
  25334. }
  25335. .toolMask {
  25336. position: fixed;
  25337. width: 100%;
  25338. height: 100%;
  25339. background: #3f3c3c;
  25340. opacity: 0.5;
  25341. top: 0;
  25342. left: 0;
  25343. z-index: 999;
  25344. }
  25345. .addToolCss {
  25346. position: fixed;
  25347. z-index: 999;
  25348. background: #fff;
  25349. right: 5%;
  25350. bottom: 18%;
  25351. min-width: 1035px;
  25352. min-height: 300px;
  25353. border-radius: 10px;
  25354. box-shadow: 0 0 8px 1px #b2b2b2;
  25355. }
  25356. .toolTop {
  25357. display: flex;
  25358. flex-direction: row;
  25359. flex-wrap: nowrap;
  25360. justify-content: space-between;
  25361. align-items: center;
  25362. padding: 20px;
  25363. }
  25364. .toolTop > div:nth-child(2) {
  25365. width: 15px;
  25366. height: 15px;
  25367. padding-right: 10px;
  25368. cursor: pointer;
  25369. }
  25370. .toolTop > div:nth-child(2) > img {
  25371. width: 100%;
  25372. height: 100%;
  25373. }
  25374. .fullStyle>>>.el-dialog__body {
  25375. height: calc(100% - 125px) !important;
  25376. box-sizing: border-box;
  25377. padding: 30px 0 !important;
  25378. background: #fff !important;
  25379. }
  25380. .fullStyle>>>.el-dialog {
  25381. width: 100% !important;
  25382. max-width: 100% !important;
  25383. height: 100% !important;
  25384. margin: 0 !important;
  25385. }
  25386. .fullStyle {
  25387. width: 100% !important;
  25388. max-width: 100% !important;
  25389. height: 100% !important;
  25390. margin: 0 auto !important;
  25391. }
  25392. .fullStyle>>>.el-dialog__footer{
  25393. background: #fff !important;
  25394. }
  25395. .engUpBox {
  25396. width: 100%;
  25397. height: 100%;
  25398. }
  25399. .engTitle,
  25400. .engText {
  25401. display: flex;
  25402. flex-direction: row;
  25403. flex-wrap: nowrap;
  25404. align-items: flex-start;
  25405. padding: 0 20px 20px 20px;
  25406. box-sizing: border-box;
  25407. }
  25408. .engTitle > .div:first-child,
  25409. .engText > div:first-child {
  25410. min-width: 75px;
  25411. }
  25412. .correctBox{
  25413. width: 100%;
  25414. display: flex;
  25415. flex-direction: row;
  25416. flex-wrap: nowrap;
  25417. align-items: flex-start;
  25418. }
  25419. .oldBox{
  25420. width: 50%;
  25421. height: 100%;
  25422. display: flex;
  25423. flex-direction: column;
  25424. flex-wrap: nowrap;
  25425. align-items: center;
  25426. border-top: 1px solid #d9d9d9;
  25427. border-left: 1px solid #d9d9d9;
  25428. border-right: 1px solid #d9d9d9;
  25429. }
  25430. .oldBox>div:first-child{
  25431. width: 100%;
  25432. text-align: center;
  25433. background: #d9d9d9;
  25434. height: 35px;
  25435. line-height: 35px;
  25436. font-weight: bold;
  25437. }
  25438. .oldText{
  25439. width: 100%;
  25440. height: calc(100% - 35px);
  25441. overflow: auto;
  25442. margin: 10px 0;
  25443. display: flex;
  25444. flex-direction: column;
  25445. flex-wrap: nowrap;
  25446. align-content: center;
  25447. align-items: center;
  25448. }
  25449. .detailBox{
  25450. width: 50%;
  25451. padding: 10px;
  25452. background: #f6f6f6;
  25453. border-radius: 5px;
  25454. }
  25455. .oldDetail,.oldDetail1{
  25456. padding-bottom: 30px;
  25457. }
  25458. .oldImg{
  25459. width:30px;
  25460. height: 30px;
  25461. }
  25462. .oldImg>img{
  25463. width: 100%;
  25464. height: 100%;
  25465. }
  25466. .allName{
  25467. min-width: 200px;
  25468. white-space: nowrap;
  25469. overflow: hidden;
  25470. text-overflow: ellipsis;
  25471. word-break: break-word;
  25472. cursor: pointer;
  25473. text-align: center;
  25474. border: 1px solid #bcc2cc;
  25475. box-sizing: border-box;
  25476. }
  25477. .engUpTop{
  25478. max-height: 300px;
  25479. overflow: auto;
  25480. }
  25481. .isUpdateToolDetailClass{
  25482. padding: 0 !important;
  25483. }
  25484. .isUpdateToolDetailClass textarea{
  25485. padding:12px;
  25486. font-size: 16px;
  25487. min-height:100%;
  25488. width: 100%;
  25489. box-sizing:border-box;
  25490. outline: none;
  25491. border:none;
  25492. line-height: 30px;
  25493. resize: none;
  25494. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25495. color: #838383;
  25496. }
  25497. .show_taskD {
  25498. min-width: fit-content;
  25499. margin-left: 10px;
  25500. display: flex;
  25501. align-items: center;
  25502. font-size: 14px;
  25503. cursor: pointer;
  25504. color: #717c8d;
  25505. }
  25506. .show_taskD > img {
  25507. width: 15px;
  25508. margin-right: 5px;
  25509. transition: 0.2s all;
  25510. transform: rotate(-90deg);
  25511. }
  25512. .show_taskD.show > img {
  25513. transform: rotate(0deg);
  25514. }
  25515. .correctCss{
  25516. position: absolute;
  25517. bottom: -70px;
  25518. background: #409eff;
  25519. color: #fff;
  25520. }
  25521. .dialog_diyCopy >>> .el-dialog__header {
  25522. display: none !important;
  25523. }
  25524. .dialog_diyCopy >>> .el-dialog__body {
  25525. padding: 0 !important;
  25526. height: 100% !important;
  25527. }
  25528. .confirmOpenDigCss > div{
  25529. font-size: 14px;
  25530. color: rgba(0, 0, 0, 0.6);
  25531. }
  25532. .confirmOpenDigCss >>> .el-dialog{
  25533. border-radius: 6px;
  25534. }
  25535. .confirmOpenDigCss >>> .el-dialog__body{
  25536. padding: 25px !important;
  25537. }
  25538. .confirmOpenDigCss > span{
  25539. font-size: 16px;
  25540. font-weight: 600;
  25541. color: rgba(0, 0, 0, 0.8);
  25542. }
  25543. div::-webkit-scrollbar {
  25544. width: 10px;
  25545. height: 6px;
  25546. }
  25547. .Ovh{
  25548. margin: 5px 0;
  25549. width: 4em;
  25550. -webkit-line-clamp: 2;
  25551. display: -webkit-box;
  25552. -webkit-box-orient: vertical;
  25553. overflow: hidden;
  25554. text-overflow: ellipsis;
  25555. }
  25556. .renderedFor >>> .katex {
  25557. font-size: 18px;
  25558. width: 100%;
  25559. white-space: normal;
  25560. font-family: '黑体' !important;
  25561. }
  25562. .renderedFor >>> .katex .base{
  25563. display: inline !important;
  25564. display: contents !important;
  25565. }
  25566. .renderedFor>>> .katex .base .cjk_fallback{
  25567. white-space: normal !important;
  25568. display: inline !important;
  25569. }
  25570. </style>