studyStudent.vue 879 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. :key="diffKey"
  622. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  623. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  624. :src="pptImgUrl1"
  625. ></iframe>
  626. <iframe
  627. style="width: 100%; height: 100%; border: none"
  628. security="restricted"
  629. v-else
  630. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  631. :src="pptImgUrl1"
  632. ></iframe>
  633. </div>
  634. <div
  635. class="wheel"
  636. v-if="showType === 16"
  637. style="width: 95%; margin: 0 auto"
  638. >
  639. <iframe
  640. style="width: 100%; height: 100%; border: none"
  641. :src="pptImgUrl1"
  642. ></iframe>
  643. </div>
  644. <div
  645. class="wheel"
  646. v-if="showType == 3"
  647. style="width: 95%; margin: 0 auto"
  648. >
  649. <pdf
  650. :pdfUrl="pptImgUrl1"
  651. style="width: 100%; height: 100%; overflow: auto"
  652. ></pdf>
  653. </div>
  654. <div
  655. class="wheel"
  656. v-if="showType == 4"
  657. style="width: 95%; margin: 0 auto"
  658. >
  659. <el-image
  660. :src="pptImgUrl1"
  661. fit="contain"
  662. style="width: 100%; height: 100%; cursor: pointer"
  663. @click="previewImg(pptImgUrl1)"
  664. ></el-image>
  665. </div>
  666. </div>
  667. <div
  668. class="pButton"
  669. style="position: absolute; right: 20px; top: 0; z-index: 998"
  670. v-if="!contentDialog"
  671. @click="setContent(true)"
  672. >
  673. <!-- 批 -->
  674. <img
  675. src="../../assets/icon/newIcons/isLeft.png"
  676. style="width: 45px"
  677. alt=""
  678. />
  679. </div>
  680. <div
  681. v-if="contentDialog == true"
  682. :style="{
  683. width:
  684. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  685. showType === ''
  686. ? 'calc(100%)'
  687. : '300px',
  688. margin:
  689. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  690. showType === ''
  691. ? '0 15px'
  692. : '0 15px 0 0',
  693. }"
  694. >
  695. <div
  696. class="vedioList"
  697. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  698. style="height: 650px"
  699. >
  700. <div class="navCorOpenBox">
  701. <div class="navTitile">内容列表:</div>
  702. <div class="navCorOpen" @click="setContent(false)">
  703. <img
  704. src="../../assets/icon/newIcons/isRight.png"
  705. alt=""
  706. />
  707. </div>
  708. </div>
  709. <div class="navBox">
  710. <div
  711. v-show="
  712. vChapterData[0].length > 0 || fileC[0].length > 0
  713. "
  714. style="padding: 10px 0 25px 0"
  715. >
  716. <div
  717. class="vedioTimeBox"
  718. v-for="(vitem, vindex) in vChapterData[0]"
  719. :key="vindex + '1'"
  720. >
  721. <div class="navListItem" v-if="vitem.type == 2">
  722. <div
  723. @click="lookVedio(vitem.url, vindex)"
  724. class="navText"
  725. :class="isClickNav == vindex ? 'isClickNav' : ''"
  726. >
  727. <span v-if="vitem.text">{{ vitem.text }}-</span
  728. >{{ vitem.name }}
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 6">
  738. <div
  739. @click="lookText(0, vindex)"
  740. class="navText"
  741. :class="isClickNav == vindex ? 'isClickNav' : ''"
  742. >
  743. {{ vitem.name }}.doc
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div
  756. class="navListItem"
  757. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  758. >
  759. <div
  760. @click="doUrl(vitem.url, vindex)"
  761. class="navText"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.title ? vitem.title : vitem.url }}
  765. </div>
  766. <div
  767. class="downIcon"
  768. @click="checkFileFull1(vitem.type, vitem)"
  769. >
  770. <img
  771. src="../../assets/icon/newIcon/allScreen.png"
  772. alt
  773. />
  774. </div>
  775. </div>
  776. <div class="navListItem" v-if="vitem.type == 3">
  777. <div
  778. @click="downFile(vitem, vindex)"
  779. class="navText"
  780. :class="isClickNav == vindex ? 'isClickNav' : ''"
  781. >
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="checkFileFull1(vitem.type, vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/allScreen.png"
  791. alt
  792. />
  793. </div>
  794. <div class="downIcon" @click="downloadFile2(vitem)">
  795. <img
  796. src="../../assets/icon/newIcon/down.png"
  797. alt
  798. />
  799. </div>
  800. </div>
  801. <div class="navListItem" v-if="vitem.type == 12">
  802. <div class="navText" @click="downloadFile2(vitem)">
  803. <span v-if="vitem.text">{{ vitem.text }}-</span
  804. >{{ vitem.name }}
  805. </div>
  806. <div
  807. class="downIcon"
  808. @click="checkFileFull1(vitem.type, vitem)"
  809. >
  810. <img
  811. src="../../assets/icon/newIcon/allScreen.png"
  812. alt
  813. />
  814. </div>
  815. <div class="downIcon" @click="downloadFile2(vitem)">
  816. <img
  817. src="../../assets/icon/newIcon/down.png"
  818. alt
  819. />
  820. </div>
  821. </div>
  822. <div class="navListItem" v-if="vitem.type == 13">
  823. <div
  824. class="navText"
  825. @click="checkPhoto(vitem, vindex)"
  826. :class="isClickNav == vindex ? 'isClickNav' : ''"
  827. >
  828. {{ vitem.name }}
  829. </div>
  830. <div class="downIcon" @click="downloadFile2(vitem)">
  831. <img
  832. src="../../assets/icon/newIcon/down.png"
  833. alt
  834. />
  835. </div>
  836. </div>
  837. <div class="navListItem" v-if="vitem.type == 16">
  838. <div
  839. class="navText"
  840. @click="checkHtml(vitem, vindex)"
  841. :class="isClickNav == vindex ? 'isClickNav' : ''"
  842. >
  843. {{ vitem.name }}
  844. </div>
  845. <div
  846. class="downIcon"
  847. @click="checkFileFull1(vitem.type, vitem)"
  848. >
  849. <img
  850. src="../../assets/icon/newIcon/allScreen.png"
  851. alt
  852. />
  853. </div>
  854. </div>
  855. </div>
  856. <div class="fileC_box" v-if="fileC[0].length > 0">
  857. <div class="fileC_title">以下文件不支持预览</div>
  858. <div
  859. class="vedioTimeBox"
  860. v-for="(vitem, vindex) in fileC[0]"
  861. :key="vindex + '1'"
  862. >
  863. <div class="navListItem" v-if="vitem.type == 12">
  864. <div class="navText" style="color: #acb4bf">
  865. <span v-if="vitem.text">{{ vitem.text }}-</span
  866. >{{ vitem.name }}
  867. </div>
  868. <div
  869. class="downIcon"
  870. @click="downloadFile2(vitem)"
  871. >
  872. <img
  873. src="../../assets/icon/newIcon/down.png"
  874. alt
  875. />
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <div style="width: calc(100% - 315px)">
  886. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  887. <!-- <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, pptImgUrl1)"
  891. >全屏查看</el-button
  892. >
  893. <el-button
  894. type="primary"
  895. class="newButton"
  896. @click="downloadFile(pptImgUrl1)"
  897. v-if="showType != 2"
  898. >文件下载</el-button
  899. > -->
  900. <el-button
  901. v-if="
  902. showType == 2 &&
  903. pptImgUrl1.indexOf(
  904. 'https://view.officeapps.live.com/op/view.aspx?src='
  905. ) == -1
  906. "
  907. type="primary"
  908. class="newButton"
  909. @click="openLine(pptImgUrl1)"
  910. >打开链接
  911. </el-button>
  912. </div>
  913. <!-- <div
  914. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  915. v-if="showType == 1"
  916. >
  917. <el-button
  918. type="primary"
  919. class="newButton"
  920. @click="checkFileFull(showType, text)"
  921. >全屏查看</el-button
  922. >
  923. </div> -->
  924. </div>
  925. </div>
  926. </div>
  927. <div class="student_body" v-resize="resize">
  928. <div
  929. class="vedioBox"
  930. :style="{
  931. borderRadius:
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .taskDetail == '' &&
  934. vChapterData[taskCount].length == 0 &&
  935. fileC[taskCount].length == 0
  936. ? '0 0 20px 20px'
  937. : '20px',
  938. }"
  939. v-if="
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .toolChoose[0].tool &&
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .toolChoose[0].tool.length > 0
  944. "
  945. >
  946. <div
  947. class="toolHeng2"
  948. style="position: relative"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length &&
  954. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  955. .toolChoose[0].tool.length > 0
  956. "
  957. >
  958. <div class="workNav">工作区</div>
  959. <div
  960. class="filebox"
  961. style="flex-wrap: nowrap"
  962. v-for="(tool, toolIndex) in chapInfoList[courseType]
  963. .chapterInfo[0].taskJson[taskCount].toolChoose"
  964. :key="toolIndex"
  965. >
  966. <div class="bzBox">
  967. <div class="yCss"></div>
  968. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  969. 工具{{ toolIndex + 1 }}
  970. </div>
  971. <div
  972. v-if="timeWorkList[toolIndex].length > 0"
  973. style="margin: 0 0 0 10px"
  974. >
  975. {{
  976. timeWorkList[toolIndex][0].time
  977. ? "时间:" + timeWorkList[toolIndex][0].time
  978. : ""
  979. }}
  980. </div>
  981. </div>
  982. <div class="toolBox">
  983. <div>
  984. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  985. :key="indexTool"-->
  986. <!-- <div class="iframeBox">
  987. <div
  988. class="addPoint isBorder"
  989. v-for="(tooC, toolCIndex) in tool.tool"
  990. :key="toolCIndex"
  991. >
  992. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  993. <div
  994. class="iframeName"
  995. >
  996. 电子白板
  997. </div>
  998. <iframe
  999. src="https://iwb.cocorobo.cn/"
  1000. ref="whiteBoard"
  1001. ></iframe>
  1002. </div>
  1003. </div>
  1004. </div>-->
  1005. <div class="noiframeBox">
  1006. <div
  1007. class="addPoint"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1">
  1012. <img
  1013. src="../../assets/icon/secondToolList/whiteBoard.png"
  1014. alt
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. />
  1017. <div style="margin: 5px 0">电子白板</div>
  1018. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1019. style="position: absolute;right: 33px;top: -30px;">
  1020. 分析
  1021. </div>
  1022. </div>
  1023. <div v-if="tooC == 3">
  1024. <img
  1025. src="../../assets/icon/secondToolList/mindMapping.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维导图</div>
  1030. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 6">
  1036. <img
  1037. src="../../assets/icon/secondToolList/doc.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">协同文档</div>
  1042. </div>
  1043. <div v-if="tooC == 7">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindNetwork.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维网格</div>
  1050. <!-- && worksStudent[toolIndex].length>0 -->
  1051. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 8">
  1057. <img
  1058. src="../../assets/icon/secondToolList/library.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">素材库</div>
  1063. </div>
  1064. <div v-if="tooC == 17">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">学习资料</div>
  1071. </div>
  1072. <div v-if="tooC == 2">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div v-if="tooC == 4">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/ask.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">问卷调查</div>
  1087. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1088. style="position: absolute;right: 153px;top: -30px;">
  1089. 分析
  1090. </div>
  1091. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1092. style="position: absolute;right: 33px;top: -30px;">
  1093. 统计分析
  1094. </div>
  1095. </div>
  1096. <div v-if="tooC == 45">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/thirdToolList/choose.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">选择题</div>
  1103. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1104. style="position: absolute;right: 33px;top: -30px;">
  1105. 分析
  1106. </div>
  1107. </div>
  1108. <!-- <div v-if="tooC == 5">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/thirdToolList/score.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">量规评分</div>
  1115. </div> -->
  1116. <div v-if="tooC == 10">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/thirdToolList/time.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">倒计时</div>
  1123. </div>
  1124. <div v-if="tooC == 15">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/thirdToolList/answer.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">问答</div>
  1131. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1132. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1133. 分析
  1134. </div>
  1135. </div>
  1136. <div v-if="tooC == 26">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/courseDesign.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">课程设计</div>
  1143. </div>
  1144. <div v-if="tooC == 18">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">训练服务器</div>
  1151. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1152. style="position: absolute;right: 33px;top: -30px;">
  1153. 分析
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 16">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/work.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">作业提交</div>
  1163. </div>
  1164. <div v-if="tooC == 50">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/plwork.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">批量上传</div>
  1171. </div>
  1172. <div v-if="tooC == 21">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/fourthToolList/program.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">AIoT Blockly</div>
  1179. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1180. style="position: absolute;right: 33px;top: -30px;">
  1181. 分析
  1182. </div>
  1183. </div>
  1184. <!-- <div v-if="tooC == 22">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/fourthToolList/program.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">AI体验</div>
  1191. </div> -->
  1192. <div v-if="tooC == 23">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">AI Python</div>
  1199. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 分析
  1202. </div>
  1203. </div>
  1204. <div v-if="tooC == 24">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/AIprogram.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI Blockly</div>
  1211. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1212. style="position: absolute;right: 33px;top: -30px;">
  1213. 分析
  1214. </div>
  1215. </div>
  1216. <div v-if="tooC == 25">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../../assets/icon/thirdToolList/evalua.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">目标管理</div>
  1223. </div>
  1224. <div v-if="tooC == 31">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/secondToolList/networkPanel.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">数学画板</div>
  1231. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 28">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/secondToolList/translation.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">翻译</div>
  1243. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1244. style="position: absolute;right: 33px;top: -30px;">
  1245. 分析
  1246. </div>
  1247. </div>
  1248. <div v-if="tooC == 37">
  1249. <img
  1250. @click="addTools(tooC, toolIndex, taskCount)"
  1251. src="../../assets/icon/secondToolList/mohe.png"
  1252. alt
  1253. />
  1254. <div style="margin: 5px 0">魔盒识字</div>
  1255. </div>
  1256. <div v-if="tooC == 38">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/secondToolList/24game.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">24点</div>
  1263. </div>
  1264. <div v-if="tooC == 39">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/secondToolList/GeoGebra.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">GeoGebra</div>
  1271. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. 分析
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 32">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/thirdToolList/code.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">源码编辑</div>
  1283. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1284. style="position: absolute;right: 153px;top: -42px;">
  1285. 分析
  1286. </div>
  1287. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1288. style="position: absolute;left: 110px;bottom: 30px;">
  1289. 上传文件
  1290. <input type="file" accept="*" style="display: none"
  1291. @change="beforeUpload1($event, 7, toolIndex)" />
  1292. </div> -->
  1293. </div>
  1294. <div v-if="tooC == 40">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/secondToolList/eval.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">个人评价</div>
  1301. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1302. style="position: absolute;right: 33px;top: -30px;">
  1303. 分析
  1304. </div>
  1305. </div>
  1306. <div v-if="tooC == 41">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/thirdToolList/select.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">选择匹配</div>
  1313. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1314. style="position: absolute;right: 33px;top: -30px;">
  1315. 分析
  1316. </div>
  1317. </div>
  1318. <div v-if="tooC == 44">
  1319. <img
  1320. @click="addTools(tooC, toolIndex, taskCount)"
  1321. src="../../assets/icon/thirdToolList/hanClass.png"
  1322. alt
  1323. />
  1324. <div style="margin: 5px 0">汉字宫</div>
  1325. </div>
  1326. <div v-if="tooC == 47">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/fourthToolList/conSentences.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">排序</div>
  1333. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 分析
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 48">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/fourthToolList/table.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">表格</div>
  1345. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1346. style="position: absolute;right: 33px;top: -30px;">
  1347. 分析
  1348. </div>
  1349. </div>
  1350. <div v-if="tooC == 52">
  1351. <img
  1352. @click="addTools(tooC, toolIndex, taskCount)"
  1353. src="../../assets/icon/fourthToolList/text.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">文档</div>
  1357. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1358. style="position: absolute;right: 33px;top: -30px;">
  1359. 分析
  1360. </div>
  1361. </div>
  1362. <div v-if="tooC == 49">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../../assets/icon/fourthToolList/group.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">学生分组</div>
  1369. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1370. style="position: absolute;right: 33px;top: -30px;">
  1371. 分析
  1372. </div>
  1373. </div>
  1374. <div v-if="tooC == 57">
  1375. <img
  1376. @click="addTools(tooC, toolIndex, taskCount)"
  1377. src="../../assets/icon/fourthToolList/cocopi.png"
  1378. alt
  1379. />
  1380. <div style="margin: 5px 0">CocoPi</div>
  1381. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1382. style="position: absolute;right: 33px;top: -30px;">
  1383. 分析
  1384. </div>
  1385. </div>
  1386. <div v-if="tooC == 58">
  1387. <img
  1388. @click="addTools(tooC, toolIndex, taskCount)"
  1389. src="../../assets/icon/fourthToolList/car.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">模拟驾驶</div>
  1393. </div>
  1394. <div v-if="tooC == 59">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/lineSearch.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">路径搜索</div>
  1401. </div>
  1402. <div v-if="tooC == 60">
  1403. <img
  1404. @click="addTools(tooC, toolIndex, taskCount)"
  1405. src="../../assets/icon/fourthToolList/deepLearning.png"
  1406. alt
  1407. />
  1408. <div style="margin: 5px 0">深度学习</div>
  1409. </div>
  1410. <div v-if="tooC == 61">
  1411. <img
  1412. @click="addTools(tooC, toolIndex, taskCount)"
  1413. src="../../assets/icon/fourthToolList/allHistory.png"
  1414. alt
  1415. />
  1416. <div style="margin: 5px 0">全历史</div>
  1417. </div>
  1418. <div v-if="tooC == 62">
  1419. <img
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../../assets/icon/fourthToolList/interVideo.png"
  1422. alt
  1423. />
  1424. <div style="margin: 5px 0">交互视频</div>
  1425. </div>
  1426. <div v-if="tooC == 63">
  1427. <img
  1428. @click="addTools(tooC, toolIndex, taskCount)"
  1429. src="../../assets/icon/fourthToolList/Wood.png"
  1430. alt
  1431. />
  1432. <div style="margin: 5px 0">海龟编程</div>
  1433. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1434. style="position: absolute;right: 33px;top: -30px;">
  1435. 分析
  1436. </div>
  1437. </div>
  1438. <div v-if="tooC == 71">
  1439. <img
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../../assets/icon/fourthToolList/chatgpt.png"
  1442. alt
  1443. />
  1444. <div style="margin: 5px 0">AI智能体</div>
  1445. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1446. style="position: absolute;right: 33px;top: -30px;">
  1447. 分析
  1448. </div>
  1449. </div>
  1450. <div v-if="tooC == 72">
  1451. <img
  1452. style="height: 85px;object-fit: cover;"
  1453. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1454. @click="addTools(tooC, toolIndex, taskCount)"
  1455. :src="tool.appJson.json.icon"
  1456. alt
  1457. />
  1458. <img
  1459. v-else
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/firstToolList/appStore.png"
  1462. alt
  1463. />
  1464. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1465. <!-- content to trigger tooltip here -->
  1466. <div class="Ovh">
  1467. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1468. </div>
  1469. </el-tooltip>
  1470. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div>
  1474. </div>
  1475. <div v-if="tooC == 65">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/firstToolList/pickPeople.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">挑人</div>
  1482. </div>
  1483. <div v-if="tooC == 66">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../../assets/icon/secondToolList/formulaEdi.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">公式编辑</div>
  1490. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div>
  1494. </div>
  1495. <div v-if="tooC == 67">
  1496. <img
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../../assets/icon/secondToolList/molStr.png"
  1499. alt
  1500. />
  1501. <div style="margin: 5px 0">分子结构</div>
  1502. </div>
  1503. <div v-if="tooC == 68">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/secondToolList/timeAxis.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">时间轴</div>
  1510. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1511. style="position: absolute;right: 33px;top: -30px;">
  1512. 分析
  1513. </div> -->
  1514. </div>
  1515. <div v-if="tooC == 69">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../../assets/icon/secondToolList/english.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">英语写作</div>
  1522. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1523. style="position: absolute;right: 33px;top: -30px;">
  1524. 分析
  1525. </div>
  1526. </div>
  1527. <div v-if="tooC == 70">
  1528. <img
  1529. @click="addTools(tooC, toolIndex, taskCount)"
  1530. src="../../assets/icon/thirdToolList/englishVoice.png"
  1531. alt
  1532. />
  1533. <div style="margin: 5px 0">英语口语</div>
  1534. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1535. style="position: absolute;right: 33px;top: -30px;">
  1536. 分析
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. </div>
  1542. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1543. <!-- <div class="toolTitle">工具描述</div> -->
  1544. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1545. <div style="height:100%;"
  1546. v-html="contentConvent(tool.toolDetail)"
  1547. v-if="toolDetailIndex != toolIndex"
  1548. ></div>
  1549. <div v-else @click.stop="" style="height:100%;">
  1550. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1551. </div>
  1552. </div>
  1553. <el-button
  1554. type="primary"
  1555. v-if="tool.tool[0] == 32"
  1556. style="position: absolute; right: 30px; top: -45px"
  1557. @click="addImg($event)"
  1558. >上传作业<input
  1559. type="file"
  1560. accept="*"
  1561. style="display: none"
  1562. @change="beforeUpload1($event, 7, toolIndex)"
  1563. /></el-button>
  1564. <el-button
  1565. type="primary"
  1566. v-if="tool.tool[0] == 15"
  1567. style="position: absolute; right: 30px; top: -45px"
  1568. @click="openWordCloud(toolIndex)"
  1569. >生成词云</el-button
  1570. >
  1571. <el-button
  1572. type="primary"
  1573. v-if="
  1574. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1575. "
  1576. style="position: absolute; right: 30px; top: -45px"
  1577. @click="uploadWorks(toolIndex)"
  1578. >导出作业</el-button
  1579. >
  1580. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1581. position: absolute;
  1582. right: 30px;
  1583. transform: translateY(-130%);
  1584. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1585. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1586. </div>
  1587. <div
  1588. v-if="
  1589. tType &&
  1590. tType == 2 &&
  1591. !sIsOpen &&
  1592. tool.tool.indexOf(16) != -1
  1593. "
  1594. class="worksBox"
  1595. >
  1596. <div
  1597. class="zuoyeYulan"
  1598. v-if="workStudent[toolIndex].length > 0"
  1599. >
  1600. <span class="worksTitle">作业预览</span>
  1601. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1602. </div>
  1603. <div
  1604. class="worksDetailBox"
  1605. v-if="workStudent[toolIndex].length > 0"
  1606. >
  1607. <div
  1608. class="works"
  1609. style="
  1610. width: 200px;
  1611. height: 140px;
  1612. margin: 10px 10px 10px 0;
  1613. box-shadow: 0 0 6px 1px #dfdada;
  1614. "
  1615. v-for="(w, wIndex) in workStudent[toolIndex]"
  1616. :key="wIndex"
  1617. >
  1618. <div class="workImg" v-if="w.type == 0">
  1619. <img
  1620. :src="w.works"
  1621. @click="previewImg(w.works,w)"
  1622. alt
  1623. />
  1624. <div
  1625. class="answerScore"
  1626. v-if="w.score"
  1627. @click.stop="openScore(w)"
  1628. :class="{
  1629. rightW:
  1630. w.userid == userid || tType == 1 || tType == 4,
  1631. }"
  1632. >
  1633. {{ JSON.parse(w.score).wScore }}分
  1634. </div>
  1635. <div
  1636. class="answerScore"
  1637. @click.stop="openScore(w)"
  1638. v-else-if="courseDetail.userid == userid"
  1639. :class="{
  1640. rightW:
  1641. w.userid == userid || tType == 1 || tType == 4,
  1642. }"
  1643. >
  1644. 评分
  1645. </div>
  1646. <img
  1647. class="deleteImg"
  1648. src="../../assets/deleteworks.png"
  1649. v-if="
  1650. w.userid == userid || tType == 1 || tType == 4
  1651. "
  1652. @click.stop="deleteWorks(w.wid)"
  1653. alt
  1654. />
  1655. </div>
  1656. <div class="workImg" v-if="w.type == 1">
  1657. <img :src="word" @click="openFile(w.works)" alt />
  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 == 3">
  1691. <img
  1692. style="cursor: pointer"
  1693. :src="video"
  1694. @click="openVideo(w)"
  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="workImg" v-if="w.type == 12">
  1730. <img
  1731. style="cursor: pointer"
  1732. :src="word2"
  1733. @click="downloadFile(w.works)"
  1734. alt
  1735. />
  1736. <div
  1737. class="answerScore"
  1738. v-if="w.score"
  1739. @click.stop="openScore(w)"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. {{ JSON.parse(w.score).wScore }}分
  1746. </div>
  1747. <div
  1748. class="answerScore"
  1749. @click.stop="openScore(w)"
  1750. v-else-if="courseDetail.userid == userid"
  1751. :class="{
  1752. rightW:
  1753. w.userid == userid || tType == 1 || tType == 4,
  1754. }"
  1755. >
  1756. 评分
  1757. </div>
  1758. <img
  1759. class="deleteImg"
  1760. src="../../assets/deleteworks.png"
  1761. v-if="
  1762. w.userid == userid || tType == 1 || tType == 4
  1763. "
  1764. @click.stop="deleteWorks(w.wid)"
  1765. alt
  1766. />
  1767. </div>
  1768. <div class="worksName">
  1769. <div>{{ w.sName }}</div>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. <div
  1775. v-if="
  1776. tType &&
  1777. tType == 2 &&
  1778. !sIsOpen &&
  1779. tool.tool.indexOf(32) != -1
  1780. "
  1781. class="worksBox"
  1782. >
  1783. <div
  1784. class="zuoyeYulan"
  1785. v-if="workStudent[toolIndex].length > 0"
  1786. >
  1787. <span class="worksTitle">作业预览</span>
  1788. </div>
  1789. <div
  1790. class="worksDetailBox"
  1791. v-if="workStudent[toolIndex].length > 0"
  1792. >
  1793. <div
  1794. class="works"
  1795. style="
  1796. width: 200px;
  1797. height: 140px;
  1798. margin: 10px 10px 10px 0;
  1799. box-shadow: 0 0 6px 1px #dfdada;
  1800. "
  1801. v-for="(w, wIndex) in workStudent[toolIndex]"
  1802. :key="wIndex"
  1803. >
  1804. <div class="workImg">
  1805. <img
  1806. :src="word2"
  1807. @click="downloadFile(w.works)"
  1808. alt
  1809. />
  1810. <div
  1811. class="answerScore"
  1812. v-if="w.score"
  1813. @click.stop="openScore(w)"
  1814. :class="{
  1815. rightW:
  1816. w.userid == userid || tType == 1 || tType == 4,
  1817. }"
  1818. >
  1819. {{ JSON.parse(w.score).wScore }}分
  1820. </div>
  1821. <div
  1822. class="answerScore"
  1823. @click.stop="openScore(w)"
  1824. v-else-if="courseDetail.userid == userid"
  1825. :class="{
  1826. rightW:
  1827. w.userid == userid || tType == 1 || tType == 4,
  1828. }"
  1829. >
  1830. 评分
  1831. </div>
  1832. <img
  1833. class="deleteImg"
  1834. src="../../assets/deleteworks.png"
  1835. v-if="
  1836. w.userid == userid || tType == 1 || tType == 4
  1837. "
  1838. @click.stop="deleteWorks(w.wid)"
  1839. alt
  1840. />
  1841. </div>
  1842. <div class="worksName">
  1843. <div>{{ w.sName }}</div>
  1844. </div>
  1845. </div>
  1846. </div>
  1847. </div>
  1848. <div
  1849. v-if="
  1850. tType &&
  1851. tType == 2 &&
  1852. !sIsOpen &&
  1853. tool.tool.indexOf(57) != -1
  1854. "
  1855. class="worksBox"
  1856. >
  1857. <div
  1858. class="zuoyeYulan"
  1859. v-if="workStudent[toolIndex].length > 0"
  1860. >
  1861. <span class="worksTitle">作业预览</span>
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. style="
  1870. width: 200px;
  1871. height: 140px;
  1872. margin: 10px 10px 10px 0;
  1873. box-shadow: 0 0 6px 1px #dfdada;
  1874. "
  1875. v-for="(w, wIndex) in workStudent[toolIndex]"
  1876. :key="wIndex"
  1877. >
  1878. <div class="workImg">
  1879. <img
  1880. :src="word2"
  1881. @click="downloadFile(w.works)"
  1882. v-if="w.type == 12"
  1883. alt
  1884. />
  1885. <img
  1886. :src="word2"
  1887. @click="
  1888. openCocoPi(57, toolIndex, w.userid, w.sName)
  1889. "
  1890. v-else-if="w.type == 15"
  1891. alt
  1892. />
  1893. <div
  1894. class="answerScore"
  1895. v-if="w.score"
  1896. @click.stop="openScore(w)"
  1897. :class="{
  1898. rightW:
  1899. w.userid == userid || tType == 1 || tType == 4,
  1900. }"
  1901. >
  1902. {{ JSON.parse(w.score).wScore }}分
  1903. </div>
  1904. <div
  1905. class="answerScore"
  1906. @click.stop="openScore(w)"
  1907. v-else-if="courseDetail.userid == userid"
  1908. :class="{
  1909. rightW:
  1910. w.userid == userid || tType == 1 || tType == 4,
  1911. }"
  1912. >
  1913. 评分
  1914. </div>
  1915. <img
  1916. class="deleteImg"
  1917. src="../../assets/deleteworks.png"
  1918. v-if="
  1919. w.userid == userid || tType == 1 || tType == 4
  1920. "
  1921. @click.stop="deleteWorks(w.wid)"
  1922. alt
  1923. />
  1924. </div>
  1925. <div class="worksName">
  1926. <div>{{ w.sName }}</div>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div
  1932. v-if="
  1933. tType &&
  1934. tType == 2 &&
  1935. !sIsOpen &&
  1936. tool.tool.indexOf(4) != -1
  1937. "
  1938. class="worksBox"
  1939. >
  1940. <div
  1941. class="zuoyeYulan"
  1942. v-if="workStudent[toolIndex].length > 0"
  1943. >
  1944. <span class="worksTitle">作业预览</span>
  1945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1946. </div>
  1947. <div
  1948. class="worksDetailBox"
  1949. v-if="workStudent[toolIndex].length > 0"
  1950. >
  1951. <div
  1952. class="isWorksName2"
  1953. v-for="(w, wIndex) in workStudent[toolIndex]"
  1954. :key="wIndex"
  1955. @click="
  1956. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1957. "
  1958. >
  1959. {{ w.sName }}
  1960. <img
  1961. class="deleteImg deleteImg2"
  1962. src="../../assets/deleteworks.png"
  1963. v-if="w.userid == userid || tType == 1 || tType == 4"
  1964. @click.stop="deleteWorks(w.wid)"
  1965. alt
  1966. />
  1967. </div>
  1968. <!-- <div
  1969. class="works"
  1970. style="
  1971. width: 200px;
  1972. height: 140px;
  1973. border-radius: 10px;
  1974. box-shadow: 0 0 6px 1px #dfdada;
  1975. overflow: hidden;
  1976. "
  1977. v-for="(w, wIndex) in workStudent[toolIndex]"
  1978. :key="wIndex"
  1979. >
  1980. <div class="workImg">
  1981. <img
  1982. src="../../assets/icon/works/noImg.png"
  1983. @click="
  1984. openTools(
  1985. 4,
  1986. toolIndex,
  1987. taskCount,
  1988. w.works,
  1989. w.sName
  1990. )
  1991. "
  1992. alt
  1993. />
  1994. </div>
  1995. <div class="worksName">
  1996. <div>{{ w.sName }}</div>
  1997. <div>{{ w.time }}</div>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. </div>
  2002. <div
  2003. v-if="
  2004. tType &&
  2005. ((tType == 2 && sIsOpen == true) ||
  2006. tType == 1 ||
  2007. tType == 4) &&
  2008. tool.tool.indexOf(62) != -1
  2009. "
  2010. class="worksBox"
  2011. >
  2012. <div
  2013. class="zuoyeYulan"
  2014. v-if="
  2015. worksStudent.length &&
  2016. worksStudent[toolIndex].length > 0
  2017. "
  2018. >
  2019. <div class="worksTop">
  2020. <div>作业预览</div>
  2021. <div
  2022. class="corOpen"
  2023. @click="contract(toolIndex)"
  2024. v-if="
  2025. (isCloseList[toolIndex].isCloseBoolean) &&
  2026. isCloseList[toolIndex].isClose == 0
  2027. "
  2028. >
  2029. 折叠
  2030. </div>
  2031. <div
  2032. class="corOpen"
  2033. @click="contract(toolIndex)"
  2034. v-if="isCloseList[toolIndex].isClose == 1"
  2035. >
  2036. 展开
  2037. </div>
  2038. </div>
  2039. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2040. </div>
  2041. <div>
  2042. <div
  2043. :id="'tool-' + toolIndex"
  2044. :style="{
  2045. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2046. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2047. }"
  2048. class="worksDetailBox"
  2049. v-if="
  2050. worksStudent.length &&
  2051. worksStudent[toolIndex].length > 0
  2052. "
  2053. >
  2054. <div
  2055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2056. :key="wIndex"
  2057. class="isWorksName2"
  2058. @click="
  2059. openTools(
  2060. 62,
  2061. toolIndex,
  2062. taskCount,
  2063. w.works,
  2064. w.sName
  2065. )
  2066. "
  2067. >
  2068. {{ w.sName }}
  2069. <img
  2070. class="deleteImg deleteImg2"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2082. 未提交
  2083. </div>
  2084. <div
  2085. class="noWorksS"
  2086. v-if="noWorksS && noWorksS[toolIndex].length"
  2087. >
  2088. <div
  2089. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2090. :key="sIndex"
  2091. class="noWorksName"
  2092. >
  2093. <el-tooltip effect="dark" :content="s.student" placement="top">
  2094. <span>{{ s.student }}</span>
  2095. </el-tooltip>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div
  2100. v-if="
  2101. tType &&
  2102. tType == 2 &&
  2103. !sIsOpen &&
  2104. tool.tool.indexOf(62) != -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(62, 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(45) != -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(45, 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(69) != -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="isWorksName2"
  2199. v-for="(w, wIndex) in workStudent[toolIndex]"
  2200. :key="wIndex"
  2201. @click="
  2202. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2203. "
  2204. >
  2205. {{ w.sName }}
  2206. <img
  2207. class="deleteImg deleteImg2"
  2208. src="../../assets/deleteworks.png"
  2209. v-if="w.userid == userid || tType == 1 || tType == 4"
  2210. @click.stop="deleteWorks(w.wid)"
  2211. alt
  2212. />
  2213. </div>
  2214. </div>
  2215. </div>
  2216. <div
  2217. v-if="
  2218. tType &&
  2219. tType == 2 &&
  2220. !sIsOpen &&
  2221. tool.tool.indexOf(15) != -1
  2222. "
  2223. class="worksBox"
  2224. >
  2225. <div
  2226. class="zuoyeYulan"
  2227. v-if="workStudent[toolIndex].length > 0"
  2228. >
  2229. <span class="worksTitle">作业预览</span>
  2230. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2231. </div>
  2232. <div
  2233. class="worksDetailBox"
  2234. v-if="workStudent[toolIndex].length > 0"
  2235. >
  2236. <div
  2237. class="works"
  2238. v-for="(w, wIndex) in workStudent[toolIndex]"
  2239. :key="wIndex"
  2240. >
  2241. <div class="workImg">
  2242. <!-- <img
  2243. src="../../assets/icon/works/noImg.png"
  2244. @click="openTools(15, toolIndex, taskCount, w.works)"
  2245. alt=""
  2246. />-->
  2247. <div class="answerBg">
  2248. <!-- <div>{{ w.sName }}</div> -->
  2249. <el-tooltip
  2250. class="item"
  2251. effect="light"
  2252. :content="JSON.parse(w.works)[0].answer"
  2253. placement="top"
  2254. >
  2255. <div class="answerContent">
  2256. {{ JSON.parse(w.works)[0].answer }}
  2257. </div>
  2258. </el-tooltip>
  2259. <div
  2260. class="answerScore"
  2261. v-if="w.score"
  2262. @click.stop="openScore(w)"
  2263. :class="{
  2264. rightW:
  2265. w.userid == userid ||
  2266. tType == 1 ||
  2267. tType == 4,
  2268. }"
  2269. >
  2270. {{ JSON.parse(w.score).wScore }}分
  2271. </div>
  2272. <div
  2273. class="answerScore"
  2274. @click.stop="openScore(w)"
  2275. v-else-if="courseDetail.userid == userid"
  2276. :class="{
  2277. rightW:
  2278. w.userid == userid ||
  2279. tType == 1 ||
  2280. tType == 4,
  2281. }"
  2282. >
  2283. 评分
  2284. </div>
  2285. <img
  2286. class="deleteImg"
  2287. src="../../assets/deleteworks.png"
  2288. v-if="
  2289. w.userid == userid || tType == 1 || tType == 4
  2290. "
  2291. @click.stop="deleteWorks(w.wid)"
  2292. alt
  2293. />
  2294. </div>
  2295. <div class="comment">
  2296. <div class="worksName">
  2297. <div>{{ w.sName }}</div>
  2298. </div>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. <div
  2305. v-if="
  2306. tType &&
  2307. tType == 2 &&
  2308. !sIsOpen &&
  2309. tool.tool.indexOf(1) != -1
  2310. "
  2311. class="worksBox"
  2312. >
  2313. <div
  2314. class="zuoyeYulan"
  2315. v-if="workStudent[toolIndex].length > 0"
  2316. >
  2317. <span class="worksTitle">作业预览</span>
  2318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2319. </div>
  2320. <div
  2321. class="worksDetailBox"
  2322. v-if="workStudent[toolIndex].length > 0"
  2323. >
  2324. <div
  2325. class="works"
  2326. style="
  2327. width: 200px;
  2328. height: 140px;
  2329. margin: 10px 10px 10px 0;
  2330. box-shadow: 0 0 6px 1px #dfdada;
  2331. "
  2332. v-for="(w, wIndex) in workStudent[toolIndex]"
  2333. :key="wIndex"
  2334. >
  2335. <div class="workImg">
  2336. <img
  2337. :src="w.works"
  2338. @click="previewImg(w.works,w)"
  2339. alt
  2340. />
  2341. <div
  2342. class="answerScore"
  2343. v-if="w.score"
  2344. @click.stop="openScore(w)"
  2345. :class="{
  2346. rightW:
  2347. w.userid == userid || tType == 1 || tType == 4,
  2348. }"
  2349. >
  2350. {{ JSON.parse(w.score).wScore }}分
  2351. </div>
  2352. <div
  2353. class="answerScore"
  2354. @click.stop="openScore(w)"
  2355. v-else-if="courseDetail.userid == userid"
  2356. :class="{
  2357. rightW:
  2358. w.userid == userid || tType == 1 || tType == 4,
  2359. }"
  2360. >
  2361. 评分
  2362. </div>
  2363. <img
  2364. class="deleteImg"
  2365. src="../../assets/deleteworks.png"
  2366. v-if="
  2367. w.userid == userid || tType == 1 || tType == 4
  2368. "
  2369. @click.stop="deleteWorks(w.wid)"
  2370. alt
  2371. />
  2372. </div>
  2373. <div class="worksName">
  2374. <div>{{ w.sName }}</div>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <div
  2380. v-if="
  2381. tType &&
  2382. tType == 2 &&
  2383. !sIsOpen &&
  2384. tool.tool.indexOf(3) != -1
  2385. "
  2386. class="worksBox"
  2387. >
  2388. <div
  2389. class="zuoyeYulan"
  2390. v-if="workStudent[toolIndex].length > 0"
  2391. >
  2392. <span class="worksTitle">作业预览</span>
  2393. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2394. </div>
  2395. <div
  2396. class="worksDetailBox"
  2397. v-if="workStudent[toolIndex].length > 0"
  2398. >
  2399. <div
  2400. class="works"
  2401. style="
  2402. width: 200px;
  2403. height: 140px;
  2404. margin: 10px 10px 10px 0;
  2405. box-shadow: 0 0 6px 1px #dfdada;
  2406. "
  2407. v-for="(w, wIndex) in workStudent[toolIndex]"
  2408. :key="wIndex"
  2409. >
  2410. <div class="workImg">
  2411. <img
  2412. :src="w.works"
  2413. @click="previewImg(w.works,w)"
  2414. alt
  2415. />
  2416. <div
  2417. class="answerScore"
  2418. v-if="w.score"
  2419. @click.stop="openScore(w)"
  2420. :class="{
  2421. rightW:
  2422. w.userid == userid || tType == 1 || tType == 4,
  2423. }"
  2424. >
  2425. {{ JSON.parse(w.score).wScore }}分
  2426. </div>
  2427. <div
  2428. class="answerScore"
  2429. @click.stop="openScore(w)"
  2430. v-else-if="courseDetail.userid == userid"
  2431. :class="{
  2432. rightW:
  2433. w.userid == userid || tType == 1 || tType == 4,
  2434. }"
  2435. >
  2436. 评分
  2437. </div>
  2438. <img
  2439. class="deleteImg"
  2440. src="../../assets/deleteworks.png"
  2441. v-if="
  2442. w.userid == userid || tType == 1 || tType == 4
  2443. "
  2444. @click.stop="deleteWorks(w.wid)"
  2445. alt
  2446. />
  2447. </div>
  2448. <div class="worksName">
  2449. <div>{{ w.sName }}</div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. </div>
  2454. <div
  2455. v-if="
  2456. tType &&
  2457. tType == 2 &&
  2458. !sIsOpen &&
  2459. tool.tool.indexOf(6) != -1
  2460. "
  2461. class="worksBox"
  2462. >
  2463. <div
  2464. class="zuoyeYulan"
  2465. v-if="workStudent[toolIndex].length > 0"
  2466. >
  2467. <span class="worksTitle">作业预览</span>
  2468. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2469. </div>
  2470. <div
  2471. class="worksDetailBox"
  2472. v-if="workStudent[toolIndex].length > 0"
  2473. >
  2474. <div
  2475. class="works"
  2476. style="
  2477. width: 200px;
  2478. height: 140px;
  2479. margin: 10px 10px 10px 0;
  2480. box-shadow: 0 0 6px 1px #dfdada;
  2481. "
  2482. v-for="(w, wIndex) in workStudent[toolIndex]"
  2483. :key="wIndex"
  2484. >
  2485. <div class="workImg">
  2486. <img
  2487. :src="w.works"
  2488. @click="previewImg(w.works,w)"
  2489. alt
  2490. />
  2491. <div
  2492. class="answerScore"
  2493. v-if="w.score"
  2494. @click.stop="openScore(w)"
  2495. :class="{
  2496. rightW:
  2497. w.userid == userid || tType == 1 || tType == 4,
  2498. }"
  2499. >
  2500. {{ JSON.parse(w.score).wScore }}分
  2501. </div>
  2502. <div
  2503. class="answerScore"
  2504. @click.stop="openScore(w)"
  2505. v-else-if="courseDetail.userid == userid"
  2506. :class="{
  2507. rightW:
  2508. w.userid == userid || tType == 1 || tType == 4,
  2509. }"
  2510. >
  2511. 评分
  2512. </div>
  2513. <img
  2514. class="deleteImg"
  2515. src="../../assets/deleteworks.png"
  2516. v-if="
  2517. w.userid == userid || tType == 1 || tType == 4
  2518. "
  2519. @click.stop="deleteWorks(w.wid)"
  2520. alt
  2521. />
  2522. </div>
  2523. <div class="worksName">
  2524. <div>{{ w.sName }}</div>
  2525. </div>
  2526. </div>
  2527. </div>
  2528. </div>
  2529. <div
  2530. v-if="
  2531. tType &&
  2532. tType == 2 &&
  2533. !sIsOpen &&
  2534. tool.tool.indexOf(7) != -1
  2535. "
  2536. class="worksBox"
  2537. >
  2538. <div
  2539. class="zuoyeYulan"
  2540. v-if="workStudent[toolIndex].length > 0"
  2541. >
  2542. <span class="worksTitle">作业预览</span>
  2543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2544. </div>
  2545. <div
  2546. class="worksDetailBox"
  2547. v-if="workStudent[toolIndex].length > 0"
  2548. >
  2549. <div
  2550. class="works"
  2551. style="
  2552. width: 200px;
  2553. height: 140px;
  2554. margin: 10px 10px 10px 0;
  2555. box-shadow: 0 0 6px 1px #dfdada;
  2556. "
  2557. v-for="(w, wIndex) in workStudent[toolIndex]"
  2558. :key="wIndex"
  2559. >
  2560. <div class="workImg">
  2561. <img
  2562. :src="w.works"
  2563. @click="previewImg(w.works,w)"
  2564. alt
  2565. />
  2566. <div
  2567. class="answerScore"
  2568. v-if="w.score"
  2569. @click.stop="openScore(w)"
  2570. :class="{
  2571. rightW:
  2572. w.userid == userid || tType == 1 || tType == 4,
  2573. }"
  2574. >
  2575. {{ JSON.parse(w.score).wScore }}分
  2576. </div>
  2577. <div
  2578. class="answerScore"
  2579. @click.stop="openScore(w)"
  2580. v-else-if="courseDetail.userid == userid"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid || tType == 1 || tType == 4,
  2584. }"
  2585. >
  2586. 评分
  2587. </div>
  2588. <img
  2589. class="deleteImg"
  2590. src="../../assets/deleteworks.png"
  2591. v-if="
  2592. w.userid == userid || tType == 1 || tType == 4
  2593. "
  2594. @click.stop="deleteWorks(w.wid)"
  2595. alt
  2596. />
  2597. </div>
  2598. <div class="worksName">
  2599. <div>{{ w.sName }}</div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. </div>
  2604. <div
  2605. v-if="
  2606. tType &&
  2607. tType == 2 &&
  2608. !sIsOpen &&
  2609. tool.tool.indexOf(26) != -1
  2610. "
  2611. class="worksBox"
  2612. >
  2613. <div
  2614. class="zuoyeYulan"
  2615. v-if="workStudent[toolIndex].length > 0"
  2616. >
  2617. <span class="worksTitle">作业预览</span>
  2618. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2619. </div>
  2620. <div
  2621. class="worksDetailBox"
  2622. v-if="workStudent[toolIndex].length > 0"
  2623. >
  2624. <div
  2625. class="works"
  2626. style="
  2627. width: 200px;
  2628. height: 140px;
  2629. margin: 10px 10px 10px 0;
  2630. box-shadow: 0 0 6px 1px #dfdada;
  2631. "
  2632. v-for="(w, wIndex) in workStudent[toolIndex]"
  2633. :key="wIndex"
  2634. >
  2635. <div class="workImg">
  2636. <img
  2637. :src="w.works"
  2638. @click="previewImg(w.works,w)"
  2639. alt
  2640. />
  2641. <img
  2642. class="deleteImg"
  2643. src="../../assets/deleteworks.png"
  2644. v-if="
  2645. w.userid == userid || tType == 1 || tType == 4
  2646. "
  2647. @click.stop="deleteWorks(w.wid)"
  2648. alt
  2649. />
  2650. </div>
  2651. <div class="worksName">
  2652. <div>{{ w.sName }}</div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. <div
  2658. v-if="
  2659. tType &&
  2660. ((tType == 2 && sIsOpen == true) ||
  2661. tType == 1 ||
  2662. tType == 4) &&
  2663. tool.tool.indexOf(16) != -1
  2664. "
  2665. class="worksBox"
  2666. >
  2667. <div
  2668. class="zuoyeYulan"
  2669. v-if="
  2670. (worksStudent.length &&
  2671. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2672. "
  2673. >
  2674. <div class="worksTop">
  2675. <div>作业预览</div>
  2676. <div
  2677. class="corOpen"
  2678. @click="contract(toolIndex)"
  2679. v-if="
  2680. (isCloseList[toolIndex].isCloseBoolean) &&
  2681. isCloseList[toolIndex].isClose == 0
  2682. "
  2683. >
  2684. 折叠
  2685. </div>
  2686. <div
  2687. class="corOpen"
  2688. @click="contract(toolIndex)"
  2689. v-if="isCloseList[toolIndex].isClose == 1"
  2690. >
  2691. 展开
  2692. </div>
  2693. </div>
  2694. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2695. </div>
  2696. <div
  2697. class="group_workBox"
  2698. v-for="(g, gindex) in courseGroup.group"
  2699. :key="gindex"
  2700. >
  2701. <div class="group_box">
  2702. <div class="group_title">
  2703. <el-tooltip
  2704. class="item"
  2705. effect="light"
  2706. :content="g.name"
  2707. placement="top"
  2708. >
  2709. <div class="group_name">{{ g.name }}</div>
  2710. </el-tooltip>
  2711. </div>
  2712. <div
  2713. class="group_work"
  2714. v-if="
  2715. g.works &&
  2716. g.works.length &&
  2717. g.works[toolIndex].length
  2718. "
  2719. >
  2720. <div
  2721. class="works"
  2722. style="
  2723. width: 200px;
  2724. height: 140px;
  2725. margin: 10px 10px 10px 0;
  2726. border-radius: 15px;
  2727. box-shadow: 0 0 6px 1px #dfdada;
  2728. "
  2729. v-for="(w, wIndex) in g.works[toolIndex]"
  2730. :key="wIndex"
  2731. :class="w.type == 1 ? 'isTypeOne' : ''"
  2732. >
  2733. <div class="workImg" v-if="w.type == 0">
  2734. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2735. <img
  2736. :src="w.works"
  2737. @click="previewImg(w.works,w)"
  2738. alt
  2739. />
  2740. <div
  2741. class="answerScore"
  2742. v-if="w.score"
  2743. @click.stop="openScore(w)"
  2744. :class="{
  2745. rightW:
  2746. w.userid == userid ||
  2747. tType == 1 ||
  2748. tType == 4 ||
  2749. w.ateacher == userid,
  2750. }"
  2751. >
  2752. {{ JSON.parse(w.score).wScore }}分
  2753. </div>
  2754. <div
  2755. class="answerScore"
  2756. @click.stop="openScore(w)"
  2757. v-else-if="courseDetail.userid == userid"
  2758. :class="{
  2759. rightW:
  2760. w.userid == userid ||
  2761. tType == 1 ||
  2762. tType == 4 ||
  2763. w.ateacher == userid,
  2764. }"
  2765. >
  2766. 评分
  2767. </div>
  2768. <img
  2769. class="deleteImg"
  2770. src="../../assets/deleteworks.png"
  2771. v-if="
  2772. w.userid == userid || tType == 1 || tType == 4
  2773. "
  2774. @click.stop="deleteWorks(w.wid)"
  2775. alt
  2776. />
  2777. </div>
  2778. <div class="workImg" v-if="w.type == 1">
  2779. <img :src="word" @click="openFile(w.works)" alt />
  2780. <!-- @click="openFile(w.works)" -->
  2781. <div
  2782. class="answerScore"
  2783. v-if="w.score"
  2784. @click.stop="openScore(w)"
  2785. :class="{
  2786. rightW:
  2787. w.userid == userid ||
  2788. tType == 1 ||
  2789. tType == 4 ||
  2790. w.ateacher == userid,
  2791. }"
  2792. >
  2793. {{ JSON.parse(w.score).wScore }}分
  2794. </div>
  2795. <div
  2796. class="answerScore"
  2797. @click.stop="openScore(w)"
  2798. v-else-if="courseDetail.userid == userid"
  2799. :class="{
  2800. rightW:
  2801. w.userid == userid ||
  2802. tType == 1 ||
  2803. tType == 4 ||
  2804. w.ateacher == userid,
  2805. }"
  2806. >
  2807. 评分
  2808. </div>
  2809. <img
  2810. class="deleteImg"
  2811. src="../../assets/deleteworks.png"
  2812. v-if="
  2813. w.userid == userid || tType == 1 || tType == 4
  2814. "
  2815. @click.stop="deleteWorks(w.wid)"
  2816. alt
  2817. />
  2818. </div>
  2819. <div class="workImg" v-if="w.type == 3">
  2820. <img
  2821. style="cursor: pointer"
  2822. :src="video"
  2823. @click="openVideo(w)"
  2824. alt
  2825. />
  2826. <!-- @click="openVideo(w.works)" -->
  2827. <div
  2828. class="answerScore"
  2829. v-if="w.score"
  2830. @click.stop="openScore(w)"
  2831. :class="{
  2832. rightW:
  2833. w.userid == userid ||
  2834. tType == 1 ||
  2835. tType == 4 ||
  2836. w.ateacher == userid,
  2837. }"
  2838. >
  2839. {{ JSON.parse(w.score).wScore }}分
  2840. </div>
  2841. <div
  2842. class="answerScore"
  2843. @click.stop="openScore(w)"
  2844. v-else-if="courseDetail.userid == userid"
  2845. :class="{
  2846. rightW:
  2847. w.userid == userid ||
  2848. tType == 1 ||
  2849. tType == 4 ||
  2850. w.ateacher == userid,
  2851. }"
  2852. >
  2853. 评分
  2854. </div>
  2855. <img
  2856. class="deleteImg"
  2857. src="../../assets/deleteworks.png"
  2858. v-if="
  2859. w.userid == userid || tType == 1 || tType == 4
  2860. "
  2861. @click.stop="deleteWorks(w.wid)"
  2862. alt
  2863. />
  2864. </div>
  2865. <div class="workImg" v-if="w.type == 12">
  2866. <img
  2867. style="cursor: pointer"
  2868. :src="word2"
  2869. @click="downloadFile(w.works)"
  2870. alt
  2871. />
  2872. <!-- @click="openVideo(w.works)" -->
  2873. <div
  2874. class="answerScore"
  2875. v-if="w.score"
  2876. @click.stop="openScore(w)"
  2877. :class="{
  2878. rightW:
  2879. w.userid == userid ||
  2880. tType == 1 ||
  2881. tType == 4 ||
  2882. w.ateacher == userid,
  2883. }"
  2884. >
  2885. {{ JSON.parse(w.score).wScore }}分
  2886. </div>
  2887. <div
  2888. class="answerScore"
  2889. @click.stop="openScore(w)"
  2890. v-else-if="courseDetail.userid == userid"
  2891. :class="{
  2892. rightW:
  2893. w.userid == userid ||
  2894. tType == 1 ||
  2895. tType == 4 ||
  2896. w.ateacher == userid,
  2897. }"
  2898. >
  2899. 评分
  2900. </div>
  2901. <img
  2902. class="deleteImg"
  2903. src="../../assets/deleteworks.png"
  2904. v-if="
  2905. w.userid == userid || tType == 1 || tType == 4
  2906. "
  2907. @click.stop="deleteWorks(w.wid)"
  2908. alt
  2909. />
  2910. </div>
  2911. <div class="comment" style="min-width: 200px">
  2912. <div class="worksName">
  2913. <div>{{ w.sName }}</div>
  2914. </div>
  2915. <div class="commentList">
  2916. <div class="commentList">
  2917. <div
  2918. class="commentImg"
  2919. @click="
  2920. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2921. "
  2922. >
  2923. <img
  2924. :src="w.isLikes == true ? likes : noLikes"
  2925. alt=""
  2926. />
  2927. </div>
  2928. <div>{{ w.likesCount }}</div>
  2929. </div>
  2930. <div
  2931. class="commentList"
  2932. style="margin-right: 15px"
  2933. >
  2934. <div
  2935. class="commentImg"
  2936. @click="
  2937. commentOther(
  2938. w,
  2939. toolIndex,
  2940. wIndex,
  2941. null,
  2942. g.id
  2943. )
  2944. "
  2945. >
  2946. <img
  2947. src="../../assets/icon/comment/comment.png"
  2948. alt=""
  2949. />
  2950. </div>
  2951. <div>{{ w.commentCount }}</div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>
  2957. <div class="group_work" v-else>暂无提交作业</div>
  2958. </div>
  2959. </div>
  2960. <div
  2961. :id="'tool-' + toolIndex"
  2962. :style="{
  2963. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2964. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2965. }"
  2966. class="worksDetailBox"
  2967. v-if="
  2968. worksStudent.length &&
  2969. worksStudent[toolIndex].length > 0
  2970. "
  2971. >
  2972. <div
  2973. class="works"
  2974. style="
  2975. width: 200px;
  2976. height: 140px;
  2977. margin: 10px 10px 10px 0;
  2978. border-radius: 15px;
  2979. box-shadow: 0 0 6px 1px #dfdada;
  2980. "
  2981. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2982. :key="wIndex"
  2983. :class="w.type == 1 ? 'isTypeOne' : ''"
  2984. >
  2985. <div class="workImg" v-if="w.type == 0">
  2986. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2987. <img
  2988. :src="w.works"
  2989. @click="previewImg(w.works,w)"
  2990. alt
  2991. />
  2992. <div
  2993. class="answerScore"
  2994. v-if="w.score"
  2995. @click.stop="openScore(w)"
  2996. :class="{
  2997. rightW:
  2998. w.userid == userid ||
  2999. tType == 1 ||
  3000. tType == 4 ||
  3001. w.ateacher == userid,
  3002. }"
  3003. >
  3004. {{ JSON.parse(w.score).wScore }}分
  3005. </div>
  3006. <div
  3007. class="answerScore"
  3008. @click.stop="openScore(w)"
  3009. v-else-if="courseDetail.userid == userid"
  3010. :class="{
  3011. rightW:
  3012. w.userid == userid ||
  3013. tType == 1 ||
  3014. tType == 4 ||
  3015. w.ateacher == userid,
  3016. }"
  3017. >
  3018. 评分
  3019. </div>
  3020. <img
  3021. class="deleteImg"
  3022. src="../../assets/deleteworks.png"
  3023. v-if="
  3024. w.userid == userid || tType == 1 || tType == 4
  3025. "
  3026. @click.stop="deleteWorks(w.wid)"
  3027. alt
  3028. />
  3029. </div>
  3030. <div class="workImg" v-if="w.type == 1">
  3031. <img :src="word" @click="openFile(w.works)" alt />
  3032. <!-- @click="openFile(w.works)" -->
  3033. <div
  3034. class="answerScore"
  3035. v-if="w.score"
  3036. @click.stop="openScore(w)"
  3037. :class="{
  3038. rightW:
  3039. w.userid == userid ||
  3040. tType == 1 ||
  3041. tType == 4 ||
  3042. w.ateacher == userid,
  3043. }"
  3044. >
  3045. {{ JSON.parse(w.score).wScore }}分
  3046. </div>
  3047. <div
  3048. class="answerScore"
  3049. @click.stop="openScore(w)"
  3050. v-else-if="courseDetail.userid == userid"
  3051. :class="{
  3052. rightW:
  3053. w.userid == userid ||
  3054. tType == 1 ||
  3055. tType == 4 ||
  3056. w.ateacher == userid,
  3057. }"
  3058. >
  3059. 评分
  3060. </div>
  3061. <img
  3062. class="deleteImg"
  3063. src="../../assets/deleteworks.png"
  3064. v-if="
  3065. w.userid == userid || tType == 1 || tType == 4
  3066. "
  3067. @click.stop="deleteWorks(w.wid)"
  3068. alt
  3069. />
  3070. </div>
  3071. <div class="workImg" v-if="w.type == 3">
  3072. <img
  3073. style="cursor: pointer"
  3074. :src="video"
  3075. @click="openVideo(w)"
  3076. alt
  3077. />
  3078. <!-- @click="openVideo(w.works)" -->
  3079. <div
  3080. class="answerScore"
  3081. v-if="w.score"
  3082. @click.stop="openScore(w)"
  3083. :class="{
  3084. rightW:
  3085. w.userid == userid ||
  3086. tType == 1 ||
  3087. tType == 4 ||
  3088. w.ateacher == userid,
  3089. }"
  3090. >
  3091. {{ JSON.parse(w.score).wScore }}分
  3092. </div>
  3093. <div
  3094. class="answerScore"
  3095. @click.stop="openScore(w)"
  3096. v-else-if="courseDetail.userid == userid"
  3097. :class="{
  3098. rightW:
  3099. w.userid == userid ||
  3100. tType == 1 ||
  3101. tType == 4 ||
  3102. w.ateacher == userid,
  3103. }"
  3104. >
  3105. 评分
  3106. </div>
  3107. <img
  3108. class="deleteImg"
  3109. src="../../assets/deleteworks.png"
  3110. v-if="
  3111. w.userid == userid || tType == 1 || tType == 4
  3112. "
  3113. @click.stop="deleteWorks(w.wid)"
  3114. alt
  3115. />
  3116. </div>
  3117. <div class="workImg" v-if="w.type == 12">
  3118. <img
  3119. style="cursor: pointer"
  3120. :src="word2"
  3121. @click="downloadFile(w.works)"
  3122. alt
  3123. />
  3124. <!-- @click="openVideo(w.works)" -->
  3125. <div
  3126. class="answerScore"
  3127. v-if="w.score"
  3128. @click.stop="openScore(w)"
  3129. :class="{
  3130. rightW:
  3131. w.userid == userid ||
  3132. tType == 1 ||
  3133. tType == 4 ||
  3134. w.ateacher == userid,
  3135. }"
  3136. >
  3137. {{ JSON.parse(w.score).wScore }}分
  3138. </div>
  3139. <div
  3140. class="answerScore"
  3141. @click.stop="openScore(w)"
  3142. v-else-if="courseDetail.userid == userid"
  3143. :class="{
  3144. rightW:
  3145. w.userid == userid ||
  3146. tType == 1 ||
  3147. tType == 4 ||
  3148. w.ateacher == userid,
  3149. }"
  3150. >
  3151. 评分
  3152. </div>
  3153. <img
  3154. class="deleteImg"
  3155. src="../../assets/deleteworks.png"
  3156. v-if="
  3157. w.userid == userid || tType == 1 || tType == 4
  3158. "
  3159. @click.stop="deleteWorks(w.wid)"
  3160. alt
  3161. />
  3162. </div>
  3163. <div class="comment" style="min-width: 200px">
  3164. <div class="worksName">
  3165. <div>{{ w.sName }}</div>
  3166. </div>
  3167. <div class="commentList">
  3168. <div class="commentList">
  3169. <div
  3170. class="commentImg"
  3171. @click="
  3172. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3173. "
  3174. >
  3175. <img
  3176. :src="w.isLikes == true ? likes : noLikes"
  3177. alt=""
  3178. />
  3179. </div>
  3180. <div>{{ w.likesCount }}</div>
  3181. </div>
  3182. <div class="commentList" style="margin-right: 15px">
  3183. <div
  3184. class="commentImg"
  3185. @click="commentOther(w, toolIndex, wIndex)"
  3186. >
  3187. <img
  3188. src="../../assets/icon/comment/comment.png"
  3189. alt=""
  3190. />
  3191. </div>
  3192. <div>{{ w.commentCount }}</div>
  3193. </div>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3199. 未提交
  3200. </div>
  3201. <div
  3202. class="noWorksS"
  3203. v-if="noWorksS && noWorksS[toolIndex].length"
  3204. >
  3205. <div
  3206. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3207. :key="sIndex"
  3208. class="noWorksName"
  3209. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3210. >
  3211. <el-tooltip effect="dark" :content="s.student" placement="top">
  3212. <span>{{ s.student }}</span>
  3213. </el-tooltip>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. <div
  3218. v-if="
  3219. tType &&
  3220. ((tType == 2 && sIsOpen == true) ||
  3221. tType == 1 ||
  3222. tType == 4) &&
  3223. tool.tool.indexOf(70) != -1
  3224. "
  3225. class="worksBox"
  3226. >
  3227. <div
  3228. class="zuoyeYulan"
  3229. v-if="
  3230. (worksStudent.length &&
  3231. worksStudent[toolIndex].length > 0)
  3232. "
  3233. >
  3234. <div class="worksTop">
  3235. <div>作业预览</div>
  3236. <div
  3237. class="corOpen"
  3238. @click="contract(toolIndex)"
  3239. v-if="
  3240. (isCloseList[toolIndex].isCloseBoolean) &&
  3241. isCloseList[toolIndex].isClose == 0
  3242. "
  3243. >
  3244. 折叠
  3245. </div>
  3246. <div
  3247. class="corOpen"
  3248. @click="contract(toolIndex)"
  3249. v-if="isCloseList[toolIndex].isClose == 1"
  3250. >
  3251. 展开
  3252. </div>
  3253. </div>
  3254. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3255. </div>
  3256. <div
  3257. :id="'tool-' + toolIndex"
  3258. :style="{
  3259. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3260. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3261. }"
  3262. class="worksDetailBox"
  3263. v-if="
  3264. worksStudent.length &&
  3265. worksStudent[toolIndex].length > 0
  3266. "
  3267. >
  3268. <div
  3269. class="works"
  3270. style="
  3271. width: 200px;
  3272. height: 140px;
  3273. margin: 10px 10px 10px 0;
  3274. border-radius: 15px;
  3275. box-shadow: 0 0 6px 1px #dfdada;
  3276. "
  3277. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3278. :key="wIndex"
  3279. :class="w.type == 1 ? 'isTypeOne' : ''"
  3280. >
  3281. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3282. <img :src="word" alt />
  3283. <img
  3284. class="deleteImg"
  3285. src="../../assets/deleteworks.png"
  3286. v-if="
  3287. w.userid == userid || tType == 1 || tType == 4
  3288. "
  3289. @click.stop="deleteWorks(w.wid)"
  3290. alt
  3291. />
  3292. </div>
  3293. <div class="comment" style="min-width: 200px">
  3294. <div class="worksName">
  3295. <div>{{ w.sName }}</div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3301. 未提交
  3302. </div>
  3303. <div
  3304. class="noWorksS"
  3305. v-if="noWorksS && noWorksS[toolIndex].length"
  3306. >
  3307. <div
  3308. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3309. :key="sIndex"
  3310. class="noWorksName"
  3311. >
  3312. <el-tooltip effect="dark" :content="s.student" placement="top">
  3313. <span>{{ s.student }}</span>
  3314. </el-tooltip>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. <div
  3319. v-if="
  3320. tType &&
  3321. tType == 2 &&
  3322. !sIsOpen &&
  3323. tool.tool.indexOf(70) != -1
  3324. "
  3325. class="worksBox"
  3326. >
  3327. <div
  3328. class="zuoyeYulan"
  3329. v-if="workStudent[toolIndex].length > 0"
  3330. >
  3331. <span class="worksTitle">作业预览</span>
  3332. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3333. </div>
  3334. <div
  3335. class="worksDetailBox"
  3336. v-if="workStudent[toolIndex].length > 0"
  3337. >
  3338. <div
  3339. class="works"
  3340. style="
  3341. width: 200px;
  3342. height: 140px;
  3343. margin: 10px 10px 10px 0;
  3344. box-shadow: 0 0 6px 1px #dfdada;
  3345. "
  3346. v-for="(w, wIndex) in workStudent[toolIndex]"
  3347. :key="wIndex"
  3348. >
  3349. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3350. <img :src="word" alt />
  3351. <img
  3352. class="deleteImg"
  3353. src="../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="worksName">
  3362. <div>{{ w.sName }}</div>
  3363. </div>
  3364. </div>
  3365. </div>
  3366. </div>
  3367. <div
  3368. v-if="
  3369. tType &&
  3370. ((tType == 2 && sIsOpen == true) ||
  3371. tType == 1 ||
  3372. tType == 4) &&
  3373. tool.tool.indexOf(32) != -1
  3374. "
  3375. class="worksBox"
  3376. >
  3377. <div
  3378. class="zuoyeYulan"
  3379. v-if="
  3380. worksStudent.length &&
  3381. worksStudent[toolIndex].length > 0
  3382. "
  3383. >
  3384. <div class="worksTop">
  3385. <div>作业预览</div>
  3386. <div
  3387. class="corOpen"
  3388. @click="contract(toolIndex)"
  3389. v-if="
  3390. (isCloseList[toolIndex].isCloseBoolean) &&
  3391. isCloseList[toolIndex].isClose == 0
  3392. "
  3393. >
  3394. 折叠
  3395. </div>
  3396. <div
  3397. class="corOpen"
  3398. @click="contract(toolIndex)"
  3399. v-if="isCloseList[toolIndex].isClose == 1"
  3400. >
  3401. 展开
  3402. </div>
  3403. </div>
  3404. </div>
  3405. <div
  3406. :id="'tool-' + toolIndex"
  3407. :style="{
  3408. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3409. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3410. }"
  3411. class="worksDetailBox"
  3412. v-if="
  3413. worksStudent.length &&
  3414. worksStudent[toolIndex].length > 0
  3415. "
  3416. >
  3417. <div
  3418. class="works"
  3419. style="
  3420. width: 200px;
  3421. height: 140px;
  3422. margin: 10px 10px 10px 0;
  3423. border-radius: 15px;
  3424. box-shadow: 0 0 6px 1px #dfdada;
  3425. "
  3426. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3427. :key="wIndex"
  3428. :class="w.type == 1 ? 'isTypeOne' : ''"
  3429. >
  3430. <div class="workImg">
  3431. <img
  3432. :src="word2"
  3433. @click="downloadFile(w.works)"
  3434. alt
  3435. />
  3436. <div
  3437. class="answerScore"
  3438. v-if="w.score"
  3439. @click.stop="openScore(w)"
  3440. :class="{
  3441. rightW:
  3442. w.userid == userid ||
  3443. tType == 1 ||
  3444. tType == 4 ||
  3445. w.ateacher == userid,
  3446. }"
  3447. >
  3448. {{ JSON.parse(w.score).wScore }}分
  3449. </div>
  3450. <div
  3451. class="answerScore"
  3452. @click.stop="openScore(w)"
  3453. v-else-if="courseDetail.userid == userid"
  3454. :class="{
  3455. rightW:
  3456. w.userid == userid ||
  3457. tType == 1 ||
  3458. tType == 4 ||
  3459. w.ateacher == userid,
  3460. }"
  3461. >
  3462. 评分
  3463. </div>
  3464. <img
  3465. class="deleteImg"
  3466. src="../../assets/deleteworks.png"
  3467. v-if="
  3468. w.userid == userid || tType == 1 || tType == 4
  3469. "
  3470. @click.stop="deleteWorks(w.wid)"
  3471. alt
  3472. />
  3473. </div>
  3474. <div class="comment" style="min-width: 200px">
  3475. <div class="worksName">
  3476. <div>{{ w.sName }}</div>
  3477. </div>
  3478. <div class="commentList">
  3479. <div class="commentList">
  3480. <div
  3481. class="commentImg"
  3482. @click="
  3483. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3484. "
  3485. >
  3486. <img
  3487. :src="w.isLikes == true ? likes : noLikes"
  3488. alt=""
  3489. />
  3490. </div>
  3491. <div>{{ w.likesCount }}</div>
  3492. </div>
  3493. <div class="commentList" style="margin-right: 15px">
  3494. <div
  3495. class="commentImg"
  3496. @click="commentOther(w, toolIndex, wIndex)"
  3497. >
  3498. <img
  3499. src="../../assets/icon/comment/comment.png"
  3500. alt=""
  3501. />
  3502. </div>
  3503. <div>{{ w.commentCount }}</div>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3510. 未提交
  3511. </div>
  3512. <div
  3513. class="noWorksS"
  3514. v-if="noWorksS && noWorksS[toolIndex].length"
  3515. >
  3516. <div
  3517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3518. :key="sIndex"
  3519. class="noWorksName"
  3520. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3521. >
  3522. <el-tooltip effect="dark" :content="s.student" placement="top">
  3523. <span>{{ s.student }}</span>
  3524. </el-tooltip>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. <div
  3529. v-if="
  3530. tType &&
  3531. ((tType == 2 && sIsOpen == true) ||
  3532. tType == 1 ||
  3533. tType == 4) &&
  3534. tool.tool.indexOf(57) != -1
  3535. "
  3536. class="worksBox"
  3537. >
  3538. <div
  3539. class="zuoyeYulan"
  3540. v-if="
  3541. worksStudent.length &&
  3542. worksStudent[toolIndex].length > 0
  3543. "
  3544. >
  3545. <div class="worksTop">
  3546. <div>作业预览</div>
  3547. <div
  3548. class="corOpen"
  3549. @click="contract(toolIndex)"
  3550. v-if="
  3551. (isCloseList[toolIndex].isCloseBoolean) &&
  3552. isCloseList[toolIndex].isClose == 0
  3553. "
  3554. >
  3555. 折叠
  3556. </div>
  3557. <div
  3558. class="corOpen"
  3559. @click="contract(toolIndex)"
  3560. v-if="isCloseList[toolIndex].isClose == 1"
  3561. >
  3562. 展开
  3563. </div>
  3564. </div>
  3565. </div>
  3566. <div
  3567. :id="'tool-' + toolIndex"
  3568. :style="{
  3569. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3570. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3571. }"
  3572. class="worksDetailBox"
  3573. v-if="
  3574. worksStudent.length &&
  3575. worksStudent[toolIndex].length > 0
  3576. "
  3577. >
  3578. <div
  3579. class="works"
  3580. style="
  3581. width: 200px;
  3582. height: 140px;
  3583. margin: 10px 10px 10px 0;
  3584. border-radius: 15px;
  3585. box-shadow: 0 0 6px 1px #dfdada;
  3586. "
  3587. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3588. :key="wIndex"
  3589. :class="w.type == 1 ? 'isTypeOne' : ''"
  3590. >
  3591. <div class="workImg">
  3592. <img
  3593. :src="word2"
  3594. @click="downloadFile(w.works)"
  3595. v-if="w.type == 12"
  3596. alt
  3597. />
  3598. <img
  3599. :src="word2"
  3600. @click="
  3601. openCocoPi(57, toolIndex, w.userid, w.sName)
  3602. "
  3603. v-else-if="w.type == 15"
  3604. alt
  3605. />
  3606. <div
  3607. class="answerScore"
  3608. v-if="w.score"
  3609. @click.stop="openScore(w)"
  3610. :class="{
  3611. rightW:
  3612. w.userid == userid ||
  3613. tType == 1 ||
  3614. tType == 4 ||
  3615. w.ateacher == userid,
  3616. }"
  3617. >
  3618. {{ JSON.parse(w.score).wScore }}分
  3619. </div>
  3620. <div
  3621. class="answerScore"
  3622. @click.stop="openScore(w)"
  3623. v-else-if="courseDetail.userid == userid"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. 评分
  3633. </div>
  3634. <img
  3635. class="deleteImg"
  3636. src="../../assets/deleteworks.png"
  3637. v-if="
  3638. w.userid == userid || tType == 1 || tType == 4
  3639. "
  3640. @click.stop="deleteWorks(w.wid)"
  3641. alt
  3642. />
  3643. </div>
  3644. <div class="comment" style="min-width: 200px">
  3645. <div class="worksName">
  3646. <div>{{ w.sName }}</div>
  3647. </div>
  3648. <div class="commentList">
  3649. <div class="commentList">
  3650. <div
  3651. class="commentImg"
  3652. @click="
  3653. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3654. "
  3655. >
  3656. <img
  3657. :src="w.isLikes == true ? likes : noLikes"
  3658. alt=""
  3659. />
  3660. </div>
  3661. <div>{{ w.likesCount }}</div>
  3662. </div>
  3663. <div class="commentList" style="margin-right: 15px">
  3664. <div
  3665. class="commentImg"
  3666. @click="commentOther(w, toolIndex, wIndex)"
  3667. >
  3668. <img
  3669. src="../../assets/icon/comment/comment.png"
  3670. alt=""
  3671. />
  3672. </div>
  3673. <div>{{ w.commentCount }}</div>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3680. 未提交
  3681. </div>
  3682. <div
  3683. class="noWorksS"
  3684. v-if="noWorksS && noWorksS[toolIndex].length"
  3685. >
  3686. <div
  3687. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3688. :key="sIndex"
  3689. class="noWorksName"
  3690. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3691. >
  3692. <el-tooltip effect="dark" :content="s.student" placement="top">
  3693. <span>{{ s.student }}</span>
  3694. </el-tooltip>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <div
  3699. v-if="
  3700. tType &&
  3701. ((tType == 2 && sIsOpen == true) ||
  3702. tType == 1 ||
  3703. tType == 4) &&
  3704. tool.tool.indexOf(72) != -1
  3705. "
  3706. class="worksBox"
  3707. >
  3708. <div
  3709. class="zuoyeYulan"
  3710. v-if="
  3711. worksStudent.length &&
  3712. worksStudent[toolIndex].length > 0
  3713. "
  3714. >
  3715. <div class="worksTop">
  3716. <div>作业预览</div>
  3717. <div
  3718. class="corOpen"
  3719. @click="contract(toolIndex)"
  3720. v-if="
  3721. isCloseList[toolIndex].isCloseBoolean &&
  3722. isCloseList[toolIndex].isClose == 0
  3723. "
  3724. >
  3725. 折叠
  3726. </div>
  3727. <div
  3728. class="corOpen"
  3729. @click="contract(toolIndex)"
  3730. v-if="isCloseList[toolIndex].isClose == 1"
  3731. >
  3732. 展开
  3733. </div>
  3734. </div>
  3735. </div>
  3736. <div
  3737. :id="'tool-' + toolIndex"
  3738. :style="{
  3739. height:
  3740. isCloseList[toolIndex].isClose == 1
  3741. ? retrnToolHeight('tool-' + toolIndex)
  3742. : 'auto',
  3743. overflow:
  3744. isCloseList[toolIndex].isClose == 1
  3745. ? 'hidden'
  3746. : 'unset'
  3747. }"
  3748. class="worksDetailBox"
  3749. v-if="
  3750. worksStudent.length &&
  3751. worksStudent[toolIndex].length > 0
  3752. "
  3753. >
  3754. <div
  3755. class="works"
  3756. style="
  3757. width: 200px;
  3758. height: 140px;
  3759. margin: 10px 10px 10px 0;
  3760. border-radius: 15px;
  3761. box-shadow: 0 0 6px 1px #dfdada;
  3762. "
  3763. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3764. :key="wIndex"
  3765. :class="w.type == 1 ? 'isTypeOne' : ''"
  3766. >
  3767. <div class="workImg">
  3768. <!-- <img
  3769. :src="word2"
  3770. @click="downloadFile(w.works)"
  3771. v-if="w.type == 12"
  3772. alt
  3773. /> -->
  3774. <img
  3775. :src="word2"
  3776. @click="
  3777. openCocoFlow(w)
  3778. "
  3779. alt
  3780. />
  3781. <div
  3782. class="answerScore"
  3783. v-if="w.score"
  3784. @click.stop="openScore(w)"
  3785. :class="{
  3786. rightW:
  3787. w.userid == userid ||
  3788. tType == 1 ||
  3789. tType == 4 ||
  3790. w.ateacher == userid
  3791. }"
  3792. >
  3793. {{ JSON.parse(w.score).wScore }}分
  3794. </div>
  3795. <div
  3796. class="answerScore"
  3797. @click.stop="openScore(w)"
  3798. v-else-if="
  3799. courseDetail.userid == userid &&
  3800. courseDetail.state != 5 &&
  3801. chapInfoList[courseType].chapterInfo[0]
  3802. .taskJson[taskCount].eList &&
  3803. chapInfoList[courseType].chapterInfo[0]
  3804. .taskJson[taskCount].eList.length
  3805. "
  3806. :class="{
  3807. rightW:
  3808. w.userid == userid ||
  3809. tType == 1 ||
  3810. tType == 4 ||
  3811. w.ateacher == userid
  3812. }"
  3813. >
  3814. 评分
  3815. </div>
  3816. <img
  3817. class="deleteImg"
  3818. src="../../assets/deleteworks.png"
  3819. v-if="
  3820. w.userid == userid || tType == 1 || tType == 4
  3821. "
  3822. @click.stop="deleteWorks(w.wid)"
  3823. alt
  3824. />
  3825. </div>
  3826. <div class="comment" style="min-width: 200px">
  3827. <div class="worksName">
  3828. <div>{{ w.sName }}</div>
  3829. </div>
  3830. <div class="commentList">
  3831. <div class="commentList">
  3832. <div
  3833. class="commentImg"
  3834. @click="
  3835. isLikes(
  3836. w.wid,
  3837. userid,
  3838. 1,
  3839. null,
  3840. w.isLikes,
  3841. w.sName
  3842. )
  3843. "
  3844. >
  3845. <img
  3846. :src="w.isLikes == true ? likes : noLikes"
  3847. alt=""
  3848. />
  3849. </div>
  3850. <div>{{ w.likesCount }}</div>
  3851. </div>
  3852. <div class="commentList" style="margin-right: 15px">
  3853. <div
  3854. class="commentImg"
  3855. @click="commentOther(w, toolIndex, wIndex)"
  3856. >
  3857. <img
  3858. src="../../assets/icon/comment/comment.png"
  3859. alt=""
  3860. />
  3861. </div>
  3862. <div>{{ w.commentCount }}</div>
  3863. </div>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. </div>
  3868. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3869. 未提交
  3870. </div>
  3871. <div
  3872. class="noWorksS"
  3873. v-if="noWorksS && noWorksS[toolIndex].length"
  3874. >
  3875. <div
  3876. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3877. :key="sIndex"
  3878. class="noWorksName"
  3879. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3880. >
  3881. <el-tooltip
  3882. effect="dark"
  3883. :content="s.student"
  3884. placement="top"
  3885. >
  3886. <span>{{ s.student }}</span>
  3887. </el-tooltip>
  3888. </div>
  3889. </div>
  3890. </div>
  3891. <div
  3892. v-if="
  3893. tType &&
  3894. tType == 2 &&
  3895. !sIsOpen &&
  3896. tool.tool.indexOf(72) != -1
  3897. "
  3898. class="worksBox"
  3899. >
  3900. <div
  3901. class="zuoyeYulan"
  3902. v-if="workStudent[toolIndex].length > 0"
  3903. >
  3904. <span class="worksTitle">作业预览</span>
  3905. </div>
  3906. <div
  3907. class="worksDetailBox"
  3908. v-if="workStudent[toolIndex].length > 0"
  3909. >
  3910. <div
  3911. class="works"
  3912. style="
  3913. width: 200px;
  3914. height: 140px;
  3915. margin: 10px 10px 10px 0;
  3916. box-shadow: 0 0 6px 1px #dfdada;
  3917. "
  3918. v-for="(w, wIndex) in workStudent[toolIndex]"
  3919. :key="wIndex"
  3920. >
  3921. <div class="workImg">
  3922. <!-- <img
  3923. :src="word2"
  3924. @click="downloadFile(w.works)"
  3925. v-if="w.type == 12"
  3926. alt
  3927. /> -->
  3928. <img
  3929. :src="word2"
  3930. @click="
  3931. openCocoFlow(w)
  3932. "
  3933. alt
  3934. />
  3935. <div
  3936. class="answerScore"
  3937. v-if="w.score"
  3938. @click.stop="openScore(w)"
  3939. :class="{
  3940. rightW:
  3941. w.userid == userid || tType == 1 || tType == 4
  3942. }"
  3943. >
  3944. {{ JSON.parse(w.score).wScore }}分
  3945. </div>
  3946. <div
  3947. class="answerScore"
  3948. @click.stop="openScore(w)"
  3949. v-else-if="courseDetail.userid == userid"
  3950. :class="{
  3951. rightW:
  3952. w.userid == userid || tType == 1 || tType == 4
  3953. }"
  3954. >
  3955. 评分
  3956. </div>
  3957. <img
  3958. class="deleteImg"
  3959. src="../../assets/deleteworks.png"
  3960. v-if="
  3961. w.userid == userid || tType == 1 || tType == 4
  3962. "
  3963. @click.stop="deleteWorks(w.wid)"
  3964. alt
  3965. />
  3966. </div>
  3967. <div class="worksName">
  3968. <div>{{ w.sName }}</div>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. </div>
  3973. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3974. <div
  3975. class="zuoyeYulan"
  3976. v-if="
  3977. worksStudent.length &&
  3978. worksStudent[toolIndex].length > 0
  3979. "
  3980. >
  3981. <span class="worksTitle">作业预览</span>
  3982. <div
  3983. class="corOpen"
  3984. @click="contract(toolIndex)"
  3985. v-if="
  3986. (isCloseList[toolIndex].isCloseBoolean) &&
  3987. isCloseList[toolIndex].isClose == 0
  3988. "
  3989. >
  3990. 折叠
  3991. </div>
  3992. <div
  3993. class="corOpen"
  3994. @click="contract(toolIndex)"
  3995. v-if="isCloseList[toolIndex].isClose == 1"
  3996. >
  3997. 展开
  3998. </div>
  3999. </div>
  4000. <div
  4001. :id="'tool-' + toolIndex"
  4002. :style="{
  4003. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4004. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4005. }"
  4006. class="worksDetailBox"
  4007. v-if="
  4008. worksStudent.length &&
  4009. worksStudent[toolIndex].length > 0
  4010. "
  4011. >
  4012. <div
  4013. class="works"
  4014. style="
  4015. width: 200px;
  4016. height: 140px;
  4017. margin: 10px 10px 10px 0;
  4018. border-radius: 15px;
  4019. box-shadow: 0 0 6px 1px #dfdada;
  4020. "
  4021. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4022. :key="wIndex"
  4023. :class="w.type == 1 ? 'isTypeOne' : ''"
  4024. >
  4025. <div class="workImg" v-if="w.type == 0">
  4026. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4027. <img
  4028. :src="w.works"
  4029. @click="previewImg(w.works,w)"
  4030. alt
  4031. />
  4032. <div
  4033. class="answerScore"
  4034. v-if="w.score"
  4035. @click.stop="openScore(w)"
  4036. :class="{
  4037. rightW:
  4038. w.userid == userid ||
  4039. tType == 1 ||
  4040. tType == 4 ||
  4041. w.ateacher == userid,
  4042. }"
  4043. >
  4044. {{ JSON.parse(w.score).wScore }}分
  4045. </div>
  4046. <div
  4047. class="answerScore"
  4048. @click.stop="openScore(w)"
  4049. v-else-if="courseDetail.userid == userid"
  4050. :class="{
  4051. rightW:
  4052. w.userid == userid ||
  4053. tType == 1 ||
  4054. tType == 4 ||
  4055. w.ateacher == userid,
  4056. }"
  4057. >
  4058. 评分
  4059. </div>
  4060. <img
  4061. class="deleteImg"
  4062. src="../../assets/deleteworks.png"
  4063. v-if="
  4064. w.userid == userid || tType == 1 || tType == 4
  4065. "
  4066. @click.stop="deleteWorks(w.wid)"
  4067. alt
  4068. />
  4069. </div>
  4070. <div
  4071. class="workImg"
  4072. style="cursor: pointer"
  4073. v-if="w.type == 1"
  4074. >
  4075. <img :src="word" @click="openFile(w.works)" alt />
  4076. <!-- @click="openFile(w.works)" -->
  4077. <div
  4078. class="answerScore"
  4079. v-if="w.score"
  4080. @click.stop="openScore(w)"
  4081. :class="{
  4082. rightW:
  4083. w.userid == userid ||
  4084. tType == 1 ||
  4085. tType == 4 ||
  4086. w.ateacher == userid,
  4087. }"
  4088. >
  4089. {{ JSON.parse(w.score).wScore }}分
  4090. </div>
  4091. <div
  4092. class="answerScore"
  4093. @click.stop="openScore(w)"
  4094. v-else-if="courseDetail.userid == userid"
  4095. :class="{
  4096. rightW:
  4097. w.userid == userid ||
  4098. tType == 1 ||
  4099. tType == 4 ||
  4100. w.ateacher == userid,
  4101. }"
  4102. >
  4103. 评分
  4104. </div>
  4105. <img
  4106. class="deleteImg"
  4107. src="../../assets/deleteworks.png"
  4108. v-if="
  4109. w.userid == userid || tType == 1 || tType == 4
  4110. "
  4111. @click.stop="deleteWorks(w.wid)"
  4112. alt
  4113. />
  4114. </div>
  4115. <div class="workImg" v-if="w.type == 3">
  4116. <img
  4117. style="cursor: pointer"
  4118. :src="video"
  4119. @click="openVideo(w)"
  4120. alt
  4121. />
  4122. <!-- @click="openVideo(w.works)" -->
  4123. <div
  4124. class="answerScore"
  4125. v-if="w.score"
  4126. @click.stop="openScore(w)"
  4127. :class="{
  4128. rightW:
  4129. w.userid == userid ||
  4130. tType == 1 ||
  4131. tType == 4 ||
  4132. w.ateacher == userid,
  4133. }"
  4134. >
  4135. {{ JSON.parse(w.score).wScore }}分
  4136. </div>
  4137. <div
  4138. class="answerScore"
  4139. @click.stop="openScore(w)"
  4140. v-else-if="courseDetail.userid == userid"
  4141. :class="{
  4142. rightW:
  4143. w.userid == userid ||
  4144. tType == 1 ||
  4145. tType == 4 ||
  4146. w.ateacher == userid,
  4147. }"
  4148. >
  4149. 评分
  4150. </div>
  4151. <img
  4152. class="deleteImg"
  4153. src="../../assets/deleteworks.png"
  4154. v-if="
  4155. w.userid == userid || tType == 1 || tType == 4
  4156. "
  4157. @click.stop="deleteWorks(w.wid)"
  4158. alt
  4159. />
  4160. </div>
  4161. <div class="comment" style="min-width: 200px">
  4162. <div class="worksName">
  4163. <div
  4164. style="cursor: pointer"
  4165. @click="
  4166. openSname(w.sName, w.wid, toolIndex, w.userid)
  4167. "
  4168. >
  4169. {{ w.sName }}
  4170. </div>
  4171. </div>
  4172. <div class="commentList">
  4173. <div class="commentList">
  4174. <div
  4175. class="commentImg"
  4176. @click="
  4177. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4178. "
  4179. >
  4180. <img
  4181. :src="w.isLikes == true ? likes : noLikes"
  4182. alt=""
  4183. />
  4184. </div>
  4185. <div>{{ w.likesCount }}</div>
  4186. </div>
  4187. <div class="commentList" style="margin-right: 15px">
  4188. <div
  4189. class="commentImg"
  4190. @click="commentOther(w, toolIndex, wIndex)"
  4191. >
  4192. <img
  4193. src="../../assets/icon/comment/comment.png"
  4194. alt=""
  4195. />
  4196. </div>
  4197. <div>{{ w.commentCount }}</div>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4204. 未提交
  4205. </div>
  4206. <div
  4207. class="noWorksS"
  4208. v-if="noWorksS && noWorksS[toolIndex].length"
  4209. >
  4210. <div
  4211. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4212. :key="sIndex"
  4213. class="noWorksName"
  4214. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4215. >
  4216. <el-tooltip effect="dark" :content="s.student" placement="top">
  4217. <span>{{ s.student }}</span>
  4218. </el-tooltip>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(4) != -1 &&
  4229. (tool.askJson[0].answer ||
  4230. tool.askJson[0].answer === 0) &&
  4231. checkJson[toolIndex].length
  4232. "
  4233. class="xuan_right_box"
  4234. >
  4235. <div
  4236. class="tool_right_box"
  4237. v-for="(item, index) in tool.askJson"
  4238. :key="index"
  4239. >
  4240. <div style="width: calc(100% - 30px);">
  4241. <el-tooltip
  4242. effect="light"
  4243. :content="index + 1 + '、' + item.askstitle"
  4244. placement="top"
  4245. popper-class="text_tooltip"
  4246. >
  4247. <div
  4248. style="
  4249. width: calc(100% - 130px);
  4250. display: block;
  4251. white-space: nowrap;
  4252. overflow: hidden;
  4253. text-overflow: ellipsis;
  4254. word-break: break-word;
  4255. cursor: pointer;
  4256. "
  4257. >
  4258. {{ index + 1 + "、" + item.askstitle }}
  4259. </div>
  4260. </el-tooltip>
  4261. </div>
  4262. <div class="right_box_xuan">
  4263. <span>正确率</span>
  4264. <span>{{
  4265. (checkJson[toolIndex][index].right
  4266. ? checkJson[toolIndex][index].right
  4267. : 0) + "%"
  4268. }}</span>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div
  4273. class="xuan_right_box"
  4274. style="background: unset; padding: 0 10px"
  4275. v-if="
  4276. tType &&
  4277. ((tType == 2 && sIsOpen == true) ||
  4278. tType == 1 ||
  4279. tType == 4) &&
  4280. tool.tool.indexOf(4) != -1
  4281. "
  4282. >
  4283. <AskStatic
  4284. v-if="
  4285. worksStudent.length &&
  4286. worksStudent[toolIndex].length > 0
  4287. "
  4288. :askJSON="tool"
  4289. :checkJson="checkJson[toolIndex]"
  4290. ></AskStatic>
  4291. </div>
  4292. <div
  4293. v-if="
  4294. tType &&
  4295. ((tType == 2 && sIsOpen == true) ||
  4296. tType == 1 ||
  4297. tType == 4) &&
  4298. tool.tool.indexOf(4) != -1
  4299. "
  4300. class="worksBox"
  4301. >
  4302. <div
  4303. class="zuoyeYulan"
  4304. v-if="
  4305. worksStudent.length &&
  4306. worksStudent[toolIndex].length > 0
  4307. "
  4308. >
  4309. <div class="worksTop">
  4310. <div>作业预览</div>
  4311. <div
  4312. class="corOpen"
  4313. @click="contract(toolIndex)"
  4314. v-if="
  4315. (isCloseList[toolIndex].isCloseBoolean) &&
  4316. isCloseList[toolIndex].isClose == 0
  4317. "
  4318. >
  4319. 折叠
  4320. </div>
  4321. <div
  4322. class="corOpen"
  4323. @click="contract(toolIndex)"
  4324. v-if="isCloseList[toolIndex].isClose == 1"
  4325. >
  4326. 展开
  4327. </div>
  4328. </div>
  4329. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4330. </div>
  4331. <div>
  4332. <div
  4333. :id="'tool-' + toolIndex"
  4334. :style="{
  4335. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4336. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4337. }"
  4338. class="worksDetailBox"
  4339. v-if="
  4340. worksStudent.length &&
  4341. worksStudent[toolIndex].length > 0
  4342. "
  4343. >
  4344. <div
  4345. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4346. :key="wIndex"
  4347. class="isWorksName2"
  4348. @click="
  4349. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4350. "
  4351. >
  4352. {{ w.sName }}
  4353. <img
  4354. class="deleteImg deleteImg2"
  4355. src="../../assets/deleteworks.png"
  4356. v-if="
  4357. w.userid == userid || tType == 1 || tType == 4
  4358. "
  4359. @click.stop="deleteWorks(w.wid)"
  4360. alt
  4361. />
  4362. </div>
  4363. <!-- <div class="works" style="
  4364. width: 200px;
  4365. height: 140px;
  4366. border-radius: 10px;
  4367. box-shadow: 0 0 6px 1px #dfdada;
  4368. overflow: hidden;
  4369. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4370. <div class="workImg">
  4371. <img src="../../assets/icon/works/noImg.png" @click="
  4372. openTools(
  4373. 4,
  4374. toolIndex,
  4375. taskCount,
  4376. w.works,
  4377. w.sName
  4378. )
  4379. " alt />
  4380. </div>
  4381. <div class="worksName">
  4382. <div>{{ w.sName }}</div>
  4383. <div>{{ w.time }}</div>
  4384. </div>
  4385. </div> -->
  4386. </div>
  4387. </div>
  4388. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4389. 未提交
  4390. </div>
  4391. <div
  4392. class="noWorksS"
  4393. v-if="noWorksS && noWorksS[toolIndex].length"
  4394. >
  4395. <div
  4396. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4397. :key="sIndex"
  4398. class="noWorksName"
  4399. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4400. >
  4401. <el-tooltip effect="dark" :content="s.student" placement="top">
  4402. <span>{{ s.student }}</span>
  4403. </el-tooltip>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. <div
  4408. v-if="
  4409. tType &&
  4410. ((tType == 2 && sIsOpen == true) ||
  4411. tType == 1 ||
  4412. tType == 4) &&
  4413. tool.tool.indexOf(45) != -1 &&
  4414. (tool.testJson.testJson[0].answer ||
  4415. tool.testJson.testJson[0].answer === 0) &&
  4416. checkJson[toolIndex].length
  4417. "
  4418. class="xuan_right_box"
  4419. >
  4420. <div
  4421. class="tool_right_box"
  4422. v-for="(item, index) in tool.testJson.testJson"
  4423. :key="index"
  4424. >
  4425. <div class="right_box_xuan" style="margin-right: 10px">
  4426. <span>正确率</span>
  4427. <span>{{
  4428. (checkJson[toolIndex][index].right
  4429. ? checkJson[toolIndex][index].right
  4430. : 0) + "%"
  4431. }}</span>
  4432. </div>
  4433. <div style="width: calc(100% - 30px);">
  4434. <el-tooltip
  4435. effect="light"
  4436. :content="index + 1 + '、' + item.teststitle"
  4437. placement="top"
  4438. popper-class="text_tooltip"
  4439. >
  4440. <div
  4441. style="
  4442. width: calc(100% - 130px);
  4443. display: block;
  4444. white-space: nowrap;
  4445. overflow: hidden;
  4446. text-overflow: ellipsis;
  4447. word-break: break-word;
  4448. cursor: pointer;
  4449. "
  4450. >
  4451. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4452. </div>
  4453. </el-tooltip>
  4454. </div>
  4455. </div>
  4456. </div>
  4457. <div
  4458. class="xuan_right_box"
  4459. style="background: unset; padding: 0 10px; width: 91.5%"
  4460. v-if="
  4461. tType &&
  4462. ((tType == 2 && sIsOpen == true) ||
  4463. tType == 1 ||
  4464. tType == 4) &&
  4465. tool.tool.indexOf(45) != -1
  4466. "
  4467. >
  4468. <AskStatic2
  4469. v-if="
  4470. worksStudent.length &&
  4471. worksStudent[toolIndex].length > 0
  4472. "
  4473. :askJSON="tool"
  4474. :checkJson="checkJson[toolIndex]"
  4475. ></AskStatic2>
  4476. </div>
  4477. <div
  4478. v-if="
  4479. tType &&
  4480. ((tType == 2 && sIsOpen == true) ||
  4481. tType == 1 ||
  4482. tType == 4) &&
  4483. tool.tool.indexOf(45) != -1
  4484. "
  4485. class="worksBox"
  4486. >
  4487. <div
  4488. class="zuoyeYulan"
  4489. v-if="
  4490. worksStudent.length &&
  4491. worksStudent[toolIndex].length > 0
  4492. "
  4493. >
  4494. <div class="worksTop">
  4495. <div>作业预览</div>
  4496. <div
  4497. class="corOpen"
  4498. @click="contract(toolIndex)"
  4499. v-if="
  4500. (isCloseList[toolIndex].isCloseBoolean) &&
  4501. isCloseList[toolIndex].isClose == 0
  4502. "
  4503. >
  4504. 折叠
  4505. </div>
  4506. <div
  4507. class="corOpen"
  4508. @click="contract(toolIndex)"
  4509. v-if="isCloseList[toolIndex].isClose == 1"
  4510. >
  4511. 展开
  4512. </div>
  4513. </div>
  4514. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4515. </div>
  4516. <div>
  4517. <div
  4518. :id="'tool-' + toolIndex"
  4519. :style="{
  4520. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4521. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4522. }"
  4523. class="worksDetailBox"
  4524. v-if="
  4525. worksStudent.length &&
  4526. worksStudent[toolIndex].length > 0
  4527. "
  4528. >
  4529. <div
  4530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4531. :key="wIndex"
  4532. class="isWorksName2"
  4533. @click="
  4534. openTools(
  4535. 45,
  4536. toolIndex,
  4537. taskCount,
  4538. w.works,
  4539. w.sName
  4540. )
  4541. "
  4542. >
  4543. {{ w.sName }}
  4544. <img
  4545. class="deleteImg deleteImg2"
  4546. src="../../assets/deleteworks.png"
  4547. v-if="
  4548. w.userid == userid || tType == 1 || tType == 4
  4549. "
  4550. @click.stop="deleteWorks(w.wid)"
  4551. alt
  4552. />
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4557. 未提交
  4558. </div>
  4559. <div
  4560. class="noWorksS"
  4561. v-if="noWorksS && noWorksS[toolIndex].length"
  4562. >
  4563. <div
  4564. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4565. :key="sIndex"
  4566. class="noWorksName"
  4567. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4568. >
  4569. <el-tooltip effect="dark" :content="s.student" placement="top">
  4570. <span>{{ s.student }}</span>
  4571. </el-tooltip>
  4572. </div>
  4573. </div>
  4574. </div>
  4575. <div
  4576. v-if="
  4577. tType &&
  4578. ((tType == 2 && sIsOpen == true) ||
  4579. tType == 1 ||
  4580. tType == 4) &&
  4581. tool.tool.indexOf(69) != -1
  4582. "
  4583. class="worksBox"
  4584. >
  4585. <div
  4586. class="zuoyeYulan"
  4587. v-if="
  4588. worksStudent.length &&
  4589. worksStudent[toolIndex].length > 0
  4590. "
  4591. >
  4592. <div class="worksTop">
  4593. <div>作业预览</div>
  4594. <div
  4595. class="corOpen"
  4596. @click="contract(toolIndex)"
  4597. v-if="
  4598. (isCloseList[toolIndex].isCloseBoolean) &&
  4599. isCloseList[toolIndex].isClose == 0
  4600. "
  4601. >
  4602. 折叠
  4603. </div>
  4604. <div
  4605. class="corOpen"
  4606. @click="contract(toolIndex)"
  4607. v-if="isCloseList[toolIndex].isClose == 1"
  4608. >
  4609. 展开
  4610. </div>
  4611. </div>
  4612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4613. </div>
  4614. <div>
  4615. <div
  4616. :id="'tool-' + toolIndex"
  4617. :style="{
  4618. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4619. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4620. }"
  4621. class="worksDetailBox"
  4622. v-if="
  4623. worksStudent.length &&
  4624. worksStudent[toolIndex].length > 0
  4625. "
  4626. >
  4627. <div
  4628. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4629. :key="wIndex"
  4630. class="isWorksName2"
  4631. style="width: 160px;height: 65px;line-height: 65px;"
  4632. @click="
  4633. openTools(
  4634. 69,
  4635. toolIndex,
  4636. taskCount,
  4637. w.works,
  4638. w.sName,
  4639. w.wid
  4640. )
  4641. "
  4642. >
  4643. {{ w.sName }}
  4644. <img
  4645. class="deleteImg1"
  4646. src="../../assets/evaEnglish.png"
  4647. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4648. alt
  4649. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4650. />
  4651. <img
  4652. class="deleteImg deleteImg2"
  4653. src="../../assets/deleteworks.png"
  4654. v-if="
  4655. w.userid == userid || tType == 1 || tType == 4
  4656. "
  4657. @click.stop="deleteWorks(w.wid)"
  4658. alt
  4659. />
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4664. 未提交
  4665. </div>
  4666. <div
  4667. class="noWorksS"
  4668. v-if="noWorksS && noWorksS[toolIndex].length"
  4669. >
  4670. <div
  4671. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4672. :key="sIndex"
  4673. class="noWorksName"
  4674. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4675. >
  4676. <el-tooltip effect="dark" :content="s.student" placement="top">
  4677. <span>{{ s.student }}</span>
  4678. </el-tooltip>
  4679. </div>
  4680. </div>
  4681. </div>
  4682. <div
  4683. v-if="
  4684. tType &&
  4685. ((tType == 2 && sIsOpen == true) ||
  4686. tType == 1 ||
  4687. tType == 4) &&
  4688. tool.tool.indexOf(15) != -1
  4689. "
  4690. class="worksBox"
  4691. >
  4692. <div
  4693. class="zuoyeYulan"
  4694. v-if="
  4695. (worksStudent.length &&
  4696. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4697. "
  4698. >
  4699. <div class="worksTop">
  4700. <div>作业预览</div>
  4701. <div
  4702. class="corOpen"
  4703. @click="contract(toolIndex)"
  4704. v-if="
  4705. (isCloseList[toolIndex].isCloseBoolean) &&
  4706. isCloseList[toolIndex].isClose == 0
  4707. "
  4708. >
  4709. 折叠
  4710. </div>
  4711. <div
  4712. class="corOpen"
  4713. @click="contract(toolIndex)"
  4714. v-if="isCloseList[toolIndex].isClose == 1"
  4715. >
  4716. 展开
  4717. </div>
  4718. </div>
  4719. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4720. </div>
  4721. <div
  4722. class="group_workBox"
  4723. v-for="(g, gindex) in courseGroup.group"
  4724. :key="gindex"
  4725. >
  4726. <div class="group_box">
  4727. <div class="group_title">
  4728. <el-tooltip
  4729. class="item"
  4730. effect="light"
  4731. :content="g.name"
  4732. placement="top"
  4733. >
  4734. <div class="group_name">{{ g.name }}</div>
  4735. </el-tooltip>
  4736. </div>
  4737. <div
  4738. class="group_work"
  4739. v-if="
  4740. g.works &&
  4741. g.works.length &&
  4742. g.works[toolIndex].length
  4743. "
  4744. >
  4745. <div
  4746. class="works"
  4747. v-for="(w, wIndex) in g.works[toolIndex]"
  4748. :key="wIndex"
  4749. >
  4750. <div
  4751. class="workImg"
  4752. style="
  4753. border-radius: 15px;
  4754. box-shadow: 0px 0px 5px 5px #eee;
  4755. "
  4756. >
  4757. <div
  4758. class="answerBg"
  4759. style="border-radius: 15px 15px 0 0"
  4760. @click="
  4761. commentOther(w, toolIndex, wIndex, null, g.id)
  4762. "
  4763. >
  4764. <div class="answerContent">
  4765. {{ JSON.parse(w.works)[0].answer }}
  4766. </div>
  4767. <div
  4768. class="answerScore"
  4769. v-if="w.score"
  4770. @click.stop="openScore(w)"
  4771. :class="{
  4772. rightW:
  4773. w.userid == userid ||
  4774. tType == 1 ||
  4775. tType == 4,
  4776. }"
  4777. >
  4778. {{ JSON.parse(w.score).wScore }}分
  4779. </div>
  4780. <div
  4781. class="answerScore"
  4782. @click.stop="openScore(w)"
  4783. v-else-if="courseDetail.userid == userid"
  4784. :class="{
  4785. rightW:
  4786. w.userid == userid ||
  4787. tType == 1 ||
  4788. tType == 4,
  4789. }"
  4790. >
  4791. 评分
  4792. </div>
  4793. <img
  4794. class="deleteImg"
  4795. src="../../assets/deleteworks.png"
  4796. v-if="
  4797. w.userid == userid ||
  4798. tType == 1 ||
  4799. tType == 4
  4800. "
  4801. @click.stop="deleteWorks(w.wid)"
  4802. alt
  4803. />
  4804. </div>
  4805. <div class="comment">
  4806. <div class="worksName">
  4807. <div>{{ w.sName }}</div>
  4808. </div>
  4809. <div class="commentList">
  4810. <div
  4811. class="commentImg"
  4812. @click="
  4813. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4814. "
  4815. >
  4816. <img
  4817. :src="w.isLikes == true ? likes : noLikes"
  4818. alt=""
  4819. />
  4820. </div>
  4821. <div>{{ w.likesCount }}</div>
  4822. </div>
  4823. <div
  4824. class="commentList"
  4825. style="margin-right: 15px"
  4826. >
  4827. <div
  4828. class="commentImg"
  4829. @click="
  4830. commentOther(
  4831. w,
  4832. toolIndex,
  4833. wIndex,
  4834. null,
  4835. g.id
  4836. )
  4837. "
  4838. >
  4839. <img
  4840. src="../../assets/icon/comment/comment.png"
  4841. alt=""
  4842. />
  4843. </div>
  4844. <div>{{ w.commentCount }}</div>
  4845. </div>
  4846. </div>
  4847. </div>
  4848. </div>
  4849. </div>
  4850. <div class="group_work" v-else>暂无提交作业</div>
  4851. </div>
  4852. </div>
  4853. <div
  4854. :id="'tool-' + toolIndex"
  4855. :style="{
  4856. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4857. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4858. }"
  4859. class="worksDetailBox"
  4860. v-if="
  4861. worksStudent.length &&
  4862. worksStudent[toolIndex].length > 0
  4863. "
  4864. >
  4865. <div
  4866. class="works"
  4867. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4868. :key="wIndex"
  4869. >
  4870. <div
  4871. class="workImg"
  4872. style="
  4873. border-radius: 15px;
  4874. box-shadow: 0px 0px 5px 5px #eee;
  4875. "
  4876. >
  4877. <!-- <img
  4878. src="../../assets/icon/works/noImg.png"
  4879. @click="openTools(15, toolIndex, taskCount, w.works)"
  4880. alt=""
  4881. />-->
  4882. <div
  4883. class="answerBg"
  4884. style="border-radius: 15px 15px 0 0"
  4885. @click="commentOther(w, toolIndex, wIndex)"
  4886. >
  4887. <!-- <div>{{ w.sName }}</div> -->
  4888. <div class="answerContent">
  4889. {{ JSON.parse(w.works)[0].answer }}
  4890. </div>
  4891. <div
  4892. class="answerScore"
  4893. v-if="w.score"
  4894. @click.stop="openScore(w)"
  4895. :class="{
  4896. rightW:
  4897. w.userid == userid ||
  4898. tType == 1 ||
  4899. tType == 4,
  4900. }"
  4901. >
  4902. {{ JSON.parse(w.score).wScore }}分
  4903. </div>
  4904. <div
  4905. class="answerScore"
  4906. @click.stop="openScore(w)"
  4907. v-else-if="courseDetail.userid == userid"
  4908. :class="{
  4909. rightW:
  4910. w.userid == userid ||
  4911. tType == 1 ||
  4912. tType == 4,
  4913. }"
  4914. >
  4915. 评分
  4916. </div>
  4917. <img
  4918. class="deleteImg"
  4919. src="../../assets/deleteworks.png"
  4920. v-if="
  4921. w.userid == userid || tType == 1 || tType == 4
  4922. "
  4923. @click.stop="deleteWorks(w.wid)"
  4924. alt
  4925. />
  4926. </div>
  4927. <div class="comment">
  4928. <div class="worksName">
  4929. <div>{{ w.sName }}</div>
  4930. </div>
  4931. <div class="commentList">
  4932. <div
  4933. class="commentImg"
  4934. @click="
  4935. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4936. "
  4937. >
  4938. <img
  4939. :src="w.isLikes == true ? likes : noLikes"
  4940. alt=""
  4941. />
  4942. </div>
  4943. <div>{{ w.likesCount }}</div>
  4944. </div>
  4945. <div class="commentList" style="margin-right: 15px">
  4946. <div
  4947. class="commentImg"
  4948. @click="commentOther(w, toolIndex, wIndex)"
  4949. >
  4950. <img
  4951. src="../../assets/icon/comment/comment.png"
  4952. alt=""
  4953. />
  4954. </div>
  4955. <div>{{ w.commentCount }}</div>
  4956. </div>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. </div>
  4961. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4962. 未提交
  4963. </div>
  4964. <div
  4965. class="noWorksS"
  4966. v-if="noWorksS && noWorksS[toolIndex].length"
  4967. >
  4968. <div
  4969. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4970. :key="sIndex"
  4971. class="noWorksName"
  4972. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4973. >
  4974. <el-tooltip effect="dark" :content="s.student" placement="top">
  4975. <span>{{ s.student }}</span>
  4976. </el-tooltip>
  4977. </div>
  4978. </div>
  4979. </div>
  4980. <div
  4981. v-if="
  4982. tType &&
  4983. ((tType == 2 && sIsOpen == true) ||
  4984. tType == 1 ||
  4985. tType == 4) &&
  4986. tool.tool.indexOf(1) != -1
  4987. "
  4988. class="worksBox"
  4989. >
  4990. <div
  4991. class="zuoyeYulan"
  4992. v-if="
  4993. (worksStudent.length &&
  4994. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4995. "
  4996. >
  4997. <div class="worksTop">
  4998. <div>作业预览</div>
  4999. <div
  5000. class="corOpen"
  5001. @click="contract(toolIndex)"
  5002. v-if="
  5003. (isCloseList[toolIndex].isCloseBoolean) &&
  5004. isCloseList[toolIndex].isClose == 0
  5005. "
  5006. >
  5007. 折叠
  5008. </div>
  5009. <div
  5010. class="corOpen"
  5011. @click="contract(toolIndex)"
  5012. v-if="isCloseList[toolIndex].isClose == 1"
  5013. >
  5014. 展开
  5015. </div>
  5016. </div>
  5017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5018. </div>
  5019. <div
  5020. class="group_workBox"
  5021. v-for="(g, gindex) in courseGroup.group"
  5022. :key="gindex"
  5023. >
  5024. <div class="group_box">
  5025. <div class="group_title">
  5026. <el-tooltip
  5027. class="item"
  5028. effect="light"
  5029. :content="g.name"
  5030. placement="top"
  5031. >
  5032. <div class="group_name">{{ g.name }}</div>
  5033. </el-tooltip>
  5034. </div>
  5035. <div
  5036. class="group_work"
  5037. v-if="
  5038. g.works &&
  5039. g.works.length &&
  5040. g.works[toolIndex].length
  5041. "
  5042. >
  5043. <div
  5044. class="works"
  5045. style="
  5046. width: 200px;
  5047. height: 140px;
  5048. margin: 10px 10px 10px 0;
  5049. border-radius: 15px;
  5050. box-shadow: 0 0 6px 1px #dfdada;
  5051. "
  5052. v-for="(w, wIndex) in g.works[toolIndex]"
  5053. :key="wIndex"
  5054. :class="w.type == 1 ? 'isTypeOne' : ''"
  5055. >
  5056. <div class="workImg">
  5057. <img
  5058. :src="w.works"
  5059. @click="previewImg(w.works,w)"
  5060. alt
  5061. />
  5062. <div
  5063. class="answerScore"
  5064. v-if="w.score"
  5065. @click.stop="openScore(w)"
  5066. :class="{
  5067. rightW:
  5068. w.userid == userid ||
  5069. tType == 1 ||
  5070. tType == 4,
  5071. }"
  5072. >
  5073. {{ JSON.parse(w.score).wScore }}分
  5074. </div>
  5075. <div
  5076. class="answerScore"
  5077. @click.stop="openScore(w)"
  5078. v-else-if="courseDetail.userid == userid"
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid ||
  5082. tType == 1 ||
  5083. tType == 4,
  5084. }"
  5085. >
  5086. 评分
  5087. </div>
  5088. <img
  5089. class="deleteImg"
  5090. src="../../assets/deleteworks.png"
  5091. v-if="
  5092. w.userid == userid || tType == 1 || tType == 4
  5093. "
  5094. @click.stop="deleteWorks(w.wid)"
  5095. alt
  5096. />
  5097. </div>
  5098. <div class="comment" style="min-width: 200px">
  5099. <div class="worksName">
  5100. <div>{{ w.sName }}</div>
  5101. </div>
  5102. <div class="commentList">
  5103. <div class="commentList">
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5108. "
  5109. >
  5110. <img
  5111. :src="w.isLikes == true ? likes : noLikes"
  5112. alt=""
  5113. />
  5114. </div>
  5115. <div>{{ w.likesCount }}</div>
  5116. </div>
  5117. <div
  5118. class="commentList"
  5119. style="margin-right: 15px"
  5120. >
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. commentOther(
  5125. w,
  5126. toolIndex,
  5127. wIndex,
  5128. null,
  5129. g.id
  5130. )
  5131. "
  5132. >
  5133. <img
  5134. src="../../assets/icon/comment/comment.png"
  5135. alt=""
  5136. />
  5137. </div>
  5138. <div>{{ w.commentCount }}</div>
  5139. </div>
  5140. </div>
  5141. </div>
  5142. </div>
  5143. </div>
  5144. <div class="group_work" v-else>暂无提交作业</div>
  5145. </div>
  5146. </div>
  5147. <div
  5148. :id="'tool-' + toolIndex"
  5149. :style="{
  5150. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5151. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5152. }"
  5153. class="worksDetailBox"
  5154. v-if="
  5155. worksStudent.length &&
  5156. worksStudent[toolIndex].length > 0
  5157. "
  5158. >
  5159. <div
  5160. class="works"
  5161. style="
  5162. width: 200px;
  5163. height: 140px;
  5164. margin: 10px 10px 10px 0;
  5165. border-radius: 15px;
  5166. box-shadow: 0 0 6px 1px #dfdada;
  5167. "
  5168. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5169. :key="wIndex"
  5170. >
  5171. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5172. <div class="workImg">
  5173. <img
  5174. :src="w.works"
  5175. @click="previewImg(w.works,w)"
  5176. alt
  5177. />
  5178. <div
  5179. class="answerScore"
  5180. v-if="w.score"
  5181. @click.stop="openScore(w)"
  5182. :class="{
  5183. rightW:
  5184. w.userid == userid || tType == 1 || tType == 4,
  5185. }"
  5186. >
  5187. {{ JSON.parse(w.score).wScore }}分
  5188. </div>
  5189. <div
  5190. class="answerScore"
  5191. @click.stop="openScore(w)"
  5192. v-else-if="courseDetail.userid == userid"
  5193. :class="{
  5194. rightW:
  5195. w.userid == userid || tType == 1 || tType == 4,
  5196. }"
  5197. >
  5198. 评分
  5199. </div>
  5200. <img
  5201. class="deleteImg"
  5202. src="../../assets/deleteworks.png"
  5203. v-if="
  5204. w.userid == userid || tType == 1 || tType == 4
  5205. "
  5206. @click.stop="deleteWorks(w.wid)"
  5207. alt
  5208. />
  5209. </div>
  5210. <div class="comment" style="min-width: 200px">
  5211. <div class="worksName">
  5212. <div>{{ w.sName }}</div>
  5213. </div>
  5214. <div class="commentList">
  5215. <div class="commentList">
  5216. <div
  5217. class="commentImg"
  5218. @click="
  5219. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5220. "
  5221. >
  5222. <img
  5223. :src="w.isLikes == true ? likes : noLikes"
  5224. alt=""
  5225. />
  5226. </div>
  5227. <div>{{ w.likesCount }}</div>
  5228. </div>
  5229. <div class="commentList" style="margin-right: 15px">
  5230. <div
  5231. class="commentImg"
  5232. @click="commentOther(w, toolIndex, wIndex)"
  5233. >
  5234. <img
  5235. src="../../assets/icon/comment/comment.png"
  5236. alt=""
  5237. />
  5238. </div>
  5239. <div>{{ w.commentCount }}</div>
  5240. </div>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. </div>
  5245. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5246. 未提交
  5247. </div>
  5248. <div
  5249. class="noWorksS"
  5250. v-if="noWorksS && noWorksS[toolIndex].length"
  5251. >
  5252. <div
  5253. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5254. :key="sIndex"
  5255. class="noWorksName"
  5256. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5257. >
  5258. <el-tooltip effect="dark" :content="s.student" placement="top">
  5259. <span>{{ s.student }}</span>
  5260. </el-tooltip>
  5261. </div>
  5262. </div>
  5263. </div>
  5264. <div
  5265. v-if="
  5266. tType &&
  5267. ((tType == 2 && sIsOpen == true) ||
  5268. tType == 1 ||
  5269. tType == 4) &&
  5270. tool.tool.indexOf(3) != -1
  5271. "
  5272. class="worksBox"
  5273. >
  5274. <div
  5275. class="zuoyeYulan"
  5276. v-if="
  5277. (worksStudent.length &&
  5278. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5279. "
  5280. >
  5281. <div class="worksTop">
  5282. <div>作业预览</div>
  5283. <div
  5284. class="corOpen"
  5285. @click="contract(toolIndex)"
  5286. v-if="
  5287. (isCloseList[toolIndex].isCloseBoolean) &&
  5288. isCloseList[toolIndex].isClose == 0
  5289. "
  5290. >
  5291. 折叠
  5292. </div>
  5293. <div
  5294. class="corOpen"
  5295. @click="contract(toolIndex)"
  5296. v-if="isCloseList[toolIndex].isClose == 1"
  5297. >
  5298. 展开
  5299. </div>
  5300. </div>
  5301. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5302. </div>
  5303. <div
  5304. class="group_workBox"
  5305. v-for="(g, gindex) in courseGroup.group"
  5306. :key="gindex"
  5307. >
  5308. <div class="group_box">
  5309. <div class="group_title">
  5310. <el-tooltip
  5311. class="item"
  5312. effect="light"
  5313. :content="g.name"
  5314. placement="top"
  5315. >
  5316. <div class="group_name">{{ g.name }}</div>
  5317. </el-tooltip>
  5318. </div>
  5319. <div
  5320. class="group_work"
  5321. v-if="
  5322. g.works &&
  5323. g.works.length &&
  5324. g.works[toolIndex].length
  5325. "
  5326. >
  5327. <div
  5328. class="works"
  5329. style="
  5330. width: 200px;
  5331. height: 140px;
  5332. margin: 10px 10px 10px 0;
  5333. border-radius: 15px;
  5334. box-shadow: 0 0 6px 1px #dfdada;
  5335. "
  5336. v-for="(w, wIndex) in g.works[toolIndex]"
  5337. :key="wIndex"
  5338. :class="w.type == 1 ? 'isTypeOne' : ''"
  5339. >
  5340. <div class="workImg">
  5341. <img
  5342. :src="w.works"
  5343. @click="previewImg(w.works,w)"
  5344. alt
  5345. />
  5346. <div
  5347. class="answerScore"
  5348. v-if="w.score"
  5349. @click.stop="openScore(w)"
  5350. :class="{
  5351. rightW:
  5352. w.userid == userid ||
  5353. tType == 1 ||
  5354. tType == 4,
  5355. }"
  5356. >
  5357. {{ JSON.parse(w.score).wScore }}分
  5358. </div>
  5359. <div
  5360. class="answerScore"
  5361. @click.stop="openScore(w)"
  5362. v-else-if="courseDetail.userid == userid"
  5363. :class="{
  5364. rightW:
  5365. w.userid == userid ||
  5366. tType == 1 ||
  5367. tType == 4,
  5368. }"
  5369. >
  5370. 评分
  5371. </div>
  5372. <img
  5373. class="deleteImg"
  5374. src="../../assets/deleteworks.png"
  5375. v-if="
  5376. w.userid == userid || tType == 1 || tType == 4
  5377. "
  5378. @click.stop="deleteWorks(w.wid)"
  5379. alt
  5380. />
  5381. </div>
  5382. <div class="comment" style="min-width: 200px">
  5383. <div class="worksName">
  5384. <div>{{ w.sName }}</div>
  5385. </div>
  5386. <div class="commentList">
  5387. <div class="commentList">
  5388. <div
  5389. class="commentImg"
  5390. @click="
  5391. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5392. "
  5393. >
  5394. <img
  5395. :src="w.isLikes == true ? likes : noLikes"
  5396. alt=""
  5397. />
  5398. </div>
  5399. <div>{{ w.likesCount }}</div>
  5400. </div>
  5401. <div
  5402. class="commentList"
  5403. style="margin-right: 15px"
  5404. >
  5405. <div
  5406. class="commentImg"
  5407. @click="
  5408. commentOther(
  5409. w,
  5410. toolIndex,
  5411. wIndex,
  5412. null,
  5413. g.id
  5414. )
  5415. "
  5416. >
  5417. <img
  5418. src="../../assets/icon/comment/comment.png"
  5419. alt=""
  5420. />
  5421. </div>
  5422. <div>{{ w.commentCount }}</div>
  5423. </div>
  5424. </div>
  5425. </div>
  5426. </div>
  5427. </div>
  5428. <div class="group_work" v-else>暂无提交作业</div>
  5429. </div>
  5430. </div>
  5431. <div
  5432. :id="'tool-' + toolIndex"
  5433. :style="{
  5434. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5435. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5436. }"
  5437. class="worksDetailBox"
  5438. v-if="
  5439. worksStudent.length &&
  5440. worksStudent[toolIndex].length > 0
  5441. "
  5442. >
  5443. <div
  5444. class="works"
  5445. style="
  5446. width: 200px;
  5447. height: 140px;
  5448. margin: 10px 10px 10px 0;
  5449. border-radius: 15px;
  5450. box-shadow: 0 0 6px 1px #dfdada;
  5451. "
  5452. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5453. :key="wIndex"
  5454. >
  5455. <!-- @click="previewImg(w.works)" -->
  5456. <div class="workImg">
  5457. <img
  5458. :src="w.works"
  5459. @click="previewImg(w.works,w)"
  5460. alt
  5461. />
  5462. <div
  5463. class="answerScore"
  5464. v-if="w.score"
  5465. @click.stop="openScore(w)"
  5466. :class="{
  5467. rightW:
  5468. w.userid == userid || tType == 1 || tType == 4,
  5469. }"
  5470. >
  5471. {{ JSON.parse(w.score).wScore }}分
  5472. </div>
  5473. <div
  5474. class="answerScore"
  5475. @click.stop="openScore(w)"
  5476. v-else-if="courseDetail.userid == userid"
  5477. :class="{
  5478. rightW:
  5479. w.userid == userid || tType == 1 || tType == 4,
  5480. }"
  5481. >
  5482. 评分
  5483. </div>
  5484. <img
  5485. class="deleteImg"
  5486. src="../../assets/deleteworks.png"
  5487. v-if="
  5488. w.userid == userid || tType == 1 || tType == 4
  5489. "
  5490. @click.stop="deleteWorks(w.wid)"
  5491. alt
  5492. />
  5493. </div>
  5494. <div class="comment" style="min-width: 200px">
  5495. <div class="worksName">
  5496. <div>{{ w.sName }}</div>
  5497. </div>
  5498. <div class="commentList">
  5499. <div class="commentList">
  5500. <div
  5501. class="commentImg"
  5502. @click="
  5503. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5504. "
  5505. >
  5506. <img
  5507. :src="w.isLikes == true ? likes : noLikes"
  5508. alt=""
  5509. />
  5510. </div>
  5511. <div>{{ w.likesCount }}</div>
  5512. </div>
  5513. <div class="commentList" style="margin-right: 15px">
  5514. <div
  5515. class="commentImg"
  5516. @click="commentOther(w, toolIndex, wIndex)"
  5517. >
  5518. <img
  5519. src="../../assets/icon/comment/comment.png"
  5520. alt=""
  5521. />
  5522. </div>
  5523. <div>{{ w.commentCount }}</div>
  5524. </div>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. </div>
  5529. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5530. 未提交
  5531. </div>
  5532. <div
  5533. class="noWorksS"
  5534. v-if="noWorksS && noWorksS[toolIndex].length"
  5535. >
  5536. <div
  5537. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5538. :key="sIndex"
  5539. class="noWorksName"
  5540. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5541. >
  5542. <el-tooltip effect="dark" :content="s.student" placement="top">
  5543. <span>{{ s.student }}</span>
  5544. </el-tooltip>
  5545. </div>
  5546. </div>
  5547. </div>
  5548. <div
  5549. v-if="
  5550. tType &&
  5551. ((tType == 2 && sIsOpen == true) ||
  5552. tType == 1 ||
  5553. tType == 4) &&
  5554. tool.tool.indexOf(6) != -1
  5555. "
  5556. class="worksBox"
  5557. >
  5558. <div
  5559. class="zuoyeYulan"
  5560. v-if="
  5561. (worksStudent.length &&
  5562. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5563. "
  5564. >
  5565. <div class="worksTop">
  5566. <div>作业预览</div>
  5567. <div
  5568. class="corOpen"
  5569. @click="contract(toolIndex)"
  5570. v-if="
  5571. (isCloseList[toolIndex].isCloseBoolean) &&
  5572. isCloseList[toolIndex].isClose == 0
  5573. "
  5574. >
  5575. 折叠
  5576. </div>
  5577. <div
  5578. class="corOpen"
  5579. @click="contract(toolIndex)"
  5580. v-if="isCloseList[toolIndex].isClose == 1"
  5581. >
  5582. 展开
  5583. </div>
  5584. </div>
  5585. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5586. </div>
  5587. <div
  5588. class="group_workBox"
  5589. v-for="(g, gindex) in courseGroup.group"
  5590. :key="gindex"
  5591. >
  5592. <div class="group_box">
  5593. <div class="group_title">
  5594. <el-tooltip
  5595. class="item"
  5596. effect="light"
  5597. :content="g.name"
  5598. placement="top"
  5599. >
  5600. <div class="group_name">{{ g.name }}</div>
  5601. </el-tooltip>
  5602. </div>
  5603. <div
  5604. class="group_work"
  5605. v-if="
  5606. g.works &&
  5607. g.works.length &&
  5608. g.works[toolIndex].length
  5609. "
  5610. >
  5611. <div
  5612. class="works"
  5613. style="
  5614. width: 200px;
  5615. height: 140px;
  5616. margin: 10px 10px 10px 0;
  5617. border-radius: 15px;
  5618. box-shadow: 0 0 6px 1px #dfdada;
  5619. "
  5620. v-for="(w, wIndex) in g.works[toolIndex]"
  5621. :key="wIndex"
  5622. :class="w.type == 1 ? 'isTypeOne' : ''"
  5623. >
  5624. <div class="workImg">
  5625. <img
  5626. :src="w.works"
  5627. @click="previewImg(w.works,w)"
  5628. alt
  5629. />
  5630. <div
  5631. class="answerScore"
  5632. v-if="w.score"
  5633. @click.stop="openScore(w)"
  5634. :class="{
  5635. rightW:
  5636. w.userid == userid ||
  5637. tType == 1 ||
  5638. tType == 4,
  5639. }"
  5640. >
  5641. {{ JSON.parse(w.score).wScore }}分
  5642. </div>
  5643. <div
  5644. class="answerScore"
  5645. @click.stop="openScore(w)"
  5646. v-else-if="courseDetail.userid == userid"
  5647. :class="{
  5648. rightW:
  5649. w.userid == userid ||
  5650. tType == 1 ||
  5651. tType == 4,
  5652. }"
  5653. >
  5654. 评分
  5655. </div>
  5656. <img
  5657. class="deleteImg"
  5658. src="../../assets/deleteworks.png"
  5659. v-if="
  5660. w.userid == userid || tType == 1 || tType == 4
  5661. "
  5662. @click.stop="deleteWorks(w.wid)"
  5663. alt
  5664. />
  5665. </div>
  5666. <div class="comment" style="min-width: 200px">
  5667. <div class="worksName">
  5668. <div>{{ w.sName }}</div>
  5669. </div>
  5670. <div class="commentList">
  5671. <div class="commentList">
  5672. <div
  5673. class="commentImg"
  5674. @click="
  5675. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5676. "
  5677. >
  5678. <img
  5679. :src="w.isLikes == true ? likes : noLikes"
  5680. alt=""
  5681. />
  5682. </div>
  5683. <div>{{ w.likesCount }}</div>
  5684. </div>
  5685. <div
  5686. class="commentList"
  5687. style="margin-right: 15px"
  5688. >
  5689. <div
  5690. class="commentImg"
  5691. @click="
  5692. commentOther(
  5693. w,
  5694. toolIndex,
  5695. wIndex,
  5696. null,
  5697. g.id
  5698. )
  5699. "
  5700. >
  5701. <img
  5702. src="../../assets/icon/comment/comment.png"
  5703. alt=""
  5704. />
  5705. </div>
  5706. <div>{{ w.commentCount }}</div>
  5707. </div>
  5708. </div>
  5709. </div>
  5710. </div>
  5711. </div>
  5712. <div class="group_work" v-else>暂无提交作业</div>
  5713. </div>
  5714. </div>
  5715. <div
  5716. :id="'tool-' + toolIndex"
  5717. :style="{
  5718. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5719. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5720. }"
  5721. class="worksDetailBox"
  5722. v-if="
  5723. worksStudent.length &&
  5724. worksStudent[toolIndex].length > 0
  5725. "
  5726. >
  5727. <div
  5728. class="works"
  5729. style="
  5730. width: 200px;
  5731. height: 140px;
  5732. margin: 10px 10px 10px 0;
  5733. border-radius: 15px;
  5734. box-shadow: 0 0 6px 1px #dfdada;
  5735. "
  5736. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5737. :key="wIndex"
  5738. >
  5739. <!-- @click="previewImg(w.works)" -->
  5740. <div class="workImg">
  5741. <img
  5742. :src="w.works"
  5743. @click="previewImg(w.works,w)"
  5744. alt
  5745. />
  5746. <div
  5747. class="answerScore"
  5748. v-if="w.score"
  5749. @click.stop="openScore(w)"
  5750. :class="{
  5751. rightW:
  5752. w.userid == userid || tType == 1 || tType == 4,
  5753. }"
  5754. >
  5755. {{ JSON.parse(w.score).wScore }}分
  5756. </div>
  5757. <div
  5758. class="answerScore"
  5759. @click.stop="openScore(w)"
  5760. v-else-if="courseDetail.userid == userid"
  5761. :class="{
  5762. rightW:
  5763. w.userid == userid || tType == 1 || tType == 4,
  5764. }"
  5765. >
  5766. 评分
  5767. </div>
  5768. <img
  5769. class="deleteImg"
  5770. src="../../assets/deleteworks.png"
  5771. v-if="
  5772. w.userid == userid || tType == 1 || tType == 4
  5773. "
  5774. @click.stop="deleteWorks(w.wid)"
  5775. alt
  5776. />
  5777. </div>
  5778. <div class="comment" style="min-width: 200px">
  5779. <div class="worksName">
  5780. <div>{{ w.sName }}</div>
  5781. </div>
  5782. <div class="commentList">
  5783. <div class="commentList">
  5784. <div
  5785. class="commentImg"
  5786. @click="
  5787. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5788. "
  5789. >
  5790. <img
  5791. :src="w.isLikes == true ? likes : noLikes"
  5792. alt=""
  5793. />
  5794. </div>
  5795. <div>{{ w.likesCount }}</div>
  5796. </div>
  5797. <div class="commentList" style="margin-right: 15px">
  5798. <div
  5799. class="commentImg"
  5800. @click="commentOther(w, toolIndex, wIndex)"
  5801. >
  5802. <img
  5803. src="../../assets/icon/comment/comment.png"
  5804. alt=""
  5805. />
  5806. </div>
  5807. <div>{{ w.commentCount }}</div>
  5808. </div>
  5809. </div>
  5810. </div>
  5811. </div>
  5812. </div>
  5813. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5814. 未提交
  5815. </div>
  5816. <div
  5817. class="noWorksS"
  5818. v-if="noWorksS && noWorksS[toolIndex].length"
  5819. >
  5820. <div
  5821. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5822. :key="sIndex"
  5823. class="noWorksName"
  5824. >
  5825. <el-tooltip effect="dark" :content="s.student" placement="top">
  5826. <span>{{ s.student }}</span>
  5827. </el-tooltip>
  5828. </div>
  5829. </div>
  5830. </div>
  5831. <div
  5832. v-if="
  5833. tType &&
  5834. ((tType == 2 && sIsOpen == true) ||
  5835. tType == 1 ||
  5836. tType == 4) &&
  5837. tool.tool.indexOf(7) != -1
  5838. "
  5839. class="worksBox"
  5840. >
  5841. <div
  5842. class="zuoyeYulan"
  5843. v-if="
  5844. (worksStudent.length &&
  5845. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5846. "
  5847. >
  5848. <div class="worksTop">
  5849. <div>作业预览</div>
  5850. <div
  5851. class="corOpen"
  5852. @click="contract(toolIndex)"
  5853. v-if="
  5854. (isCloseList[toolIndex].isCloseBoolean) &&
  5855. isCloseList[toolIndex].isClose == 0
  5856. "
  5857. >
  5858. 折叠
  5859. </div>
  5860. <div
  5861. class="corOpen"
  5862. @click="contract(toolIndex)"
  5863. v-if="isCloseList[toolIndex].isClose == 1"
  5864. >
  5865. 展开
  5866. </div>
  5867. </div>
  5868. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5869. </div>
  5870. <div
  5871. class="group_workBox"
  5872. v-for="(g, gindex) in courseGroup.group"
  5873. :key="gindex"
  5874. >
  5875. <div class="group_box">
  5876. <div class="group_title">
  5877. <el-tooltip
  5878. class="item"
  5879. effect="light"
  5880. :content="g.name"
  5881. placement="top"
  5882. >
  5883. <div class="group_name">{{ g.name }}</div>
  5884. </el-tooltip>
  5885. </div>
  5886. <div
  5887. class="group_work"
  5888. v-if="
  5889. g.works &&
  5890. g.works.length &&
  5891. g.works[toolIndex].length
  5892. "
  5893. >
  5894. <div
  5895. class="works"
  5896. style="
  5897. width: 200px;
  5898. height: 140px;
  5899. margin: 10px 10px 10px 0;
  5900. border-radius: 15px;
  5901. box-shadow: 0 0 6px 1px #dfdada;
  5902. "
  5903. v-for="(w, wIndex) in g.works[toolIndex]"
  5904. :key="wIndex"
  5905. :class="w.type == 1 ? 'isTypeOne' : ''"
  5906. >
  5907. <div class="workImg">
  5908. <img
  5909. :src="w.works"
  5910. @click="previewImg(w.works,w)"
  5911. alt
  5912. />
  5913. <div
  5914. class="answerScore"
  5915. v-if="w.score"
  5916. @click.stop="openScore(w)"
  5917. :class="{
  5918. rightW:
  5919. w.userid == userid ||
  5920. tType == 1 ||
  5921. tType == 4,
  5922. }"
  5923. >
  5924. {{ JSON.parse(w.score).wScore }}分
  5925. </div>
  5926. <div
  5927. class="answerScore"
  5928. @click.stop="openScore(w)"
  5929. v-else-if="courseDetail.userid == userid"
  5930. :class="{
  5931. rightW:
  5932. w.userid == userid ||
  5933. tType == 1 ||
  5934. tType == 4,
  5935. }"
  5936. >
  5937. 评分
  5938. </div>
  5939. <img
  5940. class="deleteImg"
  5941. src="../../assets/deleteworks.png"
  5942. v-if="
  5943. w.userid == userid || tType == 1 || tType == 4
  5944. "
  5945. @click.stop="deleteWorks(w.wid)"
  5946. alt
  5947. />
  5948. </div>
  5949. <div class="comment" style="min-width: 200px">
  5950. <div class="worksName">
  5951. <div>{{ w.sName }}</div>
  5952. </div>
  5953. <div class="commentList">
  5954. <div class="commentList">
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5959. "
  5960. >
  5961. <img
  5962. :src="w.isLikes == true ? likes : noLikes"
  5963. alt=""
  5964. />
  5965. </div>
  5966. <div>{{ w.likesCount }}</div>
  5967. </div>
  5968. <div
  5969. class="commentList"
  5970. style="margin-right: 15px"
  5971. >
  5972. <div
  5973. class="commentImg"
  5974. @click="
  5975. commentOther(
  5976. w,
  5977. toolIndex,
  5978. wIndex,
  5979. null,
  5980. g.id
  5981. )
  5982. "
  5983. >
  5984. <img
  5985. src="../../assets/icon/comment/comment.png"
  5986. alt=""
  5987. />
  5988. </div>
  5989. <div>{{ w.commentCount }}</div>
  5990. </div>
  5991. </div>
  5992. </div>
  5993. </div>
  5994. </div>
  5995. <div class="group_work" v-else>暂无提交作业</div>
  5996. </div>
  5997. </div>
  5998. <div
  5999. :id="'tool-' + toolIndex"
  6000. :style="{
  6001. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6002. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6003. }"
  6004. class="worksDetailBox"
  6005. v-if="
  6006. worksStudent.length &&
  6007. worksStudent[toolIndex].length > 0
  6008. "
  6009. >
  6010. <div
  6011. class="works"
  6012. style="
  6013. width: 200px;
  6014. height: 140px;
  6015. margin: 10px 10px 10px 0;
  6016. border-radius: 15px;
  6017. box-shadow: 0 0 6px 1px #dfdada;
  6018. "
  6019. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6020. :key="wIndex"
  6021. >
  6022. <!-- @click="previewImg(w.works)" -->
  6023. <div class="workImg">
  6024. <img
  6025. :src="w.works"
  6026. @click="previewImg(w.works,w)"
  6027. alt
  6028. />
  6029. <div
  6030. class="answerScore"
  6031. v-if="w.score"
  6032. @click.stop="openScore(w)"
  6033. :class="{
  6034. rightW:
  6035. w.userid == userid || tType == 1 || tType == 4,
  6036. }"
  6037. >
  6038. {{ JSON.parse(w.score).wScore }}分
  6039. </div>
  6040. <div
  6041. class="answerScore"
  6042. @click.stop="openScore(w)"
  6043. v-else-if="courseDetail.userid == userid"
  6044. :class="{
  6045. rightW:
  6046. w.userid == userid || tType == 1 || tType == 4,
  6047. }"
  6048. >
  6049. 评分
  6050. </div>
  6051. <img
  6052. class="deleteImg"
  6053. src="../../assets/deleteworks.png"
  6054. v-if="
  6055. w.userid == userid || tType == 1 || tType == 4
  6056. "
  6057. @click.stop="deleteWorks(w.wid)"
  6058. alt
  6059. />
  6060. </div>
  6061. <div class="comment" style="min-width: 200px">
  6062. <div class="worksName">
  6063. <div>{{ w.sName }}</div>
  6064. </div>
  6065. <div class="commentList">
  6066. <div class="commentList">
  6067. <div
  6068. class="commentImg"
  6069. @click="
  6070. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6071. "
  6072. >
  6073. <img
  6074. :src="w.isLikes == true ? likes : noLikes"
  6075. alt=""
  6076. />
  6077. </div>
  6078. <div>{{ w.likesCount }}</div>
  6079. </div>
  6080. <div class="commentList" style="margin-right: 15px">
  6081. <div
  6082. class="commentImg"
  6083. @click="commentOther(w, toolIndex, wIndex)"
  6084. >
  6085. <img
  6086. src="../../assets/icon/comment/comment.png"
  6087. alt=""
  6088. />
  6089. </div>
  6090. <div>{{ w.commentCount }}</div>
  6091. </div>
  6092. </div>
  6093. </div>
  6094. </div>
  6095. </div>
  6096. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6097. 未提交
  6098. </div>
  6099. <div
  6100. class="noWorksS"
  6101. v-if="noWorksS && noWorksS[toolIndex].length"
  6102. >
  6103. <div
  6104. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6105. :key="sIndex"
  6106. class="noWorksName"
  6107. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6108. >
  6109. <el-tooltip effect="dark" :content="s.student" placement="top">
  6110. <span>{{ s.student }}</span>
  6111. </el-tooltip>
  6112. </div>
  6113. </div>
  6114. </div>
  6115. <div
  6116. v-if="
  6117. tType &&
  6118. ((tType == 2 && sIsOpen == true) ||
  6119. tType == 1 ||
  6120. tType == 4) &&
  6121. tool.tool.indexOf(26) != -1
  6122. "
  6123. class="worksBox"
  6124. >
  6125. <div
  6126. class="zuoyeYulan"
  6127. v-if="
  6128. worksStudent.length &&
  6129. worksStudent[toolIndex].length > 0
  6130. "
  6131. >
  6132. <div class="worksTop">
  6133. <div>作业预览</div>
  6134. <div
  6135. class="corOpen"
  6136. @click="contract(toolIndex)"
  6137. v-if="
  6138. (isCloseList[toolIndex].isCloseBoolean) &&
  6139. isCloseList[toolIndex].isClose == 0
  6140. "
  6141. >
  6142. 折叠
  6143. </div>
  6144. <div
  6145. class="corOpen"
  6146. @click="contract(toolIndex)"
  6147. v-if="isCloseList[toolIndex].isClose == 1"
  6148. >
  6149. 展开
  6150. </div>
  6151. </div>
  6152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6153. </div>
  6154. <div
  6155. :id="'tool-' + toolIndex"
  6156. :style="{
  6157. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6158. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6159. }"
  6160. class="worksDetailBox"
  6161. v-if="
  6162. worksStudent.length &&
  6163. worksStudent[toolIndex].length > 0
  6164. "
  6165. >
  6166. <div
  6167. class="works"
  6168. style="width: 240px; height: 140px; overflow: hidden"
  6169. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6170. :key="wIndex"
  6171. :class="w.type == 1 ? 'isTypeOne' : ''"
  6172. >
  6173. <div class="workImg" v-if="w.type == 0">
  6174. <img
  6175. :src="w.works"
  6176. @click="previewImg(w.works,w)"
  6177. alt
  6178. />
  6179. <img
  6180. class="deleteImg"
  6181. src="../../assets/deleteworks.png"
  6182. v-if="
  6183. w.userid == userid || tType == 1 || tType == 4
  6184. "
  6185. @click.stop="deleteWorks(w.wid)"
  6186. alt
  6187. />
  6188. </div>
  6189. <div class="workImg" v-if="w.type == 1">
  6190. <img :src="word" @click="openFile(w.works)" alt />
  6191. <img
  6192. class="deleteImg"
  6193. src="../../assets/deleteworks.png"
  6194. v-if="
  6195. w.userid == userid || tType == 1 || tType == 4
  6196. "
  6197. @click.stop="deleteWorks(w.wid)"
  6198. alt
  6199. />
  6200. </div>
  6201. <div class="worksName">
  6202. <div>{{ w.sName }}</div>
  6203. </div>
  6204. </div>
  6205. </div>
  6206. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6207. 未提交
  6208. </div>
  6209. <div
  6210. class="noWorksS"
  6211. v-if="noWorksS && noWorksS[toolIndex].length"
  6212. >
  6213. <div
  6214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6215. :key="sIndex"
  6216. class="noWorksName"
  6217. >
  6218. <el-tooltip effect="dark" :content="s.student" placement="top">
  6219. <span>{{ s.student }}</span>
  6220. </el-tooltip>
  6221. </div>
  6222. </div>
  6223. </div>
  6224. <div
  6225. v-if="
  6226. tType &&
  6227. ((tType == 2 && sIsOpen == true) ||
  6228. tType == 1 ||
  6229. tType == 4) &&
  6230. tool.tool.indexOf(40) != -1
  6231. "
  6232. class="worksBox"
  6233. >
  6234. <div
  6235. class="zuoyeYulan"
  6236. v-if="
  6237. worksStudent.length &&
  6238. worksStudent[toolIndex].length > 0
  6239. "
  6240. >
  6241. <div class="worksTop">
  6242. <div>作业预览</div>
  6243. <div
  6244. class="corOpen"
  6245. @click="contract(toolIndex)"
  6246. v-if="
  6247. (isCloseList[toolIndex].isCloseBoolean) &&
  6248. isCloseList[toolIndex].isClose == 0
  6249. "
  6250. >
  6251. 折叠
  6252. </div>
  6253. <div
  6254. class="corOpen"
  6255. @click="contract(toolIndex)"
  6256. v-if="isCloseList[toolIndex].isClose == 1"
  6257. >
  6258. 展开
  6259. </div>
  6260. </div>
  6261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6262. </div>
  6263. <div
  6264. :id="'tool-' + toolIndex"
  6265. :style="{
  6266. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6267. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6268. }"
  6269. class="worksDetailBox"
  6270. v-if="
  6271. worksStudent.length &&
  6272. worksStudent[toolIndex].length > 0
  6273. "
  6274. >
  6275. <div
  6276. class="works"
  6277. style="
  6278. width: 200px;
  6279. height: 140px;
  6280. margin: 10px 10px 10px 0;
  6281. border-radius: 15px;
  6282. box-shadow: 0 0 6px 1px #dfdada;
  6283. "
  6284. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6285. :key="wIndex"
  6286. :class="w.type == 1 ? 'isTypeOne' : ''"
  6287. >
  6288. <div class="workImg">
  6289. <img
  6290. src="../../assets/icon/works/noImg.png"
  6291. @click="openPj(w.works, toolIndex)"
  6292. alt
  6293. />
  6294. <img
  6295. class="deleteImg"
  6296. src="../../assets/deleteworks.png"
  6297. v-if="
  6298. w.userid == userid || tType == 1 || tType == 4
  6299. "
  6300. @click.stop="deleteWorks(w.wid)"
  6301. alt
  6302. />
  6303. </div>
  6304. <div class="comment" style="min-width: 200px">
  6305. <div class="worksName">
  6306. <div>{{ w.sName }}</div>
  6307. </div>
  6308. <div class="commentList">
  6309. <div class="commentList">
  6310. <div
  6311. class="commentImg"
  6312. @click="
  6313. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6314. "
  6315. >
  6316. <img
  6317. :src="w.isLikes == true ? likes : noLikes"
  6318. alt=""
  6319. />
  6320. </div>
  6321. <div>{{ w.likesCount }}</div>
  6322. </div>
  6323. <div class="commentList" style="margin-right: 15px">
  6324. <div
  6325. class="commentImg"
  6326. @click="commentOther(w, toolIndex, wIndex)"
  6327. >
  6328. <img
  6329. src="../../assets/icon/comment/comment.png"
  6330. alt=""
  6331. />
  6332. </div>
  6333. <div>{{ w.commentCount }}</div>
  6334. </div>
  6335. </div>
  6336. </div>
  6337. </div>
  6338. </div>
  6339. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6340. 未提交
  6341. </div>
  6342. <div
  6343. class="noWorksS"
  6344. v-if="noWorksS && noWorksS[toolIndex].length"
  6345. >
  6346. <div
  6347. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6348. :key="sIndex"
  6349. class="noWorksName"
  6350. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6351. >
  6352. <el-tooltip effect="dark" :content="s.student" placement="top">
  6353. <span>{{ s.student }}</span>
  6354. </el-tooltip>
  6355. </div>
  6356. </div>
  6357. </div>
  6358. <div
  6359. v-if="
  6360. tType &&
  6361. tType == 2 &&
  6362. !sIsOpen &&
  6363. tool.tool.indexOf(40) != -1
  6364. "
  6365. class="worksBox"
  6366. >
  6367. <div
  6368. class="zuoyeYulan"
  6369. v-if="workStudent[toolIndex].length > 0"
  6370. >
  6371. <span class="worksTitle">作业预览</span>
  6372. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6373. </div>
  6374. <div
  6375. class="worksDetailBox"
  6376. v-if="workStudent[toolIndex].length > 0"
  6377. >
  6378. <div
  6379. class="works"
  6380. style="
  6381. width: 200px;
  6382. height: 140px;
  6383. margin: 10px 10px 10px 0;
  6384. "
  6385. v-for="(w, wIndex) in workStudent[toolIndex]"
  6386. :key="wIndex"
  6387. >
  6388. <div class="workImg">
  6389. <img
  6390. src="../../assets/icon/works/noImg.png"
  6391. @click="openPj(w.works, toolIndex)"
  6392. alt
  6393. />
  6394. <img
  6395. class="deleteImg"
  6396. src="../../assets/deleteworks.png"
  6397. v-if="
  6398. w.userid == userid || tType == 1 || tType == 4
  6399. "
  6400. @click.stop="deleteWorks(w.wid)"
  6401. alt
  6402. />
  6403. </div>
  6404. <div class="worksName">
  6405. <div>{{ w.sName }}</div>
  6406. </div>
  6407. </div>
  6408. </div>
  6409. </div>
  6410. <div
  6411. v-if="
  6412. tType &&
  6413. ((tType == 2 && sIsOpen == true) ||
  6414. tType == 1 ||
  6415. tType == 4) &&
  6416. tool.tool.indexOf(41) != -1
  6417. "
  6418. >
  6419. <AnswerData2
  6420. v-if="
  6421. worksStudent.length &&
  6422. worksStudent[toolIndex].length > 0
  6423. "
  6424. :problemJson="tool.selectJson.answer"
  6425. :people="worksStudent[toolIndex]"
  6426. ></AnswerData2>
  6427. </div>
  6428. <div
  6429. v-if="
  6430. tType &&
  6431. ((tType == 2 && sIsOpen == true) ||
  6432. tType == 1 ||
  6433. tType == 4) &&
  6434. tool.tool.indexOf(41) != -1
  6435. "
  6436. class="worksBox"
  6437. >
  6438. <div
  6439. class="zuoyeYulan"
  6440. v-if="
  6441. worksStudent.length &&
  6442. worksStudent[toolIndex].length > 0
  6443. "
  6444. >
  6445. <div class="worksTop">
  6446. <div>作业预览</div>
  6447. <div
  6448. class="corOpen"
  6449. @click="contract(toolIndex)"
  6450. v-if="
  6451. (isCloseList[toolIndex].isCloseBoolean) &&
  6452. isCloseList[toolIndex].isClose == 0
  6453. "
  6454. >
  6455. 折叠
  6456. </div>
  6457. <div
  6458. class="corOpen"
  6459. @click="contract(toolIndex)"
  6460. v-if="isCloseList[toolIndex].isClose == 1"
  6461. >
  6462. 展开
  6463. </div>
  6464. </div>
  6465. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6466. </div>
  6467. <div
  6468. :id="'tool-' + toolIndex"
  6469. :style="{
  6470. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6471. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6472. }"
  6473. class="worksDetailBox"
  6474. v-if="
  6475. worksStudent.length &&
  6476. worksStudent[toolIndex].length > 0
  6477. "
  6478. >
  6479. <div
  6480. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6481. :key="wIndex"
  6482. class="isWorksName2"
  6483. @click="openXz(w, toolIndex)"
  6484. >
  6485. {{ w.sName }}
  6486. <img
  6487. class="deleteImg deleteImg2"
  6488. src="../../assets/deleteworks.png"
  6489. v-if="w.userid == userid || tType == 1 || tType == 4"
  6490. @click.stop="deleteWorks(w.wid)"
  6491. alt
  6492. />
  6493. </div>
  6494. <!-- <div
  6495. class="works"
  6496. style="
  6497. width: 200px;
  6498. height: 140px;
  6499. margin: 10px 10px 10px 0;
  6500. border-radius: 15px;
  6501. box-shadow: 0 0 6px 1px #dfdada;
  6502. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6503. :class="w.type == 5 ? 'isTypeOne' : ''">
  6504. <div class="workImg">
  6505. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6506. </div>
  6507. <div class="worksName">
  6508. <div>{{ w.sName }}</div>
  6509. </div>
  6510. </div> -->
  6511. </div>
  6512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6513. 未提交
  6514. </div>
  6515. <div
  6516. class="noWorksS"
  6517. v-if="noWorksS && noWorksS[toolIndex].length"
  6518. >
  6519. <div
  6520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6521. :key="sIndex"
  6522. class="noWorksName"
  6523. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6524. >
  6525. <el-tooltip effect="dark" :content="s.student" placement="top">
  6526. <span>{{ s.student }}</span>
  6527. </el-tooltip>
  6528. </div>
  6529. </div>
  6530. </div>
  6531. <div
  6532. v-if="
  6533. tType &&
  6534. tType == 2 &&
  6535. !sIsOpen &&
  6536. tool.tool.indexOf(41) != -1
  6537. "
  6538. class="worksBox"
  6539. >
  6540. <div
  6541. class="zuoyeYulan"
  6542. v-if="workStudent[toolIndex].length > 0"
  6543. >
  6544. <span class="worksTitle">作业预览</span>
  6545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6546. </div>
  6547. <div
  6548. class="worksDetailBox"
  6549. v-if="workStudent[toolIndex].length > 0"
  6550. >
  6551. <div
  6552. class="works"
  6553. style="
  6554. width: 200px;
  6555. height: 140px;
  6556. margin: 10px 10px 10px 0;
  6557. "
  6558. v-for="(w, wIndex) in workStudent[toolIndex]"
  6559. :key="wIndex"
  6560. >
  6561. <div class="workImg">
  6562. <img
  6563. src="../../assets/icon/works/noImg.png"
  6564. @click="openXz(w, toolIndex)"
  6565. alt
  6566. />
  6567. <img
  6568. class="deleteImg"
  6569. src="../../assets/deleteworks.png"
  6570. v-if="
  6571. w.userid == userid || tType == 1 || tType == 4
  6572. "
  6573. @click.stop="deleteWorks(w.wid)"
  6574. alt
  6575. />
  6576. </div>
  6577. <div class="worksName">
  6578. <div>{{ w.sName }}</div>
  6579. </div>
  6580. </div>
  6581. </div>
  6582. </div>
  6583. <div v-if="false" class="xuan_right_box">
  6584. <div
  6585. class="tool_right_box"
  6586. v-for="(item, index) in tool.sentenceList"
  6587. :key="index"
  6588. >
  6589. <div>
  6590. <span
  6591. style="word-break: break-all; white-space: normal"
  6592. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6593. >
  6594. </div>
  6595. <div class="right_box_xuan">
  6596. <span>正确率</span>
  6597. <span>{{
  6598. (checkJson[toolIndex][index].right
  6599. ? checkJson[toolIndex][index].right
  6600. : 0) + "%"
  6601. }}</span>
  6602. </div>
  6603. <div class="right_box_xuan">
  6604. <span>答对人数</span>
  6605. <span>{{
  6606. checkJson[toolIndex][index].rightPerson.length
  6607. }}</span>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. <div
  6612. v-if="
  6613. tType &&
  6614. ((tType == 2 && sIsOpen == true) ||
  6615. tType == 1 ||
  6616. tType == 4) &&
  6617. tool.tool.indexOf(47) != -1
  6618. "
  6619. >
  6620. <AnswerData
  6621. v-if="
  6622. checkJson[toolIndex].length &&
  6623. (tool.sentenceList || tool.sentenceList.length > 0)
  6624. "
  6625. :people="checkJson[toolIndex]"
  6626. ></AnswerData>
  6627. </div>
  6628. <div
  6629. v-if="
  6630. tType &&
  6631. tType == 2 &&
  6632. !sIsOpen &&
  6633. tool.tool.indexOf(47) != -1
  6634. "
  6635. class="worksBox"
  6636. >
  6637. <div
  6638. class="zuoyeYulan"
  6639. v-if="workStudent[toolIndex].length > 0"
  6640. >
  6641. <span class="worksTitle">作业预览</span>
  6642. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6643. </div>
  6644. <div
  6645. class="worksDetailBox"
  6646. v-if="workStudent[toolIndex].length > 0"
  6647. >
  6648. <div
  6649. class="works"
  6650. style="
  6651. width: 200px;
  6652. height: 140px;
  6653. margin: 10px 10px 10px 0;
  6654. "
  6655. v-for="(w, wIndex) in workStudent[toolIndex]"
  6656. :key="wIndex"
  6657. >
  6658. <!-- @click="openXz(w, toolIndex)" -->
  6659. <div class="workImg" @click="openSen(w, toolIndex)">
  6660. <img src="../../assets/icon/works/noImg.png" alt />
  6661. <img
  6662. class="deleteImg"
  6663. src="../../assets/deleteworks.png"
  6664. v-if="
  6665. w.userid == userid || tType == 1 || tType == 4
  6666. "
  6667. @click.stop="deleteWorks(w.wid)"
  6668. alt
  6669. />
  6670. </div>
  6671. <div class="worksName">
  6672. <div>
  6673. {{ w.sName }}
  6674. </div>
  6675. </div>
  6676. </div>
  6677. </div>
  6678. </div>
  6679. <div
  6680. v-if="
  6681. tType &&
  6682. ((tType == 2 && sIsOpen == true) ||
  6683. tType == 1 ||
  6684. tType == 4) &&
  6685. tool.tool.indexOf(47) != -1
  6686. "
  6687. class="worksBox"
  6688. >
  6689. <div
  6690. class="zuoyeYulan"
  6691. v-if="
  6692. worksStudent.length &&
  6693. worksStudent[toolIndex].length > 0
  6694. "
  6695. >
  6696. <div class="worksTop">
  6697. <div>作业预览</div>
  6698. <div
  6699. class="corOpen"
  6700. @click="contract(toolIndex)"
  6701. v-if="
  6702. (isCloseList[toolIndex].isCloseBoolean) &&
  6703. isCloseList[toolIndex].isClose == 0
  6704. "
  6705. >
  6706. 折叠
  6707. </div>
  6708. <div
  6709. class="corOpen"
  6710. @click="contract(toolIndex)"
  6711. v-if="isCloseList[toolIndex].isClose == 1"
  6712. >
  6713. 展开
  6714. </div>
  6715. </div>
  6716. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6717. </div>
  6718. <div
  6719. :id="'tool-' + toolIndex"
  6720. :style="{
  6721. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6722. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6723. }"
  6724. class="worksDetailBox"
  6725. v-if="
  6726. worksStudent.length &&
  6727. worksStudent[toolIndex].length > 0
  6728. "
  6729. >
  6730. <!-- @click="openXz(w, toolIndex)" -->
  6731. <div
  6732. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6733. :key="wIndex"
  6734. class="isWorksName2"
  6735. @click="openSen(w, toolIndex)"
  6736. >
  6737. {{ w.sName }}
  6738. <img
  6739. class="deleteImg deleteImg2"
  6740. src="../../assets/deleteworks.png"
  6741. v-if="w.userid == userid || tType == 1 || tType == 4"
  6742. @click.stop="deleteWorks(w.wid)"
  6743. alt
  6744. />
  6745. </div>
  6746. </div>
  6747. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6748. 未提交
  6749. </div>
  6750. <div
  6751. class="noWorksS"
  6752. v-if="noWorksS && noWorksS[toolIndex].length"
  6753. >
  6754. <div
  6755. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6756. :key="sIndex"
  6757. class="noWorksName"
  6758. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6759. >
  6760. <el-tooltip effect="dark" :content="s.student" placement="top">
  6761. <span>{{ s.student }}</span>
  6762. </el-tooltip>
  6763. </div>
  6764. </div>
  6765. </div>
  6766. <div
  6767. v-if="
  6768. tType &&
  6769. ((tType == 2 && sIsOpen == true) ||
  6770. tType == 1 ||
  6771. tType == 4) &&
  6772. tool.tool.indexOf(48) != -1
  6773. "
  6774. class="worksBox"
  6775. >
  6776. <div
  6777. class="zuoyeYulan"
  6778. v-if="
  6779. worksStudent.length &&
  6780. worksStudent[toolIndex].length > 0
  6781. "
  6782. >
  6783. <div class="worksTop">
  6784. <div>作业预览</div>
  6785. <div
  6786. class="corOpen"
  6787. @click="contract(toolIndex)"
  6788. v-if="
  6789. (isCloseList[toolIndex].isCloseBoolean) &&
  6790. isCloseList[toolIndex].isClose == 0
  6791. "
  6792. >
  6793. 折叠
  6794. </div>
  6795. <div
  6796. class="corOpen"
  6797. @click="contract(toolIndex)"
  6798. v-if="isCloseList[toolIndex].isClose == 1"
  6799. >
  6800. 展开
  6801. </div>
  6802. </div>
  6803. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6804. </div>
  6805. <div
  6806. :id="'tool-' + toolIndex"
  6807. :style="{
  6808. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6809. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6810. }"
  6811. class="worksDetailBox"
  6812. v-if="
  6813. worksStudent.length &&
  6814. worksStudent[toolIndex].length > 0
  6815. "
  6816. >
  6817. <div
  6818. class="works"
  6819. style="
  6820. width: 200px;
  6821. height: 140px;
  6822. margin: 10px 10px 10px 0;
  6823. border-radius: 15px;
  6824. box-shadow: 0 0 6px 1px #dfdada;
  6825. "
  6826. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6827. :key="wIndex"
  6828. :class="w.type == 1 ? 'isTypeOne' : ''"
  6829. >
  6830. <div class="workImg">
  6831. <img :src="word" @click="openTable(w)" alt />
  6832. <!-- @click="openFile(w.works)" -->
  6833. <div
  6834. class="answerScore"
  6835. v-if="w.score"
  6836. @click.stop="openScore(w)"
  6837. :class="{
  6838. rightW:
  6839. w.userid == userid ||
  6840. tType == 1 ||
  6841. tType == 4 ||
  6842. w.ateacher == userid,
  6843. }"
  6844. >
  6845. {{ JSON.parse(w.score).wScore }}分
  6846. </div>
  6847. <div
  6848. class="answerScore"
  6849. @click.stop="openScore(w)"
  6850. v-else-if="courseDetail.userid == userid"
  6851. :class="{
  6852. rightW:
  6853. w.userid == userid ||
  6854. tType == 1 ||
  6855. tType == 4 ||
  6856. w.ateacher == userid,
  6857. }"
  6858. >
  6859. 评分
  6860. </div>
  6861. <img
  6862. class="deleteImg"
  6863. src="../../assets/deleteworks.png"
  6864. v-if="
  6865. w.userid == userid || tType == 1 || tType == 4
  6866. "
  6867. @click.stop="deleteWorks(w.wid)"
  6868. alt
  6869. />
  6870. </div>
  6871. <div class="comment" style="min-width: 200px">
  6872. <div class="worksName">
  6873. <div>{{ w.sName }}</div>
  6874. </div>
  6875. <div class="commentList">
  6876. <div class="commentList">
  6877. <div
  6878. class="commentImg"
  6879. @click="
  6880. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6881. "
  6882. >
  6883. <img
  6884. :src="w.isLikes == true ? likes : noLikes"
  6885. alt=""
  6886. />
  6887. </div>
  6888. <div>{{ w.likesCount }}</div>
  6889. </div>
  6890. <div class="commentList" style="margin-right: 15px">
  6891. <div
  6892. class="commentImg"
  6893. @click="commentOther(w, toolIndex, wIndex)"
  6894. >
  6895. <img
  6896. src="../../assets/icon/comment/comment.png"
  6897. alt=""
  6898. />
  6899. </div>
  6900. <div>{{ w.commentCount }}</div>
  6901. </div>
  6902. </div>
  6903. </div>
  6904. </div>
  6905. </div>
  6906. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6907. 未提交
  6908. </div>
  6909. <div
  6910. class="noWorksS"
  6911. v-if="noWorksS && noWorksS[toolIndex].length"
  6912. >
  6913. <div
  6914. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6915. :key="sIndex"
  6916. class="noWorksName"
  6917. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6918. >
  6919. <el-tooltip effect="dark" :content="s.student" placement="top">
  6920. <span>{{ s.student }}</span>
  6921. </el-tooltip>
  6922. </div>
  6923. </div>
  6924. </div>
  6925. <div
  6926. v-if="
  6927. tType &&
  6928. tType == 2 &&
  6929. !sIsOpen &&
  6930. tool.tool.indexOf(48) != -1
  6931. "
  6932. class="worksBox"
  6933. >
  6934. <div
  6935. class="zuoyeYulan"
  6936. v-if="workStudent[toolIndex].length > 0"
  6937. >
  6938. <span class="worksTitle">作业预览</span>
  6939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6940. </div>
  6941. <div
  6942. class="worksDetailBox"
  6943. v-if="workStudent[toolIndex].length > 0"
  6944. >
  6945. <div
  6946. class="works"
  6947. style="
  6948. width: 200px;
  6949. height: 140px;
  6950. margin: 10px 10px 10px 0;
  6951. box-shadow: 0 0 6px 1px #dfdada;
  6952. "
  6953. v-for="(w, wIndex) in workStudent[toolIndex]"
  6954. :key="wIndex"
  6955. >
  6956. <div class="workImg">
  6957. <img :src="word" @click="openTable(w)" alt />
  6958. <div
  6959. class="answerScore"
  6960. v-if="w.score"
  6961. @click.stop="openScore(w)"
  6962. :class="{
  6963. rightW:
  6964. w.userid == userid || tType == 1 || tType == 4,
  6965. }"
  6966. >
  6967. {{ JSON.parse(w.score).wScore }}分
  6968. </div>
  6969. <div
  6970. class="answerScore"
  6971. @click.stop="openScore(w)"
  6972. v-else-if="courseDetail.userid == userid"
  6973. :class="{
  6974. rightW:
  6975. w.userid == userid || tType == 1 || tType == 4,
  6976. }"
  6977. >
  6978. 评分
  6979. </div>
  6980. <img
  6981. class="deleteImg"
  6982. src="../../assets/deleteworks.png"
  6983. v-if="
  6984. w.userid == userid || tType == 1 || tType == 4
  6985. "
  6986. @click.stop="deleteWorks(w.wid)"
  6987. alt
  6988. />
  6989. </div>
  6990. <div class="worksName">
  6991. <div>{{ w.sName }}</div>
  6992. </div>
  6993. </div>
  6994. </div>
  6995. </div>
  6996. <div
  6997. v-if="
  6998. tType &&
  6999. ((tType == 2 && sIsOpen == true) ||
  7000. tType == 1 ||
  7001. tType == 4) &&
  7002. tool.tool.indexOf(52) != -1
  7003. "
  7004. class="worksBox"
  7005. >
  7006. <div
  7007. class="zuoyeYulan"
  7008. v-if="
  7009. worksStudent.length &&
  7010. worksStudent[toolIndex].length > 0
  7011. "
  7012. >
  7013. <div class="worksTop">
  7014. <div>作业预览</div>
  7015. <div
  7016. class="corOpen"
  7017. @click="contract(toolIndex)"
  7018. v-if="
  7019. (isCloseList[toolIndex].isCloseBoolean) &&
  7020. isCloseList[toolIndex].isClose == 0
  7021. "
  7022. >
  7023. 折叠
  7024. </div>
  7025. <div
  7026. class="corOpen"
  7027. @click="contract(toolIndex)"
  7028. v-if="isCloseList[toolIndex].isClose == 1"
  7029. >
  7030. 展开
  7031. </div>
  7032. </div>
  7033. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7034. </div>
  7035. <div
  7036. :id="'tool-' + toolIndex"
  7037. :style="{
  7038. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7039. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7040. }"
  7041. class="worksDetailBox"
  7042. v-if="
  7043. worksStudent.length &&
  7044. worksStudent[toolIndex].length > 0
  7045. "
  7046. >
  7047. <div
  7048. class="works"
  7049. style="
  7050. width: 200px;
  7051. height: 140px;
  7052. margin: 10px 10px 10px 0;
  7053. border-radius: 15px;
  7054. box-shadow: 0 0 6px 1px #dfdada;
  7055. "
  7056. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7057. :key="wIndex"
  7058. :class="w.type == 1 ? 'isTypeOne' : ''"
  7059. >
  7060. <div class="workImg">
  7061. <img :src="word" @click="openWord(w)" alt />
  7062. <!-- @click="openFile(w.works)" -->
  7063. <div
  7064. class="answerScore"
  7065. v-if="w.score"
  7066. @click.stop="openScore(w)"
  7067. :class="{
  7068. rightW:
  7069. w.userid == userid ||
  7070. tType == 1 ||
  7071. tType == 4 ||
  7072. w.ateacher == userid,
  7073. }"
  7074. >
  7075. {{ JSON.parse(w.score).wScore }}分
  7076. </div>
  7077. <div
  7078. class="answerScore"
  7079. @click.stop="openScore(w)"
  7080. v-else-if="courseDetail.userid == userid"
  7081. :class="{
  7082. rightW:
  7083. w.userid == userid ||
  7084. tType == 1 ||
  7085. tType == 4 ||
  7086. w.ateacher == userid,
  7087. }"
  7088. >
  7089. 评分
  7090. </div>
  7091. <img
  7092. class="deleteImg"
  7093. src="../../assets/deleteworks.png"
  7094. v-if="
  7095. w.userid == userid || tType == 1 || tType == 4
  7096. "
  7097. @click.stop="deleteWorks(w.wid)"
  7098. alt
  7099. />
  7100. </div>
  7101. <div class="comment" style="min-width: 200px">
  7102. <div class="worksName">
  7103. <div>{{ w.sName }}</div>
  7104. </div>
  7105. <div class="commentList">
  7106. <div class="commentList">
  7107. <div
  7108. class="commentImg"
  7109. @click="
  7110. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7111. "
  7112. >
  7113. <img
  7114. :src="w.isLikes == true ? likes : noLikes"
  7115. alt=""
  7116. />
  7117. </div>
  7118. <div>{{ w.likesCount }}</div>
  7119. </div>
  7120. <div class="commentList" style="margin-right: 15px">
  7121. <div
  7122. class="commentImg"
  7123. @click="commentOther(w, toolIndex, wIndex)"
  7124. >
  7125. <img
  7126. src="../../assets/icon/comment/comment.png"
  7127. alt=""
  7128. />
  7129. </div>
  7130. <div>{{ w.commentCount }}</div>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7137. 未提交
  7138. </div>
  7139. <div
  7140. class="noWorksS"
  7141. v-if="noWorksS && noWorksS[toolIndex].length"
  7142. >
  7143. <div
  7144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7145. :key="sIndex"
  7146. class="noWorksName"
  7147. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7148. >
  7149. <el-tooltip effect="dark" :content="s.student" placement="top">
  7150. <span>{{ s.student }}</span>
  7151. </el-tooltip>
  7152. </div>
  7153. </div>
  7154. </div>
  7155. <div
  7156. v-if="
  7157. tType &&
  7158. tType == 2 &&
  7159. !sIsOpen &&
  7160. tool.tool.indexOf(52) != -1
  7161. "
  7162. class="worksBox"
  7163. >
  7164. <div
  7165. class="zuoyeYulan"
  7166. v-if="workStudent[toolIndex].length > 0"
  7167. >
  7168. <span class="worksTitle">作业预览</span>
  7169. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7170. </div>
  7171. <div
  7172. class="worksDetailBox"
  7173. v-if="workStudent[toolIndex].length > 0"
  7174. >
  7175. <div
  7176. class="works"
  7177. style="
  7178. width: 200px;
  7179. height: 140px;
  7180. margin: 10px 10px 10px 0;
  7181. box-shadow: 0 0 6px 1px #dfdada;
  7182. "
  7183. v-for="(w, wIndex) in workStudent[toolIndex]"
  7184. :key="wIndex"
  7185. >
  7186. <div class="workImg">
  7187. <img :src="word" @click="openWord(w)" alt />
  7188. <div
  7189. class="answerScore"
  7190. v-if="w.score"
  7191. @click.stop="openScore(w)"
  7192. :class="{
  7193. rightW:
  7194. w.userid == userid || tType == 1 || tType == 4,
  7195. }"
  7196. >
  7197. {{ JSON.parse(w.score).wScore }}分
  7198. </div>
  7199. <div
  7200. class="answerScore"
  7201. @click.stop="openScore(w)"
  7202. v-else-if="courseDetail.userid == userid"
  7203. :class="{
  7204. rightW:
  7205. w.userid == userid || tType == 1 || tType == 4,
  7206. }"
  7207. >
  7208. 评分
  7209. </div>
  7210. <img
  7211. class="deleteImg"
  7212. src="../../assets/deleteworks.png"
  7213. v-if="
  7214. w.userid == userid || tType == 1 || tType == 4
  7215. "
  7216. @click.stop="deleteWorks(w.wid)"
  7217. alt
  7218. />
  7219. </div>
  7220. <div class="worksName">
  7221. <div>{{ w.sName }}</div>
  7222. </div>
  7223. </div>
  7224. </div>
  7225. </div>
  7226. <div
  7227. v-if="tool.tool.indexOf(49) != -1"
  7228. class="xuan_right_box"
  7229. style="margin: 0 15px 0 25px; width: 93%"
  7230. >
  7231. <div
  7232. v-if="courseDetail.userid == userid"
  7233. style="
  7234. display: flex;
  7235. justify-content: flex-end;
  7236. margin-right: 10px;
  7237. "
  7238. >
  7239. <el-button
  7240. type="primary"
  7241. size="small"
  7242. @click="addTools(49, toolIndex, taskCount)"
  7243. >分组设置</el-button
  7244. >
  7245. </div>
  7246. <div
  7247. v-if="groupStudentUid[toolIndex]"
  7248. class="group_staic_box"
  7249. >
  7250. <div
  7251. v-for="(gp, gd) in tool.groupJson.group"
  7252. :key="gd"
  7253. class="group_staic"
  7254. >
  7255. <span> {{ gp.name }}</span>
  7256. <span>
  7257. 目前人数{{
  7258. groupStudentUid[toolIndex][gd].length
  7259. }}人</span
  7260. >
  7261. </div>
  7262. </div>
  7263. </div>
  7264. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7265. <div
  7266. class="zuoyeYulan"
  7267. v-if="
  7268. worksStudent.length &&
  7269. worksStudent[toolIndex].length > 0
  7270. "
  7271. >
  7272. <span class="worksTitle">作业预览</span>
  7273. </div>
  7274. <div>
  7275. <div
  7276. class="group_workBox"
  7277. v-for="(g, gindex) in tool.groupJson.group"
  7278. :key="gindex"
  7279. >
  7280. <div
  7281. class="group_box"
  7282. v-if="
  7283. groupStudentUid[toolIndex] &&
  7284. worksStudent[toolIndex] &&
  7285. (worksStudent[toolIndex][gindex].length ||
  7286. groupStudentUid[toolIndex][gindex].indexOf(
  7287. userid
  7288. ) != -1)
  7289. "
  7290. >
  7291. <div class="group_title">
  7292. <el-tooltip
  7293. class="item"
  7294. effect="light"
  7295. :content="g.name"
  7296. placement="top"
  7297. >
  7298. <div class="group_name">{{ g.name }}</div>
  7299. </el-tooltip>
  7300. <el-button
  7301. type="primary"
  7302. v-if="
  7303. groupStudentUid[toolIndex][gindex].indexOf(
  7304. userid
  7305. ) != -1
  7306. "
  7307. @click="groupUpload(toolIndex, taskCount, gindex)"
  7308. >上传作业</el-button
  7309. >
  7310. </div>
  7311. <div class="group_work">
  7312. <div
  7313. class="works"
  7314. style="
  7315. width: 200px;
  7316. height: 140px;
  7317. margin: 10px 10px 10px 0;
  7318. border-radius: 15px;
  7319. box-shadow: 0 0 6px 1px #dfdada;
  7320. "
  7321. v-for="(w, wIndex) in worksStudent[toolIndex][
  7322. gindex
  7323. ]"
  7324. :key="wIndex"
  7325. :class="w.type == 1 ? 'isTypeOne' : ''"
  7326. >
  7327. <div class="workImg" v-if="w.type == 0">
  7328. <img
  7329. :src="w.works"
  7330. @click="previewImg(w.works,w)"
  7331. alt
  7332. />
  7333. <div
  7334. class="answerScore"
  7335. v-if="w.score"
  7336. @click.stop="openScore(w)"
  7337. :class="{
  7338. rightW:
  7339. w.userid == userid ||
  7340. tType == 1 ||
  7341. tType == 4 ||
  7342. w.ateacher == userid,
  7343. }"
  7344. >
  7345. {{ JSON.parse(w.score).wScore }}分
  7346. </div>
  7347. <div
  7348. class="answerScore"
  7349. @click.stop="openScore(w)"
  7350. v-else-if="courseDetail.userid == userid"
  7351. :class="{
  7352. rightW:
  7353. w.userid == userid ||
  7354. tType == 1 ||
  7355. tType == 4 ||
  7356. w.ateacher == userid,
  7357. }"
  7358. >
  7359. 评分
  7360. </div>
  7361. <img
  7362. class="deleteImg"
  7363. src="../../assets/deleteworks.png"
  7364. v-if="
  7365. w.userid == userid ||
  7366. tType == 1 ||
  7367. tType == 4
  7368. "
  7369. @click.stop="deleteWorks(w.wid)"
  7370. alt
  7371. />
  7372. </div>
  7373. <div class="workImg" v-if="w.type == 1">
  7374. <img
  7375. :src="word"
  7376. @click="openFile(w.works)"
  7377. alt
  7378. />
  7379. <!-- @click="openFile(w.works)" -->
  7380. <div
  7381. class="answerScore"
  7382. v-if="w.score"
  7383. @click.stop="openScore(w)"
  7384. :class="{
  7385. rightW:
  7386. w.userid == userid ||
  7387. tType == 1 ||
  7388. tType == 4 ||
  7389. w.ateacher == userid,
  7390. }"
  7391. >
  7392. {{ JSON.parse(w.score).wScore }}分
  7393. </div>
  7394. <div
  7395. class="answerScore"
  7396. @click.stop="openScore(w)"
  7397. v-else-if="courseDetail.userid == userid"
  7398. :class="{
  7399. rightW:
  7400. w.userid == userid ||
  7401. tType == 1 ||
  7402. tType == 4 ||
  7403. w.ateacher == userid,
  7404. }"
  7405. >
  7406. 评分
  7407. </div>
  7408. <img
  7409. class="deleteImg"
  7410. src="../../assets/deleteworks.png"
  7411. v-if="
  7412. w.userid == userid ||
  7413. tType == 1 ||
  7414. tType == 4
  7415. "
  7416. @click.stop="deleteWorks(w.wid)"
  7417. alt
  7418. />
  7419. </div>
  7420. <div class="workImg" v-if="w.type == 3">
  7421. <img
  7422. style="cursor: pointer"
  7423. :src="video"
  7424. @click="openVideo(w)"
  7425. alt
  7426. />
  7427. <!-- @click="openVideo(w.works)" -->
  7428. <div
  7429. class="answerScore"
  7430. v-if="w.score"
  7431. @click.stop="openScore(w)"
  7432. :class="{
  7433. rightW:
  7434. w.userid == userid ||
  7435. tType == 1 ||
  7436. tType == 4 ||
  7437. w.ateacher == userid,
  7438. }"
  7439. >
  7440. {{ JSON.parse(w.score).wScore }}分
  7441. </div>
  7442. <div
  7443. class="answerScore"
  7444. @click.stop="openScore(w)"
  7445. v-else-if="courseDetail.userid == userid"
  7446. :class="{
  7447. rightW:
  7448. w.userid == userid ||
  7449. tType == 1 ||
  7450. tType == 4 ||
  7451. w.ateacher == userid,
  7452. }"
  7453. >
  7454. 评分
  7455. </div>
  7456. <img
  7457. class="deleteImg"
  7458. src="../../assets/deleteworks.png"
  7459. v-if="
  7460. w.userid == userid ||
  7461. tType == 1 ||
  7462. tType == 4
  7463. "
  7464. @click.stop="deleteWorks(w.wid)"
  7465. alt
  7466. />
  7467. </div>
  7468. <div class="workImg" v-if="w.type == 12">
  7469. <img
  7470. style="cursor: pointer"
  7471. :src="word2"
  7472. @click="downloadFile(w.works)"
  7473. alt
  7474. />
  7475. <!-- @click="openVideo(w.works)" -->
  7476. <div
  7477. class="answerScore"
  7478. v-if="w.score"
  7479. @click.stop="openScore(w)"
  7480. :class="{
  7481. rightW:
  7482. w.userid == userid ||
  7483. tType == 1 ||
  7484. tType == 4 ||
  7485. w.ateacher == userid,
  7486. }"
  7487. >
  7488. {{ JSON.parse(w.score).wScore }}分
  7489. </div>
  7490. <div
  7491. class="answerScore"
  7492. @click.stop="openScore(w)"
  7493. v-else-if="courseDetail.userid == userid"
  7494. :class="{
  7495. rightW:
  7496. w.userid == userid ||
  7497. tType == 1 ||
  7498. tType == 4 ||
  7499. w.ateacher == userid,
  7500. }"
  7501. >
  7502. 评分
  7503. </div>
  7504. <img
  7505. class="deleteImg"
  7506. src="../../assets/deleteworks.png"
  7507. v-if="
  7508. w.userid == userid ||
  7509. tType == 1 ||
  7510. tType == 4
  7511. "
  7512. @click.stop="deleteWorks(w.wid)"
  7513. alt
  7514. />
  7515. </div>
  7516. <div class="comment" style="min-width: 200px">
  7517. <div class="worksName">
  7518. <div>{{ w.sName }}</div>
  7519. </div>
  7520. <div class="commentList">
  7521. <div class="commentList">
  7522. <div
  7523. class="commentImg"
  7524. @click="
  7525. isLikes(
  7526. w.wid,
  7527. userid,
  7528. 1,
  7529. null,
  7530. w.isLikes,
  7531. w.sName
  7532. )
  7533. "
  7534. >
  7535. <img
  7536. :src="
  7537. w.isLikes == true ? likes : noLikes
  7538. "
  7539. alt=""
  7540. />
  7541. </div>
  7542. <div>{{ w.likesCount }}</div>
  7543. </div>
  7544. <div
  7545. class="commentList"
  7546. style="margin-right: 15px"
  7547. >
  7548. <div
  7549. class="commentImg"
  7550. @click="
  7551. commentOther(
  7552. w,
  7553. toolIndex,
  7554. wIndex,
  7555. gindex
  7556. )
  7557. "
  7558. >
  7559. <img
  7560. src="../../assets/icon/comment/comment.png"
  7561. alt=""
  7562. />
  7563. </div>
  7564. <div>{{ w.commentCount }}</div>
  7565. </div>
  7566. </div>
  7567. </div>
  7568. </div>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. </div>
  7575. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7576. 上传文件
  7577. <input
  7578. type="file"
  7579. accept="image/png, image/gif, image/jpeg"
  7580. style="display: none"
  7581. @change="beforeUpload1($event, 2, index)"
  7582. />
  7583. </div>-->
  7584. </div>
  7585. </div>
  7586. <!-- <div
  7587. class="vedioBox"
  7588. style="margin-top: 10px"
  7589. v-if="
  7590. courseDetail.userid == userid ||
  7591. (courseDetail.course_teacher &&
  7592. courseDetail.course_teacher.indexOf(userid) != -1)
  7593. "
  7594. :style="{
  7595. borderRadius:
  7596. !(
  7597. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7598. .toolChoose[0].tool &&
  7599. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7600. .toolChoose[0].tool.length > 0
  7601. ) &&
  7602. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7603. .taskDetail == '' &&
  7604. vChapterData[taskCount].length == 0 &&
  7605. fileC[taskCount].length == 0
  7606. ? '0 0 20px 20px'
  7607. : '20px',
  7608. }"
  7609. >
  7610. <div
  7611. class="queTop"
  7612. @click="isClose = !isClose"
  7613. style="
  7614. padding: 15px 0 15px 37px;
  7615. justify-content: space-between;
  7616. "
  7617. >
  7618. <div class="queTopTitle">新增工具</div>
  7619. <div class="queTopRight">
  7620. <div class="queTopClose" v-if="isClose == 0">
  7621. 展开
  7622. <div class="closeImg">
  7623. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7624. </div>
  7625. </div>
  7626. <div class="queTopClose" v-if="isClose == 1">
  7627. 折叠
  7628. <div class="openImg">
  7629. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7630. </div>
  7631. </div>
  7632. <el-button
  7633. style="margin: 0 30px 0 auto"
  7634. type="primary"
  7635. size="small"
  7636. v-if="isClose == 1 && checktoolArray.length > 0"
  7637. @click.stop="addToolChoose"
  7638. >确定</el-button
  7639. >
  7640. </div>
  7641. </div>
  7642. <div
  7643. class="tool_work_box"
  7644. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7645. >
  7646. <div class="tool_box">
  7647. <div class="tool_type_box">
  7648. <div class="chooseWho">
  7649. <div
  7650. :class="toolType == 0 ? 'isChooseActive' : ''"
  7651. @click="(toolType = 0), $forceUpdate()"
  7652. >
  7653. 互动类
  7654. </div>
  7655. <div
  7656. :class="toolType == 1 ? 'isChooseActive' : ''"
  7657. @click="(toolType = 1), $forceUpdate()"
  7658. >
  7659. 思维类
  7660. </div>
  7661. <div
  7662. :class="toolType == 2 ? 'isChooseActive' : ''"
  7663. @click="(toolType = 2), $forceUpdate()"
  7664. >
  7665. 测评类
  7666. </div>
  7667. <div
  7668. :class="toolType == 3 ? 'isChooseActive' : ''"
  7669. @click="(toolType = 3), $forceUpdate()"
  7670. >
  7671. 编程类
  7672. </div>
  7673. <div
  7674. :class="toolType == 5 ? 'isChooseActive' : ''"
  7675. @click="(toolType = 5), $forceUpdate()"
  7676. >
  7677. 学科类
  7678. </div>
  7679. </div>
  7680. </div>
  7681. <div>
  7682. <div class="toolSort" v-if="toolType == 0">
  7683. <div class="tool">
  7684. <div class="whiteBIcon" @click="addTools2(10)">
  7685. <img
  7686. src="../../assets/icon/thirdToolList/time.png"
  7687. alt
  7688. />
  7689. <div style="margin: 5px 0">倒计时</div>
  7690. </div>
  7691. <div class="check" @click="addTools2(10)">
  7692. <img
  7693. src="../../assets/icon/checkNo.png"
  7694. alt
  7695. v-if="checktoolArray.indexOf(10) == -1"
  7696. />
  7697. <div class="checkDiv" v-else>
  7698. <img src="../../assets/icon/checkedIs.png" alt /><span
  7699. >已选择</span
  7700. >
  7701. </div>
  7702. </div>
  7703. </div>
  7704. <div class="tool">
  7705. <div class="whiteBIcon" @click="addTools2(65)">
  7706. <img
  7707. src="../../assets/icon/firstToolList/pickPeople.png"
  7708. alt
  7709. />
  7710. <div style="margin: 5px 0">挑人</div>
  7711. </div>
  7712. <div class="check" @click="addTools2(65)">
  7713. <img
  7714. src="../../assets/icon/checkNo.png"
  7715. alt
  7716. v-if="checktoolArray.indexOf(65) == -1"
  7717. />
  7718. <div class="checkDiv" v-else>
  7719. <img src="../../assets/icon/checkedIs.png" alt /><span
  7720. >已选择</span
  7721. >
  7722. </div>
  7723. </div>
  7724. </div>
  7725. </div>
  7726. <div class="toolSort" v-if="toolType == 1">
  7727. <div class="tool">
  7728. <div class="whiteBIcon" @click="addTools2(7)">
  7729. <img
  7730. src="../../assets/icon/secondToolList/mindNetwork.png"
  7731. alt
  7732. />
  7733. <div style="margin: 5px 0">思维网格</div>
  7734. </div>
  7735. <div class="check" @click="addTools2(7)">
  7736. <img
  7737. src="../../assets/icon/checkNo.png"
  7738. alt
  7739. v-if="checktoolArray.indexOf(7) == -1"
  7740. />
  7741. <div class="checkDiv" v-else>
  7742. <img src="../../assets/icon/checkedIs.png" alt /><span
  7743. >已选择</span
  7744. >
  7745. </div>
  7746. </div>
  7747. </div>
  7748. <div class="tool">
  7749. <div class="whiteBIcon" @click="addTools2(1)">
  7750. <img
  7751. src="../../assets/icon/secondToolList/whiteBoard.png"
  7752. alt
  7753. />
  7754. <div style="margin: 5px 0">电子白板</div>
  7755. </div>
  7756. <div class="check" @click="addTools2(1)">
  7757. <img
  7758. src="../../assets/icon/checkNo.png"
  7759. alt
  7760. v-if="checktoolArray.indexOf(1) == -1"
  7761. />
  7762. <div class="checkDiv" v-else>
  7763. <img src="../../assets/icon/checkedIs.png" alt /><span
  7764. >已选择</span
  7765. >
  7766. </div>
  7767. </div>
  7768. </div>
  7769. <div class="tool">
  7770. <div class="whiteBIcon" @click="addTools2(52)">
  7771. <img
  7772. src="../../assets/icon/fourthToolList/text.png"
  7773. alt
  7774. />
  7775. <div style="margin: 5px 0">文档</div>
  7776. </div>
  7777. <div class="check" @click="addTools2(52)">
  7778. <img
  7779. src="../../assets/icon/checkNo.png"
  7780. alt
  7781. v-if="checktoolArray.indexOf(52) == -1"
  7782. />
  7783. <div class="checkDiv" v-else>
  7784. <img src="../../assets/icon/checkedIs.png" alt /><span
  7785. >已选择</span
  7786. >
  7787. </div>
  7788. </div>
  7789. </div>
  7790. <div class="tool">
  7791. <div class="whiteBIcon" @click="addTools2(3)">
  7792. <img
  7793. src="../../assets/icon/secondToolList/mindMapping.png"
  7794. alt
  7795. />
  7796. <div style="margin: 5px 0">思维导图</div>
  7797. </div>
  7798. <div class="check" @click="addTools2(3)">
  7799. <img
  7800. src="../../assets/icon/checkNo.png"
  7801. alt
  7802. v-if="checktoolArray.indexOf(3) == -1"
  7803. />
  7804. <div class="checkDiv" v-else>
  7805. <img src="../../assets/icon/checkedIs.png" alt /><span
  7806. >已选择</span
  7807. >
  7808. </div>
  7809. </div>
  7810. </div>
  7811. <div class="tool">
  7812. <div class="whiteBIcon" @click="addTools2(48)">
  7813. <img
  7814. src="../../assets/icon/fourthToolList/table.png"
  7815. alt
  7816. />
  7817. <div style="margin: 5px 0">表格</div>
  7818. </div>
  7819. <div class="check" @click="addTools2(48)">
  7820. <img
  7821. src="../../assets/icon/checkNo.png"
  7822. alt
  7823. v-if="checktoolArray.indexOf(48) == -1"
  7824. />
  7825. <div class="checkDiv" v-else>
  7826. <img src="../../assets/icon/checkedIs.png" alt /><span
  7827. >已选择</span
  7828. >
  7829. </div>
  7830. </div>
  7831. </div>
  7832. </div>
  7833. <div class="toolSort" v-if="toolType == 6">
  7834. <div v-show="tooC == 49">
  7835. <img
  7836. @click="addTools(tooC, toolIndex, taskCount)"
  7837. src="../../assets/icon/fourthToolList/group.png"
  7838. alt
  7839. />
  7840. <div style="margin: 5px 0">学生分组</div>
  7841. </div>
  7842. </div>
  7843. <div class="toolSort" v-if="toolType == 2">
  7844. <div class="tool">
  7845. <div class="whiteBIcon" @click="addTools2(16)">
  7846. <img
  7847. src="../../assets/icon/thirdToolList/work.png"
  7848. alt
  7849. />
  7850. <div style="margin: 5px 0">作业提交</div>
  7851. </div>
  7852. <div class="check" @click="addTools2(16)">
  7853. <img
  7854. src="../../assets/icon/checkNo.png"
  7855. alt
  7856. v-if="checktoolArray.indexOf(16) == -1"
  7857. />
  7858. <div class="checkDiv" v-else>
  7859. <img src="../../assets/icon/checkedIs.png" alt /><span
  7860. >已选择</span
  7861. >
  7862. </div>
  7863. </div>
  7864. </div>
  7865. <div class="tool">
  7866. <div class="whiteBIcon" @click="addTools2(50)">
  7867. <img
  7868. src="../../assets/icon/thirdToolList/plwork.png"
  7869. alt
  7870. />
  7871. <div style="margin: 5px 0">批量上传</div>
  7872. </div>
  7873. <div class="check" @click="addTools2(50)">
  7874. <img
  7875. src="../../assets/icon/checkNo.png"
  7876. alt
  7877. v-if="checktoolArray.indexOf(50) == -1"
  7878. />
  7879. <div class="checkDiv" v-else>
  7880. <img src="../../assets/icon/checkedIs.png" alt /><span
  7881. >已选择</span
  7882. >
  7883. </div>
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div class="toolSort" v-if="toolType == 3">
  7888. <div class="tool">
  7889. <div class="whiteBIcon" @click="addTools2(18)">
  7890. <img
  7891. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7892. alt
  7893. />
  7894. <div style="margin: 5px 0">训练平台</div>
  7895. </div>
  7896. <div class="check" @click="addTools2(18)">
  7897. <img
  7898. src="../../assets/icon/checkNo.png"
  7899. alt
  7900. v-if="checktoolArray.indexOf(18) == -1"
  7901. />
  7902. <div class="checkDiv" v-else>
  7903. <img src="../../assets/icon/checkedIs.png" alt /><span
  7904. >已选择</span
  7905. >
  7906. </div>
  7907. </div>
  7908. </div>
  7909. <div class="tool">
  7910. <div class="whiteBIcon" @click="addTools2(21)">
  7911. <img
  7912. src="../../assets/icon/fourthToolList/program.png"
  7913. alt
  7914. />
  7915. <div style="margin: 5px 0">AIoT Blockly</div>
  7916. </div>
  7917. <div class="check" @click="addTools2(21)">
  7918. <img
  7919. src="../../assets/icon/checkNo.png"
  7920. alt
  7921. v-if="checktoolArray.indexOf(21) == -1"
  7922. />
  7923. <div class="checkDiv" v-else>
  7924. <img src="../../assets/icon/checkedIs.png" alt /><span
  7925. >已选择</span
  7926. >
  7927. </div>
  7928. </div>
  7929. </div>
  7930. <div class="tool">
  7931. <div class="whiteBIcon" @click="addTools2(23)">
  7932. <img
  7933. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7934. alt
  7935. />
  7936. <div style="margin: 5px 0">AI Python</div>
  7937. </div>
  7938. <div class="check" @click="addTools2(23)">
  7939. <img
  7940. src="../../assets/icon/checkNo.png"
  7941. alt
  7942. v-if="checktoolArray.indexOf(23) == -1"
  7943. />
  7944. <div class="checkDiv" v-else>
  7945. <img src="../../assets/icon/checkedIs.png" alt /><span
  7946. >已选择</span
  7947. >
  7948. </div>
  7949. </div>
  7950. </div>
  7951. <div class="tool">
  7952. <div class="whiteBIcon" @click="addTools2(24)">
  7953. <img
  7954. src="../../assets/icon/fourthToolList/AIprogram.png"
  7955. alt
  7956. />
  7957. <div style="margin: 5px 0">AI Blockly</div>
  7958. </div>
  7959. <div class="check" @click="addTools2(24)">
  7960. <img
  7961. src="../../assets/icon/checkNo.png"
  7962. alt
  7963. v-if="checktoolArray.indexOf(24) == -1"
  7964. />
  7965. <div class="checkDiv" v-else>
  7966. <img src="../../assets/icon/checkedIs.png" alt /><span
  7967. >已选择</span
  7968. >
  7969. </div>
  7970. </div>
  7971. </div>
  7972. <div class="tool">
  7973. <div class="whiteBIcon" @click="addTools2(32)">
  7974. <img
  7975. src="../../assets/icon/thirdToolList/code.png"
  7976. alt
  7977. />
  7978. <div style="margin: 5px 0">源码编辑</div>
  7979. </div>
  7980. <div class="check" @click="addTools2(32)">
  7981. <img
  7982. src="../../assets/icon/checkNo.png"
  7983. alt
  7984. v-if="checktoolArray.indexOf(32) == -1"
  7985. />
  7986. <div class="checkDiv" v-else>
  7987. <img src="../../assets/icon/checkedIs.png" alt /><span
  7988. >已选择</span
  7989. >
  7990. </div>
  7991. </div>
  7992. </div>
  7993. <div class="tool">
  7994. <div class="whiteBIcon" @click="addTools2(57)">
  7995. <img
  7996. src="../../assets/icon/fourthToolList/cocopi.png"
  7997. alt
  7998. />
  7999. <div style="margin: 5px 0">CocoPi</div>
  8000. </div>
  8001. <div class="check" @click="addTools2(57)">
  8002. <img
  8003. src="../../assets/icon/checkNo.png"
  8004. alt
  8005. v-if="checktoolArray.indexOf(57) == -1"
  8006. />
  8007. <div class="checkDiv" v-else>
  8008. <img src="../../assets/icon/checkedIs.png" alt /><span
  8009. >已选择</span
  8010. >
  8011. </div>
  8012. </div>
  8013. </div>
  8014. <div class="tool">
  8015. <div class="whiteBIcon" @click="addTools2(63)">
  8016. <img
  8017. src="../../assets/icon/fourthToolList/Wood.png"
  8018. alt
  8019. />
  8020. <div style="margin: 5px 0">海龟编程</div>
  8021. </div>
  8022. <div class="check" @click="addTools2(63)">
  8023. <img
  8024. src="../../assets/icon/checkNo.png"
  8025. alt
  8026. v-if="checktoolArray.indexOf(63) == -1"
  8027. />
  8028. <div class="checkDiv" v-else>
  8029. <img src="../../assets/icon/checkedIs.png" alt /><span
  8030. >已选择</span
  8031. >
  8032. </div>
  8033. </div>
  8034. </div>
  8035. </div>
  8036. <div class="toolSort" v-if="toolType == 5">
  8037. <div class="tool">
  8038. <div class="whiteBIcon" @click="addTools2(28)">
  8039. <img
  8040. src="../../assets/icon/secondToolList/translation.png"
  8041. alt
  8042. />
  8043. <div style="margin: 5px 0">翻译</div>
  8044. </div>
  8045. <div class="check" @click="addTools2(28)">
  8046. <img
  8047. src="../../assets/icon/checkNo.png"
  8048. alt
  8049. v-if="checktoolArray.indexOf(28) == -1"
  8050. />
  8051. <div class="checkDiv" v-else>
  8052. <img src="../../assets/icon/checkedIs.png" alt /><span
  8053. >已选择</span
  8054. >
  8055. </div>
  8056. </div>
  8057. </div>
  8058. <div class="tool">
  8059. <div class="whiteBIcon" @click="addTools2(31)">
  8060. <img
  8061. src="../../assets/icon/secondToolList/networkPanel.png"
  8062. alt
  8063. />
  8064. <div style="margin: 5px 0">数字画板</div>
  8065. </div>
  8066. <div class="check" @click="addTools2(31)">
  8067. <img
  8068. src="../../assets/icon/checkNo.png"
  8069. alt
  8070. v-if="checktoolArray.indexOf(31) == -1"
  8071. />
  8072. <div class="checkDiv" v-else>
  8073. <img src="../../assets/icon/checkedIs.png" alt /><span
  8074. >已选择</span
  8075. >
  8076. </div>
  8077. </div>
  8078. </div>
  8079. <div class="tool">
  8080. <div class="whiteBIcon" @click="addTools2(39)">
  8081. <img
  8082. src="../../assets/icon/secondToolList/GeoGebra.png"
  8083. alt
  8084. />
  8085. <div style="margin: 5px 0">GeoGebra</div>
  8086. </div>
  8087. <div class="check" @click="addTools2(39)">
  8088. <img
  8089. src="../../assets/icon/checkNo.png"
  8090. alt
  8091. v-if="checktoolArray.indexOf(39) == -1"
  8092. />
  8093. <div class="checkDiv" v-else>
  8094. <img src="../../assets/icon/checkedIs.png" alt /><span
  8095. >已选择</span
  8096. >
  8097. </div>
  8098. </div>
  8099. </div>
  8100. <div class="tool">
  8101. <div class="whiteBIcon" @click="addTools2(66)">
  8102. <img
  8103. src="../../assets/icon/secondToolList/formulaEdi.png"
  8104. alt
  8105. />
  8106. <div style="margin: 5px 0">公式编辑</div>
  8107. </div>
  8108. <div class="check" @click="addTools2(66)">
  8109. <img
  8110. src="../../assets/icon/checkNo.png"
  8111. alt
  8112. v-if="checktoolArray.indexOf(66) == -1"
  8113. />
  8114. <div class="checkDiv" v-else>
  8115. <img src="../../assets/icon/checkedIs.png" alt /><span
  8116. >已选择</span
  8117. >
  8118. </div>
  8119. </div>
  8120. </div>
  8121. <div class="tool">
  8122. <div class="whiteBIcon" @click="addTools2(67)">
  8123. <img
  8124. src="../../assets/icon/secondToolList/molStr.png"
  8125. alt
  8126. />
  8127. <div style="margin: 5px 0">分子结构</div>
  8128. </div>
  8129. <div class="check" @click="addTools2(67)">
  8130. <img
  8131. src="../../assets/icon/checkNo.png"
  8132. alt
  8133. v-if="checktoolArray.indexOf(67) == -1"
  8134. />
  8135. <div class="checkDiv" v-else>
  8136. <img src="../../assets/icon/checkedIs.png" alt /><span
  8137. >已选择</span
  8138. >
  8139. </div>
  8140. </div>
  8141. </div>
  8142. <div class="tool">
  8143. <div class="whiteBIcon" @click="addTools2(68)">
  8144. <img
  8145. src="../../assets/icon/secondToolList/timeAxis.png"
  8146. alt
  8147. />
  8148. <div style="margin: 5px 0">时间轴</div>
  8149. </div>
  8150. <div class="check" @click="addTools2(68)">
  8151. <img
  8152. src="../../assets/icon/checkNo.png"
  8153. alt
  8154. v-if="checktoolArray.indexOf(68) == -1"
  8155. />
  8156. <div class="checkDiv" v-else>
  8157. <img src="../../assets/icon/checkedIs.png" alt /><span
  8158. >已选择</span
  8159. >
  8160. </div>
  8161. </div>
  8162. </div>
  8163. </div>
  8164. <div class="toolSort" v-if="toolType == 7">
  8165. <div class="tool">
  8166. <div class="whiteBIcon" @click="addTools2(40)">
  8167. <img
  8168. src="../../assets/icon/secondToolList/eval.png"
  8169. alt
  8170. />
  8171. <div style="margin: 5px 0">个人评价</div>
  8172. </div>
  8173. <div class="check" @click="addTools2(40)">
  8174. <img
  8175. src="../../assets/icon/checkNo.png"
  8176. alt
  8177. v-if="checktoolArray.indexOf(40) == -1"
  8178. />
  8179. <div class="checkDiv" v-else>
  8180. <img src="../../assets/icon/checkedIs.png" alt /><span
  8181. >已选择</span
  8182. >
  8183. </div>
  8184. </div>
  8185. </div>
  8186. </div>
  8187. <div class="toolSort" v-if="toolType == 4">
  8188. <div class="tool">
  8189. <div class="whiteBIcon" @click="addTools2(26)">
  8190. <img
  8191. src="../../assets/icon/thirdToolList/courseDesign.png"
  8192. alt
  8193. />
  8194. <div style="margin: 5px 0">课程设计</div>
  8195. </div>
  8196. <div class="check" @click="addTools2(26)">
  8197. <img
  8198. src="../../assets/icon/checkNo.png"
  8199. alt
  8200. v-if="checktoolArray.indexOf(26) == -1"
  8201. />
  8202. <div class="checkDiv" v-else>
  8203. <img src="../../assets/icon/checkedIs.png" alt /><span
  8204. >已选择</span
  8205. >
  8206. </div>
  8207. </div>
  8208. </div>
  8209. <div class="tool">
  8210. <div class="whiteBIcon" @click="addTools2(25)">
  8211. <img
  8212. src="../../assets/icon/thirdToolList/evalua.png"
  8213. alt
  8214. />
  8215. <div style="margin: 5px 0">目标管理</div>
  8216. </div>
  8217. <div class="check" @click="addTools2(25)">
  8218. <img
  8219. src="../../assets/icon/checkNo.png"
  8220. alt
  8221. v-if="checktoolArray.indexOf(25) == -1"
  8222. />
  8223. <div class="checkDiv" v-else>
  8224. <img src="../../assets/icon/checkedIs.png" alt /><span
  8225. >已选择</span
  8226. >
  8227. </div>
  8228. </div>
  8229. </div>
  8230. </div>
  8231. </div>
  8232. </div>
  8233. </div>
  8234. </div> -->
  8235. <div
  8236. class="vedioBox"
  8237. style="margin-top: 10px; border-radius: 20px"
  8238. v-if="
  8239. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8240. .eList &&
  8241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8242. .eList.length &&
  8243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8244. .eList.length > 0 &&
  8245. tType != 2
  8246. "
  8247. >
  8248. <div
  8249. class="queTop"
  8250. style="
  8251. font-size: 20px;
  8252. padding: 15px 0 15px 37px;
  8253. font-weight: bold;
  8254. "
  8255. >
  8256. <!-- <div class="question" style="width: 30px">
  8257. <img src="../assets/icon/toolIcon.png" alt />
  8258. </div>
  8259. <div class="queTitle">
  8260. <div>工具</div>
  8261. </div>-->
  8262. 评一评
  8263. </div>
  8264. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8265. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8266. <el-table
  8267. :data="
  8268. chapInfoList[courseType].chapterInfo[0].taskJson[
  8269. taskCount
  8270. ].eList
  8271. "
  8272. :header-cell-style="{ background: '#F0F4FA' }"
  8273. :row-class-name="tableRowClassName"
  8274. border
  8275. stripe
  8276. style="width: 100%"
  8277. >
  8278. <el-table-column
  8279. label="评价名称"
  8280. align="center"
  8281. >
  8282. <template slot-scope="scope"
  8283. ><div>{{ scope.row.value }}</div></template
  8284. >
  8285. </el-table-column>
  8286. <el-table-column
  8287. label="评价描述"
  8288. align="center"
  8289. >
  8290. <template slot-scope="scope"
  8291. ><div>
  8292. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8293. </div></template
  8294. >
  8295. </el-table-column>
  8296. <el-table-column label="目标" align="center">
  8297. <template slot-scope="scope"
  8298. ><div>
  8299. {{
  8300. scope.row.target
  8301. ? scope.row.target[scope.row.target.length - 1]
  8302. : "-"
  8303. }}
  8304. </div></template
  8305. ></el-table-column
  8306. >
  8307. </el-table>
  8308. <!-- <div
  8309. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8310. .chapterInfo[0].taskJson[taskCount].eList"
  8311. :key="eIndex"
  8312. class="elist_input_box"
  8313. >
  8314. <div style="width: 95%">
  8315. <div
  8316. style="
  8317. display: flex;
  8318. flex-direction: row;
  8319. flex-wrap: nowrap;
  8320. align-items: center;
  8321. "
  8322. >
  8323. <div style="max-width: calc(100% - 285px)">
  8324. <span>{{ eItem.value }}</span>
  8325. </div>
  8326. <div
  8327. style="
  8328. padding-left: 25px;
  8329. display: flex;
  8330. flex-direction: row;
  8331. align-items: center;
  8332. "
  8333. >
  8334. <el-rate
  8335. v-model="eItem.score"
  8336. :colors="colors"
  8337. disabled
  8338. ></el-rate>
  8339. </div>
  8340. </div>
  8341. <div class="elist_inptu_text" style="padding-left: 10px">
  8342. <span v-if="eItem.detail != ''">{{
  8343. eItem.detail
  8344. }}</span>
  8345. <span v-else style="color: #b2b1b3; font-size: 14px"
  8346. >暂无描述...</span
  8347. >
  8348. </div>
  8349. </div>
  8350. </div> -->
  8351. </div>
  8352. <div
  8353. v-if="evalua"
  8354. style="
  8355. border: 1px solid #e5e5e5;
  8356. max-width: 650px;
  8357. width: 100%;
  8358. margin-top: 20px;
  8359. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8360. "
  8361. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8362. >
  8363. <div class="e_add_top">
  8364. <div class="e_add_title" style="width: 100%">
  8365. <!-- <span>目标管理名称</span> -->
  8366. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8367. <img
  8368. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8369. src="../../assets/line.png"
  8370. class="cru_line"
  8371. style="
  8372. width: 125px;
  8373. height: 20px;
  8374. bottom: -10px;
  8375. left: 5px;
  8376. "
  8377. />
  8378. <!-- <el-input
  8379. v-model="eTitle"
  8380. placeholder="请输入名称"
  8381. @change="setMindData"
  8382. ></el-input>-->
  8383. <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>
  8384. <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>
  8385. </div>
  8386. </div>
  8387. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8388. <div class="e_add_list_pbox">
  8389. <div class="e_add_list_pbox_title">
  8390. <!-- <span class="type_title">切换模式</span> -->
  8391. <div class="type_content">
  8392. <span
  8393. :class="{ active: typeMode == 1 }"
  8394. @click="typeMode = 1"
  8395. >目标树</span
  8396. >
  8397. <span
  8398. :class="{ active: typeMode == 2 }"
  8399. @click="typeMode = 2"
  8400. >目标罗盘</span
  8401. >
  8402. <!-- <span
  8403. :class="{ active: typeMode == 3 }"
  8404. @click="typeMode = 3"
  8405. >目标看板</span
  8406. > -->
  8407. </div>
  8408. </div>
  8409. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8410. <Mind
  8411. :showBar="false"
  8412. :mindData="data"
  8413. style="width: 100%"
  8414. v-show="typeMode == 1"
  8415. ></Mind>
  8416. <Sunburst
  8417. :Josn="eJson"
  8418. :num="eJSONNum"
  8419. style="width: 100%"
  8420. v-if="typeMode == 2"
  8421. ></Sunburst>
  8422. <SeeBoard
  8423. :Josn="eJson"
  8424. :num="eJSONNum"
  8425. :ename="eTitle"
  8426. style="width: 100%"
  8427. v-if="typeMode == 3"
  8428. >
  8429. </SeeBoard>
  8430. </div>
  8431. </div>
  8432. </div>
  8433. </div>
  8434. </div>
  8435. </div>
  8436. <!-- <div
  8437. class="project_box"
  8438. style="margin-top: 15px; padding-bottom: 30px"
  8439. >
  8440. <div
  8441. style="
  8442. display: flex;
  8443. flex-wrap: nowrap;
  8444. flex-direction: column;
  8445. position: relative;
  8446. "
  8447. >
  8448. <div class="queTop">
  8449. <div class="question">
  8450. <img src="../../assets/icon/homeWork.png" alt="" />
  8451. </div>
  8452. <div class="queTitle">
  8453. <div>作业提交<span>(提交图文视频等)</span></div>
  8454. <div>:任务:{{ task.task }}</div>
  8455. </div>
  8456. </div>
  8457. <div class="ediBottom">
  8458. <div
  8459. class="addEditor"
  8460. style="margin-top: 23px"
  8461. @click="openAddWork"
  8462. v-if="!isNoHomeWork"
  8463. >
  8464. 选择文件
  8465. </div>
  8466. <div
  8467. class="addEditor"
  8468. style="margin-top: 23px"
  8469. @click="openAddWork"
  8470. v-else
  8471. >
  8472. 已提交
  8473. </div>
  8474. </div>
  8475. </div>
  8476. </div>-->
  8477. </div>
  8478. </div>
  8479. <el-dialog
  8480. title="作业提交"
  8481. :visible.sync="dialogVisible"
  8482. :append-to-body="true"
  8483. width="500px"
  8484. :before-close="handleClose"
  8485. class="dialog_change"
  8486. >
  8487. <div class="marginT">
  8488. <div>上传文件</div>
  8489. <div style="display: flex; gap: 10px">
  8490. <div
  8491. class="chapter_add"
  8492. @click="addImg($event)"
  8493. v-if="studyJuri[0].cover.length == 0"
  8494. >
  8495. <div class="up_photo">
  8496. <img src="../../assets/icon/uploadImg.png" alt />
  8497. </div>
  8498. <!-- <input
  8499. type="file"
  8500. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8501. style="display: none"
  8502. @change="beforeUpload1($event, 1)"
  8503. /> -->
  8504. <input
  8505. type="file"
  8506. accept="*"
  8507. style="display: none"
  8508. @change="beforeUpload1($event, 1)"
  8509. />
  8510. <!-- <input
  8511. type="file"
  8512. accept="image/*"
  8513. capture="camera"
  8514. style="display: none"
  8515. @change="beforeUpload1($event, 1)"
  8516. /> -->
  8517. </div>
  8518. <div
  8519. class="chapter_add"
  8520. @click="addImg($event)"
  8521. v-if="studyJuri[0].cover.length == 0"
  8522. >
  8523. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8524. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8525. </div>
  8526. <input
  8527. type="file"
  8528. accept="image/*"
  8529. capture="camera"
  8530. style="display: none"
  8531. @change="beforeUpload1($event, 1)"
  8532. />
  8533. </div>
  8534. </div>
  8535. <div
  8536. class="chapter_add"
  8537. style="
  8538. display: flex;
  8539. width: 100%;
  8540. flex-direction: row;
  8541. flex-wrap: wrap;
  8542. justify-content: flex-start;
  8543. padding: 15px 0;
  8544. "
  8545. v-if="studyJuri[0].cover.length > 0"
  8546. >
  8547. <div class="upCover">
  8548. <img
  8549. :src="studyJuri[0].cover[0].url"
  8550. alt
  8551. v-if="fileType == 0"
  8552. />
  8553. <img :src="word" alt v-else-if="fileType == 1" />
  8554. <img :src="video" alt v-else-if="fileType == 2" />
  8555. <img :src="word2" alt v-else-if="fileType == 3" />
  8556. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8557. <div class="deleteWord" @click="clean(1)">
  8558. <img src="../../assets/icon/deleteWorks.png" alt />
  8559. </div>
  8560. </div>
  8561. </div>
  8562. </div>
  8563. <div
  8564. class="upload_send"
  8565. @click="addCourseWorks(taskCount)"
  8566. v-if="!proVisible"
  8567. >
  8568. 提交
  8569. </div>
  8570. </el-dialog>
  8571. </div>
  8572. </div>
  8573. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8574. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8575. '/courseDetail?userid=' +
  8576. userid +
  8577. '&oid=' +
  8578. oid +
  8579. '&org=' +
  8580. org +
  8581. '&cid=' +
  8582. classId +
  8583. '&courseId=' +
  8584. id +
  8585. '&tType=' +
  8586. tType +
  8587. '&screenType=' +
  8588. screenType
  8589. )"></classRoomHelper>
  8590. <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(
  8591. '/courseDetail?userid=' +
  8592. userid +
  8593. '&oid=' +
  8594. oid +
  8595. '&org=' +
  8596. org +
  8597. '&cid=' +
  8598. classId +
  8599. '&courseId=' +
  8600. id +
  8601. '&tType=' +
  8602. tType +
  8603. '&screenType=' +
  8604. screenType
  8605. )"></studentClassRoomHelper>
  8606. <div
  8607. class="pButton"
  8608. @click="(pzDialog = true), selectPz()"
  8609. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8610. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8611. >
  8612. <!-- 批 -->
  8613. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8614. </div>
  8615. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8616. <div class="pzTop2">
  8617. <!-- <div>评论</div>
  8618. <div @click="pzDialog = false">
  8619. <img src="../../assets/close1.png" alt="" />
  8620. </div> -->
  8621. <div class="checkbox">
  8622. <!-- <div class="check" style="font-size: 25px; position: unset">
  8623. 评论
  8624. </div> -->
  8625. <div class="cb-tabList">
  8626. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8627. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8628. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8629. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8630. </div>
  8631. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8632. <el-option label="时间降序" :value="1"></el-option>
  8633. <el-option label="时间升序" :value="2"></el-option>
  8634. <el-option label="我的评课" :value="3"></el-option>
  8635. </el-select>
  8636. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8637. </div>
  8638. </div>
  8639. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8640. <div class="pzListBox" v-if="pzList && pzList.length">
  8641. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8642. <div class="pzNavTop">
  8643. <div>评</div>
  8644. <div>
  8645. {{
  8646. pz.username && pz.username.length > 5
  8647. ? pz.username.substring(0, 5) + "..."
  8648. : pz.username
  8649. }}的评论
  8650. </div>
  8651. <div
  8652. class="pzDelete"
  8653. v-if="pz.userid == userid"
  8654. @click="deletePz(pz.id)"
  8655. >
  8656. 删除
  8657. </div>
  8658. </div>
  8659. <div
  8660. @click="checkImg(getImgList(pz.content))"
  8661. class="pzContent cont"
  8662. v-html="pz.content"
  8663. v-if="pz.type == '1'"
  8664. ></div>
  8665. <div class="pzContent" v-if="pz.type == '2'">
  8666. <audio :src="pz.content" controls="controls" ref="audio">
  8667. Your browser does not support the audio element.
  8668. </audio>
  8669. </div>
  8670. <div class="pzContent" v-if="pz.type == '3'">
  8671. <img
  8672. :src="pz.content"
  8673. style="width: 90%; margin: 0 auto; display: block"
  8674. @click="previewImg(pz.content)"
  8675. />
  8676. </div>
  8677. <div class="timeAndReply">
  8678. <div class="time">
  8679. {{ pz.time }}
  8680. </div>
  8681. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8682. </div>
  8683. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8684. <div
  8685. v-for="(h, hIndex) in pz.hfList"
  8686. :key="hIndex"
  8687. class="hfItem"
  8688. >
  8689. <div class="whoReplyWho">
  8690. <div class="hfName">{{ h.username }}</div>
  8691. <div class="hfImg">
  8692. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8693. </div>
  8694. <div class="hfName">{{ pz.username }}</div>
  8695. </div>
  8696. <div class="hfContent" v-html="h.content"></div>
  8697. <div class="hfBottom">
  8698. <div class="hfTime">{{ h.time }}</div>
  8699. <div
  8700. class="deleteHfItem"
  8701. @click="deleteReply(h.id)"
  8702. v-if="userid == h.userid"
  8703. >
  8704. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8705. </div>
  8706. </div>
  8707. </div>
  8708. </div>
  8709. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8710. <div class="replyInput">
  8711. <el-input v-model="reply[pzIndex]"></el-input>
  8712. </div>
  8713. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8714. </div> -->
  8715. </div>
  8716. </div>
  8717. <div class="noPz" v-else>
  8718. <img src="../../assets/icon/noPz.png" alt="" />
  8719. </div>
  8720. <div class="addPzButton">
  8721. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8722. 添加评论
  8723. </div>
  8724. <!-- <div class="img1">
  8725. <div @click="(addPzDialog = true), (pzType = 2)">
  8726. <img src="../../assets/audio.png" /><span>音频</span>
  8727. </div>
  8728. </div> -->
  8729. </div>
  8730. </div>
  8731. <div class="scoreList" v-if="commentTagShow==1">
  8732. <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"/>
  8733. </div>
  8734. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8735. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8736. </div>
  8737. </div>
  8738. <div
  8739. v-if="toolDialogVisible == true"
  8740. class="toolMask"
  8741. @click="toolDialogVisible = false"
  8742. ></div>
  8743. <div v-if="toolDialogVisible == true" class="addToolCss">
  8744. <div class="toolTop">
  8745. <div style="font-weight: bold">新增工具</div>
  8746. <div @click="toolDialogVisible = false">
  8747. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8748. </div>
  8749. </div>
  8750. <div class="tool_box">
  8751. <div class="tool_type_box">
  8752. <div class="chooseWho">
  8753. <div
  8754. :class="toolType == 0 ? 'isChooseActive' : ''"
  8755. @click="(toolType = 0), $forceUpdate()"
  8756. >
  8757. 互动类
  8758. </div>
  8759. <div
  8760. :class="toolType == 1 ? 'isChooseActive' : ''"
  8761. @click="(toolType = 1), $forceUpdate()"
  8762. >
  8763. 思维类
  8764. </div>
  8765. <div
  8766. :class="toolType == 2 ? 'isChooseActive' : ''"
  8767. @click="(toolType = 2), $forceUpdate()"
  8768. >
  8769. 测评类
  8770. </div>
  8771. <div
  8772. :class="toolType == 3 ? 'isChooseActive' : ''"
  8773. @click="(toolType = 3), $forceUpdate()"
  8774. >
  8775. 编程类
  8776. </div>
  8777. <div
  8778. :class="toolType == 5 ? 'isChooseActive' : ''"
  8779. @click="(toolType = 5), $forceUpdate()"
  8780. >
  8781. 学科类
  8782. </div>
  8783. </div>
  8784. </div>
  8785. <div>
  8786. <div class="toolSort" v-if="toolType == 0">
  8787. <div
  8788. class="tool"
  8789. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8790. @click="addTools2(10)"
  8791. >
  8792. <div class="whiteBIcon">
  8793. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8794. <div style="margin: 5px 0">倒计时</div>
  8795. </div>
  8796. <div class="check">
  8797. <div
  8798. v-if="checktoolArray.indexOf(10) == -1"
  8799. class="noChoose"
  8800. ></div>
  8801. <div v-else class="isChoose"></div>
  8802. </div>
  8803. </div>
  8804. <div
  8805. class="tool"
  8806. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8807. @click="addTools2(65)"
  8808. >
  8809. <div class="whiteBIcon">
  8810. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8811. <div style="margin: 5px 0">挑人</div>
  8812. </div>
  8813. <div class="check">
  8814. <div
  8815. v-if="checktoolArray.indexOf(65) == -1"
  8816. class="noChoose"
  8817. ></div>
  8818. <div v-else class="isChoose"></div>
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <div class="toolSort" v-if="toolType == 1">
  8823. <div
  8824. class="tool"
  8825. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8826. @click="addTools2(7)"
  8827. >
  8828. <div class="whiteBIcon">
  8829. <img
  8830. src="../../assets/icon/secondToolList/mindNetwork.png"
  8831. alt
  8832. />
  8833. <div style="margin: 5px 0">思维网格</div>
  8834. </div>
  8835. <div class="check">
  8836. <div
  8837. v-if="checktoolArray.indexOf(7) == -1"
  8838. class="noChoose"
  8839. ></div>
  8840. <div v-else class="isChoose"></div>
  8841. </div>
  8842. </div>
  8843. <div
  8844. class="tool"
  8845. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8846. @click="addTools2(1)"
  8847. >
  8848. <div class="whiteBIcon">
  8849. <img
  8850. src="../../assets/icon/secondToolList/whiteBoard.png"
  8851. alt
  8852. />
  8853. <div style="margin: 5px 0">电子白板</div>
  8854. </div>
  8855. <div class="check">
  8856. <div
  8857. v-if="checktoolArray.indexOf(1) == -1"
  8858. class="noChoose"
  8859. ></div>
  8860. <div v-else class="isChoose"></div>
  8861. </div>
  8862. </div>
  8863. <div
  8864. class="tool"
  8865. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8866. @click="addTools2(52)"
  8867. >
  8868. <div class="whiteBIcon">
  8869. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8870. <div style="margin: 5px 0">文档</div>
  8871. </div>
  8872. <div class="check">
  8873. <div
  8874. v-if="checktoolArray.indexOf(52) == -1"
  8875. class="noChoose"
  8876. ></div>
  8877. <div v-else class="isChoose"></div>
  8878. </div>
  8879. </div>
  8880. <div
  8881. class="tool"
  8882. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8883. @click="addTools2(3)"
  8884. >
  8885. <div class="whiteBIcon">
  8886. <img
  8887. src="../../assets/icon/secondToolList/mindMapping.png"
  8888. alt
  8889. />
  8890. <div style="margin: 5px 0">思维导图</div>
  8891. </div>
  8892. <div class="check">
  8893. <div
  8894. v-if="checktoolArray.indexOf(3) == -1"
  8895. class="noChoose"
  8896. ></div>
  8897. <div v-else class="isChoose"></div>
  8898. </div>
  8899. </div>
  8900. <div
  8901. class="tool"
  8902. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8903. @click="addTools2(48)"
  8904. >
  8905. <div class="whiteBIcon">
  8906. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8907. <div style="margin: 5px 0">表格</div>
  8908. </div>
  8909. <div class="check">
  8910. <div
  8911. v-if="checktoolArray.indexOf(48) == -1"
  8912. class="noChoose"
  8913. ></div>
  8914. <div v-else class="isChoose"></div>
  8915. </div>
  8916. </div>
  8917. </div>
  8918. <div class="toolSort" v-if="toolType == 6">
  8919. <div v-show="tooC == 49">
  8920. <img
  8921. @click="addTools(tooC, toolIndex, taskCount)"
  8922. src="../../assets/icon/fourthToolList/group.png"
  8923. alt
  8924. />
  8925. <div style="margin: 5px 0">学生分组</div>
  8926. </div>
  8927. </div>
  8928. <div class="toolSort" v-if="toolType == 2">
  8929. <div
  8930. class="tool"
  8931. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8932. @click="addTools2(16)"
  8933. >
  8934. <div class="whiteBIcon">
  8935. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8936. <div style="margin: 5px 0">作业提交</div>
  8937. </div>
  8938. <div class="check">
  8939. <div
  8940. v-if="checktoolArray.indexOf(16) == -1"
  8941. class="noChoose"
  8942. ></div>
  8943. <div v-else class="isChoose"></div>
  8944. </div>
  8945. </div>
  8946. <div
  8947. class="tool"
  8948. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8949. @click="addTools2(50)"
  8950. >
  8951. <div class="whiteBIcon">
  8952. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8953. <div style="margin: 5px 0">批量上传</div>
  8954. </div>
  8955. <div class="check">
  8956. <div
  8957. v-if="checktoolArray.indexOf(50) == -1"
  8958. class="noChoose"
  8959. ></div>
  8960. <div v-else class="isChoose"></div>
  8961. </div>
  8962. </div>
  8963. </div>
  8964. <div class="toolSort" v-if="toolType == 3">
  8965. <div
  8966. class="tool"
  8967. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8968. @click="addTools2(18)"
  8969. >
  8970. <div class="whiteBIcon">
  8971. <img
  8972. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8973. alt
  8974. />
  8975. <div style="margin: 5px 0">训练平台</div>
  8976. </div>
  8977. <div class="check">
  8978. <div
  8979. v-if="checktoolArray.indexOf(18) == -1"
  8980. class="noChoose"
  8981. ></div>
  8982. <div v-else class="isChoose"></div>
  8983. </div>
  8984. </div>
  8985. <div
  8986. class="tool"
  8987. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8988. @click="addTools2(21)"
  8989. >
  8990. <div class="whiteBIcon">
  8991. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8992. <div style="margin: 5px 0">AIoT Blockly</div>
  8993. </div>
  8994. <div class="check">
  8995. <div
  8996. v-if="checktoolArray.indexOf(21) == -1"
  8997. class="noChoose"
  8998. ></div>
  8999. <div v-else class="isChoose"></div>
  9000. </div>
  9001. </div>
  9002. <div
  9003. class="tool"
  9004. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9005. @click="addTools2(23)"
  9006. >
  9007. <div class="whiteBIcon">
  9008. <img
  9009. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9010. alt
  9011. />
  9012. <div style="margin: 5px 0">AI Python</div>
  9013. </div>
  9014. <div class="check">
  9015. <div
  9016. v-if="checktoolArray.indexOf(23) == -1"
  9017. class="noChoose"
  9018. ></div>
  9019. <div v-else class="isChoose"></div>
  9020. </div>
  9021. </div>
  9022. <div
  9023. class="tool"
  9024. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9025. @click="addTools2(24)"
  9026. >
  9027. <div class="whiteBIcon">
  9028. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9029. <div style="margin: 5px 0">AI Blockly</div>
  9030. </div>
  9031. <div class="check">
  9032. <div
  9033. v-if="checktoolArray.indexOf(24) == -1"
  9034. class="noChoose"
  9035. ></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div
  9040. class="tool"
  9041. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9042. @click="addTools2(32)"
  9043. >
  9044. <div class="whiteBIcon">
  9045. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9046. <div style="margin: 5px 0">源码编辑</div>
  9047. </div>
  9048. <div class="check">
  9049. <div
  9050. v-if="checktoolArray.indexOf(32) == -1"
  9051. class="noChoose"
  9052. ></div>
  9053. <div v-else class="isChoose"></div>
  9054. </div>
  9055. </div>
  9056. <div
  9057. class="tool"
  9058. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9059. @click="addTools2(57)"
  9060. >
  9061. <div class="whiteBIcon">
  9062. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9063. <div style="margin: 5px 0">CocoPi</div>
  9064. </div>
  9065. <div class="check">
  9066. <div
  9067. v-if="checktoolArray.indexOf(57) == -1"
  9068. class="noChoose"
  9069. ></div>
  9070. <div v-else class="isChoose"></div>
  9071. </div>
  9072. </div>
  9073. <div
  9074. class="tool"
  9075. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9076. @click="addTools2(63)"
  9077. >
  9078. <div class="whiteBIcon">
  9079. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9080. <div style="margin: 5px 0">海龟编程</div>
  9081. </div>
  9082. <div class="check">
  9083. <div
  9084. v-if="checktoolArray.indexOf(63) == -1"
  9085. class="noChoose"
  9086. ></div>
  9087. <div v-else class="isChoose"></div>
  9088. </div>
  9089. </div>
  9090. <div
  9091. class="tool"
  9092. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9093. @click="addTools2(71)"
  9094. >
  9095. <div class="whiteBIcon">
  9096. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9097. <div style="margin: 5px 0">AI智能体</div>
  9098. </div>
  9099. <div class="check">
  9100. <div
  9101. v-if="checktoolArray.indexOf(71) == -1"
  9102. class="noChoose"
  9103. ></div>
  9104. <div v-else class="isChoose"></div>
  9105. </div>
  9106. </div>
  9107. </div>
  9108. <div class="toolSort" v-if="toolType == 7">
  9109. <div
  9110. class="tool"
  9111. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9112. @click="addTools2(40)"
  9113. >
  9114. <div class="whiteBIcon">
  9115. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9116. <div style="margin: 5px 0">个人评价</div>
  9117. </div>
  9118. <div class="check">
  9119. <div
  9120. v-if="checktoolArray.indexOf(40) == -1"
  9121. class="noChoose"
  9122. ></div>
  9123. <div v-else class="isChoose"></div>
  9124. </div>
  9125. </div>
  9126. </div>
  9127. <div class="toolSort" v-if="toolType == 5">
  9128. <div
  9129. class="tool"
  9130. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9131. @click="addTools2(28)"
  9132. >
  9133. <div class="whiteBIcon">
  9134. <img
  9135. src="../../assets/icon/secondToolList/translation.png"
  9136. alt
  9137. />
  9138. <div style="margin: 5px 0">翻译</div>
  9139. </div>
  9140. <div class="check">
  9141. <div
  9142. v-if="checktoolArray.indexOf(28) == -1"
  9143. class="noChoose"
  9144. ></div>
  9145. <div v-else class="isChoose"></div>
  9146. </div>
  9147. </div>
  9148. <div
  9149. class="tool"
  9150. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9151. @click="addTools2(31)"
  9152. >
  9153. <div class="whiteBIcon">
  9154. <img
  9155. src="../../assets/icon/secondToolList/networkPanel.png"
  9156. alt
  9157. />
  9158. <div style="margin: 5px 0">数字画板</div>
  9159. </div>
  9160. <div class="check">
  9161. <div
  9162. v-if="checktoolArray.indexOf(31) == -1"
  9163. class="noChoose"
  9164. ></div>
  9165. <div v-else class="isChoose"></div>
  9166. </div>
  9167. </div>
  9168. <div
  9169. class="tool"
  9170. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9171. @click="addTools2(39)"
  9172. >
  9173. <div class="whiteBIcon">
  9174. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9175. <div style="margin: 5px 0">GeoGebra</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(39) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div>
  9185. <div
  9186. class="tool"
  9187. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9188. @click="addTools2(66)"
  9189. >
  9190. <div class="whiteBIcon">
  9191. <img
  9192. src="../../assets/icon/secondToolList/formulaEdi.png"
  9193. alt
  9194. />
  9195. <div style="margin: 5px 0">公式编辑</div>
  9196. </div>
  9197. <div class="check">
  9198. <div
  9199. v-if="checktoolArray.indexOf(66) == -1"
  9200. class="noChoose"
  9201. ></div>
  9202. <div v-else class="isChoose"></div>
  9203. </div>
  9204. </div>
  9205. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9206. <div class="whiteBIcon" @click="addTools2(67)">
  9207. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9208. <div style="margin: 5px 0">分子结构</div>
  9209. </div>
  9210. <div class="check" @click="addTools2(67)">
  9211. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9212. <div v-else class="isChoose"></div>
  9213. </div>
  9214. </div> -->
  9215. <div
  9216. class="tool"
  9217. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9218. @click="addTools2(68)"
  9219. >
  9220. <div class="whiteBIcon">
  9221. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9222. <div style="margin: 5px 0">时间轴</div>
  9223. </div>
  9224. <div class="check">
  9225. <div
  9226. v-if="checktoolArray.indexOf(68) == -1"
  9227. class="noChoose"
  9228. ></div>
  9229. <div v-else class="isChoose"></div>
  9230. </div>
  9231. </div>
  9232. <!-- <div
  9233. class="tool"
  9234. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9235. @click="addTools2(69)"
  9236. >
  9237. <div class="whiteBIcon">
  9238. <img src="../../assets/icon/secondToolList/english.png" alt />
  9239. <div style="margin: 5px 0">英语写作</div>
  9240. </div>
  9241. <div class="check">
  9242. <div
  9243. v-if="checktoolArray.indexOf(69) == -1"
  9244. class="noChoose"
  9245. ></div>
  9246. <div v-else class="isChoose"></div>
  9247. </div>
  9248. </div> -->
  9249. </div>
  9250. <div class="toolSort" v-if="toolType == 4">
  9251. <div
  9252. class="tool"
  9253. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9254. @click="addTools2(26)"
  9255. >
  9256. <div class="whiteBIcon">
  9257. <img
  9258. src="../../assets/icon/thirdToolList/courseDesign.png"
  9259. alt
  9260. />
  9261. <div style="margin: 5px 0">课程设计</div>
  9262. </div>
  9263. <div class="check">
  9264. <div
  9265. v-if="checktoolArray.indexOf(26) == -1"
  9266. class="noChoose"
  9267. ></div>
  9268. <div v-else class="isChoose"></div>
  9269. </div>
  9270. </div>
  9271. <div
  9272. class="tool"
  9273. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9274. @click="addTools2(25)"
  9275. >
  9276. <div class="whiteBIcon">
  9277. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9278. <div style="margin: 5px 0">目标管理</div>
  9279. </div>
  9280. <div class="check">
  9281. <div
  9282. v-if="checktoolArray.indexOf(25) == -1"
  9283. class="noChoose"
  9284. ></div>
  9285. <div v-else class="isChoose"></div>
  9286. </div>
  9287. </div>
  9288. </div>
  9289. </div>
  9290. </div>
  9291. <span
  9292. slot="footer"
  9293. class="dialog-footer"
  9294. style="display: block; text-align: center; padding: 0 0 10px 0"
  9295. >
  9296. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9297. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9298. </span>
  9299. </div>
  9300. <div
  9301. v-if="replyDialogVisible == true"
  9302. class="addDialogCss"
  9303. v-el-drag-dialog
  9304. >
  9305. <div class="pzTop">
  9306. <div class="teacherPz">
  9307. <div class="teacherPzImg">
  9308. <img src="../../assets/icon/teacherPz.png" alt="" />
  9309. </div>
  9310. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9311. </div>
  9312. <div @click="replyDialogVisible = false">
  9313. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9314. </div>
  9315. </div>
  9316. <div class="addPzBox">
  9317. <!-- <div class="addPzCheck">
  9318. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9319. >文本</span
  9320. >
  9321. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9322. >音频</span
  9323. >
  9324. </div> -->
  9325. <div style="height: calc(100% - 50px)">
  9326. <editor-bar
  9327. class="binfo_input pzConText"
  9328. style="width: 100% !important; margin: 0 auto"
  9329. placeholder="请输入回复描述"
  9330. v-model="reply"
  9331. @change="change"
  9332. ></editor-bar>
  9333. </div>
  9334. <div class="addTextCss" @click="addHf">确定</div>
  9335. </div>
  9336. </div>
  9337. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9338. <div class="pzTop">
  9339. <div class="teacherPz">
  9340. <div class="teacherPzImg">
  9341. <img src="../../assets/icon/teacherPz.png" alt="" />
  9342. </div>
  9343. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9344. </div>
  9345. <div @click="addPzDialog = false">
  9346. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9347. </div>
  9348. </div>
  9349. <div class="addPzBox">
  9350. <div class="addPzCheck">
  9351. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9352. >文本</span
  9353. >
  9354. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9355. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9356. >音频</span
  9357. >
  9358. </div>
  9359. <div style="height: calc(100% - 95px)">
  9360. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9361. v-if="pzType == 1"></textarea> -->
  9362. <editor-bar
  9363. class="binfo_input pzConText"
  9364. style="width: 100% !important"
  9365. placeholder="请输入任务描述"
  9366. v-model="pzConText"
  9367. @change="change"
  9368. v-if="pzType == 1"
  9369. ></editor-bar>
  9370. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9371. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9372. <div @click="addImg($event)">
  9373. <el-button type="primary">上传图片</el-button>
  9374. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9375. @change="beforeUpload1($event, 4)" />
  9376. </div>
  9377. </div> -->
  9378. </div>
  9379. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9380. 确定
  9381. </div>
  9382. </div>
  9383. </div>
  9384. <div v-if="proVisible" class="mask">
  9385. <div class="progressBox">
  9386. <!-- <div id="closePro" class="closeCss">
  9387. <img src="../../assets/icon/close.png" alt />
  9388. </div> -->
  9389. <div class="lbox">
  9390. <img src="../../assets/loading.gif" />上传中,请稍后
  9391. </div>
  9392. <div style="margin-bottom: 10px">
  9393. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9394. </div>
  9395. <el-progress
  9396. :text-inside="true"
  9397. :stroke-width="20"
  9398. :percentage="progress"
  9399. style="width: 80%"
  9400. ></el-progress>
  9401. </div>
  9402. </div>
  9403. <div v-if="proVisible2" class="mask">
  9404. <div class="progressBox">
  9405. <div class="lbox">
  9406. <img src="../../assets/loading.gif" />上传中,请稍后
  9407. </div>
  9408. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9409. </div>
  9410. </div>
  9411. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9412. <img width="100%" :src="dialogImageUrl" alt />
  9413. </el-dialog>
  9414. <el-dialog
  9415. :title="noteName != '' ? noteName : '查看问卷'"
  9416. :visible.sync="dialogVisible5"
  9417. :append-to-body="true"
  9418. width="1000px"
  9419. :before-close="handleClose"
  9420. class="dialog_diy dialog_diy3"
  9421. >
  9422. <div>
  9423. <div
  9424. class="a_add_title"
  9425. style="
  9426. display: flex;
  9427. flex-direction: row;
  9428. align-items: center;
  9429. justify-content: center;
  9430. "
  9431. >
  9432. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9433. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9434. </div>
  9435. <div class="a_addBox">
  9436. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9437. 题目内容
  9438. </div>
  9439. <div
  9440. class="a_add_box"
  9441. v-for="(item1, index1) in askJson.askCount"
  9442. :key="index1"
  9443. >
  9444. <div class="a_add_head">
  9445. <div style="display: flex">
  9446. <span class="askIndex"> {{ index1 + 1 }}</span>
  9447. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9448. </div>
  9449. <img
  9450. v-if="askJson.askJson[index1].img"
  9451. :src="askJson.askJson[index1].img"
  9452. style="height: 300px; margin-top: 10px; max-width: 100%"
  9453. />
  9454. </div>
  9455. <div class="a_add_body">
  9456. <div class="a_add_input">
  9457. <el-radio-group
  9458. v-model="radio[index1]"
  9459. v-if="
  9460. askJson.askJson[index1].type == '1' ||
  9461. !askJson.askJson[index1].type
  9462. "
  9463. >
  9464. <el-radio
  9465. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9466. .checkList"
  9467. :key="checkIndex"
  9468. :label="checkIndex"
  9469. :disabled="isAnswer"
  9470. class="redioStyle"
  9471. ><span v-html="item2"></span
  9472. ></el-radio>
  9473. </el-radio-group>
  9474. <el-checkbox-group
  9475. v-model="radio[index1]"
  9476. v-if="askJson.askJson[index1].type == '2'"
  9477. >
  9478. <el-checkbox
  9479. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9480. .checkList"
  9481. :key="checkIndex1"
  9482. :label="checkIndex1"
  9483. :disabled="isAnswer"
  9484. class="redioStyle"
  9485. ><span v-html="item2"></span>
  9486. </el-checkbox>
  9487. </el-checkbox-group>
  9488. </div>
  9489. </div>
  9490. </div>
  9491. </div>
  9492. </div>
  9493. <span slot="footer" class="dialog-footer">
  9494. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9495. >取 消</el-button
  9496. >
  9497. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9498. >确 定</el-button
  9499. >
  9500. </span>
  9501. </el-dialog>
  9502. <el-dialog
  9503. :title="noteName != '' ? noteName : '查看问卷'"
  9504. :visible.sync="dialogVisible5Teacher"
  9505. :append-to-body="true"
  9506. width="1000px"
  9507. :before-close="handleClose"
  9508. class="dialog_diy dialog_diy3"
  9509. >
  9510. <div>
  9511. <div class="w_name">
  9512. 学生姓名:<span>{{ sStudent.student }}</span>
  9513. </div>
  9514. <div
  9515. class="a_add_title"
  9516. style="
  9517. display: flex;
  9518. flex-direction: row;
  9519. align-items: center;
  9520. justify-content: center;
  9521. "
  9522. >
  9523. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9524. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9525. </div>
  9526. <div class="a_addBox">
  9527. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9528. 题目内容
  9529. </div>
  9530. <div
  9531. class="a_add_box"
  9532. v-for="(item1, index1) in askJson.askCount"
  9533. :key="index1"
  9534. >
  9535. <div class="a_add_head">
  9536. <div style="display: flex">
  9537. <span class="askIndex">{{ index1 + 1 }}</span>
  9538. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9539. </div>
  9540. <img
  9541. v-if="askJson.askJson[index1].img"
  9542. :src="askJson.askJson[index1].img"
  9543. style="height: 300px; margin-top: 10px; max-width: 100%"
  9544. />
  9545. </div>
  9546. <div class="a_add_body">
  9547. <div class="a_add_input">
  9548. <el-radio-group
  9549. v-model="radio[index1]"
  9550. v-if="
  9551. askJson.askJson[index1].type == '1' ||
  9552. !askJson.askJson[index1].type
  9553. "
  9554. >
  9555. <el-radio
  9556. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9557. .checkList"
  9558. :key="checkIndex"
  9559. :label="checkIndex"
  9560. :disabled="isAnswer"
  9561. class="redioStyle"
  9562. ><span v-html="item2"></span
  9563. ></el-radio>
  9564. </el-radio-group>
  9565. <el-checkbox-group
  9566. v-model="radio[index1]"
  9567. v-if="askJson.askJson[index1].type == '2'"
  9568. >
  9569. <el-checkbox
  9570. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9571. .checkList"
  9572. :key="checkIndex1"
  9573. :label="checkIndex1"
  9574. :disabled="isAnswer"
  9575. class="redioStyle"
  9576. ><span v-html="item2"></span>
  9577. </el-checkbox>
  9578. </el-checkbox-group>
  9579. </div>
  9580. </div>
  9581. </div>
  9582. </div>
  9583. </div>
  9584. <span slot="footer" class="dialog-footer">
  9585. <el-button
  9586. @click="dialogVisible5Teacher = false"
  9587. v-show="noteName == ''"
  9588. >取 消</el-button
  9589. >
  9590. <el-button
  9591. type="primary"
  9592. @click="addStudentAskTeacher"
  9593. v-show="noteName == ''"
  9594. >确 定</el-button
  9595. >
  9596. </span>
  9597. </el-dialog>
  9598. <el-dialog
  9599. :title="noteName != '' ? noteName : '查看选择题'"
  9600. :visible.sync="dialogVisibleChoice"
  9601. :append-to-body="true"
  9602. width="1000px"
  9603. :before-close="handleClose"
  9604. class="dialog_diy dialog_diy3"
  9605. >
  9606. <div>
  9607. <!-- <div class="a_add_title" style="
  9608. display: flex;
  9609. flex-direction: row;
  9610. align-items: center;
  9611. justify-content: center;
  9612. ">
  9613. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9614. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9615. </div> -->
  9616. <div class="a_addBox">
  9617. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9618. 题目内容
  9619. </div>
  9620. <div
  9621. class="a_add_box"
  9622. v-for="(item1, index1) in testJson.testCount"
  9623. :key="index1"
  9624. >
  9625. <div class="a_add_head">
  9626. <div style="display: flex">
  9627. <span class="askIndex">{{ index1 + 1 }}</span>
  9628. <div
  9629. v-if="testJson.testJson[index1].type == '1'"
  9630. style="margin-right: 5px; min-width: 70px"
  9631. >
  9632. (单选题)
  9633. </div>
  9634. <div
  9635. v-if="testJson.testJson[index1].type == '2'"
  9636. style="margin-right: 5px; min-width: 70px"
  9637. >
  9638. (多选题)
  9639. </div>
  9640. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9641. </div>
  9642. <img
  9643. v-if="testJson.testJson[index1].img"
  9644. :src="testJson.testJson[index1].img"
  9645. style="height: 300px; margin-top: 10px; max-width: 100%"
  9646. />
  9647. </div>
  9648. <div
  9649. class="timuImgBox"
  9650. v-if="
  9651. testJson.testJson[index1].timuList &&
  9652. testJson.testJson[index1].timuList.length
  9653. "
  9654. >
  9655. <div
  9656. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9657. :key="tIndex"
  9658. class="timuImg"
  9659. @click.stop="previewImg(timg.src)"
  9660. >
  9661. <img :src="timg.src" alt="" />
  9662. </div>
  9663. </div>
  9664. <div class="a_add_body">
  9665. <div class="a_add_input">
  9666. <el-radio-group
  9667. v-model="radio[index1]"
  9668. v-if="testJson.testJson[index1].type == '1'"
  9669. >
  9670. <div class="radioBox">
  9671. <el-radio
  9672. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9673. .checkList"
  9674. :key="checkIndex"
  9675. :label="checkIndex"
  9676. :disabled="isAnswer"
  9677. class="redioStyle"
  9678. >
  9679. <div
  9680. style="margin-right: 10px"
  9681. v-if="item2 && item2.imgType && item2.imgType == 1"
  9682. >
  9683. <div class="inImg" @click.stop="previewImg(item2.src)">
  9684. <img :src="item2.src" alt="" />
  9685. </div>
  9686. </div>
  9687. <span v-else v-html="item2"></span>
  9688. </el-radio>
  9689. </div>
  9690. </el-radio-group>
  9691. <el-checkbox-group
  9692. v-model="radio[index1]"
  9693. v-if="testJson.testJson[index1].type == '2'"
  9694. >
  9695. <div class="radioBox">
  9696. <el-checkbox
  9697. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9698. .checkList"
  9699. :key="checkIndex"
  9700. :label="checkIndex"
  9701. :disabled="isAnswer"
  9702. class="redioStyle"
  9703. >
  9704. <div
  9705. style="margin-right: 10px"
  9706. v-if="item2 && item2.imgType && item2.imgType == 1"
  9707. >
  9708. <div class="inImg" @click.stop="previewImg(item2.src)">
  9709. <img :src="item2.src" alt="" />
  9710. </div>
  9711. </div>
  9712. <span v-else v-html="item2"></span>
  9713. </el-checkbox>
  9714. </div>
  9715. </el-checkbox-group>
  9716. </div>
  9717. </div>
  9718. </div>
  9719. </div>
  9720. </div>
  9721. <span slot="footer" class="dialog-footer">
  9722. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9723. >取 消</el-button
  9724. >
  9725. <el-button
  9726. type="primary"
  9727. @click="addStudentTest"
  9728. v-show="noteName == ''"
  9729. >确 定</el-button
  9730. >
  9731. </span>
  9732. </el-dialog>
  9733. <el-dialog
  9734. :title="noteName != '' ? noteName : '查看选择题'"
  9735. :visible.sync="dialogVisibleChoiceTeacher"
  9736. :append-to-body="true"
  9737. width="1000px"
  9738. :before-close="handleClose"
  9739. class="dialog_diy dialog_diy3"
  9740. >
  9741. <div>
  9742. <div class="w_name">
  9743. 学生姓名:<span>{{ sStudent.student }}</span>
  9744. </div>
  9745. <div class="a_addBox">
  9746. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9747. 题目内容
  9748. </div>
  9749. <div
  9750. class="a_add_box"
  9751. v-for="(item1, index1) in testJson.testCount"
  9752. :key="index1"
  9753. >
  9754. <div class="a_add_head">
  9755. <div style="display: flex">
  9756. <span class="askIndex">{{ index1 + 1 }}</span>
  9757. <div
  9758. v-if="testJson.testJson[index1].type == '1'"
  9759. style="margin-right: 5px; min-width: 70px"
  9760. >
  9761. (单选题)
  9762. </div>
  9763. <div
  9764. v-if="testJson.testJson[index1].type == '2'"
  9765. style="margin-right: 5px; min-width: 70px"
  9766. >
  9767. (多选题)
  9768. </div>
  9769. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9770. </div>
  9771. <img
  9772. v-if="testJson.testJson[index1].img"
  9773. :src="testJson.testJson[index1].img"
  9774. style="height: 300px; margin-top: 10px; max-width: 100%"
  9775. />
  9776. </div>
  9777. <div
  9778. class="timuImgBox"
  9779. v-if="
  9780. testJson.testJson[index1].timuList &&
  9781. testJson.testJson[index1].timuList.length
  9782. "
  9783. >
  9784. <div
  9785. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9786. :key="tIndex"
  9787. class="timuImg"
  9788. @click.stop="previewImg(timg.src)"
  9789. >
  9790. <img :src="timg.src" alt="" />
  9791. </div>
  9792. </div>
  9793. <div class="a_add_body">
  9794. <div class="a_add_input">
  9795. <el-radio-group
  9796. v-model="radio[index1]"
  9797. v-if="testJson.testJson[index1].type == '1'"
  9798. >
  9799. <div class="radioBox">
  9800. <el-radio
  9801. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9802. .checkList"
  9803. :key="checkIndex"
  9804. :label="checkIndex"
  9805. :disabled="isAnswer"
  9806. class="redioStyle"
  9807. >
  9808. <div
  9809. style="margin-right: 10px"
  9810. v-if="item2 && item2.imgType && item2.imgType == 1"
  9811. >
  9812. <div class="inImg" @click.stop="previewImg(item2.src)">
  9813. <img :src="item2.src" alt="" />
  9814. </div>
  9815. </div>
  9816. <span v-else v-html="item2"></span>
  9817. </el-radio>
  9818. </div>
  9819. </el-radio-group>
  9820. <el-checkbox-group
  9821. v-model="radio[index1]"
  9822. v-if="testJson.testJson[index1].type == '2'"
  9823. >
  9824. <div class="radioBox">
  9825. <el-checkbox
  9826. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9827. .checkList"
  9828. :key="checkIndex"
  9829. :label="checkIndex"
  9830. :disabled="isAnswer"
  9831. class="redioStyle"
  9832. >
  9833. <div
  9834. style="margin-right: 10px"
  9835. v-if="item2 && item2.imgType && item2.imgType == 1"
  9836. >
  9837. <div class="inImg" @click.stop="previewImg(item2.src)">
  9838. <img :src="item2.src" alt="" />
  9839. </div>
  9840. </div>
  9841. <span v-else v-html="item2"></span>
  9842. </el-checkbox>
  9843. </div>
  9844. </el-checkbox-group>
  9845. </div>
  9846. </div>
  9847. </div>
  9848. </div>
  9849. </div>
  9850. <span slot="footer" class="dialog-footer">
  9851. <el-button
  9852. @click="dialogVisibleChoiceTeacher = false"
  9853. v-show="noteName == ''"
  9854. >取 消</el-button
  9855. >
  9856. <el-button
  9857. type="primary"
  9858. @click="addStudentTestTeacher"
  9859. v-show="noteName == ''"
  9860. >确 定</el-button
  9861. >
  9862. </span>
  9863. </el-dialog>
  9864. <el-dialog
  9865. title="查看富文本"
  9866. :visible.sync="dialogVisible1"
  9867. :append-to-body="true"
  9868. width="500px"
  9869. :before-close="handleClose"
  9870. class="dialog_diy textCss"
  9871. >
  9872. <el-form style="font-size: 20px">
  9873. <el-form-item label="文本标题" class="textTitle">
  9874. <div style="font-size: 20px">{{ text.name }}</div>
  9875. </el-form-item>
  9876. <div>富文本内容</div>
  9877. <div
  9878. v-html="text.url"
  9879. style="font-size: 18px; padding: 40px 0 0 0"
  9880. ></div>
  9881. </el-form>
  9882. <span slot="footer" class="dialog-footer">
  9883. <el-button type="primary" @click="dialogVisible1 = false"
  9884. >确定</el-button
  9885. >
  9886. </span>
  9887. </el-dialog>
  9888. <el-dialog
  9889. title="文件预览"
  9890. :visible.sync="dialogVisible3"
  9891. width="50%"
  9892. :before-close="handleClose"
  9893. class="dialog_diy"
  9894. :class="{ fullStyle: full }"
  9895. >
  9896. <div slot="title" class="header-title">
  9897. <div style="color: #fff">文件预览</div>
  9898. <div style="position: absolute; top: 19px; right: 50px">
  9899. <img
  9900. src="../../assets/full.png"
  9901. style="height: 16px; cursor: pointer"
  9902. alt=""
  9903. @click="fullTools"
  9904. />
  9905. </div>
  9906. </div>
  9907. <pdf
  9908. v-if="showPDF"
  9909. :pdfUrl="pptImgUrl"
  9910. style="width: 100%; height: 520px; overflow: auto"
  9911. :class="{ fullStyle: full }"
  9912. ></pdf>
  9913. <iframe
  9914. v-else
  9915. :src="pptImgUrl"
  9916. frameborder="0"
  9917. width="100%"
  9918. height="600"
  9919. :class="{ fullStyle: full }"
  9920. ></iframe>
  9921. </el-dialog>
  9922. <el-dialog
  9923. title="文件预览"
  9924. :visible.sync="dialogVisible6"
  9925. width="50%"
  9926. :before-close="handleClose"
  9927. class="dialog_diy"
  9928. >
  9929. <iframe
  9930. :src="pptImgUrl1"
  9931. frameborder="0"
  9932. width="100%"
  9933. height="600"
  9934. ></iframe>
  9935. </el-dialog>
  9936. <el-dialog
  9937. title="提示"
  9938. :visible.sync="dialogVisible4"
  9939. :append-to-body="true"
  9940. width="800px"
  9941. :before-close="handleClose"
  9942. class="dialog_diy notice"
  9943. >
  9944. <div>此功能暂未开放!</div>
  9945. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9946. </el-dialog>
  9947. <el-dialog
  9948. title="问答"
  9949. :visible.sync="answerDialogVisible"
  9950. :append-to-body="true"
  9951. width="800px"
  9952. :before-close="handleClose"
  9953. class="dialog_diy"
  9954. >
  9955. <div>
  9956. <div
  9957. style="
  9958. display: flex;
  9959. flex-wrap: nowrap;
  9960. flex-direction: column;
  9961. position: relative;
  9962. "
  9963. >
  9964. <div class="queTop" style="padding: 20px 0 20px 0">
  9965. <div class="question">
  9966. <img src="../../assets/icon/question.png" alt />
  9967. </div>
  9968. <div class="queTitle">
  9969. <div style="width: 90px; min-width: 90px">提问:</div>
  9970. <div>{{ answerQ }}</div>
  9971. </div>
  9972. </div>
  9973. <div class="ediBottom">
  9974. <textarea
  9975. rows="6"
  9976. class="binfo_input"
  9977. cols
  9978. style="width: 95%; height: 120px"
  9979. v-model="questionAnswer"
  9980. ></textarea>
  9981. </div>
  9982. </div>
  9983. </div>
  9984. <div slot="footer">
  9985. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9986. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9987. </div>
  9988. </el-dialog>
  9989. <el-dialog
  9990. title="问答"
  9991. :visible.sync="answerDialogVisibleTeacher"
  9992. :append-to-body="true"
  9993. width="800px"
  9994. :before-close="handleClose"
  9995. class="dialog_diy"
  9996. >
  9997. <div>
  9998. <div class="w_name">
  9999. 学生姓名:<span>{{ sStudent.student }}</span>
  10000. </div>
  10001. <div
  10002. style="
  10003. display: flex;
  10004. flex-wrap: nowrap;
  10005. flex-direction: column;
  10006. position: relative;
  10007. "
  10008. >
  10009. <div class="queTop" style="padding: 20px 0 20px 0">
  10010. <div class="question">
  10011. <img src="../../assets/icon/question.png" alt />
  10012. </div>
  10013. <div class="queTitle">
  10014. <div style="width: 90px; min-width: 90px">提问:</div>
  10015. <div>{{ answerQ }}</div>
  10016. </div>
  10017. </div>
  10018. <div class="ediBottom">
  10019. <textarea
  10020. rows="6"
  10021. class="binfo_input"
  10022. cols
  10023. style="width: 95%; height: 120px"
  10024. v-model="questionAnswer"
  10025. ></textarea>
  10026. </div>
  10027. </div>
  10028. </div>
  10029. <div slot="footer">
  10030. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10031. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10032. </div>
  10033. </el-dialog>
  10034. <el-dialog
  10035. title="倒计时"
  10036. :visible.sync="timeDialogVisible"
  10037. :append-to-body="true"
  10038. width="800px"
  10039. :before-close="handleClose"
  10040. class="dialog_diy"
  10041. >
  10042. <div>
  10043. <div style="margin-bottom: 20px; color: #999">
  10044. 提示:点击“+”或“-”修改倒计时时长。
  10045. </div>
  10046. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10047. </div>
  10048. <div slot="footer">
  10049. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10050. </div>
  10051. </el-dialog>
  10052. <el-dialog
  10053. title="权限设置"
  10054. :visible.sync="juriVisible"
  10055. :append-to-body="true"
  10056. width="400px"
  10057. :before-close="handleClose"
  10058. class="dialog_diy"
  10059. >
  10060. <div>
  10061. <div class="open_box">
  10062. <div class="switch_box">
  10063. <span>允许学生查看所有作业</span>
  10064. <el-switch
  10065. v-model="sIsOpen"
  10066. active-text=""
  10067. class="switchCss"
  10068. @change="updateSLook"
  10069. ></el-switch>
  10070. </div>
  10071. <div
  10072. class="switch_box"
  10073. v-if="
  10074. (courseDetail.userid == userid ||
  10075. (courseDetail.course_teacher &&
  10076. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10077. "
  10078. >
  10079. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10080. <span>禁止学生查看阶段</span>
  10081. <el-switch
  10082. v-model="IsLookOpen"
  10083. active-text=""
  10084. class="switchCss"
  10085. @change="updateLookOpen"
  10086. ></el-switch>
  10087. </div>
  10088. <div class="switch_box" v-if="courseDetail.userid == userid">
  10089. <span>开启跟随模式</span>
  10090. <el-switch
  10091. v-model="IsFollow"
  10092. active-text=""
  10093. class="switchCss"
  10094. @change="updateFollow"
  10095. ></el-switch>
  10096. </div>
  10097. </div>
  10098. </div>
  10099. <div slot="footer">
  10100. <el-button
  10101. style="background: #409efe; color: #fff"
  10102. @click="juriVisible = false"
  10103. >关 闭</el-button
  10104. >
  10105. </div>
  10106. </el-dialog>
  10107. <el-dialog
  10108. title="查看视频"
  10109. :visible.sync="videoVisible"
  10110. :append-to-body="true"
  10111. width="1000px"
  10112. :before-close="handleClose"
  10113. class="dialog_diy1"
  10114. >
  10115. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10116. <video-player
  10117. class="video-player vjs-custom-skin"
  10118. :playsinline="true"
  10119. :options="videoDetail"
  10120. @play="onPlayerPlay($event)"
  10121. style="width: 100%; height: 100%"
  10122. ></video-player>
  10123. </div>
  10124. <div slot="footer">
  10125. <el-button
  10126. style="background: #409efe; color: #fff"
  10127. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10128. >
  10129. 关 闭</el-button
  10130. >
  10131. </div>
  10132. </el-dialog>
  10133. <el-dialog
  10134. title="查看详情"
  10135. :visible.sync="commentDialogVisible"
  10136. :append-to-body="true"
  10137. width="800px"
  10138. :before-close="handleClose"
  10139. class="dialog_diy"
  10140. >
  10141. <div class="commentTop">
  10142. <div class="studentDetail">
  10143. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10144. <div class="nameAndTime">
  10145. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10146. <div>{{ commentDetail.time }}</div>
  10147. </div>
  10148. <div
  10149. class="returnBtn"
  10150. style="margin-left: auto; width: 80px"
  10151. v-if="
  10152. commentDetail.works &&
  10153. commentDetail.type == 0 &&
  10154. (tType == 1 || tType == 4)
  10155. "
  10156. @click="
  10157. showPicturePaint(
  10158. commentDetail.img ? commentDetail.img : commentDetail.works
  10159. )
  10160. "
  10161. >
  10162. 教师批注
  10163. </div>
  10164. </div>
  10165. <div
  10166. class="worksAnswer"
  10167. v-if="commentDetail.works && commentDetail.type == 2"
  10168. >
  10169. {{ JSON.parse(commentDetail.works)[0].answer }}
  10170. </div>
  10171. <div
  10172. class="worksAnswer"
  10173. v-if="commentDetail.works && commentDetail.type == 1"
  10174. >
  10175. <img
  10176. src="../../assets/teacherWork.png"
  10177. v-if="commentDetail.ateacher"
  10178. class="w_teachert"
  10179. />
  10180. <pdf
  10181. v-if="showPDF"
  10182. :pdfUrl="pptImgUrl"
  10183. style="width: 100%; height: 520px; overflow: auto"
  10184. :class="{ fullStyle: full }"
  10185. ></pdf>
  10186. <iframe
  10187. v-else
  10188. :src="pptImgUrl"
  10189. frameborder="0"
  10190. width="100%"
  10191. height="600"
  10192. :class="{ fullStyle: full }"
  10193. ></iframe>
  10194. </div>
  10195. <div
  10196. class="worksAnswer"
  10197. v-if="commentDetail.works && commentDetail.type == 0"
  10198. >
  10199. <img
  10200. src="../../assets/teacherWork.png"
  10201. v-if="commentDetail.ateacher"
  10202. class="w_teachert"
  10203. style="right: 105px"
  10204. />
  10205. <img
  10206. :src="commentDetail.works"
  10207. alt=""
  10208. @click="previewImg(commentDetail.works)"
  10209. />
  10210. </div>
  10211. <div
  10212. class="worksAnswer"
  10213. v-if="commentDetail.works && commentDetail.type == 3"
  10214. >
  10215. <img
  10216. src="../../assets/teacherWork.png"
  10217. v-if="commentDetail.ateacher"
  10218. class="w_teachert"
  10219. />
  10220. <video-player
  10221. class="video-player vjs-custom-skin"
  10222. :playsinline="true"
  10223. :options="videoDetail"
  10224. @play="onPlayerPlay($event)"
  10225. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10226. ></video-player>
  10227. </div>
  10228. <div
  10229. class="worksAnswer"
  10230. v-if="commentDetail.works && commentDetail.type == 10"
  10231. >
  10232. <div class="cont" v-html="commentDetail.works.text"></div>
  10233. </div>
  10234. <div
  10235. class="worksAnswer codeFileBox"
  10236. v-if="commentDetail.works && commentDetail.type == 12"
  10237. @click="downloadFile(commentDetail.works)"
  10238. >
  10239. <img src="../../assets/icon/codeFile.png" />
  10240. <div>点击下载文件</div>
  10241. </div>
  10242. <div
  10243. class="worksAnswer codeFileBox"
  10244. v-if="commentDetail.works && commentDetail.type == 15"
  10245. @click="
  10246. openCocoPi(
  10247. 57,
  10248. commentIndexJson.toolIndex,
  10249. commentDetail.userid,
  10250. commentDetail.sName
  10251. )
  10252. "
  10253. >
  10254. <img src="../../assets/icon/codeFile.png" />
  10255. <div>点击打开CocoPi</div>
  10256. </div>
  10257. <div
  10258. class="worksAnswer"
  10259. v-if="commentDetail.works && commentDetail.type == 13"
  10260. >
  10261. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10262. </div>
  10263. <div
  10264. class="worksAnswer"
  10265. v-if="commentDetail.works && commentDetail.type == 4"
  10266. >
  10267. <div class="evalCss">
  10268. <div class="nav">请选择星星进行评分</div>
  10269. <div class="middleBox" v-if="eScore.eStar">
  10270. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10271. <div class="nameAndrate">
  10272. <div>{{ e.value }}</div>
  10273. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10274. </div>
  10275. <div v-if="e.detail">{{ e.detail }}</div>
  10276. </div>
  10277. <div class="bz">
  10278. <textarea
  10279. disabled
  10280. rows="4"
  10281. class="pj"
  10282. style="
  10283. padding: 10px 5px;
  10284. width: 70%;
  10285. background: #f7f6f9;
  10286. font-size: 14px;
  10287. text-indent: 10px;
  10288. color: #000;
  10289. "
  10290. cols
  10291. v-model="eScore.eBzText"
  10292. placeholder="请输入评价内容..."
  10293. ></textarea>
  10294. </div>
  10295. </div>
  10296. </div>
  10297. </div>
  10298. <div class="comment">
  10299. <div class="commentList">
  10300. <div class="commentImg">
  10301. <img
  10302. @click="
  10303. isLikes(
  10304. commentDetail.wid,
  10305. userid,
  10306. 1,
  10307. null,
  10308. commentDetail.isLikes,
  10309. commentDetail.sName
  10310. )
  10311. "
  10312. :src="commentDetail.isLikes == true ? likes : noLikes"
  10313. alt=""
  10314. />
  10315. </div>
  10316. <div>{{ commentDetail.likesCount }}</div>
  10317. </div>
  10318. <div class="commentList">
  10319. <div class="commentImg">
  10320. <img src="../../assets/icon/comment/comment.png" alt="" />
  10321. </div>
  10322. <div>{{ commentDetail.commentCount }}</div>
  10323. </div>
  10324. </div>
  10325. <div class="drawPBox" v-if="commentDetail.img">
  10326. <span>教师批注</span>
  10327. <img
  10328. :src="commentDetail.img"
  10329. alt=""
  10330. @click="previewImg(commentDetail.img)"
  10331. />
  10332. <span
  10333. class="deleteImg"
  10334. v-if="tType == 1 || tType == 4"
  10335. @click.stop="deletePicturePaint(commentDetail.wid)"
  10336. style="
  10337. font-size: 14px;
  10338. width: auto !important;
  10339. color: #b4b4b4;
  10340. top: unset;
  10341. bottom: 0;
  10342. border: none;
  10343. padding: 0;
  10344. height: auto !important;
  10345. margin: 0;
  10346. "
  10347. >删除</span
  10348. >
  10349. </div>
  10350. </div>
  10351. <div class="commentBox">
  10352. <div class="pl">评论:</div>
  10353. <div style="max-height: 200px; overflow: auto">
  10354. <div
  10355. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10356. style="padding: 10px 0 0 0"
  10357. >
  10358. <div
  10359. class="studentDetail"
  10360. style="padding-top: 10px"
  10361. v-for="(co, coIndex) in commentDetail.commentJson"
  10362. :key="coIndex"
  10363. >
  10364. <div class="tx" style="min-width: 50px">
  10365. <img src="../../assets/avatar.png" alt="" />
  10366. </div>
  10367. <div class="plPerson">
  10368. <div class="plName">
  10369. <div>{{ co.commentPeople }}</div>
  10370. <div style="margin-left: 5px">
  10371. {{ co.commentTime }}
  10372. </div>
  10373. <div
  10374. class="deleteComment"
  10375. v-if="userid == co.userid"
  10376. @click="deleteComment(co.wid)"
  10377. >
  10378. 删除
  10379. </div>
  10380. </div>
  10381. <div class="plContent">{{ co.commentText }}</div>
  10382. </div>
  10383. </div>
  10384. </div>
  10385. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10386. </div>
  10387. </div>
  10388. <div style="margin-top: 10px">
  10389. <div class="displayBox">
  10390. <div
  10391. style="
  10392. color: #556db4;
  10393. font-size: 14px;
  10394. font-weight: bold;
  10395. padding-bottom: 10px;
  10396. "
  10397. >
  10398. 评价
  10399. </div>
  10400. <div class="easy_comment" v-if="false">
  10401. <div
  10402. v-for="(p, pIndex) in PlTextList"
  10403. :key="pIndex"
  10404. @click="fastText(p, 1)"
  10405. >
  10406. {{ p }}
  10407. </div>
  10408. </div>
  10409. </div>
  10410. <div>
  10411. <textarea
  10412. rows="3"
  10413. class="pj"
  10414. style="padding: 10px 5px"
  10415. cols
  10416. v-model="commentText"
  10417. placeholder="请输入评论"
  10418. ></textarea>
  10419. </div>
  10420. </div>
  10421. <div slot="footer">
  10422. <el-button
  10423. @click="
  10424. (commentDialogVisible = false),
  10425. (commentIndexJson = {}),
  10426. videoDetail.sources && videoDetail.sources[0]
  10427. ? (videoDetail.sources[0].src = '')
  10428. : ''
  10429. "
  10430. >取 消</el-button
  10431. >
  10432. <el-button
  10433. type="primary"
  10434. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10435. >确 定</el-button
  10436. >
  10437. </div>
  10438. </el-dialog>
  10439. <el-dialog
  10440. title="查看文档"
  10441. :visible.sync="fullDialogVisible"
  10442. :append-to-body="true"
  10443. width="100%"
  10444. :before-close="handleClose"
  10445. :show-close="false"
  10446. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10447. >
  10448. <div slot="title" class="header-title">
  10449. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10450. <div v-else style="color: #fff">查看文档</div>
  10451. <div
  10452. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10453. style="
  10454. cursor: pointer;
  10455. position: absolute;
  10456. top: 20px;
  10457. right: 20px;
  10458. color: #fff;
  10459. "
  10460. >
  10461. 退出全屏
  10462. </div>
  10463. </div>
  10464. <div style="height: 100%;position: relative;">
  10465. <el-button
  10466. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10467. size="medium"
  10468. type="primary"
  10469. @click="
  10470. () => {
  10471. (fullDialogVisible = false),
  10472. changeSplitScreenBehavior({ code: 99 });
  10473. }
  10474. "
  10475. style="
  10476. cursor: pointer;
  10477. position: absolute;
  10478. top: 10px;
  10479. right: 20px;
  10480. color: #fff;
  10481. "
  10482. >
  10483. 退出全屏
  10484. </el-button>
  10485. <div
  10486. class="wheel"
  10487. v-if="fulltype == 1"
  10488. style="
  10489. box-shadow: 0 0 6px 1px #f2f2f2;
  10490. height:100%;
  10491. width: 100%;
  10492. background: #f1f1f1;
  10493. "
  10494. >
  10495. <div class="title" style="width: 100%; box-sizing: border-box">
  10496. 查看文档
  10497. </div>
  10498. <el-form class="textBox" style="height: 90%">
  10499. <el-form-item class="textTitle">
  10500. <div style="font-size: 22px">
  10501. {{ fullUrl.name }}
  10502. </div>
  10503. </el-form-item>
  10504. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10505. <div
  10506. v-html="fullUrl.url"
  10507. class="textContent"
  10508. style="height: auto"
  10509. ></div>
  10510. </el-form>
  10511. </div>
  10512. <div
  10513. class="wheel"
  10514. v-else-if="
  10515. (fulltype == 2 || fulltype == 4) &&
  10516. fullUrl.indexOf(
  10517. 'https://view.officeapps.live.com/op/view.aspx?src='
  10518. ) != -1
  10519. "
  10520. style="width: 100%;height:100%; margin: 0 auto"
  10521. >
  10522. <iframe
  10523. style="width: 100%; height: 100%; border: none"
  10524. :src="fullUrl"
  10525. ></iframe>
  10526. </div>
  10527. <iframe
  10528. style="width: 100%; height: 100%; border: none"
  10529. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10530. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10531. :src="fullUrl"
  10532. ></iframe>
  10533. <iframe
  10534. style="width: 100%; height: 100%; border: none"
  10535. security="restricted"
  10536. v-else-if="(fulltype == 2 || fulltype == 4)"
  10537. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10538. :src="fullUrl"
  10539. ></iframe>
  10540. <pdf
  10541. v-else-if="fulltype == 3"
  10542. :pdfUrl="fullUrl"
  10543. style="width: 100%; height: 100%; overflow: auto"
  10544. ></pdf>
  10545. <iframe
  10546. style="width: 100%; height: 100%; border: none"
  10547. security="restricted"
  10548. v-if="(fulltype == 16)"
  10549. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10550. :src="fullUrl"
  10551. ></iframe>
  10552. </div>
  10553. <!-- <div slot="footer">
  10554. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10555. </div> -->
  10556. </el-dialog>
  10557. <el-dialog
  10558. title="个人评价"
  10559. :visible.sync="studentEvalDialogVisible"
  10560. :append-to-body="true"
  10561. width="800px"
  10562. :before-close="handleClose"
  10563. class="dialog_diy"
  10564. >
  10565. <div class="evalCss">
  10566. <div class="nav">请选择星星进行评分</div>
  10567. <div class="middleBox" v-if="eScore.eStar">
  10568. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10569. <div class="nameAndrate">
  10570. <div>{{ e.value }}</div>
  10571. <el-rate
  10572. v-model="eScore.eStar[eIndex]"
  10573. :disabled="isStar"
  10574. ></el-rate>
  10575. </div>
  10576. <div v-if="e.detail">{{ e.detail }}</div>
  10577. </div>
  10578. <div class="easy_comment" v-if="false">
  10579. <div
  10580. v-for="(p, pIndex) in PlTextList"
  10581. :key="pIndex"
  10582. @click="fastText(p, 2)"
  10583. >
  10584. {{ p }}
  10585. </div>
  10586. </div>
  10587. <div class="bz">
  10588. <textarea
  10589. :disabled="isStar"
  10590. rows="4"
  10591. class="pj"
  10592. style="
  10593. padding: 10px 5px;
  10594. width: 70%;
  10595. background: #f7f6f9;
  10596. font-size: 14px;
  10597. text-indent: 10px;
  10598. "
  10599. cols
  10600. v-model="eScore.eBzText"
  10601. placeholder="请输入评价内容..."
  10602. ></textarea>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. <div slot="footer">
  10607. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10608. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10609. >确 定</el-button
  10610. >
  10611. </div>
  10612. </el-dialog>
  10613. <el-dialog
  10614. title="个人评价"
  10615. :visible.sync="studentEvalDialogVisibleTeacher"
  10616. :append-to-body="true"
  10617. width="800px"
  10618. :before-close="handleClose"
  10619. class="dialog_diy"
  10620. >
  10621. <div class="w_name">
  10622. 学生姓名:<span>{{ sStudent.student }}</span>
  10623. </div>
  10624. <div class="evalCss">
  10625. <div class="nav">请选择星星进行评分</div>
  10626. <div class="middleBox" v-if="eScore.eStar">
  10627. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10628. <div class="nameAndrate">
  10629. <div>{{ e.value }}</div>
  10630. <el-rate
  10631. v-model="eScore.eStar[eIndex]"
  10632. :disabled="isStar"
  10633. ></el-rate>
  10634. </div>
  10635. <div v-if="e.detail">{{ e.detail }}</div>
  10636. </div>
  10637. <div class="easy_comment" v-if="false">
  10638. <div
  10639. v-for="(p, pIndex) in PlTextList"
  10640. :key="pIndex"
  10641. @click="fastText(p, 2)"
  10642. >
  10643. {{ p }}
  10644. </div>
  10645. </div>
  10646. <div class="bz">
  10647. <textarea
  10648. :disabled="isStar"
  10649. rows="4"
  10650. class="pj"
  10651. style="
  10652. padding: 10px 5px;
  10653. width: 70%;
  10654. background: #f7f6f9;
  10655. font-size: 14px;
  10656. text-indent: 10px;
  10657. "
  10658. cols
  10659. v-model="eScore.eBzText"
  10660. placeholder="请输入评价内容..."
  10661. ></textarea>
  10662. </div>
  10663. </div>
  10664. </div>
  10665. <div slot="footer">
  10666. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10667. >取 消</el-button
  10668. >
  10669. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10670. >确 定</el-button
  10671. >
  10672. </div>
  10673. </el-dialog>
  10674. <el-dialog
  10675. title="选择匹配"
  10676. :visible.sync="dialogVisibleSelect"
  10677. :append-to-body="true"
  10678. width="90%"
  10679. :before-close="handleClose"
  10680. class="dialog_diy dialog_diy3"
  10681. >
  10682. <div v-if="selectJson">
  10683. <div class="select_box2">
  10684. <div class="select_box2_title">
  10685. <div>选择匹配</div>
  10686. <div>请选择对应的答案进行答题!</div>
  10687. </div>
  10688. <div class="select_box2_box">
  10689. <div class="select_box2_img">
  10690. <img
  10691. :src="selectJson.url"
  10692. @click="previewImg(selectJson.url)"
  10693. alt=""
  10694. />
  10695. </div>
  10696. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10697. <div style="padding-top: 15px">
  10698. <div class="select_answer_title" v-if="isSelect">
  10699. {{ selectAnswer.stu }}
  10700. </div>
  10701. <div class="select_answer_title" v-else>
  10702. 根据题目选择对应答案
  10703. </div>
  10704. <div
  10705. class="select_box2_answer_box"
  10706. v-for="(item2, checkIndex) in selectJson.select"
  10707. :key="checkIndex"
  10708. >
  10709. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10710. <el-select
  10711. :disabled="isSelect"
  10712. v-model="selectAnswer.answer[checkIndex]"
  10713. placeholder="请选择正确答案"
  10714. >
  10715. <el-option
  10716. v-for="(e, eIndex) in selectJson.select"
  10717. :key="eIndex"
  10718. :label="e"
  10719. :value="eIndex"
  10720. >
  10721. </el-option>
  10722. </el-select>
  10723. </div>
  10724. </div>
  10725. <div
  10726. class="rightAnswerCss"
  10727. v-if="isSelect && (tType == 1 || tType == 4)"
  10728. >
  10729. <div
  10730. v-for="(a, aIndex) in selectJson.answer"
  10731. :key="aIndex"
  10732. class="rightAnswer"
  10733. >
  10734. <div
  10735. v-if="selectAnswer.answer[aIndex] === a"
  10736. style="color: #767de1"
  10737. >
  10738. 回答正确
  10739. </div>
  10740. <div v-else>回答错误</div>
  10741. <div
  10742. style="margin-left: 10px"
  10743. v-if="selectAnswer.answer[aIndex] !== a"
  10744. >
  10745. 正确答案:
  10746. </div>
  10747. <div
  10748. :class="
  10749. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10750. "
  10751. >
  10752. {{ selectJson.select[a] }}
  10753. </div>
  10754. </div>
  10755. </div>
  10756. </div>
  10757. <div class="upAnswerCss">
  10758. <el-button
  10759. type="primary"
  10760. @click="addSelectAnswer"
  10761. v-if="!isSelect"
  10762. >提交答案</el-button
  10763. >
  10764. </div>
  10765. </div>
  10766. </div>
  10767. </div>
  10768. </el-dialog>
  10769. <el-dialog
  10770. title="选择匹配"
  10771. :visible.sync="dialogVisibleSelectTeacher"
  10772. :append-to-body="true"
  10773. width="90%"
  10774. :before-close="handleClose"
  10775. class="dialog_diy dialog_diy3"
  10776. >
  10777. <div v-if="selectJson">
  10778. <div class="w_name">
  10779. 学生姓名:<span>{{ sStudent.student }}</span>
  10780. </div>
  10781. <div class="select_box2">
  10782. <div class="select_box2_title">
  10783. <div>选择匹配</div>
  10784. <div>请选择对应的答案进行答题!</div>
  10785. </div>
  10786. <div class="select_box2_box">
  10787. <div class="select_box2_img">
  10788. <img
  10789. :src="selectJson.url"
  10790. @click="previewImg(selectJson.url)"
  10791. alt=""
  10792. />
  10793. </div>
  10794. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10795. <div style="padding-top: 15px">
  10796. <div class="select_answer_title" v-if="isSelect">
  10797. {{ selectAnswer.stu }}
  10798. </div>
  10799. <div class="select_answer_title" v-else>
  10800. 根据题目选择对应答案
  10801. </div>
  10802. <div
  10803. class="select_box2_answer_box"
  10804. v-for="(item2, checkIndex) in selectJson.select"
  10805. :key="checkIndex"
  10806. >
  10807. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10808. <el-select
  10809. :disabled="isSelect"
  10810. v-model="selectAnswer.answer[checkIndex]"
  10811. placeholder="请选择正确答案"
  10812. >
  10813. <el-option
  10814. v-for="(e, eIndex) in selectJson.select"
  10815. :key="eIndex"
  10816. :label="e"
  10817. :value="eIndex"
  10818. >
  10819. </el-option>
  10820. </el-select>
  10821. </div>
  10822. </div>
  10823. <div
  10824. class="rightAnswerCss"
  10825. v-if="isSelect && (tType == 1 || tType == 4)"
  10826. >
  10827. <div
  10828. v-for="(a, aIndex) in selectJson.answer"
  10829. :key="aIndex"
  10830. class="rightAnswer"
  10831. >
  10832. <div
  10833. v-if="selectAnswer.answer[aIndex] === a"
  10834. style="color: #767de1"
  10835. >
  10836. 回答正确
  10837. </div>
  10838. <div v-else>回答错误</div>
  10839. <div
  10840. style="margin-left: 10px"
  10841. v-if="selectAnswer.answer[aIndex] !== a"
  10842. >
  10843. 正确答案:
  10844. </div>
  10845. <div
  10846. :class="
  10847. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10848. "
  10849. >
  10850. {{ selectJson.select[a] }}
  10851. </div>
  10852. </div>
  10853. </div>
  10854. </div>
  10855. <div class="upAnswerCss">
  10856. <el-button
  10857. type="primary"
  10858. @click="addSelectAnswerTeacher"
  10859. v-if="!isSelect"
  10860. >提交答案</el-button
  10861. >
  10862. </div>
  10863. </div>
  10864. </div>
  10865. </div>
  10866. </el-dialog>
  10867. <el-dialog
  10868. title="教师评分"
  10869. :visible.sync="dialogVisibleScore"
  10870. :append-to-body="true"
  10871. width="800px"
  10872. :before-close="handleClose"
  10873. class="dialog_diy"
  10874. >
  10875. <div>
  10876. <div class="studentDetail">
  10877. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10878. <div class="nameAndTime">
  10879. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10880. <div>{{ commentDetail.time }}</div>
  10881. </div>
  10882. </div>
  10883. <div
  10884. class="worksAnswer"
  10885. v-if="commentDetail.works && commentDetail.type == 2"
  10886. >
  10887. {{ JSON.parse(commentDetail.works)[0].answer }}
  10888. </div>
  10889. <div
  10890. class="worksAnswer"
  10891. v-if="commentDetail.works && commentDetail.type == 1"
  10892. >
  10893. <pdf
  10894. v-if="showPDF"
  10895. :pdfUrl="pptImgUrl"
  10896. style="width: 100%; height: 520px; overflow: auto"
  10897. :class="{ fullStyle: full }"
  10898. ></pdf>
  10899. <iframe
  10900. v-else
  10901. :src="pptImgUrl"
  10902. frameborder="0"
  10903. width="100%"
  10904. height="600"
  10905. :class="{ fullStyle: full }"
  10906. ></iframe>
  10907. </div>
  10908. <div
  10909. class="worksAnswer"
  10910. v-if="commentDetail.works && commentDetail.type == 0"
  10911. >
  10912. <img
  10913. :src="commentDetail.works"
  10914. alt=""
  10915. @click="previewImg(commentDetail.works)"
  10916. />
  10917. </div>
  10918. <div
  10919. class="worksAnswer"
  10920. v-if="commentDetail.works && commentDetail.type == 3"
  10921. >
  10922. <video-player
  10923. class="video-player vjs-custom-skin"
  10924. :playsinline="true"
  10925. :options="videoDetail"
  10926. @play="onPlayerPlay($event)"
  10927. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10928. ></video-player>
  10929. </div>
  10930. <div
  10931. class="worksAnswer codeFileBox"
  10932. v-if="commentDetail.works && commentDetail.type == 12"
  10933. @click="downloadFile(commentDetail.works)"
  10934. >
  10935. <img src="../../assets/icon/codeFile.png" />
  10936. <div>点击下载文件</div>
  10937. </div>
  10938. <div
  10939. class="worksAnswer codeFileBox"
  10940. v-if="commentDetail.works && commentDetail.type == 15"
  10941. @click="
  10942. openCocoPi(
  10943. 57,
  10944. commentIndexJson.toolIndex,
  10945. commentDetail.userid,
  10946. commentDetail.sName
  10947. )
  10948. "
  10949. >
  10950. <img src="../../assets/icon/codeFile.png" />
  10951. <div>点击打开CocoPi</div>
  10952. </div>
  10953. <div
  10954. class="worksAnswer"
  10955. v-if="commentDetail.works && commentDetail.type == 13"
  10956. >
  10957. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10958. </div>
  10959. <div class="scoreBox">
  10960. <span class="t">请输入分数</span>
  10961. <el-input-number
  10962. :disabled="courseDetail.userid != userid"
  10963. v-model="wScore"
  10964. :controls="false"
  10965. :min="0"
  10966. :max="100"
  10967. ></el-input-number>
  10968. </div>
  10969. <div class="scoreDetailBox">
  10970. <span class="t">评分评论</span>
  10971. <el-input
  10972. type="textarea"
  10973. :rows="5"
  10974. :disabled="courseDetail.userid != userid"
  10975. resize="none"
  10976. v-model="scoreDetail"
  10977. placeholder="请输入对学生的评价"
  10978. >
  10979. </el-input>
  10980. </div>
  10981. </div>
  10982. <span slot="footer" class="dialog-footer">
  10983. <el-button
  10984. @click="
  10985. (dialogVisibleScore = false),
  10986. (commentIndexJson = {}),
  10987. videoDetail.sources && videoDetail.sources[0]
  10988. ? (videoDetail.sources[0].src = '')
  10989. : ''
  10990. "
  10991. >取 消</el-button
  10992. >
  10993. <el-button
  10994. type="primary"
  10995. v-if="courseDetail.userid == userid"
  10996. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10997. >确 定
  10998. </el-button>
  10999. </span>
  11000. </el-dialog>
  11001. <el-dialog
  11002. title="排序"
  11003. :visible.sync="dialogVisibleSentence"
  11004. :append-to-body="true"
  11005. width="1000px"
  11006. :before-close="handleClose"
  11007. class="dialog_diy dialog_diy3"
  11008. >
  11009. <div>
  11010. <div class="sentenBox">
  11011. <div
  11012. v-for="(st, stIndex) in sentenceList"
  11013. :key="stIndex"
  11014. style="padding-bottom: 20px"
  11015. >
  11016. <div
  11017. style="padding: 15px 0 10px 20px"
  11018. class="sentenceTitle"
  11019. :index="stIndex + 1"
  11020. >
  11021. 题目{{ stIndex + 1 }}:请选择正确顺序
  11022. </div>
  11023. <div class="cardList" v-if="st.chooseSenList">
  11024. <div class="cardBox">
  11025. <div
  11026. v-for="(r, rIndex) in st.chooseSenList"
  11027. :key="rIndex"
  11028. @click="returnCard(r, stIndex, rIndex)"
  11029. >
  11030. <el-tooltip
  11031. class="item"
  11032. effect="light"
  11033. :content="r"
  11034. placement="top"
  11035. v-if="r != '' && r != undefined"
  11036. >
  11037. <div
  11038. :class="{
  11039. isCard: r,
  11040. isChooseCard: r == '' || r == undefined,
  11041. }"
  11042. >
  11043. <div>{{ r }}</div>
  11044. </div>
  11045. </el-tooltip>
  11046. <div
  11047. :class="{
  11048. isCard: r,
  11049. isChooseCard: r == '' || r == undefined,
  11050. }"
  11051. v-else
  11052. >
  11053. <div>{{ r }}</div>
  11054. </div>
  11055. </div>
  11056. </div>
  11057. </div>
  11058. <div class="cardList" v-if="st.addChangeSen">
  11059. <div class="cardBox">
  11060. <div
  11061. v-for="(s, sIndex) in st.addChangeSen"
  11062. :key="sIndex"
  11063. @click="setRightAnswer(s, stIndex, sIndex)"
  11064. >
  11065. <el-tooltip
  11066. class="item"
  11067. effect="light"
  11068. :content="s"
  11069. placement="top"
  11070. v-if="s != '' && s != undefined"
  11071. >
  11072. <div
  11073. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11074. >
  11075. <div>{{ s }}</div>
  11076. </div>
  11077. </el-tooltip>
  11078. <div
  11079. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11080. v-else
  11081. >
  11082. <div>{{ s }}</div>
  11083. </div>
  11084. </div>
  11085. </div>
  11086. </div>
  11087. </div>
  11088. </div>
  11089. </div>
  11090. <span slot="footer" class="dialog-footer">
  11091. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11092. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11093. </span>
  11094. </el-dialog>
  11095. <el-dialog
  11096. title="排序"
  11097. :visible.sync="dialogVisibleSentenceTeacher"
  11098. :append-to-body="true"
  11099. width="1000px"
  11100. :before-close="handleClose"
  11101. class="dialog_diy dialog_diy3"
  11102. >
  11103. <div>
  11104. <div class="w_name">
  11105. 学生姓名:<span>{{ sStudent.student }}</span>
  11106. </div>
  11107. <div class="sentenBox">
  11108. <div
  11109. v-for="(st, stIndex) in sentenceList"
  11110. :key="stIndex"
  11111. style="padding-bottom: 20px"
  11112. >
  11113. <div
  11114. style="padding: 15px 0 10px 20px"
  11115. class="sentenceTitle"
  11116. :index="stIndex + 1"
  11117. >
  11118. 题目{{ stIndex + 1 }}:请选择正确顺序
  11119. </div>
  11120. <div class="cardList" v-if="st.chooseSenList">
  11121. <div class="cardBox">
  11122. <div
  11123. v-for="(r, rIndex) in st.chooseSenList"
  11124. :key="rIndex"
  11125. @click="returnCard(r, stIndex, rIndex)"
  11126. >
  11127. <el-tooltip
  11128. class="item"
  11129. effect="light"
  11130. :content="r"
  11131. placement="top"
  11132. v-if="r != '' && r != undefined"
  11133. >
  11134. <div
  11135. :class="{
  11136. isCard: r,
  11137. isChooseCard: r == '' || r == undefined,
  11138. }"
  11139. >
  11140. <div>{{ r }}</div>
  11141. </div>
  11142. </el-tooltip>
  11143. <div
  11144. :class="{
  11145. isCard: r,
  11146. isChooseCard: r == '' || r == undefined,
  11147. }"
  11148. v-else
  11149. >
  11150. <div>{{ r }}</div>
  11151. </div>
  11152. </div>
  11153. </div>
  11154. </div>
  11155. <div class="cardList" v-if="st.addChangeSen">
  11156. <div class="cardBox">
  11157. <div
  11158. v-for="(s, sIndex) in st.addChangeSen"
  11159. :key="sIndex"
  11160. @click="setRightAnswer(s, stIndex, sIndex)"
  11161. >
  11162. <el-tooltip
  11163. class="item"
  11164. effect="light"
  11165. :content="s"
  11166. placement="top"
  11167. v-if="s != '' && s != undefined"
  11168. >
  11169. <div
  11170. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11171. >
  11172. <div>{{ s }}</div>
  11173. </div>
  11174. </el-tooltip>
  11175. <div
  11176. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11177. v-else
  11178. >
  11179. <div>{{ s }}</div>
  11180. </div>
  11181. </div>
  11182. </div>
  11183. </div>
  11184. </div>
  11185. </div>
  11186. </div>
  11187. <span slot="footer" class="dialog-footer">
  11188. <el-button @click="dialogVisibleSentenceTeacher = false"
  11189. >取 消</el-button
  11190. >
  11191. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11192. </span>
  11193. </el-dialog>
  11194. <el-dialog
  11195. title="排序"
  11196. :visible.sync="dialogVisibleSentence1"
  11197. :append-to-body="true"
  11198. width="1000px"
  11199. :before-close="handleClose"
  11200. class="dialog_diy dialog_diy3"
  11201. >
  11202. <div>
  11203. <div class="sentenBox">
  11204. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11205. {{ sentenceList1.stuName }}的作业
  11206. </div>
  11207. <div
  11208. v-for="(st, stIndex) in sentenceList1"
  11209. :key="stIndex"
  11210. style="padding-bottom: 20px"
  11211. >
  11212. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11213. 第{{ stIndex + 1 }}题
  11214. </div>
  11215. <div class="isWrong">
  11216. <div class="cardList1" v-if="st.chooseSenList">
  11217. <div class="cardBox">
  11218. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11219. <el-tooltip
  11220. class="item"
  11221. effect="light"
  11222. :content="s"
  11223. placement="top"
  11224. >
  11225. <div class="isCard">
  11226. <div>{{ s }}</div>
  11227. </div>
  11228. </el-tooltip>
  11229. </div>
  11230. </div>
  11231. <div class="cardAnswerBox">
  11232. 组成句子:{{ st.chooseSenList.join(" ") }}
  11233. </div>
  11234. </div>
  11235. <div v-if="tType == 2" class="isTj">
  11236. <div class="isTjImg">
  11237. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11238. </div>
  11239. <div>已提交</div>
  11240. </div>
  11241. <div
  11242. class="answerRight isTj"
  11243. v-if="
  11244. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11245. (tType == 1 || tType == 4)
  11246. "
  11247. >
  11248. <div class="isTjImg">
  11249. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11250. </div>
  11251. <div>回答正确</div>
  11252. </div>
  11253. <div
  11254. class="answerRight isTj"
  11255. v-if="
  11256. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11257. (tType == 1 || tType == 4)
  11258. "
  11259. >
  11260. <div class="isTjImg">
  11261. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11262. </div>
  11263. <div>回答错误</div>
  11264. </div>
  11265. </div>
  11266. <div
  11267. v-if="
  11268. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11269. (tType == 1 || tType == 4)
  11270. "
  11271. >
  11272. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11273. <div
  11274. class="cardList"
  11275. v-if="st.rightAnswer"
  11276. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11277. >
  11278. <div class="cardBox">
  11279. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11280. <el-tooltip
  11281. class="item"
  11282. effect="light"
  11283. :content="r"
  11284. placement="top"
  11285. >
  11286. <div class="isCard1">
  11287. <div>{{ r }}</div>
  11288. </div>
  11289. </el-tooltip>
  11290. </div>
  11291. </div>
  11292. <div class="cardAnswerBox">
  11293. 组成句子:{{ st.rightAnswer.join(" ") }}
  11294. </div>
  11295. </div>
  11296. </div>
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <span slot="footer" class="dialog-footer">
  11301. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11302. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11303. >确 定</el-button
  11304. >
  11305. </span>
  11306. </el-dialog>
  11307. <el-dialog
  11308. title="教师提交作业"
  11309. :visible.sync="dialogVisibleWorks"
  11310. :append-to-body="true"
  11311. width="500px"
  11312. :before-close="handleClose"
  11313. class="dialog_change"
  11314. >
  11315. <div class="marginT">
  11316. <div class="w_name">
  11317. 学生姓名:<span>{{ sStudent.student }}</span>
  11318. </div>
  11319. <div>上传文件</div>
  11320. <div style="display: flex; gap: 10px">
  11321. <div
  11322. class="chapter_add"
  11323. @click="addImg($event)"
  11324. v-if="studyJuri[0].cover.length == 0"
  11325. >
  11326. <div class="up_photo">
  11327. <img src="../../assets/icon/uploadImg.png" alt />
  11328. </div>
  11329. <!-- <input
  11330. type="file"
  11331. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11332. style="display: none"
  11333. @change="beforeUpload1($event, 1)"
  11334. /> -->
  11335. <input
  11336. type="file"
  11337. accept="*"
  11338. style="display: none"
  11339. @change="beforeUpload1($event, 1)"
  11340. />
  11341. <!-- <input
  11342. type="file"
  11343. accept="image/*"
  11344. capture="camera"
  11345. style="display: none"
  11346. @change="beforeUpload1($event, 1)"
  11347. /> -->
  11348. </div>
  11349. <div
  11350. class="chapter_add"
  11351. @click="addImg($event)"
  11352. v-if="studyJuri[0].cover.length == 0"
  11353. >
  11354. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11355. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11356. </div>
  11357. <input
  11358. type="file"
  11359. accept="image/*"
  11360. capture="camera"
  11361. style="display: none"
  11362. @change="beforeUpload1($event, 1)"
  11363. />
  11364. </div>
  11365. </div>
  11366. <!-- capture="camera" -->
  11367. <div
  11368. class="chapter_add"
  11369. style="
  11370. display: flex;
  11371. width: 100%;
  11372. flex-direction: row;
  11373. flex-wrap: wrap;
  11374. justify-content: flex-start;
  11375. padding: 15px 0;
  11376. "
  11377. v-if="studyJuri[0].cover.length > 0"
  11378. >
  11379. <div class="upCover">
  11380. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11381. <img :src="word" alt v-else-if="fileType == 1" />
  11382. <img :src="video" alt v-else-if="fileType == 2" />
  11383. <img :src="word2" alt v-else-if="fileType == 3" />
  11384. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11385. <div class="deleteWord" @click="clean(1)">
  11386. <img src="../../assets/icon/deleteWorks.png" alt />
  11387. </div>
  11388. </div>
  11389. </div>
  11390. </div>
  11391. <div
  11392. class="upload_send"
  11393. @click="addCourseWorksTeacher(taskCount)"
  11394. v-if="!proVisible"
  11395. >
  11396. 提交
  11397. </div>
  11398. </el-dialog>
  11399. <ImgDraw
  11400. :drawShow="drawShow"
  11401. @closeDraw="closeDraw"
  11402. @addImgDraw="addImgDraw"
  11403. :bg="bg"
  11404. ></ImgDraw>
  11405. <el-dialog
  11406. title="表格"
  11407. :visible.sync="dialogVisibleTable"
  11408. :append-to-body="true"
  11409. width="95%"
  11410. :before-close="handleClose"
  11411. class="dialog_diy"
  11412. >
  11413. <el-form>
  11414. <div
  11415. style="
  11416. display: flex;
  11417. align-items: center;
  11418. justify-content: space-between;
  11419. "
  11420. >
  11421. <span>表格内容</span>
  11422. <el-button type="primary" size="small" @click="returnTableText"
  11423. >还原模板</el-button
  11424. >
  11425. </div>
  11426. <Table
  11427. v-model="tableJson.text"
  11428. @change="change"
  11429. v-if="dialogVisibleTable"
  11430. ></Table>
  11431. </el-form>
  11432. <span slot="footer" class="dialog-footer">
  11433. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11434. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11435. </span>
  11436. </el-dialog>
  11437. <el-dialog
  11438. title="表格"
  11439. :visible.sync="dialogVisibleTableTeacher"
  11440. :append-to-body="true"
  11441. width="95%"
  11442. :before-close="handleClose"
  11443. class="dialog_diy"
  11444. >
  11445. <el-form>
  11446. <div class="w_name">
  11447. 学生姓名:<span>{{ sStudent.student }}</span>
  11448. </div>
  11449. <div>表格内容</div>
  11450. <Table
  11451. v-model="tableJson.text"
  11452. @change="change"
  11453. v-if="dialogVisibleTableTeacher"
  11454. ></Table>
  11455. </el-form>
  11456. <span slot="footer" class="dialog-footer">
  11457. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11458. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11459. </span>
  11460. </el-dialog>
  11461. <el-dialog
  11462. title="文档"
  11463. :visible.sync="dialogVisibleWord"
  11464. :append-to-body="true"
  11465. width="95%"
  11466. :before-close="handleClose"
  11467. class="dialog_diy"
  11468. >
  11469. <el-form>
  11470. <div
  11471. style="
  11472. display: flex;
  11473. align-items: center;
  11474. justify-content: space-between;
  11475. "
  11476. >
  11477. <span>文档内容</span>
  11478. <el-button type="primary" size="small" @click="returnWordText"
  11479. >还原模板</el-button
  11480. >
  11481. </div>
  11482. <editor-bar
  11483. v-model="wordJson.text"
  11484. v-if="dialogVisibleWord"
  11485. ></editor-bar>
  11486. </el-form>
  11487. <span slot="footer" class="dialog-footer">
  11488. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11489. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11490. </span>
  11491. </el-dialog>
  11492. <el-dialog
  11493. title="文档"
  11494. :visible.sync="dialogVisibleWordTeacher"
  11495. :append-to-body="true"
  11496. width="95%"
  11497. :before-close="handleClose"
  11498. class="dialog_diy"
  11499. >
  11500. <el-form>
  11501. <div class="w_name">
  11502. 学生姓名:<span>{{ sStudent.student }}</span>
  11503. </div>
  11504. <div>文档内容</div>
  11505. <editor-bar
  11506. v-model="wordJson.text"
  11507. v-if="dialogVisibleWordTeacher"
  11508. ></editor-bar>
  11509. </el-form>
  11510. <span slot="footer" class="dialog-footer">
  11511. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11512. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11513. </span>
  11514. </el-dialog>
  11515. <el-dialog
  11516. title="表格"
  11517. :visible.sync="dialogVisibleTable2"
  11518. :append-to-body="true"
  11519. width="95%"
  11520. :before-close="handleClose"
  11521. class="dialog_diy"
  11522. >
  11523. <el-form>
  11524. <div class="cont" v-html="tableJson.text"></div>
  11525. </el-form>
  11526. <span slot="footer" class="dialog-footer">
  11527. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11528. </span>
  11529. </el-dialog>
  11530. <el-dialog
  11531. title="文档"
  11532. :visible.sync="dialogVisibleTable3"
  11533. :append-to-body="true"
  11534. width="95%"
  11535. :before-close="handleClose"
  11536. class="dialog_diy"
  11537. >
  11538. <el-form>
  11539. <div class="cont" v-html="tableJson.text"></div>
  11540. </el-form>
  11541. <span slot="footer" class="dialog-footer">
  11542. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11543. </span>
  11544. </el-dialog>
  11545. <el-dialog
  11546. title="分组设置"
  11547. :visible.sync="dialogVisibleGroup"
  11548. :append-to-body="true"
  11549. width="95%"
  11550. :before-close="handleClose"
  11551. class="dialog_diy"
  11552. >
  11553. <div v-if="dialogVisibleGroup">
  11554. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11555. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11556. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11557. </div>
  11558. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11559. @click="lockChair">
  11560. 锁定位置
  11561. </div>
  11562. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11563. 解锁位置
  11564. </div> -->
  11565. <div class="group_switch">
  11566. <span>开放选座</span>
  11567. <el-switch
  11568. v-model="islock"
  11569. active-text=""
  11570. class="switchCss"
  11571. @change="lockChair"
  11572. ></el-switch>
  11573. </div>
  11574. <div
  11575. type="primary"
  11576. @click="updateGroup"
  11577. class="returnBtn"
  11578. style="background-color: #225bc7"
  11579. >
  11580. 分组设置
  11581. </div>
  11582. </div>
  11583. <div>
  11584. <div
  11585. class="g_d_box"
  11586. v-if="groupJson.group && groupStudent[toolindex]"
  11587. >
  11588. <div
  11589. class="g_d_group"
  11590. v-for="(g, gindex) in groupJson.group"
  11591. :key="gindex"
  11592. >
  11593. <div class="g_d_group_chair">
  11594. <div v-if="groupJson.number > 1">
  11595. <span
  11596. :class="{
  11597. isChair:
  11598. groupStudent[toolindex][gindex] &&
  11599. groupStudent[toolindex][gindex][0],
  11600. updateChair:
  11601. courseDetail.userid == userid &&
  11602. groupStudent[toolindex][gindex] &&
  11603. groupStudent[toolindex][gindex][0] &&
  11604. groupJson.islock == 2,
  11605. }"
  11606. ><span
  11607. class="updateChairBtn"
  11608. @click="
  11609. updateGroupChair(
  11610. groupStudent[toolindex][gindex] &&
  11611. groupStudent[toolindex][gindex][0]
  11612. )
  11613. "
  11614. >修改</span
  11615. ></span
  11616. ><span>{{
  11617. groupStudent[toolindex][gindex] &&
  11618. groupStudent[toolindex][gindex][0]
  11619. ? groupStudent[toolindex][gindex] &&
  11620. groupStudent[toolindex][gindex][0].name
  11621. : "空位置"
  11622. }}</span>
  11623. </div>
  11624. <div v-if="groupJson.number > 4">
  11625. <span
  11626. :class="{
  11627. isChair:
  11628. groupStudent[toolindex][gindex] &&
  11629. groupStudent[toolindex][gindex][4],
  11630. updateChair:
  11631. courseDetail.userid == userid &&
  11632. groupStudent[toolindex][gindex] &&
  11633. groupStudent[toolindex][gindex][4] &&
  11634. groupJson.islock == 2,
  11635. }"
  11636. ><span
  11637. class="updateChairBtn"
  11638. @click="
  11639. updateGroupChair(
  11640. groupStudent[toolindex][gindex] &&
  11641. groupStudent[toolindex][gindex][4]
  11642. )
  11643. "
  11644. >修改</span
  11645. ></span
  11646. ><span>{{
  11647. groupStudent[toolindex][gindex] &&
  11648. groupStudent[toolindex][gindex][4]
  11649. ? groupStudent[toolindex][gindex] &&
  11650. groupStudent[toolindex][gindex][4].name
  11651. : "空位置"
  11652. }}</span>
  11653. </div>
  11654. <div v-if="groupJson.number > 8">
  11655. <span
  11656. :class="{
  11657. isChair:
  11658. groupStudent[toolindex][gindex] &&
  11659. groupStudent[toolindex][gindex][8],
  11660. updateChair:
  11661. courseDetail.userid == userid &&
  11662. groupStudent[toolindex][gindex] &&
  11663. groupStudent[toolindex][gindex][8] &&
  11664. groupJson.islock == 2,
  11665. }"
  11666. ><span
  11667. class="updateChairBtn"
  11668. @click="
  11669. updateGroupChair(
  11670. groupStudent[toolindex][gindex] &&
  11671. groupStudent[toolindex][gindex][8]
  11672. )
  11673. "
  11674. >修改</span
  11675. ></span
  11676. ><span>{{
  11677. groupStudent[toolindex][gindex] &&
  11678. groupStudent[toolindex][gindex][8]
  11679. ? groupStudent[toolindex][gindex] &&
  11680. groupStudent[toolindex][gindex][8].name
  11681. : "空位置"
  11682. }}</span>
  11683. </div>
  11684. </div>
  11685. <div class="g_d_group_tableBox">
  11686. <div class="g_d_group_chair2">
  11687. <div v-if="groupJson.number > 2">
  11688. <span
  11689. :class="{
  11690. isChair:
  11691. groupStudent[toolindex][gindex] &&
  11692. groupStudent[toolindex][gindex][2],
  11693. updateChair:
  11694. courseDetail.userid == userid &&
  11695. groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][2] &&
  11697. groupJson.islock == 2,
  11698. }"
  11699. ><span
  11700. class="updateChairBtn"
  11701. @click="
  11702. updateGroupChair(
  11703. groupStudent[toolindex][gindex] &&
  11704. groupStudent[toolindex][gindex][2]
  11705. )
  11706. "
  11707. >修改</span
  11708. ></span
  11709. ><span>{{
  11710. groupStudent[toolindex][gindex] &&
  11711. groupStudent[toolindex][gindex][2]
  11712. ? groupStudent[toolindex][gindex] &&
  11713. groupStudent[toolindex][gindex][2].name
  11714. : "空位置"
  11715. }}</span>
  11716. </div>
  11717. <div v-if="groupJson.number > 6">
  11718. <span
  11719. :class="{
  11720. isChair:
  11721. groupStudent[toolindex][gindex] &&
  11722. groupStudent[toolindex][gindex][6],
  11723. updateChair:
  11724. courseDetail.userid == userid &&
  11725. groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][6] &&
  11727. groupJson.islock == 2,
  11728. }"
  11729. ><span
  11730. class="updateChairBtn"
  11731. @click="
  11732. updateGroupChair(
  11733. groupStudent[toolindex][gindex] &&
  11734. groupStudent[toolindex][gindex][6]
  11735. )
  11736. "
  11737. >修改</span
  11738. ></span
  11739. ><span>{{
  11740. groupStudent[toolindex][gindex] &&
  11741. groupStudent[toolindex][gindex][6]
  11742. ? groupStudent[toolindex][gindex] &&
  11743. groupStudent[toolindex][gindex][6].name
  11744. : "空位置"
  11745. }}</span>
  11746. </div>
  11747. </div>
  11748. <div class="g_d_group_table">
  11749. <div>
  11750. {{ g.name }}
  11751. </div>
  11752. <div>
  11753. <div
  11754. v-if="
  11755. courseDetail.userid == userid && groupJson.islock == 2
  11756. "
  11757. @click="deleteGroupChair(gindex)"
  11758. >
  11759. 移除组员
  11760. </div>
  11761. <div
  11762. @click="selectGroup(gindex)"
  11763. v-else-if="
  11764. groupStudentUid[toolindex] &&
  11765. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11766. "
  11767. >
  11768. 加入分组
  11769. </div>
  11770. <div
  11771. @click="
  11772. exitGroup(
  11773. groupStudent[toolindex][gindex] &&
  11774. groupStudent[toolindex][gindex][
  11775. groupStudentUid[toolindex][gindex].indexOf(userid)
  11776. ].id
  11777. )
  11778. "
  11779. v-else-if="
  11780. groupStudentUid[toolindex] &&
  11781. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11782. "
  11783. >
  11784. 退出分组
  11785. </div>
  11786. </div>
  11787. </div>
  11788. <div class="g_d_group_chair2">
  11789. <div v-if="groupJson.number > 3">
  11790. <span
  11791. :class="{
  11792. isChair:
  11793. groupStudent[toolindex][gindex] &&
  11794. groupStudent[toolindex][gindex][3],
  11795. updateChair:
  11796. courseDetail.userid == userid &&
  11797. groupStudent[toolindex][gindex] &&
  11798. groupStudent[toolindex][gindex][3] &&
  11799. groupJson.islock == 2,
  11800. }"
  11801. ><span
  11802. class="updateChairBtn"
  11803. @click="
  11804. updateGroupChair(
  11805. groupStudent[toolindex][gindex] &&
  11806. groupStudent[toolindex][gindex][3]
  11807. )
  11808. "
  11809. >修改</span
  11810. ></span
  11811. ><span>{{
  11812. groupStudent[toolindex][gindex] &&
  11813. groupStudent[toolindex][gindex][3]
  11814. ? groupStudent[toolindex][gindex] &&
  11815. groupStudent[toolindex][gindex][3].name
  11816. : "空位置"
  11817. }}</span>
  11818. </div>
  11819. <div v-if="groupJson.number > 7">
  11820. <span
  11821. :class="{
  11822. isChair:
  11823. groupStudent[toolindex][gindex] &&
  11824. groupStudent[toolindex][gindex][7],
  11825. updateChair:
  11826. courseDetail.userid == userid &&
  11827. groupStudent[toolindex][gindex] &&
  11828. groupStudent[toolindex][gindex][7] &&
  11829. groupJson.islock == 2,
  11830. }"
  11831. ><span
  11832. class="updateChairBtn"
  11833. @click="
  11834. updateGroupChair(
  11835. groupStudent[toolindex][gindex] &&
  11836. groupStudent[toolindex][gindex][7]
  11837. )
  11838. "
  11839. >修改</span
  11840. ></span
  11841. ><span>{{
  11842. groupStudent[toolindex][gindex] &&
  11843. groupStudent[toolindex][gindex][7]
  11844. ? groupStudent[toolindex][gindex] &&
  11845. groupStudent[toolindex][gindex][7].name
  11846. : "空位置"
  11847. }}</span>
  11848. </div>
  11849. </div>
  11850. </div>
  11851. <div class="g_d_group_chair">
  11852. <div v-if="groupJson.number > 1">
  11853. <span
  11854. :class="{
  11855. isChair:
  11856. groupStudent[toolindex][gindex] &&
  11857. groupStudent[toolindex][gindex][1],
  11858. updateChair:
  11859. courseDetail.userid == userid &&
  11860. groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][1] &&
  11862. groupJson.islock == 2,
  11863. }"
  11864. ><span
  11865. class="updateChairBtn"
  11866. @click="
  11867. updateGroupChair(
  11868. groupStudent[toolindex][gindex] &&
  11869. groupStudent[toolindex][gindex][1]
  11870. )
  11871. "
  11872. >修改</span
  11873. ></span
  11874. ><span>{{
  11875. groupStudent[toolindex][gindex] &&
  11876. groupStudent[toolindex][gindex][1]
  11877. ? groupStudent[toolindex][gindex] &&
  11878. groupStudent[toolindex][gindex][1].name
  11879. : "空位置"
  11880. }}</span>
  11881. </div>
  11882. <div v-if="groupJson.number > 5">
  11883. <span
  11884. :class="{
  11885. isChair:
  11886. groupStudent[toolindex][gindex] &&
  11887. groupStudent[toolindex][gindex][5],
  11888. updateChair:
  11889. courseDetail.userid == userid &&
  11890. groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][5] &&
  11892. groupJson.islock == 2,
  11893. }"
  11894. ><span
  11895. class="updateChairBtn"
  11896. @click="
  11897. updateGroupChair(
  11898. groupStudent[toolindex][gindex] &&
  11899. groupStudent[toolindex][gindex][5]
  11900. )
  11901. "
  11902. >修改</span
  11903. ></span
  11904. ><span>{{
  11905. groupStudent[toolindex][gindex] &&
  11906. groupStudent[toolindex][gindex][5]
  11907. ? groupStudent[toolindex][gindex] &&
  11908. groupStudent[toolindex][gindex][5].name
  11909. : "空位置"
  11910. }}</span>
  11911. </div>
  11912. <div v-if="groupJson.number > 9">
  11913. <span
  11914. :class="{
  11915. isChair:
  11916. groupStudent[toolindex][gindex] &&
  11917. groupStudent[toolindex][gindex][9],
  11918. updateChair:
  11919. courseDetail.userid == userid &&
  11920. groupStudent[toolindex][gindex] &&
  11921. groupStudent[toolindex][gindex][9] &&
  11922. groupJson.islock == 2,
  11923. }"
  11924. ><span
  11925. class="updateChairBtn"
  11926. @click="
  11927. updateGroupChair(
  11928. groupStudent[toolindex][gindex] &&
  11929. groupStudent[toolindex][gindex][9]
  11930. )
  11931. "
  11932. >修改</span
  11933. ></span
  11934. ><span>{{
  11935. groupStudent[toolindex][gindex] &&
  11936. groupStudent[toolindex][gindex][9]
  11937. ? groupStudent[toolindex][gindex] &&
  11938. groupStudent[toolindex][gindex][9].name
  11939. : "空位置"
  11940. }}</span>
  11941. </div>
  11942. </div>
  11943. </div>
  11944. </div>
  11945. </div>
  11946. </div>
  11947. <span slot="footer" class="dialog-footer">
  11948. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11949. </span>
  11950. </el-dialog>
  11951. <el-dialog
  11952. title="分组设置"
  11953. :visible.sync="dialogVisibleGroup2"
  11954. :append-to-body="true"
  11955. width="650px"
  11956. :before-close="handleClose"
  11957. class="dialog_diy"
  11958. >
  11959. <div class="groupBox">
  11960. <div v-if="groupJson2.group" class="groupContent">
  11961. <div class="groupTitle">请设置小组数量及名称</div>
  11962. <div
  11963. v-for="(item, index) in groupJson2.group"
  11964. :key="index"
  11965. class="groupName"
  11966. >
  11967. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11968. <el-input
  11969. v-model="item.name"
  11970. placeholder="请输入名称..."
  11971. style="width: 250px"
  11972. ></el-input>
  11973. <!-- <div class="groupBtn">
  11974. <el-button type="primary" size="small" @click="addGroup(index)">
  11975. 添加</el-button>
  11976. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11977. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11978. </div> -->
  11979. </div>
  11980. </div>
  11981. <div class="groupContent">
  11982. <div class="groupTitle">请设置每组人数</div>
  11983. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11984. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11985. <el-input
  11986. v-model="groupJson2.number"
  11987. style="width: 150px"
  11988. placeholder="请输入2-10的数字"
  11989. @change="numberPan"
  11990. ></el-input>
  11991. </div>
  11992. </div>
  11993. <span slot="footer" class="dialog-footer">
  11994. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11995. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11996. </span>
  11997. </el-dialog>
  11998. <el-dialog
  11999. title="作业提交"
  12000. :visible.sync="dialogVisibleGroupWork"
  12001. :append-to-body="true"
  12002. width="500px"
  12003. :before-close="handleClose"
  12004. class="dialog_change"
  12005. >
  12006. <div class="marginT">
  12007. <div>上传文件</div>
  12008. <div
  12009. class="chapter_add"
  12010. @click="addImg($event)"
  12011. v-if="studyJuri[0].cover.length == 0"
  12012. >
  12013. <div class="up_photo">
  12014. <img src="../../assets/icon/uploadImg.png" alt />
  12015. </div>
  12016. <!-- <input
  12017. type="file"
  12018. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12019. style="display: none"
  12020. @change="beforeUpload1($event, 1)"
  12021. /> -->
  12022. <input
  12023. type="file"
  12024. accept="*"
  12025. style="display: none"
  12026. @change="beforeUpload1($event, 1)"
  12027. />
  12028. </div>
  12029. <!-- capture="camera" -->
  12030. <div
  12031. class="chapter_add"
  12032. style="
  12033. display: flex;
  12034. width: 100%;
  12035. flex-direction: row;
  12036. flex-wrap: wrap;
  12037. justify-content: flex-start;
  12038. padding: 15px 0;
  12039. "
  12040. v-if="studyJuri[0].cover.length > 0"
  12041. >
  12042. <div class="upCover">
  12043. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12044. <img :src="word" alt v-else-if="fileType == 1" />
  12045. <img :src="video" alt v-else-if="fileType == 2" />
  12046. <img :src="word2" alt v-else-if="fileType == 3" />
  12047. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12048. <div class="deleteWord" @click="clean(1)">
  12049. <img src="../../assets/icon/deleteWorks.png" alt />
  12050. </div>
  12051. </div>
  12052. </div>
  12053. </div>
  12054. <div
  12055. class="upload_send"
  12056. @click="addCourseWorks2(taskCount)"
  12057. v-if="!proVisible"
  12058. >
  12059. 提交
  12060. </div>
  12061. </el-dialog>
  12062. <el-dialog
  12063. title="修改分组"
  12064. :visible.sync="dialogVisibleUpdateGroup"
  12065. :append-to-body="true"
  12066. width="350px"
  12067. :before-close="handleClose"
  12068. class="dialog_diy"
  12069. >
  12070. <div>
  12071. <h2>
  12072. {{ this.updateGroupUser.name }}
  12073. </h2>
  12074. <div style="color: rgb(171 171 171); margin-top: 10px">
  12075. 请选择要进入的分组
  12076. </div>
  12077. <el-radio-group v-model="checkChair">
  12078. <el-radio
  12079. style="display: block; margin-top: 20px"
  12080. v-for="(item, index) in updateGroupArray"
  12081. :label="item.label"
  12082. :key="index"
  12083. >{{ item.name }}</el-radio
  12084. >
  12085. </el-radio-group>
  12086. </div>
  12087. <span slot="footer" class="dialog-footer">
  12088. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12089. <el-button type="primary" @click="updateChair">确定</el-button>
  12090. </span>
  12091. </el-dialog>
  12092. <el-dialog
  12093. title="移除组员"
  12094. :visible.sync="dialogVisibleDeleteGroup"
  12095. :append-to-body="true"
  12096. width="350px"
  12097. :before-close="handleClose"
  12098. class="dialog_diy"
  12099. >
  12100. <div>
  12101. <h2>
  12102. {{ this.deleteGroupArray.name }}
  12103. </h2>
  12104. <div style="color: rgb(171 171 171); margin-top: 10px">
  12105. 请选择要删除的组员
  12106. </div>
  12107. <el-checkbox-group v-model="checkDeleteGroup">
  12108. <el-checkbox
  12109. style="display: flex; margin-top: 20px"
  12110. v-for="(item, index) in deleteGroupUser"
  12111. :label="item.userid"
  12112. :key="index"
  12113. >{{ item.name }}</el-checkbox
  12114. >
  12115. </el-checkbox-group>
  12116. </div>
  12117. <span slot="footer" class="dialog-footer">
  12118. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12119. <el-button type="primary" @click="deleteChair">确定</el-button>
  12120. </span>
  12121. </el-dialog>
  12122. <el-dialog
  12123. title="批量上传"
  12124. :visible.sync="dialogVisiblePl"
  12125. :append-to-body="true"
  12126. width="700px"
  12127. :before-close="handleClose"
  12128. class="dialog_change"
  12129. >
  12130. <div class="marginT">
  12131. <div class="plworkBox">
  12132. <div
  12133. class="chapter_add"
  12134. style="
  12135. display: flex;
  12136. width: 150px;
  12137. flex-direction: row;
  12138. flex-wrap: wrap;
  12139. justify-content: flex-start;
  12140. margin: 0 10px 10px 0;
  12141. "
  12142. v-for="(item, index) in plworkFile"
  12143. :key="index"
  12144. >
  12145. <div class="upCover2">
  12146. <img
  12147. :src="item.url"
  12148. alt
  12149. v-if="item.fileType == 1"
  12150. @click="previewImg(item.url)"
  12151. />
  12152. <img :src="word" alt v-else-if="item.fileType == 4" />
  12153. <img :src="video" alt v-else />
  12154. <!-- <span class="picName">{{ item.name }}</span> -->
  12155. <!-- <el-input
  12156. v-model="item.username"
  12157. placeholder="请输入学生名字"
  12158. style="margin-top: 10px"
  12159. ></el-input> -->
  12160. <div
  12161. class="pl_select_box"
  12162. @click="
  12163. getUpdateMore(true, checkUpload(), item.username, index)
  12164. "
  12165. >
  12166. {{ getSName(item.username) }}
  12167. </div>
  12168. <!-- <el-select
  12169. style="margin-top: 10px"
  12170. v-model="item.username"
  12171. filterable
  12172. allow-create
  12173. placeholder="请选择学生"
  12174. >
  12175. <el-option
  12176. v-for="item1 in checkUpload()"
  12177. :key="item1.userid"
  12178. :label="item1.name ? item1.name : item1.username"
  12179. :value="item1.userid"
  12180. >
  12181. </el-option>
  12182. </el-select> -->
  12183. <div class="deleteWord" @click="clean2(index)">
  12184. <img src="../../assets/icon/deleteWorks.png" alt />
  12185. </div>
  12186. </div>
  12187. </div>
  12188. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12189. <div class="up_photo2">
  12190. <img src="../../assets/icon/plwork.png" alt />
  12191. <span>点击上传文件</span>
  12192. </div>
  12193. <input
  12194. type="file"
  12195. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12196. multiple="multiple"
  12197. style="display: none"
  12198. @change="beforeUpload3($event, 6)"
  12199. />
  12200. </div>
  12201. </div>
  12202. </div>
  12203. <!-- capture="camera" -->
  12204. <div
  12205. class="upload_send"
  12206. @click="addCourseWorksPl(taskCount)"
  12207. v-if="!proVisible2"
  12208. >
  12209. 提交
  12210. </div>
  12211. </el-dialog>
  12212. <el-dialog
  12213. title="修改名称"
  12214. :visible.sync="dialogVisibleSname"
  12215. width="500px"
  12216. :before-close="handleClose"
  12217. class="dialog_diy"
  12218. center
  12219. >
  12220. <div
  12221. style="
  12222. text-align: center;
  12223. display: flex;
  12224. align-items: center;
  12225. justify-content: center;
  12226. "
  12227. >
  12228. <span class="tian1">名称</span>
  12229. <div
  12230. class="pl_select_box"
  12231. style="margin-left: 10px; width: 200px"
  12232. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12233. >
  12234. {{ getSName(worksSName) }}
  12235. </div>
  12236. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12237. placeholder="请选择学生">
  12238. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12239. :value="item.userid">
  12240. </el-option>
  12241. </el-select> -->
  12242. <!-- <el-input
  12243. v-model="worksSName"
  12244. style="width: 250px; margin: 15px 0px"
  12245. ></el-input> -->
  12246. </div>
  12247. <span slot="footer" class="dialog-footer">
  12248. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12249. <el-button type="primary" @click="updateName">确 定</el-button>
  12250. </span>
  12251. </el-dialog>
  12252. <el-dialog
  12253. title="英语写作"
  12254. :visible.sync="engDialogVisible"
  12255. :append-to-body="true"
  12256. width="800px"
  12257. :before-close="handleClose"
  12258. class="dialog_diy"
  12259. >
  12260. <onlineWrite
  12261. v-if="engDialogVisible"
  12262. :englishList="englishList"
  12263. :myAnswerList1="myAnswerList1"
  12264. ref="engJson"
  12265. ></onlineWrite>
  12266. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12267. <el-button @click="engDialogVisible = false">取 消</el-button>
  12268. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12269. </span>
  12270. </el-dialog>
  12271. <el-dialog
  12272. title="英语写作"
  12273. :visible.sync="engUpdateDialogVisible"
  12274. :append-to-body="true"
  12275. width="800px"
  12276. :before-close="handleClose"
  12277. class="dialog_diy fullStyle"
  12278. >
  12279. <div class="engUpBox">
  12280. <div class="engUpTop">
  12281. <div class="engTitle">
  12282. <div>作文题目:</div>
  12283. <div>{{ englishList1.engTitle }}</div>
  12284. </div>
  12285. <div class="engText">
  12286. <div>作文内容:</div>
  12287. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12288. </div>
  12289. </div>
  12290. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12291. <div class="oldBox">
  12292. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12293. <div class="oldText">
  12294. <div class="detailBox">
  12295. <div class="oldDetail">
  12296. <div>标题:</div>
  12297. <div>{{ oldEnglishJson.engTitle }} </div>
  12298. </div>
  12299. <div class="oldDetail1">
  12300. <div>正文:</div>
  12301. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12302. </div>
  12303. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12304. <div>图片:</div>
  12305. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12306. </div>
  12307. </div>
  12308. </div>
  12309. </div>
  12310. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12311. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12312. <div class="oldText">
  12313. <div class="detailBox" style="position: relative;">
  12314. <div class="oldDetail">
  12315. <div>标题:</div>
  12316. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12317. <div v-else v-html="newEnglishList.engTitle"></div>
  12318. </div>
  12319. <div class="oldDetail">
  12320. <div>正文:</div>
  12321. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12322. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12323. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12324. </div>
  12325. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12326. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12327. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12328. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12329. </div>
  12330. </div>
  12331. </div>
  12332. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12333. <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">
  12334. <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>
  12335. <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>
  12336. </div>
  12337. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12338. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12339. <div class="detailBox" style="position: relative;">
  12340. <div class="oldDetail">
  12341. <div>标题:</div>
  12342. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12343. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12344. </div>
  12345. <div class="oldDetail">
  12346. <div>正文:</div>
  12347. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12348. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12349. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12350. </div>
  12351. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12352. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12353. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12354. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12355. </div>
  12356. </div>
  12357. <div class="oldText" v-else-if="newEngIndex == -1">
  12358. <div class="detailBox" style="position: relative;">
  12359. <div class="oldDetail">
  12360. <div>标题:</div>
  12361. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12362. <div v-else v-html="newEnglishList.engTitle"></div>
  12363. </div>
  12364. <div class="oldDetail">
  12365. <div>正文:</div>
  12366. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12367. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12368. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12369. </div>
  12370. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12371. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12372. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12373. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12374. </div>
  12375. </div>
  12376. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12377. <div class="detailBox" style="position: relative;">
  12378. <div class="oldDetail">
  12379. <div>标题:</div>
  12380. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12381. <div v-else>
  12382. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12383. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12384. </div>
  12385. </div>
  12386. <div class="oldDetail">
  12387. <div>正文:</div>
  12388. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12389. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12390. <div v-else>
  12391. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12392. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12393. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12394. </div>
  12395. </div>
  12396. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12397. <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>
  12398. <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>
  12399. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12400. </div>
  12401. </div>
  12402. </div>
  12403. </div>
  12404. </div>
  12405. <span slot="footer" class="dialog-footer">
  12406. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12407. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12408. </span>
  12409. </el-dialog>
  12410. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12411. <interVideo
  12412. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12413. :videoJson="videoJson"
  12414. :userid="userid"
  12415. :id="id"
  12416. :courseType="courseType"
  12417. :taskCount="taskCount"
  12418. :toolindex="toolindex"
  12419. :videoType="videoType"
  12420. ></interVideo>
  12421. <UpdateMore
  12422. :dialogVisibleMember.sync="dialogVisibleMember"
  12423. :cList="uploadStudentJuri"
  12424. :userid="userid"
  12425. :searchTN="worksSName2"
  12426. @setPlname="setPlname"
  12427. ></UpdateMore>
  12428. <!-- <wordCloud
  12429. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12430. :data="wordCloudData"
  12431. ></wordCloud> -->
  12432. <el-dialog
  12433. title="词云"
  12434. :visible.sync="dialogVisibleWordCloud"
  12435. width="30%"
  12436. class="dialog_diy"
  12437. :before-close="handleClose">
  12438. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12439. </el-dialog>
  12440. <el-dialog
  12441. title="挑人"
  12442. :visible.sync="dialogVisiblePickPeople"
  12443. width="650px"
  12444. :before-close="handleClose"
  12445. class="dialog_diy"
  12446. center
  12447. >
  12448. <div class="pick_box">
  12449. <div
  12450. class="noWorksName"
  12451. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12452. v-for="(item, index) in uploadStudentJuri"
  12453. :key="index"
  12454. @click="pickStudent(item)"
  12455. >
  12456. {{ item.name }}
  12457. </div>
  12458. </div>
  12459. </el-dialog>
  12460. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12461. :englishVoiceJson='englishVoiceJson'
  12462. :userid="userid"
  12463. :id="id"
  12464. :courseType="courseType"
  12465. :taskCount="taskCount"
  12466. :toolindex="toolindex"
  12467. @selectSWorks="selectSWorks"
  12468. @selectStudent="selectStudent"
  12469. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12470. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12471. :userid="userid"
  12472. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12473. :commentDetail="commentDetail"
  12474. :courseDetail="courseDetail"
  12475. :wScore="wScore"
  12476. :scoreDetail="scoreDetail"
  12477. @selectSWorks="selectSWorks"
  12478. @selectStudent="selectStudent"></checkEnglishVoice>
  12479. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12480. <choseWorksDetailDialog
  12481. ref="choseWorksDetailDialogRef"
  12482. :worksStudentData="worksStudent"
  12483. :noWorksSData="noWorksS"
  12484. :chapInfoListData="chapInfoList"
  12485. :courseType="courseType"
  12486. :taskCount="taskCount"
  12487. :tType="tType"
  12488. :sIsOpen="sIsOpen"
  12489. :courseDetail="courseDetail"
  12490. :groupStudent2="groupStudent"
  12491. :groupStudentUid2="groupStudentUid"
  12492. :oid="oid"
  12493. :org="org"
  12494. @getCourseDetail="getCourseDetail"
  12495. @selectSLook="selectSLook"
  12496. @selectSWorks="selectSWorks"
  12497. @selectStudent="selectStudent"
  12498. @deleteWorks="deleteWorks"
  12499. @openTools="openTools"
  12500. @openWord="openWord"
  12501. @openScore="openScore"
  12502. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12503. />
  12504. <el-dialog
  12505. :visible.sync="confirmOpenDig"
  12506. width="500px"
  12507. :modal="false"
  12508. class="confirmOpenDigCss dialog_diyCopy"
  12509. :before-close="handleClose">
  12510. <div style="display: flex;align-items: center;">
  12511. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12512. <span>“{{ courseDetail.title }}”开课啦</span>
  12513. </div>
  12514. <div style="margin: 20px 0 35px;">
  12515. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12516. <div>要认真听讲哦~</div>
  12517. </div>
  12518. <div style="text-align: center;">
  12519. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12520. </div>
  12521. </el-dialog>
  12522. <appStoreC ref="appStoreC"
  12523. :sStudent="sStudent"
  12524. :courseType="courseType"
  12525. :taskCount="taskCount"
  12526. :toolindex="toolindex"
  12527. @selectSWorks="selectSWorks"
  12528. @selectStudent="selectStudent"
  12529. ></appStoreC>
  12530. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12531. </div>
  12532. </template>
  12533. <script>
  12534. import "../../common/aws-sdk-2.235.1.min.js";
  12535. // import pdf from "../components/pdf3";
  12536. import pdf from "../components/vpdf";
  12537. import AskStatic from "../components/askStatic";
  12538. import AskStatic2 from "../components/askStatic2";
  12539. import AnswerData2 from "../components/answerData2";
  12540. import AnswerData from "../components/answerData";
  12541. import EditorBar from "../tools/wangEnduit.vue";
  12542. import Table from "../tools/table.vue";
  12543. import Time from "../tools/time.vue";
  12544. import Mind from "../tools/jsmind.vue";
  12545. import Sunburst from "../tools/sunburst";
  12546. import SeeBoard from "../tools/seeBoard";
  12547. import * as imageConversion from "image-conversion";
  12548. import Audio from "../components/audio.vue";
  12549. import ImgDraw from "../tools/imgDraw/imgDraw";
  12550. import { Empty } from "element-ui";
  12551. import RecordRTC from "recordrtc";
  12552. import interVideo from "../interVideo/index.vue";
  12553. import UpdateMore from "../updateMore/updateMore.vue";
  12554. import wordCloud from "../wordCloud/index.vue";
  12555. import axios from "axios";
  12556. import JSZip from "jszip";
  12557. import FileSaver from "file-saver";
  12558. import onlineWrite from "./commpont/onlineWrite";
  12559. import englishEva from "../components/englishEva";
  12560. import * as Diff from 'diff'
  12561. import EnglishVoice from '../EnglishVoice2/index.vue'
  12562. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12563. import correctText from '../components/correctText.vue'
  12564. import scoreItem from '../scoreList/scoreItem.vue'
  12565. import scoreZong from '../scoreZong/index.vue'
  12566. import classRoomHelper from '../classRoomHelper/index.vue'
  12567. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12568. import MarkdownIt from "markdown-it";
  12569. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12570. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12571. import { v4 as uuidv4 } from "uuid";
  12572. var OpenCC = require("opencc-js");
  12573. import choseWordCloud from '../components/choseWordCloud.vue'
  12574. import appStoreC from "../components/appStoreC.vue";
  12575. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12576. import { myMixin } from "@/mixins/mixin.js"
  12577. import { tools as toolsList } from "@/common/tools2.js";
  12578. import katex from 'katex'
  12579. import 'katex/dist/katex.min.css'
  12580. let converter = OpenCC.Converter({
  12581. from: "hk",
  12582. to: "cn"
  12583. });
  12584. const getFile = (url) => {
  12585. return new Promise((resolve, reject) => {
  12586. var credentials = {
  12587. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12588. secretAccessKey: "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",
  12589. }; //秘钥形式的登录上传
  12590. window.AWS.config.update(credentials);
  12591. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12592. let url2 = url;
  12593. let _url2 = "";
  12594. if (
  12595. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12596. ) {
  12597. _url2 = url2.split(
  12598. "https://view.officeapps.live.com/op/view.aspx?src="
  12599. )[1];
  12600. } else {
  12601. _url2 = url2;
  12602. }
  12603. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12604. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12605. var params = {
  12606. Bucket: "ccrb",
  12607. Key: name
  12608. };
  12609. s3.getObject(params, function (err, data) {
  12610. if (err) {
  12611. console.log(err, err.stack)
  12612. resolve({ data: 1 });
  12613. }else {
  12614. resolve({ data: data.Body });
  12615. console.log(data);
  12616. } // sxuccessful response
  12617. });
  12618. // axios({
  12619. // method: "get",
  12620. // url,
  12621. // responseType: "blob",
  12622. // })
  12623. // .then((data) => {
  12624. // resolve({ data: data.data });
  12625. // })
  12626. // .catch((error) => {
  12627. // resolve({ data: 1 });
  12628. // // reject(error.toString());
  12629. // });
  12630. });
  12631. };
  12632. export default {
  12633. mixins: [ myMixin ],
  12634. components: {
  12635. choseWordCloud,
  12636. EditorBar,
  12637. Time,
  12638. pdf,
  12639. AskStatic,
  12640. AskStatic2,
  12641. Mind,
  12642. Sunburst,
  12643. SeeBoard,
  12644. AnswerData2,
  12645. AnswerData,
  12646. Audio,
  12647. ImgDraw,
  12648. Table,
  12649. interVideo,
  12650. UpdateMore,
  12651. wordCloud,
  12652. onlineWrite,
  12653. englishEva,
  12654. EnglishVoice,
  12655. checkEnglishVoice,
  12656. correctText,
  12657. scoreItem,
  12658. classRoomHelper,
  12659. scoreZong,
  12660. statisticalAnalysis,
  12661. choseWorksDetailDialog,
  12662. appStoreC,
  12663. cocoFlowDia,
  12664. studentClassRoomHelper
  12665. },
  12666. data() {
  12667. return {
  12668. homeWorkLoading:false,
  12669. toolsList: toolsList,
  12670. wordCloudKey: 0,
  12671. bg: null,
  12672. drawShow: false,
  12673. dialogVisible: false,
  12674. dialogVisiblePl: false,
  12675. commentDialogVisible: false,
  12676. dialogVisibleMember: false,
  12677. dialogVisibleWordCloud: false,
  12678. videoVisible: false,
  12679. isStar: false,
  12680. studentEvalDialogVisible: false,
  12681. studentEvalDialogVisibleTeacher: false,
  12682. dialogVisibleSelect: false,
  12683. dialogVisibleSelectTeacher: false,
  12684. dialogVisibleScore: false,
  12685. dialogVisibleENScore: false,
  12686. dialogVisibleSentence: false,
  12687. dialogVisibleSentenceTeacher: false,
  12688. dialogVisibleSentence1: false,
  12689. dialogVisibleWorks: false,
  12690. dialogVisibleTable: false,
  12691. dialogVisibleTableTeacher: false,
  12692. dialogVisibleWord: false,
  12693. dialogVisibleWordTeacher: false,
  12694. dialogVisibleTable2: false,
  12695. dialogVisibleTable3: false,
  12696. dialogVisibleGroupWork: false,
  12697. dialogVisibleUpdateGroup: false,
  12698. dialogVisibleDeleteGroup: false,
  12699. dialogVisibleSname: false,
  12700. dialogVisibleVideo: false,
  12701. dialogVisiblePickPeople: false,
  12702. worksSName: "",
  12703. classJuri: [],
  12704. uploadStudentJuri: [],
  12705. uploadCid: "",
  12706. snameWid: "",
  12707. sStudent: {},
  12708. sTool: "",
  12709. bzText: "",
  12710. commentDetail: [],
  12711. selectAnswer: [],
  12712. videoDetail: {},
  12713. selectJson: {},
  12714. eScore: { eBzText: "", eStar: [] },
  12715. id: this.$route.query.courseId,
  12716. userid: this.$route.query.userid,
  12717. classId: this.$route.query.cid,
  12718. // courseTypeLine: this.$route.query.type,
  12719. oid: this.$route.query.oid,
  12720. org: this.$route.query.org,
  12721. tType: this.$route.query.tType,
  12722. courseType: this.$route.query.type,
  12723. screenType: this.$route.query.screenType,
  12724. tcid2: this.$route.query.tcid,
  12725. tcid: "",
  12726. pptImgUrl: "",
  12727. pptImgUrl1: "",
  12728. commentText: "",
  12729. full: false,
  12730. sIsOpen: false,
  12731. IsLookOpen: false,
  12732. IsFollow: false,
  12733. pzDialog: false,
  12734. contentDialog: false,
  12735. mlDialog: false,
  12736. type: 1,
  12737. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12738. sentenceList1: [],
  12739. tableJson: [],
  12740. tableJsonO: [],
  12741. wordJson: [],
  12742. wordJsonO: [],
  12743. vedio: [],
  12744. text: [],
  12745. textList: [],
  12746. line: [],
  12747. lineList: [],
  12748. chapTools: [],
  12749. chapToolList: [],
  12750. file: [],
  12751. fileC: [],
  12752. vedioTime: [],
  12753. upToolImg: "",
  12754. preTime: 0,
  12755. rateList: {
  12756. ca: 0,
  12757. },
  12758. rateParams: [],
  12759. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12760. studyJuri: [
  12761. {
  12762. content: "",
  12763. cover: [],
  12764. upVedio: [],
  12765. upFile: [],
  12766. },
  12767. ],
  12768. isClose: 0,
  12769. plworkFile: [],
  12770. mr: require("../../assets/vedioPic.png"),
  12771. word: require("../../assets/icon/isWord.png"),
  12772. word2: require("../../assets/icon/word2.png"),
  12773. video: require("../../assets/icon/isVideo.png"),
  12774. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12775. likes: require("../../assets/icon/comment/likes.png"),
  12776. scoreImg: require("../../assets/score.png"),
  12777. courseDetail: {},
  12778. reply: "",
  12779. isSelect: false,
  12780. chapInfo: [],
  12781. chapInfoList: [],
  12782. taskCount: 0,
  12783. imgList: [],
  12784. noImgList: [],
  12785. pzList: [],
  12786. timeWorkList: [],
  12787. PlTextList: [
  12788. "Excellent!",
  12789. "nice!",
  12790. "很有创意!",
  12791. "还不错哦~",
  12792. "继续努力哦~",
  12793. ],
  12794. isClickNav: "",
  12795. navId: "",
  12796. playerOptions: {
  12797. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12798. autoplay: false, //如果true,浏览器准备好时开始回放。
  12799. muted: false, // 默认情况下将会消除任何音频。
  12800. loop: false, // 导致视频一结束就重新开始。
  12801. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12802. language: "zh-CN",
  12803. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12804. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12805. sources: [
  12806. {
  12807. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12808. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12809. },
  12810. ],
  12811. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12812. // poster: dataRes.imgUrl, //你的封面地址
  12813. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12814. controlBar: {
  12815. timeDivider: true, //当前时间和持续时间的分隔符
  12816. durationDisplay: true, //显示持续时间
  12817. remainingTimeDisplay: false, //是否显示剩余时间功能
  12818. fullscreenToggle: true, //全屏按钮
  12819. },
  12820. },
  12821. playerOptions1: {
  12822. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12823. autoplay: false, //如果true,浏览器准备好时开始回放。
  12824. muted: false, // 默认情况下将会消除任何音频。
  12825. loop: false, // 导致视频一结束就重新开始。
  12826. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12827. language: "zh-CN",
  12828. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12829. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12830. sources: [
  12831. {
  12832. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12833. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12834. },
  12835. ],
  12836. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12837. // poster: dataRes.imgUrl, //你的封面地址
  12838. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12839. controlBar: {
  12840. timeDivider: true, //当前时间和持续时间的分隔符
  12841. durationDisplay: true, //显示持续时间
  12842. remainingTimeDisplay: false, //是否显示剩余时间功能
  12843. fullscreenToggle: true, //全屏按钮
  12844. },
  12845. },
  12846. playerO: {},
  12847. noneBtnImg: false,
  12848. proVisible: false,
  12849. proVisible2: false,
  12850. progress: 0,
  12851. isFinishSize: 0,
  12852. isAllSize: 0,
  12853. questionAnswer: "",
  12854. answerQ: "", //问答标题
  12855. rateJson: [],
  12856. wbCount: 0,
  12857. wordCount: 0,
  12858. mindCount: 0,
  12859. askCount: 0,
  12860. noteCount: 0,
  12861. mindNetWorkCount: 0,
  12862. libraryCount: 0,
  12863. workCount: 0,
  12864. timeCount: 0,
  12865. answerCount: 0,
  12866. trainCount: 0,
  12867. evalCount: 0,
  12868. dialogImageUrl: "",
  12869. pictureDialog: false,
  12870. toolTypeList: [],
  12871. dialogVisible1: false,
  12872. dialogVisible2: false,
  12873. dialogVisible3: false,
  12874. dialogVisible6: false,
  12875. dialogVisible4: false,
  12876. isNoHomeWork: false,
  12877. dialogVisible5: false,
  12878. dialogVisible5Teacher: false,
  12879. dialogVisibleChoice: false,
  12880. dialogVisibleChoiceTeacher: false,
  12881. answerDialogVisible: false,
  12882. answerDialogVisibleTeacher: false,
  12883. juriVisible: false,
  12884. timeDialogVisible: false,
  12885. replyDialogVisible: false,
  12886. toolDialogVisible: false,
  12887. engDialogVisible: false,
  12888. engUpdateDialogVisible:false,
  12889. engEvaDialogVisible: false,
  12890. evaEngJson: {
  12891. teacherJson: {},
  12892. studentJson: {},
  12893. message: {},
  12894. },
  12895. isNoUserid:false,
  12896. engListLength:0,
  12897. engWid:"",
  12898. newEnglishList:{
  12899. engTitle:"",
  12900. engText:"",
  12901. },
  12902. newEnglishList1:[],
  12903. oldEnglishJson:{},
  12904. oldEnglishJson1:{},
  12905. englishList1:{},
  12906. englishList:{},
  12907. myAnswerList1:{},
  12908. topHeight:0,
  12909. newEngIndex:-1,
  12910. englishToolIndex:0,
  12911. userMes:{},
  12912. englishToolIndex:0,
  12913. replyIndex: 0,
  12914. replyPid: "",
  12915. radio: [],
  12916. isAsk: false,
  12917. askJson: {
  12918. askCount: 1,
  12919. askTitle: "",
  12920. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12921. },
  12922. testJson: {},
  12923. englishList: {},
  12924. topHeight:0,
  12925. checkJson: [],
  12926. askList: [],
  12927. answerList: [],
  12928. navList: [],
  12929. addPzDialog: false,
  12930. pzConText: "",
  12931. worksStudent: [],
  12932. isCloseList: [],
  12933. workStudent: [],
  12934. groupStudent: [],
  12935. groupStudentUid: [],
  12936. noWorksS: [],
  12937. isWorksS: [],
  12938. noWorksStudent: [],
  12939. toolindex: 0,
  12940. toolDetailIndex: null,
  12941. groupIndex: 0,
  12942. workTypeB: false,
  12943. workTypeC: false,
  12944. isAnswer: false,
  12945. isHovered: false,
  12946. isHovered1: false,
  12947. isHovered2: false,
  12948. commentTagShow:0,
  12949. timer: null,
  12950. timer2: null,
  12951. opertimer: null,
  12952. showType: '',
  12953. fileType: 0,
  12954. showPDF: false,
  12955. noteName: "",
  12956. evaJuri: [],
  12957. evalua: "",
  12958. eTitle: "",
  12959. eName: "",
  12960. eJson: {},
  12961. fid: "", //一级
  12962. sid: "", //二级
  12963. tid: "", //二级
  12964. typeMode: 1,
  12965. eJSONNum: 0,
  12966. Etype: 1,
  12967. data: {
  12968. meta: {
  12969. name: "example",
  12970. author: "dd@163.com",
  12971. version: "0.2",
  12972. },
  12973. format: "node_array",
  12974. data: [{ id: "root", isroot: true, topic: "" }],
  12975. },
  12976. fullDialogVisible: false,
  12977. fulltype: "",
  12978. fullUrl: "",
  12979. commentIndexJson: {},
  12980. Stbodywidth: 0,
  12981. ispzType: 0,
  12982. pzType: 1,
  12983. wScore: 0,
  12984. scoreDetail: "",
  12985. videoStart: false,
  12986. recorder: null,
  12987. groupJson: {},
  12988. islock: false,
  12989. groupJson2: {},
  12990. dialogVisibleGroup: false,
  12991. dialogVisibleGroup2: false,
  12992. updateGroupArray: [],
  12993. updateGroupUser: {},
  12994. deleteGroupUser: [],
  12995. deleteGroupArray: {},
  12996. checkChair: "",
  12997. checkDeleteGroup: [],
  12998. inviteCode: "",
  12999. courseGroupStudent: [],
  13000. courseGroupStudentUid: [],
  13001. courseGroup: {},
  13002. isGroup: false,
  13003. toolIndex: null,
  13004. tool: {},
  13005. isWorkTool: [
  13006. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13007. ], //, 40
  13008. videoJson: {},
  13009. videoType:0,
  13010. toolType: 0,
  13011. checktoolArray: [],
  13012. vChapterData: [],
  13013. isUpdateToolDetail: false,
  13014. isUpdateToolDetail1: false,
  13015. updateToolDetailInner: "",
  13016. checkboxList: [],
  13017. plIndex: "",
  13018. worksSName2: "",
  13019. worksSid: "",
  13020. wordCloudData: [],
  13021. isPickStudent: [],
  13022. pzStype: 1,
  13023. myAnList: {},
  13024. downLoading: false,
  13025. greyType: false,
  13026. correctWord: [],
  13027. EnglishVoiceDialog: false,
  13028. englishVoiceJson: {},
  13029. englishVoiceJsonWork:[],
  13030. scoreList:{
  13031. listdata:[],
  13032. isScoreList:[],
  13033. },
  13034. classRoomHelperWidth: '85px',
  13035. orgArray:[],
  13036. oidArray:[],
  13037. splitScreenData:{
  13038. isOpen:false,
  13039. userId:"",
  13040. uid:"",
  13041. myUid:"",
  13042. loading:false,
  13043. behavior:null,
  13044. },
  13045. confirmOpenDig:false,
  13046. confirmOpenDigData:'',
  13047. diffKey:"1"
  13048. };
  13049. },
  13050. methods: {
  13051. //查看应用中心作业
  13052. openCocoFlow(w){
  13053. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13054. },
  13055. getAIJ(){
  13056. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13057. let oid = res.data[0];
  13058. let org = res.data[1];
  13059. let oidArray = [];
  13060. let orgArray = [];
  13061. oid.forEach(i=>oidArray.push(i.oid))
  13062. org.forEach(i=>orgArray.push(i.oid))
  13063. this.orgArray = orgArray;
  13064. this.oidArray = oidArray;
  13065. })
  13066. },
  13067. insertMemorandum(_html){//保存行为操作
  13068. //variable
  13069. //btn
  13070. let params = [{
  13071. uid:this.userid,
  13072. courseId:this.id+(this.tcid2?this.tcid2:''),
  13073. content:_html
  13074. }]
  13075. console.log(params)
  13076. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13077. if(res.data==1){
  13078. console.log('保存操作成功')
  13079. }else{
  13080. console.log('保存操作失败')
  13081. }
  13082. }).catch(e=>{
  13083. console.log('保存操作失败')
  13084. console.log(e)
  13085. })
  13086. },
  13087. gx(){
  13088. this.$forceUpdate();
  13089. },
  13090. isUpdateCorrect(t,p){
  13091. if(this.greyType == false){
  13092. this.isUpdateText = t;
  13093. this.greyType = true;
  13094. }else{
  13095. if(p == 1){
  13096. this.newEnglishList.engText = this.isUpdateText;
  13097. }else if(p == 2){
  13098. this.oldEnglishJson1.engText = this.isUpdateText;
  13099. }else if(p == 3){
  13100. this.newEnglishList.engText = this.isUpdateText;
  13101. }else{
  13102. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13103. }
  13104. this.greyType = false
  13105. }
  13106. },
  13107. aiCorrect(t,p){
  13108. let aiText = "";
  13109. const loading = this.$loading.service({
  13110. background: "rgba(255, 255, 255)",
  13111. target: document.querySelectorAll(".loadingText")[0],
  13112. });
  13113. let param = {
  13114. model: "gpt-3.5-turbo",
  13115. temperature: 0,
  13116. max_tokens: 2048,
  13117. top_p: 1,
  13118. frequency_penalty: 0,
  13119. presence_penalty: 0,
  13120. messages: [
  13121. {
  13122. role: "user",
  13123. content:
  13124.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13125. },
  13126. ],
  13127. uid: this.userid,
  13128. stream: false,
  13129. };
  13130. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13131. (res) => {
  13132. if (
  13133. res.data.FunctionResponse &&
  13134. res.data.FunctionResponse.result &&
  13135. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13136. ) {
  13137. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13138. return;
  13139. }
  13140. aiText =
  13141. res.data.FunctionResponse.choices[0].message.content;
  13142. aiText = aiText.replace(/%/g,"%25");
  13143. // let w = "";
  13144. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13145. // for(var k = 0;k<a.length;k++){
  13146. // //diffWordsWithSpace
  13147. // if(a.length > 1){
  13148. // if(a[k].added == true){
  13149. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13150. // }else if(a[k].removed == true){
  13151. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13152. // }else{
  13153. // w += '<span>' + a[k].value + '</span>';
  13154. // }
  13155. // }else{
  13156. // if(p == 1){
  13157. // w = this.newEnglishList.engText;
  13158. // }else if(p == 2){
  13159. // w = this.oldEnglishJson1.engText;
  13160. // }else if(p == 3){
  13161. // w = this.newEnglishList.engText;
  13162. // }else{
  13163. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13164. // }
  13165. // }
  13166. // }
  13167. if(p == 1){
  13168. this.newEnglishList.engText = aiText;
  13169. }else if(p == 2){
  13170. this.oldEnglishJson1.engText = aiText;
  13171. }else if(p == 3){
  13172. this.newEnglishList.engText = aiText;
  13173. }else{
  13174. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13175. }
  13176. loading.close();
  13177. },
  13178. (err) => {
  13179. console.log(err);
  13180. loading.close();
  13181. }
  13182. );
  13183. },
  13184. addToolChoose() {
  13185. if (!this.checktoolArray.length) {
  13186. this.$message.error("请选择要添加的任务");
  13187. return;
  13188. }
  13189. if (
  13190. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13191. this.taskCount
  13192. ].toolChoose[0].tool.length
  13193. ) {
  13194. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13195. this.taskCount
  13196. ].toolChoose[0].tool = this.checktoolArray;
  13197. } else {
  13198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13199. this.taskCount
  13200. ].toolChoose.push({
  13201. tool: this.checktoolArray,
  13202. toolDetail: "",
  13203. toolType: 0,
  13204. askCount: 1,
  13205. askTitle: "",
  13206. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13207. });
  13208. }
  13209. let params = [
  13210. {
  13211. cid: this.id,
  13212. chapters: JSON.stringify(this.chapInfoList),
  13213. uid: this.userid,
  13214. unitIndex: this.courseType,
  13215. },
  13216. ];
  13217. this.ajax
  13218. .post(this.$store.state.api + "updateWorkNew4", params)
  13219. .then((res) => {
  13220. this.$message({
  13221. message: "添加成功",
  13222. type: "success",
  13223. });
  13224. this.checktoolArray = [];
  13225. this.getCourseDetail(2);
  13226. this.checkBz(
  13227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13228. this.taskCount
  13229. ].toolChoose.length - 1
  13230. );
  13231. this.toolDialogVisible = false;
  13232. this.refreshCourse();
  13233. this.$forceUpdate();
  13234. })
  13235. .catch((err) => {
  13236. console.error(err);
  13237. });
  13238. },
  13239. checkBz(index) {
  13240. this.isUpdateToolDetail = false;
  13241. this.$forceUpdate();
  13242. setTimeout(() => {
  13243. document.scrollingElement.scrollTop =
  13244. document.querySelectorAll(".filebox")[index].offsetTop +
  13245. document.querySelector(".student_body").offsetTop;
  13246. }, 500);
  13247. },
  13248. updateToolDetail(i, type) {
  13249. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13250. this.toolDetailIndex = i
  13251. this.isUpdateToolDetail1 = true;
  13252. setTimeout(() => {
  13253. this.updateToolDetailInner = JSON.parse(
  13254. JSON.stringify(
  13255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13256. this.taskCount
  13257. ].toolChoose[i].toolDetail
  13258. )
  13259. );
  13260. document.querySelector(".checkTextArea").focus();
  13261. }, 0);
  13262. } else if((this.isUpdateToolDetail1 && type != 2)){
  13263. // this.toolDetailIndex = i;
  13264. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13265. this.taskCount
  13266. ].toolChoose[i].toolDetail = JSON.parse(
  13267. JSON.stringify(this.updateToolDetailInner)
  13268. );
  13269. let params = [
  13270. {
  13271. cid: this.id,
  13272. chapters: JSON.stringify(this.chapInfoList),
  13273. uid: this.userid,
  13274. unitIndex: this.courseType,
  13275. },
  13276. ];
  13277. this.ajax
  13278. .post(this.$store.state.api + "updateWorkNew4", params)
  13279. .then((res) => {
  13280. this.isUpdateToolDetail1 = false;
  13281. this.$message({
  13282. message: "修改成功",
  13283. type: "success",
  13284. });
  13285. this.toolDetailIndex = null;
  13286. this.updateToolDetailInner = "";
  13287. this.getCourseDetail(2);
  13288. this.$forceUpdate();
  13289. })
  13290. .catch((err) => {
  13291. console.error(err);
  13292. });
  13293. } else if((this.isUpdateToolDetail1 && type == 2)){
  13294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13295. this.taskCount
  13296. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13297. JSON.stringify(this.updateToolDetailInner)
  13298. );
  13299. let params = [
  13300. {
  13301. cid: this.id,
  13302. chapters: JSON.stringify(this.chapInfoList),
  13303. uid: this.userid,
  13304. unitIndex: this.courseType,
  13305. },
  13306. ];
  13307. this.ajax
  13308. .post(this.$store.state.api + "updateWorkNew4", params)
  13309. .then((res) => {
  13310. this.$message({
  13311. message: "修改成功",
  13312. type: "success",
  13313. });
  13314. this.toolDetailIndex = i;
  13315. this.isUpdateToolDetail1 = true;
  13316. setTimeout(() => {
  13317. this.updateToolDetailInner = JSON.parse(
  13318. JSON.stringify(
  13319. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13320. this.taskCount
  13321. ].toolChoose[i].toolDetail
  13322. )
  13323. );
  13324. document.querySelector(".checkTextArea").focus();
  13325. }, 0);
  13326. this.getCourseDetail(2);
  13327. this.$forceUpdate();
  13328. })
  13329. .catch((err) => {
  13330. console.error(err);
  13331. });
  13332. }
  13333. },
  13334. jumpGj(i, j, k, l) {
  13335. for (var z = 0; z < this.navList.length; z++) {
  13336. for (var q = 0; q < this.navList[z].task.length; q++) {
  13337. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13338. this.navList[z].task[q].tool[w].isTool = false;
  13339. }
  13340. }
  13341. }
  13342. console.log(this.navList);
  13343. this.navList[i].task[j].tool[k].isTool =
  13344. !this.navList[i].task[j].tool[k].isTool;
  13345. var a = document.scrollingElement;
  13346. let target = document.querySelector(`#gj${k}`);
  13347. if (target) {
  13348. // target.scrollIntoView(true);
  13349. // setTimeout(() => {
  13350. // a.scrollTop = a.scrollTop - 150;
  13351. // }, 0);
  13352. target.scrollIntoView();
  13353. setTimeout(()=>{
  13354. let scrollBody = document.querySelector('.body_student').parentElement
  13355. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13356. }, 0);
  13357. }
  13358. this.navId = ""
  13359. let flag = this.courseType == i;
  13360. let flag2 = this.taskCount == j
  13361. if (l) {
  13362. this.courseType = i;
  13363. // this.navId = l;
  13364. this.taskCount = j;
  13365. this.selectPz();
  13366. this.getHomeWork();
  13367. this.getCourseDetail(2);
  13368. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13369. if(flag){
  13370. if(flag2){
  13371. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13372. }else{
  13373. 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>`)
  13374. }
  13375. }else{
  13376. 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>`)
  13377. }
  13378. }
  13379. // var b = this.$refs["bz" + k][0];
  13380. // a.scrollTop = b.offsetTop;
  13381. },
  13382. addTools2(i) {
  13383. if (i == 4) {
  13384. // this.openTools2(4);
  13385. this.$message.error("暂未开放");
  13386. return;
  13387. }
  13388. if (i == 45) {
  13389. // this.openTools2(45);
  13390. this.$message.error("暂未开放");
  13391. return;
  13392. }
  13393. if (i == 47) {
  13394. // this.openTools2(47);
  13395. this.$message.error("暂未开放");
  13396. return;
  13397. }
  13398. if (i == 49) {
  13399. // this.openTools2(49);
  13400. this.$message.error("暂未开放");
  13401. return;
  13402. }
  13403. if (i == 62) {
  13404. // this.openTools(itemTaskIndex, 62, toolIndex);
  13405. this.$message.error("暂未开放");
  13406. return;
  13407. }
  13408. if (i == 15) {
  13409. // this.openTools(itemTaskIndex, 15, toolIndex);
  13410. this.$message.error("暂未开放");
  13411. return;
  13412. }
  13413. if (i == 40) {
  13414. // this.openTools(itemTaskIndex, 40, toolIndex);
  13415. this.$message.error("暂未开放");
  13416. return;
  13417. }
  13418. if (i == 41) {
  13419. // this.openTools(itemTaskIndex, 41, toolIndex);
  13420. this.$message.error("暂未开放");
  13421. return;
  13422. }
  13423. if (i == 42) {
  13424. // this.openTools(itemTaskIndex, 42, toolIndex);
  13425. this.$message.error("暂未开放");
  13426. return;
  13427. }
  13428. if (this.checktoolArray.length > 0) {
  13429. if (this.checktoolArray.indexOf(i) != -1) {
  13430. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13431. } else {
  13432. this.checktoolArray = [];
  13433. this.checktoolArray.push(i);
  13434. }
  13435. } else {
  13436. this.checktoolArray.push(i);
  13437. }
  13438. this.$forceUpdate();
  13439. },
  13440. jump() {
  13441. window.topU.postMessage({ tools: "43" }, "*");
  13442. },
  13443. getUpdateMore(f, checkboxList, searchTN, index) {
  13444. this.dialogVisibleMember = f;
  13445. this.checkboxList = checkboxList;
  13446. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13447. this.plIndex = index;
  13448. },
  13449. setPlname(a) {
  13450. if (this.plworkFile.length) {
  13451. this.plworkFile[this.plIndex].username = a;
  13452. } else {
  13453. this.worksSName = a;
  13454. }
  13455. this.dialogVisibleMember = false;
  13456. },
  13457. previewImg(url,w) {
  13458. this.$hevueImgPreview(url);
  13459. if(w){
  13460. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13461. }
  13462. },
  13463. checkImg(list) {
  13464. if (!list.length) {
  13465. return;
  13466. }
  13467. this.$hevueImgPreview({
  13468. multiple: true, // 开启多图预览模式
  13469. imgList: list, // 需要预览的多图数组
  13470. });
  13471. },
  13472. change(val) {
  13473. console.log(val);
  13474. },
  13475. goTo(path) {
  13476. this.$router.push(path);
  13477. },
  13478. handlePictureCardPreview(url) {
  13479. this.dialogImageUrl = url;
  13480. this.pictureDialog = true;
  13481. },
  13482. clean(type) {
  13483. if (type == 1) {
  13484. this.studyJuri[0].cover.splice(0, 1);
  13485. } else if (type == 2) {
  13486. this.studyJuri[0].upVedio.splice(0, 1);
  13487. } else {
  13488. this.studyJuri[0].upFile.splice(0, 1);
  13489. }
  13490. },
  13491. clean2(index) {
  13492. this.plworkFile.splice(index, 1);
  13493. },
  13494. handleClose(done) {
  13495. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13496. this.videoDetail.sources[0].src = "";
  13497. }
  13498. this.commentIndexJson = {};
  13499. this.changeSplitScreenBehavior({code:99})
  13500. done();
  13501. },
  13502. fullTools() {
  13503. this.full = !this.full;
  13504. },
  13505. imgChange(file, fileList, type) {
  13506. if (type == 1) {
  13507. var _tmp = this.studyJuri[0].cover;
  13508. } else if (type == 2) {
  13509. var _tmp = this.studyJuri[0].upVedio;
  13510. } else {
  13511. var _tmp = this.studyJuri[0].upFile;
  13512. }
  13513. this.noneBtnImg = _tmp.length >= 1;
  13514. },
  13515. setContent(bool) {
  13516. this.contentDialog = bool;
  13517. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13518. document.querySelector(".workd_media").style.height = "650px";
  13519. } else if (document.querySelector(".workd_media")) {
  13520. document.querySelector(".workd_media").style.height = "auto";
  13521. }
  13522. },
  13523. setContent2(bool) {
  13524. this.mlDialog = bool;
  13525. if (
  13526. bool &&
  13527. this.contentDialog &&
  13528. document.querySelector(".workd_media")
  13529. ) {
  13530. document.querySelector(".workd_media").style.height = "650px";
  13531. } else if (document.querySelector(".workd_media")) {
  13532. document.querySelector(".workd_media").style.height = "auto";
  13533. }
  13534. },
  13535. openToolAll() {
  13536. this.toolDialogVisible = true;
  13537. },
  13538. addImg(e) {
  13539. var el = e.currentTarget;
  13540. // this.$message.success('触发上传')
  13541. el.getElementsByTagName("input")[0].click();
  13542. e.target.value = "";
  13543. },
  13544. addSelectAnswer() {
  13545. let params = [
  13546. {
  13547. uid: this.userid,
  13548. cid: this.id,
  13549. stage: this.courseType,
  13550. task: this.taskCount,
  13551. tool: this.toolindex,
  13552. content: this.selectAnswer.answer,
  13553. type: 7,
  13554. },
  13555. ];
  13556. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13557. this.homeWorkLoading = true
  13558. this.ajax
  13559. .post(this.$store.state.api + "addCourseWorks", params)
  13560. .then((res) => {
  13561. this.$message({
  13562. message: "提交成功",
  13563. type: "success",
  13564. });
  13565. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13566. setTimeout(() => {
  13567. this.homeWorkLoading = false
  13568. }, 500);
  13569. this.dialogVisibleSelect = false;
  13570. // this.selectAnswer = {};
  13571. this.selectSWorks();
  13572. this.selectStudent();
  13573. })
  13574. .catch((err) => {
  13575. this.$message.error("提交失败");
  13576. console.error(err);
  13577. setTimeout(() => {
  13578. this.homeWorkLoading = false
  13579. }, 500);
  13580. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13581. });
  13582. },
  13583. addSelectAnswerTeacher() {
  13584. let params = [
  13585. {
  13586. uid: this.sStudent.userid,
  13587. cid: this.id,
  13588. stage: this.courseType,
  13589. task: this.taskCount,
  13590. tool: this.toolindex,
  13591. content: this.selectAnswer.answer,
  13592. type: 7,
  13593. },
  13594. ];
  13595. this.ajax
  13596. .post(this.$store.state.api + "addCourseWorks", params)
  13597. .then((res) => {
  13598. this.$message({
  13599. message: "提交成功",
  13600. type: "success",
  13601. });
  13602. this.dialogVisibleSelectTeacher = false;
  13603. // this.selectAnswer = {};
  13604. this.selectSWorks();
  13605. this.selectStudent();
  13606. })
  13607. .catch((err) => {
  13608. this.$message.error("提交失败");
  13609. console.error(err);
  13610. });
  13611. },
  13612. addSenWorks() {
  13613. for (var i = 0; i < this.sentenceList.length; i++) {
  13614. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13615. if (
  13616. this.sentenceList[i].chooseSenList[j] == undefined ||
  13617. this.sentenceList[i].chooseSenList[j] == ""
  13618. ) {
  13619. this.$message.error("请将答案填写完整!");
  13620. return;
  13621. }
  13622. }
  13623. }
  13624. let params = [
  13625. {
  13626. uid: this.userid,
  13627. cid: this.id,
  13628. stage: this.courseType,
  13629. task: this.taskCount,
  13630. tool: this.toolindex,
  13631. content: JSON.stringify(this.sentenceList),
  13632. type: 9,
  13633. },
  13634. ];
  13635. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13636. this.homeWorkLoading = true
  13637. this.ajax
  13638. .post(this.$store.state.api + "addCourseWorks", params)
  13639. .then((res) => {
  13640. this.$message({
  13641. message: "提交成功",
  13642. type: "success",
  13643. });
  13644. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13645. setTimeout(() => {
  13646. this.homeWorkLoading = false
  13647. }, 500);
  13648. this.dialogVisibleSentence = false;
  13649. // this.selectAnswer = {};
  13650. this.selectSWorks();
  13651. this.selectStudent();
  13652. })
  13653. .catch((err) => {
  13654. this.$message.error("提交失败");
  13655. console.error(err);
  13656. setTimeout(() => {
  13657. this.homeWorkLoading = false
  13658. }, 500);
  13659. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13660. });
  13661. },
  13662. addSenWorksTeacher() {
  13663. for (var i = 0; i < this.sentenceList.length; i++) {
  13664. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13665. if (
  13666. this.sentenceList[i].chooseSenList[j] == undefined ||
  13667. this.sentenceList[i].chooseSenList[j] == ""
  13668. ) {
  13669. this.$message.error("请将答案填写完整!");
  13670. return;
  13671. }
  13672. }
  13673. }
  13674. let params = [
  13675. {
  13676. uid: this.sStudent.userid,
  13677. cid: this.id,
  13678. stage: this.courseType,
  13679. task: this.taskCount,
  13680. tool: this.toolindex,
  13681. content: JSON.stringify(this.sentenceList),
  13682. type: 9,
  13683. },
  13684. ];
  13685. this.ajax
  13686. .post(this.$store.state.api + "addCourseWorks", params)
  13687. .then((res) => {
  13688. this.$message({
  13689. message: "提交成功",
  13690. type: "success",
  13691. });
  13692. this.dialogVisibleSentenceTeacher = false;
  13693. // this.selectAnswer = {};
  13694. this.selectSWorks();
  13695. this.selectStudent();
  13696. })
  13697. .catch((err) => {
  13698. this.$message.error("提交失败");
  13699. console.error(err);
  13700. });
  13701. },
  13702. returnTableText() {
  13703. this.$confirm("确定还原此模板吗?", "提示", {
  13704. confirmButtonText: "确定",
  13705. cancelButtonText: "取消",
  13706. type: "warning",
  13707. })
  13708. .then(() => {
  13709. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13710. })
  13711. .catch(() => {});
  13712. },
  13713. addTableWorks() {
  13714. let params = [
  13715. {
  13716. uid: this.userid,
  13717. cid: this.id,
  13718. stage: this.courseType,
  13719. task: this.taskCount,
  13720. tool: this.toolindex,
  13721. content: JSON.stringify(this.tableJson),
  13722. type: 10,
  13723. },
  13724. ];
  13725. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13726. this.homeWorkLoading = true
  13727. this.ajax
  13728. .post(this.$store.state.api + "addCourseWorks", params)
  13729. .then((res) => {
  13730. this.$message({
  13731. message: "提交成功",
  13732. type: "success",
  13733. });
  13734. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13735. setTimeout(() => {
  13736. this.homeWorkLoading = false
  13737. }, 500);
  13738. this.dialogVisibleTable = false;
  13739. // this.selectAnswer = {};
  13740. this.selectSWorks();
  13741. this.selectStudent();
  13742. })
  13743. .catch((err) => {
  13744. this.$message.error("提交失败");
  13745. console.error(err);
  13746. setTimeout(() => {
  13747. this.homeWorkLoading = false
  13748. }, 500);
  13749. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13750. });
  13751. },
  13752. tableRowClassName({ row, rowIndex }) {
  13753. if ((rowIndex + 1) % 2 === 0) {
  13754. return "even_row";
  13755. } else {
  13756. return "";
  13757. }
  13758. },
  13759. addTableWorksTeacher() {
  13760. let params = [
  13761. {
  13762. uid: this.sStudent.userid,
  13763. cid: this.id,
  13764. stage: this.courseType,
  13765. task: this.taskCount,
  13766. tool: this.toolindex,
  13767. content: JSON.stringify(this.tableJson),
  13768. type: 10,
  13769. },
  13770. ];
  13771. this.ajax
  13772. .post(this.$store.state.api + "addCourseWorks", params)
  13773. .then((res) => {
  13774. this.$message({
  13775. message: "提交成功",
  13776. type: "success",
  13777. });
  13778. this.dialogVisibleTableTeacher = false;
  13779. // this.selectAnswer = {};
  13780. this.selectSWorks();
  13781. this.selectStudent();
  13782. })
  13783. .catch((err) => {
  13784. this.$message.error("提交失败");
  13785. console.error(err);
  13786. });
  13787. },
  13788. returnWordText() {
  13789. this.$confirm("确定还原此模板吗?", "提示", {
  13790. confirmButtonText: "确定",
  13791. cancelButtonText: "取消",
  13792. type: "warning",
  13793. })
  13794. .then(() => {
  13795. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13796. })
  13797. .catch(() => {});
  13798. },
  13799. addWordWorks() {
  13800. let params = [
  13801. {
  13802. uid: this.userid,
  13803. cid: this.id,
  13804. stage: this.courseType,
  13805. task: this.taskCount,
  13806. tool: this.toolindex,
  13807. content: JSON.stringify(this.wordJson),
  13808. type: 13,
  13809. atool: 52,
  13810. },
  13811. ];
  13812. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13813. this.homeWorkLoading = true
  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.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13822. setTimeout(() => {
  13823. this.homeWorkLoading = false
  13824. }, 500);
  13825. this.dialogVisibleWord = false;
  13826. // this.selectAnswer = {};
  13827. this.selectSWorks();
  13828. this.selectStudent();
  13829. })
  13830. .catch((err) => {
  13831. this.$message.error("提交失败");
  13832. console.error(err);
  13833. setTimeout(() => {
  13834. this.homeWorkLoading = false
  13835. }, 500);
  13836. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13837. });
  13838. },
  13839. addWordWorksTeacher() {
  13840. let params = [
  13841. {
  13842. uid: this.sStudent.userid,
  13843. cid: this.id,
  13844. stage: this.courseType,
  13845. task: this.taskCount,
  13846. tool: this.toolindex,
  13847. content: JSON.stringify(this.wordJson),
  13848. type: 13,
  13849. atool: 52,
  13850. },
  13851. ];
  13852. this.ajax
  13853. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13854. .then((res) => {
  13855. this.$message({
  13856. message: "提交成功",
  13857. type: "success",
  13858. });
  13859. this.dialogVisibleWordTeacher = false;
  13860. // this.selectAnswer = {};
  13861. this.selectSWorks();
  13862. this.selectStudent();
  13863. })
  13864. .catch((err) => {
  13865. this.$message.error("提交失败");
  13866. console.error(err);
  13867. });
  13868. },
  13869. addCourseWorks(i) {
  13870. var typesql;
  13871. if (this.fileType === 0) {
  13872. typesql = 1;
  13873. } else if (this.fileType === 1) {
  13874. typesql = 4;
  13875. } else if (this.fileType === 2) {
  13876. typesql = 5;
  13877. } else if (this.fileType === 3) {
  13878. typesql = 12;
  13879. }
  13880. if (!this.studyJuri[0].cover[0].url) {
  13881. this.$message.error("请上传文件");
  13882. return;
  13883. }
  13884. let params = [
  13885. {
  13886. uid: this.userid,
  13887. cid: this.id,
  13888. stage: this.courseType,
  13889. task: i,
  13890. tool: this.toolindex,
  13891. content: this.studyJuri[0].cover[0].url,
  13892. type: typesql,
  13893. },
  13894. ];
  13895. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13896. this.homeWorkLoading = true
  13897. this.ajax
  13898. .post(this.$store.state.api + "addCourseWorksR", params)
  13899. .then((res) => {
  13900. this.$message({
  13901. message: "提交成功",
  13902. type: "success",
  13903. });
  13904. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13905. setTimeout(() => {
  13906. this.homeWorkLoading = false
  13907. }, 500);
  13908. this.studyJuri[0].cover = [];
  13909. this.dialogVisible = false;
  13910. this.getCourseDetail(2);
  13911. })
  13912. .catch((err) => {
  13913. this.$message.error("提交失败");
  13914. console.error(err);
  13915. setTimeout(() => {
  13916. this.homeWorkLoading = false
  13917. }, 500);
  13918. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13919. });
  13920. },
  13921. addCourseWorksPl(i) {
  13922. let _files = this.plworkFile;
  13923. var c = 1;
  13924. for (var k = 0; k < _files.length; k++) {
  13925. if (!_files[k].username) {
  13926. c = 2;
  13927. }
  13928. }
  13929. if (c == 2) {
  13930. this.$message.error("请填写学生姓名");
  13931. return;
  13932. }
  13933. let params = [
  13934. {
  13935. ateacher: this.userid,
  13936. cid: this.id,
  13937. stage: this.courseType,
  13938. task: i,
  13939. tool: this.toolindex,
  13940. content: JSON.stringify(_files),
  13941. },
  13942. ];
  13943. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13944. this.homeWorkLoading = true
  13945. this.ajax
  13946. .post(this.$store.state.api + "addCourseWorksPl", params)
  13947. .then((res) => {
  13948. this.$message({
  13949. message: "提交成功",
  13950. type: "success",
  13951. });
  13952. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13953. setTimeout(() => {
  13954. this.homeWorkLoading = false
  13955. }, 500);
  13956. this.plworkFile = [];
  13957. this.dialogVisiblePl = false;
  13958. this.getCourseDetail(2);
  13959. })
  13960. .catch((err) => {
  13961. this.$message.error("提交失败");
  13962. console.error(err);
  13963. setTimeout(() => {
  13964. this.homeWorkLoading = false
  13965. }, 500);
  13966. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13967. });
  13968. },
  13969. addCourseWorks2(i) {
  13970. var typesql;
  13971. if (this.fileType === 0) {
  13972. typesql = 0;
  13973. } else if (this.fileType === 1) {
  13974. typesql = 1;
  13975. } else if (this.fileType === 2) {
  13976. typesql = 3;
  13977. } else if (this.fileType === 3) {
  13978. typesql = 12;
  13979. }
  13980. if (!this.studyJuri[0].cover[0].url) {
  13981. this.$message.error("请上传文件");
  13982. return;
  13983. }
  13984. let params = [
  13985. {
  13986. uid: this.userid,
  13987. cid: this.id,
  13988. stage: this.courseType,
  13989. task: i,
  13990. tool: this.toolindex,
  13991. content: JSON.stringify({
  13992. type: typesql,
  13993. groupIndex: this.groupIndex,
  13994. url: this.studyJuri[0].cover[0].url,
  13995. }),
  13996. type: 11,
  13997. atool: 49,
  13998. text: "",
  13999. },
  14000. ];
  14001. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14002. this.homeWorkLoading = true
  14003. this.ajax
  14004. .post(this.$store.state.api + "addCourseWorks5", params)
  14005. .then((res) => {
  14006. this.$message({
  14007. message: "提交成功",
  14008. type: "success",
  14009. });
  14010. setTimeout(() => {
  14011. this.homeWorkLoading = false
  14012. }, 500);
  14013. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14014. type: typesql,
  14015. groupIndex: this.groupIndex,
  14016. url: this.studyJuri[0].cover[0].url,
  14017. }),type: "course_tool_sub" }, "success")
  14018. this.studyJuri[0].cover = [];
  14019. this.dialogVisibleGroupWork = false;
  14020. this.getCourseDetail(2);
  14021. })
  14022. .catch((err) => {
  14023. this.$message.error("提交失败");
  14024. console.error(err);
  14025. setTimeout(() => {
  14026. this.homeWorkLoading = false
  14027. }, 500);
  14028. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14029. type: typesql,
  14030. groupIndex: this.groupIndex,
  14031. url: this.studyJuri[0].cover[0].url,
  14032. }),type: "course_tool_sub" }, err)
  14033. });
  14034. },
  14035. addEnglishWork() {
  14036. this.myAnList = this.$refs['engJson'].myAnswerList;
  14037. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14038. this.$message.error("请输入作文标题和正文!");
  14039. return;
  14040. }
  14041. let params = [
  14042. {
  14043. uid: this.userid,
  14044. cid: this.id,
  14045. stage: this.courseType,
  14046. task: this.taskCount,
  14047. tool: this.englishToolIndex,
  14048. content: JSON.stringify(this.myAnList),
  14049. type: 16,
  14050. atool: 69,
  14051. text: "",
  14052. },
  14053. ];
  14054. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14055. this.homeWorkLoading = true
  14056. this.ajax
  14057. .post(this.$store.state.api + "addCourseWorks5", params)
  14058. .then((res) => {
  14059. this.$message({
  14060. message: "提交成功",
  14061. type: "success",
  14062. });
  14063. setTimeout(() => {
  14064. this.homeWorkLoading = false
  14065. }, 500);
  14066. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14067. data: JSON.stringify(this.myAnList),
  14068. type: "course_tool_sub" }, "success")
  14069. this.myAnList = {};
  14070. this.englishList = {};
  14071. this.englishToolIndex = 0;
  14072. this.engDialogVisible = false;
  14073. this.selectSWorks();
  14074. this.selectStudent();
  14075. })
  14076. .catch((err) => {
  14077. this.$message.error("提交失败");
  14078. console.error(err);
  14079. setTimeout(() => {
  14080. this.homeWorkLoading = false
  14081. }, 500);
  14082. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14083. data: JSON.stringify(this.myAnList),
  14084. type: "course_tool_sub" }, err)
  14085. });
  14086. },
  14087. addCourseWorksGong(i, data, tool) {
  14088. let params = [
  14089. {
  14090. uid: this.userid,
  14091. cid: this.id,
  14092. stage: this.courseType,
  14093. task: this.taskCount,
  14094. tool: i,
  14095. content: data,
  14096. type: 12,
  14097. atool: tool,
  14098. text: "",
  14099. },
  14100. ];
  14101. this.ajax
  14102. .post(this.$store.state.api + "addCourseWorks5", params)
  14103. .then((res) => {
  14104. this.$message({
  14105. message: "提交成功",
  14106. type: "success",
  14107. });
  14108. this.studyJuri[0].cover = [];
  14109. this.selectSWorks();
  14110. this.selectStudent();
  14111. })
  14112. .catch((err) => {
  14113. this.$message.error("提交失败");
  14114. console.error(err);
  14115. });
  14116. },
  14117. addCourseWorksGongTeacher(i, data, tool) {
  14118. let params = [
  14119. {
  14120. uid: this.sStudent.userid,
  14121. cid: this.id,
  14122. stage: this.courseType,
  14123. task: this.taskCount,
  14124. tool: i,
  14125. content: data,
  14126. type: 12,
  14127. atool: tool,
  14128. text: "",
  14129. },
  14130. ];
  14131. this.ajax
  14132. .post(this.$store.state.api + "addCourseWorks5", params)
  14133. .then((res) => {
  14134. this.$message({
  14135. message: "提交成功",
  14136. type: "success",
  14137. });
  14138. this.studyJuri[0].cover = [];
  14139. this.dialogVisibleWorks = false;
  14140. this.selectSWorks();
  14141. this.selectStudent();
  14142. })
  14143. .catch((err) => {
  14144. this.$message.error("提交失败");
  14145. console.error(err);
  14146. });
  14147. },
  14148. addCourseWorksGongPl(i, data, tool, type) {
  14149. let params = [
  14150. {
  14151. uid: this.sStudent.userid,
  14152. cid: this.id,
  14153. stage: this.courseType,
  14154. task: this.taskCount,
  14155. tool: i,
  14156. content: data,
  14157. type: type,
  14158. atool: tool,
  14159. text: "",
  14160. },
  14161. ];
  14162. this.ajax
  14163. .post(this.$store.state.api + "addCourseWorks5", params)
  14164. .then((res) => {
  14165. this.$message({
  14166. message: "提交成功",
  14167. type: "success",
  14168. });
  14169. this.studyJuri[0].cover = [];
  14170. this.dialogVisibleWorks = false;
  14171. this.selectSWorks();
  14172. this.selectStudent();
  14173. })
  14174. .catch((err) => {
  14175. this.$message.error("提交失败");
  14176. console.error(err);
  14177. });
  14178. },
  14179. addCourseWorksTeacher(i) {
  14180. var typesql;
  14181. if (this.sTool == 32) {
  14182. this.addCourseWorksGongTeacher(
  14183. this.toolindex,
  14184. this.studyJuri[0].cover[0].url,
  14185. this.sTool
  14186. );
  14187. return;
  14188. }
  14189. if (this.fileType === 0) {
  14190. typesql = 1;
  14191. } else if (this.fileType === 1) {
  14192. typesql = 4;
  14193. } else if (this.fileType === 2) {
  14194. typesql = 5;
  14195. } else if (this.fileType === 3) {
  14196. typesql = 12;
  14197. }
  14198. if (this.sTool == 50) {
  14199. this.addCourseWorksGongPl(
  14200. this.toolindex,
  14201. this.studyJuri[0].cover[0].url,
  14202. this.sTool,
  14203. typesql
  14204. );
  14205. return;
  14206. }
  14207. if (!this.studyJuri[0].cover[0].url) {
  14208. this.$message.error("请上传文件");
  14209. return;
  14210. }
  14211. let params = [
  14212. {
  14213. uid: this.sStudent.userid,
  14214. cid: this.id,
  14215. stage: this.courseType,
  14216. task: i,
  14217. tool: this.toolindex,
  14218. content: this.studyJuri[0].cover[0].url,
  14219. type: typesql,
  14220. ateacher: this.userid,
  14221. },
  14222. ];
  14223. this.ajax
  14224. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14225. .then((res) => {
  14226. this.$message({
  14227. message: "提交成功",
  14228. type: "success",
  14229. });
  14230. this.studyJuri[0].cover = [];
  14231. this.dialogVisibleWorks = false;
  14232. this.getCourseDetail(2);
  14233. })
  14234. .catch((err) => {
  14235. this.$message.error("提交失败");
  14236. console.error(err);
  14237. });
  14238. },
  14239. selectUploadStudent(type) {
  14240. const loading = this.$loading.service({
  14241. background: "rgba(255, 255, 255, 0.7)",
  14242. target: document.body,
  14243. });
  14244. let params = {
  14245. cid: this.uploadCid,
  14246. oid: this.oid,
  14247. cn: "",
  14248. };
  14249. this.ajax
  14250. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14251. .then((res) => {
  14252. loading.close();
  14253. var studentK = [];
  14254. if (this.isWorksS[this.toolindex].length > 0) {
  14255. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14256. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14257. }
  14258. studentK = studentK.join(",");
  14259. }
  14260. this.uploadStudentJuri = res.data[0].filter((el) => {
  14261. return studentK.indexOf(el.userid) == -1;
  14262. });
  14263. if (this.worksSName && this.worksSid) {
  14264. this.uploadStudentJuri.push({
  14265. userid: this.worksSid,
  14266. name: this.worksSName,
  14267. });
  14268. }
  14269. if (type == 1) {
  14270. this.plworkFile = [];
  14271. this.dialogVisibleSname = true;
  14272. } else if (type == 2) {
  14273. this.dialogVisiblePl = true;
  14274. }
  14275. })
  14276. .catch((err) => {
  14277. loading.close();
  14278. console.error(err);
  14279. });
  14280. },
  14281. selectPickStudent() {
  14282. const loading = this.$loading.service({
  14283. background: "rgba(255, 255, 255, 0.7)",
  14284. target: document.body,
  14285. });
  14286. let params = {
  14287. cid: this.uploadCid,
  14288. oid: this.oid,
  14289. cn: "",
  14290. };
  14291. this.ajax
  14292. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14293. .then((res) => {
  14294. loading.close();
  14295. this.uploadStudentJuri = res.data[0];
  14296. this.dialogVisiblePickPeople = true;
  14297. })
  14298. .catch((err) => {
  14299. loading.close();
  14300. console.error(err);
  14301. });
  14302. },
  14303. arrayToArray(arrayo, arrayt) {
  14304. let array1 = arrayo;
  14305. let array2 = arrayt;
  14306. let commonElements = [];
  14307. for (let i = 0; i < array1.length; i++) {
  14308. for (let j = 0; j < array2.length; j++) {
  14309. if (array1[i] === array2[j]) {
  14310. commonElements.push(array1[i]);
  14311. }
  14312. }
  14313. }
  14314. return commonElements;
  14315. },
  14316. selectWorksStudent() {
  14317. let params = {
  14318. oid: this.oid,
  14319. cid: this.courseDetail.juri,
  14320. };
  14321. this.ajax
  14322. .get(this.$store.state.api + "selectWorksStudent", params)
  14323. .then((res) => {
  14324. var a = res.data[0];
  14325. for (var i = 0; i < this.isWorksS.length; i++) {
  14326. this.noWorksS[i] = [];
  14327. var studentK = [];
  14328. if (this.isWorksS[i].length > 0) {
  14329. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14330. studentK.push(this.isWorksS[i][z].uid);
  14331. }
  14332. studentK = studentK.join(",");
  14333. for (var j = 0; j < a.length; j++) {
  14334. if (studentK.indexOf(a[j].userid) == -1) {
  14335. if (this.tcid) {
  14336. // a[j].classid.indexOf(this.tcid) != -1
  14337. if (
  14338. this.arrayToArray(
  14339. a[j].classid.split(","),
  14340. this.tcid.split(",")
  14341. ).length
  14342. ) {
  14343. this.noWorksS[i].push({
  14344. student: a[j].name,
  14345. userid: a[j].userid,
  14346. });
  14347. }
  14348. } else {
  14349. this.noWorksS[i].push({
  14350. student: a[j].name,
  14351. userid: a[j].userid,
  14352. });
  14353. }
  14354. }
  14355. }
  14356. } else {
  14357. for (var k = 0; k < a.length; k++) {
  14358. if (this.tcid) {
  14359. if (
  14360. this.arrayToArray(
  14361. a[k].classid.split(","),
  14362. this.tcid.split(",")
  14363. ).length
  14364. ) {
  14365. this.noWorksS[i].push({
  14366. student: a[k].name,
  14367. userid: a[k].userid,
  14368. });
  14369. }
  14370. } else {
  14371. this.noWorksS[i].push({
  14372. student: a[k].name,
  14373. userid: a[k].userid,
  14374. });
  14375. }
  14376. }
  14377. }
  14378. }
  14379. this.$forceUpdate();
  14380. if (
  14381. Object.keys(this.commentDetail).length &&
  14382. Object.keys(this.commentIndexJson).length &&
  14383. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14384. ) {
  14385. let a = 1;
  14386. let c = this.commentIndexJson;
  14387. if (
  14388. this.commentIndexJson.gindex ||
  14389. this.commentIndexJson.gindex === 0
  14390. ) {
  14391. for (
  14392. var i = 0;
  14393. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14394. i++
  14395. ) {
  14396. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14397. groupA: for (var k = 0; k < _el.length; k++) {
  14398. let el = _el[k];
  14399. if (el.wid == this.commentDetail.wid) {
  14400. a = 2;
  14401. this.commentOther(
  14402. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14403. this.commentIndexJson.toolIndex,
  14404. k,
  14405. this.commentIndexJson.gindex
  14406. );
  14407. break groupA;
  14408. }
  14409. }
  14410. }
  14411. if (a === 1) {
  14412. this.commentDetail = [];
  14413. this.commentIndexJson = {};
  14414. this.commentDialogVisible = false;
  14415. this.$message("此作业已被删除");
  14416. }
  14417. } else {
  14418. if (this.isGroup && this.commentIndexJson.gid) {
  14419. groupA: for (
  14420. var i = 0;
  14421. i < this.courseGroup.group.length;
  14422. i++
  14423. ) {
  14424. let _group = this.courseGroup.group[i];
  14425. if (_group.id == this.commentIndexJson.gid) {
  14426. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14427. for (var k = 0; k < _el2.length; k++) {
  14428. let el2 = _el2[k];
  14429. if (el2.wid == this.commentDetail.wid) {
  14430. a = 2;
  14431. this.commentOther(
  14432. _el2[k],
  14433. this.commentIndexJson.toolIndex,
  14434. k,
  14435. null,
  14436. this.commentIndexJson.gid
  14437. );
  14438. break groupA;
  14439. }
  14440. }
  14441. }
  14442. }
  14443. }
  14444. if (a == 1) {
  14445. for (
  14446. var i = 0;
  14447. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14448. i++
  14449. ) {
  14450. let el =
  14451. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14452. if (el.wid == this.commentDetail.wid) {
  14453. a = 2;
  14454. this.commentOther(
  14455. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14456. this.commentIndexJson.toolIndex,
  14457. i
  14458. );
  14459. break;
  14460. }
  14461. }
  14462. }
  14463. if (a === 1) {
  14464. this.commentDetail = [];
  14465. this.commentIndexJson = {};
  14466. this.commentDialogVisible = false;
  14467. this.$message("此作业已被删除");
  14468. }
  14469. }
  14470. }
  14471. })
  14472. .catch((err) => {
  14473. console.error(err);
  14474. });
  14475. },
  14476. selectStudent() {
  14477. //学生查看自己作业
  14478. let params = {
  14479. uid: this.userid,
  14480. cid: this.id,
  14481. s: this.courseType,
  14482. t: this.taskCount,
  14483. };
  14484. this.ajax
  14485. .get(this.$store.state.api + "selectStudentWorks", params)
  14486. .then((res) => {
  14487. var a =
  14488. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14489. this.taskCount
  14490. ].toolChoose;
  14491. var b = res.data[0];
  14492. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14493. var y = [
  14494. "AVI",
  14495. "NAVI",
  14496. "MPEG",
  14497. "ASF",
  14498. "MOV",
  14499. "WMV",
  14500. "3GP",
  14501. "RM",
  14502. "RMVB",
  14503. "FLV",
  14504. "F4V",
  14505. "H.264",
  14506. "H.265",
  14507. "REAL VIDEO",
  14508. "MKV",
  14509. "WebM",
  14510. "HDDVD",
  14511. "MP4",
  14512. "MPG",
  14513. "M4V",
  14514. "MGV",
  14515. "OGV",
  14516. "QTM",
  14517. "STR",
  14518. "AMC",
  14519. "DVX",
  14520. "EVO",
  14521. "DAT",
  14522. "OGG",
  14523. "OGM",
  14524. ];
  14525. for (var i = 0; i < a.length; i++) {
  14526. this.workStudent[i] = [];
  14527. for (var j = 0; j < b.length; j++) {
  14528. if (i == b[j].tool) {
  14529. if (
  14530. (b[j].type == 1 ||
  14531. b[j].type == 4 ||
  14532. b[j].type == 5 ||
  14533. b[j].type == 6 ||
  14534. b[j].type == 12 ||
  14535. b[j].type == 7) &&
  14536. a[i].tool[0] != 15 &&
  14537. a[i].tool[0] != 4 &&
  14538. a[i].tool[0] != 45 &&
  14539. a[i].tool[0] != 50 &&
  14540. a[i].tool[0] != 32 &&
  14541. a[i].tool[0] != 57 &&
  14542. a[i].tool[0] != 52 &&
  14543. a[i].tool[0] != 69
  14544. ) {
  14545. if (
  14546. c.indexOf(
  14547. b[j].content
  14548. .split(".")
  14549. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14550. ) != -1 &&
  14551. a[i].tool[0] == 16 &&
  14552. b[j].atool != 50
  14553. ) {
  14554. this.workStudent[i].push({
  14555. works: b[j].content,
  14556. sName: b[j].name,
  14557. score: b[j].score,
  14558. img: b[j].img,
  14559. type: 1,
  14560. time: b[j].time,
  14561. userid: b[j].userid,
  14562. wid: b[j].id,
  14563. });
  14564. } else if (
  14565. y.indexOf(
  14566. b[j].content
  14567. .split(".")
  14568. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14569. ) != -1 &&
  14570. a[i].tool[0] == 16 &&
  14571. b[j].atool != 50
  14572. ) {
  14573. this.workStudent[i].push({
  14574. userid: b[j].userid,
  14575. wid: b[j].id,
  14576. works: b[j].content,
  14577. sName: b[j].name,
  14578. score: b[j].score,
  14579. img: b[j].img,
  14580. type: 3,
  14581. time: b[j].time,
  14582. });
  14583. } else if (b[j].type == 6 && b[j].atool != 50) {
  14584. this.workStudent[i].push({
  14585. userid: b[j].userid,
  14586. wid: b[j].id,
  14587. works: b[j].content,
  14588. sName: b[j].name,
  14589. score: b[j].score,
  14590. img: b[j].img,
  14591. type: 4,
  14592. time: b[j].time,
  14593. });
  14594. } else if (b[j].type == 7 && b[j].atool != 50) {
  14595. this.workStudent[i].push({
  14596. userid: b[j].userid,
  14597. wid: b[j].id,
  14598. works: b[j].content,
  14599. sName: b[j].name,
  14600. score: b[j].score,
  14601. img: b[j].img,
  14602. type: 5,
  14603. time: b[j].time,
  14604. });
  14605. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14606. this.workStudent[i].push({
  14607. works: b[j].content,
  14608. sName: b[j].name,
  14609. score: b[j].score,
  14610. img: b[j].img,
  14611. type: 12,
  14612. time: b[j].time,
  14613. userid: b[j].userid,
  14614. wid: b[j].id,
  14615. });
  14616. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14617. this.workStudent[i].push({
  14618. works: b[j].content,
  14619. sName: b[j].name,
  14620. score: b[j].score,
  14621. img: b[j].img,
  14622. type: 0,
  14623. time: b[j].time,
  14624. userid: b[j].userid,
  14625. wid: b[j].id,
  14626. });
  14627. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14628. this.workStudent[i].push({
  14629. works: b[j].content,
  14630. sName: b[j].name,
  14631. score: b[j].score,
  14632. img: b[j].img,
  14633. type: 0,
  14634. time: b[j].time,
  14635. userid: b[j].userid,
  14636. wid: b[j].id,
  14637. });
  14638. }
  14639. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14640. this.workStudent[i].push({
  14641. works: b[j].content,
  14642. sName: b[j].name,
  14643. score: b[j].score,
  14644. img: b[j].img,
  14645. type: 2,
  14646. time: b[j].time,
  14647. userid: b[j].userid,
  14648. wid: b[j].id,
  14649. });
  14650. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14651. this.workStudent[i].push({
  14652. works: b[j].content,
  14653. sName: b[j].name,
  14654. score: b[j].score,
  14655. img: b[j].img,
  14656. type: 20,
  14657. time: b[j].time,
  14658. userid: b[j].userid,
  14659. wid: b[j].id,
  14660. });
  14661. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14662. //问卷
  14663. this.workStudent[i].push({
  14664. works: b[j].content,
  14665. sName: b[j].name,
  14666. score: b[j].score,
  14667. img: b[j].img,
  14668. type: 2,
  14669. time: b[j].time,
  14670. userid: b[j].userid,
  14671. wid: b[j].id,
  14672. });
  14673. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14674. //选择题
  14675. this.workStudent[i].push({
  14676. works: b[j].content,
  14677. sName: b[j].name,
  14678. score: b[j].score,
  14679. img: b[j].img,
  14680. type: 8,
  14681. time: b[j].time,
  14682. userid: b[j].userid,
  14683. wid: b[j].id,
  14684. });
  14685. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14686. //选择题
  14687. this.workStudent[i].push({
  14688. works: b[j].content,
  14689. sName: b[j].name,
  14690. score: b[j].score,
  14691. img: b[j].img,
  14692. type: 9,
  14693. time: b[j].time,
  14694. userid: b[j].userid,
  14695. wid: b[j].id,
  14696. });
  14697. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14698. //选择题
  14699. this.workStudent[i].push({
  14700. works: b[j].content,
  14701. sName: b[j].name,
  14702. score: b[j].score,
  14703. img: b[j].img,
  14704. type: 10,
  14705. time: b[j].time,
  14706. userid: b[j].userid,
  14707. wid: b[j].id,
  14708. });
  14709. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14710. //选择题
  14711. this.workStudent[i].push({
  14712. works: b[j].content,
  14713. sName: b[j].name,
  14714. score: b[j].score,
  14715. img: b[j].img,
  14716. type: 13,
  14717. time: b[j].time,
  14718. userid: b[j].userid,
  14719. wid: b[j].id,
  14720. });
  14721. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14722. //选择题
  14723. this.workStudent[i].push({
  14724. works: b[j].content,
  14725. sName: b[j].name,
  14726. score: b[j].score,
  14727. img: b[j].img,
  14728. type: 12,
  14729. time: b[j].time,
  14730. userid: b[j].userid,
  14731. wid: b[j].id,
  14732. });
  14733. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  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: 12,
  14741. time: b[j].time,
  14742. userid: b[j].userid,
  14743. wid: b[j].id,
  14744. });
  14745. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  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: 15,
  14753. time: b[j].time,
  14754. userid: b[j].userid,
  14755. wid: b[j].id,
  14756. });
  14757. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14758. //英语写作
  14759. this.workStudent[i].push({
  14760. works: b[j].content,
  14761. sName: b[j].name,
  14762. score: b[j].score,
  14763. img: b[j].img,
  14764. type: 16,
  14765. time: b[j].time,
  14766. userid: b[j].userid,
  14767. wid: b[j].id,
  14768. aiCode: b[j].aiCode,
  14769. teacherCode: b[j].teacherCode
  14770. });
  14771. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14772. //英语口语
  14773. this.workStudent[i].push({
  14774. works: b[j].content,
  14775. sName: b[j].name,
  14776. score: b[j].score,
  14777. img: b[j].img,
  14778. type: 17,
  14779. time: b[j].time,
  14780. userid: b[j].userid,
  14781. wid: b[j].id,
  14782. });
  14783. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14784. //交互视频
  14785. this.workStudent[i].push({
  14786. works: b[j].content,
  14787. sName: b[j].name,
  14788. score: b[j].score,
  14789. img: b[j].img,
  14790. type: 14,
  14791. time: b[j].time,
  14792. userid: b[j].userid,
  14793. wid: b[j].id,
  14794. });
  14795. }
  14796. }
  14797. }
  14798. }
  14799. })
  14800. .catch((err) => {
  14801. console.error(err);
  14802. });
  14803. },
  14804. openVideo(w) {
  14805. this.videoDetail = {};
  14806. this.playerOptions1.sources[0].src = w.works;
  14807. this.videoDetail = this.playerOptions1;
  14808. this.videoVisible = true;
  14809. },
  14810. isLikes(wid, uid, t, c, isLikes,sName) {
  14811. if (isLikes == false) {
  14812. let params = [
  14813. {
  14814. wid: wid,
  14815. lid: uid,
  14816. t: t,
  14817. c: c,
  14818. },
  14819. ];
  14820. this.ajax
  14821. .post(this.$store.state.api + "insertComment", params)
  14822. .then((res) => {
  14823. this.$message({
  14824. message: "点赞成功",
  14825. type: "success",
  14826. });
  14827. this.selectSWorks();
  14828. this.selectStudent();
  14829. if(this.tType!=2){
  14830. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14831. }
  14832. })
  14833. .catch((err) => {
  14834. this.$message.error("点赞失败");
  14835. console.error(err);
  14836. });
  14837. } else {
  14838. let params = {
  14839. wid: wid,
  14840. lid: uid,
  14841. type: t,
  14842. };
  14843. this.ajax
  14844. .get(this.$store.state.api + "deleteComment", params)
  14845. .then((res) => {
  14846. this.$message({
  14847. message: "取消点赞成功",
  14848. type: "success",
  14849. });
  14850. this.selectSWorks();
  14851. this.selectStudent();
  14852. })
  14853. .catch((err) => {
  14854. console.error(err);
  14855. });
  14856. }
  14857. },
  14858. deleteComment(wid) {
  14859. this.$confirm("确定删除此评论吗?", "提示", {
  14860. confirmButtonText: "确定",
  14861. cancelButtonText: "取消",
  14862. type: "warning",
  14863. })
  14864. .then(() => {
  14865. let params = {
  14866. id: wid,
  14867. };
  14868. this.ajax
  14869. .get(this.$store.state.api + "deleteComment2", params)
  14870. .then((res) => {
  14871. this.$message({
  14872. message: "删除评论成功",
  14873. type: "success",
  14874. });
  14875. this.selectSWorks();
  14876. this.selectStudent();
  14877. })
  14878. .catch((err) => {
  14879. console.error(err);
  14880. });
  14881. })
  14882. .catch(() => {});
  14883. },
  14884. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14885. this.commentIndexJson = {
  14886. toolIndex: toolIndex,
  14887. wIndex: wIndex,
  14888. gindex: gindex,
  14889. gid: gid,
  14890. };
  14891. this.commentDetail = [];
  14892. this.commentDialogVisible = true;
  14893. this.commentDetail = w;
  14894. if (w.works && w.type == 1) {
  14895. // this.pptImgUrl = "";
  14896. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14897. if (
  14898. a.indexOf(
  14899. w.works
  14900. .split(".")
  14901. [w.works.split(".").length - 1].toLocaleUpperCase()
  14902. ) != -1
  14903. ) {
  14904. let _uuurl = await this.checkLink(w.works);
  14905. console.log(_uuurl)
  14906. this.pptImgUrl =
  14907. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14908. this.showPDF = false;
  14909. } else if (
  14910. w.works
  14911. .split(".")
  14912. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14913. ) {
  14914. this.pptImgUrl = w.works;
  14915. this.showPDF = true;
  14916. }
  14917. } else if (w.works && w.type == 3) {
  14918. this.videoDetail = {};
  14919. this.playerOptions1.sources[0].src = w.works;
  14920. this.videoDetail = this.playerOptions1;
  14921. // this.videoVisible = true;
  14922. } else if (w.works && w.type == 4) {
  14923. this.eScore = JSON.parse(w.works);
  14924. this.rateJson =
  14925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14926. this.taskCount
  14927. ].toolChoose[toolIndex].rateJson;
  14928. } else if (w.works && w.type == 10) {
  14929. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14930. } else if (w.works && w.type == 13) {
  14931. this.wordJson =
  14932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14933. this.taskCount
  14934. ].toolChoose[toolIndex].wordJson;
  14935. }
  14936. },
  14937. async openScore(w, index) {
  14938. this.wScore = 0;
  14939. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14940. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14941. this.commentDetail = [];
  14942. if(w.type == 17){
  14943. this.dialogVisibleENScore = true;
  14944. }else{
  14945. this.dialogVisibleScore = true;
  14946. }
  14947. this.commentDetail = w;
  14948. if (w.works && w.type == 1) {
  14949. this.pptImgUrl = "";
  14950. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14951. if (
  14952. a.indexOf(
  14953. w.works
  14954. .split(".")
  14955. [w.works.split(".").length - 1].toLocaleUpperCase()
  14956. ) != -1
  14957. ) {
  14958. let _uuurl = await this.checkLink(w.works);
  14959. console.log(_uuurl)
  14960. this.pptImgUrl =
  14961. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14962. this.showPDF = false;
  14963. } else if (
  14964. w.works
  14965. .split(".")
  14966. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14967. ) {
  14968. this.pptImgUrl = w.works;
  14969. this.showPDF = true;
  14970. }
  14971. } else if (w.works && w.type == 3) {
  14972. this.videoDetail = {};
  14973. this.playerOptions1.sources[0].src = w.works;
  14974. this.videoDetail = this.playerOptions1;
  14975. }else if(w.type == 17){
  14976. let englishVoiceJson = {}
  14977. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14978. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14979. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14980. .toolChoose[index].englishVoiceJson
  14981. : {};
  14982. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14983. }
  14984. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14985. },
  14986. addComment(wid, uid, t,detail) {
  14987. if (this.commentText == "") {
  14988. this.$message.error("请输入评论");
  14989. return;
  14990. }
  14991. let params2 = [
  14992. {
  14993. wid: wid,
  14994. lid: uid,
  14995. t: t,
  14996. },
  14997. ];
  14998. this.ajax
  14999. .post(this.$store.state.api + "getComment", params2)
  15000. .then((res) => {
  15001. if (res.data[0].length > 0) {
  15002. this.$message.error("一个作业只能评论一条");
  15003. } else {
  15004. let params = [
  15005. {
  15006. wid: wid,
  15007. lid: uid,
  15008. t: t,
  15009. c: this.commentText,
  15010. },
  15011. ];
  15012. this.ajax
  15013. .post(this.$store.state.api + "insertComment", params)
  15014. .then((res) => {
  15015. this.$message({
  15016. message: "评论成功",
  15017. type: "success",
  15018. });
  15019. this.commentText = "";
  15020. this.selectSWorks();
  15021. this.selectStudent();
  15022. if(this.tType!=2){
  15023. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15024. }
  15025. })
  15026. .catch((err) => {
  15027. this.$message.error("评论失败");
  15028. console.error(err);
  15029. });
  15030. }
  15031. })
  15032. .catch((err) => {
  15033. // this.$message.error("评论失败");
  15034. console.error(err);
  15035. });
  15036. },
  15037. scoreWork(wid,sName) {
  15038. if (this.wScore == 0) {
  15039. this.$message.error("请评分");
  15040. return;
  15041. }
  15042. let params = [
  15043. {
  15044. wid: wid,
  15045. score: JSON.stringify({
  15046. wScore: this.wScore,
  15047. detail: this.scoreDetail,
  15048. }),
  15049. },
  15050. ];
  15051. this.ajax
  15052. .post(this.$store.state.api + "scoreWork", params)
  15053. .then((res) => {
  15054. this.$message({
  15055. message: "评分成功",
  15056. type: "success",
  15057. });
  15058. this.wScore = 0;
  15059. this.scoreDetail = "";
  15060. this.dialogVisibleScore = false;
  15061. this.selectSWorks();
  15062. this.selectStudent();
  15063. if(this.tType!=2){
  15064. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15065. }
  15066. })
  15067. .catch((err) => {
  15068. this.$message.error("评分失败");
  15069. console.error(err);
  15070. });
  15071. },
  15072. openXz(w, i) {
  15073. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15074. .taskJson[this.taskCount].toolChoose[i].selectJson
  15075. ? JSON.parse(
  15076. JSON.stringify(
  15077. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15078. this.taskCount
  15079. ].toolChoose[i].selectJson
  15080. )
  15081. )
  15082. : { url: "", select: [], answer: [] };
  15083. var a = w.works.split(",");
  15084. for (var k = 0; k < a.length; k++) {
  15085. a[k] = parseInt(a[k]);
  15086. }
  15087. this.selectAnswer = { answer: a, stu: w.sName };
  15088. this.isSelect = true;
  15089. this.dialogVisibleSelect = true;
  15090. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15091. },
  15092. openSen(w, i) {
  15093. this.sentenceList1 = JSON.parse(w.works);
  15094. this.sentenceList1.stuName = w.sName;
  15095. this.dialogVisibleSentence1 = true;
  15096. },
  15097. openPj(w, toolindex) {
  15098. this.isStar = true;
  15099. this.eScore = JSON.parse(w);
  15100. this.rateJson =
  15101. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15102. this.taskCount
  15103. ].toolChoose[toolindex].rateJson;
  15104. this.studentEvalDialogVisible = true;
  15105. },
  15106. openEnglishEva(id,i){
  15107. let params = {
  15108. wid: id
  15109. };
  15110. this.ajax
  15111. .get(this.$store.state.api + "selectEngWork", params)
  15112. .then((res) => {
  15113. this.evaEngJson.message = res.data[0][0];
  15114. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15115. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15116. .toolChoose[i].englishList;
  15117. this.engEvaDialogVisible = true;
  15118. })
  15119. .catch((err) => {
  15120. console.error(err);
  15121. });
  15122. },
  15123. deleteWorks(id) {
  15124. this.$confirm("确定删除此作业吗?", "提示", {
  15125. confirmButtonText: "确定",
  15126. cancelButtonText: "取消",
  15127. type: "warning",
  15128. })
  15129. .then(() => {
  15130. let params = [
  15131. {
  15132. id: id,
  15133. },
  15134. ];
  15135. this.ajax
  15136. .post(this.$store.state.api + "deleteCourseWork", params)
  15137. .then((res) => {
  15138. this.$message({
  15139. message: "删除成功",
  15140. type: "success",
  15141. });
  15142. this.selectStudent();
  15143. this.selectSWorks();
  15144. this.selectSLook();
  15145. })
  15146. .catch((err) => {
  15147. this.$message.error("网络异常");
  15148. console.error(err);
  15149. });
  15150. })
  15151. .catch(() => {});
  15152. },
  15153. selectSWorks(gindex) {
  15154. //教师查看全部作业
  15155. let params = {
  15156. cid: this.id,
  15157. s: this.courseType,
  15158. t: this.taskCount,
  15159. };
  15160. this.ajax
  15161. .get(this.$store.state.api + "selectSWorks", params)
  15162. .then((res) => {
  15163. var a =
  15164. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15165. this.taskCount
  15166. ].toolChoose;
  15167. var b = res.data[0];
  15168. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15169. var y = [
  15170. "AVI",
  15171. "NAVI",
  15172. "MPEG",
  15173. "ASF",
  15174. "MOV",
  15175. "WMV",
  15176. "3GP",
  15177. "RM",
  15178. "RMVB",
  15179. "FLV",
  15180. "F4V",
  15181. "H.264",
  15182. "H.265",
  15183. "REAL VIDEO",
  15184. "MKV",
  15185. "WebM",
  15186. "HDDVD",
  15187. "MP4",
  15188. "MPG",
  15189. "M4V",
  15190. "MGV",
  15191. "OGV",
  15192. "QTM",
  15193. "STR",
  15194. "AMC",
  15195. "DVX",
  15196. "EVO",
  15197. "DAT",
  15198. "OGG",
  15199. "OGM",
  15200. ];
  15201. var d = res.data[1];
  15202. var e = res.data[2];
  15203. var f = res.data[3];
  15204. let _worksStudent = [];
  15205. var _worksStudent2 = [];
  15206. for (var i = 0; i < a.length; i++) {
  15207. _worksStudent[i] = [];
  15208. _worksStudent2[i] = [];
  15209. if (
  15210. !this.isCloseList[i] ||
  15211. this.isCloseList[i].isClose == undefined
  15212. ) {
  15213. this.isCloseList[i] = { isClose: 0 };
  15214. }
  15215. this.groupStudent[i] = [];
  15216. this.groupStudentUid[i] = [];
  15217. if (this.isGroup) {
  15218. for (
  15219. var groupI = 0;
  15220. groupI < this.courseGroup.group.length;
  15221. groupI++
  15222. ) {
  15223. this.courseGroup.group[groupI].works[i] = [];
  15224. }
  15225. }
  15226. this.isWorksS[i] = [];
  15227. this.checkJson[i] = [];
  15228. if (a[i].tool[0] == 49) {
  15229. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15230. this.groupStudent[i][gA] = [];
  15231. this.groupStudentUid[i][gA] = [];
  15232. _worksStudent[i][gA] = [];
  15233. _worksStudent2[i][gA] = [];
  15234. this.isCloseList[i][gA] = [];
  15235. for (var g = 0; g < f.length; g++) {
  15236. if (
  15237. f[g].ttype == 2 &&
  15238. this.tcid &&
  15239. this.arrayToArray(
  15240. (f[g].classid ? f[g].classid.split(",") : []),
  15241. this.tcid.split(",")
  15242. ).length == 0
  15243. ) {
  15244. continue;
  15245. }
  15246. let _classId = this.arrayToArray(
  15247. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15248. this.classId ? this.classId.split(",") : []
  15249. )
  15250. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15251. (f[g].classid ? f[g].classid.split(",") : []),
  15252. this.tcid.split(",")
  15253. ).length !== 0 || this.arrayToArray(
  15254. (f[g].classid ? f[g].classid.split(",") : []),
  15255. _classId
  15256. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15257. this.groupStudent[i][gA].push(f[g]);
  15258. this.groupStudentUid[i][gA].push(f[g].userid);
  15259. }
  15260. }
  15261. }
  15262. this.$forceUpdate();
  15263. }
  15264. for (var j = 0; j < b.length; j++) {
  15265. if (
  15266. b[j].ttype == 2 &&
  15267. this.tcid &&
  15268. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15269. .length == 0
  15270. ) {
  15271. continue;
  15272. }
  15273. var likesCount = 0;
  15274. var commentCount = 0;
  15275. var isLikes = false;
  15276. var commentJson = [];
  15277. var likeJson = [];
  15278. var data = b[j];
  15279. if (i == b[j].tool) {
  15280. if (data.type == 2 && a[i].tool[0] == 4) {
  15281. // if(JSON.parse(data.content)[0].anwer){
  15282. var checkL =
  15283. JSON.parse(data.content)[0].anwer instanceof Array
  15284. ? JSON.parse(data.content)[0].anwer
  15285. : JSON.parse(data.content)[0].anwer.split(",");
  15286. for (var z = 0; z < checkL.length; z++) {
  15287. if (!this.checkJson[i][z]) {
  15288. this.checkJson[i].push({
  15289. checkCount: [],
  15290. checkPerson: [],
  15291. rightPerson: [],
  15292. });
  15293. }
  15294. if (!this.checkJson[i][z].checkCount.length) {
  15295. this.checkJson[i][z].checkCount = [];
  15296. let _askItemCount = JSON.parse(data.content)[0].askJson
  15297. .askJson[z].askItem;
  15298. for (var aic = 0; aic < _askItemCount; aic++) {
  15299. this.checkJson[i][z].checkCount.push(0);
  15300. }
  15301. }
  15302. if (checkL[z] instanceof Array) {
  15303. if (
  15304. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15305. checkL[z].sort().join(",")
  15306. ) {
  15307. this.checkJson[i][z].rightPerson.push(data.name);
  15308. }
  15309. for (var q = 0; q < checkL[z].length; q++) {
  15310. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15311. ? this.checkJson[i][z].checkPerson[
  15312. parseInt(checkL[z][q])
  15313. ].push(data.name)
  15314. : (this.checkJson[i][z].checkPerson[
  15315. parseInt(checkL[z][q])
  15316. ] = [data.name]);
  15317. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15318. ? this.checkJson[i][z].checkCount[
  15319. parseInt(checkL[z][q])
  15320. ]++
  15321. : (this.checkJson[i][z].checkCount[
  15322. parseInt(checkL[z][q])
  15323. ] = 1);
  15324. }
  15325. } else {
  15326. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15327. this.checkJson[i][z].rightPerson.push(data.name);
  15328. }
  15329. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15330. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15331. ? this.checkJson[i][z].checkPerson[
  15332. parseInt(checkL[z])
  15333. ].push(data.name)
  15334. : (this.checkJson[i][z].checkPerson[
  15335. parseInt(checkL[z])
  15336. ] = [data.name]);
  15337. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15338. ? this.checkJson[i][z].checkCount[
  15339. parseInt(checkL[z])
  15340. ]++
  15341. : (this.checkJson[i][z].checkCount[
  15342. parseInt(checkL[z])
  15343. ] = 1);
  15344. }
  15345. }
  15346. }
  15347. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15348. var checkL = JSON.parse(data.content)[0].anwer;
  15349. for (var z = 0; z < checkL.length; z++) {
  15350. if (!this.checkJson[i][z]) {
  15351. this.checkJson[i].push({
  15352. checkCount: [],
  15353. checkPerson: [],
  15354. rightPerson: [],
  15355. });
  15356. }
  15357. if (!this.checkJson[i][z].checkCount.length) {
  15358. this.checkJson[i][z].checkCount = [];
  15359. let _askItemCount = JSON.parse(data.content)[0].testJson
  15360. .testJson[z].testItem;
  15361. for (var aic = 0; aic < _askItemCount; aic++) {
  15362. this.checkJson[i][z].checkCount.push(0);
  15363. }
  15364. }
  15365. if (checkL[z] instanceof Array) {
  15366. if (
  15367. JSON.parse(data.content)[0]
  15368. .testJson.testJson[z].answer.sort()
  15369. .join(",") == checkL[z].sort().join(",")
  15370. ) {
  15371. this.checkJson[i][z].rightPerson.push(data.name);
  15372. }
  15373. for (var q = 0; q < checkL[z].length; q++) {
  15374. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15375. ? this.checkJson[i][z].checkPerson[
  15376. parseInt(checkL[z][q])
  15377. ].push(data.name)
  15378. : (this.checkJson[i][z].checkPerson[
  15379. parseInt(checkL[z][q])
  15380. ] = [data.name]);
  15381. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15382. ? this.checkJson[i][z].checkCount[
  15383. parseInt(checkL[z][q])
  15384. ]++
  15385. : (this.checkJson[i][z].checkCount[
  15386. parseInt(checkL[z][q])
  15387. ] = 1);
  15388. }
  15389. } else {
  15390. if (
  15391. JSON.parse(data.content)[0].testJson.testJson[z]
  15392. .answer == checkL[z]
  15393. ) {
  15394. this.checkJson[i][z].rightPerson.push(data.name);
  15395. }
  15396. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15397. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15398. ? this.checkJson[i][z].checkPerson[
  15399. parseInt(checkL[z])
  15400. ].push(data.name)
  15401. : (this.checkJson[i][z].checkPerson[
  15402. parseInt(checkL[z])
  15403. ] = [data.name]);
  15404. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15405. ? this.checkJson[i][z].checkCount[
  15406. parseInt(checkL[z])
  15407. ]++
  15408. : (this.checkJson[i][z].checkCount[
  15409. parseInt(checkL[z])
  15410. ] = 1);
  15411. }
  15412. }
  15413. }
  15414. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15415. var checkL = JSON.parse(data.content);
  15416. for (var z = 0; z < checkL.length; z++) {
  15417. if (!this.checkJson[i][z]) {
  15418. this.checkJson[i].push({
  15419. checkCount: [],
  15420. checkPerson: [],
  15421. rightPerson: [],
  15422. });
  15423. }
  15424. this.checkJson[i][z].checkPerson.push(data.name);
  15425. if (
  15426. checkL[z].chooseSenList.toString() ==
  15427. checkL[z].rightAnswer.toString()
  15428. ) {
  15429. this.checkJson[i][z].rightPerson.push(data.name);
  15430. }
  15431. }
  15432. }
  15433. for (var k = 0; k < d.length; k++) {
  15434. //点赞
  15435. if (d[k].workId == b[j].id) {
  15436. likesCount++;
  15437. likeJson.push(d[k])
  15438. if (d[k].likesId == this.userid) {
  15439. isLikes = true;
  15440. }
  15441. }
  15442. }
  15443. for (var l = 0; l < e.length; l++) {
  15444. //评论
  15445. if (e[l].workId == b[j].id) {
  15446. if (e[l].comment != "") {
  15447. commentCount++;
  15448. commentJson.push({
  15449. commentText: e[l].comment,
  15450. commentTime: e[l].commentTime,
  15451. commentPeople: e[l].commentPeople,
  15452. userid: e[l].userid,
  15453. wid: e[l].id,
  15454. });
  15455. }
  15456. }
  15457. }
  15458. if (
  15459. (b[j].type == 1 ||
  15460. b[j].type == 4 ||
  15461. b[j].type == 5 ||
  15462. b[j].type == 6 ||
  15463. b[j].type == 12 ||
  15464. b[j].type == 7) &&
  15465. a[i].tool[0] != 15 &&
  15466. a[i].tool[0] != 4 &&
  15467. a[i].tool[0] != 45 &&
  15468. a[i].tool[0] != 50 &&
  15469. a[i].tool[0] != 32 &&
  15470. a[i].tool[0] != 57 &&
  15471. a[i].tool[0] != 52
  15472. ) {
  15473. if (
  15474. c.indexOf(
  15475. b[j].content
  15476. .split(".")
  15477. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15478. ) != -1 &&
  15479. a[i].tool[0] == 16 &&
  15480. b[j].atool != 50
  15481. ) {
  15482. let _works = {
  15483. userid: b[j].userid,
  15484. ateacher: b[j].ateacher,
  15485. wid: b[j].id,
  15486. works: b[j].content,
  15487. sName: b[j].name,
  15488. type: 1,
  15489. ttype:b[j].ttype,
  15490. time: b[j].time,
  15491. score: b[j].score,
  15492. img: b[j].img,
  15493. likesCount: likesCount,
  15494. commentCount: commentCount,
  15495. isLikes: isLikes,
  15496. commentJson: commentJson,
  15497. likeJson:likeJson
  15498. };
  15499. if (this.isGroup) {
  15500. let isGw = 1;
  15501. for (
  15502. var groupI = 0;
  15503. groupI < this.courseGroup.group.length;
  15504. groupI++
  15505. ) {
  15506. let gid = this.courseGroup.group[groupI].id;
  15507. if (
  15508. this.courseGroupStudentUid[gid].indexOf(
  15509. b[j].userid
  15510. ) != -1
  15511. ) {
  15512. isGw = 2;
  15513. this.courseGroup.group[groupI].works[i].push(_works);
  15514. break;
  15515. }
  15516. }
  15517. if (isGw == 1) {
  15518. _worksStudent[i].push(_works);
  15519. }
  15520. } else {
  15521. _worksStudent[i].push(_works);
  15522. }
  15523. _worksStudent2[i].push(_works);
  15524. this.isWorksS[i].push({
  15525. uid: b[j].userid,
  15526. sName: b[j].name,
  15527. });
  15528. } else if (
  15529. y.indexOf(
  15530. b[j].content
  15531. .split(".")
  15532. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15533. ) != -1 &&
  15534. a[i].tool[0] == 16 &&
  15535. b[j].atool != 50
  15536. ) {
  15537. let _works = {
  15538. userid: b[j].userid,
  15539. ateacher: b[j].ateacher,
  15540. wid: b[j].id,
  15541. works: b[j].content,
  15542. sName: b[j].name,
  15543. type: 3,
  15544. ttype:b[j].ttype,
  15545. time: b[j].time,
  15546. score: b[j].score,
  15547. img: b[j].img,
  15548. likesCount: likesCount,
  15549. commentCount: commentCount,
  15550. isLikes: isLikes,
  15551. commentJson: commentJson,
  15552. likeJson:likeJson
  15553. };
  15554. if (this.isGroup) {
  15555. let isGw = 1;
  15556. for (
  15557. var groupI = 0;
  15558. groupI < this.courseGroup.group.length;
  15559. groupI++
  15560. ) {
  15561. let gid = this.courseGroup.group[groupI].id;
  15562. if (
  15563. this.courseGroupStudentUid[gid].indexOf(
  15564. b[j].userid
  15565. ) != -1
  15566. ) {
  15567. isGw = 2;
  15568. this.courseGroup.group[groupI].works[i].push(_works);
  15569. break;
  15570. }
  15571. }
  15572. if (isGw == 1) {
  15573. _worksStudent[i].push(_works);
  15574. }
  15575. } else {
  15576. _worksStudent[i].push(_works);
  15577. }
  15578. _worksStudent2[i].push(_works);
  15579. this.isWorksS[i].push({
  15580. uid: b[j].userid,
  15581. sName: b[j].name,
  15582. });
  15583. } else if (b[j].type == 6 && b[j].atool != 50) {
  15584. let _works = {
  15585. userid: b[j].userid,
  15586. ateacher: b[j].ateacher,
  15587. wid: b[j].id,
  15588. works: b[j].content,
  15589. sName: b[j].name,
  15590. type: 4,
  15591. ttype:b[j].ttype,
  15592. time: b[j].time,
  15593. score: b[j].score,
  15594. img: b[j].img,
  15595. likesCount: likesCount,
  15596. commentCount: commentCount,
  15597. isLikes: isLikes,
  15598. commentJson: commentJson,
  15599. likeJson:likeJson
  15600. };
  15601. _worksStudent[i].push(_works);
  15602. _worksStudent2[i].push(_works);
  15603. this.isWorksS[i].push({
  15604. uid: b[j].userid,
  15605. sName: b[j].name,
  15606. });
  15607. } else if (b[j].type == 7 && b[j].atool != 50) {
  15608. let _work = {
  15609. userid: b[j].userid,
  15610. ateacher: b[j].ateacher,
  15611. wid: b[j].id,
  15612. works: b[j].content,
  15613. sName: b[j].name,
  15614. type: 5,
  15615. ttype:b[j].ttype,
  15616. time: b[j].time,
  15617. score: b[j].score,
  15618. img: b[j].img,
  15619. likesCount: likesCount,
  15620. commentCount: commentCount,
  15621. isLikes: isLikes,
  15622. commentJson: commentJson,
  15623. likeJson:likeJson
  15624. };
  15625. _worksStudent[i].push(_work);
  15626. _worksStudent2[i].push(_work);
  15627. this.isWorksS[i].push({
  15628. uid: b[j].userid,
  15629. sName: b[j].name,
  15630. });
  15631. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15632. let _works = {
  15633. userid: b[j].userid,
  15634. ateacher: b[j].ateacher,
  15635. wid: b[j].id,
  15636. works: b[j].content,
  15637. sName: b[j].name,
  15638. type: 12,
  15639. ttype:b[j].ttype,
  15640. time: b[j].time,
  15641. score: b[j].score,
  15642. img: b[j].img,
  15643. likesCount: likesCount,
  15644. commentCount: commentCount,
  15645. isLikes: isLikes,
  15646. commentJson: commentJson,
  15647. likeJson:likeJson
  15648. };
  15649. if (this.isGroup) {
  15650. let isGw = 1;
  15651. for (
  15652. var groupI = 0;
  15653. groupI < this.courseGroup.group.length;
  15654. groupI++
  15655. ) {
  15656. let gid = this.courseGroup.group[groupI].id;
  15657. if (
  15658. this.courseGroupStudentUid[gid].indexOf(
  15659. b[j].userid
  15660. ) != -1
  15661. ) {
  15662. isGw = 2;
  15663. this.courseGroup.group[groupI].works[i].push(_works);
  15664. break;
  15665. }
  15666. }
  15667. if (isGw == 1) {
  15668. _worksStudent[i].push(_works);
  15669. }
  15670. } else {
  15671. _worksStudent[i].push(_works);
  15672. }
  15673. _worksStudent2[i].push(_works);
  15674. this.isWorksS[i].push({
  15675. uid: b[j].userid,
  15676. sName: b[j].name,
  15677. });
  15678. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15679. let _works = {
  15680. userid: b[j].userid,
  15681. ateacher: b[j].ateacher,
  15682. wid: b[j].id,
  15683. works: b[j].content,
  15684. sName: b[j].name,
  15685. type: 0,
  15686. ttype:b[j].ttype,
  15687. time: b[j].time,
  15688. score: b[j].score,
  15689. img: b[j].img,
  15690. likesCount: likesCount,
  15691. commentCount: commentCount,
  15692. isLikes: isLikes,
  15693. commentJson: commentJson,
  15694. likeJson:likeJson
  15695. };
  15696. if (this.isGroup) {
  15697. let isGw = 1;
  15698. for (
  15699. var groupI = 0;
  15700. groupI < this.courseGroup.group.length;
  15701. groupI++
  15702. ) {
  15703. let gid = this.courseGroup.group[groupI].id;
  15704. if (
  15705. this.courseGroupStudentUid[gid].indexOf(
  15706. b[j].userid
  15707. ) != -1
  15708. ) {
  15709. isGw = 2;
  15710. this.courseGroup.group[groupI].works[i].push(_works);
  15711. break;
  15712. }
  15713. }
  15714. if (isGw == 1) {
  15715. _worksStudent[i].push(_works);
  15716. }
  15717. } else {
  15718. _worksStudent[i].push(_works);
  15719. }
  15720. _worksStudent2[i].push(_works);
  15721. this.isWorksS[i].push({
  15722. uid: b[j].userid,
  15723. sName: b[j].name,
  15724. });
  15725. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15726. let _works = {
  15727. userid: b[j].userid,
  15728. ateacher: b[j].ateacher,
  15729. wid: b[j].id,
  15730. works: b[j].content,
  15731. sName: b[j].name,
  15732. type: 0,
  15733. ttype:b[j].ttype,
  15734. time: b[j].time,
  15735. score: b[j].score,
  15736. img: b[j].img,
  15737. likesCount: likesCount,
  15738. commentCount: commentCount,
  15739. isLikes: isLikes,
  15740. commentJson: commentJson,
  15741. likeJson:likeJson
  15742. };
  15743. if (this.isGroup) {
  15744. let isGw = 1;
  15745. for (
  15746. var groupI = 0;
  15747. groupI < this.courseGroup.group.length;
  15748. groupI++
  15749. ) {
  15750. let gid = this.courseGroup.group[groupI].id;
  15751. if (
  15752. this.courseGroupStudentUid[gid].indexOf(
  15753. b[j].userid
  15754. ) != -1
  15755. ) {
  15756. isGw = 2;
  15757. this.courseGroup.group[groupI].works[i].push(_works);
  15758. break;
  15759. }
  15760. }
  15761. if (isGw == 1) {
  15762. _worksStudent[i].push(_works);
  15763. }
  15764. } else {
  15765. _worksStudent[i].push(_works);
  15766. }
  15767. _worksStudent2[i].push(_works);
  15768. this.isWorksS[i].push({
  15769. uid: b[j].userid,
  15770. sName: b[j].name,
  15771. });
  15772. }
  15773. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15774. let _works = {
  15775. userid: b[j].userid,
  15776. ateacher: b[j].ateacher,
  15777. wid: b[j].id,
  15778. works: b[j].content,
  15779. sName: b[j].name,
  15780. type: 2,
  15781. ttype:b[j].ttype,
  15782. time: b[j].time,
  15783. score: b[j].score,
  15784. img: b[j].img,
  15785. likesCount: likesCount,
  15786. commentCount: commentCount,
  15787. isLikes: isLikes,
  15788. commentJson: commentJson,
  15789. likeJson:likeJson
  15790. };
  15791. if (this.isGroup) {
  15792. let isGw = 1;
  15793. for (
  15794. var groupI = 0;
  15795. groupI < this.courseGroup.group.length;
  15796. groupI++
  15797. ) {
  15798. let gid = this.courseGroup.group[groupI].id;
  15799. if (
  15800. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15801. -1
  15802. ) {
  15803. isGw = 2;
  15804. this.courseGroup.group[groupI].works[i].push(_works);
  15805. break;
  15806. }
  15807. }
  15808. if (isGw == 1) {
  15809. _worksStudent[i].push(_works);
  15810. }
  15811. } else {
  15812. _worksStudent[i].push(_works);
  15813. }
  15814. _worksStudent2[i].push(_works);
  15815. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15816. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15817. let _works = {
  15818. userid: b[j].userid,
  15819. ateacher: b[j].ateacher,
  15820. wid: b[j].id,
  15821. works: b[j].content,
  15822. sName: b[j].name,
  15823. type: 20,
  15824. ttype:b[j].ttype,
  15825. time: b[j].time,
  15826. score: b[j].score,
  15827. img: b[j].img,
  15828. likesCount: likesCount,
  15829. commentCount: commentCount,
  15830. isLikes: isLikes,
  15831. commentJson: commentJson,
  15832. likeJson:likeJson
  15833. };
  15834. if (this.isGroup) {
  15835. let isGw = 1;
  15836. for (
  15837. var groupI = 0;
  15838. groupI < this.courseGroup.group.length;
  15839. groupI++
  15840. ) {
  15841. let gid = this.courseGroup.group[groupI].id;
  15842. if (
  15843. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15844. -1
  15845. ) {
  15846. isGw = 2;
  15847. this.courseGroup.group[groupI].works[i].push(_works);
  15848. break;
  15849. }
  15850. }
  15851. if (isGw == 1) {
  15852. _worksStudent[i].push(_works);
  15853. }
  15854. } else {
  15855. _worksStudent[i].push(_works);
  15856. }
  15857. _worksStudent2[i].push(_works);
  15858. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15859. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15860. //问卷
  15861. let _work = {
  15862. userid: b[j].userid,
  15863. ateacher: b[j].ateacher,
  15864. wid: b[j].id,
  15865. works: b[j].content,
  15866. sName: b[j].name,
  15867. type: 2,
  15868. ttype:b[j].ttype,
  15869. time: b[j].time,
  15870. score: b[j].score,
  15871. img: b[j].img,
  15872. likesCount: likesCount,
  15873. commentCount: commentCount,
  15874. isLikes: isLikes,
  15875. commentJson: commentJson,
  15876. likeJson:likeJson
  15877. };
  15878. _worksStudent[i].push(_work);
  15879. _worksStudent2[i].push(_work);
  15880. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15881. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15882. //选择题
  15883. let _work = {
  15884. userid: b[j].userid,
  15885. ateacher: b[j].ateacher,
  15886. wid: b[j].id,
  15887. works: b[j].content,
  15888. sName: b[j].name,
  15889. type: 8,
  15890. ttype:b[j].ttype,
  15891. time: b[j].time,
  15892. score: b[j].score,
  15893. img: b[j].img,
  15894. likesCount: likesCount,
  15895. commentCount: commentCount,
  15896. isLikes: isLikes,
  15897. commentJson: commentJson,
  15898. likeJson:likeJson
  15899. };
  15900. _worksStudent[i].push(_work);
  15901. _worksStudent2[i].push(_work);
  15902. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15903. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15904. //选择题
  15905. let _work = {
  15906. userid: b[j].userid,
  15907. ateacher: b[j].ateacher,
  15908. wid: b[j].id,
  15909. works: b[j].content,
  15910. sName: b[j].name,
  15911. type: 9,
  15912. ttype:b[j].ttype,
  15913. time: b[j].time,
  15914. score: b[j].score,
  15915. img: b[j].img,
  15916. likesCount: likesCount,
  15917. commentCount: commentCount,
  15918. isLikes: isLikes,
  15919. commentJson: commentJson,
  15920. likeJson:likeJson
  15921. };
  15922. _worksStudent[i].push(_work);
  15923. _worksStudent2[i].push(_work);
  15924. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15925. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15926. //选择题
  15927. let _work = {
  15928. userid: b[j].userid,
  15929. ateacher: b[j].ateacher,
  15930. wid: b[j].id,
  15931. works: b[j].content,
  15932. sName: b[j].name,
  15933. type: 10,
  15934. ttype:b[j].ttype,
  15935. time: b[j].time,
  15936. score: b[j].score,
  15937. img: b[j].img,
  15938. likesCount: likesCount,
  15939. commentCount: commentCount,
  15940. isLikes: isLikes,
  15941. commentJson: commentJson,
  15942. likeJson:likeJson
  15943. };
  15944. _worksStudent[i].push(_work);
  15945. _worksStudent2[i].push(_work);
  15946. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15947. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15948. //选择题
  15949. let _work = {
  15950. userid: b[j].userid,
  15951. ateacher: b[j].ateacher,
  15952. wid: b[j].id,
  15953. works: b[j].content,
  15954. sName: b[j].name,
  15955. type: 13,
  15956. ttype:b[j].ttype,
  15957. time: b[j].time,
  15958. score: b[j].score,
  15959. img: b[j].img,
  15960. likesCount: likesCount,
  15961. commentCount: commentCount,
  15962. isLikes: isLikes,
  15963. commentJson: commentJson,
  15964. likeJson:likeJson
  15965. };
  15966. _worksStudent[i].push(_work);
  15967. _worksStudent2[i].push(_work);
  15968. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15969. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15970. //选择题
  15971. let _work = {
  15972. userid: b[j].userid,
  15973. ateacher: b[j].ateacher,
  15974. wid: b[j].id,
  15975. works: b[j].content,
  15976. sName: b[j].name,
  15977. type: 16,
  15978. ttype:b[j].ttype,
  15979. time: b[j].time,
  15980. score: b[j].score,
  15981. img: b[j].img,
  15982. likesCount: likesCount,
  15983. commentCount: commentCount,
  15984. isLikes: isLikes,
  15985. commentJson: commentJson,
  15986. aiCode: b[j].aiCode,
  15987. teacherCode: b[j].teacherCode,
  15988. likeJson:likeJson
  15989. };
  15990. _worksStudent[i].push(_work);
  15991. _worksStudent2[i].push(_work);
  15992. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15993. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15994. //英语口语
  15995. let _work = {
  15996. userid: b[j].userid,
  15997. ateacher: b[j].ateacher,
  15998. wid: b[j].id,
  15999. works: b[j].content,
  16000. sName: b[j].name,
  16001. type: 17,
  16002. ttype:b[j].ttype,
  16003. time: b[j].time,
  16004. score: b[j].score,
  16005. img: b[j].img,
  16006. likesCount: likesCount,
  16007. commentCount: commentCount,
  16008. isLikes: isLikes,
  16009. commentJson: commentJson,
  16010. likeJson:likeJson
  16011. };
  16012. _worksStudent[i].push(_work);
  16013. _worksStudent2[i].push(_work);
  16014. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16015. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16016. //交互视频
  16017. let _work = {
  16018. userid: b[j].userid,
  16019. ateacher: b[j].ateacher,
  16020. wid: b[j].id,
  16021. works: b[j].content,
  16022. sName: b[j].name,
  16023. type: 14,
  16024. ttype:b[j].ttype,
  16025. time: b[j].time,
  16026. score: b[j].score,
  16027. img: b[j].img,
  16028. likesCount: likesCount,
  16029. commentCount: commentCount,
  16030. isLikes: isLikes,
  16031. commentJson: commentJson,
  16032. likeJson:likeJson
  16033. };
  16034. _worksStudent[i].push(_work);
  16035. _worksStudent2[i].push(_work);
  16036. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16037. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16038. let _gindex = JSON.parse(b[j].content);
  16039. if (
  16040. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16041. b[j].userid
  16042. ) != -1
  16043. ) {
  16044. let _work = {
  16045. userid: b[j].userid,
  16046. ateacher: b[j].ateacher,
  16047. wid: b[j].id,
  16048. works: _gindex.url,
  16049. sName: b[j].name,
  16050. type: _gindex.type,
  16051. ttype:b[j].ttype,
  16052. time: b[j].time,
  16053. score: b[j].score,
  16054. img: b[j].img,
  16055. likesCount: likesCount,
  16056. commentCount: commentCount,
  16057. isLikes: isLikes,
  16058. commentJson: commentJson,
  16059. likeJson:likeJson
  16060. };
  16061. _worksStudent[i][_gindex.groupIndex].push(_work);
  16062. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16063. }
  16064. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16065. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16066. let _work = {
  16067. userid: b[j].userid,
  16068. ateacher: b[j].ateacher,
  16069. wid: b[j].id,
  16070. works: b[j].content,
  16071. sName: b[j].name ? b[j].name : b[j].userid,
  16072. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16073. ttype:b[j].ttype,
  16074. time: b[j].time,
  16075. score: b[j].score,
  16076. img: b[j].img,
  16077. likesCount: likesCount,
  16078. commentCount: commentCount,
  16079. isLikes: isLikes,
  16080. commentJson: commentJson,
  16081. likeJson:likeJson
  16082. };
  16083. _worksStudent[i].push(_work);
  16084. _worksStudent2[i].push(_work);
  16085. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16086. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16087. let _work = {
  16088. userid: b[j].userid,
  16089. ateacher: b[j].ateacher,
  16090. wid: b[j].id,
  16091. works: b[j].content,
  16092. sName: b[j].name ? b[j].name : b[j].userid,
  16093. type: 12,
  16094. ttype:b[j].ttype,
  16095. time: b[j].time,
  16096. score: b[j].score,
  16097. img: b[j].img,
  16098. likesCount: likesCount,
  16099. commentCount: commentCount,
  16100. isLikes: isLikes,
  16101. commentJson: commentJson,
  16102. likeJson:likeJson
  16103. };
  16104. _worksStudent[i].push(_work);
  16105. _worksStudent2[i].push(_work);
  16106. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16107. } else if (
  16108. a[i].tool[0] == 57 &&
  16109. b[j].atool == 57 &&
  16110. b[j].type == 12
  16111. ) {
  16112. let _work = {
  16113. userid: b[j].userid,
  16114. ateacher: b[j].ateacher,
  16115. wid: b[j].id,
  16116. works: b[j].content,
  16117. sName: b[j].name ? b[j].name : b[j].userid,
  16118. type: 12,
  16119. ttype:b[j].ttype,
  16120. time: b[j].time,
  16121. score: b[j].score,
  16122. img: b[j].img,
  16123. likesCount: likesCount,
  16124. commentCount: commentCount,
  16125. isLikes: isLikes,
  16126. commentJson: commentJson,
  16127. likeJson:likeJson
  16128. };
  16129. _worksStudent[i].push(_work);
  16130. _worksStudent2[i].push(_work);
  16131. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16132. } else if (
  16133. a[i].tool[0] == 57 &&
  16134. b[j].atool == 57 &&
  16135. b[j].type == 15
  16136. ) {
  16137. let _work = {
  16138. userid: b[j].userid,
  16139. ateacher: b[j].ateacher,
  16140. wid: b[j].id,
  16141. works: b[j].content,
  16142. sName: b[j].name ? b[j].name : b[j].userid,
  16143. type: 15,
  16144. ttype:b[j].ttype,
  16145. time: b[j].time,
  16146. score: b[j].score,
  16147. img: b[j].img,
  16148. likesCount: likesCount,
  16149. commentCount: commentCount,
  16150. isLikes: isLikes,
  16151. commentJson: commentJson,
  16152. likeJson:likeJson
  16153. };
  16154. _worksStudent[i].push(_work);
  16155. _worksStudent2[i].push(_work);
  16156. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16157. }
  16158. }
  16159. }
  16160. if (_worksStudent[i] && _worksStudent[i].length) {
  16161. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16162. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16163. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16164. var scoreA = parseFloat(jscoreA);
  16165. var scoreB = parseFloat(jscoreB);
  16166. if (scoreA == scoreB) {
  16167. return b.likesCount - a.likesCount;
  16168. }
  16169. return scoreB - scoreA;
  16170. });
  16171. if (this.isGroup) {
  16172. for (
  16173. var groupI = 0;
  16174. groupI < this.courseGroup.group.length;
  16175. groupI++
  16176. ) {
  16177. this.courseGroup.group[groupI].works[i] =
  16178. this.courseGroup.group[groupI].works[i].sort(function (
  16179. a,
  16180. b
  16181. ) {
  16182. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16183. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16184. var scoreA = parseFloat(jscoreA);
  16185. var scoreB = parseFloat(jscoreB);
  16186. if (scoreA == scoreB) {
  16187. return b.likesCount - a.likesCount;
  16188. }
  16189. return scoreB - scoreA;
  16190. });
  16191. }
  16192. }
  16193. }
  16194. }
  16195. this.timeWorkList = _worksStudent2;
  16196. for (var i = 0; i < a.length; i++) {
  16197. for (var j = 0; j < b.length; j++) {
  16198. var data = b[j];
  16199. if (i == b[j].tool) {
  16200. if (data.type == 2 || data.type == 8) {
  16201. for (var z = 0; z < this.checkJson[i].length; z++) {
  16202. this.checkJson[i][z].checkPerent = [];
  16203. this.checkJson[i][z].right = Math.round(
  16204. (this.checkJson[i][z].rightPerson.length /
  16205. parseInt(_worksStudent[i].length)) *
  16206. 100
  16207. );
  16208. let aaaa = this.checkJson[i][z];
  16209. for (
  16210. var k = 0;
  16211. k < this.checkJson[i][z].checkCount.length;
  16212. k++
  16213. ) {
  16214. this.checkJson[i][z].checkPerent.push(
  16215. Math.round(
  16216. (this.checkJson[i][z].checkCount[k] /
  16217. parseInt(_worksStudent[i].length)) *
  16218. 100
  16219. )
  16220. );
  16221. }
  16222. }
  16223. } else if (data.type == 9) {
  16224. for (var z = 0; z < this.checkJson[i].length; z++) {
  16225. this.checkJson[i][z].checkPerent = [];
  16226. this.checkJson[i][z].right = Math.round(
  16227. (this.checkJson[i][z].rightPerson.length /
  16228. this.checkJson[i][z].checkPerson.length) *
  16229. 100
  16230. );
  16231. }
  16232. }
  16233. }
  16234. }
  16235. }
  16236. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16237. this.joinGroup(gindex);
  16238. }
  16239. this.worksStudent = _worksStudent;
  16240. this.selectWorksStudent();
  16241. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16242. this.$nextTick(()=>{
  16243. setTimeout(()=>{
  16244. setTimeout(()=>{
  16245. this.panToolHeight('tool-'+ci);
  16246. }, 500)
  16247. }, 0)
  16248. })
  16249. }
  16250. })
  16251. .catch((err) => {
  16252. console.error(err);
  16253. });
  16254. },
  16255. pngToWhiteBg(file) {
  16256. const _file = file;
  16257. let read = new FileReader();
  16258. read.readAsDataURL(file); // 文件转base64
  16259. return new Promise((resolve, reject) => {
  16260. read.onload = (e) => {
  16261. let img = new Image();
  16262. img.src = e.target.result;
  16263. img.onload = async () => {
  16264. // 生成canvas
  16265. let canvas = document.createElement("canvas");
  16266. let context = canvas.getContext("2d");
  16267. // 绘制图片到canvas上
  16268. canvas.width = img.width;
  16269. canvas.height = img.height;
  16270. // 在canvas绘制前填充白色背景
  16271. context.fillStyle = "#fff";
  16272. context.fillRect(0, 0, canvas.width, canvas.height);
  16273. context.drawImage(img, 0, 0);
  16274. let base64 = canvas.toDataURL(file["type"], 1);
  16275. let newFile = this.dataUrlToFile(base64, _file);
  16276. resolve(newFile);
  16277. };
  16278. };
  16279. });
  16280. },
  16281. dataUrlToFile(dataurl, file) {
  16282. let arr = dataurl.split(","),
  16283. mime = arr[0].match(/:(.*?);/)[1],
  16284. bstr = atob(arr[1]),
  16285. n = bstr.length,
  16286. u8arr = new Uint8Array(n);
  16287. while (n--) {
  16288. u8arr[n] = bstr.charCodeAt(n);
  16289. }
  16290. // return new Blob([u8arr], { type: mime });
  16291. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16292. type: mime,
  16293. });
  16294. },
  16295. async beforeUpload1(event, type, i) {
  16296. // this.$message.success('进入上传')
  16297. var file = "";
  16298. if (type == 5) {
  16299. file = event;
  16300. } else {
  16301. file = event.target.files[0];
  16302. }
  16303. var credentials = {
  16304. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16305. secretAccessKey: "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",
  16306. }; //秘钥形式的登录上传
  16307. window.AWS.config.update(credentials);
  16308. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16309. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16310. var _this = this;
  16311. _this.progress = 0;
  16312. _this.proVisible = true;
  16313. _this.isFinishSize = 0;
  16314. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16315. var b = [
  16316. "DOC",
  16317. "DOCX",
  16318. "DOCM",
  16319. "DOTM",
  16320. "DOTX",
  16321. "PPTX",
  16322. "PPSX",
  16323. "PPT",
  16324. "PPS",
  16325. "PPTM",
  16326. "POTM",
  16327. "PPAM",
  16328. "POTX",
  16329. "PPSM",
  16330. ];
  16331. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16332. var photoA = [
  16333. "BMP",
  16334. "GIF",
  16335. "PNG",
  16336. "JPEG",
  16337. "JPEG",
  16338. "JPG",
  16339. "TIF",
  16340. "PCX",
  16341. "TGA",
  16342. "EXIF",
  16343. "FPX",
  16344. "SVG",
  16345. "APNG",
  16346. ];
  16347. // if (
  16348. // b.indexOf(
  16349. // file.name
  16350. // .split(".")
  16351. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16352. // ) != -1
  16353. // ) {
  16354. // if (file.size / 1024 / 1024 > 10) {
  16355. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16356. // return;
  16357. // }
  16358. // } else if (
  16359. // excelA.indexOf(
  16360. // file.name
  16361. // .split(".")
  16362. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16363. // ) != "-1"
  16364. // ) {
  16365. // if (file.size / 1024 / 1024 > 5) {
  16366. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16367. // return;
  16368. // }
  16369. // }
  16370. if (
  16371. photoA.indexOf(
  16372. file.name
  16373. .split(".")
  16374. [file.name.split(".").length - 1].toLocaleUpperCase()
  16375. ) != -1 &&
  16376. type != 4
  16377. ) {
  16378. // const blob = await imageConversion.compress(file, 0.8)
  16379. file = await this.pngToWhiteBg(file);
  16380. const blob = await imageConversion.compressAccurately(file, 256);
  16381. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16382. file = new File([blob], file.name, { type: file.type });
  16383. }
  16384. if (file) {
  16385. var params = {
  16386. Key:
  16387. file.name.split(".")[0] +
  16388. new Date().getTime() +
  16389. "." +
  16390. file.name.split(".")[file.name.split(".").length - 1],
  16391. ContentType: file.type,
  16392. Body: file,
  16393. "Access-Control-Allow-Credentials": "*",
  16394. ACL: "public-read",
  16395. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16396. var options = {
  16397. // partSize: 2048 * 1024 * 1024,
  16398. partSize: 1024 * 1024 * 1024,
  16399. queueSize: 2,
  16400. leavePartsOnError: true,
  16401. };
  16402. bucket
  16403. .upload(params, options)
  16404. .on("httpUploadProgress", function (evt) {
  16405. //这里可以写进度条
  16406. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16407. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16408. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16409. })
  16410. .send(function (err, data) {
  16411. _this.progress = 100;
  16412. _this.isFinishSize = _this.isAllSize;
  16413. setTimeout(() => {
  16414. _this.proVisible = false;
  16415. }, 1000);
  16416. if (err) {
  16417. var a = _this.$refs.upload1.uploadFiles;
  16418. a.splice(a.length - 1, a.length);
  16419. _this.$message.error("上传失败");
  16420. } else {
  16421. // _this.$message.success('上传成功')
  16422. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16423. var c = [
  16424. "AVI",
  16425. "NAVI",
  16426. "MPEG",
  16427. "ASF",
  16428. "MOV",
  16429. "WMV",
  16430. "3GP",
  16431. "RM",
  16432. "RMVB",
  16433. "FLV",
  16434. "F4V",
  16435. "H.264",
  16436. "H.265",
  16437. "REAL VIDEO",
  16438. "MKV",
  16439. "WebM",
  16440. "HDDVD",
  16441. "MP4",
  16442. "MPG",
  16443. "M4V",
  16444. "MGV",
  16445. "OGV",
  16446. "QTM",
  16447. "STR",
  16448. "AMC",
  16449. "DVX",
  16450. "EVO",
  16451. "DAT",
  16452. "OGG",
  16453. "OGM",
  16454. ];
  16455. if (type == 1) {
  16456. _this.studyJuri[0].cover.push({
  16457. name: file.name,
  16458. url: data.Location,
  16459. uid: file.uid,
  16460. });
  16461. if (
  16462. c.indexOf(
  16463. _this.studyJuri[0].cover[0].url
  16464. .split(".")
  16465. [
  16466. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16467. ].toLocaleUpperCase()
  16468. ) != -1
  16469. ) {
  16470. _this.fileType = 2;
  16471. } else if (
  16472. b.indexOf(
  16473. _this.studyJuri[0].cover[0].url
  16474. .split(".")
  16475. [
  16476. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16477. ].toLocaleUpperCase()
  16478. ) != -1
  16479. ) {
  16480. _this.fileType = 1;
  16481. } else if (
  16482. photoA.indexOf(
  16483. _this.studyJuri[0].cover[0].url
  16484. .split(".")
  16485. [
  16486. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16487. ].toLocaleUpperCase()
  16488. ) != -1
  16489. ) {
  16490. _this.fileType = 0;
  16491. } else {
  16492. _this.fileType = 3;
  16493. }
  16494. _this.imgChange(null, null, type);
  16495. } else if (type == 2) {
  16496. _this.upToolImg = data.Location;
  16497. _this.imgChange(null, null, type);
  16498. _this.addCourseWorks(i);
  16499. } else if (type == 4) {
  16500. _this.addPz("3", data.Location);
  16501. } else if (type == 5) {
  16502. _this.addImgDrawImG(data.Location);
  16503. } else if (type == 6) {
  16504. var _ftype = 1;
  16505. if (
  16506. c.indexOf(
  16507. data.Location.split(".")[
  16508. data.Location.split(".").length - 1
  16509. ].toLocaleUpperCase()
  16510. ) != -1
  16511. ) {
  16512. _ftype = 5;
  16513. } else if (
  16514. b.indexOf(
  16515. data.Location.split(".")[
  16516. data.Location.split(".").length - 1
  16517. ].toLocaleUpperCase()
  16518. ) != -1
  16519. ) {
  16520. _ftype = 4;
  16521. } else {
  16522. _ftype = 1;
  16523. }
  16524. _this.plworkFile.push({
  16525. name: file.name,
  16526. url: data.Location,
  16527. uid: file.uid,
  16528. fileType: _ftype,
  16529. username:
  16530. _this.plworkFile.length > 10
  16531. ? _this.plworkFile.length + 1
  16532. : "0" + (_this.plworkFile.length + 1),
  16533. });
  16534. } else if (type == 7) {
  16535. _this.addCourseWorksGong(i, data.Location, 32);
  16536. } else if (type == 8) {
  16537. _this.addCourseWorksGong(i, data.Location, 57);
  16538. }
  16539. _this.imgChange(null, null, type);
  16540. console.log(data.Location);
  16541. // _this.$message.success('上传成功'+data.Location)
  16542. }
  16543. });
  16544. }
  16545. },
  16546. async beforeUpload3(event, type, i) {
  16547. // this.$message.success('进入上传')
  16548. let file = "";
  16549. let cfindex2 = 0;
  16550. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16551. file = event.target.files[cfindex];
  16552. var credentials = {
  16553. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16554. secretAccessKey: "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",
  16555. }; //秘钥形式的登录上传
  16556. window.AWS.config.update(credentials);
  16557. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16558. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16559. var _this = this;
  16560. // _this.progress = 0;
  16561. _this.proVisible2 = true;
  16562. var b = [
  16563. "DOC",
  16564. "DOCX",
  16565. "DOCM",
  16566. "DOTM",
  16567. "DOTX",
  16568. "PPTX",
  16569. "PPSX",
  16570. "PPT",
  16571. "PPS",
  16572. "PPTM",
  16573. "POTM",
  16574. "PPAM",
  16575. "POTX",
  16576. "PPSM",
  16577. ];
  16578. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16579. var photoA = [
  16580. "BMP",
  16581. "GIF",
  16582. "PNG",
  16583. "JPEG",
  16584. "JPG",
  16585. "TIF",
  16586. "PCX",
  16587. "TGA",
  16588. "EXIF",
  16589. "FPX",
  16590. "SVG",
  16591. "APNG",
  16592. ];
  16593. if (
  16594. photoA.indexOf(
  16595. file.name
  16596. .split(".")
  16597. [file.name.split(".").length - 1].toLocaleUpperCase()
  16598. ) != -1 &&
  16599. type != 4
  16600. ) {
  16601. // const blob = await imageConversion.compress(file, 0.8)
  16602. file = await this.pngToWhiteBg(file);
  16603. const blob = await imageConversion.compressAccurately(file, 256);
  16604. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16605. file = new File([blob], file.name, { type: file.type });
  16606. }
  16607. if (file) {
  16608. var params = {
  16609. Key:
  16610. file.name.split(".")[0] +
  16611. new Date().getTime() +
  16612. "." +
  16613. file.name.split(".")[file.name.split(".").length - 1],
  16614. ContentType: file.type,
  16615. Body: file,
  16616. "Access-Control-Allow-Credentials": "*",
  16617. ACL: "public-read",
  16618. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16619. var options = {
  16620. // partSize: 2048 * 1024 * 1024,
  16621. partSize: 1024 * 1024 * 1024,
  16622. queueSize: 2,
  16623. leavePartsOnError: true,
  16624. };
  16625. bucket
  16626. .upload(params, options)
  16627. .on("httpUploadProgress", function (evt) {
  16628. //这里可以写进度条
  16629. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16630. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16631. })
  16632. .send(function (err, data) {
  16633. // _this.progress = 100;
  16634. cfindex2++;
  16635. setTimeout(() => {
  16636. if (
  16637. cfindex2 == event.target.files.length - 1 ||
  16638. cfindex2 > event.target.files.length - 1
  16639. ) {
  16640. _this.proVisible2 = false;
  16641. }
  16642. }, 1000);
  16643. if (err) {
  16644. var a = _this.$refs.upload1.uploadFiles;
  16645. a.splice(a.length - 1, a.length);
  16646. _this.$message.error("上传失败");
  16647. } else {
  16648. // _this.$message.success('上传成功')
  16649. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16650. var c = [
  16651. "AVI",
  16652. "NAVI",
  16653. "MPEG",
  16654. "ASF",
  16655. "MOV",
  16656. "WMV",
  16657. "3GP",
  16658. "RM",
  16659. "RMVB",
  16660. "FLV",
  16661. "F4V",
  16662. "H.264",
  16663. "H.265",
  16664. "REAL VIDEO",
  16665. "MKV",
  16666. "WebM",
  16667. "HDDVD",
  16668. "MP4",
  16669. "MPG",
  16670. "M4V",
  16671. "MGV",
  16672. "OGV",
  16673. "QTM",
  16674. "STR",
  16675. "AMC",
  16676. "DVX",
  16677. "EVO",
  16678. "DAT",
  16679. "OGG",
  16680. "OGM",
  16681. ];
  16682. if (type == 1) {
  16683. _this.studyJuri[0].cover.push({
  16684. name: file.name,
  16685. url: data.Location,
  16686. uid: file.uid,
  16687. });
  16688. if (
  16689. c.indexOf(
  16690. _this.studyJuri[0].cover[0].url
  16691. .split(".")
  16692. [
  16693. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16694. ].toLocaleUpperCase()
  16695. ) != -1
  16696. ) {
  16697. _this.fileType = 2;
  16698. } else if (
  16699. b.indexOf(
  16700. _this.studyJuri[0].cover[0].url
  16701. .split(".")
  16702. [
  16703. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16704. ].toLocaleUpperCase()
  16705. ) != -1
  16706. ) {
  16707. _this.fileType = 1;
  16708. } else {
  16709. _this.fileType = 0;
  16710. }
  16711. _this.imgChange(null, null, type);
  16712. } else if (type == 2) {
  16713. _this.upToolImg = data.Location;
  16714. _this.imgChange(null, null, type);
  16715. _this.addCourseWorks(i);
  16716. } else if (type == 4) {
  16717. _this.addPz("3", data.Location);
  16718. } else if (type == 5) {
  16719. _this.addImgDrawImG(data.Location);
  16720. } else if (type == 6) {
  16721. var _ftype = 1;
  16722. if (
  16723. c.indexOf(
  16724. data.Location.split(".")[
  16725. data.Location.split(".").length - 1
  16726. ].toLocaleUpperCase()
  16727. ) != -1
  16728. ) {
  16729. _ftype = 5;
  16730. } else if (
  16731. b.indexOf(
  16732. data.Location.split(".")[
  16733. data.Location.split(".").length - 1
  16734. ].toLocaleUpperCase()
  16735. ) != -1
  16736. ) {
  16737. _ftype = 4;
  16738. } else {
  16739. _ftype = 1;
  16740. }
  16741. _this.plworkFile.push({
  16742. name: file.name,
  16743. url: data.Location,
  16744. uid: file.uid,
  16745. fileType: _ftype,
  16746. username:
  16747. _this.plworkFile.length + 1 > 9
  16748. ? _this.plworkFile.length + 1
  16749. : "0" + (_this.plworkFile.length + 1),
  16750. });
  16751. }
  16752. _this.imgChange(null, null, type);
  16753. console.log(data.Location);
  16754. // _this.$message.success('上传成功'+data.Location)
  16755. }
  16756. });
  16757. }
  16758. }
  16759. },
  16760. beforeUpload2(event, type) {
  16761. var file = event.target.files[0];
  16762. var credentials = {
  16763. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16764. secretAccessKey: "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",
  16765. }; //秘钥形式的登录上传
  16766. window.AWS.config.update(credentials);
  16767. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16768. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16769. var _this = this;
  16770. _this.progress = 0;
  16771. _this.proVisible = true;
  16772. if (file) {
  16773. var params = {
  16774. Key:
  16775. file.name.split(".")[0] +
  16776. new Date().getTime() +
  16777. "." +
  16778. file.name.split(".")[file.name.split(".").length - 1],
  16779. ContentType: file.type,
  16780. Body: file,
  16781. "Access-Control-Allow-Credentials": "*",
  16782. ACL: "public-read",
  16783. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16784. var options = {
  16785. partSize: 2048 * 1024 * 1024,
  16786. queueSize: 2,
  16787. leavePartsOnError: true,
  16788. };
  16789. bucket
  16790. .upload(params, options)
  16791. .on("httpUploadProgress", function (evt) {
  16792. //这里可以写进度条
  16793. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16794. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16795. })
  16796. .send(function (err, data) {
  16797. _this.progress = 100;
  16798. setTimeout(() => {
  16799. _this.proVisible = false;
  16800. }, 1000);
  16801. if (err) {
  16802. var a = _this.$refs.upload1.uploadFiles;
  16803. a.splice(a.length - 1, a.length);
  16804. _this.$message.error("上传失败");
  16805. } else {
  16806. if (type == 2) {
  16807. _this.studyJuri[0].upVedio.push({
  16808. name: file.name,
  16809. url: data.Location,
  16810. uid: file.uid,
  16811. });
  16812. _this.imgChange(null, null, type);
  16813. } else if (type == 3) {
  16814. _this.studyJuri[0].upFile.push({
  16815. name: file.name,
  16816. url: data.Location,
  16817. uid: file.uid,
  16818. });
  16819. _this.imgChange(null, null, type);
  16820. }
  16821. console.log(data.Location);
  16822. }
  16823. });
  16824. }
  16825. },
  16826. allScrell() {
  16827. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16828. },
  16829. nextOrpreSteps(t) {
  16830. if (this.IsFollow && this.tType == 2) {
  16831. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16832. return;
  16833. }
  16834. var b = this.chapInfoList.length - 1;
  16835. if (t == 0) {
  16836. if (this.courseType == 0) {
  16837. if (this.taskCount == 0) {
  16838. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16839. if (this.IsLookOpen) {
  16840. if (
  16841. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16842. ) {
  16843. if (
  16844. this.courseDetail.userid != this.userid &&
  16845. (!this.courseDetail.course_teacher ||
  16846. (this.courseDetail.course_teacher &&
  16847. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16848. ) {
  16849. this.$message.error("任务未解锁");
  16850. } else {
  16851. this.$message.error("上一任务未解锁");
  16852. }
  16853. return;
  16854. }
  16855. }
  16856. this.navList[this.courseType].isOpen = false;
  16857. this.courseType = b;
  16858. this.taskCount =
  16859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16860. .length - 1;
  16861. this.navList[this.courseType].isOpen = true;
  16862. } else {
  16863. this.taskCount--;
  16864. }
  16865. } else {
  16866. if (this.taskCount == 0) {
  16867. this.navList[this.courseType].isOpen = false;
  16868. this.courseType--;
  16869. this.taskCount =
  16870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16871. .length - 1;
  16872. this.navList[this.courseType].isOpen = true;
  16873. } else {
  16874. this.taskCount--;
  16875. }
  16876. }
  16877. } else {
  16878. if (this.courseType == b) {
  16879. if (
  16880. this.taskCount ==
  16881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16882. 1
  16883. ) {
  16884. this.navList[this.courseType].isOpen = false;
  16885. this.courseType = 0;
  16886. this.taskCount = 0;
  16887. this.navList[this.courseType].isOpen = true;
  16888. } else {
  16889. var bbb = parseInt(this.taskCount) + 1;
  16890. if (
  16891. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16892. .isLook &&
  16893. this.courseDetail.userid != this.userid &&
  16894. (!this.courseDetail.course_teacher ||
  16895. (this.courseDetail.course_teacher &&
  16896. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16897. this.IsLookOpen
  16898. ) {
  16899. this.$message.error("任务未解锁");
  16900. return;
  16901. }
  16902. this.taskCount++;
  16903. if (this.IsLookOpen) {
  16904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16905. this.taskCount
  16906. ].isLook = true;
  16907. this.addCourseState(3);
  16908. }
  16909. }
  16910. } else {
  16911. if (
  16912. this.taskCount ==
  16913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16914. 1
  16915. ) {
  16916. var bbb = parseInt(this.courseType) + 1;
  16917. if (
  16918. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16919. this.courseDetail.userid != this.userid &&
  16920. (!this.courseDetail.course_teacher ||
  16921. (this.courseDetail.course_teacher &&
  16922. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16923. this.IsLookOpen
  16924. ) {
  16925. this.$message.error("任务未解锁");
  16926. return;
  16927. }
  16928. this.navList[this.courseType].isOpen = false;
  16929. this.courseType++;
  16930. this.taskCount = 0;
  16931. this.navList[this.courseType].isOpen = true;
  16932. } else {
  16933. var bbb = parseInt(this.taskCount) + 1;
  16934. if (
  16935. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16936. .isLook &&
  16937. this.courseDetail.userid != this.userid &&
  16938. (!this.courseDetail.course_teacher ||
  16939. (this.courseDetail.course_teacher &&
  16940. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16941. this.IsLookOpen
  16942. ) {
  16943. this.$message.error("任务未解锁");
  16944. return;
  16945. }
  16946. this.taskCount++;
  16947. }
  16948. if (this.IsLookOpen) {
  16949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16950. this.taskCount
  16951. ].isLook = true;
  16952. this.addCourseState(3);
  16953. }
  16954. }
  16955. // if (
  16956. // this.taskCount ==
  16957. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16958. // ) {
  16959. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16960. // } else {
  16961. // this.taskCount++;
  16962. // }
  16963. }
  16964. document.scrollingElement.scrollTop = 0;
  16965. // this.showType = 7;
  16966. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16967. // if (this.vedio[this.taskCount].length > 0) {
  16968. // var a =
  16969. // document.getElementsByClassName("box_course")[this.taskCount]
  16970. // .offsetHeight;
  16971. // document.getElementsByClassName("vedioList")[
  16972. // this.taskCount
  16973. // ].style.height = a + "px";
  16974. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16975. // a - 40 + "px";
  16976. // }
  16977. this.isNoHomeWork = false;
  16978. (this.studyJuri = [
  16979. {
  16980. content: "",
  16981. cover: [],
  16982. upVedio: [],
  16983. upFile: [],
  16984. },
  16985. ]),
  16986. (this.radio = []);
  16987. this.isClickNav = "";
  16988. this.selectPz();
  16989. this.getHomeWork();
  16990. this.getCourseDetail(2);
  16991. this.$forceUpdate();
  16992. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16993. this.setCTask();
  16994. }
  16995. },
  16996. openTask(s, n, i) {
  16997. if (this.IsFollow && this.tType == 2) {
  16998. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16999. return;
  17000. }
  17001. if (this.IsLookOpen &&
  17002. this.courseDetail.userid != this.userid &&
  17003. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17004. if (
  17005. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17006. this.courseDetail.userid != this.userid &&
  17007. (!this.courseDetail.course_teacher ||
  17008. (this.courseDetail.course_teacher &&
  17009. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17010. ) {
  17011. this.$message.error("任务未解锁");
  17012. return;
  17013. }
  17014. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17015. if (
  17016. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17017. .isLook
  17018. ) {
  17019. this.$message.error("上一任务未解锁");
  17020. return;
  17021. }
  17022. } else if (s > this.courseType) {
  17023. if (n > 0) {
  17024. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17025. this.$message.error("上一任务未解锁");
  17026. return;
  17027. }
  17028. } else {
  17029. if (
  17030. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17031. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17032. ].isLook
  17033. ) {
  17034. this.$message.error("上一任务未解锁");
  17035. return;
  17036. }
  17037. }
  17038. }
  17039. }
  17040. if (this.navList[s].task[n].isOpen == true) {
  17041. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17042. return;
  17043. }
  17044. let flag = this.courseType==s;
  17045. this.courseType = s;
  17046. this.navId = i;
  17047. this.taskCount = n;
  17048. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17049. this.navList[this.courseType].task[this.taskCount].isOpen =
  17050. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17051. if (this.IsLookOpen) {
  17052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17053. this.taskCount
  17054. ].isLook = true;
  17055. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17056. this.addCourseState(3,yym);
  17057. }
  17058. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17059. this.isCloseList[ci].isClose = 0;
  17060. this.isCloseList[ci].isCloseBoolean = false;
  17061. this.$nextTick(()=>{
  17062. setTimeout(()=>{
  17063. setTimeout(()=>{
  17064. this.panToolHeight('tool-'+ci);
  17065. }, 0)
  17066. }, 0)
  17067. })
  17068. }
  17069. // this.showType = 7;
  17070. this.isNoHomeWork = false;
  17071. (this.studyJuri = [
  17072. {
  17073. content: "",
  17074. cover: [],
  17075. upVedio: [],
  17076. upFile: [],
  17077. },
  17078. ]),
  17079. (this.radio = []);
  17080. document.scrollingElement.scrollTop = 0;
  17081. // setTimeout(() => {
  17082. // let a = document.getElementById(i);
  17083. // if (a.offsetTop - 110 == 0) {
  17084. // window.scrollTo(0, 0);
  17085. // } else {
  17086. // window.scrollTo(0, a.offsetTop);
  17087. // }
  17088. // }, 0);
  17089. for (var z = 0; z < this.navList.length; z++) {
  17090. for (var q = 0; q < this.navList[z].task.length; q++) {
  17091. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17092. this.navList[z].task[q].tool[w].isTool = false;
  17093. }
  17094. }
  17095. }
  17096. this.selectPz();
  17097. this.getHomeWork();
  17098. this.getCourseDetail(2);
  17099. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17100. this.setCTask();
  17101. }
  17102. if(flag){
  17103. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17104. }else{
  17105. 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>`)
  17106. }
  17107. },
  17108. get(i) {
  17109. if (this.IsFollow && this.tType == 2) {
  17110. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17111. return;
  17112. }
  17113. // for(var k=0;k<this.navList.length;k++){
  17114. // this.navList[k].isOpen = false;
  17115. // }
  17116. // this.navList[i].isOpen = true;
  17117. this.navList[i].isOpen = !this.navList[i].isOpen;
  17118. if (this.navList[i].isOpen) {
  17119. this.openTask(i, 0, i + "-0");
  17120. }
  17121. },
  17122. addQuestion() {
  17123. this.answerList.push({
  17124. answerTitle: this.answerQ,
  17125. answer: this.questionAnswer,
  17126. });
  17127. let params = [
  17128. {
  17129. uid: this.userid,
  17130. cid: this.id,
  17131. stage: this.courseType,
  17132. task: this.taskCount,
  17133. tool: this.toolindex,
  17134. content: JSON.stringify(this.answerList),
  17135. type: 3,
  17136. },
  17137. ];
  17138. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17139. this.homeWorkLoading = true
  17140. this.ajax
  17141. .post(this.$store.state.api + "addCourseWorks", params)
  17142. .then((res) => {
  17143. this.$message({
  17144. message: "提交成功",
  17145. type: "success",
  17146. });
  17147. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17148. setTimeout(() => {
  17149. this.homeWorkLoading = false
  17150. }, 500);
  17151. this.answerList = [];
  17152. this.answerDialogVisible = false;
  17153. this.selectStudent();
  17154. this.selectSWorks();
  17155. this.selectSLook();
  17156. })
  17157. .catch((err) => {
  17158. this.$message.error("提交失败");
  17159. console.error(err);
  17160. setTimeout(() => {
  17161. this.homeWorkLoading = false
  17162. }, 500);
  17163. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17164. });
  17165. },
  17166. addQuestionTeacher() {
  17167. this.answerList.push({
  17168. answerTitle: this.answerQ,
  17169. answer: this.questionAnswer,
  17170. });
  17171. let params = [
  17172. {
  17173. uid: this.sStudent.userid,
  17174. cid: this.id,
  17175. stage: this.courseType,
  17176. task: this.taskCount,
  17177. tool: this.toolindex,
  17178. content: JSON.stringify(this.answerList),
  17179. type: 3,
  17180. ateacher: this.userid,
  17181. },
  17182. ];
  17183. this.ajax
  17184. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17185. .then((res) => {
  17186. this.$message({
  17187. message: "提交成功",
  17188. type: "success",
  17189. });
  17190. this.answerList = [];
  17191. this.questionAnswer = "";
  17192. this.answerDialogVisibleTeacher = false;
  17193. this.selectStudent();
  17194. this.selectSWorks();
  17195. this.selectSLook();
  17196. })
  17197. .catch((err) => {
  17198. this.$message.error("提交失败");
  17199. console.error(err);
  17200. });
  17201. },
  17202. refreshCourse() {
  17203. // window.location.reload();
  17204. this.navList = [];
  17205. this.getCourseDetail(1);
  17206. },
  17207. getCourseDetail(type, gindex) {
  17208. let loading;
  17209. if (type != 2) {
  17210. loading = this.$loading.service({
  17211. background: "rgba(255, 255, 255, 0.7)",
  17212. target: document.querySelector(".student_table"),
  17213. });
  17214. }
  17215. this.downLoading = false
  17216. // this.navList[0].isOpen = false;
  17217. // this.navList[this.courseType].isOpen = true;
  17218. // this.courseType = this.courseTypeLine;
  17219. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17220. let params = {
  17221. courseId: this.id,
  17222. };
  17223. this.ajax
  17224. .get(this.$store.state.api + "selectCourseDetail3", params)
  17225. .then((res) => {
  17226. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17227. if (type != 2) {
  17228. loading.close();
  17229. if (
  17230. this.courseType >
  17231. JSON.parse(res.data[0][0].chapters).length - 1
  17232. ) {
  17233. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17234. }
  17235. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17236. .chapterInfo[0].taskJson;
  17237. var b = [
  17238. "AVI",
  17239. "NAVI",
  17240. "MPEG",
  17241. "ASF",
  17242. "MOV",
  17243. "WMV",
  17244. "3GP",
  17245. "RM",
  17246. "RMVB",
  17247. "FLV",
  17248. "F4V",
  17249. "H.264",
  17250. "H.265",
  17251. "REAL VIDEO",
  17252. "MKV",
  17253. "WebM",
  17254. "HDDVD",
  17255. "MP4",
  17256. "MPG",
  17257. "M4V",
  17258. "MGV",
  17259. "OGV",
  17260. "QTM",
  17261. "STR",
  17262. "AMC",
  17263. "DVX",
  17264. "EVO",
  17265. "DAT",
  17266. "OGG",
  17267. "OGM",
  17268. "MP3",
  17269. ];
  17270. let _chapterData = [];
  17271. for (var i = 0; i < a.length; i++) {
  17272. var c = a[i].chapterData;
  17273. this.vedio[i] = [];
  17274. this.textList[i] = [];
  17275. this.lineList[i] = [];
  17276. this.chapToolList[i] = [];
  17277. this.file[i] = [];
  17278. this.fileC[i] = [];
  17279. _chapterData[i] = c.filter((el) => {
  17280. return el.type != 12;
  17281. });
  17282. this.fileC[i] = c.filter((el) => {
  17283. return el.type == 12;
  17284. });
  17285. if (this.tType == 2) {
  17286. if (this.fileC[i].length) {
  17287. let yym1 = this.fileC[i].filter(e=>{
  17288. if(!converter(e.name).includes(converter("教案"))){
  17289. return e
  17290. }
  17291. })
  17292. this.fileC[i] = yym1
  17293. }
  17294. }
  17295. // else if (c[j].type == 12) {
  17296. // this.fileC[i].push(c[j]);
  17297. // }
  17298. for (var j = 0; j < c.length; j++) {
  17299. if (c[j].type == 7) {
  17300. this.chapToolList[i].push(c[j]);
  17301. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17302. this.lineList[i].push(c[j]);
  17303. } else if (c[j].type == 6) {
  17304. this.textList[i].push(c[j]);
  17305. } else {
  17306. if (
  17307. b.indexOf(
  17308. c[j].url
  17309. .split(".")
  17310. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17311. ) != -1
  17312. ) {
  17313. this.vedio[i].push(c[j]);
  17314. } else {
  17315. this.file[i].push(c[j]);
  17316. }
  17317. }
  17318. }
  17319. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17320. d.sources[0].src =
  17321. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17322. this.playerO[i] = d;
  17323. }
  17324. this.courseDetail = res.data[0][0];
  17325. if(this.tType == 2){
  17326. this.tcid = this.arrayToArray(
  17327. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17328. this.classId ? this.classId.split(",") : []
  17329. ).join(",");
  17330. }else{
  17331. this.tcid = this.arrayToArray(
  17332. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17333. this.tcid2 ? this.tcid2.split(",") : []
  17334. ).join(",");
  17335. }
  17336. this.evalua = res.data[0][0].evaId;
  17337. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17338. this.courseType
  17339. ];
  17340. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17341. if (this.tcid && res.data[1].length) {
  17342. let _inviteA = [];
  17343. for (var ik = 0; ik < res.data[1].length; ik++) {
  17344. _inviteA.push({
  17345. cid: res.data[1][ik].classid,
  17346. ic: res.data[1][ik].code,
  17347. });
  17348. }
  17349. for (var ik = 0; ik < _inviteA.length; ik++) {
  17350. if (
  17351. this.arrayToArray(
  17352. _inviteA[ik].cid.split(","),
  17353. this.tcid.split(",")
  17354. ).length
  17355. ) {
  17356. this.inviteCode = _inviteA[ik].ic;
  17357. break;
  17358. }
  17359. }
  17360. }
  17361. for (var l = 0; l < this.chapInfoList.length; l++) {
  17362. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17363. for (var m = 0; m < w.length; m++) {
  17364. w[m].id = l + "-" + m;
  17365. }
  17366. }
  17367. let taskCount = 0;
  17368. if (
  17369. _chapterData[taskCount].length &&
  17370. _chapterData[taskCount][0].type == 2
  17371. ) {
  17372. this.showType = 0;
  17373. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17374. } else {
  17375. if (_chapterData[taskCount].length > 0) {
  17376. let _url = _chapterData[taskCount][0].url;
  17377. if (
  17378. _chapterData[taskCount][0].type == 8 ||
  17379. _chapterData[taskCount][0].type == 14 ||
  17380. _chapterData[taskCount][0].type == 15
  17381. ) {
  17382. this.showType = 2;
  17383. if (
  17384. _url.indexOf("https://") == -1 &&
  17385. _url.indexOf("http://") == -1
  17386. ) {
  17387. _url = "https://" + _url;
  17388. }
  17389. this.pptImgUrl1 = _url;
  17390. } else if (_chapterData[taskCount][0].type == 3) {
  17391. if (
  17392. _url
  17393. .split(".")
  17394. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17395. ) {
  17396. this.showType = 3;
  17397. this.pptImgUrl1 = _url;
  17398. } else if (
  17399. this.isAssetTypeAnImage(
  17400. _url
  17401. .split(".")
  17402. [_url.split(".").length - 1].toLocaleLowerCase()
  17403. )
  17404. ) {
  17405. this.showType = 4;
  17406. this.pptImgUrl1 = _url;
  17407. } else {
  17408. this.showType = 2;
  17409. this.pptImgUrl1 =
  17410. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17411. encodeURIComponent(_url);
  17412. }
  17413. } else if (_chapterData[taskCount][0].type == 13) {
  17414. this.showType = 4;
  17415. this.pptImgUrl1 = _url;
  17416. } else if (_chapterData[taskCount][0].type == 6) {
  17417. this.showType = 1;
  17418. this.text = this.textList[taskCount][0];
  17419. }
  17420. }
  17421. }
  17422. this.isClickNav = 0;
  17423. if (
  17424. !_chapterData[taskCount].length ||
  17425. _chapterData[taskCount][0].type == 12
  17426. ) {
  17427. this.isClickNav = "";
  17428. this.showType = "";
  17429. }
  17430. if (this.tType == 2) {
  17431. _chapterData.forEach((e,i)=>{
  17432. if (e.length) {
  17433. let yym = e.filter(k=>{
  17434. if(!converter(k.name).includes(converter("教案"))){
  17435. return k
  17436. }
  17437. })
  17438. _chapterData[i] = yym
  17439. }
  17440. })
  17441. }
  17442. this.vChapterData = _chapterData;
  17443. } else {
  17444. // this.showType = 0;
  17445. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17446. .chapterInfo[0].taskJson;
  17447. var b = [
  17448. "AVI",
  17449. "NAVI",
  17450. "MPEG",
  17451. "ASF",
  17452. "MOV",
  17453. "WMV",
  17454. "3GP",
  17455. "RM",
  17456. "RMVB",
  17457. "FLV",
  17458. "F4V",
  17459. "H.264",
  17460. "H.265",
  17461. "REAL VIDEO",
  17462. "MKV",
  17463. "WebM",
  17464. "HDDVD",
  17465. "MP4",
  17466. "MPG",
  17467. "M4V",
  17468. "MGV",
  17469. "OGV",
  17470. "QTM",
  17471. "STR",
  17472. "AMC",
  17473. "DVX",
  17474. "EVO",
  17475. "DAT",
  17476. "OGG",
  17477. "OGM",
  17478. "MP3",
  17479. ];
  17480. let _chapterData = [];
  17481. for (var i = 0; i < a.length; i++) {
  17482. var c = a[i].chapterData;
  17483. this.vedio[i] = [];
  17484. this.textList[i] = [];
  17485. this.lineList[i] = [];
  17486. this.chapToolList[i] = [];
  17487. this.file[i] = [];
  17488. this.fileC[i] = [];
  17489. _chapterData[i] = c.filter((el) => {
  17490. return el.type != 12;
  17491. });
  17492. this.fileC[i] = c.filter((el) => {
  17493. return el.type == 12;
  17494. });
  17495. if (this.tType == 2) {
  17496. if (this.fileC[i].length) {
  17497. let yym1 = this.fileC[i].filter(e=>{
  17498. if(!converter(e.name).includes(converter("教案"))){
  17499. return e
  17500. }
  17501. })
  17502. this.fileC[i] = yym1
  17503. }
  17504. }
  17505. for (var j = 0; j < c.length; j++) {
  17506. if (c[j].type == 7) {
  17507. this.chapToolList[i].push(c[j]);
  17508. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17509. this.lineList[i].push(c[j]);
  17510. } else if (c[j].type == 6) {
  17511. this.textList[i].push(c[j]);
  17512. } else {
  17513. if (
  17514. b.indexOf(
  17515. c[j].url
  17516. .split(".")
  17517. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17518. ) != -1
  17519. ) {
  17520. this.vedio[i].push(c[j]);
  17521. } else {
  17522. this.file[i].push(c[j]);
  17523. }
  17524. }
  17525. }
  17526. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17527. d.sources[0].src =
  17528. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17529. this.playerO[i] = d;
  17530. }
  17531. let taskCount = 0;
  17532. if (
  17533. _chapterData[taskCount].length &&
  17534. _chapterData[taskCount][0].type == 2
  17535. ) {
  17536. // this.showType = 0;
  17537. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17538. } else {
  17539. if (_chapterData[taskCount].length > 0) {
  17540. let _url = _chapterData[taskCount][0].url;
  17541. if (
  17542. _chapterData[taskCount][0].type == 8 ||
  17543. _chapterData[taskCount][0].type == 14||
  17544. _chapterData[taskCount][0].type == 15
  17545. ) {
  17546. // this.showType = 2;
  17547. if (
  17548. _url.indexOf("https://") == -1 &&
  17549. _url.indexOf("http://") == -1
  17550. ) {
  17551. _url = "https://" + _url;
  17552. }
  17553. // this.pptImgUrl1 = _url;
  17554. } else if (_chapterData[taskCount][0].type == 3) {
  17555. if (
  17556. _url
  17557. .split(".")
  17558. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17559. ) {
  17560. // this.showType = 3;
  17561. // this.pptImgUrl1 = _url;
  17562. } else if (
  17563. this.isAssetTypeAnImage(
  17564. _url
  17565. .split(".")
  17566. [_url.split(".").length - 1].toLocaleLowerCase()
  17567. )
  17568. ) {
  17569. // this.showType = 4;
  17570. // this.pptImgUrl1 = _url;
  17571. } else {
  17572. // this.showType = 2;
  17573. // this.pptImgUrl1 =
  17574. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17575. // encodeURIComponent(_url);
  17576. }
  17577. } else if (_chapterData[taskCount][0].type == 13) {
  17578. // this.showType = 4;
  17579. // this.pptImgUrl1 = _url;
  17580. } else if (_chapterData[taskCount][0].type == 6) {
  17581. this.showType = 1;
  17582. this.text = this.textList[taskCount][0];
  17583. }
  17584. }
  17585. }
  17586. this.isClickNav = 0;
  17587. if (
  17588. !_chapterData[taskCount].length ||
  17589. _chapterData[taskCount][0].type == 12
  17590. ) {
  17591. this.isClickNav = "";
  17592. // this.showType = "";
  17593. }
  17594. if (this.tType == 2) {
  17595. _chapterData.forEach((e,i)=>{
  17596. if (e.length) {
  17597. let yym = e.filter(k=>{
  17598. if(!converter(k.name).includes(converter("教案"))){
  17599. return k
  17600. }
  17601. })
  17602. _chapterData[i] = yym
  17603. }
  17604. })
  17605. }
  17606. this.vChapterData = _chapterData;
  17607. this.$forceUpdate();
  17608. }
  17609. // else {
  17610. // this.courseDetail = res.data[0][0];
  17611. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17612. // }
  17613. let _this = this;
  17614. if (_this.timer) {
  17615. clearInterval(_this.timer);
  17616. _this.timer = null;
  17617. }
  17618. if (_this.tcid) {
  17619. _this.getCourseGroup(gindex);
  17620. } else {
  17621. _this.selectSWorks(gindex);
  17622. }
  17623. _this.selectStudent();
  17624. _this.selectSLook();
  17625. _this.getPick();
  17626. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17627. // _this.setCTask();
  17628. // }
  17629. if (_this.dialogVisibleGroup) {
  17630. _this.groupJson =
  17631. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17632. _this.taskCount
  17633. ].toolChoose[_this.toolindex].groupJson;
  17634. }
  17635. _this.$nextTick(() => {
  17636. setTimeout(() => {
  17637. _this.checkEva();
  17638. }, 1000);
  17639. });
  17640. _this.timer = setInterval(function () {
  17641. // _this.getCourseDetail(2);
  17642. if (_this.tcid) {
  17643. _this.getCourseGroup();
  17644. } else {
  17645. _this.selectSWorks();
  17646. }
  17647. _this.selectStudent();
  17648. _this.selectSLook();
  17649. _this.getPick();
  17650. // _this.getSplitScreenData();//获取分屏数据
  17651. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17652. // _this.setCTask();
  17653. // }
  17654. if (_this.dialogVisibleGroup) {
  17655. _this.groupJson =
  17656. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17657. _this.taskCount
  17658. ].toolChoose[_this.toolindex].groupJson;
  17659. }
  17660. if (_this.tType == 4 || _this.ispzType == 4) {
  17661. _this.selectPz();
  17662. }
  17663. }, 5000);
  17664. if (_this.timer2 == null) {
  17665. _this.timer2 = setInterval(()=> {
  17666. _this.getSplitScreenData();//获取分屏数据
  17667. }, 5000);
  17668. }
  17669. _this.$nextTick(function () {
  17670. setTimeout(() => {
  17671. // var a =
  17672. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17673. // document.getElementsByClassName("vedioList")[0].style.height =
  17674. // a + "px";
  17675. // document.getElementsByClassName("navBox")[0].style.height =
  17676. // a - 40 + "px";
  17677. // if (_this.vedio[_this.taskCount].length > 0) {
  17678. // _this.vedioTime = [];
  17679. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17680. // _this.vedioTime[i] = document.getElementsByClassName(
  17681. // "vjs-duration-display"
  17682. // )[i].textContent;
  17683. // }
  17684. // }
  17685. }, 1000);
  17686. });
  17687. })
  17688. .catch((err) => {
  17689. loading.close();
  17690. console.error(err);
  17691. });
  17692. },
  17693. getCourseGroup(gindex) {
  17694. let params = {
  17695. cid: this.id,
  17696. classid: this.tcid ? this.tcid : "1",
  17697. };
  17698. this.ajax
  17699. .get(this.$store.state.api + "getCourseGroup", params)
  17700. .then((res) => {
  17701. if (res.data && res.data[0].length) {
  17702. if (!this.isGroup) {
  17703. let courseGroup = JSON.parse(res.data[0][0].group);
  17704. courseGroup.group = courseGroup.group.filter((el) => {
  17705. el.works = [];
  17706. return el;
  17707. });
  17708. if (courseGroup.isopen == 2) {
  17709. this.isGroup = false;
  17710. this.selectSWorks(gindex);
  17711. return;
  17712. }
  17713. this.courseGroup = courseGroup;
  17714. let groupPerson = res.data[1];
  17715. let group = JSON.parse(res.data[0][0].group).group;
  17716. let courseGroupStudent = {};
  17717. let courseGroupStudentUid = {};
  17718. for (var i = 0; i < group.length; i++) {
  17719. courseGroupStudent[group[i].id] = [];
  17720. courseGroupStudentUid[group[i].id] = [];
  17721. for (var j = 0; j < groupPerson.length; j++) {
  17722. if (groupPerson[j].groupCid == group[i].id) {
  17723. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17724. courseGroupStudentUid[group[i].id].push(
  17725. groupPerson[j].userid
  17726. );
  17727. }
  17728. }
  17729. }
  17730. this.courseGroupStudent = courseGroupStudent;
  17731. this.courseGroupStudentUid = courseGroupStudentUid;
  17732. }
  17733. if (this.courseGroup.isopen == 2) {
  17734. this.isGroup = false;
  17735. } else {
  17736. this.isGroup = true;
  17737. }
  17738. this.selectSWorks(gindex);
  17739. } else {
  17740. this.selectSWorks(gindex);
  17741. this.isGroup = false;
  17742. }
  17743. })
  17744. .catch((err) => {
  17745. // this.$message.error("网络不佳");
  17746. console.error(err);
  17747. });
  17748. },
  17749. setOperationTime() {
  17750. let _this = this;
  17751. if (_this.opertimer) {
  17752. clearInterval(_this.opertimer);
  17753. _this.opertimer = null;
  17754. }
  17755. _this.opertimer = setInterval(() => {
  17756. _this.setoTime("600");
  17757. }, 600000);
  17758. },
  17759. setoTime(time) {
  17760. let params = [
  17761. {
  17762. uid: this.userid,
  17763. cid: this.id,
  17764. type: "2",
  17765. time: time,
  17766. },
  17767. ];
  17768. this.ajax
  17769. .post(this.$store.state.api + "addOperationTimeT2", params)
  17770. .then((res) => {})
  17771. .catch((err) => {
  17772. console.error(err);
  17773. });
  17774. },
  17775. addPz(type, content) {
  17776. if (type == "1" && this.pzConText == "") {
  17777. this.$message.error("评论不能为空!");
  17778. return;
  17779. }
  17780. let params = [
  17781. {
  17782. cid: this.id,
  17783. uid: this.userid,
  17784. s: this.courseType,
  17785. t: this.taskCount,
  17786. c: type == "1" ? this.pzConText : content,
  17787. type: type,
  17788. },
  17789. ];
  17790. this.ajax
  17791. .post(this.$store.state.api + "addPz2", params)
  17792. .then((res) => {
  17793. this.$message({
  17794. message: "添加成功",
  17795. type: "success",
  17796. });
  17797. this.pzConText = "";
  17798. this.addPzDialog = false;
  17799. this.selectPz();
  17800. if(this.tType!=2){
  17801. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17802. }
  17803. })
  17804. .catch((err) => {
  17805. this.$message.error("添加失败");
  17806. console.error(err);
  17807. });
  17808. },
  17809. setReplyIndex(id, i) {
  17810. this.replyIndex = i;
  17811. this.replyPid = id;
  17812. this.replyDialogVisible = true;
  17813. },
  17814. addHf() {
  17815. if (this.reply == "") {
  17816. this.$message.error("回复不能为空!");
  17817. return;
  17818. }
  17819. let params = [
  17820. {
  17821. cid: this.id,
  17822. uid: this.userid,
  17823. s: this.courseType,
  17824. t: this.taskCount,
  17825. type: "1",
  17826. ct: 2,
  17827. pid: this.replyPid,
  17828. c: this.reply,
  17829. },
  17830. ];
  17831. this.ajax
  17832. .post(this.$store.state.api + "addHf", params)
  17833. .then((res) => {
  17834. this.reply = "";
  17835. this.$message({
  17836. message: "回复成功",
  17837. type: "success",
  17838. });
  17839. this.replyDialogVisible = false;
  17840. this.selectPz();
  17841. })
  17842. .catch((err) => {
  17843. this.$message.error("回复失败");
  17844. console.error(err);
  17845. });
  17846. },
  17847. deletePz(id) {
  17848. this.$confirm("确定删除此评论吗?", "提示", {
  17849. confirmButtonText: "确定",
  17850. cancelButtonText: "取消",
  17851. type: "warning",
  17852. })
  17853. .then(() => {
  17854. let params = [
  17855. {
  17856. id: id,
  17857. },
  17858. ];
  17859. this.ajax
  17860. .post(this.$store.state.api + "deletePz", params)
  17861. .then((res) => {
  17862. this.$message({
  17863. message: "删除成功",
  17864. type: "success",
  17865. });
  17866. this.selectPz();
  17867. })
  17868. .catch((err) => {
  17869. this.$message.error("网络异常");
  17870. console.error(err);
  17871. });
  17872. })
  17873. .catch(() => {});
  17874. },
  17875. deleteReply(id) {
  17876. this.$confirm("确定删除此回复吗?", "提示", {
  17877. confirmButtonText: "确定",
  17878. cancelButtonText: "取消",
  17879. type: "warning",
  17880. })
  17881. .then(() => {
  17882. let params = [
  17883. {
  17884. id: id,
  17885. },
  17886. ];
  17887. this.ajax
  17888. .post(this.$store.state.api + "deleteReply", params)
  17889. .then((res) => {
  17890. this.$message({
  17891. message: "删除成功",
  17892. type: "success",
  17893. });
  17894. this.selectPz();
  17895. })
  17896. .catch((err) => {
  17897. this.$message.error("网络异常");
  17898. console.error(err);
  17899. });
  17900. })
  17901. .catch(() => {});
  17902. },
  17903. setPz() {
  17904. if (this.ispzType == 4) {
  17905. this.ispzType = 0;
  17906. this.pzDialog = false;
  17907. return;
  17908. }
  17909. this.ispzType = 4;
  17910. this.pzDialog = true;
  17911. this.selectPz();
  17912. },
  17913. selectPz() {
  17914. let params = {
  17915. cid: this.id,
  17916. s: this.courseType,
  17917. t: this.taskCount,
  17918. type: this.pzStype,
  17919. uid: this.userid,
  17920. };
  17921. this.ajax
  17922. .get(this.$store.state.api + "selectPzListType", params)
  17923. .then((res) => {
  17924. this.pzList = res.data[0];
  17925. var a = res.data[1];
  17926. for (var i = 0; i < a.length; i++) {
  17927. for (var j = 0; j < this.pzList.length; j++) {
  17928. if (!this.pzList[j].hfList) {
  17929. this.pzList[j].hfList = [];
  17930. }
  17931. if (a[i].pid == this.pzList[j].id) {
  17932. this.pzList[j].hfList.push(a[i]);
  17933. }
  17934. }
  17935. }
  17936. })
  17937. .catch((err) => {
  17938. console.error(err);
  17939. });
  17940. },
  17941. // selectHf() {
  17942. // let params = {
  17943. // cid: this.id,
  17944. // s: this.courseType,
  17945. // t: this.taskCount,
  17946. // };
  17947. // this.ajax
  17948. // .get(this.$store.state.api + "selectHfList", params)
  17949. // .then((res) => {
  17950. // var a = res.data[0];
  17951. // for (var i = 0; i < a.length; i++) {
  17952. // for (var j = 0; j < this.pzList.length; j++) {
  17953. // if (!this.pzList[i].hfList) {
  17954. // this.pzList[i].hfList = [];
  17955. // }
  17956. // if (a[i].pid == this.pzList[j].id) {
  17957. // this.pzList[i].hfList.push(a[i]);
  17958. // }
  17959. // }
  17960. // }
  17961. // })
  17962. // .catch((err) => {
  17963. // console.error(err);
  17964. // });
  17965. // },
  17966. updateSLook() {
  17967. let params = {
  17968. sopen: this.sIsOpen == false ? 1 : 2,
  17969. cid: this.id,
  17970. };
  17971. this.ajax
  17972. .get(this.$store.state.api + "updateCourseSLook", params)
  17973. .then((res) => {
  17974. if (this.sIsOpen == true) {
  17975. this.$message({
  17976. message: "权限设置成功",
  17977. type: "success",
  17978. });
  17979. } else {
  17980. this.$message({
  17981. message: "权限关闭成功",
  17982. type: "success",
  17983. });
  17984. }
  17985. })
  17986. .catch((err) => {
  17987. console.error(err);
  17988. });
  17989. },
  17990. updateFollow() {
  17991. let params = [
  17992. {
  17993. sopen: this.IsFollow == false ? 1 : 2,
  17994. cid: this.id,
  17995. },
  17996. ];
  17997. this.ajax
  17998. .post(this.$store.state.api + "updateCourseFollow", params)
  17999. .then((res) => {
  18000. if (this.IsFollow == true) {
  18001. this.$message({
  18002. message: "开启成功",
  18003. type: "success",
  18004. });
  18005. } else {
  18006. this.$message({
  18007. message: "关闭成功",
  18008. type: "success",
  18009. });
  18010. }
  18011. this.setCTask();
  18012. })
  18013. .catch((err) => {
  18014. console.error(err);
  18015. });
  18016. },
  18017. setCTask() {
  18018. let params = [
  18019. {
  18020. sopen: this.courseType + "-" + this.taskCount,
  18021. cid: this.id,
  18022. },
  18023. ];
  18024. this.ajax
  18025. .post(this.$store.state.api + "updateCourseFollowC", params)
  18026. .then((res) => {})
  18027. .catch((err) => {
  18028. console.error(err);
  18029. });
  18030. },
  18031. updateLookOpen() {
  18032. let params = [
  18033. {
  18034. sopen: this.IsLookOpen == false ? 1 : 2,
  18035. cid: this.id,
  18036. },
  18037. ];
  18038. this.ajax
  18039. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18040. .then((res) => {
  18041. if (this.IsLookOpen == true) {
  18042. // if (this.courseType != 0 && this.taskCount != 0) {
  18043. // this.openTask(0, 0, "0-0");
  18044. // }
  18045. this.$message({
  18046. message: "权限设置成功",
  18047. type: "success",
  18048. });
  18049. } else {
  18050. this.$message({
  18051. message: "权限关闭成功",
  18052. type: "success",
  18053. });
  18054. }
  18055. this.getCourseState(2);
  18056. })
  18057. .catch((err) => {
  18058. console.error(err);
  18059. });
  18060. },
  18061. selectSLook() {
  18062. let params = {
  18063. cid: this.id,
  18064. };
  18065. this.ajax
  18066. .get(this.$store.state.api + "selectCourseSLook", params)
  18067. .then((res) => {
  18068. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18069. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18070. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18071. if (!this.IsLookOpen) {
  18072. this.setNavList();
  18073. }
  18074. this.getCourseState(1);
  18075. if ((this.IsFollow && this.tType == 2)) {
  18076. this.setContent2(false);
  18077. let _followC = res.data[0][0].followC.split("-");
  18078. if (
  18079. this.courseType != _followC[0] ||
  18080. this.taskCount != _followC[1]
  18081. ) {
  18082. this.navList[this.courseType].isOpen = false;
  18083. this.courseType = _followC[0];
  18084. this.navList[this.courseType].isOpen = true;
  18085. this.taskCount = parseInt(_followC[1]);
  18086. this.navId = res.data[0][0].followC;
  18087. document.scrollingElement.scrollTop = 0;
  18088. this.getCourseDetail(2);
  18089. }
  18090. }
  18091. })
  18092. .catch((err) => {
  18093. console.error(err);
  18094. });
  18095. },
  18096. setNavList() {
  18097. if (this.navList.length == 0) {
  18098. this.navList = [];
  18099. var copyList = [];
  18100. for (var l = 0; l < this.chapInfoList.length; l++) {
  18101. var q = this.chapInfoList[l].dyName;
  18102. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18103. var e;
  18104. copyList.push({
  18105. dyName: q,
  18106. isOpen: l === 0 ? true : false,
  18107. task: [],
  18108. });
  18109. for (var r = 0; r < w.length; r++) {
  18110. e = w[r].task;
  18111. if (this.chapInfoList[l].easy == 1) {
  18112. copyList[l].task.push({
  18113. taskName: q,
  18114. id: l + "-" + r,
  18115. isLook: w[r].isLook,
  18116. isOpen: r === 0 ? true : false,
  18117. tool: [],
  18118. });
  18119. } else {
  18120. copyList[l].task.push({
  18121. taskName: e,
  18122. id: l + "-" + r,
  18123. isLook: w[r].isLook,
  18124. isOpen: r === 0 ? true : false,
  18125. tool: [],
  18126. });
  18127. }
  18128. var t = w[r].toolChoose;
  18129. for (var k = 0; k < t.length; k++) {
  18130. var tool = t[k].tool[0];
  18131. copyList[l].task[r].tool.push({
  18132. tool: tool,
  18133. isTool: false,
  18134. });
  18135. }
  18136. // this.navId = this.navId ? this.navId : l + "-" + r;
  18137. // this.navId = l + "-" + r;
  18138. }
  18139. }
  18140. this.navList = copyList;
  18141. this.navList[0].isOpen = false;
  18142. this.navList[this.courseType].isOpen = true;
  18143. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18144. } else {
  18145. this.setNavList2();
  18146. }
  18147. },
  18148. setNavList2() {
  18149. for (var l = 0; l < this.chapInfoList.length; l++) {
  18150. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18151. for (var r = 0; r < w.length; r++) {
  18152. this.navList[l].task[r].isLook = w[r].isLook;
  18153. }
  18154. }
  18155. if (
  18156. this.IsLookOpen &&
  18157. !this.navList[this.courseType].task[this.taskCount].isLook
  18158. ) {
  18159. this.openTask(0, 0, "0-0");
  18160. }
  18161. this.$forceUpdate();
  18162. },
  18163. getCourseState(type) {
  18164. let params = {
  18165. cid: this.id,
  18166. };
  18167. this.ajax
  18168. .get(this.$store.state.api + "getCourseState", params)
  18169. .then((res) => {
  18170. // if (res.data[0].length > 0) {
  18171. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18172. // }
  18173. if (res.data[0].length > 0 && type == 1) {
  18174. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18175. this.setNavList();
  18176. this.$forceUpdate();
  18177. } else if (res.data[0].length > 0 && type == 2) {
  18178. this.addCourseState(2);
  18179. } else {
  18180. // this.addCourseState(1);
  18181. }
  18182. })
  18183. .catch((err) => {
  18184. console.error(err);
  18185. });
  18186. },
  18187. addCourseState(type,val = '') {
  18188. let _state = val ? val : this.chapInfoList;
  18189. // this.courseType this.taskCount
  18190. if (type == 1 || type == 2) {
  18191. for (var i = 0; i < _state.length; i++) {
  18192. let el = _state[i].chapterInfo[0].taskJson;
  18193. for (var j = 0; j < el.length; j++) {
  18194. // if (i == 0 && j == 0) {
  18195. // el[j].isLook = true;
  18196. // } else {
  18197. // el[j].isLook = false;
  18198. // }
  18199. if (
  18200. this.courseType > i ||
  18201. (this.courseType == i && this.taskCount + 1 > j)
  18202. ) {
  18203. el[j].isLook = true;
  18204. } else {
  18205. el[j].isLook = false;
  18206. }
  18207. }
  18208. }
  18209. }
  18210. let params = [
  18211. {
  18212. cid: this.id,
  18213. state: JSON.stringify(_state),
  18214. },
  18215. ];
  18216. this.ajax
  18217. .post(
  18218. this.$store.state.api +
  18219. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18220. params
  18221. )
  18222. .then((res) => {
  18223. if (this.IsLookOpen) {
  18224. this.setNavList();
  18225. }
  18226. if (type == 3 && type == 2) {
  18227. this.getCourseState(1);
  18228. }
  18229. })
  18230. .catch((err) => {
  18231. console.error(err);
  18232. });
  18233. },
  18234. getHomeWork() {
  18235. let params = {
  18236. cid: this.id,
  18237. stage: this.courseType,
  18238. task: this.taskCount,
  18239. uid: this.userid,
  18240. };
  18241. this.ajax
  18242. .get(this.$store.state.api + "selectWork", params)
  18243. .then((res) => {
  18244. if (res.data[0].length > 0) {
  18245. this.studyJuri = JSON.parse(res.data[0][0].content);
  18246. this.isNoHomeWork = true;
  18247. }
  18248. })
  18249. .catch((err) => {
  18250. console.error(err);
  18251. });
  18252. },
  18253. isAssetTypeAnImage(ext) {
  18254. return (
  18255. [
  18256. "png",
  18257. "jpg",
  18258. "jpeg",
  18259. "bmp",
  18260. "gif",
  18261. "webp",
  18262. "psd",
  18263. "svg",
  18264. "tiff",
  18265. ].indexOf(ext) !== -1
  18266. );
  18267. },
  18268. switchVideo(media) {
  18269. this.playerO = {};
  18270. this.playerOptions.poster = "";
  18271. this.playerOptions.sources[0].src = media;
  18272. this.playerO = this.playerOptions;
  18273. },
  18274. onPlayerPlay() {},
  18275. onPlayerTimeupdate(player) {
  18276. let gklog = player.cache_.currentTime; //当前播放的秒数
  18277. let a = player.cache_.duration; //视频的总时长
  18278. let gklog2 = parseInt(gklog);
  18279. // if(gklog2 == '3'){
  18280. // player.pause()
  18281. // setTimeout(()=>{
  18282. // player.currentTime(gklog2+1)
  18283. // player.play()
  18284. // },1000)
  18285. // }
  18286. console.log(" onPlayerTimeupdate!", gklog);
  18287. console.log(" onPlayerTimeupdate!", gklog2);
  18288. },
  18289. lookVedio(u, i) {
  18290. this.isClickNav = "";
  18291. // this.playerOptions.sources[0].src = u;
  18292. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18293. d.sources[0].src = u;
  18294. this.playerO[0] = d;
  18295. this.showType = 0;
  18296. // this.isClickNav = "video" + i;
  18297. this.isClickNav = i;
  18298. this.$forceUpdate();
  18299. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18300. },
  18301. lookText(i, t) {
  18302. this.isClickNav = "";
  18303. // this.text = this.textList[i][t];
  18304. this.text = this.vChapterData[i][t];
  18305. // this.dialogVisible1 = true;
  18306. this.showType = 1;
  18307. // this.isClickNav = "text" + t;
  18308. this.isClickNav = t;
  18309. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18310. },
  18311. lookTools(i, t) {
  18312. this.chapTools = this.chapToolList[i][t];
  18313. this.dialogVisible2 = true;
  18314. },
  18315. async openFile(f) {
  18316. this.pptImgUrl = "";
  18317. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18318. if (
  18319. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18320. -1
  18321. ) {
  18322. let _uuurl = await this.checkLink(f);
  18323. console.log(_uuurl)
  18324. this.pptImgUrl =
  18325. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18326. this.showPDF = false;
  18327. this.dialogVisible3 = true;
  18328. } else if (
  18329. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18330. ) {
  18331. this.pptImgUrl = f;
  18332. this.showPDF = true;
  18333. this.dialogVisible3 = true;
  18334. }
  18335. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18336. },
  18337. openTable(f) {
  18338. this.tableJson = JSON.parse(f.works);
  18339. this.dialogVisibleTable2 = true;
  18340. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18341. },
  18342. openWord(f) {
  18343. this.tableJson = JSON.parse(f.works);
  18344. this.dialogVisibleTable3 = true;
  18345. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18346. },
  18347. doUrl(url, i) {
  18348. this.isClickNav = "";
  18349. this.pptImgUrl1 = "";
  18350. this.showType = 2;
  18351. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18352. url = "https://" + url;
  18353. }
  18354. this.pptImgUrl1 = "";
  18355. this.diffKey = new Date().getTime();
  18356. setTimeout(() => {
  18357. this.pptImgUrl1 = url;
  18358. }, 500);
  18359. // this.isClickNav = "line" + i;
  18360. this.isClickNav = i;
  18361. this.$forceUpdate();
  18362. },
  18363. checkPhoto(f, i) {
  18364. this.showType = 4;
  18365. this.pptImgUrl1 = f.url;
  18366. this.isClickNav = i;
  18367. this.$forceUpdate();
  18368. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18369. },
  18370. checkHtml(f, i){
  18371. this.showType = 16;
  18372. this.pptImgUrl1 = f.url;
  18373. this.isClickNav = i;
  18374. this.$forceUpdate();
  18375. },
  18376. async downFile(f, i) {
  18377. this.isClickNav = "";
  18378. this.pptImgUrl1 = "";
  18379. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18380. if (
  18381. a.indexOf(
  18382. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18383. ) != -1
  18384. ) {
  18385. let _uuurl = await this.checkLink(f.url);
  18386. console.log(_uuurl)
  18387. this.pptImgUrl1 =
  18388. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18389. // this.dialogVisible3 = true;
  18390. this.showType = 2;
  18391. } else if (
  18392. this.isAssetTypeAnImage(
  18393. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18394. )
  18395. ) {
  18396. this.showType = 4;
  18397. this.pptImgUrl1 = f.url;
  18398. } else if (
  18399. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18400. "PDF"
  18401. ) {
  18402. this.pptImgUrl1 = f.url;
  18403. // this.dialogVisible3 = true;
  18404. this.showType = 3;
  18405. } else {
  18406. window.open(this.file[i].url);
  18407. }
  18408. // this.isClickNav = "word" + i;
  18409. this.isClickNav = i;
  18410. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18411. },
  18412. downFileList(i) {
  18413. window.open(this.noImgList[i].url);
  18414. },
  18415. openAddWork() {
  18416. this.dialogVisible = true;
  18417. },
  18418. addBzWorks() {
  18419. let params = [
  18420. {
  18421. uid: this.userid,
  18422. cid: this.id,
  18423. stage: this.courseType,
  18424. task: this.taskCount,
  18425. tool: this.toolindex,
  18426. content: JSON.stringify(this.eScore),
  18427. type: 6,
  18428. },
  18429. ];
  18430. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18431. this.homeWorkLoading = true
  18432. this.ajax
  18433. .post(this.$store.state.api + "addCourseWorks", params)
  18434. .then((res) => {
  18435. this.$message({
  18436. message: "提交成功",
  18437. type: "success",
  18438. });
  18439. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18440. setTimeout(() => {
  18441. this.homeWorkLoading = false
  18442. }, 500);
  18443. this.eScore = { eBzText: "", eStar: [] };
  18444. this.studentEvalDialogVisible = false;
  18445. this.selectSWorks();
  18446. })
  18447. .catch((err) => {
  18448. this.$message.error("提交失败");
  18449. console.error(err);
  18450. setTimeout(() => {
  18451. this.homeWorkLoading = false
  18452. }, 500);
  18453. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18454. });
  18455. },
  18456. addBzWorksTeacher() {
  18457. let params = [
  18458. {
  18459. uid: this.sStudent.userid,
  18460. cid: this.id,
  18461. stage: this.courseType,
  18462. task: this.taskCount,
  18463. tool: this.toolindex,
  18464. content: JSON.stringify(this.eScore),
  18465. type: 6,
  18466. },
  18467. ];
  18468. this.ajax
  18469. .post(this.$store.state.api + "addCourseWorks", params)
  18470. .then((res) => {
  18471. this.$message({
  18472. message: "提交成功",
  18473. type: "success",
  18474. });
  18475. this.eScore = { eBzText: "", eStar: [] };
  18476. this.studentEvalDialogVisibleTeacher = false;
  18477. this.selectSWorks();
  18478. })
  18479. .catch((err) => {
  18480. this.$message.error("提交失败");
  18481. console.error(err);
  18482. });
  18483. },
  18484. addStudentAsk() {
  18485. if (!this.radio.length) {
  18486. this.$message.error("请选择选项");
  18487. return;
  18488. }
  18489. for (var i = 0; i < this.askJson.askCount; i++) {
  18490. if (
  18491. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18492. (this.radio[i] !== 0 && !this.radio[i])
  18493. ) {
  18494. this.$message.error("请选择选项");
  18495. return;
  18496. }
  18497. }
  18498. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18499. let params = [
  18500. {
  18501. uid: this.userid,
  18502. cid: this.id,
  18503. stage: this.courseType,
  18504. task: this.taskCount,
  18505. tool: this.toolindex,
  18506. content: JSON.stringify(this.askList),
  18507. type: 2,
  18508. },
  18509. ];
  18510. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18511. this.homeWorkLoading = true
  18512. this.ajax
  18513. .post(this.$store.state.api + "addCourseWorks", params)
  18514. .then((res) => {
  18515. this.$message({
  18516. message: "提交成功",
  18517. type: "success",
  18518. });
  18519. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18520. setTimeout(() => {
  18521. this.homeWorkLoading = false
  18522. }, 500);
  18523. this.askList = [];
  18524. this.dialogVisible5 = false;
  18525. this.selectStudent();
  18526. this.selectSWorks();
  18527. this.selectSLook();
  18528. })
  18529. .catch((err) => {
  18530. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18531. setTimeout(() => {
  18532. this.homeWorkLoading = false
  18533. }, 500);
  18534. this.$message.error("提交失败");
  18535. console.error(err);
  18536. });
  18537. },
  18538. addStudentAskTeacher() {
  18539. if (!this.radio.length) {
  18540. this.$message.error("请选择选项");
  18541. return;
  18542. }
  18543. for (var i = 0; i < this.askJson.askCount; i++) {
  18544. if (
  18545. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18546. (this.radio[i] !== 0 && !this.radio[i])
  18547. ) {
  18548. this.$message.error("请选择选项");
  18549. return;
  18550. }
  18551. }
  18552. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18553. let params = [
  18554. {
  18555. uid: this.sStudent.userid,
  18556. cid: this.id,
  18557. stage: this.courseType,
  18558. task: this.taskCount,
  18559. tool: this.toolindex,
  18560. content: JSON.stringify(this.askList),
  18561. type: 2,
  18562. },
  18563. ];
  18564. this.ajax
  18565. .post(this.$store.state.api + "addCourseWorks", params)
  18566. .then((res) => {
  18567. this.$message({
  18568. message: "提交成功",
  18569. type: "success",
  18570. });
  18571. this.askList = [];
  18572. this.dialogVisible5Teacher = false;
  18573. this.selectStudent();
  18574. this.selectSWorks();
  18575. this.selectSLook();
  18576. })
  18577. .catch((err) => {
  18578. this.$message.error("提交失败");
  18579. console.error(err);
  18580. });
  18581. },
  18582. addStudentTest() {
  18583. if (!this.radio.length) {
  18584. this.$message.error("请选择选项");
  18585. return;
  18586. }
  18587. for (var i = 0; i < this.testJson.testCount; i++) {
  18588. if (
  18589. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18590. (this.radio[i] !== 0 && !this.radio[i])
  18591. ) {
  18592. this.$message.error("请选择选项");
  18593. return;
  18594. }
  18595. }
  18596. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18597. let params = [
  18598. {
  18599. uid: this.userid,
  18600. cid: this.id,
  18601. stage: this.courseType,
  18602. task: this.taskCount,
  18603. tool: this.toolindex,
  18604. content: JSON.stringify(this.askList),
  18605. type: 8,
  18606. },
  18607. ];
  18608. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18609. this.homeWorkLoading = true
  18610. this.ajax
  18611. .post(this.$store.state.api + "addCourseWorks", params)
  18612. .then((res) => {
  18613. this.$message({
  18614. message: "提交成功",
  18615. type: "success",
  18616. });
  18617. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18618. setTimeout(() => {
  18619. this.homeWorkLoading = false
  18620. }, 500);
  18621. this.askList = [];
  18622. this.dialogVisibleChoice = false;
  18623. this.selectStudent();
  18624. this.selectSWorks();
  18625. this.selectSLook();
  18626. })
  18627. .catch((err) => {
  18628. this.$message.error("提交失败");
  18629. console.error(err);
  18630. setTimeout(() => {
  18631. this.homeWorkLoading = false
  18632. }, 500);
  18633. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18634. });
  18635. },
  18636. addStudentTestTeacher() {
  18637. if (!this.radio.length) {
  18638. this.$message.error("请选择选项");
  18639. return;
  18640. }
  18641. for (var i = 0; i < this.testJson.testCount; i++) {
  18642. if (
  18643. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18644. (this.radio[i] !== 0 && !this.radio[i])
  18645. ) {
  18646. this.$message.error("请选择选项");
  18647. return;
  18648. }
  18649. }
  18650. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18651. let params = [
  18652. {
  18653. uid: this.sStudent.userid,
  18654. cid: this.id,
  18655. stage: this.courseType,
  18656. task: this.taskCount,
  18657. tool: this.toolindex,
  18658. content: JSON.stringify(this.askList),
  18659. type: 8,
  18660. },
  18661. ];
  18662. this.ajax
  18663. .post(this.$store.state.api + "addCourseWorks", params)
  18664. .then((res) => {
  18665. this.$message({
  18666. message: "提交成功",
  18667. type: "success",
  18668. });
  18669. this.askList = [];
  18670. this.dialogVisibleChoiceTeacher = false;
  18671. this.selectStudent();
  18672. this.selectSWorks();
  18673. this.selectSLook();
  18674. })
  18675. .catch((err) => {
  18676. this.$message.error("提交失败");
  18677. console.error(err);
  18678. });
  18679. },
  18680. addWork() {
  18681. if (this.studyJuri[0].content == "") {
  18682. this.$message.error("请将信息填写完整");
  18683. return;
  18684. } else if (this.studyJuri[0].cover.length == 0) {
  18685. this.$message.error("请将信息填写完整");
  18686. return;
  18687. } else if (this.studyJuri[0].upVedio.length == 0) {
  18688. this.$message.error("请将信息填写完整");
  18689. return;
  18690. }
  18691. if (this.isNoHomeWork) {
  18692. this.$confirm(
  18693. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18694. "提示",
  18695. {
  18696. confirmButtonText: "确定",
  18697. cancelButtonText: "取消",
  18698. type: "warning",
  18699. }
  18700. )
  18701. .then(() => {
  18702. let params = [
  18703. {
  18704. uid: this.userid,
  18705. cid: this.id,
  18706. stage: this.courseType,
  18707. task: this.taskCount,
  18708. content: JSON.stringify(this.studyJuri),
  18709. },
  18710. ];
  18711. this.ajax
  18712. .post(this.$store.state.api + "addWorks", params)
  18713. .then((res) => {
  18714. this.$message({
  18715. message: "提交成功",
  18716. type: "success",
  18717. });
  18718. this.isNoHomeWork = true;
  18719. this.dialogVisible = false;
  18720. })
  18721. .catch((err) => {
  18722. this.$message.error("提交失败");
  18723. console.error(err);
  18724. });
  18725. })
  18726. .catch(() => {});
  18727. } else {
  18728. let params = [
  18729. {
  18730. uid: this.userid,
  18731. cid: this.id,
  18732. stage: this.courseType,
  18733. task: this.taskCount,
  18734. content: JSON.stringify(this.studyJuri),
  18735. },
  18736. ];
  18737. this.ajax
  18738. .post(this.$store.state.api + "addWorks", params)
  18739. .then((res) => {
  18740. this.$message({
  18741. message: "提交成功",
  18742. type: "success",
  18743. });
  18744. this.isNoHomeWork = true;
  18745. this.dialogVisible = false;
  18746. })
  18747. .catch((err) => {
  18748. this.$message.error("提交失败");
  18749. console.error(err);
  18750. });
  18751. }
  18752. },
  18753. selectCount() {
  18754. let params = {
  18755. cid: this.id,
  18756. chid: this.courseType,
  18757. uid: this.userid,
  18758. };
  18759. this.ajax
  18760. .get(this.$store.state.api + "selectToolsCount", params)
  18761. .then((res) => {
  18762. for (var i = 0; i < res.data[0].length; i++) {
  18763. if (res.data[0][i].tools == 1) {
  18764. this.wbCount = res.data[0][i].count;
  18765. } else if (res.data[0][i].tools == 2) {
  18766. this.wordCount = res.data[0][i].count;
  18767. } else if (res.data[0][i].tools == 3) {
  18768. this.mindCount = res.data[0][i].count;
  18769. } else if (res.data[0][i].tools == 4) {
  18770. this.askCount = res.data[0][i].count;
  18771. } else if (res.data[0][i].tools == 6) {
  18772. this.noteCount = res.data[0][i].count;
  18773. } else if (res.data[0][i].tools == 7) {
  18774. this.mindNetWorkCount = res.data[0][i].count;
  18775. } else if (res.data[0][i].tools == 8) {
  18776. this.libraryCount = res.data[0][i].count;
  18777. } else if (res.data[0][i].tools == 16) {
  18778. this.workCount = res.data[0][i].count;
  18779. } else if (res.data[0][i].tools == 10) {
  18780. this.timeCount = res.data[0][i].count;
  18781. } else if (res.data[0][i].tools == 15) {
  18782. this.answerCount = res.data[0][i].count;
  18783. } else if (res.data[0][i].tools == 18) {
  18784. this.trainCount = res.data[0][i].count;
  18785. }
  18786. }
  18787. })
  18788. .catch((err) => {
  18789. console.error(err);
  18790. });
  18791. },
  18792. openTools(t, i, index, c, sName,id) {
  18793. var z = JSON.parse(c);
  18794. this.noteName = sName;
  18795. if (t == 4) {
  18796. this.radio = [];
  18797. this.isAnswer = false;
  18798. let b = z[0].anwer;
  18799. this.radio = b;
  18800. this.askJson = z[0].askJson;
  18801. this.isAnswer = true;
  18802. this.dialogVisible5 = true;
  18803. } else if (t == 45) {
  18804. this.radio = [];
  18805. this.isAnswer = false;
  18806. let b = z[0].anwer;
  18807. this.radio = b;
  18808. this.testJson = z[0].testJson;
  18809. this.isAnswer = true;
  18810. this.dialogVisibleChoice = true;
  18811. }else if(t == 69){
  18812. this.oldEnglishJson1 = {}
  18813. this.oldEnglishJson = {}
  18814. this.englishList1 = {}
  18815. this.newEngIndex = -1;
  18816. this.isNoUserid = false;
  18817. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18818. .toolChoose[i].englishList;
  18819. this.oldEnglishJson = z;
  18820. this.engWid = id;
  18821. this.newEnglishList = { engTitle:"",engText:"" }
  18822. this.newEnglishList1 = []
  18823. this.selectEngC(id,z);
  18824. }else if(t == 62){
  18825. this.videoType = 1;
  18826. this.videoJson = {};
  18827. this.videoJson = JSON.parse(c);
  18828. // this.videoJson =
  18829. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18830. // index
  18831. // ].toolChoose[i].videoJson;
  18832. this.dialogVisibleVideo = true;
  18833. }
  18834. // else if (t == 15) {
  18835. // this.answerQ = "";
  18836. // this.questionAnswer = "";
  18837. // this.answerQ = z[0].answerTitle;
  18838. // this.questionAnswer = z[0].answer;
  18839. // this.answerDialogVisible = true;
  18840. // }
  18841. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18842. },
  18843. fastText(p, t) {
  18844. if (t == 1) {
  18845. this.commentText += p;
  18846. } else {
  18847. this.eScore.eBzText += p;
  18848. }
  18849. },
  18850. addTools(t, i, index) {
  18851. var a = 0;
  18852. // this.taskCount = index;
  18853. this.toolindex = i;
  18854. if (t == 1) {
  18855. if (this.wbCount > 0) {
  18856. this.updateCount(this.wbCount, t);
  18857. } else {
  18858. this.wbCount++;
  18859. a = this.wbCount;
  18860. this.toolsCount(a, t);
  18861. }
  18862. window.topU.postMessage(
  18863. {
  18864. tools: "1",
  18865. cid: this.id,
  18866. stage: this.courseType,
  18867. task: this.taskCount,
  18868. tool: i,
  18869. },
  18870. "*"
  18871. );
  18872. } else if (t == 2) {
  18873. if (this.wordCount > 0) {
  18874. this.updateCount(this.wordCount, t);
  18875. } else {
  18876. this.wordCount++;
  18877. a = this.wordCount;
  18878. this.toolsCount(a, t);
  18879. }
  18880. window.topU.postMessage({ tools: "2" }, "*");
  18881. } else if (t == 3) {
  18882. if (this.mindCount > 0) {
  18883. this.updateCount(this.mindCount, t);
  18884. } else {
  18885. this.mindCount++;
  18886. a = this.mindCount;
  18887. this.toolsCount(a, t);
  18888. }
  18889. window.topU.postMessage(
  18890. {
  18891. tools: "3",
  18892. cid: this.id,
  18893. stage: this.courseType,
  18894. task: this.taskCount,
  18895. tool: i,
  18896. },
  18897. "*"
  18898. );
  18899. } else if (t == 4) {
  18900. this.radio = [];
  18901. this.noteName = "";
  18902. this.isAnswer = false;
  18903. if (this.askCount > 0) {
  18904. this.updateCount(this.askCount, t);
  18905. } else {
  18906. this.askCount++;
  18907. a = this.askCount;
  18908. this.toolsCount(a, t);
  18909. }
  18910. if (!this.dialogVisible2) {
  18911. this.askJson.askJson =
  18912. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18913. index
  18914. ].toolChoose[i].askJson;
  18915. this.askJson.askTitle =
  18916. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18917. index
  18918. ].toolChoose[i].askTitle;
  18919. this.askJson.askCount =
  18920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18921. index
  18922. ].toolChoose[i].askCount;
  18923. } else {
  18924. this.askJson.askJson = this.chapTools.askJson.askJson;
  18925. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18926. this.askJson.askCount = this.chapTools.askJson.askCount;
  18927. }
  18928. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18929. if (this.askJson.askJson[k].type == "2") {
  18930. this.radio.push([]);
  18931. } else {
  18932. this.radio.push("");
  18933. }
  18934. }
  18935. this.dialogVisible5 = true;
  18936. // window.topU.postMessage({ tools: "4" }, "*");
  18937. } else if (t == 45) {
  18938. this.noteName = "";
  18939. this.radio = [];
  18940. this.isAnswer = false;
  18941. if (this.askCount > 0) {
  18942. this.updateCount(this.askCount, t);
  18943. } else {
  18944. this.askCount++;
  18945. a = this.askCount;
  18946. this.toolsCount(a, t);
  18947. }
  18948. this.testJson =
  18949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18950. index
  18951. ].toolChoose[i].testJson;
  18952. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18953. if (this.testJson.testJson[k].type == "2") {
  18954. this.radio.push([]);
  18955. } else {
  18956. this.radio.push("");
  18957. }
  18958. }
  18959. this.dialogVisibleChoice = true;
  18960. // window.topU.postMessage({ tools: "4" }, "*");
  18961. } else if (t == 5) {
  18962. if (this.scoreCount > 0) {
  18963. this.updateCount(this.scoreCount, t);
  18964. } else {
  18965. this.scoreCount++;
  18966. a = this.scoreCount;
  18967. this.toolsCount(a, t);
  18968. }
  18969. this.dialogVisible4 = true;
  18970. // window.topU.postMessage({ tools: "5" }, "*");
  18971. } else if (t == 6) {
  18972. if (this.noteCount > 0) {
  18973. this.updateCount(this.noteCount, t);
  18974. } else {
  18975. this.noteCount++;
  18976. a = this.noteCount;
  18977. this.toolsCount(a, t);
  18978. }
  18979. window.topU.postMessage(
  18980. {
  18981. tools: "6",
  18982. cid: this.id,
  18983. stage: this.courseType,
  18984. task: this.taskCount,
  18985. tool: i,
  18986. },
  18987. "*"
  18988. );
  18989. } else if (t == 7) {
  18990. if (this.mindNetWorkCount > 0) {
  18991. this.updateCount(this.mindNetWorkCount, t);
  18992. } else {
  18993. this.mindNetWorkCount++;
  18994. a = this.mindNetWorkCount;
  18995. this.toolsCount(a, t);
  18996. }
  18997. window.topU.postMessage(
  18998. {
  18999. tools: "7",
  19000. cid: this.id,
  19001. stage: this.courseType,
  19002. task: this.taskCount,
  19003. tool: i,
  19004. },
  19005. "*"
  19006. );
  19007. } else if (t == 16) {
  19008. if (this.workCount > 0) {
  19009. this.updateCount(this.workCount, t);
  19010. } else {
  19011. this.workCount++;
  19012. a = this.workCount;
  19013. this.toolsCount(a, t);
  19014. }
  19015. this.dialogVisible = true;
  19016. } else if (t == 50) {
  19017. if (this.tType == 2) {
  19018. this.$message.error("不支持学生使用");
  19019. return;
  19020. }
  19021. this.plworkFile = [];
  19022. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19023. if (!this.uploadCid) {
  19024. this.$message.error(
  19025. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19026. );
  19027. return;
  19028. }
  19029. // this.uploadCid =
  19030. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19031. // index
  19032. // ].toolChoose[i].uploadJson[0];
  19033. this.selectUploadStudent(2);
  19034. } else if (t == 8) {
  19035. if (this.libraryCount > 0) {
  19036. this.updateCount(this.libraryCount, t);
  19037. } else {
  19038. this.libraryCount++;
  19039. a = this.libraryCount;
  19040. this.toolsCount(a, t);
  19041. }
  19042. window.topU.postMessage({ tools: "8" }, "*");
  19043. } else if (t == 17) {
  19044. if (this.libraryCount > 0) {
  19045. this.updateCount(this.libraryCount, t);
  19046. } else {
  19047. this.libraryCount++;
  19048. a = this.libraryCount;
  19049. this.toolsCount(a, t);
  19050. }
  19051. window.topU.postMessage({ tools: "17" }, "*");
  19052. } else if (t == 18) {
  19053. if (this.trainCount > 0) {
  19054. this.updateCount(this.trainCount, t);
  19055. } else {
  19056. this.trainCount++;
  19057. a = this.trainCount;
  19058. this.toolsCount(a, t);
  19059. }
  19060. window.topU.postMessage({ tools: "18" }, "*");
  19061. } else if (t == 10) {
  19062. if (this.timeCount > 0) {
  19063. this.updateCount(this.timeCount, t);
  19064. } else {
  19065. this.timeCount++;
  19066. a = this.timeCount;
  19067. this.toolsCount(a, t);
  19068. }
  19069. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19070. .taskJson[index].toolChoose[i].preTime
  19071. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19072. .toolChoose[i].preTime
  19073. : "";
  19074. this.timeDialogVisible = true;
  19075. } else if (t == 15) {
  19076. this.answerQ = "";
  19077. this.questionAnswer = "";
  19078. if (this.answerCount > 0) {
  19079. this.updateCount(this.answerCount, t);
  19080. } else {
  19081. this.answerCount++;
  19082. a = this.answerCount;
  19083. this.toolsCount(a, t);
  19084. }
  19085. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19086. .taskJson[index].toolChoose[i].answerQ
  19087. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19088. .toolChoose[i].answerQ
  19089. : "";
  19090. this.answerDialogVisible = true;
  19091. } else if (t == 21) {
  19092. window.topU.postMessage({ tools: "21" }, "*");
  19093. } else if (t == 22) {
  19094. window.topU.postMessage({ tools: "22" }, "*");
  19095. } else if (t == 23) {
  19096. window.topU.postMessage({ tools: "23" }, "*");
  19097. } else if (t == 24) {
  19098. window.topU.postMessage({ tools: "24" }, "*");
  19099. } else if (t == 25) {
  19100. window.topU.postMessage({ tools: "25" }, "*");
  19101. } else if (t == 31) {
  19102. window.topU.postMessage({ tools: "31" }, "*");
  19103. } else if (t == 28) {
  19104. window.topU.postMessage({ tools: "28" }, "*");
  19105. } else if (t == 37) {
  19106. window.topU.postMessage({ tools: "37" }, "*");
  19107. } else if (t == 38) {
  19108. window.topU.postMessage({ tools: "38" }, "*");
  19109. } else if (t == 39) {
  19110. window.topU.postMessage({ tools: "39" }, "*");
  19111. } else if (t == 32) {
  19112. window.topU.postMessage({ tools: "32" }, "*");
  19113. } else if (t == 66) {
  19114. window.topU.postMessage({ tools: "66" }, "*");
  19115. } else if (t == 67) {
  19116. window.topU.postMessage({ tools: "67" }, "*");
  19117. } else if (t == 68) {
  19118. window.topU.postMessage({ tools: "68" }, "*");
  19119. } else if (t == 57) {
  19120. // window.topU.postMessage({ tools: "57" }, "*");
  19121. window.topU.postMessage(
  19122. {
  19123. tools: "57u",
  19124. cid: this.id,
  19125. stage: this.courseType,
  19126. task: this.taskCount,
  19127. tool: i,
  19128. },
  19129. "*"
  19130. );
  19131. } else if (t == 58) {
  19132. window.topU.postMessage({ tools: "58" }, "*");
  19133. } else if (t == 59) {
  19134. window.topU.postMessage({ tools: "59" }, "*");
  19135. } else if (t == 60) {
  19136. window.topU.postMessage({ tools: "60" }, "*");
  19137. } else if (t == 61) {
  19138. window.topU.postMessage({ tools: "61" }, "*");
  19139. } else if (t == 63) {
  19140. window.topU.postMessage({ tools: "63" }, "*");
  19141. } else if (t == 71) {
  19142. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19143. // this.$message.error("该工具不可使用");
  19144. // return
  19145. // }
  19146. window.topU.postMessage({ tools: "71" }, "*");
  19147. } else if (t == 72) {
  19148. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19149. .taskJson[index].toolChoose[i].appJson
  19150. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19151. .toolChoose[i].appJson
  19152. : "";
  19153. if(!item || !item.url){
  19154. this.$message.error("应用连接为空, 请到课程管理中添加");
  19155. return;
  19156. }
  19157. if (!document.fullscreenElement) {
  19158. this.enterFullScreen();
  19159. }
  19160. this.$refs.appStoreC.getData(item.url,this.userid)
  19161. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19162. // window.open(item.url, "_blank");
  19163. } else if (t == 69) {
  19164. if (this.worksStudent[i].length) {
  19165. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19166. if (this.userid == this.worksStudent[i][k].userid) {
  19167. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19168. break;
  19169. } else {
  19170. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19171. }
  19172. }
  19173. } else {
  19174. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19175. }
  19176. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19177. .taskJson[index].toolChoose[i].englishList
  19178. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19179. .toolChoose[i].englishList
  19180. : {};
  19181. this.englishToolIndex = i;
  19182. this.myAnList = this.myAnswerList1;
  19183. this.engDialogVisible = true;
  19184. } else if (t == 70) {
  19185. if (this.worksStudent[i].length) {
  19186. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19187. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19188. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19189. break;
  19190. } else {
  19191. this.englishVoiceJsonWork = [];
  19192. }
  19193. }
  19194. } else {
  19195. this.englishVoiceJsonWork = [];
  19196. }
  19197. let englishVoiceJson = {}
  19198. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19199. .taskJson[index].toolChoose[i].englishVoiceJson
  19200. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19201. .toolChoose[i].englishVoiceJson
  19202. : {};
  19203. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19204. this.EnglishVoiceDialog = true;
  19205. } else if (t == 65) {
  19206. if (this.tType == 2) {
  19207. this.$message.error("不支持学生使用");
  19208. return;
  19209. }
  19210. this.uploadCid = this.tcid;
  19211. if (!this.uploadCid) {
  19212. this.$message.error(
  19213. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19214. );
  19215. return;
  19216. }
  19217. this.selectPickStudent();
  19218. } else if (t == 26) {
  19219. window.topU.postMessage(
  19220. {
  19221. tools: "26",
  19222. cid: this.id,
  19223. stage: this.courseType,
  19224. task: this.taskCount,
  19225. tool: i,
  19226. },
  19227. "*"
  19228. );
  19229. } else if (t == 40) {
  19230. if (this.evalCount > 0) {
  19231. this.updateCount(this.evalCount, t);
  19232. } else {
  19233. this.evalCount++;
  19234. a = this.evalCount;
  19235. this.toolsCount(a, t);
  19236. }
  19237. this.eScore = { eBzText: "", eStar: [] };
  19238. if (this.worksStudent[i].length) {
  19239. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19240. if (this.userid == this.worksStudent[i][k].userid) {
  19241. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19242. this.rateJson =
  19243. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19244. index
  19245. ].toolChoose[i].rateJson;
  19246. break;
  19247. } else {
  19248. this.rateJson =
  19249. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19250. index
  19251. ].toolChoose[i].rateJson;
  19252. }
  19253. }
  19254. } else {
  19255. this.rateJson =
  19256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19257. index
  19258. ].toolChoose[i].rateJson;
  19259. }
  19260. this.isStar = false;
  19261. this.studentEvalDialogVisible = true;
  19262. } else if (t == 41) {
  19263. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19264. .taskJson[index].toolChoose[i].selectJson
  19265. ? JSON.parse(
  19266. JSON.stringify(
  19267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19268. index
  19269. ].toolChoose[i].selectJson
  19270. )
  19271. )
  19272. : { url: "", select: [], answer: [] };
  19273. if (this.worksStudent[i].length) {
  19274. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19275. if (this.userid == this.worksStudent[i][k].userid) {
  19276. var a = this.worksStudent[i][k].works.split(",");
  19277. for (var ki = 0; ki < a.length; ki++) {
  19278. a[ki] = parseInt(a[ki]);
  19279. }
  19280. this.selectAnswer = {
  19281. answer: a,
  19282. stu: this.worksStudent[i][k].sName,
  19283. };
  19284. break;
  19285. } else {
  19286. this.selectAnswer = { answer: [], stu: "" };
  19287. }
  19288. }
  19289. } else {
  19290. this.selectAnswer = { answer: [], stu: "" };
  19291. }
  19292. this.isSelect = false;
  19293. this.dialogVisibleSelect = true;
  19294. } else if (t == 44) {
  19295. window.topU.postMessage({ tools: "44" }, "*");
  19296. } else if (t == 47) {
  19297. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19298. .taskJson[index].toolChoose[i].sentenceList
  19299. ? JSON.parse(
  19300. JSON.stringify(
  19301. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19302. index
  19303. ].toolChoose[i].sentenceList
  19304. )
  19305. )
  19306. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19307. for (var q = 0; q < this.sentenceList.length; q++) {
  19308. this.sentenceList[q].chooseSenList = [];
  19309. this.sentenceList[q].addChangeSen = [];
  19310. this.sentenceList[q].addChangeSen = JSON.parse(
  19311. JSON.stringify(this.sentenceList[q].addSentence)
  19312. );
  19313. this.sentenceList[q].chooseSenList.length =
  19314. this.sentenceList[q].rightAnswer.length;
  19315. }
  19316. this.dialogVisibleSentence = true;
  19317. } else if (t == 48) {
  19318. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19319. .taskJson[index].toolChoose[i].tableJson
  19320. ? JSON.parse(
  19321. JSON.stringify(
  19322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19323. index
  19324. ].toolChoose[i].tableJson
  19325. )
  19326. )
  19327. : { text: "" };
  19328. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19329. if (this.worksStudent[i].length) {
  19330. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19331. if (this.userid == this.worksStudent[i][k].userid) {
  19332. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19333. break;
  19334. }
  19335. }
  19336. }
  19337. this.dialogVisibleTable = true;
  19338. } else if (t == 52) {
  19339. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19340. .taskJson[index].toolChoose[i].wordJson
  19341. ? JSON.parse(
  19342. JSON.stringify(
  19343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19344. index
  19345. ].toolChoose[i].wordJson
  19346. )
  19347. )
  19348. : { text: "" };
  19349. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19350. if (this.worksStudent[i].length) {
  19351. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19352. if (this.userid == this.worksStudent[i][k].userid) {
  19353. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19354. break;
  19355. }
  19356. }
  19357. }
  19358. this.dialogVisibleWord = true;
  19359. } else if (t == 49) {
  19360. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19361. return
  19362. }
  19363. this.groupJson =
  19364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19365. index
  19366. ].toolChoose[i].groupJson;
  19367. this.islock = this.groupJson.islock == 1 ? true : false;
  19368. this.dialogVisibleGroup = true;
  19369. } else if (t == 62) {
  19370. this.videoType = 0;
  19371. this.videoJson = {};
  19372. this.videoJson =
  19373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19374. index
  19375. ].toolChoose[i].videoJson;
  19376. this.dialogVisibleVideo = true;
  19377. }
  19378. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19379. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19380. },
  19381. teacherWorkSubmit(t, i, index, s) {
  19382. this.sStudent = s;
  19383. this.toolindex = i;
  19384. this.sTool = t;
  19385. if (this.tType !== "1" && this.tType !== "4") {
  19386. return;
  19387. }
  19388. if (t == 16 || t == 32 || t == 50) {
  19389. this.dialogVisibleWorks = true;
  19390. } else if (t == 15) {
  19391. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19392. .taskJson[index].toolChoose[i].answerQ
  19393. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19394. .toolChoose[i].answerQ
  19395. : "";
  19396. this.questionAnswer = "";
  19397. this.answerDialogVisibleTeacher = true; //问答
  19398. } else if (t == 52) {
  19399. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19400. .taskJson[index].toolChoose[i].wordJson
  19401. ? JSON.parse(
  19402. JSON.stringify(
  19403. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19404. index
  19405. ].toolChoose[i].wordJson
  19406. )
  19407. )
  19408. : { text: "" };
  19409. if (this.worksStudent[i].length) {
  19410. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19411. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19412. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19413. break;
  19414. }
  19415. }
  19416. }
  19417. this.dialogVisibleWordTeacher = true; //文档
  19418. } else if (t == 4) {
  19419. this.radio = [];
  19420. this.noteName = "";
  19421. this.isAnswer = false;
  19422. if (this.askCount > 0) {
  19423. this.updateCount(this.askCount, t);
  19424. } else {
  19425. this.askCount++;
  19426. a = this.askCount;
  19427. this.toolsCount(a, t);
  19428. }
  19429. if (!this.dialogVisible2) {
  19430. this.askJson.askJson =
  19431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19432. index
  19433. ].toolChoose[i].askJson;
  19434. this.askJson.askTitle =
  19435. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19436. index
  19437. ].toolChoose[i].askTitle;
  19438. this.askJson.askCount =
  19439. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19440. index
  19441. ].toolChoose[i].askCount;
  19442. } else {
  19443. this.askJson.askJson = this.chapTools.askJson.askJson;
  19444. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19445. this.askJson.askCount = this.chapTools.askJson.askCount;
  19446. }
  19447. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19448. if (this.askJson.askJson[k].type == "2") {
  19449. this.radio.push([]);
  19450. } else {
  19451. this.radio.push("");
  19452. }
  19453. }
  19454. this.dialogVisible5Teacher = true;
  19455. } else if (t == 45) {
  19456. this.noteName = "";
  19457. this.radio = [];
  19458. this.isAnswer = false;
  19459. if (this.askCount > 0) {
  19460. this.updateCount(this.askCount, t);
  19461. } else {
  19462. this.askCount++;
  19463. a = this.askCount;
  19464. this.toolsCount(a, t);
  19465. }
  19466. this.testJson =
  19467. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19468. index
  19469. ].toolChoose[i].testJson;
  19470. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19471. if (this.testJson.testJson[k].type == "2") {
  19472. this.radio.push([]);
  19473. } else {
  19474. this.radio.push("");
  19475. }
  19476. }
  19477. this.dialogVisibleChoiceTeacher = true;
  19478. } else if (t == 41) {
  19479. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19480. .taskJson[index].toolChoose[i].selectJson
  19481. ? JSON.parse(
  19482. JSON.stringify(
  19483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19484. index
  19485. ].toolChoose[i].selectJson
  19486. )
  19487. )
  19488. : { url: "", select: [], answer: [] };
  19489. if (this.worksStudent[i].length) {
  19490. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19491. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19492. var a = this.worksStudent[i][k].works.split(",");
  19493. for (var ki = 0; ki < a.length; ki++) {
  19494. a[ki] = parseInt(a[ki]);
  19495. }
  19496. this.selectAnswer = {
  19497. answer: a,
  19498. stu: this.worksStudent[i][k].sName,
  19499. };
  19500. break;
  19501. } else {
  19502. this.selectAnswer = { answer: [], stu: "" };
  19503. }
  19504. }
  19505. } else {
  19506. this.selectAnswer = { answer: [], stu: "" };
  19507. }
  19508. this.isSelect = false;
  19509. this.dialogVisibleSelectTeacher = true;
  19510. } else if (t == 47) {
  19511. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19512. .taskJson[index].toolChoose[i].sentenceList
  19513. ? JSON.parse(
  19514. JSON.stringify(
  19515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19516. index
  19517. ].toolChoose[i].sentenceList
  19518. )
  19519. )
  19520. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19521. for (var q = 0; q < this.sentenceList.length; q++) {
  19522. this.sentenceList[q].chooseSenList = [];
  19523. this.sentenceList[q].addChangeSen = [];
  19524. this.sentenceList[q].addChangeSen = JSON.parse(
  19525. JSON.stringify(this.sentenceList[q].addSentence)
  19526. );
  19527. this.sentenceList[q].chooseSenList.length =
  19528. this.sentenceList[q].rightAnswer.length;
  19529. }
  19530. this.dialogVisibleSentenceTeacher = true;
  19531. } else if (t == 48) {
  19532. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19533. .taskJson[index].toolChoose[i].tableJson
  19534. ? JSON.parse(
  19535. JSON.stringify(
  19536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19537. index
  19538. ].toolChoose[i].tableJson
  19539. )
  19540. )
  19541. : { text: "" };
  19542. if (this.worksStudent[i].length) {
  19543. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19544. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19545. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19546. break;
  19547. }
  19548. }
  19549. }
  19550. this.dialogVisibleTableTeacher = true;
  19551. } else if (t == 40) {
  19552. if (this.evalCount > 0) {
  19553. this.updateCount(this.evalCount, t);
  19554. } else {
  19555. this.evalCount++;
  19556. a = this.evalCount;
  19557. this.toolsCount(a, t);
  19558. }
  19559. this.eScore = { eBzText: "", eStar: [] };
  19560. if (this.worksStudent[i].length) {
  19561. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19562. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19563. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19564. this.rateJson =
  19565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19566. index
  19567. ].toolChoose[i].rateJson;
  19568. break;
  19569. } else {
  19570. this.rateJson =
  19571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19572. index
  19573. ].toolChoose[i].rateJson;
  19574. }
  19575. }
  19576. } else {
  19577. this.rateJson =
  19578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19579. index
  19580. ].toolChoose[i].rateJson;
  19581. }
  19582. this.isStar = false;
  19583. this.studentEvalDialogVisibleTeacher = true;
  19584. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19585. window.topU.postMessage(
  19586. {
  19587. tools: t + "teacher",
  19588. cid: this.id,
  19589. stage: this.courseType,
  19590. task: this.taskCount,
  19591. tool: i,
  19592. student: this.sStudent,
  19593. },
  19594. "*"
  19595. );
  19596. }else if (t == 72) {
  19597. if (!document.fullscreenElement) {
  19598. this.enterFullScreen();
  19599. }
  19600. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19601. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19602. }
  19603. },
  19604. openCocoPi(tool, i, uid, uname) {
  19605. let student = {
  19606. userid: uid,
  19607. student: uname,
  19608. };
  19609. if (tool == 57) {
  19610. window.topU.postMessage(
  19611. {
  19612. tools: tool + "teacher",
  19613. cid: this.id,
  19614. stage: this.courseType,
  19615. task: this.taskCount,
  19616. tool: i,
  19617. student: student,
  19618. },
  19619. "*"
  19620. );
  19621. }
  19622. },
  19623. setRightAnswer(s, i, j) {
  19624. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19625. if (
  19626. this.sentenceList[i].chooseSenList[q] == undefined ||
  19627. this.sentenceList[i].chooseSenList[q] == ""
  19628. ) {
  19629. this.sentenceList[i].chooseSenList[q] = s;
  19630. this.sentenceList[i].addChangeSen[j] = "";
  19631. break;
  19632. }
  19633. }
  19634. this.$forceUpdate();
  19635. },
  19636. returnCard(r, i, j) {
  19637. var a = this.sentenceList[i].addSentence.indexOf(r);
  19638. this.sentenceList[i].chooseSenList[j] = "";
  19639. this.sentenceList[i].addChangeSen[a] = r;
  19640. this.$forceUpdate();
  19641. },
  19642. // addSentenceTool() {
  19643. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19644. // this.taskCount
  19645. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19646. // this.sentenceList = [
  19647. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19648. // ];
  19649. // this.dialogVisibleSentence = false;
  19650. // },
  19651. toolsCount(a, t) {
  19652. let params = {
  19653. cid: this.id,
  19654. chid: this.courseType,
  19655. uid: this.userid,
  19656. tid: t,
  19657. count: a,
  19658. };
  19659. this.ajax
  19660. .get(this.$store.state.api + "insertToolsCount", params)
  19661. .then((res) => {
  19662. this.selectCount();
  19663. })
  19664. .catch((err) => {
  19665. console.error(err);
  19666. });
  19667. },
  19668. updateCount(c, t) {
  19669. c++;
  19670. let params = {
  19671. cid: this.id,
  19672. chid: this.courseType,
  19673. uid: this.userid,
  19674. tid: t,
  19675. count: c,
  19676. };
  19677. this.ajax
  19678. .get(this.$store.state.api + "updateToolsCount", params)
  19679. .then((res) => {
  19680. this.selectCount();
  19681. })
  19682. .catch((err) => {
  19683. console.error(err);
  19684. });
  19685. },
  19686. checkEva() {
  19687. if (this.evalua != "") {
  19688. for (var i = 0; i < this.evaJuri.length; i++) {
  19689. if (this.evalua == this.evaJuri[i].id) {
  19690. this.eTitle = this.evaJuri[i].title;
  19691. this.eJson = JSON.parse(this.evaJuri[i].content);
  19692. }
  19693. }
  19694. this.$forceUpdate();
  19695. setTimeout(() => {
  19696. this.setMindData();
  19697. }, 0);
  19698. }
  19699. },
  19700. selectEva() {
  19701. let params = {
  19702. oid: this.oid,
  19703. };
  19704. this.ajax
  19705. .get(this.$store.state.api + "selectAllEvaluation", params)
  19706. .then((res) => {
  19707. this.evaJuri = res.data[0];
  19708. })
  19709. .catch((err) => {
  19710. console.error(err);
  19711. });
  19712. },
  19713. setMindData() {
  19714. this.data.data = [];
  19715. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19716. let _eJson = Object.keys(this.eJson);
  19717. let _e = this.eJson;
  19718. for (let i = 0; i < _eJson.length; i++) {
  19719. let element = _e[_eJson[i]];
  19720. this.data.data.push({
  19721. id: element.id,
  19722. parentid: "root",
  19723. topic: element.name,
  19724. });
  19725. let _eJsonc = Object.keys(element.child);
  19726. let _e2 = element.child;
  19727. for (let j = 0; j < _eJsonc.length; j++) {
  19728. let _ec = _e2[_eJsonc[j]];
  19729. this.data.data.push({
  19730. id: _ec.id,
  19731. parentid: element.id,
  19732. topic: _ec.name,
  19733. });
  19734. let _eJsonz = Object.keys(_ec.child);
  19735. let _e3 = _ec.child;
  19736. for (let z = 0; z < _eJsonz.length; z++) {
  19737. let _ez = _e3[_eJsonz[z]];
  19738. this.data.data.push({
  19739. id: _ez.id,
  19740. parentid: _ec.id,
  19741. topic: _ez.name,
  19742. });
  19743. }
  19744. }
  19745. }
  19746. this.$forceUpdate();
  19747. },
  19748. checkFileFull(type, url) {
  19749. this.fullDialogVisible = true;
  19750. this.fulltype = type;
  19751. this.fullUrl = url;
  19752. },
  19753. async checkFileFull1(t, f) {
  19754. this.fullDialogVisible = true;
  19755. if (t == 6) {
  19756. this.fulltype = 1;
  19757. console.log('checkFileFull1',f);
  19758. this.fullUrl = JSON.parse(JSON.stringify(f));
  19759. } else if (t == 8) {
  19760. this.fulltype = 2;
  19761. this.fullUrl = f.url;
  19762. } else if (t == 16) {
  19763. this.fulltype = 16;
  19764. this.fullUrl = f.url;
  19765. } else if (t == 15) {
  19766. this.fulltype = 4;
  19767. this.fullUrl = f.url;
  19768. } else if (
  19769. t == 3 &&
  19770. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19771. "PDF"
  19772. ) {
  19773. this.fulltype = 3;
  19774. this.fullUrl = f.url;
  19775. } else if (t == 3) {
  19776. this.fulltype = 2;
  19777. let _uuurl = await this.checkLink(f.url);
  19778. console.log(_uuurl)
  19779. this.fullUrl =
  19780. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19781. }
  19782. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19783. },
  19784. openSname(n, id, i, uid) {
  19785. this.snameWid = id;
  19786. this.worksSName = n;
  19787. this.worksSid = uid == n ? "" : uid;
  19788. this.toolindex = i;
  19789. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19790. if (!this.uploadCid) {
  19791. this.$message.error(
  19792. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19793. );
  19794. return;
  19795. }
  19796. this.selectUploadStudent(1);
  19797. },
  19798. updateName() {
  19799. let params = {
  19800. n: this.worksSName,
  19801. cid: this.snameWid,
  19802. };
  19803. this.ajax
  19804. .get(this.$store.state.api + "updateCourseWorksName", params)
  19805. .then((res) => {
  19806. this.$message({
  19807. message: "修改成功",
  19808. type: "success",
  19809. });
  19810. this.dialogVisibleSname = false;
  19811. this.getCourseDetail(2);
  19812. this.snameWid = "";
  19813. this.worksSName = "";
  19814. })
  19815. .catch((err) => {
  19816. console.error(err);
  19817. });
  19818. },
  19819. downloadFile2(f) {
  19820. // const loading = this.$loading.service({
  19821. // background: "rgba(255, 255, 255, 0.7)",
  19822. // target: document.body,
  19823. // text: "文件加载中...",
  19824. // });
  19825. // let url2 = f.url;
  19826. // let _url2 = "";
  19827. // if (
  19828. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19829. // ) {
  19830. // _url2 = url2.split(
  19831. // "https://view.officeapps.live.com/op/view.aspx?src="
  19832. // )[1];
  19833. // } else {
  19834. // _url2 = url2;
  19835. // }
  19836. // let params = {
  19837. // url: _url2,
  19838. // name: f.name,
  19839. // };
  19840. // this.ajax
  19841. // .get(this.$store.state.api + "download", params)
  19842. // .then((res) => {
  19843. // loading.close();
  19844. // let content = res.data.data.data;
  19845. // let ab = new ArrayBuffer(content.length);
  19846. // let view = new Uint8Array(ab);
  19847. // for (var i = 0; i < content.length; ++i) {
  19848. // view[i] = content[i];
  19849. // }
  19850. // let elink = document.createElement("a");
  19851. // elink.download = f.name;
  19852. // elink.style.display = "none";
  19853. // let blob = new Blob([ab], {
  19854. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19855. // });
  19856. // elink.href = URL.createObjectURL(blob);
  19857. // document.body.appendChild(elink);
  19858. // elink.click();
  19859. // document.body.removeChild(elink);
  19860. // })
  19861. // .catch((err) => {
  19862. // loading.close();
  19863. // console.error(err);
  19864. // });
  19865. var credentials = {
  19866. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19867. secretAccessKey: "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",
  19868. }; //秘钥形式的登录上传
  19869. window.AWS.config.update(credentials);
  19870. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19871. let url2 = f.url;
  19872. let _url2 = "";
  19873. if (
  19874. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19875. ) {
  19876. _url2 = url2.split(
  19877. "https://view.officeapps.live.com/op/view.aspx?src="
  19878. )[1];
  19879. } else {
  19880. _url2 = url2;
  19881. }
  19882. let _this = this;
  19883. _this.downLoading = true
  19884. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19885. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19886. var params = {
  19887. Bucket: "ccrb",
  19888. Key: name
  19889. };
  19890. s3.getObject(params, function (err, data) {
  19891. _this.downLoading = false
  19892. if (err) console.log(err, err.stack); // an error occurred
  19893. else {
  19894. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19895. let a = document.createElement("a");
  19896. a.name = f.name;
  19897. a.href = url;
  19898. a.download = f.name;
  19899. a.click();
  19900. console.log(data);
  19901. } // sxuccessful response
  19902. });
  19903. return;
  19904. let url = f.url;
  19905. let _url = "";
  19906. if (
  19907. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19908. ) {
  19909. _url = url.split(
  19910. "https://view.officeapps.live.com/op/view.aspx?src="
  19911. )[1];
  19912. } else {
  19913. _url = url;
  19914. }
  19915. _this.downLoading = true
  19916. // const loading = _this.$loading.service({
  19917. // background: "rgba(255, 255, 255, 0.7)",
  19918. // target: document.body,
  19919. // text: "文件加载中...",
  19920. // });
  19921. let x = new XMLHttpRequest();
  19922. x.open("GET", _url, true);
  19923. x.responseType = "blob";
  19924. x.onload = function () {
  19925. _this.downLoading = false
  19926. // loading.close();
  19927. let url = window.URL.createObjectURL(new Blob([x.response]));
  19928. let a = document.createElement("a");
  19929. a.name = f.name;
  19930. a.href = url;
  19931. a.download = f.name;
  19932. a.click();
  19933. };
  19934. x.send();
  19935. },
  19936. downloadFile(url) {
  19937. var credentials = {
  19938. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19939. secretAccessKey: "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",
  19940. }; //秘钥形式的登录上传
  19941. window.AWS.config.update(credentials);
  19942. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19943. let url2 = url;
  19944. let _url2 = "";
  19945. if (
  19946. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19947. ) {
  19948. _url2 = url2.split(
  19949. "https://view.officeapps.live.com/op/view.aspx?src="
  19950. )[1];
  19951. } else {
  19952. _url2 = url2;
  19953. }
  19954. const loading2 = this.$loading.service({
  19955. background: "rgba(255, 255, 255, 0.7)",
  19956. target: document.body,
  19957. text: "文件加载中...",
  19958. });
  19959. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19960. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19961. var params = {
  19962. Bucket: "ccrb",
  19963. Key: name
  19964. };
  19965. s3.getObject(params, function (err, data) {
  19966. loading2.close();
  19967. if (err) console.log(err, err.stack); // an error occurred
  19968. else {
  19969. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19970. let a = document.createElement("a");
  19971. a.name = name;
  19972. a.href = url;
  19973. a.download = name;
  19974. a.click();
  19975. console.log(data);
  19976. } // sxuccessful response
  19977. });
  19978. return;
  19979. let _this = this;
  19980. let _url = "";
  19981. if (
  19982. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19983. ) {
  19984. _url = url.split(
  19985. "https://view.officeapps.live.com/op/view.aspx?src="
  19986. )[1];
  19987. } else {
  19988. _url = url;
  19989. }
  19990. const x = new XMLHttpRequest();
  19991. x.open("GET", _url, true);
  19992. x.responseType = "blob";
  19993. // this.downLoading = true
  19994. const loading = _this.$loading.service({
  19995. background: "rgba(255, 255, 255, 0.7)",
  19996. target: document.body,
  19997. text: "文件加载中...",
  19998. });
  19999. // _this.$message.success("文件下载中...");
  20000. x.onload = function (e) {
  20001. this.downLoading = false
  20002. loading.close();
  20003. let content = x.response;
  20004. let elink = document.createElement("a");
  20005. elink.download = decodeURI(
  20006. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20007. );
  20008. elink.style.display = "none";
  20009. let blob = new Blob([content]);
  20010. elink.href = URL.createObjectURL(blob);
  20011. document.body.appendChild(elink);
  20012. elink.click();
  20013. document.body.removeChild(elink);
  20014. };
  20015. x.send();
  20016. },
  20017. openLine(url) {
  20018. window.open(url);
  20019. },
  20020. resize() {
  20021. if (document.getElementsByClassName("box_course").length) {
  20022. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20023. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20024. if (this.showType == 2 || this.showType == 3) {
  20025. document.getElementsByClassName("navBox")[0].style.height =
  20026. a - 40 + 0+ "px";
  20027. } else {
  20028. document.getElementsByClassName("navBox")[0].style.height =
  20029. a - 40 + "px";
  20030. }
  20031. }
  20032. this.Stbodywidth =
  20033. document.getElementsByClassName("student_body").length &&
  20034. document.getElementsByClassName("student_body")[0].offsetWidth;
  20035. },
  20036. closeDraw() {
  20037. this.bg = null;
  20038. this.drawShow = false;
  20039. },
  20040. showPicturePaint(url) {
  20041. let params = {
  20042. img: url,
  20043. };
  20044. this.ajax
  20045. .get(this.$store.state.api + "imgToBase64", params)
  20046. .then((res) => {
  20047. this.drawShow = true;
  20048. this.bg = res.data[0].img;
  20049. })
  20050. .catch((err) => {
  20051. console.error(err);
  20052. });
  20053. },
  20054. addImgDraw(base64) {
  20055. let file = { name: "批注图.png" };
  20056. let img = this.dataUrlToFile(base64, file);
  20057. this.beforeUpload1(img, 5);
  20058. },
  20059. addImgDrawImG(url) {
  20060. // console.log(url);
  20061. let params = [
  20062. {
  20063. wid: this.commentDetail.wid,
  20064. img: url,
  20065. },
  20066. ];
  20067. this.ajax
  20068. .post(this.$store.state.api + "updateCourseWorks", params)
  20069. .then((res) => {
  20070. this.$message({
  20071. message: "提交成功",
  20072. type: "success",
  20073. });
  20074. this.drawShow = false;
  20075. this.bg = "";
  20076. this.selectSWorks();
  20077. this.selectStudent();
  20078. })
  20079. .catch((err) => {
  20080. this.$message.error("提交失败");
  20081. console.error(err);
  20082. });
  20083. },
  20084. deletePicturePaint() {
  20085. this.$confirm("确定删除此批注吗?", "提示", {
  20086. confirmButtonText: "确定",
  20087. cancelButtonText: "取消",
  20088. type: "warning",
  20089. })
  20090. .then(() => {
  20091. let params = [
  20092. {
  20093. wid: this.commentDetail.wid,
  20094. img: "",
  20095. },
  20096. ];
  20097. this.ajax
  20098. .post(this.$store.state.api + "updateCourseWorks", params)
  20099. .then((res) => {
  20100. this.$message({
  20101. message: "删除成功",
  20102. type: "success",
  20103. });
  20104. this.selectSWorks();
  20105. this.selectStudent();
  20106. })
  20107. .catch((err) => {
  20108. this.$message.error("删除失败");
  20109. console.error(err);
  20110. });
  20111. })
  20112. .catch(() => {});
  20113. },
  20114. getAudioVideo(constraintsData) {
  20115. if (navigator.mediaDevices === undefined) {
  20116. navigator.mediaDevices = {};
  20117. }
  20118. if (navigator.mediaDevices.getUserMedia === undefined) {
  20119. navigator.mediaDevices.getUserMedia = function (constraints) {
  20120. // 首先,如果有getUserMedia的话,就获得它
  20121. var getUserMedia =
  20122. navigator.getUserMedia ||
  20123. navigator.webkitGetUserMedia ||
  20124. navigator.mozGetUserMedia ||
  20125. navigator.msGetUserMedia;
  20126. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20127. if (!getUserMedia) {
  20128. return Promise.reject({ code: 404 });
  20129. }
  20130. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20131. return new Promise(function (resolve, reject) {
  20132. getUserMedia.call(navigator, constraints, resolve, reject);
  20133. });
  20134. };
  20135. }
  20136. return navigator.mediaDevices.getUserMedia(constraintsData);
  20137. },
  20138. /**
  20139. * 开始录制
  20140. */
  20141. startRecording(callback) {
  20142. let _function = (screenStream) => {
  20143. this.addStreamStopListener(screenStream, () => {
  20144. console.log("流停止监听");
  20145. this.stopRecording();
  20146. this.$emit("streamStop", {});
  20147. // this.stopRecording();
  20148. });
  20149. var options = {
  20150. type: "video",
  20151. mimeType: "video/webm",
  20152. disableLogs: false,
  20153. getNativeBlob: false, // enable it for longer recordings
  20154. ignoreMutedMedia: false,
  20155. };
  20156. // this.video.srcObject = screenStream;
  20157. this.recorder = RecordRTC(screenStream, options);
  20158. this.recorder.startRecording();
  20159. this.recorder.screen = screenStream;
  20160. this.videoStart = true;
  20161. // callback(true);
  20162. };
  20163. this.getAudioVideo({ audio: true })
  20164. .then((res) => {
  20165. this.captureScreen(_function, true);
  20166. console.log("已点击允许,开启成功");
  20167. })
  20168. .catch((err) => {
  20169. // console.log('浏览器不支持,请更换浏览器')
  20170. // } else {
  20171. this.captureScreen(_function, false);
  20172. console.log("请检查是否存在麦克风");
  20173. });
  20174. },
  20175. /**
  20176. * 停止录制
  20177. */
  20178. stopRecording(callback) {
  20179. this.recorder.stopRecording(() => {
  20180. // this.video.src = this.video.srcObject = null;
  20181. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20182. const url = URL.createObjectURL(this.recorder.getBlob());
  20183. const a = document.createElement("a"); //this.fileName+
  20184. let videoFile = new File(
  20185. [this.recorder.getBlob()],
  20186. this.courseDetail.title + "录屏.mp4",
  20187. {
  20188. type: "video/mp4",
  20189. }
  20190. );
  20191. let downloadUrl = URL.createObjectURL(videoFile);
  20192. if(this.$refs.classRoomHelperRef){
  20193. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20194. }
  20195. document.body.appendChild(a);
  20196. a.style.display = "none";
  20197. a.href = url;
  20198. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20199. a.click();
  20200. this.recorder.screen.stop();
  20201. this.recorder.destroy();
  20202. this.recorder = null;
  20203. this.videoStart = false;
  20204. // callback(false);
  20205. });
  20206. },
  20207. //初始化
  20208. captureScreen(callback, type) {
  20209. if (navigator.getDisplayMedia) {
  20210. //录制结束,文件下载
  20211. navigator
  20212. .getDisplayMedia({
  20213. video: true,
  20214. })
  20215. .then((screenStream) => {
  20216. if (type) {
  20217. navigator.mediaDevices
  20218. .getUserMedia({ audio: true })
  20219. .then((mic) => {
  20220. screenStream.addTrack(mic.getTracks()[0]);
  20221. callback(screenStream);
  20222. });
  20223. } else {
  20224. callback(screenStream);
  20225. }
  20226. })
  20227. .catch(function (error) {
  20228. console.log("error", error);
  20229. });
  20230. } else if (navigator.mediaDevices.getDisplayMedia) {
  20231. navigator.mediaDevices
  20232. .getDisplayMedia({
  20233. video: true,
  20234. })
  20235. .then((screenStream) => {
  20236. if (type) {
  20237. navigator.mediaDevices
  20238. .getUserMedia({ audio: true })
  20239. .then((mic) => {
  20240. screenStream.addTrack(mic.getTracks()[0]);
  20241. callback(screenStream);
  20242. });
  20243. } else {
  20244. callback(screenStream);
  20245. }
  20246. })
  20247. .catch(function (error) {
  20248. console.log("error", error);
  20249. });
  20250. } else {
  20251. var error = "getDisplayMedia API are not supported in this browser.";
  20252. console.log("error", error);
  20253. alert(error);
  20254. }
  20255. },
  20256. //流监听
  20257. addStreamStopListener(stream, callback) {
  20258. stream.addEventListener(
  20259. "ended",
  20260. function () {
  20261. callback();
  20262. callback = function () {};
  20263. },
  20264. false
  20265. );
  20266. stream.addEventListener(
  20267. "inactive",
  20268. function () {
  20269. callback();
  20270. callback = function () {};
  20271. },
  20272. false
  20273. );
  20274. stream.getTracks().forEach(function (track) {
  20275. track.addEventListener(
  20276. "ended",
  20277. function () {
  20278. callback();
  20279. callback = function () {};
  20280. },
  20281. false
  20282. );
  20283. track.addEventListener(
  20284. "inactive",
  20285. function () {
  20286. callback();
  20287. callback = function () {};
  20288. },
  20289. false
  20290. );
  20291. });
  20292. },
  20293. updateGroup() {
  20294. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20295. this.dialogVisibleGroup2 = true;
  20296. },
  20297. numberPan() {
  20298. if (
  20299. /[^\d]/.test(this.groupJson.number) ||
  20300. this.groupJson.number < 2 ||
  20301. this.groupJson.number > 10
  20302. ) {
  20303. this.$message.error("请输入2-10的数字");
  20304. this.groupJson.number = "";
  20305. }
  20306. },
  20307. updateGroupJson() {
  20308. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20309. if (
  20310. this.groupStudentUid[this.toolindex][i].length >
  20311. this.groupJson2.number
  20312. ) {
  20313. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20314. return;
  20315. }
  20316. }
  20317. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20318. this.islock = this.groupJson.islock == 1 ? true : false;
  20319. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20320. this.taskCount
  20321. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20322. let params = [
  20323. {
  20324. cid: this.id,
  20325. chapters: JSON.stringify(this.chapInfoList),
  20326. uid: this.userid,
  20327. unitIndex: this.courseType,
  20328. },
  20329. ];
  20330. this.ajax
  20331. .post(this.$store.state.api + "updateWorkNew4", params)
  20332. .then((res) => {
  20333. this.$message.success("设置成功");
  20334. this.getCourseDetail(2);
  20335. this.dialogVisibleGroup2 = false;
  20336. this.groupJson2 = {};
  20337. this.$forceUpdate();
  20338. })
  20339. .catch((err) => {
  20340. this.$message.error("网络不佳");
  20341. console.error(err);
  20342. });
  20343. },
  20344. lockChair() {
  20345. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20346. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20347. this.updateGroupJson();
  20348. },
  20349. selectGroup(index) {
  20350. this.getCourseDetail(2, index);
  20351. },
  20352. joinGroup(index) {
  20353. if (this.groupJson.islock == 2) {
  20354. this.$message.error("位置已被锁定,无法加入");
  20355. return;
  20356. }
  20357. if (
  20358. this.groupStudent[this.toolindex][index].length >
  20359. this.groupJson.number ||
  20360. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20361. ) {
  20362. this.$message.error("位置已满,无法加入");
  20363. return;
  20364. }
  20365. let params = [
  20366. {
  20367. cid: this.id,
  20368. stage: this.courseType,
  20369. task: this.taskCount,
  20370. tool: this.toolindex,
  20371. g: index,
  20372. uid: this.userid,
  20373. },
  20374. ];
  20375. this.ajax
  20376. .post(this.$store.state.api + "joinGroup", params)
  20377. .then((res) => {
  20378. this.$message.success("加入成功");
  20379. this.getCourseDetail(2);
  20380. })
  20381. .catch((err) => {
  20382. this.$message.error("网络不佳");
  20383. console.error(err);
  20384. });
  20385. },
  20386. exitGroup(id) {
  20387. if (this.groupJson.islock == 2) {
  20388. this.$message.error("位置已被锁定,无法退出");
  20389. return;
  20390. }
  20391. let params = [
  20392. {
  20393. gid: id,
  20394. },
  20395. ];
  20396. this.ajax
  20397. .post(this.$store.state.api + "exitGroup", params)
  20398. .then((res) => {
  20399. this.$message.success("退出成功");
  20400. this.getCourseDetail(2);
  20401. })
  20402. .catch((err) => {
  20403. this.$message.error("网络不佳");
  20404. console.error(err);
  20405. });
  20406. },
  20407. groupUpload(index, task, gindex) {
  20408. this.taskCount = task;
  20409. this.toolindex = index;
  20410. this.groupIndex = gindex;
  20411. this.dialogVisibleGroupWork = true;
  20412. },
  20413. updateGroupChair(user) {
  20414. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20415. el.label = index;
  20416. return index != user.group;
  20417. });
  20418. this.updateGroupUser = user;
  20419. this.dialogVisibleUpdateGroup = true;
  20420. },
  20421. updateChair() {
  20422. if (
  20423. this.groupStudent[this.toolindex][this.checkChair].length >
  20424. this.groupJson.number ||
  20425. this.groupStudent[this.toolindex][this.checkChair].length ==
  20426. this.groupJson.number
  20427. ) {
  20428. this.$message.error("位置已满,无法加入");
  20429. return;
  20430. }
  20431. let params = [
  20432. {
  20433. cid: this.id,
  20434. stage: this.courseType,
  20435. task: this.taskCount,
  20436. tool: this.toolindex,
  20437. g: this.checkChair,
  20438. uid: this.updateGroupUser.userid,
  20439. },
  20440. ];
  20441. this.ajax
  20442. .post(this.$store.state.api + "joinGroup", params)
  20443. .then((res) => {
  20444. this.$message.success("修改成功");
  20445. this.updateGroupUser = {};
  20446. this.checkChair = "";
  20447. this.updateGroupArray = {};
  20448. this.dialogVisibleUpdateGroup = false;
  20449. this.getCourseDetail(2);
  20450. })
  20451. .catch((err) => {
  20452. this.$message.error("网络不佳");
  20453. console.error(err);
  20454. });
  20455. },
  20456. deleteGroupChair(gindex) {
  20457. this.checkDeleteGroup = [];
  20458. this.deleteGroupUser = JSON.parse(
  20459. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20460. );
  20461. this.deleteGroupArray = this.groupJson.group[gindex];
  20462. this.groupIndex = gindex;
  20463. this.dialogVisibleDeleteGroup = true;
  20464. },
  20465. async deleteChair() {
  20466. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20467. const gid =
  20468. this.groupStudent[this.toolindex][this.groupIndex][
  20469. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20470. this.checkDeleteGroup[i]
  20471. )
  20472. ];
  20473. let params = [
  20474. {
  20475. gid: gid.id,
  20476. },
  20477. ];
  20478. var a = await this.deleteChairA(params);
  20479. if (i == this.checkDeleteGroup.length - 1) {
  20480. this.$message.success("退出成功");
  20481. this.dialogVisibleDeleteGroup = false;
  20482. this.deleteGroupUser = [];
  20483. this.deleteGroupArray = {};
  20484. this.groupIndex = "";
  20485. this.checkDeleteGroup = [];
  20486. this.getCourseDetail(2);
  20487. }
  20488. }
  20489. },
  20490. deleteChairA(params) {
  20491. return new Promise((resolve, reject) => {
  20492. this.ajax
  20493. .post(this.$store.state.api + "exitGroup", params)
  20494. .then((res) => {
  20495. resolve(1);
  20496. })
  20497. .catch((err) => {
  20498. this.$message.error("网络不佳");
  20499. console.error(err);
  20500. });
  20501. });
  20502. },
  20503. contract(i) {
  20504. if (this.isCloseList[i].isClose == 0) {
  20505. this.isCloseList[i].isClose = 1;
  20506. } else {
  20507. this.isCloseList[i].isClose = 0;
  20508. }
  20509. this.$forceUpdate();
  20510. },
  20511. openWordCloud(toolindex) {
  20512. this.wordCloudData = '';
  20513. let array = [];
  20514. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20515. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20516. array.push({ name: works });
  20517. }
  20518. if (this.isGroup) {
  20519. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20520. let works = this.courseGroup.group[i].works[toolindex];
  20521. for (var j = 0; j < works.length; j++) {
  20522. let answer = JSON.parse(works[j].works)[0].answer;
  20523. array.push({ name: answer });
  20524. }
  20525. }
  20526. }
  20527. let _result = ''
  20528. array.forEach(e=>{
  20529. _result +=e.name+','
  20530. })
  20531. this.wordCloudData = _result;
  20532. this.dialogVisibleWordCloud = true;
  20533. this.wordCloudKey += 1;
  20534. },
  20535. uploadWorks(i) {
  20536. this.$confirm("确定导出作业吗?", "提示", {
  20537. confirmButtonText: "确定",
  20538. cancelButtonText: "取消",
  20539. type: "warning",
  20540. })
  20541. .then(() => {
  20542. const loading = this.$loading.service({
  20543. background: "rgba(255, 255, 255, 0.7)",
  20544. target: document.body,
  20545. text: "文件加载中...",
  20546. });
  20547. const _worksStudent = this.worksStudent;
  20548. let url = [];
  20549. var counts = {};
  20550. for (var l = 0; l < _worksStudent[i].length; l++) {
  20551. var item = _worksStudent[i][l];
  20552. var name = item.sName;
  20553. if (!counts.hasOwnProperty(name)) {
  20554. counts[name] = 0;
  20555. } else {
  20556. counts[name]++;
  20557. }
  20558. if (counts[name] > 0) {
  20559. item.sName += " (" + counts[name] + ")";
  20560. }
  20561. }
  20562. for (var l = 0; l < _worksStudent[i].length; l++) {
  20563. var item = _worksStudent[i][l];
  20564. if (
  20565. item.works.indexOf(
  20566. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20567. ) !== -1 &&
  20568. item.works.indexOf("img") === -1
  20569. ) {
  20570. url.push({ name: item.sName, url: item.works });
  20571. }
  20572. }
  20573. // var toolList = [
  20574. // { name: "电子白板", tool: 1 },
  20575. // { name: "思维导图", tool: 3 },
  20576. // { name: "协同文档", tool: 6 },
  20577. // { name: "思维网格", tool: 7 },
  20578. // { name: "素材库", tool: 8 },
  20579. // { name: "学习资料", tool: 17 },
  20580. // { name: "便签", tool: 2 },
  20581. // { name: "问卷调查", tool: 4 },
  20582. // { name: "选择题", tool: 45 },
  20583. // { name: "倒计时", tool: 10 },
  20584. // { name: "问答", tool: 15 },
  20585. // { name: "课程设计", tool: 26 },
  20586. // { name: "训练服务器", tool: 18 },
  20587. // { name: "作业提交", tool: 16 },
  20588. // { name: "批量上传", tool: 50 },
  20589. // { name: "AIoT Blockly", tool: 21 },
  20590. // { name: "AI Python", tool: 23 },
  20591. // { name: "AI Blockly", tool: 24 },
  20592. // { name: "目标管理", tool: 25 },
  20593. // { name: "数学画板", tool: 31 },
  20594. // { name: "翻译", tool: 28 },
  20595. // { name: "魔盒识字", tool: 37 },
  20596. // { name: "数学画板", tool: 31 },
  20597. // { name: "24点", tool: 38 },
  20598. // { name: "GeoGebra", tool: 39 },
  20599. // { name: "源码编辑", tool: 32 },
  20600. // { name: "个人评价", tool: 40 },
  20601. // { name: "选择匹配", tool: 41 },
  20602. // { name: "汉字宫", tool: 44 },
  20603. // { name: "排序", tool: 47 },
  20604. // { name: "表格", tool: 48 },
  20605. // { name: "文档", tool: 52 },
  20606. // { name: "学生分组", tool: 49 },
  20607. // { name: "CocoPi", tool: 57 },
  20608. // { name: "模拟驾驶", tool: 58 },
  20609. // { name: "路径搜索", tool: 59 },
  20610. // { name: "深度学习", tool: 60 },
  20611. // { name: "全历史", tool: 61 },
  20612. // { name: "交互视频", tool: 62 },
  20613. // { name: "海龟编程", tool: 63 },
  20614. // { name: "挑人", tool: 65 },
  20615. // { name: "公式编辑", tool: 66 },
  20616. // { name: "分子结构", tool: 67 },
  20617. // { name: "时间轴", tool: 68 },
  20618. // ];
  20619. // var toolName = "";
  20620. // for(var w = 0;w<toolList.length;w++){
  20621. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20622. // toolName = toolList[w].name;
  20623. // }
  20624. // }
  20625. console.log(url);
  20626. this.downLoadAll(url, loading);
  20627. })
  20628. .catch(() => {});
  20629. },
  20630. downLoadAll(url, loading) {
  20631. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20632. const zip = new JSZip();
  20633. const cache = {};
  20634. const promises = [];
  20635. data.forEach((item) => {
  20636. const promise = getFile(item.url).then((data) => {
  20637. if (data.data != 1) {
  20638. // 下载文件, 并存成ArrayBuffer对象
  20639. const file_name =
  20640. item.name +
  20641. "." +
  20642. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20643. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20644. cache[file_name] = data.data;
  20645. }
  20646. });
  20647. promises.push(promise);
  20648. });
  20649. Promise.all(promises).then(() => {
  20650. zip.generateAsync({ type: "blob" }).then((content) => {
  20651. // 生成二进制流
  20652. FileSaver.saveAs(
  20653. content,
  20654. this.courseDetail.title + "-" + "作业提交工具.zip"
  20655. ); // 利用file-saver保存文件 自定义文件名
  20656. setTimeout(() => {
  20657. loading.close();
  20658. }, 2000);
  20659. });
  20660. });
  20661. },
  20662. pickStudent(stu) {
  20663. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20664. return;
  20665. }
  20666. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20667. confirmButtonText: "确定",
  20668. cancelButtonText: "取消",
  20669. type: "warning",
  20670. })
  20671. .then(() => {
  20672. let params = [
  20673. {
  20674. uid: stu.userid,
  20675. cid: this.id,
  20676. stage: this.courseType,
  20677. task: this.taskCount,
  20678. tool: this.toolindex,
  20679. },
  20680. ];
  20681. this.ajax
  20682. .post(this.$store.state.api + "updateCoursePick", params)
  20683. .then((res) => {
  20684. this.$message.success("操作成功");
  20685. this.getPick();
  20686. })
  20687. .catch((err) => {
  20688. this.$message.error("网络不佳");
  20689. console.error(err);
  20690. });
  20691. })
  20692. .catch(() => {});
  20693. },
  20694. selectUser(){
  20695. let params = {
  20696. userid: this.userid,
  20697. };
  20698. this.ajax
  20699. .get(this.$store.state.api + "selectUser", params)
  20700. .then((res) => {
  20701. this.userMes = res.data[0];
  20702. })
  20703. .catch((err) => {
  20704. console.error(err);
  20705. });
  20706. },
  20707. setEngText(i){
  20708. this.newEngIndex = i;
  20709. this.$forceUpdate();
  20710. },
  20711. addCorrect(){
  20712. this.$confirm("你确定提交批改嘛?", "提示", {
  20713. confirmButtonText: "确定",
  20714. showCancelButton: false,
  20715. closeOnClickModal: false,
  20716. type: "warning",
  20717. })
  20718. .then(() => {
  20719. let params = {
  20720. cid: this.id,
  20721. s: parseInt(this.courseType),
  20722. t: this.taskCount,
  20723. tool: this.toolindex,
  20724. wid: this.engWid,
  20725. c: this.userid,
  20726. 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) : "",
  20727. };
  20728. this.ajax
  20729. .get(this.$store.state.api + "addEngC", params)
  20730. .then((res) => {
  20731. this.$message.success("提交成功");
  20732. this.engUpdateDialogVisible = false;
  20733. })
  20734. .catch((err) => {
  20735. console.error(err);
  20736. });
  20737. })
  20738. .catch(() => {});
  20739. },
  20740. selectEngC(id,z){
  20741. let params = {
  20742. workid: id,
  20743. };
  20744. this.ajax
  20745. .get(this.$store.state.api + "selectEngC", params)
  20746. .then((res) => {
  20747. if(res.data[0].length == 0){
  20748. this.newEnglishList.engTitle = z.engTitle;
  20749. this.newEnglishList.engText = z.engText;
  20750. }else{
  20751. var a = res.data[0];
  20752. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20753. if(this.userMes[0].type == 2){
  20754. var snum = 0;
  20755. for(var i = 0;i<a.length;i++){
  20756. if(this.userMes[0].userid == a[i].correct){
  20757. this.newEnglishList = JSON.parse(a[i].cWork);
  20758. snum = 1;
  20759. }
  20760. }
  20761. if(snum == 0){
  20762. this.newEnglishList = { engTitle:"",engText:"" };
  20763. this.newEnglishList.engTitle = z.engTitle;
  20764. this.newEnglishList.engText = z.engText;
  20765. }
  20766. }else if(this.userMes[0].type == 1){
  20767. var num = 0;
  20768. for(var w= 0;w<a.length;w++){
  20769. if(this.userMes[0].userid == a[w].correct){
  20770. num = 1;
  20771. }
  20772. }
  20773. if(num == 0){
  20774. this.isNoUserid = true;
  20775. var c = JSON.parse(JSON.stringify(z));
  20776. this.oldEnglishJson1 = c;
  20777. }else{
  20778. this.isNoUserid = false;
  20779. }
  20780. var b = a.sort((item, index) => {
  20781. console.log(item)
  20782. if (item.correct === this.userMes[0].userid) {
  20783. return -1; // 将a移到前面
  20784. } else if (index.correct === this.userMes[0].userid) {
  20785. return 1; // 将b移到前面
  20786. } else {
  20787. return 0; // 保持默认顺序
  20788. }
  20789. });
  20790. for(var p = 0;p<b.length;p++){
  20791. for(var y = 0;y<ppp.length;y++){
  20792. if(b[p].id == ppp[y].id){
  20793. b[p].cWork = JSON.parse(ppp[y].cWork);
  20794. break
  20795. }
  20796. }
  20797. }
  20798. this.newEnglishList1 = b;
  20799. }
  20800. }
  20801. this.greyType = false;
  20802. setTimeout(() => {
  20803. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20804. if(this.newEnglishList1.length > 0){
  20805. if(this.isNoUserid == true){
  20806. this.engListLength = this.newEnglishList1.length + 1;
  20807. this.newEngIndex = -1;
  20808. }else{
  20809. this.engListLength = this.newEnglishList1.length;
  20810. this.newEngIndex = 0;
  20811. }
  20812. }
  20813. if(this.userMes[0].type == 2){
  20814. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20815. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20816. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20817. }else if(this.newEngIndex == -1){
  20818. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20819. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20820. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20821. }
  20822. }, 500);
  20823. this.engUpdateDialogVisible = true;
  20824. this.$forceUpdate();
  20825. })
  20826. .catch((err) => {
  20827. console.error(err);
  20828. });
  20829. },
  20830. getPick() {
  20831. let params = {
  20832. cid: this.id,
  20833. };
  20834. this.ajax
  20835. .get(this.$store.state.api + "getPick", params)
  20836. .then((res) => {
  20837. let array = [];
  20838. for (var i = 0; i < res.data[0].length; i++) {
  20839. array.push(res.data[0][i].userid);
  20840. }
  20841. this.isPickStudent = array;
  20842. if (array.indexOf(this.userid) !== -1) {
  20843. this.$confirm("你被老师选到啦!", "提示", {
  20844. confirmButtonText: "确定",
  20845. showCancelButton: false,
  20846. closeOnClickModal: false,
  20847. type: "warning",
  20848. })
  20849. .then(() => {
  20850. let pa = [
  20851. {
  20852. uid: this.userid,
  20853. cid: this.id,
  20854. },
  20855. ];
  20856. this.ajax
  20857. .post(this.$store.state.api + "deletePick", pa)
  20858. .then((res) => {
  20859. this.getPick();
  20860. })
  20861. .catch((err) => {
  20862. this.$message.error("网络不佳");
  20863. console.error(err);
  20864. });
  20865. })
  20866. .catch(() => {});
  20867. }
  20868. })
  20869. .catch((err) => {
  20870. this.$message.error("网络不佳");
  20871. console.error(err);
  20872. });
  20873. },
  20874. foldEva() {
  20875. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20876. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20877. } else {
  20878. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20879. setTimeout(() => {
  20880. this.checkEva();
  20881. setTimeout(() => {
  20882. this.checkEva();
  20883. }, 500);
  20884. }, 0);
  20885. }
  20886. this.$forceUpdate();
  20887. },
  20888. panToolHeight(tool) {
  20889. var _tool = document.querySelectorAll('#'+tool)[0]
  20890. var _toolA = _tool ? _tool.offsetHeight : 0
  20891. var _toolC = 0
  20892. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20893. let boolean2 = (_toolA > _toolC) ? true : false
  20894. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20895. this.$forceUpdate();
  20896. },
  20897. async checkLink(url) {
  20898. // console.log(url)
  20899. let _url = url
  20900. try {
  20901. const response = await fetch(url);
  20902. if(!response.ok){
  20903. _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]))
  20904. }
  20905. // console.log(response.ok)
  20906. } catch (error) {
  20907. console.error('Error checking link:', error);
  20908. // console.log(false)
  20909. _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]))
  20910. }
  20911. // console.log(_url)
  20912. return _url
  20913. },
  20914. getScoreList(){
  20915. let params = {
  20916. cid: this.id,
  20917. };
  20918. this.ajax
  20919. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20920. .then((res) => {
  20921. let result = res.data;
  20922. this.scoreList.datalist = result[0];
  20923. this.scoreList.isScoreList = result[1];
  20924. })
  20925. .catch((err) => {
  20926. console.error(err);
  20927. });
  20928. },
  20929. setClassRoomHelperWidth(width){
  20930. this.classRoomHelperWidth = width
  20931. },
  20932. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20933. this.$refs.choseWorksDetailDialogRef.open({
  20934. toolType:tooc,
  20935. tType: this.tType,
  20936. toolIndex: toolIndex
  20937. });
  20938. this.changeSplitScreenBehavior({
  20939. code: 1,
  20940. form: {
  20941. toolType:tooc,
  20942. toolIndex: toolIndex,
  20943. courseType: this.courseType,
  20944. taskCount: this.taskCount,
  20945. type: 0
  20946. }
  20947. });
  20948. },
  20949. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20950. this.$refs.statisticalAnalysisRef.open({
  20951. worksStudent: this.worksStudent[toolIndex],
  20952. tType: this.tType,
  20953. toolIndex: toolIndex
  20954. });
  20955. this.changeSplitScreenBehavior({
  20956. code: 2,
  20957. form: {
  20958. toolType:4,
  20959. courseType: this.courseType,
  20960. taskCount: this.taskCount,
  20961. toolIndex: toolIndex,
  20962. type: 0
  20963. }
  20964. });
  20965. },
  20966. statisticalAnalysisRefresh(toolIndex) {
  20967. this.$refs.statisticalAnalysisRef.refreshData({
  20968. worksStudent: this.worksStudent[toolIndex],
  20969. tType: this.tType,
  20970. toolIndex: toolIndex
  20971. });
  20972. },
  20973. async splitScreenBehavior(type = 0) {
  20974. // return;
  20975. if (this.splitScreenData.loading)
  20976. return this.$message.info("操作过快,请稍等");
  20977. if (type == 0) {
  20978. //关闭分屏
  20979. this.splitScreenData.isOpen = false;
  20980. // this.splitScreenData.userId = "";
  20981. // this.splitScreenData.uid = "";
  20982. this.splitScreenData.behavior = null;
  20983. await this.updateSplitScreenData(1);
  20984. this.$message.success("已关闭分屏模式");
  20985. this.studentFreePreview(false);
  20986. this.OpenJobPreview(false);
  20987. // this.followingMode(false);
  20988. } else if (type == 1) {
  20989. //开启分屏
  20990. this.splitScreenData.isOpen = true;
  20991. this.splitScreenData.userId = this.userid;
  20992. this.splitScreenData.uid = this.splitScreenData.myUid;
  20993. this.splitScreenData.behavior = null;
  20994. let status = await this.updateSplitScreenData(0);
  20995. this.changeSplitScreenBehavior({form:{}})
  20996. if (status == 1) {
  20997. this.$message.success("已开启分屏");
  20998. this.studentFreePreview(false);
  20999. this.OpenJobPreview(true);
  21000. // this.followingMode(true);
  21001. } else {
  21002. this.splitScreenData.isOpen = false;
  21003. this.splitScreenData.userId = "";
  21004. this.splitScreenData.uid = "";
  21005. this.splitScreenData.behavior = null;
  21006. this.$message.success("分屏开启失败");
  21007. }
  21008. }
  21009. },
  21010. enterFullScreen() {
  21011. let element = document.documentElement;
  21012. if (element.requestFullscreen) {
  21013. element.requestFullscreen();
  21014. } else if (element.mozRequestFullScreen) { /* Firefox */
  21015. element.mozRequestFullScreen();
  21016. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21017. element.webkitRequestFullscreen();
  21018. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21019. element.msRequestFullscreen();
  21020. }
  21021. },
  21022. exitFullScreen() {
  21023. if (document.exitFullscreen) {
  21024. document.exitFullscreen();
  21025. } else if (document.mozCancelFullScreen) { /* Firefox */
  21026. document.mozCancelFullScreen();
  21027. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21028. document.webkitExitFullscreen();
  21029. } else if (document.msExitFullscreen) { /* IE/Edge */
  21030. document.msExitFullscreen();
  21031. }
  21032. },
  21033. confirmOpen(){
  21034. this.splitScreenData.isOpen = true;
  21035. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21036. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21037. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21038. this.confirmOpenDig = false
  21039. if (!document.fullscreenElement) {
  21040. this.enterFullScreen();
  21041. }
  21042. // if (this.timer2) {
  21043. // clearInterval(this.timer2);
  21044. // this.timer2 = null;
  21045. // }
  21046. // this.timer2 = setInterval(()=> {
  21047. // this.getSplitScreenData();//获取分屏数据
  21048. // }, 1000);
  21049. this.$message.success("分屏模式已开启");
  21050. },
  21051. getSplitScreenData() {
  21052. // return;
  21053. // if (this.tType != 1) return;
  21054. let params = {
  21055. cid: this.id
  21056. };
  21057. this.ajax
  21058. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21059. .then(async res => {
  21060. let data = res.data[0][0]["splitScreenData"];
  21061. console.log("获取了分屏数:", data);
  21062. if (data) {
  21063. data = JSON.parse(data);
  21064. if (
  21065. !this.splitScreenData.isOpen &&
  21066. data.isOpen &&
  21067. this.splitScreenData.myUid == data.uid
  21068. ) {
  21069. this.splitScreenData.isOpen = false;
  21070. this.splitScreenData.userId = "";
  21071. this.splitScreenData.uid = "";
  21072. this.splitScreenData.behavior = null;
  21073. await this.updateSplitScreenData(1);
  21074. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21075. this.confirmOpenDig = true
  21076. this.confirmOpenDigData = data
  21077. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21078. this.splitScreenData.isOpen = false;
  21079. this.splitScreenData.userId = "";
  21080. this.splitScreenData.uid = "";
  21081. this.splitScreenData.behavior = null;
  21082. this.$message.error("已结束分屏模式");
  21083. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21084. this.splitScreenData.isOpen = true;
  21085. this.splitScreenData.uid = data.uid;
  21086. this.splitScreenData.userId = data.userId;
  21087. this.splitScreenData.behavior = data.behavior;
  21088. }
  21089. this.doSplitScreenBehavior();
  21090. } else {
  21091. if (this.splitScreenData.isOpen) {
  21092. this.splitScreenData.isOpen = false;
  21093. this.splitScreenData.userId = "";
  21094. this.splitScreenData.uid = "";
  21095. this.splitScreenData.behavior = null;
  21096. this.$message.error("已结束分屏模式");
  21097. // if (this.timer2) {
  21098. // clearInterval(this.timer2);
  21099. // this.timer2 = null;
  21100. // }
  21101. // this.timer2 = setInterval(()=> {
  21102. // this.getSplitScreenData();//获取分屏数据
  21103. // }, 5000);
  21104. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21105. confirmButtonText: '确定', //确认按钮的文字
  21106. showCancelButton: false, //是否显示取消按钮
  21107. showClose: false, //是否显示关闭按钮
  21108. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21109. type: "warning",
  21110. })
  21111. .then(() => {
  21112. if (document.fullscreenElement) {
  21113. this.exitFullScreen();
  21114. }
  21115. })
  21116. .catch(() => {});
  21117. }
  21118. }
  21119. })
  21120. .catch(e => {
  21121. console.log("获取分屏数出错:", e);
  21122. });
  21123. },
  21124. doSplitScreenBehavior() {
  21125. if (
  21126. this.splitScreenData.isOpen &&
  21127. this.splitScreenData.uid != this.splitScreenData.myUid
  21128. ) {
  21129. let behavior = this.splitScreenData.behavior;
  21130. if (behavior) {
  21131. if (behavior.code === 99) {
  21132. //初始化
  21133. this.fullDialogVisible = false;
  21134. if(this.$refs.choseWorksDetailDialogRef.show){
  21135. this.$refs.choseWorksDetailDialogRef.close();
  21136. }
  21137. if(this.$refs.statisticalAnalysisRef.show){
  21138. this.$refs.statisticalAnalysisRef.close();
  21139. }
  21140. }
  21141. if (behavior.code === 0) {
  21142. //开启内容列表弹窗
  21143. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21144. }else{
  21145. this.fullDialogVisible = false;
  21146. }
  21147. if (behavior.code === 1) {
  21148. //关于选择题的作业详细的操作
  21149. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21150. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21151. this.courseType = behavior.form.courseType;
  21152. this.taskCount = behavior.form.taskCount;
  21153. }
  21154. this.$nextTick(() => {
  21155. if (this.$refs.choseWorksDetailDialogRef.show) {
  21156. //已经打开了
  21157. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21158. } else {
  21159. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21160. }
  21161. });
  21162. }else{
  21163. this.$refs.choseWorksDetailDialogRef.close()
  21164. }
  21165. if(behavior.code === 2){
  21166. if(this.$refs.statisticalAnalysisRef.show){
  21167. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21168. }else{
  21169. this.$refs.statisticalAnalysisRef.open({
  21170. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21171. tType: this.tType,
  21172. toolIndex: behavior.form.toolIndex
  21173. });
  21174. }
  21175. }else{
  21176. this.$refs.statisticalAnalysisRef.close();
  21177. }
  21178. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21179. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21180. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21181. if (behavior.form.courseType != this.courseType ||
  21182. behavior.form.taskCount != this.taskCount ||
  21183. behavior.form.toolType != this.toolindex
  21184. ) {
  21185. var a = document.scrollingElement;
  21186. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21187. if (target) {
  21188. target.scrollIntoView(true);
  21189. setTimeout(()=>{
  21190. let scrollBody = document.querySelector('.body_student').parentElement
  21191. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21192. }, 0);
  21193. // setTimeout(() => {
  21194. // a.scrollTop = 0
  21195. // }, 0);
  21196. }
  21197. }
  21198. if(this.courseType !=behavior.form.courseType){
  21199. this.courseType = behavior.form.courseType;
  21200. }
  21201. if(this.taskCount !=behavior.form.taskCount){
  21202. this.taskCount = behavior.form.taskCount;
  21203. }
  21204. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21205. this.toolindex = behavior.form.toolType;
  21206. }
  21207. // if(behavior.form.navId){
  21208. // this.navId = behavior.form.navId
  21209. // }
  21210. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21211. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21212. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21213. this.getCourseDetail()
  21214. }
  21215. this.setContent2(false)
  21216. }
  21217. } else {
  21218. }
  21219. }
  21220. },
  21221. updateSplitScreenData(empty = 0) {
  21222. return new Promise(resolve => {
  21223. if(this.userid!==this.courseDetail.userid){
  21224. if(!this.courseDetail.userid){
  21225. return setTimeout(()=>{
  21226. this.updateSplitScreenData(empty)
  21227. },2000)
  21228. }
  21229. return;
  21230. };
  21231. if (
  21232. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21233. this.splitScreenData.userId == this.userid
  21234. ) {
  21235. this.splitScreenData.loading = true;
  21236. let params = [
  21237. {
  21238. cid: this.id,
  21239. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21240. }
  21241. ];
  21242. this.ajax
  21243. .post(
  21244. this.$store.state.api + "update_courseSplitScreenData",
  21245. params
  21246. )
  21247. .then(res => {
  21248. this.splitScreenData.loading = false;
  21249. if (res.data == 1) {
  21250. resolve(1);
  21251. console.log("修改分屏数据成功");
  21252. }
  21253. })
  21254. .catch(e => {
  21255. this.splitScreenData.loading = false;
  21256. console.log("修改分屏数据失败", e);
  21257. resoleve(0);
  21258. });
  21259. } else if (empty == 2 && this.tType == 1) {
  21260. let params = [
  21261. {
  21262. cid: this.id,
  21263. nData: ""
  21264. }
  21265. ];
  21266. return this.ajax
  21267. .post(
  21268. this.$store.state.api + "update_courseSplitScreenData",
  21269. params
  21270. )
  21271. .then(_ => resolve(1))
  21272. .catch(_ => resolve(0));
  21273. } else {
  21274. return resolve(0);
  21275. }
  21276. });
  21277. },
  21278. changeSplitScreenBehavior(newValue) {
  21279. if (
  21280. this.splitScreenData.isOpen &&
  21281. this.splitScreenData.uid == this.splitScreenData.myUid
  21282. ) {
  21283. let _behavior = null;
  21284. if(!newValue){
  21285. _behavior = {}
  21286. }else{
  21287. _behavior = newValue
  21288. }
  21289. if(_behavior.form){
  21290. _behavior.form.taskCount = this.taskCount;
  21291. _behavior.form.courseType = this.courseType
  21292. }else{
  21293. _behavior.form = {
  21294. taskCount:this.taskCount,
  21295. courseType:this.courseType
  21296. }
  21297. }
  21298. this.splitScreenData.behavior = _behavior;
  21299. this.updateSplitScreenData(0);
  21300. }
  21301. },
  21302. studentFreePreview(flag) {
  21303. this.IsLookOpen = flag;
  21304. this.followingMode(flag)
  21305. this.updateLookOpen();
  21306. },
  21307. OpenJobPreview(flag) {
  21308. this.sIsOpen = flag;
  21309. this.updateSLook();
  21310. },
  21311. followingMode(flag) {
  21312. this.IsFollow = flag;
  21313. this.updateFollow();
  21314. }
  21315. },
  21316. directives: {
  21317. // 使用局部注册指令的方式
  21318. resize: {
  21319. // 指令的名称
  21320. bind(el, binding) {
  21321. // el为绑定的元素,binding为绑定给指令的对象
  21322. let width = "",
  21323. height = "";
  21324. function isReize() {
  21325. const style = document.defaultView.getComputedStyle(el);
  21326. if (width !== style.width || height !== style.height) {
  21327. binding.value(); // 关键
  21328. }
  21329. width = style.width;
  21330. height = style.height;
  21331. }
  21332. el.__vueSetInterval__ = setInterval(isReize, 300);
  21333. },
  21334. unbind(el) {
  21335. clearInterval(el.__vueSetInterval__);
  21336. },
  21337. },
  21338. autoHeight: {
  21339. update(el, binding) {
  21340. const { value } = binding
  21341. if (value && typeof value === 'number') {
  21342. el.style.height = `${value}px`
  21343. } else {
  21344. el.style.height = 'auto'
  21345. }
  21346. },
  21347. componentUpdated(el) {
  21348. el.style.height = `${el.scrollHeight + 5}px`
  21349. },
  21350. },
  21351. },
  21352. beforeDestroy() {
  21353. window.onresize = null;
  21354. clearInterval(this.timer);
  21355. this.timer = null;
  21356. clearInterval(this.timer2);
  21357. this.timer2 = null;
  21358. clearInterval(this.opertimer);
  21359. this.opertimer = null;
  21360. this.updateSplitScreenData(1);
  21361. },
  21362. computed: {
  21363. renderedFormula() {
  21364. return function(val){
  21365. try {
  21366. return katex.renderToString(val,{ throwOnError: false });
  21367. } catch (e) {
  21368. console.error('KaTeX渲染错误:', e);
  21369. return val;
  21370. }
  21371. }
  21372. },
  21373. isAndroid() {
  21374. return /Android/i.test(navigator.userAgent);
  21375. },
  21376. getHeight(){
  21377. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21378. },
  21379. contentConvent() {
  21380. return function (c) {
  21381. return c
  21382. ? c
  21383. .replaceAll(/\r\n/g, "<br/>")
  21384. .replaceAll(/\n/g, "<br/>")
  21385. .replaceAll(/\s/g, " &nbsp")
  21386. : "";
  21387. };
  21388. },
  21389. MarkdownT() {
  21390. return function (c) {
  21391. let md = new MarkdownIt();
  21392. return c
  21393. ? md.render(c) : "";
  21394. };
  21395. },
  21396. commentRight(){
  21397. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21398. return "35px";
  21399. }
  21400. return `calc(${this.classRoomHelperWidth} + 5px)`
  21401. // if(this.$refs["classRoomHelperRef"].type==0){
  21402. // return "100px";
  21403. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21404. // return "502px"
  21405. // }else{
  21406. // return "0px"
  21407. // }
  21408. },
  21409. checkUpload() {
  21410. return function () {
  21411. var studentK = [];
  21412. if (this.plworkFile.length > 0) {
  21413. for (var z = 0; z < this.plworkFile.length; z++) {
  21414. studentK.push(this.plworkFile[z].username);
  21415. }
  21416. studentK = studentK.join(",");
  21417. }
  21418. var a = this.uploadStudentJuri.filter((el) => {
  21419. return studentK.indexOf(el.userid) == -1;
  21420. });
  21421. return a;
  21422. };
  21423. },
  21424. getSName() {
  21425. return function (name) {
  21426. var check = name;
  21427. this.uploadStudentJuri.forEach((el) => {
  21428. if (el.userid == check) {
  21429. check = el.name ? el.name : el.username;
  21430. }
  21431. });
  21432. return check;
  21433. };
  21434. },
  21435. getImgList() {
  21436. return function (val) {
  21437. let srcList = []; // 定义一个数组用来接收后面的img地址
  21438. val.replace(
  21439. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21440. function (match, capture) {
  21441. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21442. srcList.push(capture);
  21443. }
  21444. );
  21445. return srcList;
  21446. };
  21447. },
  21448. retrnToolHeight(){
  21449. return function (tool) {
  21450. var _tool = document.querySelectorAll('#'+tool)[0]
  21451. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21452. };
  21453. },
  21454. Correct() {
  21455. return function (c,d) {
  21456. let w = "";
  21457. let a = this.correctWord;
  21458. for(var k = 0;k<a.length;k++){
  21459. //diffWordsWithSpace
  21460. if(a.length > 1){
  21461. if(a[k].added == true){
  21462. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21463. }else if(a[k].removed == true){
  21464. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21465. }else{
  21466. w += '<span>' + a[k].value + '</span>';
  21467. }
  21468. }else{
  21469. w = c
  21470. }
  21471. console.log("👇👇!+++==")
  21472. console.log(w)
  21473. //diffChars方法
  21474. // if(w == ""){
  21475. // if(a.length > 1){
  21476. // if(a[k].added == true){
  21477. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21478. // }else if(a[k].removed == true){
  21479. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21480. // }
  21481. // }else{
  21482. // w = c
  21483. // }
  21484. // }else{
  21485. // if(k == a.length - 1){
  21486. // if(a[k].added == true){
  21487. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21488. // }else if(a[k].removed == true){
  21489. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21490. // }
  21491. // }else{
  21492. // if(a[k].added == true){
  21493. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21494. // }else if(a[k].removed == true){
  21495. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21496. // }
  21497. // }
  21498. // }
  21499. }
  21500. c = w;
  21501. return c;
  21502. };
  21503. },
  21504. },
  21505. mounted() {
  21506. document.body.addEventListener("click", (e) => {
  21507. if (this.isUpdateToolDetail1) {
  21508. this.updateToolDetail(this.toolDetailIndex);
  21509. }
  21510. });
  21511. try {
  21512. if (this.screenType == 2) {
  21513. window.topU.postMessage({ allScreen: 4 }, "*");
  21514. } else if (this.screenType == 3) {
  21515. window.topU.postMessage({ allScreen: 5 }, "*");
  21516. } else if (this.screenType == 1) {
  21517. window.topU.postMessage({ allScreen: 6 }, "*");
  21518. }
  21519. } catch (error) {
  21520. console.log(error)
  21521. }
  21522. this.setOperationTime();
  21523. this.selectEva();
  21524. this.getCourseDetail();
  21525. this.selectCount();
  21526. this.getHomeWork();
  21527. this.selectUser();
  21528. this.getAIJ();
  21529. this.contentDialog = true;
  21530. this.setContent2(true);
  21531. if (this.tType == 4) {
  21532. this.pzDialog = true;
  21533. this.selectPz();
  21534. }
  21535. // 获取评分列表
  21536. this.getScoreList()
  21537. this.updateSplitScreenData(2);
  21538. this.splitScreenData.myUid = uuidv4();
  21539. document.scrollingElement.scrollTop = 0;
  21540. window.addEventListener("resize", () => {
  21541. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21542. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21543. if (this.showType == 2 || this.showType == 3) {
  21544. document.getElementsByClassName("navBox")[0].style.height =
  21545. a - 40 + 0+ "px";
  21546. } else {
  21547. document.getElementsByClassName("navBox")[0].style.height =
  21548. a - 40 + "px";
  21549. }
  21550. });
  21551. let _this = this;
  21552. setTimeout(() => {
  21553. // _this.vedioTime = [];
  21554. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21555. // _this.vedioTime[i] = document.getElementsByClassName(
  21556. // "vjs-duration-display"
  21557. // )[i].textContent;
  21558. // }
  21559. }, 1000);
  21560. },
  21561. };
  21562. </script>
  21563. <style scoped>
  21564. @media screen and (max-width: 1280px) {
  21565. /* .courseIndex > div:first-child(2) {
  21566. width: 15% !important;
  21567. } */
  21568. /* .navText {
  21569. width: 120px !important;
  21570. } */
  21571. .evaCss {
  21572. flex-direction: column !important;
  21573. align-items: center !important;
  21574. }
  21575. .elist_input {
  21576. width: 90% !important;
  21577. }
  21578. .dialog_diy1 >>> .el-dialog {
  21579. width: 100% !important;
  21580. }
  21581. .rightWidthCss {
  21582. width: 100% !important;
  21583. }
  21584. .dialog_diy3 >>> .el-dialog {
  21585. width: 100% !important;
  21586. }
  21587. .addToolCss {
  21588. right: 0 !important;
  21589. width: 100% !important;
  21590. min-width: unset !important;
  21591. }
  21592. }
  21593. .evaCssMax {
  21594. flex-direction: column !important;
  21595. align-items: center !important;
  21596. }
  21597. .dialog_diy >>> .el-dialog {
  21598. margin-top: 10vh !important;
  21599. }
  21600. .body_student {
  21601. width: 77%;
  21602. height: 100%;
  21603. position: absolute;
  21604. left: 22%;
  21605. top: 0;
  21606. }
  21607. .student_head {
  21608. width: 100%;
  21609. margin: 20px auto 0;
  21610. padding-bottom: 20px;
  21611. display: flex;
  21612. flex-direction: column;
  21613. flex-wrap: nowrap;
  21614. align-items: flex-start;
  21615. justify-content: flex-start;
  21616. }
  21617. .pb_left {
  21618. width: 20%;
  21619. margin-right: 10px;
  21620. background: rgb(255, 255, 255);
  21621. position: fixed;
  21622. height: calc(100% - 40px);
  21623. border-radius: 20px;
  21624. padding-bottom: 15px;
  21625. box-sizing: border-box;
  21626. }
  21627. .wheel > img,
  21628. .project > img,
  21629. .star > img,
  21630. .evaluate > img,
  21631. .up_photo > img,
  21632. .chapter_add > img,
  21633. .deleteWord > img,
  21634. .question > img,
  21635. .homework > img {
  21636. width: 100%;
  21637. height: 100%;
  21638. }
  21639. .upCover > img {
  21640. width: 131px;
  21641. height: 69px;
  21642. object-fit: cover;
  21643. }
  21644. .upCover {
  21645. width: calc(100% / 3.5);
  21646. position: relative;
  21647. margin: 0 15px 10px 0;
  21648. display: flex;
  21649. flex-direction: column;
  21650. flex-wrap: nowrap;
  21651. justify-content: center;
  21652. align-content: center;
  21653. align-items: center;
  21654. height: fit-content;
  21655. }
  21656. .upCover2 {
  21657. width: 100%;
  21658. position: relative;
  21659. margin: 0 15px 10px 0;
  21660. display: flex;
  21661. flex-direction: column;
  21662. flex-wrap: nowrap;
  21663. justify-content: center;
  21664. align-content: center;
  21665. align-items: center;
  21666. }
  21667. .upCover2 > img {
  21668. width: 100%;
  21669. height: 90px;
  21670. object-fit: contain;
  21671. }
  21672. .chapter_add {
  21673. width: 120px;
  21674. position: relative;
  21675. text-align: center;
  21676. }
  21677. .isAddThings {
  21678. margin-top: 20px;
  21679. position: relative;
  21680. text-align: center;
  21681. background: #f7f8fa;
  21682. height: 90px;
  21683. width: 90px;
  21684. display: flex;
  21685. flex-direction: column;
  21686. justify-content: center;
  21687. }
  21688. .deleteWord {
  21689. width: 22px;
  21690. height: 22px;
  21691. position: absolute;
  21692. right: -5px;
  21693. top: -5px;
  21694. cursor: pointer;
  21695. }
  21696. .box_course {
  21697. /* width: 60%; */
  21698. width: calc(100% - 300px);
  21699. }
  21700. .wheel {
  21701. width: 100%;
  21702. /* height: 100%; */
  21703. height: 650px;
  21704. }
  21705. .right_box {
  21706. display: flex;
  21707. flex-direction: column;
  21708. margin-left: 30px;
  21709. justify-content: space-around;
  21710. }
  21711. .right_box_title {
  21712. font-size: 23px;
  21713. }
  21714. .people {
  21715. display: flex;
  21716. }
  21717. .student_body {
  21718. width: 100%;
  21719. margin: 0 auto;
  21720. margin-top: 10px;
  21721. padding: 0 0 20px;
  21722. }
  21723. .study_top {
  21724. margin-top: 100px;
  21725. width: 100%;
  21726. height: auto;
  21727. padding-bottom: 20px;
  21728. margin-left: 2px;
  21729. min-height: 90%;
  21730. }
  21731. .study_top .checkbox {
  21732. display: flex;
  21733. align-items: center;
  21734. padding: 15px 0 15px 30px;
  21735. flex: 0 0 auto;
  21736. font-weight: bold;
  21737. border-bottom: 1px solid #eee;
  21738. }
  21739. .study_top .check {
  21740. padding-bottom: 5px;
  21741. text-align: center;
  21742. cursor: pointer;
  21743. height: 30px;
  21744. box-sizing: border-box;
  21745. display: flex;
  21746. }
  21747. .study_top .checked {
  21748. border-bottom: 4px solid #3fc6a0;
  21749. padding-bottom: 5px;
  21750. color: #3fc6a0;
  21751. display: flex;
  21752. height: 35px;
  21753. }
  21754. .study_top .checked > div,
  21755. .study_top .check > div {
  21756. margin-right: 5px;
  21757. }
  21758. .videoTop {
  21759. display: flex;
  21760. flex-direction: row;
  21761. justify-content: space-between;
  21762. background: #fff;
  21763. align-items: center;
  21764. width: 95%;
  21765. padding: 20px;
  21766. }
  21767. .filebox {
  21768. display: flex;
  21769. flex-wrap: wrap;
  21770. flex-direction: column;
  21771. padding: 0 0 5px;
  21772. position: relative;
  21773. }
  21774. .filebox:before {
  21775. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21776. position: absolute;
  21777. top: 20px;
  21778. left: 13px;
  21779. border-left: 2px dotted #cad1dc;
  21780. height: calc(100% - 15px);
  21781. }
  21782. .toolHeng2 > div:last-child::before {
  21783. height: calc(100% - 43px);
  21784. }
  21785. .filebox .tooldetail {
  21786. width: calc(100%);
  21787. margin: 0px 12px;
  21788. padding: 12px;
  21789. line-height: 30px;
  21790. word-break: break-word;
  21791. background: #ffffff;
  21792. border-radius: 8px 8px 8px 8px;
  21793. opacity: 1;
  21794. border: 1px solid #cad1dc;
  21795. overflow:hidden;
  21796. box-sizing:border-box;
  21797. }
  21798. .file {
  21799. display: flex;
  21800. flex-direction: column;
  21801. align-items: center;
  21802. justify-content: center;
  21803. cursor: pointer;
  21804. width: 200px;
  21805. }
  21806. .file div {
  21807. margin-top: 10px;
  21808. width: 150px;
  21809. text-align: center;
  21810. overflow: hidden;
  21811. white-space: nowrap;
  21812. text-overflow: ellipsis;
  21813. }
  21814. .media {
  21815. display: flex;
  21816. flex-direction: column;
  21817. align-items: center;
  21818. justify-content: center;
  21819. margin: 0 20px 20px 0;
  21820. cursor: pointer;
  21821. margin: 12px 0 5px 15px;
  21822. overflow: hidden;
  21823. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21824. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21825. box-sizing: border-box;
  21826. }
  21827. .media img {
  21828. height: 90px;
  21829. width: 160px;
  21830. object-fit: cover;
  21831. }
  21832. .media .title {
  21833. padding: 5px;
  21834. text-align: left;
  21835. width: 100%;
  21836. box-sizing: border-box;
  21837. }
  21838. .media .btn {
  21839. width: 100%;
  21840. height: 35px;
  21841. line-height: 35px;
  21842. color: #fff;
  21843. background: #606060;
  21844. text-align: center;
  21845. overflow: hidden;
  21846. white-space: nowrap;
  21847. text-overflow: ellipsis;
  21848. }
  21849. .detail_content_top {
  21850. width: 100%;
  21851. padding: 25px 0 25px 0;
  21852. }
  21853. .detail_title {
  21854. text-align: center;
  21855. font-size: 24px;
  21856. }
  21857. .detail_time {
  21858. font-size: 13px;
  21859. padding: 15px 0 0 40px;
  21860. }
  21861. .detail_content {
  21862. line-height: 2pc;
  21863. width: 90%;
  21864. margin: 0 auto;
  21865. padding-top: 30px;
  21866. text-indent: 30px;
  21867. overflow: auto;
  21868. height: 200px;
  21869. }
  21870. .score_box >>> .el-rate {
  21871. margin-left: 10px;
  21872. }
  21873. .dialog_change >>> .el-dialog {
  21874. border-radius: 5px;
  21875. }
  21876. .dialog_change >>> .el-dialog__header {
  21877. background: #f2f2f2;
  21878. text-align: center;
  21879. }
  21880. .dialog_change >>> .el-dialog__title {
  21881. line-height: 5px;
  21882. }
  21883. .dialog_change >>> .el-dialog__body {
  21884. background: #fff;
  21885. padding: 10px 20px;
  21886. }
  21887. .score_box {
  21888. display: flex;
  21889. align-items: center;
  21890. margin-bottom: 18px;
  21891. margin-top: 20px;
  21892. }
  21893. .up_photo {
  21894. width: 120px;
  21895. cursor: pointer;
  21896. margin-top: 10px;
  21897. }
  21898. .up_photo2 {
  21899. width: 180px;
  21900. box-sizing: border-box;
  21901. min-width: 180px;
  21902. height: 180px;
  21903. max-height: 180px;
  21904. min-height: 180px;
  21905. cursor: pointer;
  21906. display: flex;
  21907. flex-direction: column;
  21908. align-items: center;
  21909. justify-content: center;
  21910. background: rgb(242, 246, 255);
  21911. /* padding: 25px; */
  21912. margin-bottom: 10px;
  21913. }
  21914. .up_photo2 img {
  21915. width: 50%;
  21916. height: auto;
  21917. }
  21918. .up_photo2 span {
  21919. color: #898989;
  21920. }
  21921. .plworkBox {
  21922. display: flex;
  21923. align-items: center;
  21924. margin-top: 10px;
  21925. flex-wrap: wrap;
  21926. }
  21927. .upload_send {
  21928. margin: 30px auto 30px;
  21929. width: 60%;
  21930. background: #3681fc;
  21931. text-align: center;
  21932. height: 35px;
  21933. line-height: 35px;
  21934. color: #fff;
  21935. border-radius: 5px;
  21936. cursor: pointer;
  21937. }
  21938. .marginT {
  21939. margin-top: 20px;
  21940. }
  21941. .cd_content_steps {
  21942. display: flex;
  21943. width: 90%;
  21944. justify-content: space-around;
  21945. border-top: 1px solid #eeeeee;
  21946. }
  21947. .cd_steps_box {
  21948. display: flex;
  21949. justify-content: center;
  21950. align-items: center;
  21951. flex-direction: column;
  21952. cursor: pointer;
  21953. }
  21954. .first {
  21955. display: flex;
  21956. align-items: center;
  21957. margin: 15px 0 20px 0;
  21958. font-size: 20px;
  21959. }
  21960. .first > div:nth-child(2) {
  21961. font-size: 16px !important;
  21962. padding-left: 10px;
  21963. line-height: 26px;
  21964. box-sizing: border-box;
  21965. }
  21966. .blue_box_one {
  21967. text-align: center;
  21968. color: #fff;
  21969. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21970. border-radius: 7px;
  21971. margin: 10px;
  21972. cursor: pointer;
  21973. width: 95%;
  21974. height: 45px;
  21975. display: flex;
  21976. flex-direction: row;
  21977. justify-content: flex-start;
  21978. align-items: center;
  21979. }
  21980. .blue_box_one > div:nth-child(1) {
  21981. line-height: 30px;
  21982. margin: 0 5px 0 10px;
  21983. width: 30%;
  21984. min-width: 70px;
  21985. border-radius: 4px;
  21986. }
  21987. .blue_box_one > div:nth-child(2) {
  21988. white-space: nowrap;
  21989. text-overflow: ellipsis;
  21990. overflow: hidden;
  21991. word-break: break-all;
  21992. width: 70%;
  21993. text-align: left;
  21994. margin-right: 10px;
  21995. max-width: calc(100% - 85px);
  21996. }
  21997. .blue_box_one > div:nth-child(2):hover {
  21998. overflow: hidden;
  21999. text-overflow: ellipsis;
  22000. white-space: nowrap;
  22001. cursor: pointer;
  22002. }
  22003. .upFile {
  22004. margin: 0 auto;
  22005. width: 120px;
  22006. background: #3681fc;
  22007. color: #fff;
  22008. height: 30px;
  22009. text-align: center;
  22010. line-height: 30px;
  22011. border-radius: 5px;
  22012. font-size: 14px;
  22013. cursor: pointer;
  22014. }
  22015. .courseTitle {
  22016. width: 85%;
  22017. margin: 10px auto 26px auto;
  22018. display: flex;
  22019. flex-direction: row;
  22020. align-items: center;
  22021. justify-content: space-between;
  22022. text-align: center;
  22023. }
  22024. .courseTitle .ctitle {
  22025. font-size: 20px;
  22026. font-weight: bold;
  22027. color: #0e1e33;
  22028. white-space: nowrap;
  22029. overflow: hidden;
  22030. text-overflow: ellipsis;
  22031. }
  22032. .inviteBox {
  22033. font-size: 14px;
  22034. /* margin-top: 5px; */
  22035. color: #00000099;
  22036. text-align: center;
  22037. }
  22038. .courseTitle >>> .el-tooltip {
  22039. width: 100%;
  22040. white-space: nowrap;
  22041. overflow: hidden;
  22042. text-overflow: ellipsis;
  22043. word-break: break-word;
  22044. }
  22045. .ml {
  22046. margin-left: 20px;
  22047. color: #5b7dba;
  22048. border-left: 3px solid #5b7dba;
  22049. padding-left: 5px;
  22050. font-weight: bold;
  22051. }
  22052. .return {
  22053. width: 2rem;
  22054. height: 2rem;
  22055. cursor: pointer;
  22056. }
  22057. .return > img {
  22058. width: 100%;
  22059. height: 100%;
  22060. }
  22061. .returnBtn {
  22062. width: 86px;
  22063. height: 36px;
  22064. background: #3681fc;
  22065. border-radius: 4px;
  22066. color: #fff;
  22067. text-align: center;
  22068. line-height: 36px;
  22069. margin-right: 20px;
  22070. cursor: pointer;
  22071. font-size: 14px;
  22072. font-weight: 400;
  22073. display: flex;
  22074. flex-direction: row;
  22075. flex-wrap: nowrap;
  22076. align-items: center;
  22077. justify-content: center;
  22078. }
  22079. .reBtnIcon,
  22080. .commentIcon,
  22081. .vedioIcon,
  22082. .vedioIcon1 {
  22083. /* width: 36px; */
  22084. height: 36px;
  22085. border-radius: 4px;
  22086. position: relative;
  22087. /* background: #e0eafb; */
  22088. background: #0061ff;
  22089. cursor: pointer;
  22090. margin-right: 12px;
  22091. display: flex;
  22092. align-items: center;
  22093. padding: 0 10px;
  22094. box-sizing: border-box;
  22095. font-size: 14px;
  22096. color: #fff;
  22097. }
  22098. .reBtnIcon::before,
  22099. .commentIcon::before,
  22100. .vedioIcon::before,
  22101. .vedioIcon1::before {
  22102. content: "";
  22103. display: block;
  22104. background-size: 100% 100%;
  22105. background-repeat: no-repeat;
  22106. width: 20px;
  22107. height: 20px;
  22108. margin-right: 5px;
  22109. /* position: absolute; */
  22110. /* top: 8px;
  22111. left: 8px; */
  22112. }
  22113. .vedioIcon1 {
  22114. background: #f63564;
  22115. }
  22116. .reBtnIcon::before {
  22117. background-image: url("../../assets/icon/newIcons/refresh.png");
  22118. }
  22119. .commentIcon::before {
  22120. background-image: url("../../assets/icon/newIcons/comment.png");
  22121. }
  22122. .vedioIcon::before {
  22123. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22124. }
  22125. .vedioIcon1::before {
  22126. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22127. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22128. }
  22129. .tool {
  22130. display: flex;
  22131. flex-direction: column;
  22132. flex-wrap: nowrap;
  22133. width: 13%;
  22134. margin: 0 30px;
  22135. align-items: center;
  22136. position: relative;
  22137. padding: 10px 25px;
  22138. cursor: pointer;
  22139. }
  22140. .whiteBIcon {
  22141. width: 150px;
  22142. }
  22143. .whiteBIcon > img {
  22144. width: 100%;
  22145. height: 100%;
  22146. }
  22147. .mask {
  22148. background-color: rgba(0, 0, 0, 0);
  22149. position: fixed;
  22150. top: 0;
  22151. left: 0;
  22152. width: 100%;
  22153. height: 100%;
  22154. z-index: 20000;
  22155. display: flex;
  22156. align-items: center;
  22157. justify-content: center;
  22158. }
  22159. .progressBox {
  22160. width: 500px;
  22161. height: 180px;
  22162. background: #fff;
  22163. border-radius: 10px;
  22164. box-shadow: 0 0 6px 1px #bfbfbf;
  22165. display: flex;
  22166. align-items: center;
  22167. justify-content: center;
  22168. flex-direction: column;
  22169. position: relative;
  22170. color: #6c6c6c;
  22171. }
  22172. .progressBox >>> .el-progress-bar__outer {
  22173. background-color: #d1dfff !important;
  22174. }
  22175. .progressBox .lbox {
  22176. height: 50px;
  22177. font-size: 19px;
  22178. display: flex;
  22179. align-items: center;
  22180. color: #747474;
  22181. }
  22182. .progressBox .lbox img {
  22183. width: 40px;
  22184. margin-right: 20px;
  22185. }
  22186. .closeCss {
  22187. position: absolute;
  22188. top: 8px;
  22189. right: 8px;
  22190. cursor: pointer;
  22191. width: 20px;
  22192. height: 20px;
  22193. }
  22194. .closeCss > img {
  22195. width: 100%;
  22196. height: 100%;
  22197. }
  22198. .uploadVedio {
  22199. display: flex;
  22200. flex-direction: column;
  22201. flex-wrap: nowrap;
  22202. justify-content: center;
  22203. align-items: center;
  22204. margin: 0 15px 10px 0;
  22205. }
  22206. .uploadVedio > img {
  22207. width: 30px;
  22208. height: 30px;
  22209. }
  22210. .uploadVedio > span {
  22211. white-space: nowrap;
  22212. overflow: hidden;
  22213. text-overflow: ellipsis;
  22214. width: 75px;
  22215. margin-top: 7px;
  22216. }
  22217. .picName {
  22218. white-space: nowrap;
  22219. overflow: hidden;
  22220. text-overflow: ellipsis;
  22221. width: 75px;
  22222. margin-top: 7px;
  22223. }
  22224. .new_top {
  22225. display: flex;
  22226. background: #fff;
  22227. flex-direction: row;
  22228. justify-content: flex-start;
  22229. align-items: center;
  22230. height: 60px;
  22231. position: fixed;
  22232. top: 20px;
  22233. left: 22%;
  22234. width: 77%;
  22235. z-index: 999;
  22236. border-radius: 12px 12px 0 0;
  22237. border-bottom: 1px solid #cad1dc;
  22238. padding: 10px 0;
  22239. }
  22240. .new_topFixed {
  22241. width: 100%;
  22242. height: 40px;
  22243. position: fixed;
  22244. top: 0px;
  22245. display: block;
  22246. background: #f2f2f2;
  22247. z-index: 998;
  22248. }
  22249. .before {
  22250. position: absolute;
  22251. background: #c3dad4;
  22252. width: 6px;
  22253. height: 100%;
  22254. }
  22255. .courseIndex {
  22256. display: flex;
  22257. flex-direction: row;
  22258. align-items: center;
  22259. width: calc(100% - 745px);
  22260. }
  22261. .courseIndex > div:nth-child(1) {
  22262. margin: 0 0 0 10px;
  22263. font-size: 20px;
  22264. min-width: 100px;
  22265. font-weight: bold;
  22266. border-left: 4px solid #3363b9;
  22267. height: 32px;
  22268. text-align: center;
  22269. line-height: 35px;
  22270. }
  22271. .courseIndex > div:nth-child(2) {
  22272. font-size: 20px;
  22273. /* width: 300px; */
  22274. max-width: calc(100% - 105px);
  22275. white-space: nowrap;
  22276. overflow: hidden;
  22277. text-overflow: ellipsis;
  22278. }
  22279. .courseIndex > div:nth-child(3) {
  22280. border-bottom: 1px solid #d7d7d7;
  22281. padding-bottom: 5px;
  22282. background: #3681fc;
  22283. width: 55px;
  22284. min-width: 55px;
  22285. border-radius: 5px;
  22286. color: #fff;
  22287. text-align: center;
  22288. height: 20px;
  22289. line-height: 26px;
  22290. font-size: 14px;
  22291. margin: 0 0 0 10px;
  22292. }
  22293. .course_text {
  22294. padding: 20px 0 0 15px;
  22295. text-indent: 30px;
  22296. width: 80%;
  22297. min-height: 20px;
  22298. }
  22299. .vedioList {
  22300. background: #f2f2f2;
  22301. border: 1px solid #ececec;
  22302. /* width: 38.8%; */
  22303. /* width: 300px; */
  22304. width: 100%;
  22305. height: 445px;
  22306. border-radius: 10px;
  22307. overflow: hidden;
  22308. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22309. }
  22310. .vedioNav {
  22311. margin: 10px 0 0 15px;
  22312. border-bottom: 1px solid #d7d7d7;
  22313. padding-bottom: 5px;
  22314. background: #3681fc;
  22315. width: 55px;
  22316. min-width: 55px;
  22317. border-radius: 5px;
  22318. color: #fff;
  22319. text-align: center;
  22320. height: 20px;
  22321. line-height: 26px;
  22322. font-size: 14px;
  22323. }
  22324. .queTop {
  22325. display: flex;
  22326. padding: 20px 0 20px 30px;
  22327. width: 100%;
  22328. flex-direction: row;
  22329. justify-content: flex-start;
  22330. align-items: center;
  22331. box-sizing: border-box;
  22332. }
  22333. .queTopTitle {
  22334. display: flex;
  22335. flex-direction: row;
  22336. flex-wrap: nowrap;
  22337. align-items: center;
  22338. font-weight: bold;
  22339. font-size: 20px;
  22340. color: rgb(14, 30, 51);
  22341. }
  22342. .queTopTitle::before {
  22343. content: "";
  22344. width: 2px;
  22345. height: 22px;
  22346. background: #3681fc;
  22347. border-radius: 3px;
  22348. display: block;
  22349. margin: 2px 6px 0 0;
  22350. }
  22351. .queTopRight {
  22352. display: flex;
  22353. flex-direction: row;
  22354. flex-wrap: nowrap;
  22355. align-items: center;
  22356. }
  22357. .queTopClose {
  22358. margin-right: 20px;
  22359. cursor: pointer;
  22360. position: relative;
  22361. display: flex;
  22362. }
  22363. .closeImg,
  22364. .openImg {
  22365. width: 25px;
  22366. height: 25px;
  22367. position: absolute;
  22368. left: -20px;
  22369. top: -1px;
  22370. }
  22371. .closeImg > img,
  22372. .openImg > img {
  22373. width: 100%;
  22374. height: 100%;
  22375. }
  22376. .question {
  22377. width: 40px;
  22378. margin-right: 10px;
  22379. margin-top: 7px;
  22380. }
  22381. .queTitle {
  22382. margin-left: 5px;
  22383. font-size: 25px;
  22384. display: flex;
  22385. align-items: center;
  22386. }
  22387. .addEditor {
  22388. width: 100px;
  22389. height: 30px;
  22390. background: #42cda6;
  22391. color: #fff;
  22392. border-radius: 5px;
  22393. text-align: center;
  22394. line-height: 30px;
  22395. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22396. cursor: pointer;
  22397. }
  22398. /* .vedioName {
  22399. cursor: pointer;
  22400. margin: 0px 0px 10px 5px;
  22401. white-space: nowrap;
  22402. overflow: hidden;
  22403. text-overflow: ellipsis;
  22404. width: 100%;
  22405. } */
  22406. .vedioTime {
  22407. width: 35px;
  22408. position: absolute;
  22409. color: #fff;
  22410. bottom: 0px;
  22411. right: 0px;
  22412. text-align: center;
  22413. background: #46411f;
  22414. height: 20px;
  22415. font-size: 14px;
  22416. line-height: 20px;
  22417. }
  22418. .homework {
  22419. width: 200px;
  22420. display: flex;
  22421. flex-direction: column;
  22422. flex-wrap: nowrap;
  22423. align-items: center;
  22424. cursor: pointer;
  22425. }
  22426. .homebox {
  22427. display: flex;
  22428. flex-wrap: wrap;
  22429. flex-direction: row;
  22430. justify-content: flex-start;
  22431. align-items: center;
  22432. padding: 15px 0;
  22433. }
  22434. .isChooseActive {
  22435. color: #3681fc !important;
  22436. font-weight: bold !important;
  22437. }
  22438. .chooseWho {
  22439. display: flex;
  22440. width: 100%;
  22441. flex-direction: row;
  22442. flex-wrap: nowrap;
  22443. justify-content: flex-start;
  22444. padding-bottom: 10px;
  22445. }
  22446. .chooseWho > div {
  22447. cursor: pointer;
  22448. padding-bottom: 10px;
  22449. margin: 0 30px 0 0;
  22450. font-weight: 400;
  22451. color: #0e1e33;
  22452. }
  22453. .addPoint > div > img {
  22454. cursor: pointer;
  22455. width: 85px;
  22456. border-radius: 15px;
  22457. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22458. }
  22459. .addPoint > div {
  22460. display: flex;
  22461. flex-direction: column;
  22462. flex-wrap: nowrap;
  22463. align-items: center;
  22464. }
  22465. .isBorder > div {
  22466. margin: 0 0 10px 0;
  22467. align-items: flex-start !important;
  22468. }
  22469. .noiframeBox {
  22470. display: flex;
  22471. flex-wrap: wrap;
  22472. }
  22473. .iframeBox iframe {
  22474. width: 100%;
  22475. height: 800px;
  22476. border: none;
  22477. margin-bottom: 20px;
  22478. border: 1px solid #ccc;
  22479. }
  22480. .upload_toolBtn {
  22481. background: #3681fc;
  22482. color: #fff;
  22483. width: 110px;
  22484. text-align: center;
  22485. height: 35px;
  22486. line-height: 35px;
  22487. font-size: 14px;
  22488. border-radius: 5px;
  22489. cursor: pointer;
  22490. position: absolute;
  22491. right: 10px;
  22492. bottom: 0;
  22493. }
  22494. .binfo_input,
  22495. .pj {
  22496. font: inherit;
  22497. color: currentColor;
  22498. width: 100%;
  22499. margin: 0;
  22500. padding: 15px 14px;
  22501. display: block;
  22502. min-width: 0;
  22503. outline: none;
  22504. box-sizing: content-box;
  22505. background: none;
  22506. -webkit-tap-highlight-color: transparent;
  22507. border: 1px solid rgba(0, 0, 0, 0.23);
  22508. border-radius: 4px;
  22509. box-sizing: border-box;
  22510. resize: none;
  22511. }
  22512. .binfo_input:focus-visible {
  22513. border: 1px solid rgba(61, 103, 188);
  22514. }
  22515. .dialog_diy >>> .el-dialog__header,
  22516. .dialog_diy1 >>> .el-dialog__header {
  22517. background: #454545 !important;
  22518. padding: 15px 20px;
  22519. }
  22520. .dialog_diy >>> .el-dialog__title,
  22521. .dialog_diy1 >>> .el-dialog__title {
  22522. color: #fff;
  22523. }
  22524. .dialog_diy >>> .el-dialog__headerbtn,
  22525. .dialog_diy1 >>> .el-dialog__headerbtn {
  22526. top: 19px;
  22527. }
  22528. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22529. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22530. color: #fff;
  22531. }
  22532. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22533. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22534. color: #fff;
  22535. }
  22536. .dialog_diy1 >>> .el-dialog__body {
  22537. padding: 0;
  22538. }
  22539. .dialog_diy >>> .el-dialog__body,
  22540. .dialog_diy >>> .el-dialog__footer,
  22541. .dialog_diy1 >>> .el-dialog__footer {
  22542. background: #fafafa;
  22543. }
  22544. .a_addBox {
  22545. padding: 0 0 0 15px;
  22546. }
  22547. .a_add_box {
  22548. padding: 10px;
  22549. background: #fff;
  22550. margin-bottom: 10px;
  22551. border-radius: 5px;
  22552. box-shadow: 0 0 5px 0 #d5d5d5;
  22553. }
  22554. .a_add_head {
  22555. display: flex;
  22556. align-items: flex-start;
  22557. /* justify-content: space-between; */
  22558. flex-direction: column;
  22559. /* flex-direction: row; */
  22560. margin: 10px 0 20px 0;
  22561. font-size: 18px;
  22562. width: 100%;
  22563. }
  22564. .askIndex {
  22565. background: #3681fc;
  22566. border-radius: 50%;
  22567. color: #fff;
  22568. width: 25px;
  22569. height: 25px;
  22570. min-width: 25px;
  22571. min-height: 25px;
  22572. text-align: center;
  22573. line-height: 25px;
  22574. margin-right: 5px;
  22575. }
  22576. .a_add_head .a_add_head_input {
  22577. width: 300px;
  22578. }
  22579. .a_add_head .a_add_head_div {
  22580. display: flex;
  22581. align-items: center;
  22582. justify-content: space-between;
  22583. }
  22584. .a_add_body {
  22585. display: flex;
  22586. align-items: center;
  22587. }
  22588. .a_add_input {
  22589. display: flex;
  22590. align-items: center;
  22591. flex-wrap: wrap;
  22592. width: 100%;
  22593. }
  22594. .a_add_input >>> .el-radio-group,
  22595. .a_add_input >>> .el-checkbox-group {
  22596. width: 100%;
  22597. }
  22598. .a_add_input >>> .el-radio,
  22599. .a_add_input >>> .el-checkbox {
  22600. display: flex;
  22601. flex-direction: row;
  22602. flex-wrap: nowrap;
  22603. align-items: center;
  22604. padding: 15px 0;
  22605. }
  22606. .a_add_input >>> .el-radio:not(:last-child),
  22607. .a_add_input >>> .el-checkbox:not(:last-child) {
  22608. width: 100%;
  22609. border-bottom: 1px solid #efefef;
  22610. }
  22611. .redioStyle >>> .el-radio__label {
  22612. font-size: 18px;
  22613. }
  22614. .redioStyle >>> .el-radio__label > span,
  22615. .redioStyle >>> .el-checkbox__label > span {
  22616. word-break: break-all;
  22617. white-space: normal;
  22618. }
  22619. .redioStyle >>> .el-checkbox__label {
  22620. font-size: 18px;
  22621. }
  22622. .toolHeng2 {
  22623. width: 100%;
  22624. padding-left: 15px;
  22625. box-sizing: border-box;
  22626. }
  22627. .workNav {
  22628. font-size: 20px;
  22629. font-weight: bold;
  22630. color: #0e1e33;
  22631. display: flex;
  22632. flex-direction: row;
  22633. flex-wrap: nowrap;
  22634. align-items: center;
  22635. padding: 15px 0 15px 0;
  22636. }
  22637. .workNav::before {
  22638. content: "";
  22639. width: 2px;
  22640. height: 22px;
  22641. background: #3681fc;
  22642. border-radius: 3px;
  22643. display: block;
  22644. margin: 2px 6px 0 0;
  22645. }
  22646. .toolHeng {
  22647. display: flex;
  22648. flex-direction: row;
  22649. flex-wrap: wrap;
  22650. justify-content: flex-start;
  22651. align-items: center;
  22652. width: 100%;
  22653. }
  22654. .toolHeng > div {
  22655. padding-left: 20px;
  22656. }
  22657. .isWidth {
  22658. width: 20%;
  22659. }
  22660. .textTitle {
  22661. display: flex;
  22662. flex-direction: row;
  22663. flex-wrap: nowrap;
  22664. align-items: center;
  22665. width: 95%;
  22666. }
  22667. .textTitle >>> .el-form-item__label {
  22668. font-size: 22px;
  22669. color: #918f8f;
  22670. width: 100px;
  22671. }
  22672. .textTitle >>> .el-form-item__content {
  22673. width: calc(100% - 100px);
  22674. }
  22675. .textCss >>> .el-dialog {
  22676. width: 800px !important;
  22677. height: 400px;
  22678. background: #fafafa;
  22679. }
  22680. .textCss >>> .el-dialog__body {
  22681. margin: 55px 8% 0 8%;
  22682. padding: 0 !important;
  22683. }
  22684. .textCss >>> .el-dialog__footer {
  22685. padding-top: 38px;
  22686. }
  22687. .toolsCss >>> .el-dialog__body {
  22688. padding: 20px;
  22689. }
  22690. .lineCss >>> .el-dialog__body {
  22691. display: flex;
  22692. flex-direction: row;
  22693. align-items: center;
  22694. justify-content: center;
  22695. }
  22696. .newNav {
  22697. display: flex;
  22698. flex-direction: row;
  22699. align-items: baseline;
  22700. justify-content: flex-start;
  22701. }
  22702. .navListItem {
  22703. width: calc(100% - 20px);
  22704. height: 50px;
  22705. margin: 0px auto 10px;
  22706. display: flex;
  22707. flex-direction: row;
  22708. flex-wrap: nowrap;
  22709. align-items: center;
  22710. justify-content: space-between;
  22711. background: #f0f4fa;
  22712. border-radius: 6px 6px 6px 6px;
  22713. }
  22714. .navText {
  22715. cursor: pointer;
  22716. white-space: nowrap;
  22717. overflow: hidden;
  22718. text-overflow: ellipsis;
  22719. width: 220px;
  22720. padding: 0 10px;
  22721. font-weight: 400;
  22722. color: #0e1e33;
  22723. }
  22724. .downIcon {
  22725. width: 20px;
  22726. min-width: 20px;
  22727. height: 20px;
  22728. margin-right: 15px;
  22729. cursor: pointer;
  22730. }
  22731. .downIcon > img {
  22732. width: 100%;
  22733. height: 100%;
  22734. }
  22735. .noVedio {
  22736. display: flex;
  22737. flex-direction: row;
  22738. justify-content: center;
  22739. align-content: center;
  22740. }
  22741. .noNavText {
  22742. cursor: pointer;
  22743. margin: 0px 0px 10px 5px;
  22744. width: 112px;
  22745. }
  22746. .listNoVedio {
  22747. margin: 0 0 0 30px;
  22748. width: 97%;
  22749. }
  22750. .video-player >>> .video-js {
  22751. height: 100%;
  22752. }
  22753. .hangVedioList {
  22754. width: 90% !important;
  22755. height: 150px !important;
  22756. margin: 20px 0 0 30px;
  22757. }
  22758. .hangVedio {
  22759. width: 100%;
  22760. height: 170px !important;
  22761. align-items: flex-start !important;
  22762. }
  22763. .hangHand {
  22764. height: 150px !important;
  22765. }
  22766. .twoChild {
  22767. width: 95%;
  22768. margin: 10px;
  22769. border-radius: 5px;
  22770. background: #f2f2f2;
  22771. display: flex;
  22772. flex-direction: column;
  22773. flex-wrap: nowrap;
  22774. justify-content: flex-start;
  22775. align-items: flex-start;
  22776. transition: all 0.5s;
  22777. overflow: hidden;
  22778. height: 0;
  22779. background: #e7f3ff;
  22780. }
  22781. .twoChild > div:nth-child(1) {
  22782. margin-top: 5px;
  22783. }
  22784. .navChild {
  22785. width: 100%;
  22786. cursor: pointer;
  22787. margin-bottom: 10px;
  22788. position: relative;
  22789. }
  22790. .navChild img {
  22791. position: absolute;
  22792. right: 11px;
  22793. width: 15px;
  22794. top: 50%;
  22795. transform: translateY(-50%);
  22796. }
  22797. .navActive,
  22798. .toolActive {
  22799. height: auto !important;
  22800. overflow: auto !important;
  22801. /* padding-bottom: 16px; */
  22802. }
  22803. .toolActive {
  22804. padding: 0;
  22805. }
  22806. .navTask {
  22807. display: flex;
  22808. flex-direction: row;
  22809. flex-wrap: nowrap;
  22810. align-items: center;
  22811. align-content: flex-start;
  22812. height: 40px;
  22813. justify-content: flex-start;
  22814. padding: 0 10px;
  22815. width: 100%;
  22816. box-sizing: border-box;
  22817. }
  22818. .navTaskname {
  22819. white-space: nowrap;
  22820. text-overflow: ellipsis;
  22821. overflow: hidden;
  22822. word-break: break-all;
  22823. padding-left: 5px;
  22824. }
  22825. .openTaskActive {
  22826. /* background-color: #e0eafb !important;
  22827. color: #0061ff; */
  22828. color:#fff;
  22829. background: rgb(55, 129, 252) !important;
  22830. }
  22831. .iframeName {
  22832. margin: 5px 0;
  22833. border-left: 4px solid #41c4a4;
  22834. padding-left: 4px;
  22835. }
  22836. .toolTitle {
  22837. margin: 0px 0px 20px;
  22838. font-size: 20px;
  22839. font-weight: 500;
  22840. border-left: 4px solid #41c4a4;
  22841. padding-left: 4px;
  22842. }
  22843. .cru_selectBox {
  22844. overflow: auto;
  22845. width: 95%;
  22846. margin: 17px auto 0;
  22847. height: calc(100% - 40px - 21px - 20px - 17px);
  22848. background: #fff;
  22849. border-radius: 8px;
  22850. }
  22851. .cru_selectBox::-webkit-scrollbar,
  22852. .study_top::-webkit-scrollbar,
  22853. .textContent::-webkit-scrollbar {
  22854. /*滚动条整体样式*/
  22855. width: 6px;
  22856. /*高宽分别对应横竖滚动条的尺寸*/
  22857. height: 6px;
  22858. }
  22859. /*定义滚动条轨道 内阴影+圆角*/
  22860. .cru_selectBox::-webkit-scrollbar-track,
  22861. .study_top::-webkit-scrollbar-track,
  22862. .textContent::-webkit-scrollbar {
  22863. border-radius: 10px;
  22864. background-color: #b8bdc9;
  22865. }
  22866. /*定义滑块 内阴影+圆角*/
  22867. .cru_selectBox::-webkit-scrollbar-thumb,
  22868. .study_top::-webkit-scrollbar-thumb,
  22869. .textContent::-webkit-scrollbar-thumb {
  22870. border-radius: 10px;
  22871. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22872. background-color: #2c5ab3;
  22873. }
  22874. .vedioBox {
  22875. border-radius: 0 0 20px 20px;
  22876. background: #fff;
  22877. overflow: auto;
  22878. }
  22879. .taskBox {
  22880. width: 98%;
  22881. background: #f0f4fa;
  22882. margin: 10px auto;
  22883. padding: 0 10px;
  22884. border-radius: 4px;
  22885. box-sizing: border-box;
  22886. }
  22887. .vedioTaskBox {
  22888. width: 100%;
  22889. display: flex;
  22890. flex-direction: row;
  22891. flex-wrap: nowrap;
  22892. align-items: flex-start;
  22893. position: relative;
  22894. }
  22895. .toolBox {
  22896. margin: 15px 0 0 25px;
  22897. display: flex;
  22898. position: relative;
  22899. padding: 18px 20px;
  22900. border-top-left-radius: 5px;
  22901. border-top-right-radius: 5px;
  22902. width: 90%;
  22903. }
  22904. .btnAll {
  22905. position: absolute;
  22906. right: 0;
  22907. display: flex;
  22908. flex-direction: row;
  22909. flex-wrap: nowrap;
  22910. align-items: center;
  22911. }
  22912. .btnLeft,
  22913. .btnRight {
  22914. display: flex;
  22915. flex-direction: row;
  22916. flex-wrap: nowrap;
  22917. align-items: center;
  22918. padding: 5px 0;
  22919. }
  22920. .btnLeft {
  22921. border-right: 1px solid #cad1dc;
  22922. }
  22923. .btnLeft > .custom-tooltip {
  22924. background: #3681fc;
  22925. color: #fff;
  22926. }
  22927. .last:hover {
  22928. background: #3383fa !important;
  22929. color: #fff;
  22930. border: 1px solid #3383fa !important;
  22931. }
  22932. .last,
  22933. .returnBtn1 {
  22934. width: 90px;
  22935. height: 36px;
  22936. background: #ffffff;
  22937. border-radius: 4px;
  22938. border: 1px solid #0061ff;
  22939. color: #0061ff;
  22940. cursor: pointer;
  22941. display: flex;
  22942. flex-direction: row;
  22943. flex-wrap: nowrap;
  22944. align-items: center;
  22945. justify-content: center;
  22946. margin-left: 12px;
  22947. }
  22948. .returnBtn1 {
  22949. background: #f0f4fa;
  22950. border-radius: 4px;
  22951. border: 1px solid #cad1dc;
  22952. margin: 0 12px;
  22953. }
  22954. .lastImg {
  22955. min-width: 15px;
  22956. width: 15px;
  22957. height: 15px;
  22958. display: flex;
  22959. }
  22960. .lastText {
  22961. padding: 0 5px 0 5px;
  22962. box-sizing: border-box;
  22963. font-size: 14px;
  22964. }
  22965. .lastImg > img {
  22966. width: 100%;
  22967. height: 100%;
  22968. }
  22969. /* .vedioTimeBox {
  22970. display: flex;
  22971. flex-direction: row;
  22972. align-items: center;
  22973. flex-wrap: nowrap;
  22974. position: relative;
  22975. } */
  22976. .navBox {
  22977. background: #fff;
  22978. height: calc(100% - 40px);
  22979. overflow-y: auto;
  22980. overflow-x: hidden;
  22981. }
  22982. .worksBox {
  22983. margin: 0 0 10px 25px;
  22984. border-bottom: 1px solid #eeeeee;
  22985. padding: 18px 20px;
  22986. border-radius: 4px;
  22987. width: 90%;
  22988. }
  22989. .worksBTitle {
  22990. font-size: 20px;
  22991. padding-bottom: 15px;
  22992. border-bottom: 1px solid #eeeeee;
  22993. display: flex;
  22994. align-items: center;
  22995. }
  22996. .greenBox {
  22997. width: 5px;
  22998. height: 30px;
  22999. background: #63b6fa;
  23000. margin-right: 5px;
  23001. }
  23002. .worksDetailBox {
  23003. display: flex;
  23004. width: 100%;
  23005. flex-direction: row;
  23006. flex-wrap: wrap;
  23007. align-items: flex-end;
  23008. justify-content: flex-start;
  23009. padding: 15px 5px;
  23010. box-sizing: border-box;
  23011. }
  23012. .works {
  23013. display: flex;
  23014. flex-direction: column;
  23015. flex-wrap: nowrap;
  23016. align-items: flex-start;
  23017. justify-content: flex-start;
  23018. align-content: center;
  23019. max-width: 240px;
  23020. width: calc(100% / 3 - 10px);
  23021. height: auto;
  23022. margin-right: 10px;
  23023. margin-bottom: 10px;
  23024. overflow: hidden;
  23025. height: 140px;
  23026. box-shadow: 0 0 6px 1px #dfdada;
  23027. border-radius: 15px;
  23028. }
  23029. .workImg {
  23030. width: 100%;
  23031. /* height: calc(100% - 40px); */
  23032. height: 105px;
  23033. position: relative;
  23034. }
  23035. .workImg > img {
  23036. width: 100%;
  23037. height: 100%;
  23038. object-fit: contain;
  23039. cursor: pointer;
  23040. }
  23041. .worksName {
  23042. height: 40px;
  23043. line-height: 40px;
  23044. display: flex;
  23045. width: 100%;
  23046. flex-direction: row;
  23047. flex-wrap: nowrap;
  23048. justify-content: space-between;
  23049. align-items: center;
  23050. margin: 0 0 0 10px;
  23051. }
  23052. .worksName > div:nth-child(1) {
  23053. width: 110px;
  23054. white-space: nowrap;
  23055. overflow: hidden;
  23056. text-overflow: ellipsis;
  23057. }
  23058. .worksName > div:nth-child(2) {
  23059. color: #b7b4b5;
  23060. }
  23061. .noWorksS {
  23062. padding: 15px 0;
  23063. display: flex;
  23064. flex-direction: row;
  23065. flex-wrap: wrap;
  23066. align-items: center;
  23067. justify-content: flex-start;
  23068. }
  23069. .noWorksName,
  23070. .isWorksName,
  23071. .isWorksName2 {
  23072. background: #ddebf8;
  23073. color: #000;
  23074. width: 90px;
  23075. height: 25px;
  23076. text-align: center;
  23077. line-height: 25px;
  23078. border-radius: 4px;
  23079. margin: 10px 15px 10px 0;
  23080. white-space: nowrap;
  23081. overflow: hidden;
  23082. padding: 5px;
  23083. text-overflow: ellipsis;
  23084. cursor: pointer;
  23085. border: 1px solid #ddebf8;
  23086. }
  23087. .noWorksName {
  23088. background: #fff;
  23089. color: #0061ff;
  23090. border: 1px solid #0061ff;
  23091. }
  23092. .noWorksName > span{
  23093. max-width: 100%;
  23094. display: block;
  23095. overflow: hidden;
  23096. text-overflow: ellipsis;
  23097. white-space: nowrap;
  23098. }
  23099. .isWorksName2 {
  23100. width: 100px;
  23101. height: 40px;
  23102. line-height: 40px;
  23103. position: relative;
  23104. background: #dae6f9;
  23105. }
  23106. .isWorksName {
  23107. background: #e7ebf1 !important;
  23108. width: 100px;
  23109. height: 40px;
  23110. line-height: 40px;
  23111. position: relative;
  23112. color: #acb4bf;
  23113. border: 1px solid #cad1dc !important;
  23114. }
  23115. .isSelectName,
  23116. .noWorksName:hover {
  23117. background: #3383fa !important;
  23118. color: #fff !important;
  23119. border: 1px solid #3383fa !important;
  23120. }
  23121. .title {
  23122. background: #1e5cc9;
  23123. /* width: 98%; */
  23124. height: 45px;
  23125. color: #fff;
  23126. line-height: 45px;
  23127. padding-left: 20px;
  23128. box-sizing: border-box;
  23129. }
  23130. .textBox {
  23131. font-size: 20px;
  23132. width: 90%;
  23133. display: flex;
  23134. flex-direction: column;
  23135. align-items: center;
  23136. margin: 20px auto 0;
  23137. max-height: calc(100% - 75px);
  23138. overflow: auto;
  23139. }
  23140. .textContent {
  23141. font-size: 18px;
  23142. width: 95%;
  23143. max-width: 95%;
  23144. }
  23145. .answerBg {
  23146. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23147. background-size: 100% 100%;
  23148. width: 100%;
  23149. height: 100%;
  23150. color: #fff;
  23151. text-align: center;
  23152. display: flex;
  23153. flex-direction: column;
  23154. flex-wrap: nowrap;
  23155. align-items: center;
  23156. position: relative;
  23157. justify-content: center;
  23158. }
  23159. /* .answerBg > div:nth-child(1) {
  23160. font-size: 22px;
  23161. padding: 25px 0 10px;
  23162. } */
  23163. .answerContent {
  23164. width: 215px;
  23165. max-height: 60px;
  23166. word-break: break-all;
  23167. text-align: center;
  23168. /* white-space: nowrap; */
  23169. overflow: hidden;
  23170. text-overflow: ellipsis;
  23171. /* padding: 23px 0 0; */
  23172. -webkit-line-clamp: 3;
  23173. -webkit-box-orient: vertical;
  23174. display: -webkit-box;
  23175. font-size: 15px;
  23176. cursor: pointer;
  23177. }
  23178. .elist_input_box {
  23179. display: flex;
  23180. align-items: flex-start;
  23181. flex-wrap: nowrap;
  23182. padding: 10px 0 15px 30px;
  23183. flex-direction: column;
  23184. }
  23185. .elist_input {
  23186. /* width: 40%; */
  23187. width: 45%;
  23188. margin: 20px;
  23189. }
  23190. .elist_input .elist_input_box input {
  23191. font: inherit;
  23192. color: currentColor;
  23193. width: 200px;
  23194. padding: 8px 14px;
  23195. display: block;
  23196. min-width: 0;
  23197. outline: none;
  23198. border: 1px solid rgba(0, 0, 0, 0.23);
  23199. border-radius: 4px;
  23200. box-sizing: border-box;
  23201. background: #fff;
  23202. margin: 0 20px 0 0;
  23203. }
  23204. .elist_input .elist_input_box span {
  23205. height: 36px;
  23206. line-height: 36px;
  23207. color: rgb(82, 82, 82);
  23208. }
  23209. .elist_input .elist_input_box .remove {
  23210. height: 20px;
  23211. width: 20px;
  23212. background-size: 100% 100%;
  23213. background-position: unset;
  23214. margin-left: 5px;
  23215. }
  23216. .elist_input_box >>> .el-rate {
  23217. display: flex;
  23218. height: 36px;
  23219. align-items: center;
  23220. }
  23221. .elist_input_box .elist_inptu_text {
  23222. min-height: 50px;
  23223. /* width: 500px;
  23224. max-height: 150px; */
  23225. width: 100%;
  23226. line-height: 50px;
  23227. color: rgb(82, 82, 82);
  23228. overflow: auto;
  23229. text-indent: 5px;
  23230. background: #f7f6f9;
  23231. border-radius: 10px;
  23232. }
  23233. .elist_input_box .elist_inptu_text input {
  23234. width: 500px;
  23235. }
  23236. .elist_input_box >>> .el-rate__icon {
  23237. font-size: 24px;
  23238. }
  23239. .isClick {
  23240. background: #4d9def;
  23241. }
  23242. .bzBox {
  23243. display: flex;
  23244. flex-direction: row;
  23245. align-items: center;
  23246. }
  23247. .bzBox .yCss {
  23248. width: 7px;
  23249. height: 7px;
  23250. background: #fff;
  23251. margin: 0 16px 0 6px;
  23252. border-radius: 50%;
  23253. border: 5px solid #3681fc;
  23254. z-index: 99;
  23255. }
  23256. .bzBox > div:nth-child(2) {
  23257. font-size: 18px;
  23258. font-weight: bold;
  23259. color: #0e1e33;
  23260. }
  23261. .navTitile {
  23262. padding: 0 0px 0 15px;
  23263. font-size: 16px;
  23264. font-weight: bold;
  23265. color: #0e1e33;
  23266. height: 40px;
  23267. line-height: 40px;
  23268. }
  23269. .isTypeOne {
  23270. width: 240px;
  23271. height: 170px;
  23272. /* border: 1px solid #f8f8f8; */
  23273. border-radius: 10px;
  23274. box-shadow: 0 0 6px 1px #dfdada;
  23275. }
  23276. .e_add_top {
  23277. display: flex;
  23278. justify-content: space-between;
  23279. padding: 10px 20px;
  23280. border-radius: 3px;
  23281. background: #fff;
  23282. }
  23283. .e_add_title2 {
  23284. display: flex;
  23285. align-items: center;
  23286. }
  23287. .e_add_title2 span {
  23288. width: 40px;
  23289. }
  23290. .e_add_title {
  23291. display: flex;
  23292. align-items: center;
  23293. color: #b8b8b8;
  23294. font-size: 18px;
  23295. position: relative;
  23296. height: 40px;
  23297. }
  23298. .e_add_title span {
  23299. margin-right: 10px;
  23300. }
  23301. .e_add_title .el_input {
  23302. width: 300px;
  23303. }
  23304. .e_add_title >>> .el-input__inner {
  23305. width: 400px;
  23306. }
  23307. /* .e_add_btn {
  23308. } */
  23309. .e_add_content {
  23310. display: flex;
  23311. width: 100%;
  23312. max-width: 650px;
  23313. height: 550px;
  23314. }
  23315. .e_add_list {
  23316. background: #fff;
  23317. height: 500px;
  23318. width: 210px;
  23319. position: relative;
  23320. margin: 15px 5px 0 0;
  23321. flex-shrink: 0;
  23322. display: flex;
  23323. flex-direction: column;
  23324. }
  23325. .e_add_list_title {
  23326. font-size: 20px;
  23327. width: 100%;
  23328. box-sizing: border-box;
  23329. padding: 15px 40px;
  23330. text-align: center;
  23331. border-bottom: 1px solid #eaeaea;
  23332. position: relative;
  23333. display: flex;
  23334. align-items: center;
  23335. justify-content: center;
  23336. height: 57px;
  23337. background: #f6f6f6;
  23338. }
  23339. .e_add_list_title span {
  23340. overflow: hidden;
  23341. white-space: nowrap;
  23342. text-overflow: ellipsis;
  23343. }
  23344. .e_add_list_title img {
  23345. position: absolute;
  23346. right: 15px;
  23347. width: 25px;
  23348. cursor: pointer;
  23349. top: 50%;
  23350. transform: translateY(-50%);
  23351. }
  23352. .e_add_list_body {
  23353. height: calc(100% - 187px);
  23354. overflow: auto;
  23355. }
  23356. .e_add_list_child {
  23357. width: 100%;
  23358. display: flex;
  23359. align-items: center;
  23360. justify-content: center;
  23361. position: relative;
  23362. box-sizing: border-box;
  23363. padding: 15px 40px;
  23364. text-align: center;
  23365. }
  23366. .e_add_list_child span {
  23367. overflow: hidden;
  23368. white-space: nowrap;
  23369. text-overflow: ellipsis;
  23370. cursor: pointer;
  23371. }
  23372. .e_add_list_child img {
  23373. position: absolute;
  23374. right: 10px;
  23375. width: 21px;
  23376. cursor: pointer;
  23377. top: 50%;
  23378. transform: translateY(-50%);
  23379. }
  23380. .e_add_list_child + .e_add_list_child {
  23381. border-top: 1px solid #eaeaea;
  23382. }
  23383. .e_add_list_child .active {
  23384. color: #409eff;
  23385. }
  23386. .e_add_list_btn {
  23387. position: absolute;
  23388. bottom: 0;
  23389. height: 50px;
  23390. background: rgb(120, 120, 254);
  23391. width: 100%;
  23392. color: #fff;
  23393. font-size: 16px;
  23394. text-align: center;
  23395. line-height: 50px;
  23396. cursor: pointer;
  23397. }
  23398. .e_add_list_detail {
  23399. position: absolute;
  23400. bottom: 0;
  23401. height: 130px;
  23402. background: rgb(120, 120, 254);
  23403. width: 100%;
  23404. color: #fff;
  23405. font-size: 16px;
  23406. display: flex;
  23407. align-items: center;
  23408. justify-content: center;
  23409. }
  23410. .e_add_list_detail textarea {
  23411. height: 90%;
  23412. width: 95%;
  23413. border: none;
  23414. resize: none;
  23415. outline: none;
  23416. padding: 5px;
  23417. box-sizing: border-box;
  23418. }
  23419. .e_add_list_pbox {
  23420. width: 100%;
  23421. max-width: 650px;
  23422. /* height: 600px; */
  23423. }
  23424. .e_add_list_pbox_title {
  23425. height: 50px;
  23426. background: #fff;
  23427. display: flex;
  23428. align-items: center;
  23429. width: 100%;
  23430. box-sizing: border-box;
  23431. padding: 0 20px;
  23432. }
  23433. .type_title {
  23434. font-size: 18px;
  23435. font-weight: 700;
  23436. }
  23437. .type_content {
  23438. font-size: 16px;
  23439. /* margin-left: 30px; */
  23440. }
  23441. .type_content span + span {
  23442. margin-left: 20px;
  23443. }
  23444. .type_content span {
  23445. cursor: pointer;
  23446. padding-bottom: 5px;
  23447. box-sizing: border-box;
  23448. }
  23449. .type_content .active {
  23450. color: #409eff;
  23451. border-bottom: 2px solid #409eff;
  23452. }
  23453. .e_add_list_pbox_content {
  23454. height: calc(100% - 50px);
  23455. display: flex;
  23456. align-items: center;
  23457. width: 100%;
  23458. background: #fff;
  23459. }
  23460. .evaCss {
  23461. display: flex;
  23462. flex-direction: row;
  23463. flex-wrap: nowrap;
  23464. align-items: flex-start;
  23465. padding: 0 0 20px;
  23466. }
  23467. .cru_line {
  23468. position: absolute;
  23469. bottom: 0px;
  23470. transition: all 0.5s;
  23471. left: 0px;
  23472. width: 125px;
  23473. margin-left: -25px;
  23474. }
  23475. .isNoMessage {
  23476. width: 20%;
  23477. margin: 25% auto 0;
  23478. }
  23479. .isNoMessage > img {
  23480. width: 100%;
  23481. height: 100%;
  23482. }
  23483. .fullStyle >>> .el-dialog__body {
  23484. height: 100% !important;
  23485. }
  23486. .fullStyle >>> .el-dialog,
  23487. .fullStyle {
  23488. width: 100% !important;
  23489. max-width: 100% !important;
  23490. height: 100% !important;
  23491. margin: 0 !important;
  23492. }
  23493. .full_diy >>> .el-dialog {
  23494. margin: 0 !important;
  23495. height: 100%;
  23496. padding: 4px;
  23497. }
  23498. .full_diy >>> .el-dialog__body {
  23499. height: calc(100% - 100px);
  23500. }
  23501. .full_diy2 >>> .el-dialog__body {
  23502. height: calc(100% - 50px);
  23503. padding: 0;
  23504. }
  23505. .switchCss {
  23506. /* width: 100%; */
  23507. display: flex;
  23508. flex-direction: row;
  23509. flex-wrap: nowrap;
  23510. align-items: center;
  23511. /* justify-content: center; */
  23512. }
  23513. .isClickNav {
  23514. /* color: #499eef; */
  23515. color: #000;
  23516. }
  23517. .commentImg {
  23518. width: 25px;
  23519. height: 25px;
  23520. cursor: pointer;
  23521. }
  23522. .commentImg > img {
  23523. width: 100%;
  23524. height: 100%;
  23525. }
  23526. .comment {
  23527. background: #f9f9f9;
  23528. border-radius: 0 0 4px 4px;
  23529. display: flex;
  23530. flex-direction: row;
  23531. flex-wrap: nowrap;
  23532. align-items: center;
  23533. justify-content: flex-end;
  23534. height: 35px;
  23535. }
  23536. .commentList {
  23537. display: flex;
  23538. flex-direction: row;
  23539. flex-wrap: nowrap;
  23540. align-items: center;
  23541. justify-content: center;
  23542. align-content: center;
  23543. /* margin-left: 15px; */
  23544. /* margin-left: 8px; */
  23545. }
  23546. .scoreImg {
  23547. width: 17px;
  23548. height: 17px;
  23549. }
  23550. .studentDetail {
  23551. display: flex;
  23552. flex-direction: row;
  23553. flex-wrap: nowrap;
  23554. /* align-items: center; */
  23555. align-items: flex-start;
  23556. }
  23557. .tx {
  23558. width: 50px;
  23559. }
  23560. .tx > img {
  23561. width: 100%;
  23562. height: 100%;
  23563. }
  23564. .nameAndTime {
  23565. display: flex;
  23566. flex-direction: column;
  23567. flex-wrap: nowrap;
  23568. align-items: flex-start;
  23569. margin-left: 10px;
  23570. }
  23571. .worksAnswer {
  23572. color: #4078dd;
  23573. margin: 10px 0;
  23574. font-size: 16px;
  23575. position: relative;
  23576. }
  23577. .worksAnswer > img {
  23578. width: 500px;
  23579. height: 300px;
  23580. object-fit: contain;
  23581. margin: 0 auto;
  23582. display: block;
  23583. }
  23584. .commentTop {
  23585. border-bottom: 1px solid #eaeaea;
  23586. padding-bottom: 10px;
  23587. }
  23588. .commentBox {
  23589. padding-top: 15px;
  23590. }
  23591. .pl {
  23592. font-size: 18px;
  23593. }
  23594. .plPerson {
  23595. width: 100%;
  23596. }
  23597. .plName {
  23598. display: flex;
  23599. flex-direction: row;
  23600. flex-wrap: nowrap;
  23601. align-items: baseline;
  23602. color: #78787a;
  23603. width: 100%;
  23604. }
  23605. .deleteComment {
  23606. cursor: pointer;
  23607. margin-left: auto;
  23608. color: #237ade;
  23609. }
  23610. .plContent {
  23611. margin-top: 5px;
  23612. }
  23613. .evalCss {
  23614. background: #fff;
  23615. font-size: 18px;
  23616. }
  23617. .nav {
  23618. color: #9d9d9d;
  23619. padding: 5px 0 15px 20px;
  23620. }
  23621. .middleBox {
  23622. padding: 5px 0 15px 20px;
  23623. }
  23624. .pfBox {
  23625. padding-bottom: 30px;
  23626. }
  23627. .nameAndrate {
  23628. display: flex;
  23629. flex-direction: row;
  23630. flex-wrap: nowrap;
  23631. align-items: center;
  23632. padding-bottom: 10px;
  23633. height: 30px;
  23634. line-height: 30px;
  23635. }
  23636. .nameAndrate > div {
  23637. margin-left: 10px;
  23638. color: #000;
  23639. height: 30px;
  23640. }
  23641. .nameAndrate >>> .el-rate__icon {
  23642. font-size: 28px !important;
  23643. }
  23644. .pfBox > div:nth-child(2) {
  23645. background: #f7f6f9;
  23646. width: 400px;
  23647. min-height: 45px;
  23648. border-radius: 10px;
  23649. font-size: 16px;
  23650. display: flex;
  23651. flex-wrap: wrap;
  23652. align-items: center;
  23653. padding: 10px 20px;
  23654. box-sizing: border-box;
  23655. color: #000;
  23656. }
  23657. .bz {
  23658. display: flex;
  23659. flex-direction: row;
  23660. flex-wrap: nowrap;
  23661. align-items: flex-start;
  23662. }
  23663. .bz > div {
  23664. padding: 0 10px;
  23665. }
  23666. .select_box2_title {
  23667. background: #fff;
  23668. border-radius: 5px;
  23669. padding: 15px 10px;
  23670. box-sizing: border-box;
  23671. margin-bottom: 10px;
  23672. display: flex;
  23673. flex-direction: row;
  23674. flex-wrap: nowrap;
  23675. align-items: center;
  23676. }
  23677. .select_box2_title > div:nth-child(2) {
  23678. margin-left: 10px;
  23679. color: #c4c4c4;
  23680. }
  23681. .select_box2_box {
  23682. display: flex;
  23683. height: 500px;
  23684. }
  23685. .select_box2_img {
  23686. width: calc(100% - 310px);
  23687. height: 100%;
  23688. overflow: auto;
  23689. background: #fff;
  23690. border-radius: 5px;
  23691. }
  23692. .select_box2_img img {
  23693. width: 100%;
  23694. }
  23695. .select_box2_answer {
  23696. background: #fff;
  23697. margin-left: 10px;
  23698. border-radius: 5px;
  23699. width: 300px;
  23700. overflow: auto;
  23701. height: 90%;
  23702. display: flex;
  23703. flex-direction: column;
  23704. align-items: flex-start;
  23705. padding-top: 10px;
  23706. box-sizing: border-box;
  23707. position: relative;
  23708. }
  23709. .select_answer_title {
  23710. padding: 0 0 15px 20px;
  23711. color: #c4c4c4;
  23712. }
  23713. .select_box2_answer_box {
  23714. margin: 0 0 10px 20px;
  23715. width: 85%;
  23716. display: flex;
  23717. flex-direction: row;
  23718. flex-wrap: nowrap;
  23719. align-items: center;
  23720. }
  23721. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23722. color: #000;
  23723. }
  23724. .upAnswerCss {
  23725. position: absolute;
  23726. bottom: 15px;
  23727. right: 15px;
  23728. }
  23729. .upAnswerCss >>> .el-button {
  23730. width: 95px;
  23731. height: 35px;
  23732. line-height: 35px;
  23733. padding: 0;
  23734. }
  23735. .rightWidthCss {
  23736. width: 60%;
  23737. display: flex;
  23738. flex-direction: row;
  23739. align-items: flex-start;
  23740. }
  23741. .rightAnswer {
  23742. display: flex;
  23743. flex-direction: row;
  23744. flex-wrap: nowrap;
  23745. align-items: center;
  23746. color: red;
  23747. margin-bottom: 31px;
  23748. }
  23749. .rightAnswerCss {
  23750. display: flex;
  23751. flex-direction: column;
  23752. flex-wrap: nowrap;
  23753. padding-top: 60px;
  23754. }
  23755. .blueCss {
  23756. color: #767de1;
  23757. margin-left: 10px;
  23758. }
  23759. .redCss {
  23760. color: red;
  23761. }
  23762. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23763. color: rgb(0 123 255) !important;
  23764. }
  23765. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23766. color: rgb(0 123 255) !important;
  23767. }
  23768. .zuoyeYulan {
  23769. padding-top: 0;
  23770. font-size: 18px;
  23771. display: flex;
  23772. align-items: flex-end;
  23773. }
  23774. .buttonA {
  23775. margin-left: 10px;
  23776. padding: 0;
  23777. }
  23778. .displayBox {
  23779. margin-bottom: 10px;
  23780. display: block;
  23781. border-bottom: 3px solid #eee;
  23782. display: flex;
  23783. align-items: center;
  23784. }
  23785. .easy_comment {
  23786. width: calc(100% - 90px);
  23787. margin-left: 10px;
  23788. display: flex;
  23789. flex-wrap: wrap;
  23790. }
  23791. .easy_comment > div {
  23792. border: 1px solid #4a4a4a;
  23793. color: #666;
  23794. border-radius: 15px;
  23795. padding: 5px 10px;
  23796. font-size: 16px;
  23797. margin-bottom: 10px;
  23798. margin-right: 5px;
  23799. cursor: pointer;
  23800. }
  23801. .easy_comment div:hover {
  23802. border: 1px solid #f7ba2a;
  23803. color: #c69217;
  23804. }
  23805. .xuan_right_box {
  23806. padding: 10px 0;
  23807. background: #f0f4fa;
  23808. margin: 0 15px 0 25px;
  23809. border-bottom-left-radius: 5px;
  23810. border-bottom-right-radius: 5px;
  23811. width: 91.5%;
  23812. }
  23813. .tool_right_box {
  23814. display: flex;
  23815. align-items: center;
  23816. }
  23817. .tool_right_box >>> .katex {
  23818. font-size: 16px;
  23819. }
  23820. .tool_right_box + .tool_right_box {
  23821. margin-top: 10px;
  23822. }
  23823. .right_box_xuan {
  23824. border-radius: 5px;
  23825. padding: 5px;
  23826. margin-left: 10px;
  23827. min-width: 85px;
  23828. background: #fff;
  23829. color: #0061ff;
  23830. border: 1px solid #0061ff;
  23831. font-size: 14px;
  23832. }
  23833. .pButton:hover {
  23834. opacity: 1 !important;
  23835. }
  23836. .pButton {
  23837. position: fixed;
  23838. text-align: center;
  23839. cursor: pointer;
  23840. z-index: 999;
  23841. right: 20px;
  23842. top: 110px;
  23843. width: 50px;
  23844. height: 50px;
  23845. display: flex;
  23846. align-items: center;
  23847. justify-content: center;
  23848. border-radius: 5px;
  23849. }
  23850. .pzClass {
  23851. width: calc(100% - 340px);
  23852. }
  23853. .newDialogCss {
  23854. /* position: fixed;
  23855. right: 5%;
  23856. top: 50%;
  23857. width: 340px;
  23858. transform: translateY(-50%);
  23859. height: 60%;
  23860. box-shadow: 0px 0 8px 0px #555555;
  23861. border-radius: 15px;
  23862. z-index: 999; */
  23863. position: fixed;
  23864. right: 20px;
  23865. top: 101px;
  23866. width: 330px;
  23867. height: calc(100% - 80px);
  23868. z-index: 999;
  23869. background: #fff;
  23870. border-top-right-radius: 0px;
  23871. border-bottom-right-radius: 0px;
  23872. overflow: hidden;
  23873. }
  23874. .newDialogCss>.scoreList{
  23875. width:100%;
  23876. height:100%;
  23877. box-sizing:border-box;
  23878. padding:10px 15px;
  23879. overflow:auto;
  23880. padding-bottom:80px;
  23881. }
  23882. .pzTop {
  23883. color: #fff;
  23884. background: #000;
  23885. display: flex;
  23886. flex-direction: row;
  23887. flex-wrap: nowrap;
  23888. align-items: center;
  23889. justify-content: space-between;
  23890. height: 40px;
  23891. border-radius: 15px 15px 0 0;
  23892. user-select: none;
  23893. }
  23894. .pzTop2 .checkbox {
  23895. display: flex;
  23896. align-items: center;
  23897. padding: 5px 10px;
  23898. flex: 0 0 auto;
  23899. font-weight: bold;
  23900. border-bottom: 1px solid #eee;
  23901. justify-content: space-between;
  23902. }
  23903. .checkbox>.cb-tabList{
  23904. display:flex;
  23905. align-items:center;
  23906. }
  23907. .cb-tabList>div{
  23908. margin-right:20px;
  23909. font-weight:400;
  23910. cursor:pointer;
  23911. }
  23912. .cb-tabList>.cb-tabItem{
  23913. color:#1684FC;
  23914. position:relative;
  23915. }
  23916. .cb-tabItem::after{
  23917. content:"";
  23918. width:100%;
  23919. height:2px;
  23920. background:#1684FC;
  23921. position:absolute;
  23922. bottom:-5px;
  23923. left:0
  23924. }
  23925. .pzTop2 .check {
  23926. text-align: center;
  23927. cursor: pointer;
  23928. box-sizing: border-box;
  23929. display: flex;
  23930. }
  23931. .pzTop2 img {
  23932. width: 25px;
  23933. cursor: pointer;
  23934. }
  23935. .pzTop > div:nth-child(1) {
  23936. padding-left: 10px;
  23937. }
  23938. .pzTop > div:nth-child(2) {
  23939. width: 15px;
  23940. height: 15px;
  23941. padding-right: 10px;
  23942. cursor: pointer;
  23943. }
  23944. .pzTop > div:nth-child(2) > img {
  23945. width: 100%;
  23946. height: 100%;
  23947. }
  23948. .pzBox,
  23949. .noPzBox {
  23950. height: calc(100% - 60px);
  23951. /* background: #ededed; */
  23952. background: #fff;
  23953. /* border-radius: 0 0 15px 15px; */
  23954. }
  23955. .noPzBox {
  23956. display: flex;
  23957. flex-direction: column;
  23958. flex-wrap: nowrap;
  23959. justify-content: center;
  23960. align-items: center;
  23961. }
  23962. .pzList {
  23963. background: #f7f7f7;
  23964. width: 90%;
  23965. margin: 0 auto 15px;
  23966. border-radius: 5px;
  23967. }
  23968. .pzNavTop {
  23969. display: flex;
  23970. flex-direction: row;
  23971. flex-wrap: nowrap;
  23972. padding: 10px 10px 0 10px;
  23973. align-items: center;
  23974. }
  23975. .pzDelete {
  23976. cursor: pointer;
  23977. margin-left: auto;
  23978. font-size: 14px;
  23979. color: #afafaf;
  23980. }
  23981. .pzNavTop > div:nth-child(1) {
  23982. background: #3760af;
  23983. width: 35px;
  23984. height: 35px;
  23985. color: #fff;
  23986. text-align: center;
  23987. line-height: 35px;
  23988. border-radius: 50%;
  23989. font-size: 14px;
  23990. }
  23991. .pzNavTop > div:nth-child(2) {
  23992. font-size: 18px;
  23993. color: #959595;
  23994. margin-left: 5px;
  23995. }
  23996. .pzContent {
  23997. padding: 10px;
  23998. word-break: break-word;
  23999. }
  24000. .pzContent audio {
  24001. width: 100%;
  24002. }
  24003. .pzContent audio::-webkit-media-controls-panel {
  24004. background: #fff;
  24005. }
  24006. .pzContent >>> img {
  24007. max-width: 100%;
  24008. }
  24009. .pzListBox {
  24010. padding-top: 15px;
  24011. height: calc(100% - 110px);
  24012. overflow: auto;
  24013. }
  24014. .addPzButton {
  24015. position: relative;
  24016. margin-top: 3px;
  24017. width: 100%;
  24018. }
  24019. .addPzButton .img1 {
  24020. position: absolute;
  24021. top: 50%;
  24022. right: 25px;
  24023. transform: translateY(-50%);
  24024. height: 100%;
  24025. display: flex;
  24026. align-items: center;
  24027. }
  24028. .addPzButton .img1 div {
  24029. display: flex;
  24030. }
  24031. .addPzButton .img1 div img {
  24032. width: 28px;
  24033. margin-left: 10px;
  24034. cursor: pointer;
  24035. }
  24036. .addPzButton .img1 div span {
  24037. font-size: 14px;
  24038. margin: 4px 0 0 3px;
  24039. color: #afafaf;
  24040. }
  24041. .addPz {
  24042. background: #4b79ce;
  24043. width: 100px;
  24044. color: #fff;
  24045. font-size: 12px;
  24046. height: 30px;
  24047. margin: 0 auto;
  24048. text-align: center;
  24049. line-height: 30px;
  24050. border-radius: 10px;
  24051. cursor: pointer;
  24052. }
  24053. .addDialogCss {
  24054. position: fixed;
  24055. width: 600px;
  24056. height: 70%;
  24057. min-height: 450px;
  24058. box-shadow: 0px 0 8px 0px #555555;
  24059. border-radius: 15px;
  24060. z-index: 999;
  24061. left: 50%;
  24062. top: 50%;
  24063. margin: -18% 0 0 -300px;
  24064. }
  24065. .teacherPz {
  24066. display: flex;
  24067. flex-direction: row;
  24068. align-items: center;
  24069. flex-wrap: nowrap;
  24070. }
  24071. .teacherPzImg {
  24072. width: 30px;
  24073. height: 30px;
  24074. }
  24075. .teacherPzImg > img {
  24076. width: 100%;
  24077. height: 100%;
  24078. }
  24079. .addPzBox {
  24080. height: calc(100% - 40px);
  24081. background: #ededed;
  24082. border-bottom-left-radius: 15px;
  24083. border-bottom-right-radius: 15px;
  24084. }
  24085. .pzAudioClass {
  24086. margin: 15px 14px;
  24087. background: #fff;
  24088. height: 100%;
  24089. display: flex;
  24090. justify-content: center;
  24091. align-items: center;
  24092. }
  24093. .pzConText {
  24094. width: 95%;
  24095. height: 100%;
  24096. margin: 10px auto 0;
  24097. border: none;
  24098. background: #fff;
  24099. border-radius: 0px;
  24100. }
  24101. .pzConText >>> .text {
  24102. height: calc(100% - 82px);
  24103. }
  24104. .addTextCss {
  24105. background: #4b79ce;
  24106. width: 80px;
  24107. height: 30px;
  24108. text-align: center;
  24109. color: #fff;
  24110. line-height: 30px;
  24111. border-radius: 10px;
  24112. margin: 10px auto 0;
  24113. cursor: pointer;
  24114. }
  24115. .pzConText:focus-visible {
  24116. border: none !important;
  24117. }
  24118. .maxWidth {
  24119. width: 1000px;
  24120. }
  24121. .noPz {
  24122. width: 150px;
  24123. margin: 0 auto 20%;
  24124. }
  24125. .noPz > img {
  24126. width: 100%;
  24127. height: 100%;
  24128. }
  24129. .timeAndReply {
  24130. display: flex;
  24131. flex-direction: row;
  24132. flex-wrap: nowrap;
  24133. justify-content: space-between;
  24134. align-items: center;
  24135. font-size: 14px;
  24136. box-sizing: border-box;
  24137. padding: 0 10px 10px 0px;
  24138. }
  24139. .timeAndReply .time {
  24140. color: #bfbfbf;
  24141. padding: 0 0 0 10px;
  24142. box-sizing: border-box;
  24143. }
  24144. .timeAndReply > div:last-child {
  24145. cursor: pointer;
  24146. color: #777;
  24147. }
  24148. /* table 样式 */
  24149. .cont >>> table {
  24150. border-top: 1px solid #ccc;
  24151. border-left: 1px solid #ccc;
  24152. }
  24153. .cont >>> table td,
  24154. .cont >>> table th {
  24155. border-bottom: 1px solid #ccc;
  24156. border-right: 1px solid #ccc;
  24157. /* padding: 20px 5px; */
  24158. padding: 5px 10px;
  24159. max-width: 0px;
  24160. height: 30px;
  24161. vertical-align: baseline;
  24162. box-sizing: border-box;
  24163. }
  24164. .cont >>> table th {
  24165. border-bottom: 2px solid #ccc;
  24166. text-align: center;
  24167. }
  24168. /* blockquote 样式 */
  24169. .cont >>> blockquote {
  24170. display: block;
  24171. border-left: 8px solid #d0e5f2;
  24172. padding: 5px 10px;
  24173. margin: 10px 0;
  24174. line-height: 1.4;
  24175. font-size: 100%;
  24176. background-color: #f1f1f1;
  24177. }
  24178. /* code 样式 */
  24179. .cont >>> code {
  24180. display: inline-block;
  24181. /* *display: inline; */
  24182. zoom: 1;
  24183. background-color: #f1f1f1;
  24184. border-radius: 3px;
  24185. padding: 3px 5px;
  24186. margin: 0 3px;
  24187. }
  24188. .cont >>> pre code {
  24189. display: block;
  24190. }
  24191. /* ul ol 样式 */
  24192. .cont >>> ul,
  24193. ol {
  24194. margin: 10px 0 10px 20px;
  24195. }
  24196. .addPzCheck {
  24197. display: flex;
  24198. flex-direction: row;
  24199. flex-wrap: nowrap;
  24200. padding: 10px 15px 0;
  24201. }
  24202. .addPzCheck span {
  24203. cursor: pointer;
  24204. padding-bottom: 5px;
  24205. font-weight: bold;
  24206. }
  24207. .addPzCheck span + span {
  24208. margin-left: 10px;
  24209. }
  24210. .addPzCheck .isChooseActive {
  24211. color: #3e88f4;
  24212. border-bottom: 2px solid #2f80f3;
  24213. }
  24214. /* code 样式 */
  24215. .cont {
  24216. /* -webkit-user-modify: read-write; */
  24217. overflow-wrap: break-word;
  24218. -webkit-line-break: after-white-space;
  24219. word-break: break-word;
  24220. white-space: pre-line;
  24221. }
  24222. .scoreBox,
  24223. .scoreDetailBox {
  24224. display: flex;
  24225. align-items: center;
  24226. justify-content: flex-start;
  24227. margin-top: 20px;
  24228. font-size: 18px;
  24229. width: 100%;
  24230. }
  24231. .scoreBox .t,
  24232. .scoreDetailBox .t {
  24233. margin-right: 10px;
  24234. width: 100px;
  24235. text-align: right;
  24236. }
  24237. .scoreDetailBox {
  24238. align-items: flex-start;
  24239. }
  24240. .scoreDetailBox >>> .el-textarea {
  24241. width: calc(100% - 200px);
  24242. }
  24243. .scoreBox >>> .el-input {
  24244. width: 130px;
  24245. font-size: 38px;
  24246. }
  24247. .scoreBox >>> .el-input__inner {
  24248. height: 60px;
  24249. }
  24250. .answerScore {
  24251. position: absolute;
  24252. top: 10px;
  24253. right: 10px;
  24254. background: #0000008f;
  24255. border-radius: 5px;
  24256. padding: 3px 5px;
  24257. font-size: 14px;
  24258. color: #fff;
  24259. cursor: pointer;
  24260. }
  24261. .open_box .switch_box {
  24262. width: 100%;
  24263. margin: 0 auto;
  24264. display: flex;
  24265. justify-content: space-between;
  24266. }
  24267. .open_box .switch_box + .switch_box {
  24268. margin-top: 10px;
  24269. }
  24270. .deleteImg,.deleteImg1 {
  24271. width: 25px !important;
  24272. height: 25px !important;
  24273. cursor: pointer;
  24274. position: absolute;
  24275. top: 10px;
  24276. right: 10px;
  24277. }
  24278. .deleteImg2 {
  24279. width: 23px !important;
  24280. height: 23px !important;
  24281. top: 5px;
  24282. right: 5px;
  24283. }
  24284. .deleteImg1{
  24285. width: 23px !important;
  24286. height: 23px !important;
  24287. top: 5px !important;
  24288. right: 30px !important;
  24289. }
  24290. .rightW {
  24291. right: 40px;
  24292. }
  24293. .drawPBox {
  24294. display: flex;
  24295. flex-direction: column;
  24296. position: relative;
  24297. }
  24298. .drawPBox span {
  24299. font-size: 18px;
  24300. color: #606266;
  24301. padding-bottom: 10px;
  24302. margin: 10px 0;
  24303. border-bottom: 1px solid #eaeaea;
  24304. }
  24305. .drawPBox img {
  24306. width: 500px;
  24307. height: 300px;
  24308. object-fit: contain;
  24309. cursor: pointer;
  24310. margin: 0 auto;
  24311. }
  24312. .sentenBox {
  24313. background: #fff;
  24314. height: 450px;
  24315. overflow: auto;
  24316. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24317. background-position: 102%;
  24318. background-repeat: no-repeat;
  24319. background-size: 60%;
  24320. }
  24321. .addSen {
  24322. background: #409efe;
  24323. width: 90px;
  24324. color: #fff;
  24325. height: 35px;
  24326. text-align: center;
  24327. line-height: 35px;
  24328. border-radius: 5px;
  24329. float: right;
  24330. margin: 10px 20px 0 0;
  24331. cursor: pointer;
  24332. }
  24333. .sentenTop {
  24334. display: flex;
  24335. flex-direction: row;
  24336. flex-wrap: nowrap;
  24337. align-items: center;
  24338. padding: 55px 0 0 20px;
  24339. box-sizing: border-box;
  24340. }
  24341. .sentenTop > div:nth-child(2) {
  24342. width: 300px;
  24343. margin: 0 15px;
  24344. }
  24345. .sentenTop > div:nth-child(3) {
  24346. background: #409efe;
  24347. color: #fff;
  24348. width: 65px;
  24349. height: 35px;
  24350. text-align: center;
  24351. line-height: 35px;
  24352. border-radius: 5px;
  24353. cursor: pointer;
  24354. }
  24355. .cardList,
  24356. .cardList1 {
  24357. padding: 10px 0 10px 0;
  24358. display: flex;
  24359. flex-direction: row;
  24360. flex-wrap: wrap;
  24361. align-items: center;
  24362. box-sizing: border-box;
  24363. border-bottom: 1px solid #f4f4f4;
  24364. width: 98%;
  24365. margin: 0 auto;
  24366. min-width: 60%;
  24367. max-width: 85%;
  24368. }
  24369. .cardList1 {
  24370. padding: 10px 0 10px 10px !important;
  24371. margin: 0 !important;
  24372. }
  24373. .cardBox {
  24374. display: flex;
  24375. flex-direction: row;
  24376. flex-wrap: wrap;
  24377. align-items: center;
  24378. align-content: center;
  24379. }
  24380. .cardBox > div {
  24381. margin-bottom: 10px;
  24382. }
  24383. .isCard,
  24384. .isChooseCard,
  24385. .noCard,
  24386. .isCard1 {
  24387. min-width: 130px;
  24388. width: auto;
  24389. height: 60px;
  24390. text-align: center;
  24391. line-height: 60px;
  24392. font-size: 20px;
  24393. cursor: pointer;
  24394. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24395. background-size: cover;
  24396. transition: all 2s;
  24397. margin-right: 20px;
  24398. background-size: 100% 100%;
  24399. padding: 0 20px;
  24400. box-sizing: border-box;
  24401. }
  24402. .isCard > div,
  24403. .noCard > div,
  24404. .isCard1 > div {
  24405. white-space: nowrap;
  24406. overflow: hidden;
  24407. text-overflow: ellipsis;
  24408. width: 100%;
  24409. margin: 0 auto;
  24410. }
  24411. .noCard {
  24412. background-image: none;
  24413. }
  24414. .isCard1 {
  24415. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24416. }
  24417. .isChooseCard {
  24418. background-image: none;
  24419. border: 1px dashed #b9b9b9;
  24420. border-radius: 10px;
  24421. }
  24422. .card {
  24423. width: 130px;
  24424. height: 60px;
  24425. }
  24426. .card > img {
  24427. width: 100%;
  24428. height: 100%;
  24429. }
  24430. .rightCardBox {
  24431. margin: 10px 0 0 10px;
  24432. }
  24433. .rightCardBox > div:nth-child(1) {
  24434. margin-bottom: 10px;
  24435. }
  24436. .cardCss {
  24437. display: flex;
  24438. flex-direction: column;
  24439. flex-wrap: nowrap;
  24440. align-items: center;
  24441. border-bottom: 3px solid #b4c3d3;
  24442. padding: 0 0 5px 0;
  24443. margin-right: 10px;
  24444. }
  24445. .cardCss > div:nth-child(2) {
  24446. background: #5b7b9d;
  24447. color: #fff;
  24448. width: 20px;
  24449. height: 20px;
  24450. border-radius: 50%;
  24451. text-align: center;
  24452. line-height: 20px;
  24453. }
  24454. .isWrong {
  24455. display: flex;
  24456. flex-direction: row;
  24457. flex-wrap: nowrap;
  24458. align-content: center;
  24459. align-items: center;
  24460. }
  24461. .answerRight {
  24462. width: 25%;
  24463. }
  24464. .isTj {
  24465. display: flex;
  24466. flex-direction: row;
  24467. flex-wrap: nowrap;
  24468. align-items: center;
  24469. }
  24470. .isTj > div:nth-child(2) {
  24471. color: #727070;
  24472. margin-left: 10px;
  24473. }
  24474. .isTjImg {
  24475. width: 30px;
  24476. height: 30px;
  24477. }
  24478. .isTjImg > img {
  24479. width: 100%;
  24480. height: 100%;
  24481. }
  24482. .cardAnswerBox {
  24483. font-size: 18px;
  24484. width: 97%;
  24485. border: 5px;
  24486. padding: 0;
  24487. border-radius: 5px;
  24488. margin: 10px auto;
  24489. word-break: break-word;
  24490. }
  24491. .w_name {
  24492. margin-bottom: 10px;
  24493. }
  24494. .w_name span {
  24495. font-size: 16px;
  24496. }
  24497. .w_teachert {
  24498. width: 50px !important;
  24499. position: absolute;
  24500. height: auto !important;
  24501. z-index: 10;
  24502. right: 25px;
  24503. top: -25px;
  24504. }
  24505. /* .group_workBox {
  24506. } */
  24507. .group_workBox + .group_workBox {
  24508. margin-top: 20px;
  24509. }
  24510. .group_box {
  24511. padding-bottom: 20px;
  24512. border-bottom: 2px solid #f0f0f0;
  24513. margin-top: 10px;
  24514. }
  24515. .group_title {
  24516. display: flex;
  24517. align-items: center;
  24518. justify-content: space-between;
  24519. width: 95%;
  24520. }
  24521. .group_name {
  24522. background-image: url(../../assets/icon/groupN.png);
  24523. width: 220px;
  24524. background-size: 100% 100%;
  24525. height: 67px;
  24526. padding: 0 20px 0 43px;
  24527. box-sizing: border-box;
  24528. line-height: 63px;
  24529. color: #fff;
  24530. overflow: hidden;
  24531. white-space: nowrap;
  24532. text-overflow: ellipsis;
  24533. }
  24534. .group_work {
  24535. width: 100%;
  24536. padding: 0 10px;
  24537. box-sizing: border-box;
  24538. display: flex;
  24539. flex-wrap: wrap;
  24540. }
  24541. .g_d_box {
  24542. display: flex;
  24543. flex-flow: wrap;
  24544. justify-content: space-around;
  24545. }
  24546. .g_d_box .isChair {
  24547. background-image: url(../../assets/avatar.png) !important;
  24548. }
  24549. .g_d_group {
  24550. width: 500px;
  24551. margin-bottom: 80px;
  24552. }
  24553. .g_d_group_chair {
  24554. display: flex;
  24555. align-items: center;
  24556. justify-content: center;
  24557. }
  24558. .g_d_group_chair > div + div {
  24559. margin-left: 30px;
  24560. }
  24561. .g_d_group_chair > div,
  24562. .g_d_group_chair2 > div {
  24563. display: flex;
  24564. flex-direction: column;
  24565. align-items: center;
  24566. }
  24567. .g_d_group_chair > div > span:nth-child(1),
  24568. .g_d_group_chair2 > div > span:nth-child(1) {
  24569. background-image: url(../../assets/icon/chair.png);
  24570. width: 50px;
  24571. height: 50px;
  24572. display: block;
  24573. background-size: 100% 100%;
  24574. }
  24575. .g_d_group_tableBox {
  24576. display: flex;
  24577. align-items: center;
  24578. justify-content: center;
  24579. }
  24580. .g_d_group_chair2 {
  24581. display: flex;
  24582. flex-direction: column;
  24583. align-items: center;
  24584. justify-content: center;
  24585. }
  24586. .g_d_group_chair2 > div + div {
  24587. margin-top: 10px;
  24588. }
  24589. .g_d_group_table {
  24590. background-image: url(../../assets/icon/groupBg.png);
  24591. width: 354px;
  24592. height: 196px;
  24593. background-size: 100% 100%;
  24594. display: flex;
  24595. align-items: center;
  24596. justify-content: center;
  24597. flex-direction: column;
  24598. color: #fff;
  24599. }
  24600. .g_d_group_table > div:nth-child(1) {
  24601. font-size: 24px;
  24602. margin-bottom: 5px;
  24603. }
  24604. .g_d_group_table > div:nth-child(2) div {
  24605. cursor: pointer;
  24606. background: #2e77bf;
  24607. padding: 4px 10px;
  24608. border-radius: 5px;
  24609. }
  24610. /* .groupBox {
  24611. } */
  24612. .groupContent + .groupContent {
  24613. margin-top: 30px;
  24614. }
  24615. .groupTitle {
  24616. font-size: 24px;
  24617. color: rgb(80, 80, 80);
  24618. margin-bottom: 20px;
  24619. }
  24620. .groupName {
  24621. display: flex;
  24622. align-items: center;
  24623. }
  24624. .groupn {
  24625. font-size: 15px;
  24626. margin-right: 10px;
  24627. }
  24628. .groupName + .groupName {
  24629. margin-top: 15px;
  24630. }
  24631. .groupBtn {
  24632. margin-left: 10px;
  24633. }
  24634. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24635. text-align: left;
  24636. }
  24637. .g_d_btnBox {
  24638. display: flex;
  24639. justify-content: flex-end;
  24640. align-items: center;
  24641. margin-bottom: 20px;
  24642. }
  24643. .updateChair {
  24644. position: relative;
  24645. }
  24646. .updateChairBtn {
  24647. position: absolute;
  24648. width: 50px;
  24649. height: 50px;
  24650. overflow: hidden;
  24651. /* display: flex; */
  24652. align-items: center;
  24653. justify-content: center;
  24654. background: #00000087;
  24655. color: #fff;
  24656. border-radius: 50px;
  24657. display: none;
  24658. cursor: pointer;
  24659. }
  24660. .updateChair:hover .updateChairBtn {
  24661. display: flex;
  24662. }
  24663. .group_staic_box {
  24664. display: flex;
  24665. padding: 30px 40px 10px;
  24666. flex-wrap: wrap;
  24667. }
  24668. .group_staic {
  24669. /* width: 50%; */
  24670. margin-bottom: 20px;
  24671. display: flex;
  24672. align-items: center;
  24673. }
  24674. .group_staic span:nth-child(1) {
  24675. width: 150px;
  24676. text-align: right;
  24677. margin-right: 15px;
  24678. }
  24679. .group_staic span:nth-child(2) {
  24680. background: rgb(0 123 255);
  24681. color: #fff;
  24682. border-radius: 5px;
  24683. padding: 5px;
  24684. }
  24685. .codeFileBox {
  24686. height: 300px;
  24687. background: #fff;
  24688. display: flex;
  24689. align-items: center;
  24690. justify-content: center;
  24691. }
  24692. .codeFileBox img {
  24693. width: 200px;
  24694. margin: 0;
  24695. height: auto;
  24696. }
  24697. .codeFileBox div {
  24698. background: rgb(80, 142, 226);
  24699. color: #fff;
  24700. padding: 10px 20px;
  24701. border-radius: 25px;
  24702. cursor: pointer;
  24703. margin-left: 15px;
  24704. }
  24705. .radioBox {
  24706. display: flex;
  24707. flex-direction: column;
  24708. flex-wrap: nowrap;
  24709. align-items: flex-start;
  24710. }
  24711. .radioBox > div {
  24712. margin: 10px 0 0 10px;
  24713. }
  24714. /* .radioBox >>> .el-radio__input,
  24715. .radioBox >>> .el-checkbox__inner {
  24716. margin-left: 10px;
  24717. } */
  24718. .radioBox >>> .el-radio__label,
  24719. .radioBox >>> .el-checkbox__label {
  24720. display: flex;
  24721. align-items: center;
  24722. width: 100%;
  24723. }
  24724. .radioBox >>> .el-radio__label > span {
  24725. width: 100%;
  24726. display: -webkit-box;
  24727. overflow: hidden;
  24728. white-space: normal !important;
  24729. text-overflow: ellipsis;
  24730. word-wrap: break-word;
  24731. }
  24732. .inImg {
  24733. width: 100px;
  24734. cursor: pointer;
  24735. }
  24736. .inImg > img {
  24737. width: 100%;
  24738. height: 100%;
  24739. object-fit: cover;
  24740. }
  24741. .timuImgBox {
  24742. margin: 10px 0;
  24743. display: flex;
  24744. flex-direction: column;
  24745. flex-wrap: wrap;
  24746. align-items: flex-start;
  24747. }
  24748. .timuImg {
  24749. width: 150px;
  24750. margin: 5px 0;
  24751. cursor: pointer;
  24752. }
  24753. .timuImg > img {
  24754. width: 100%;
  24755. height: 100%;
  24756. object-fit: cover;
  24757. }
  24758. .worksTop {
  24759. display: flex;
  24760. flex-direction: row;
  24761. align-items: flex-end;
  24762. }
  24763. .worksTitle {
  24764. display: flex;
  24765. flex-direction: row;
  24766. flex-wrap: nowrap;
  24767. align-items: center;
  24768. }
  24769. .worksTitle::before,
  24770. .worksTop::before {
  24771. content: "";
  24772. display: block;
  24773. width: 3px;
  24774. height: 20px;
  24775. background: #0061ff;
  24776. border-radius: 3px;
  24777. margin: 0 5px 0 0;
  24778. }
  24779. .corOpen {
  24780. margin: 0 0 0 10px;
  24781. font-size: 14px;
  24782. cursor: pointer;
  24783. color: #505050;
  24784. }
  24785. .corOpen:hover {
  24786. color: #499eef;
  24787. }
  24788. .navCorOpenBox {
  24789. display: flex;
  24790. flex-direction: row;
  24791. align-items: center;
  24792. justify-content: space-between;
  24793. height: 55px;
  24794. background: #ffffff;
  24795. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24796. border-radius: 8px 8px 0px 0px;
  24797. z-index: 9;
  24798. position: relative;
  24799. }
  24800. .navCorOpen {
  24801. padding-right: 15px;
  24802. cursor: pointer;
  24803. width: 45px;
  24804. display: flex;
  24805. }
  24806. .navCorOpen > img {
  24807. width: 100%;
  24808. height: 100%;
  24809. }
  24810. .mlImg {
  24811. width: 40px !important;
  24812. min-width: 40px;
  24813. cursor: pointer;
  24814. transform: rotate(180deg);
  24815. }
  24816. .mlImg > img {
  24817. width: 100%;
  24818. height: 100%;
  24819. }
  24820. .navLeftCss {
  24821. width: 100% !important;
  24822. left: 0 !important;
  24823. }
  24824. .isContentCss {
  24825. width: 100% !important;
  24826. }
  24827. .isAllWidth {
  24828. width: 100% !important;
  24829. }
  24830. .group_switch {
  24831. margin-right: 10px;
  24832. height: 30px;
  24833. display: flex;
  24834. align-items: center;
  24835. }
  24836. .group_switch > span {
  24837. margin-right: 5px;
  24838. }
  24839. .fileC_box {
  24840. padding-top: 15px;
  24841. }
  24842. .fileC_box > .fileC_title {
  24843. padding: 10px 5px 14px 10px;
  24844. border-top: 1px solid #cad1dc;
  24845. font-size: 14px;
  24846. font-weight: 400;
  24847. color: #cad1dc;
  24848. width: calc(100% - 20px);
  24849. margin: 0 auto;
  24850. box-sizing: border-box;
  24851. }
  24852. .pl_select_box {
  24853. height: 40px;
  24854. line-height: 40px;
  24855. width: 100%;
  24856. cursor: pointer;
  24857. padding: 0 20px;
  24858. box-sizing: border-box;
  24859. border-radius: 5px;
  24860. border: 1px solid #d6d6d6;
  24861. white-space: nowrap;
  24862. overflow: hidden;
  24863. text-overflow: ellipsis;
  24864. background: #fff;
  24865. text-align: left;
  24866. }
  24867. .newButton {
  24868. width: 102px;
  24869. height: 36px;
  24870. background: #e7ebf1;
  24871. border-radius: 4px;
  24872. color: #0e1e33;
  24873. font-weight: 400;
  24874. font-size: 14px;
  24875. border: none;
  24876. float: right;
  24877. margin-left: 10px;
  24878. }
  24879. .el-table >>> .even_row {
  24880. background-color: #f0f4fa;
  24881. }
  24882. .stageBoxCss,
  24883. .stageBoxIsCss {
  24884. display: flex;
  24885. flex-direction: row;
  24886. flex-wrap: nowrap;
  24887. align-items: center;
  24888. height: 50px;
  24889. border-bottom: 1px solid #e2f5fc;
  24890. cursor: pointer;
  24891. width: 100%;
  24892. }
  24893. .stageBoxIsCss {
  24894. background: #0061ff;
  24895. color: #fff;
  24896. border-radius: 8px;
  24897. }
  24898. .closeTri,
  24899. .closeTri1 {
  24900. min-width: 15px;
  24901. width: 15px;
  24902. height: 15px;
  24903. }
  24904. .closeTri1 {
  24905. padding-left: 10px;
  24906. cursor: pointer;
  24907. }
  24908. .closeTri > img,
  24909. .closeTri1 > img {
  24910. width: 100%;
  24911. height: 100%;
  24912. /* transition: all .5s; */
  24913. }
  24914. .noToolBlue {
  24915. min-width: 10px;
  24916. width: 10px;
  24917. height: 10px;
  24918. background: #0061ff;
  24919. border-radius: 50%;
  24920. margin-left: 13px;
  24921. }
  24922. .stageChild,
  24923. .toolChild {
  24924. height: 0;
  24925. overflow: hidden;
  24926. transition: all 0.5s;
  24927. }
  24928. /* .toolChild { */
  24929. /* margin: 0 0 0 17px;
  24930. padding: 0 0 0 20px;
  24931. border-left: 1px solid #d7d7d7; */
  24932. /* } */
  24933. .toolChild > div + div{
  24934. margin-top:5px;
  24935. }
  24936. .gjCss {
  24937. display: flex;
  24938. flex-direction: row;
  24939. flex-wrap: nowrap;
  24940. align-items: center;
  24941. padding: 10px 0 10px 40px;
  24942. box-sizing: border-box;
  24943. font-size: 14px;
  24944. cursor: pointer;
  24945. border-radius:5px;
  24946. }
  24947. .toolChild > div {
  24948. position: relative;
  24949. width: 100%;
  24950. }
  24951. .toolChild > div::before {
  24952. /* content: "";
  24953. width: 15px;
  24954. height: 1px;
  24955. background: #cad1dc;
  24956. position: absolute;
  24957. top: 24px;
  24958. left: -20px;
  24959. display: block; */
  24960. }
  24961. .isGjCss {
  24962. /* color: #0061ff; */
  24963. color:#fff;
  24964. background: rgb(55, 129, 252);
  24965. /* background-color: #e0eafb !important;
  24966. color: #0061ff !important; */
  24967. }
  24968. .navItem {
  24969. background: #ffffff;
  24970. border-radius: 4px;
  24971. width: 100%;
  24972. margin: 10px auto;
  24973. position: relative;
  24974. height: 40px;
  24975. display: flex;
  24976. flex-direction: row;
  24977. flex-wrap: nowrap;
  24978. align-items: center;
  24979. }
  24980. .navItemList {
  24981. display: flex;
  24982. flex-direction: row;
  24983. flex-wrap: nowrap;
  24984. align-items: center;
  24985. padding: 0 13px;
  24986. cursor: pointer;
  24987. width: calc(100% - 60px);
  24988. height: 100%;
  24989. }
  24990. .navItemList > div:first-child {
  24991. min-width: 60px;
  24992. }
  24993. .navItemList > div:last-child {
  24994. width: calc(100% - 80px);
  24995. white-space: nowrap;
  24996. overflow: hidden;
  24997. text-overflow: ellipsis;
  24998. word-break: break-word;
  24999. }
  25000. /* .isItemList > div {
  25001. color: #fff !important;
  25002. } */
  25003. .tool_work_box {
  25004. width: 100%;
  25005. padding: 0 37px 0;
  25006. box-sizing: border-box;
  25007. }
  25008. .tool_box {
  25009. width: 100%;
  25010. padding: 0 0 0 20px;
  25011. }
  25012. .tool_type_box {
  25013. display: flex;
  25014. flex-direction: row;
  25015. align-items: baseline;
  25016. flex-wrap: nowrap;
  25017. justify-content: flex-start;
  25018. position: relative;
  25019. }
  25020. .toolSort {
  25021. display: flex;
  25022. flex-direction: row;
  25023. flex-wrap: wrap;
  25024. justify-content: flex-start;
  25025. align-items: flex-start;
  25026. padding: 0 0 15px 0;
  25027. }
  25028. .toolSort > div {
  25029. margin: 0 10px 0 0;
  25030. width: 135px;
  25031. box-sizing: border-box;
  25032. border: 2px solid transparent;
  25033. }
  25034. .tools {
  25035. width: 100%;
  25036. display: flex;
  25037. flex-direction: column;
  25038. flex-wrap: nowrap;
  25039. align-items: flex-start;
  25040. }
  25041. .whiteBIcon {
  25042. width: fit-content;
  25043. cursor: pointer;
  25044. display: flex;
  25045. flex-direction: column;
  25046. flex-wrap: nowrap;
  25047. align-items: center;
  25048. font-size: 14px;
  25049. }
  25050. .tool:hover {
  25051. border: 2px solid #a5c7ff;
  25052. border-radius: 5px;
  25053. }
  25054. .whiteBIcon > img {
  25055. width: 65px;
  25056. height: 100%;
  25057. }
  25058. .whiteBIcon > img {
  25059. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25060. border-radius: 15px;
  25061. }
  25062. .check {
  25063. /* width: 20px;
  25064. height: 20px; */
  25065. cursor: pointer;
  25066. margin: 10px 0;
  25067. position: absolute;
  25068. right: 2px;
  25069. top: -5px;
  25070. }
  25071. .noChoose,
  25072. .isChoose {
  25073. width: 15px;
  25074. height: 15px;
  25075. border-radius: 50%;
  25076. border: 1px solid #adadad;
  25077. }
  25078. .isChoose {
  25079. border: 4px solid #0363ff !important;
  25080. width: 10px;
  25081. height: 10px;
  25082. }
  25083. .isToolChoose {
  25084. border: 2px solid #5394ff !important;
  25085. border-radius: 5px;
  25086. box-shadow: 0 0 6px 0px #5394ff;
  25087. }
  25088. .checkDiv {
  25089. display: flex;
  25090. align-items: center;
  25091. }
  25092. .checkDiv span {
  25093. margin-left: 5px;
  25094. color: #858585;
  25095. }
  25096. .check img {
  25097. width: 20px;
  25098. height: 20px;
  25099. }
  25100. .lockTaskIcon {
  25101. width: 20px;
  25102. height: 20px;
  25103. position: absolute;
  25104. right: 10px;
  25105. top: 10px;
  25106. }
  25107. .lockTaskIcon > img {
  25108. width: 100%;
  25109. height: 100%;
  25110. }
  25111. .pick_box {
  25112. display: flex;
  25113. align-items: flex-start;
  25114. flex-wrap: wrap;
  25115. }
  25116. .selectBox {
  25117. width: 110px;
  25118. margin-left: 10px;
  25119. margin: 0 10px 0 auto;
  25120. }
  25121. .selectBox >>> .el-input__inner {
  25122. height: 30px;
  25123. line-height: 30px;
  25124. }
  25125. .selectBox >>> .el-input__icon {
  25126. line-height: 30px;
  25127. }
  25128. .sentenceTitle {
  25129. display: flex;
  25130. flex-direction: row;
  25131. flex-wrap: nowrap;
  25132. align-items: center;
  25133. }
  25134. .sentenceTitle::before {
  25135. content: attr(index);
  25136. background: #3681fc;
  25137. border-radius: 50%;
  25138. color: #fff;
  25139. width: 25px;
  25140. height: 25px;
  25141. min-width: 25px;
  25142. min-height: 25px;
  25143. text-align: center;
  25144. line-height: 25px;
  25145. margin-right: 5px;
  25146. }
  25147. .hfBox {
  25148. padding: 10px;
  25149. box-sizing: border-box;
  25150. }
  25151. .whoReplyWho {
  25152. display: flex;
  25153. flex-direction: row;
  25154. flex-wrap: nowrap;
  25155. align-items: baseline;
  25156. justify-content: flex-start;
  25157. }
  25158. .hfBottom {
  25159. display: flex;
  25160. flex-direction: row;
  25161. flex-wrap: nowrap;
  25162. align-items: center;
  25163. justify-content: space-between;
  25164. font-size: 14px;
  25165. }
  25166. .deleteHfItem {
  25167. cursor: pointer;
  25168. width: 20px;
  25169. height: 20px;
  25170. }
  25171. .deleteHfItem > img {
  25172. width: 100%;
  25173. height: 100%;
  25174. }
  25175. .whoReplyWho > .hfImg {
  25176. width: 12px;
  25177. height: 12px;
  25178. margin: 0 5px;
  25179. }
  25180. .whoReplyWho > .hfImg > img {
  25181. width: 100%;
  25182. height: 100%;
  25183. }
  25184. .hfContent {
  25185. padding-top: 10px;
  25186. box-sizing: border-box;
  25187. display: -webkit-box;
  25188. overflow: hidden;
  25189. white-space: normal !important;
  25190. text-overflow: ellipsis;
  25191. word-wrap: break-word;
  25192. -webkit-box-orient: vertical;
  25193. }
  25194. .hfTime {
  25195. text-align: left;
  25196. box-sizing: border-box;
  25197. padding: 10px 0 10px 0px;
  25198. color: #bfbfbf;
  25199. font-size: 14px;
  25200. }
  25201. .btnAllNT {
  25202. position: fixed;
  25203. bottom: 100px;
  25204. right: 40px;
  25205. z-index: 999;
  25206. display: flex;
  25207. flex-direction: row;
  25208. }
  25209. .btnAllNT > img {
  25210. cursor: pointer;
  25211. width: 80px;
  25212. }
  25213. .toolMask {
  25214. position: fixed;
  25215. width: 100%;
  25216. height: 100%;
  25217. background: #3f3c3c;
  25218. opacity: 0.5;
  25219. top: 0;
  25220. left: 0;
  25221. z-index: 999;
  25222. }
  25223. .addToolCss {
  25224. position: fixed;
  25225. z-index: 999;
  25226. background: #fff;
  25227. right: 5%;
  25228. bottom: 18%;
  25229. min-width: 1035px;
  25230. min-height: 300px;
  25231. border-radius: 10px;
  25232. box-shadow: 0 0 8px 1px #b2b2b2;
  25233. }
  25234. .toolTop {
  25235. display: flex;
  25236. flex-direction: row;
  25237. flex-wrap: nowrap;
  25238. justify-content: space-between;
  25239. align-items: center;
  25240. padding: 20px;
  25241. }
  25242. .toolTop > div:nth-child(2) {
  25243. width: 15px;
  25244. height: 15px;
  25245. padding-right: 10px;
  25246. cursor: pointer;
  25247. }
  25248. .toolTop > div:nth-child(2) > img {
  25249. width: 100%;
  25250. height: 100%;
  25251. }
  25252. .fullStyle>>>.el-dialog__body {
  25253. height: calc(100% - 125px) !important;
  25254. box-sizing: border-box;
  25255. padding: 30px 0 !important;
  25256. background: #fff !important;
  25257. }
  25258. .fullStyle>>>.el-dialog {
  25259. width: 100% !important;
  25260. max-width: 100% !important;
  25261. height: 100% !important;
  25262. margin: 0 !important;
  25263. }
  25264. .fullStyle {
  25265. width: 100% !important;
  25266. max-width: 100% !important;
  25267. height: 100% !important;
  25268. margin: 0 auto !important;
  25269. }
  25270. .fullStyle>>>.el-dialog__footer{
  25271. background: #fff !important;
  25272. }
  25273. .engUpBox {
  25274. width: 100%;
  25275. height: 100%;
  25276. }
  25277. .engTitle,
  25278. .engText {
  25279. display: flex;
  25280. flex-direction: row;
  25281. flex-wrap: nowrap;
  25282. align-items: flex-start;
  25283. padding: 0 20px 20px 20px;
  25284. box-sizing: border-box;
  25285. }
  25286. .engTitle > .div:first-child,
  25287. .engText > div:first-child {
  25288. min-width: 75px;
  25289. }
  25290. .correctBox{
  25291. width: 100%;
  25292. display: flex;
  25293. flex-direction: row;
  25294. flex-wrap: nowrap;
  25295. align-items: flex-start;
  25296. }
  25297. .oldBox{
  25298. width: 50%;
  25299. height: 100%;
  25300. display: flex;
  25301. flex-direction: column;
  25302. flex-wrap: nowrap;
  25303. align-items: center;
  25304. border-top: 1px solid #d9d9d9;
  25305. border-left: 1px solid #d9d9d9;
  25306. border-right: 1px solid #d9d9d9;
  25307. }
  25308. .oldBox>div:first-child{
  25309. width: 100%;
  25310. text-align: center;
  25311. background: #d9d9d9;
  25312. height: 35px;
  25313. line-height: 35px;
  25314. font-weight: bold;
  25315. }
  25316. .oldText{
  25317. width: 100%;
  25318. height: calc(100% - 35px);
  25319. overflow: auto;
  25320. margin: 10px 0;
  25321. display: flex;
  25322. flex-direction: column;
  25323. flex-wrap: nowrap;
  25324. align-content: center;
  25325. align-items: center;
  25326. }
  25327. .detailBox{
  25328. width: 50%;
  25329. padding: 10px;
  25330. background: #f6f6f6;
  25331. border-radius: 5px;
  25332. }
  25333. .oldDetail,.oldDetail1{
  25334. padding-bottom: 30px;
  25335. }
  25336. .oldImg{
  25337. width:30px;
  25338. height: 30px;
  25339. }
  25340. .oldImg>img{
  25341. width: 100%;
  25342. height: 100%;
  25343. }
  25344. .allName{
  25345. min-width: 200px;
  25346. white-space: nowrap;
  25347. overflow: hidden;
  25348. text-overflow: ellipsis;
  25349. word-break: break-word;
  25350. cursor: pointer;
  25351. text-align: center;
  25352. border: 1px solid #bcc2cc;
  25353. box-sizing: border-box;
  25354. }
  25355. .engUpTop{
  25356. max-height: 300px;
  25357. overflow: auto;
  25358. }
  25359. .isUpdateToolDetailClass{
  25360. padding: 0 !important;
  25361. }
  25362. .isUpdateToolDetailClass textarea{
  25363. padding:12px;
  25364. font-size: 16px;
  25365. min-height:100%;
  25366. width: 100%;
  25367. box-sizing:border-box;
  25368. outline: none;
  25369. border:none;
  25370. line-height: 30px;
  25371. resize: none;
  25372. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25373. color: #838383;
  25374. }
  25375. .show_taskD {
  25376. min-width: fit-content;
  25377. margin-left: 10px;
  25378. display: flex;
  25379. align-items: center;
  25380. font-size: 14px;
  25381. cursor: pointer;
  25382. color: #717c8d;
  25383. }
  25384. .show_taskD > img {
  25385. width: 15px;
  25386. margin-right: 5px;
  25387. transition: 0.2s all;
  25388. transform: rotate(-90deg);
  25389. }
  25390. .show_taskD.show > img {
  25391. transform: rotate(0deg);
  25392. }
  25393. .dialog_diyCopy >>> .el-dialog__header {
  25394. display: none !important;
  25395. }
  25396. .dialog_diyCopy >>> .el-dialog__body {
  25397. padding: 0 !important;
  25398. height: 100% !important;
  25399. }
  25400. .confirmOpenDigCss > div{
  25401. font-size: 14px;
  25402. color: rgba(0, 0, 0, 0.6);
  25403. }
  25404. .confirmOpenDigCss >>> .el-dialog{
  25405. border-radius: 6px;
  25406. }
  25407. .confirmOpenDigCss >>> .el-dialog__body{
  25408. padding: 25px !important;
  25409. }
  25410. .confirmOpenDigCss > span{
  25411. font-size: 16px;
  25412. font-weight: 600;
  25413. color: rgba(0, 0, 0, 0.8);
  25414. }
  25415. .correctCss{
  25416. position: absolute;
  25417. bottom: -70px;
  25418. background: #409eff;
  25419. color: #fff;
  25420. }
  25421. div::-webkit-scrollbar {
  25422. width: 10px;
  25423. height: 6px;
  25424. }
  25425. .Ovh{
  25426. margin: 5px 0;
  25427. width: 4em;
  25428. -webkit-line-clamp: 2;
  25429. display: -webkit-box;
  25430. -webkit-box-orient: vertical;
  25431. overflow: hidden;
  25432. text-overflow: ellipsis;
  25433. }
  25434. </style>