studyStudent.vue 884 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 阶段模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <div class="btnAllNT" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" content="收缩" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <span>随机码:{{ inviteCode }}</span>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="cru_selectBox">
  83. <div
  84. style="background: #fff; margin: 0 10px; border-radius: 8px"
  85. v-for="(item, stageIndex) in navList"
  86. :key="stageIndex"
  87. >
  88. <div
  89. class="stageBoxCss"
  90. @click="get(stageIndex)"
  91. :class="{
  92. // stageBoxIsCss: stageIndex == courseType,
  93. }"
  94. >
  95. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  96. <div>阶段{{ stageIndex + 1 }}</div>
  97. <el-tooltip
  98. effect="light"
  99. :content="item.dyName"
  100. placement="top"
  101. >
  102. <div>
  103. {{ item.dyName }}
  104. </div>
  105. </el-tooltip>
  106. </div>
  107. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  108. <img src="../assets/icon/newIcons/downC.png" alt />
  109. </div> -->
  110. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  111. <img src="../assets/icon/newIcons/right.png" alt />
  112. </div>
  113. </div>
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType,
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  129. @click="openTask(stageIndex, navIndex, nav.id)"
  130. >
  131. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  132. </div>
  133. <div
  134. class="closeTri1"
  135. v-else
  136. @click="openTask(stageIndex, navIndex, nav.id)"
  137. >
  138. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  139. </div>
  140. </div>
  141. <div v-else class="noToolBlue"></div>
  142. <div
  143. @click="openTask(stageIndex, navIndex, nav.id)"
  144. class="navItemList"
  145. :class="{
  146. isItemList:
  147. navIndex == taskCount &&
  148. nav.id == navId &&
  149. stageIndex == courseType,
  150. }"
  151. >
  152. <div>任务{{ navIndex + 1 }}:</div>
  153. <el-tooltip
  154. effect="light"
  155. :content="nav.taskName"
  156. placement="top"
  157. >
  158. <div
  159. :style="{
  160. width:
  161. IsLookOpen &&
  162. !(
  163. navIndex == taskCount &&
  164. nav.id == navId &&
  165. stageIndex == courseType
  166. )
  167. ? 'calc(100% - 75px)'
  168. : 'auto',
  169. }"
  170. >
  171. {{ nav.taskName }}
  172. </div>
  173. </el-tooltip>
  174. </div>
  175. <div class="lockTaskIcon">
  176. <img
  177. src="../assets/lock.png"
  178. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  179. courseDetail.course_teacher.indexOf(userid) ==-1"
  180. alt=""
  181. />
  182. </div>
  183. </div>
  184. <div
  185. v-if="nav.tool[0].tool != undefined"
  186. class="toolChild"
  187. :class="{ toolActive: nav.isOpen }"
  188. >
  189. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  190. <div
  191. class="gjCss"
  192. :class="{ isGjCss: t.isTool }"
  193. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  194. >
  195. <div>工具{{ toolIndex + 1 }}:</div>
  196. <div v-if="t.tool == 58">模拟驾驶</div>
  197. <div v-if="t.tool == 59">路径搜索</div>
  198. <div v-if="t.tool == 60">深度学习</div>
  199. <div v-if="t.tool == 10">倒计时</div>
  200. <div v-if="t.tool == 65">挑人</div>
  201. <div v-if="t.tool == 7">思维网格</div>
  202. <div v-if="t.tool == 1">电子白板</div>
  203. <div v-if="t.tool == 52">文档</div>
  204. <div v-if="t.tool == 3">思维导图</div>
  205. <div v-if="t.tool == 48">表格</div>
  206. <div v-if="t.tool == 49">学生分组</div>
  207. <div v-if="t.tool == 4">问卷调查</div>
  208. <div v-if="t.tool == 45">选择题</div>
  209. <div v-if="t.tool == 15">问答</div>
  210. <div v-if="t.tool == 16">作业提交</div>
  211. <div v-if="t.tool == 50">批量上传</div>
  212. <div v-if="t.tool == 41">选择匹配</div>
  213. <div v-if="t.tool == 47">排序</div>
  214. <div v-if="t.tool == 40">个人评价</div>
  215. <div v-if="t.tool == 18">训练平台</div>
  216. <div v-if="t.tool == 21">AIoT Blockly</div>
  217. <div v-if="t.tool == 23">AI Python</div>
  218. <div v-if="t.tool == 24">AI Blockly</div>
  219. <div v-if="t.tool == 32">源码编辑</div>
  220. <div v-if="t.tool == 57">CocoPi</div>
  221. <div v-if="t.tool == 63">海龟编程</div>
  222. <div v-if="t.tool == 28">翻译</div>
  223. <div v-if="t.tool == 31">数字画板</div>
  224. <div v-if="t.tool == 39">GeoGebra</div>
  225. <div v-if="t.tool == 66">公式编辑</div>
  226. <div v-if="t.tool == 67">分子结构</div>
  227. <div v-if="t.tool == 68">时间轴</div>
  228. <div v-if="t.tool == 69">英语写作</div>
  229. <div v-if="t.tool == 70">英语口语</div>
  230. <div v-if="t.tool == 25">目标管理</div>
  231. <div v-if="t.tool == 26">课程设计</div>
  232. <div v-if="t.tool == 62">交互视频</div>
  233. <div v-if="t.tool == 71">AI智能体</div>
  234. <div v-if="t.tool == 72">应用中心</div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- :class="{ navLeftCss: !mlDialog }" -->
  244. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  245. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  246. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  247. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  248. <div>任务{{ taskCount + 1 }}</div>
  249. <el-tooltip
  250. effect="light"
  251. :content="
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  253. "
  254. placement="top"
  255. >
  256. <div>
  257. {{
  258. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  259. .task
  260. }}
  261. </div>
  262. </el-tooltip>
  263. </div>
  264. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  265. <div class="btnLeft">
  266. <el-tooltip effect="light" content="刷新" placement="top">
  267. <div class="reBtnIcon" @click="refreshCourse">
  268. <span>刷新</span>
  269. </div>
  270. </el-tooltip>
  271. <el-tooltip effect="light" content="评论" placement="top">
  272. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  273. <span>评论</span>
  274. </div>
  275. </el-tooltip>
  276. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  277. <el-tooltip effect="light" content="录制" placement="top">
  278. <div class="vedioIcon" @click="startRecording">
  279. <span>录制</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. <div v-else-if="tType == 1 || tType == 4">
  284. <el-tooltip effect="light" content="下载" placement="top">
  285. <div class="vedioIcon1" @click="stopRecording">
  286. <span>下载</span>
  287. </div>
  288. </el-tooltip>
  289. </div>
  290. </div>
  291. <div class="btnRight">
  292. <div
  293. class="last"
  294. @click="nextOrpreSteps(0)"
  295. v-if="!(IsFollow && tType == 2)"
  296. @mouseover="isHovered = true"
  297. @mouseout="isHovered = false"
  298. >
  299. <div class="lastImg">
  300. <img
  301. :src="
  302. isHovered
  303. ? require('../assets/icon/newIcons/whiteLast.png')
  304. : require('../assets/icon/newIcons/last.png')
  305. "
  306. alt=""
  307. />
  308. </div>
  309. <div class="lastText">上一步</div>
  310. </div>
  311. <div
  312. class="last"
  313. @click="nextOrpreSteps(1)"
  314. v-if="!(IsFollow && tType == 2)"
  315. @mouseover="isHovered1 = true"
  316. @mouseout="isHovered1 = false"
  317. >
  318. <div class="lastText">下一步</div>
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered1
  323. ? require('../assets/icon/newIcons/whiteNext.png')
  324. : require('../assets/icon/newIcons/next.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. </div>
  330. <div
  331. class="last"
  332. @click="juriVisible = true"
  333. v-if="tType == 1"
  334. @mouseover="isHovered2 = true"
  335. @mouseout="isHovered2 = false"
  336. >
  337. <div class="lastImg">
  338. <img
  339. :src="
  340. isHovered2
  341. ? require('../assets/icon/newIcons/whiteLock.png')
  342. : require('../assets/icon/newIcons/lock.png')
  343. "
  344. alt=""
  345. />
  346. </div>
  347. <div class="lastText">权限</div>
  348. </div>
  349. <div
  350. class="returnBtn1 returnIcon"
  351. @click.stop="
  352. goTo(
  353. '/courseDetail?userid=' +
  354. userid +
  355. '&oid=' +
  356. oid +
  357. '&org=' +
  358. org +
  359. '&cid=' +
  360. classId +
  361. '&courseId=' +
  362. id +
  363. '&tType=' +
  364. tType +
  365. '&screenType=' +
  366. screenType
  367. )
  368. "
  369. >
  370. <div class="lastImg">
  371. <img src="../assets/icon/newIcon/return.png" alt="" />
  372. </div>
  373. <div class="lastText" style="color: #000">返回</div>
  374. </div>
  375. </div>
  376. <!-- <div
  377. class="returnBtn lockIcon"
  378. @click="juriVisible = true"
  379. v-if="tType == 1"
  380. >
  381. 权限
  382. </div>
  383. <div
  384. class="returnBtn vedioIcon"
  385. @click="startRecording"
  386. v-if="!videoStart && (tType == 1 || tType == 4)"
  387. >
  388. 录制
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="stopRecording"
  393. v-else-if="tType == 1 || tType == 4"
  394. style="background: #ee5255"
  395. >
  396. 下载
  397. </div>
  398. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  399. 评论
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(0)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 上一步
  407. </div>
  408. <div
  409. class="returnBtn"
  410. @click="nextOrpreSteps(1)"
  411. v-if="!(IsFollow && tType == 2)"
  412. >
  413. 下一步
  414. </div>
  415. <div class="returnBtn" @click="refreshCourse">刷新</div>
  416. <div
  417. class="returnBtn returnIcon"
  418. @click.stop="
  419. goTo(
  420. '/courseDetail?userid=' +
  421. userid +
  422. '&oid=' +
  423. oid +
  424. '&org=' +
  425. org +
  426. '&cid=' +
  427. classId +
  428. '&courseId=' +
  429. id +
  430. '&tType=' +
  431. tType +
  432. '&screenType=' +
  433. screenType
  434. )
  435. "
  436. >
  437. 返回
  438. </div> -->
  439. </div>
  440. </div>
  441. <div
  442. class="isNoMessage"
  443. v-if="
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .chapterData.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .toolChoose[0].tool.length == 0 &&
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail == '' &&
  450. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  451. .eList &&
  452. !(
  453. courseDetail.userid == userid ||
  454. (courseDetail.course_teacher &&
  455. courseDetail.course_teacher.indexOf(userid) != -1)
  456. )
  457. "
  458. >
  459. <img src="../assets/icon/isNoMessage.png" alt />
  460. </div>
  461. <div class="study_top" :class="{ pzClass: pzDialog }">
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[taskCount].length > 0 ||
  468. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail != ''
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail
  502. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div>
  510. <div
  511. class="student_head"
  512. v-if="
  513. vChapterData[taskCount].length > 0 ||
  514. fileC[taskCount].length > 0
  515. "
  516. >
  517. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  518. <div
  519. :class="
  520. contentDialog == false
  521. ? 'box_course isContentCss'
  522. : 'box_course'
  523. "
  524. v-if="
  525. vChapterData.length > 0 &&
  526. vChapterData[taskCount] &&
  527. showType !== ''
  528. "
  529. >
  530. <div class="wheel" style="height: auto" v-if="showType === 0">
  531. <div
  532. class="workd_media"
  533. style="height: 650px; width: calc(100% - 50px)"
  534. >
  535. <video-player
  536. class="video-player vjs-custom-skin"
  537. :class="contentDialog == false ? 'isAllWidth' : ''"
  538. :playsinline="true"
  539. :options="playerO[taskCount]"
  540. @play="onPlayerPlay($event)"
  541. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  542. ></video-player>
  543. </div>
  544. </div>
  545. <div
  546. class="wheel"
  547. v-if="showType == 1"
  548. style="
  549. box-shadow: 0 0 6px 1px #f2f2f2;
  550. width: 95%;
  551. margin: 0 auto;
  552. background: #f1f1f1;
  553. "
  554. >
  555. <div class="title">查看文档</div>
  556. <el-form class="textBox">
  557. <el-form-item class="textTitle">
  558. <div style="font-size: 22px">
  559. {{ text.name }}
  560. </div>
  561. </el-form-item>
  562. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  563. <div v-html="text.url" class="textContent cont"></div>
  564. </el-form>
  565. </div>
  566. <div
  567. class="wheel"
  568. v-if="
  569. pptImgUrl1.indexOf(
  570. 'https://view.officeapps.live.com/op/view.aspx?src='
  571. ) != -1 && showType == 2
  572. "
  573. style="width: 95%; margin: 0 auto"
  574. >
  575. <iframe
  576. style="width: 100%; height: 100%; border: none"
  577. :src="pptImgUrl1"
  578. ></iframe>
  579. </div>
  580. <div
  581. class="wheel"
  582. v-else-if="showType == 2"
  583. style="width: 95%; margin: 0 auto"
  584. >
  585. <iframe
  586. style="width: 100%; height: 100%; border: none"
  587. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  588. :key="diffKey"
  589. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  590. :src="pptImgUrl1"
  591. ></iframe>
  592. <iframe
  593. style="width: 100%; height: 100%; border: none"
  594. security="restricted"
  595. v-else
  596. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  597. :src="pptImgUrl1"
  598. ></iframe>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="showType === 16"
  603. style="width: 95%; margin: 0 auto"
  604. >
  605. <iframe
  606. style="width: 100%; height: 100%; border: none"
  607. :src="pptImgUrl1"
  608. ></iframe>
  609. </div>
  610. <div
  611. class="wheel"
  612. v-if="showType == 3"
  613. style="width: 95%; margin: 0 auto"
  614. >
  615. <pdf
  616. :pdfUrl="pptImgUrl1"
  617. style="width: 100%; height: 100%; overflow: auto"
  618. ></pdf>
  619. </div>
  620. <div
  621. class="wheel"
  622. v-if="showType == 4"
  623. style="width: 95%; margin: 0 auto"
  624. >
  625. <el-image
  626. :src="pptImgUrl1"
  627. fit="contain"
  628. style="width: 100%; height: 100%; cursor: pointer"
  629. @click="previewImg(pptImgUrl1)"
  630. ></el-image>
  631. </div>
  632. </div>
  633. <div
  634. class="pButton"
  635. style="position: absolute; right: 20px; top: 0; z-index: 998"
  636. v-if="!contentDialog"
  637. @click="setContent(true)"
  638. >
  639. <!-- 批 -->
  640. <img
  641. src="../assets/icon/newIcons/isLeft.png"
  642. style="width: 45px"
  643. alt=""
  644. />
  645. </div>
  646. <div
  647. v-if="contentDialog == true"
  648. :style="{
  649. width:
  650. (vChapterData[taskCount].length > 0 ||
  651. fileC[taskCount].length > 0) &&
  652. showType === ''
  653. ? 'calc(100%)'
  654. : '300px',
  655. margin:
  656. (vChapterData[taskCount].length > 0 ||
  657. fileC[taskCount].length > 0) &&
  658. showType === ''
  659. ? '0 15px'
  660. : '0 15px 0 0',
  661. }"
  662. >
  663. <div
  664. class="vedioList"
  665. v-if="
  666. vChapterData[taskCount].length > 0 ||
  667. fileC[taskCount].length > 0
  668. "
  669. style="height: 650px"
  670. >
  671. <div class="navCorOpenBox">
  672. <div class="navTitile">内容列表:</div>
  673. <div class="navCorOpen" @click="setContent(false)">
  674. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  675. </div>
  676. </div>
  677. <div class="navBox">
  678. <div
  679. v-show="
  680. vChapterData[taskCount].length > 0 ||
  681. fileC[taskCount].length > 0
  682. "
  683. style="padding: 10px 0 25px 0"
  684. >
  685. <div
  686. class="vedioTimeBox"
  687. v-for="(vitem, vindex) in vChapterData[taskCount]"
  688. :key="vindex + '1'"
  689. >
  690. <div class="navListItem" v-if="vitem.type == 2">
  691. <div
  692. @click="lookVedio(vitem.url, vindex)"
  693. class="navText"
  694. :class="isClickNav == vindex ? 'isClickNav' : ''"
  695. >
  696. <span v-if="vitem.text">{{ vitem.text }}-</span
  697. >{{ vitem.name }}
  698. </div>
  699. <div class="downIcon" @click="downloadFile2(vitem)">
  700. <img src="../assets/icon/newIcon/down.png" alt />
  701. </div>
  702. </div>
  703. <div class="navListItem" v-if="vitem.type == 6">
  704. <div
  705. @click="lookText(taskCount, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. {{ vitem.name }}.doc
  710. </div>
  711. <div
  712. class="downIcon"
  713. @click="checkFileFull1(vitem.type, vitem)"
  714. >
  715. <img
  716. src="../assets/icon/newIcon/allScreen.png"
  717. alt
  718. />
  719. </div>
  720. </div>
  721. <div
  722. class="navListItem"
  723. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  724. >
  725. <div
  726. @click="doUrl(vitem.url, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. {{ vitem.title ? vitem.title : vitem.url }}
  731. </div>
  732. <div
  733. class="downIcon"
  734. @click="checkFileFull1(vitem.type, vitem)"
  735. >
  736. <img
  737. src="../assets/icon/newIcon/allScreen.png"
  738. alt
  739. />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 3">
  743. <div
  744. @click="downFile(vitem, vindex)"
  745. class="navText"
  746. :class="isClickNav == vindex ? 'isClickNav' : ''"
  747. >
  748. <span v-if="vitem.text">{{ vitem.text }}-</span
  749. >{{ vitem.name }}
  750. </div>
  751. <div
  752. class="downIcon"
  753. @click="checkFileFull1(vitem.type, vitem)"
  754. >
  755. <img
  756. src="../assets/icon/newIcon/allScreen.png"
  757. alt
  758. />
  759. </div>
  760. <div class="downIcon" @click="downloadFile2(vitem)">
  761. <img src="../assets/icon/newIcon/down.png" alt />
  762. </div>
  763. </div>
  764. <div class="navListItem" v-if="vitem.type == 12">
  765. <div class="navText" @click="downloadFile2(vitem)">
  766. <span v-if="vitem.text">{{ vitem.text }}-</span
  767. >{{ vitem.name }}
  768. </div>
  769. <div
  770. class="downIcon"
  771. @click="checkFileFull1(vitem.type, vitem)"
  772. >
  773. <img
  774. src="../assets/icon/newIcon/allScreen.png"
  775. alt
  776. />
  777. </div>
  778. <div class="downIcon" @click="downloadFile2(vitem)">
  779. <img src="../assets/icon/newIcon/down.png" alt />
  780. </div>
  781. </div>
  782. <div class="navListItem" v-if="vitem.type == 13">
  783. <div
  784. class="navText"
  785. @click="checkPhoto(vitem, vindex)"
  786. :class="isClickNav == vindex ? 'isClickNav' : ''"
  787. >
  788. {{ vitem.name }}
  789. </div>
  790. <div class="downIcon" @click="downloadFile2(vitem)">
  791. <img src="../assets/icon/newIcon/down.png" alt />
  792. </div>
  793. </div>
  794. <div class="navListItem" v-if="vitem.type == 16">
  795. <div
  796. class="navText"
  797. @click="checkHtml(vitem, vindex)"
  798. :class="isClickNav == vindex ? 'isClickNav' : ''"
  799. >
  800. {{ vitem.name }}
  801. </div>
  802. <div
  803. class="downIcon"
  804. @click="checkFileFull1(vitem.type, vitem)"
  805. >
  806. <img
  807. src="../assets/icon/newIcon/allScreen.png"
  808. alt
  809. />
  810. </div>
  811. </div>
  812. </div>
  813. <div
  814. class="fileC_box"
  815. v-if="fileC[taskCount].length > 0"
  816. >
  817. <div class="fileC_title">以下文件不支持预览</div>
  818. <div
  819. class="vedioTimeBox"
  820. v-for="(vitem, vindex) in fileC[taskCount]"
  821. :key="vindex + '1'"
  822. >
  823. <div class="navListItem" v-if="vitem.type == 12">
  824. <div class="navText" style="color: #acb4bf">
  825. <span v-if="vitem.text">{{ vitem.text }}-</span
  826. >{{ vitem.name }}
  827. </div>
  828. <div
  829. class="downIcon"
  830. @click="downloadFile2(vitem)"
  831. >
  832. <img
  833. src="../assets/icon/newIcon/down.png"
  834. alt
  835. />
  836. </div>
  837. </div>
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. <div style="width: calc(100% - 315px)">
  846. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  847. <!-- <el-button
  848. type="primary"
  849. class="newButton"
  850. @click="checkFileFull(showType, pptImgUrl1)"
  851. >全屏查看</el-button
  852. >
  853. <el-button
  854. type="primary"
  855. class="newButton"
  856. @click="downloadFile(pptImgUrl1)"
  857. v-if="showType != 2"
  858. >文件下载</el-button
  859. > -->
  860. <el-button
  861. class="newButton"
  862. v-if="
  863. showType == 2 &&
  864. pptImgUrl1.indexOf(
  865. 'https://view.officeapps.live.com/op/view.aspx?src='
  866. ) == -1
  867. "
  868. type="primary"
  869. @click="openLine(pptImgUrl1)"
  870. >打开链接
  871. </el-button>
  872. </div>
  873. <!-- <div
  874. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  875. v-if="showType == 1"
  876. >
  877. <el-button
  878. type="primary"
  879. class="newButton"
  880. @click="checkFileFull(showType, text)"
  881. >全屏查看</el-button
  882. >
  883. </div> -->
  884. </div>
  885. </div>
  886. </div>
  887. <div class="student_body" v-resize="resize">
  888. <div
  889. class="vedioBox"
  890. :style="{
  891. borderRadius:
  892. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  893. .taskDetail == '' &&
  894. vChapterData[taskCount].length == 0 &&
  895. fileC[taskCount].length == 0
  896. ? '0 0 20px 20px'
  897. : '20px',
  898. }"
  899. v-if="
  900. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  901. .toolChoose[0].tool &&
  902. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  903. .toolChoose[0].tool.length > 0
  904. "
  905. >
  906. <div
  907. class="toolHeng2"
  908. style="position: relative"
  909. v-if="
  910. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  911. .toolChoose[0].tool &&
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .toolChoose[0].tool.length &&
  914. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  915. .toolChoose[0].tool.length > 0
  916. "
  917. >
  918. <div class="workNav">工作区</div>
  919. <div
  920. class="filebox"
  921. style="flex-wrap: nowrap"
  922. v-for="(tool, toolIndex) in chapInfoList[courseType]
  923. .chapterInfo[0].taskJson[taskCount].toolChoose"
  924. :key="toolIndex"
  925. >
  926. <div class="bzBox">
  927. <div class="yCss"></div>
  928. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  929. 工具{{ toolIndex + 1 }}
  930. </div>
  931. <div
  932. v-if="timeWorkList[toolIndex].length > 0"
  933. style="margin: 0 0 0 10px"
  934. >
  935. {{
  936. timeWorkList[toolIndex][0].time
  937. ? "时间:" + timeWorkList[toolIndex][0].time
  938. : ""
  939. }}
  940. </div>
  941. </div>
  942. <div class="toolBox">
  943. <div>
  944. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  945. :key="indexTool"-->
  946. <!-- <div class="iframeBox">
  947. <div
  948. class="addPoint isBorder"
  949. v-for="(tooC, toolCIndex) in tool.tool"
  950. :key="toolCIndex"
  951. >
  952. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  953. <div
  954. class="iframeName"
  955. >
  956. 电子白板
  957. </div>
  958. <iframe
  959. src="https://iwb.cocorobo.cn/"
  960. ref="whiteBoard"
  961. ></iframe>
  962. </div>
  963. </div>
  964. </div>-->
  965. <div class="noiframeBox">
  966. <div
  967. class="addPoint"
  968. v-for="(tooC, toolCIndex) in tool.tool"
  969. :key="toolCIndex"
  970. >
  971. <div v-if="tooC == 1">
  972. <img
  973. src="../assets/icon/secondToolList/whiteBoard.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">电子白板</div>
  978. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  979. style="position: absolute;right: 33px;top: -30px;">
  980. 分析
  981. </div>
  982. </div>
  983. <div v-if="tooC == 3">
  984. <img
  985. src="../assets/icon/secondToolList/mindMapping.png"
  986. alt
  987. @click="addTools(tooC, toolIndex, taskCount)"
  988. />
  989. <div style="margin: 5px 0">思维导图</div>
  990. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  991. style="position: absolute;right: 33px;top: -30px;">
  992. 分析
  993. </div>
  994. </div>
  995. <div v-if="tooC == 6">
  996. <img
  997. src="../assets/icon/secondToolList/doc.png"
  998. alt
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. />
  1001. <div style="margin: 5px 0">协同文档</div>
  1002. </div>
  1003. <div v-if="tooC == 7">
  1004. <img
  1005. src="../assets/icon/secondToolList/mindNetwork.png"
  1006. alt
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. />
  1009. <div style="margin: 5px 0">思维网格</div>
  1010. <!-- && worksStudent[toolIndex].length>0 -->
  1011. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1012. style="position: absolute;right: 33px;top: -30px;">
  1013. 分析
  1014. </div>
  1015. </div>
  1016. <div v-if="tooC == 8">
  1017. <img
  1018. src="../assets/icon/secondToolList/library.png"
  1019. alt
  1020. @click="addTools(tooC, toolIndex, taskCount)"
  1021. />
  1022. <div style="margin: 5px 0">素材库</div>
  1023. </div>
  1024. <div v-if="tooC == 17">
  1025. <img
  1026. src="../assets/icon/secondToolList/library.png"
  1027. alt
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. />
  1030. <div style="margin: 5px 0">学习资料</div>
  1031. </div>
  1032. <div v-if="tooC == 2">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../assets/icon/secondToolList/note.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">便签</div>
  1039. </div>
  1040. <div v-if="tooC == 4">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../assets/icon/thirdToolList/ask.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">问卷调查</div>
  1047. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1048. style="position: absolute;right: 153px;top: -30px;">
  1049. 分析
  1050. </div>
  1051. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 统计分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 45">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../assets/icon/thirdToolList/choose.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">选择题</div>
  1063. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1064. style="position: absolute;right: 33px;top: -30px;">
  1065. 分析
  1066. </div>
  1067. </div>
  1068. <!-- <div v-if="tooC == 5">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../assets/icon/thirdToolList/score.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">量规评分</div>
  1075. </div> -->
  1076. <div v-if="tooC == 10">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../assets/icon/thirdToolList/time.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">倒计时</div>
  1083. </div>
  1084. <div v-if="tooC == 15">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../assets/icon/thirdToolList/answer.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">问答</div>
  1091. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1092. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1093. 分析
  1094. </div>
  1095. </div>
  1096. <div v-if="tooC == 26">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/thirdToolList/courseDesign.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">课程设计</div>
  1103. </div>
  1104. <div v-if="tooC == 18">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/thirdToolList/trainPlatform.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">训练服务器</div>
  1111. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1112. style="position: absolute;right: 33px;top: -30px;">
  1113. 分析
  1114. </div>
  1115. </div>
  1116. <div v-if="tooC == 16">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../assets/icon/thirdToolList/work.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">作业提交</div>
  1123. </div>
  1124. <div v-if="tooC == 50">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../assets/icon/thirdToolList/plwork.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">批量上传</div>
  1131. </div>
  1132. <div v-if="tooC == 21">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../assets/icon/fourthToolList/program.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">AIoT Blockly</div>
  1139. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1140. style="position: absolute;right: 33px;top: -30px;">
  1141. 分析
  1142. </div>
  1143. </div>
  1144. <!-- <div v-if="tooC == 22">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../assets/icon/fourthToolList/program.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">AI体验</div>
  1151. </div> -->
  1152. <div v-if="tooC == 23">
  1153. <img
  1154. @click="addTools(tooC, toolIndex, taskCount)"
  1155. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">AI Python</div>
  1159. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1160. style="position: absolute;right: 33px;top: -30px;">
  1161. 分析
  1162. </div>
  1163. </div>
  1164. <div v-if="tooC == 24">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../assets/icon/fourthToolList/AIprogram.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">AI Blockly</div>
  1171. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1172. style="position: absolute;right: 33px;top: -30px;">
  1173. 分析
  1174. </div>
  1175. </div>
  1176. <div v-if="tooC == 25">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../assets/icon/thirdToolList/evalua.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">目标管理</div>
  1183. </div>
  1184. <div v-if="tooC == 31">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../assets/icon/secondToolList/networkPanel.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">数学画板</div>
  1191. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1192. style="position: absolute;right: 33px;top: -30px;">
  1193. 分析
  1194. </div>
  1195. </div>
  1196. <div v-if="tooC == 28">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../assets/icon/secondToolList/translation.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">翻译</div>
  1203. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1204. style="position: absolute;right: 33px;top: -30px;">
  1205. 分析
  1206. </div>
  1207. </div>
  1208. <div v-if="tooC == 37">
  1209. <img
  1210. @click="addTools(tooC, toolIndex, taskCount)"
  1211. src="../assets/icon/secondToolList/mohe.png"
  1212. alt
  1213. />
  1214. <div style="margin: 5px 0">魔盒识字</div>
  1215. </div>
  1216. <div v-if="tooC == 38">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../assets/icon/secondToolList/24game.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">24点</div>
  1223. </div>
  1224. <div v-if="tooC == 39">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../assets/icon/secondToolList/GeoGebra.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">GeoGebra</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 32">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/thirdToolList/code.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">源码编辑</div>
  1243. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1244. style="position: absolute;right: 153px;top: -42px;">
  1245. 分析
  1246. </div>
  1247. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1248. style="position: absolute;left: 110px;bottom: 30px;">
  1249. 上传文件
  1250. <input type="file" accept="*" style="display: none"
  1251. @change="beforeUpload1($event, 7, toolIndex)" />
  1252. </div> -->
  1253. </div>
  1254. <div v-if="tooC == 40">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../assets/icon/secondToolList/eval.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">个人评价</div>
  1261. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1262. style="position: absolute;right: 33px;top: -30px;">
  1263. 分析
  1264. </div>
  1265. </div>
  1266. <div v-if="tooC == 41">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../assets/icon/thirdToolList/select.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">选择匹配</div>
  1273. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1274. style="position: absolute;right: 33px;top: -30px;">
  1275. 分析
  1276. </div>
  1277. </div>
  1278. <div v-if="tooC == 44">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../assets/icon/thirdToolList/hanClass.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">汉字宫</div>
  1285. </div>
  1286. <div v-if="tooC == 47">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../assets/icon/fourthToolList/conSentences.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">排序</div>
  1293. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1294. style="position: absolute;right: 33px;top: -30px;">
  1295. 分析
  1296. </div>
  1297. </div>
  1298. <div v-if="tooC == 48">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../assets/icon/fourthToolList/table.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">表格</div>
  1305. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1306. style="position: absolute;right: 33px;top: -30px;">
  1307. 分析
  1308. </div>
  1309. </div>
  1310. <div v-if="tooC == 52">
  1311. <img
  1312. @click="addTools(tooC, toolIndex, taskCount)"
  1313. src="../assets/icon/fourthToolList/text.png"
  1314. alt
  1315. />
  1316. <div style="margin: 5px 0">文档</div>
  1317. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1318. style="position: absolute;right: 33px;top: -30px;">
  1319. 分析
  1320. </div>
  1321. </div>
  1322. <div v-if="tooC == 49">
  1323. <img
  1324. @click="addTools(tooC, toolIndex, taskCount)"
  1325. src="../assets/icon/fourthToolList/group.png"
  1326. alt
  1327. />
  1328. <div style="margin: 5px 0">学生分组</div>
  1329. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1330. style="position: absolute;right: 33px;top: -30px;">
  1331. 分析
  1332. </div>
  1333. </div>
  1334. <div v-if="tooC == 57">
  1335. <img
  1336. @click="addTools(tooC, toolIndex, taskCount)"
  1337. src="../assets/icon/fourthToolList/cocopi.png"
  1338. alt
  1339. />
  1340. <div style="margin: 5px 0">CocoPi</div>
  1341. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1342. style="position: absolute;right: 33px;top: -30px;">
  1343. 分析
  1344. </div>
  1345. </div>
  1346. <div v-if="tooC == 58">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../assets/icon/fourthToolList/car.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">模拟驾驶</div>
  1353. </div>
  1354. <div v-if="tooC == 59">
  1355. <img
  1356. @click="addTools(tooC, toolIndex, taskCount)"
  1357. src="../assets/icon/fourthToolList/lineSearch.png"
  1358. alt
  1359. />
  1360. <div style="margin: 5px 0">路径搜索</div>
  1361. </div>
  1362. <div v-if="tooC == 60">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../assets/icon/fourthToolList/deepLearning.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">深度学习</div>
  1369. </div>
  1370. <div v-if="tooC == 61">
  1371. <img
  1372. @click="addTools(tooC, toolIndex, taskCount)"
  1373. src="../assets/icon/fourthToolList/allHistory.png"
  1374. alt
  1375. />
  1376. <div style="margin: 5px 0">全历史</div>
  1377. </div>
  1378. <div v-if="tooC == 62">
  1379. <img
  1380. @click="addTools(tooC, toolIndex, taskCount)"
  1381. src="../assets/icon/fourthToolList/interVideo.png"
  1382. alt
  1383. />
  1384. <div style="margin: 5px 0">交互视频</div>
  1385. </div>
  1386. <div v-if="tooC == 63">
  1387. <img
  1388. @click="addTools(tooC, toolIndex, taskCount)"
  1389. src="../assets/icon/fourthToolList/Wood.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">海龟编程</div>
  1393. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1394. style="position: absolute;right: 33px;top: -30px;">
  1395. 分析
  1396. </div>
  1397. </div>
  1398. <div v-if="tooC == 71">
  1399. <img
  1400. @click="addTools(tooC, toolIndex, taskCount)"
  1401. src="../assets/icon/fourthToolList/chatgpt.png"
  1402. alt
  1403. />
  1404. <div style="margin: 5px 0">AI智能体</div>
  1405. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1406. style="position: absolute;right: 33px;top: -30px;">
  1407. 分析
  1408. </div>
  1409. </div>
  1410. <div v-if="tooC == 72">
  1411. <img
  1412. style="height: 85px;object-fit: cover;"
  1413. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1414. @click="addTools(tooC, toolIndex, taskCount)"
  1415. :src="tool.appJson.json.icon"
  1416. alt
  1417. />
  1418. <img
  1419. v-else
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../assets/icon/firstToolList/appStore.png"
  1422. alt
  1423. />
  1424. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1425. <!-- content to trigger tooltip here -->
  1426. <div class="Ovh">
  1427. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1428. </div>
  1429. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1430. style="position: absolute;right: 33px;top: -30px;">
  1431. 分析
  1432. </div>
  1433. </el-tooltip>
  1434. </div>
  1435. <div v-if="tooC == 65">
  1436. <img
  1437. @click="addTools(tooC, toolIndex, taskCount)"
  1438. src="../assets/icon/firstToolList/pickPeople.png"
  1439. alt
  1440. />
  1441. <div style="margin: 5px 0">挑人</div>
  1442. </div>
  1443. <div v-if="tooC == 66">
  1444. <img
  1445. @click="addTools(tooC, toolIndex, taskCount)"
  1446. src="../assets/icon/secondToolList/formulaEdi.png"
  1447. alt
  1448. />
  1449. <div style="margin: 5px 0">公式编辑</div>
  1450. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1451. style="position: absolute;right: 33px;top: -30px;">
  1452. 分析
  1453. </div>
  1454. </div>
  1455. <div v-if="tooC == 67">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../assets/icon/secondToolList/molStr.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">分子结构</div>
  1462. </div>
  1463. <div v-if="tooC == 68">
  1464. <img
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. src="../assets/icon/secondToolList/timeAxis.png"
  1467. alt
  1468. />
  1469. <div style="margin: 5px 0">时间轴</div>
  1470. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div> -->
  1474. </div>
  1475. <div v-if="tooC == 69">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../assets/icon/secondToolList/english.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">英语写作</div>
  1482. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1483. style="position: absolute;right: 33px;top: -30px;">
  1484. 分析
  1485. </div>
  1486. </div>
  1487. <div v-if="tooC == 70">
  1488. <img
  1489. @click="addTools(tooC, toolIndex, taskCount)"
  1490. src="../assets/icon/thirdToolList/englishVoice.png"
  1491. alt
  1492. />
  1493. <div style="margin: 5px 0">英语口语</div>
  1494. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1495. style="position: absolute;right: 33px;top: -30px;">
  1496. 分析
  1497. </div>
  1498. </div>
  1499. </div>
  1500. </div>
  1501. </div>
  1502. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1503. <!-- <div class="toolTitle">工具描述</div> -->
  1504. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1505. <div style="height:100%;"
  1506. v-html="renderedFormula(tool.toolDetail)"
  1507. v-if="toolDetailIndex != toolIndex"
  1508. ></div>
  1509. <div v-else @click.stop="" style="height:100%;">
  1510. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1511. </div>
  1512. </div>
  1513. <el-button
  1514. type="primary"
  1515. v-if="tool.tool[0] == 32"
  1516. style="position: absolute; right: 30px; top: -45px"
  1517. @click="addImg($event)"
  1518. >上传作业<input
  1519. type="file"
  1520. accept="*"
  1521. style="display: none"
  1522. @change="beforeUpload1($event, 7, toolIndex)"
  1523. /></el-button>
  1524. <el-button
  1525. type="primary"
  1526. v-if="tool.tool[0] == 15"
  1527. style="position: absolute; right: 30px; top: -45px"
  1528. @click="openWordCloud(toolIndex)"
  1529. >生成词云</el-button
  1530. >
  1531. <el-button
  1532. type="primary"
  1533. v-if="
  1534. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1535. "
  1536. style="position: absolute; right: 30px; top: -45px"
  1537. @click="uploadWorks(toolIndex)"
  1538. >导出作业</el-button
  1539. >
  1540. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1541. position: absolute;
  1542. right: 30px;
  1543. transform: translateY(-130%);
  1544. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1545. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1546. </div>
  1547. <div
  1548. v-if="
  1549. tType &&
  1550. tType == 2 &&
  1551. !sIsOpen &&
  1552. tool.tool.indexOf(16) != -1
  1553. "
  1554. class="worksBox"
  1555. >
  1556. <div
  1557. class="zuoyeYulan"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <span class="worksTitle">作业预览</span>
  1561. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1562. </div>
  1563. <div
  1564. class="worksDetailBox"
  1565. v-if="workStudent[toolIndex].length > 0"
  1566. >
  1567. <div
  1568. class="works"
  1569. style="
  1570. width: 200px;
  1571. height: 140px;
  1572. margin: 10px 10px 10px 0;
  1573. box-shadow: 0 0 6px 1px #dfdada;
  1574. "
  1575. v-for="(w, wIndex) in workStudent[toolIndex]"
  1576. :key="wIndex"
  1577. >
  1578. <div class="workImg" v-if="w.type == 0">
  1579. <img
  1580. :src="w.works"
  1581. @click="previewImg(w.works,w)"
  1582. alt
  1583. />
  1584. <div
  1585. class="answerScore"
  1586. v-if="w.score"
  1587. @click.stop="openScore(w)"
  1588. :class="{
  1589. rightW:
  1590. w.userid == userid || tType == 1 || tType == 4,
  1591. }"
  1592. >
  1593. {{ JSON.parse(w.score).wScore }}分
  1594. </div>
  1595. <div
  1596. class="answerScore"
  1597. @click.stop="openScore(w)"
  1598. v-else-if="courseDetail.userid == userid"
  1599. :class="{
  1600. rightW:
  1601. w.userid == userid || tType == 1 || tType == 4,
  1602. }"
  1603. >
  1604. 评分
  1605. </div>
  1606. <img
  1607. class="deleteImg"
  1608. src="../assets/deleteworks.png"
  1609. v-if="
  1610. w.userid == userid || tType == 1 || tType == 4
  1611. "
  1612. @click.stop="deleteWorks(w.wid)"
  1613. alt
  1614. />
  1615. </div>
  1616. <div class="workImg" v-if="w.type == 1">
  1617. <img :src="word" @click="openFile(w.works,w)" alt />
  1618. <div
  1619. class="answerScore"
  1620. v-if="w.score"
  1621. @click.stop="openScore(w)"
  1622. :class="{
  1623. rightW:
  1624. w.userid == userid || tType == 1 || tType == 4,
  1625. }"
  1626. >
  1627. {{ JSON.parse(w.score).wScore }}分
  1628. </div>
  1629. <div
  1630. class="answerScore"
  1631. @click.stop="openScore(w)"
  1632. v-else-if="courseDetail.userid == userid"
  1633. :class="{
  1634. rightW:
  1635. w.userid == userid || tType == 1 || tType == 4,
  1636. }"
  1637. >
  1638. 评分
  1639. </div>
  1640. <img
  1641. class="deleteImg"
  1642. src="../assets/deleteworks.png"
  1643. v-if="
  1644. w.userid == userid || tType == 1 || tType == 4
  1645. "
  1646. @click.stop="deleteWorks(w.wid)"
  1647. alt
  1648. />
  1649. </div>
  1650. <div class="workImg" v-if="w.type == 3">
  1651. <img
  1652. style="cursor: pointer"
  1653. :src="video"
  1654. @click="openVideo(w)"
  1655. alt
  1656. />
  1657. <div
  1658. class="answerScore"
  1659. v-if="w.score"
  1660. @click.stop="openScore(w)"
  1661. :class="{
  1662. rightW:
  1663. w.userid == userid || tType == 1 || tType == 4,
  1664. }"
  1665. >
  1666. {{ JSON.parse(w.score).wScore }}分
  1667. </div>
  1668. <div
  1669. class="answerScore"
  1670. @click.stop="openScore(w)"
  1671. v-else-if="courseDetail.userid == userid"
  1672. :class="{
  1673. rightW:
  1674. w.userid == userid || tType == 1 || tType == 4,
  1675. }"
  1676. >
  1677. 评分
  1678. </div>
  1679. <img
  1680. class="deleteImg"
  1681. src="../assets/deleteworks.png"
  1682. v-if="
  1683. w.userid == userid || tType == 1 || tType == 4
  1684. "
  1685. @click.stop="deleteWorks(w.wid)"
  1686. alt
  1687. />
  1688. </div>
  1689. <div class="workImg" v-if="w.type == 12">
  1690. <img
  1691. style="cursor: pointer"
  1692. :src="word2"
  1693. @click="downloadFile(w.works,w.userid)"
  1694. alt
  1695. />
  1696. <div
  1697. class="answerScore"
  1698. v-if="w.score"
  1699. @click.stop="openScore(w)"
  1700. :class="{
  1701. rightW:
  1702. w.userid == userid || tType == 1 || tType == 4,
  1703. }"
  1704. >
  1705. {{ JSON.parse(w.score).wScore }}分
  1706. </div>
  1707. <div
  1708. class="answerScore"
  1709. @click.stop="openScore(w)"
  1710. v-else-if="courseDetail.userid == userid"
  1711. :class="{
  1712. rightW:
  1713. w.userid == userid || tType == 1 || tType == 4,
  1714. }"
  1715. >
  1716. 评分
  1717. </div>
  1718. <img
  1719. class="deleteImg"
  1720. src="../assets/deleteworks.png"
  1721. v-if="
  1722. w.userid == userid || tType == 1 || tType == 4
  1723. "
  1724. @click.stop="deleteWorks(w.wid)"
  1725. alt
  1726. />
  1727. </div>
  1728. <div class="worksName">
  1729. <div>{{ w.sName }}</div>
  1730. </div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. <div
  1735. v-if="
  1736. tType &&
  1737. tType == 2 &&
  1738. !sIsOpen &&
  1739. tool.tool.indexOf(32) != -1
  1740. "
  1741. class="worksBox"
  1742. >
  1743. <div
  1744. class="zuoyeYulan"
  1745. v-if="workStudent[toolIndex].length > 0"
  1746. >
  1747. <span class="worksTitle">作业预览</span>
  1748. </div>
  1749. <div
  1750. class="worksDetailBox"
  1751. v-if="workStudent[toolIndex].length > 0"
  1752. >
  1753. <div
  1754. class="works"
  1755. style="
  1756. width: 200px;
  1757. height: 140px;
  1758. margin: 10px 10px 10px 0;
  1759. box-shadow: 0 0 6px 1px #dfdada;
  1760. "
  1761. v-for="(w, wIndex) in workStudent[toolIndex]"
  1762. :key="wIndex"
  1763. >
  1764. <div class="workImg">
  1765. <img
  1766. :src="word2"
  1767. @click="downloadFile(w.works,w.userid)"
  1768. alt
  1769. />
  1770. <div
  1771. class="answerScore"
  1772. v-if="w.score"
  1773. @click.stop="openScore(w)"
  1774. :class="{
  1775. rightW:
  1776. w.userid == userid || tType == 1 || tType == 4,
  1777. }"
  1778. >
  1779. {{ JSON.parse(w.score).wScore }}分
  1780. </div>
  1781. <div
  1782. class="answerScore"
  1783. @click.stop="openScore(w)"
  1784. v-else-if="courseDetail.userid == userid"
  1785. :class="{
  1786. rightW:
  1787. w.userid == userid || tType == 1 || tType == 4,
  1788. }"
  1789. >
  1790. 评分
  1791. </div>
  1792. <img
  1793. class="deleteImg"
  1794. src="../assets/deleteworks.png"
  1795. v-if="
  1796. w.userid == userid || tType == 1 || tType == 4
  1797. "
  1798. @click.stop="deleteWorks(w.wid)"
  1799. alt
  1800. />
  1801. </div>
  1802. <div class="worksName">
  1803. <div>{{ w.sName }}</div>
  1804. </div>
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(57) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. </div>
  1823. <div
  1824. class="worksDetailBox"
  1825. v-if="workStudent[toolIndex].length > 0"
  1826. >
  1827. <div
  1828. class="works"
  1829. style="
  1830. width: 200px;
  1831. height: 140px;
  1832. margin: 10px 10px 10px 0;
  1833. box-shadow: 0 0 6px 1px #dfdada;
  1834. "
  1835. v-for="(w, wIndex) in workStudent[toolIndex]"
  1836. :key="wIndex"
  1837. >
  1838. <div class="workImg">
  1839. <img
  1840. :src="word2"
  1841. @click="downloadFile(w.works,w.userid)"
  1842. v-if="w.type == 12"
  1843. alt
  1844. />
  1845. <img
  1846. :src="word2"
  1847. @click="
  1848. openCocoPi(57, toolIndex, w.userid, w.sName)
  1849. "
  1850. v-else-if="w.type == 15"
  1851. alt
  1852. />
  1853. <div
  1854. class="answerScore"
  1855. v-if="w.score"
  1856. @click.stop="openScore(w)"
  1857. :class="{
  1858. rightW:
  1859. w.userid == userid || tType == 1 || tType == 4,
  1860. }"
  1861. >
  1862. {{ JSON.parse(w.score).wScore }}分
  1863. </div>
  1864. <div
  1865. class="answerScore"
  1866. @click.stop="openScore(w)"
  1867. v-else-if="courseDetail.userid == userid"
  1868. :class="{
  1869. rightW:
  1870. w.userid == userid || tType == 1 || tType == 4,
  1871. }"
  1872. >
  1873. 评分
  1874. </div>
  1875. <img
  1876. class="deleteImg"
  1877. src="../assets/deleteworks.png"
  1878. v-if="
  1879. w.userid == userid || tType == 1 || tType == 4
  1880. "
  1881. @click.stop="deleteWorks(w.wid)"
  1882. alt
  1883. />
  1884. </div>
  1885. <div class="worksName">
  1886. <div>{{ w.sName }}</div>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. </div>
  1891. <div
  1892. v-if="
  1893. tType &&
  1894. tType == 2 &&
  1895. !sIsOpen &&
  1896. tool.tool.indexOf(4) != -1
  1897. "
  1898. class="worksBox"
  1899. >
  1900. <div
  1901. class="zuoyeYulan"
  1902. v-if="workStudent[toolIndex].length > 0"
  1903. >
  1904. <span class="worksTitle">作业预览</span>
  1905. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1906. </div>
  1907. <div
  1908. class="worksDetailBox"
  1909. v-if="workStudent[toolIndex].length > 0"
  1910. >
  1911. <div
  1912. class="isWorksName2"
  1913. v-for="(w, wIndex) in workStudent[toolIndex]"
  1914. :key="wIndex"
  1915. @click="
  1916. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1917. "
  1918. >
  1919. {{ w.sName }}
  1920. <img
  1921. class="deleteImg deleteImg2"
  1922. src="../assets/deleteworks.png"
  1923. v-if="w.userid == userid || tType == 1 || tType == 4"
  1924. @click.stop="deleteWorks(w.wid)"
  1925. alt
  1926. />
  1927. </div>
  1928. <!-- <div
  1929. class="works"
  1930. style="
  1931. width: 200px;
  1932. height: 140px;
  1933. border-radius: 10px;
  1934. box-shadow: 0 0 6px 1px #dfdada;
  1935. overflow: hidden;
  1936. "
  1937. v-for="(w, wIndex) in workStudent[toolIndex]"
  1938. :key="wIndex"
  1939. >
  1940. <div class="workImg">
  1941. <img
  1942. src="../assets/icon/works/noImg.png"
  1943. @click="
  1944. openTools(
  1945. 4,
  1946. toolIndex,
  1947. taskCount,
  1948. w.works,
  1949. w.sName
  1950. )
  1951. "
  1952. alt
  1953. />
  1954. </div>
  1955. <div class="worksName">
  1956. <div>{{ w.sName }}</div>
  1957. <div>{{ w.time }}</div>
  1958. </div>
  1959. </div> -->
  1960. </div>
  1961. </div>
  1962. <div
  1963. v-if="
  1964. tType &&
  1965. ((tType == 2 && sIsOpen == true) ||
  1966. tType == 1 ||
  1967. tType == 4) &&
  1968. tool.tool.indexOf(62) != -1
  1969. "
  1970. class="worksBox"
  1971. >
  1972. <div
  1973. class="zuoyeYulan"
  1974. v-if="
  1975. worksStudent.length &&
  1976. worksStudent[toolIndex].length > 0
  1977. "
  1978. >
  1979. <div class="worksTop">
  1980. <div>作业预览</div>
  1981. <div
  1982. class="corOpen"
  1983. @click="contract(toolIndex)"
  1984. v-if="
  1985. (isCloseList[toolIndex].isCloseBoolean) &&
  1986. isCloseList[toolIndex].isClose == 0
  1987. "
  1988. >
  1989. 折叠
  1990. </div>
  1991. <div
  1992. class="corOpen"
  1993. @click="contract(toolIndex)"
  1994. v-if="isCloseList[toolIndex].isClose == 1"
  1995. >
  1996. 展开
  1997. </div>
  1998. </div>
  1999. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2000. </div>
  2001. <div>
  2002. <div
  2003. :id="'tool-' + toolIndex"
  2004. :style="{
  2005. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2006. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2007. }"
  2008. class="worksDetailBox"
  2009. v-if="
  2010. worksStudent.length &&
  2011. worksStudent[toolIndex].length > 0
  2012. "
  2013. >
  2014. <div
  2015. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2016. :key="wIndex"
  2017. class="isWorksName2"
  2018. @click="
  2019. openTools(
  2020. 62,
  2021. toolIndex,
  2022. taskCount,
  2023. w.works,
  2024. w.sName
  2025. )
  2026. "
  2027. >
  2028. {{ w.sName }}
  2029. <img
  2030. class="deleteImg deleteImg2"
  2031. src="../assets/deleteworks.png"
  2032. v-if="
  2033. w.userid == userid || tType == 1 || tType == 4
  2034. "
  2035. @click.stop="deleteWorks(w.wid)"
  2036. alt
  2037. />
  2038. </div>
  2039. </div>
  2040. </div>
  2041. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2042. 未提交
  2043. </div>
  2044. <div
  2045. class="noWorksS"
  2046. v-if="noWorksS && noWorksS[toolIndex].length"
  2047. >
  2048. <div
  2049. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2050. :key="sIndex"
  2051. class="noWorksName"
  2052. >
  2053. <el-tooltip effect="dark" :content="s.student" placement="top">
  2054. <span>{{ s.student }}</span>
  2055. </el-tooltip>
  2056. </div>
  2057. </div>
  2058. </div>
  2059. <div
  2060. v-if="
  2061. tType &&
  2062. tType == 2 &&
  2063. !sIsOpen &&
  2064. tool.tool.indexOf(62) != -1
  2065. "
  2066. class="worksBox"
  2067. >
  2068. <div
  2069. class="zuoyeYulan"
  2070. v-if="workStudent[toolIndex].length > 0"
  2071. >
  2072. <span class="worksTitle">作业预览</span>
  2073. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2074. </div>
  2075. <div
  2076. class="worksDetailBox"
  2077. v-if="workStudent[toolIndex].length > 0"
  2078. >
  2079. <div
  2080. class="isWorksName2"
  2081. v-for="(w, wIndex) in workStudent[toolIndex]"
  2082. :key="wIndex"
  2083. @click="
  2084. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2085. "
  2086. >
  2087. {{ w.sName }}
  2088. <img
  2089. class="deleteImg deleteImg2"
  2090. src="../assets/deleteworks.png"
  2091. v-if="w.userid == userid || tType == 1 || tType == 4"
  2092. @click.stop="deleteWorks(w.wid)"
  2093. alt
  2094. />
  2095. </div>
  2096. </div>
  2097. </div>
  2098. <div
  2099. v-if="
  2100. tType &&
  2101. tType == 2 &&
  2102. !sIsOpen &&
  2103. tool.tool.indexOf(45) != -1
  2104. "
  2105. class="worksBox"
  2106. >
  2107. <div
  2108. class="zuoyeYulan"
  2109. v-if="workStudent[toolIndex].length > 0"
  2110. >
  2111. <span class="worksTitle">作业预览</span>
  2112. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2113. </div>
  2114. <div
  2115. class="worksDetailBox"
  2116. v-if="workStudent[toolIndex].length > 0"
  2117. >
  2118. <div
  2119. class="isWorksName2"
  2120. v-for="(w, wIndex) in workStudent[toolIndex]"
  2121. :key="wIndex"
  2122. @click="
  2123. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2124. "
  2125. >
  2126. {{ w.sName }}
  2127. <img
  2128. class="deleteImg deleteImg2"
  2129. src="../assets/deleteworks.png"
  2130. v-if="w.userid == userid || tType == 1 || tType == 4"
  2131. @click.stop="deleteWorks(w.wid)"
  2132. alt
  2133. />
  2134. </div>
  2135. </div>
  2136. </div>
  2137. <div
  2138. v-if="
  2139. tType &&
  2140. tType == 2 &&
  2141. !sIsOpen &&
  2142. tool.tool.indexOf(69) != -1
  2143. "
  2144. class="worksBox"
  2145. >
  2146. <div
  2147. class="zuoyeYulan"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <span class="worksTitle">作业预览</span>
  2151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2152. </div>
  2153. <div
  2154. class="worksDetailBox"
  2155. v-if="workStudent[toolIndex].length > 0"
  2156. >
  2157. <div
  2158. class="isWorksName2"
  2159. v-for="(w, wIndex) in workStudent[toolIndex]"
  2160. :key="wIndex"
  2161. @click="
  2162. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2163. "
  2164. >
  2165. {{ w.sName }}
  2166. <img
  2167. class="deleteImg deleteImg2"
  2168. src="../assets/deleteworks.png"
  2169. v-if="w.userid == userid || tType == 1 || tType == 4"
  2170. @click.stop="deleteWorks(w.wid)"
  2171. alt
  2172. />
  2173. </div>
  2174. </div>
  2175. </div>
  2176. <div
  2177. v-if="
  2178. tType &&
  2179. tType == 2 &&
  2180. !sIsOpen &&
  2181. tool.tool.indexOf(15) != -1
  2182. "
  2183. class="worksBox"
  2184. >
  2185. <div
  2186. class="zuoyeYulan"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <span class="worksTitle">作业预览</span>
  2190. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2191. </div>
  2192. <div
  2193. class="worksDetailBox"
  2194. v-if="workStudent[toolIndex].length > 0"
  2195. >
  2196. <div
  2197. class="works"
  2198. v-for="(w, wIndex) in workStudent[toolIndex]"
  2199. :key="wIndex"
  2200. >
  2201. <div class="workImg">
  2202. <!-- <img
  2203. src="../assets/icon/works/noImg.png"
  2204. @click="openTools(15, toolIndex, taskCount, w.works)"
  2205. alt=""
  2206. />-->
  2207. <div class="answerBg">
  2208. <!-- <div>{{ w.sName }}</div> -->
  2209. <el-tooltip
  2210. class="item"
  2211. effect="light"
  2212. :content="JSON.parse(w.works)[0].answer"
  2213. placement="top"
  2214. >
  2215. <div class="answerContent">
  2216. {{ JSON.parse(w.works)[0].answer }}
  2217. </div>
  2218. </el-tooltip>
  2219. <div
  2220. class="answerScore"
  2221. v-if="w.score"
  2222. @click.stop="openScore(w)"
  2223. :class="{
  2224. rightW:
  2225. w.userid == userid ||
  2226. tType == 1 ||
  2227. tType == 4,
  2228. }"
  2229. >
  2230. {{ JSON.parse(w.score).wScore }}分
  2231. </div>
  2232. <div
  2233. class="answerScore"
  2234. @click.stop="openScore(w)"
  2235. v-else-if="courseDetail.userid == userid"
  2236. :class="{
  2237. rightW:
  2238. w.userid == userid ||
  2239. tType == 1 ||
  2240. tType == 4,
  2241. }"
  2242. >
  2243. 评分
  2244. </div>
  2245. <img
  2246. class="deleteImg"
  2247. src="../assets/deleteworks.png"
  2248. v-if="
  2249. w.userid == userid || tType == 1 || tType == 4
  2250. "
  2251. @click.stop="deleteWorks(w.wid)"
  2252. alt
  2253. />
  2254. </div>
  2255. <div class="comment">
  2256. <div class="worksName">
  2257. <div>{{ w.sName }}</div>
  2258. </div>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. <div
  2265. v-if="
  2266. tType &&
  2267. tType == 2 &&
  2268. !sIsOpen &&
  2269. tool.tool.indexOf(1) != -1
  2270. "
  2271. class="worksBox"
  2272. >
  2273. <div
  2274. class="zuoyeYulan"
  2275. v-if="workStudent[toolIndex].length > 0"
  2276. >
  2277. <span class="worksTitle">作业预览</span>
  2278. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2279. </div>
  2280. <div
  2281. class="worksDetailBox"
  2282. v-if="workStudent[toolIndex].length > 0"
  2283. >
  2284. <div
  2285. class="works"
  2286. style="
  2287. width: 200px;
  2288. height: 140px;
  2289. margin: 10px 10px 10px 0;
  2290. box-shadow: 0 0 6px 1px #dfdada;
  2291. "
  2292. v-for="(w, wIndex) in workStudent[toolIndex]"
  2293. :key="wIndex"
  2294. >
  2295. <div class="workImg">
  2296. <img
  2297. :src="w.works"
  2298. @click="previewImg(w.works,w)"
  2299. alt
  2300. />
  2301. <div
  2302. class="answerScore"
  2303. v-if="w.score"
  2304. @click.stop="openScore(w)"
  2305. :class="{
  2306. rightW:
  2307. w.userid == userid || tType == 1 || tType == 4,
  2308. }"
  2309. >
  2310. {{ JSON.parse(w.score).wScore }}分
  2311. </div>
  2312. <div
  2313. class="answerScore"
  2314. @click.stop="openScore(w)"
  2315. v-else-if="courseDetail.userid == userid"
  2316. :class="{
  2317. rightW:
  2318. w.userid == userid || tType == 1 || tType == 4,
  2319. }"
  2320. >
  2321. 评分
  2322. </div>
  2323. <img
  2324. class="deleteImg"
  2325. src="../assets/deleteworks.png"
  2326. v-if="
  2327. w.userid == userid || tType == 1 || tType == 4
  2328. "
  2329. @click.stop="deleteWorks(w.wid)"
  2330. alt
  2331. />
  2332. </div>
  2333. <div class="worksName">
  2334. <div>{{ w.sName }}</div>
  2335. </div>
  2336. </div>
  2337. </div>
  2338. </div>
  2339. <div
  2340. v-if="
  2341. tType &&
  2342. tType == 2 &&
  2343. !sIsOpen &&
  2344. tool.tool.indexOf(3) != -1
  2345. "
  2346. class="worksBox"
  2347. >
  2348. <div
  2349. class="zuoyeYulan"
  2350. v-if="workStudent[toolIndex].length > 0"
  2351. >
  2352. <span class="worksTitle">作业预览</span>
  2353. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2354. </div>
  2355. <div
  2356. class="worksDetailBox"
  2357. v-if="workStudent[toolIndex].length > 0"
  2358. >
  2359. <div
  2360. class="works"
  2361. style="
  2362. width: 200px;
  2363. height: 140px;
  2364. margin: 10px 10px 10px 0;
  2365. box-shadow: 0 0 6px 1px #dfdada;
  2366. "
  2367. v-for="(w, wIndex) in workStudent[toolIndex]"
  2368. :key="wIndex"
  2369. >
  2370. <div class="workImg">
  2371. <img
  2372. :src="w.works"
  2373. @click="previewImg(w.works,w)"
  2374. alt
  2375. />
  2376. <div
  2377. class="answerScore"
  2378. v-if="w.score"
  2379. @click.stop="openScore(w)"
  2380. :class="{
  2381. rightW:
  2382. w.userid == userid || tType == 1 || tType == 4,
  2383. }"
  2384. >
  2385. {{ JSON.parse(w.score).wScore }}分
  2386. </div>
  2387. <div
  2388. class="answerScore"
  2389. @click.stop="openScore(w)"
  2390. v-else-if="courseDetail.userid == userid"
  2391. :class="{
  2392. rightW:
  2393. w.userid == userid || tType == 1 || tType == 4,
  2394. }"
  2395. >
  2396. 评分
  2397. </div>
  2398. <img
  2399. class="deleteImg"
  2400. src="../assets/deleteworks.png"
  2401. v-if="
  2402. w.userid == userid || tType == 1 || tType == 4
  2403. "
  2404. @click.stop="deleteWorks(w.wid)"
  2405. alt
  2406. />
  2407. </div>
  2408. <div class="worksName">
  2409. <div>{{ w.sName }}</div>
  2410. </div>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. <div
  2415. v-if="
  2416. tType &&
  2417. tType == 2 &&
  2418. !sIsOpen &&
  2419. tool.tool.indexOf(6) != -1
  2420. "
  2421. class="worksBox"
  2422. >
  2423. <div
  2424. class="zuoyeYulan"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <span class="worksTitle">作业预览</span>
  2428. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2429. </div>
  2430. <div
  2431. class="worksDetailBox"
  2432. v-if="workStudent[toolIndex].length > 0"
  2433. >
  2434. <div
  2435. class="works"
  2436. style="
  2437. width: 200px;
  2438. height: 140px;
  2439. margin: 10px 10px 10px 0;
  2440. box-shadow: 0 0 6px 1px #dfdada;
  2441. "
  2442. v-for="(w, wIndex) in workStudent[toolIndex]"
  2443. :key="wIndex"
  2444. >
  2445. <div class="workImg">
  2446. <img
  2447. :src="w.works"
  2448. @click="previewImg(w.works,w)"
  2449. alt
  2450. />
  2451. <div
  2452. class="answerScore"
  2453. v-if="w.score"
  2454. @click.stop="openScore(w)"
  2455. :class="{
  2456. rightW:
  2457. w.userid == userid || tType == 1 || tType == 4,
  2458. }"
  2459. >
  2460. {{ JSON.parse(w.score).wScore }}分
  2461. </div>
  2462. <div
  2463. class="answerScore"
  2464. @click.stop="openScore(w)"
  2465. v-else-if="courseDetail.userid == userid"
  2466. :class="{
  2467. rightW:
  2468. w.userid == userid || tType == 1 || tType == 4,
  2469. }"
  2470. >
  2471. 评分
  2472. </div>
  2473. <img
  2474. class="deleteImg"
  2475. src="../assets/deleteworks.png"
  2476. v-if="
  2477. w.userid == userid || tType == 1 || tType == 4
  2478. "
  2479. @click.stop="deleteWorks(w.wid)"
  2480. alt
  2481. />
  2482. </div>
  2483. <div class="worksName">
  2484. <div>{{ w.sName }}</div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. <div
  2490. v-if="
  2491. tType &&
  2492. tType == 2 &&
  2493. !sIsOpen &&
  2494. tool.tool.indexOf(7) != -1
  2495. "
  2496. class="worksBox"
  2497. >
  2498. <div
  2499. class="zuoyeYulan"
  2500. v-if="workStudent[toolIndex].length > 0"
  2501. >
  2502. <span class="worksTitle">作业预览</span>
  2503. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2504. </div>
  2505. <div
  2506. class="worksDetailBox"
  2507. v-if="workStudent[toolIndex].length > 0"
  2508. >
  2509. <div
  2510. class="works"
  2511. style="
  2512. width: 200px;
  2513. height: 140px;
  2514. margin: 10px 10px 10px 0;
  2515. box-shadow: 0 0 6px 1px #dfdada;
  2516. "
  2517. v-for="(w, wIndex) in workStudent[toolIndex]"
  2518. :key="wIndex"
  2519. >
  2520. <div class="workImg">
  2521. <img
  2522. :src="w.works"
  2523. @click="previewImg(w.works,w)"
  2524. alt
  2525. />
  2526. <div
  2527. class="answerScore"
  2528. v-if="w.score"
  2529. @click.stop="openScore(w)"
  2530. :class="{
  2531. rightW:
  2532. w.userid == userid || tType == 1 || tType == 4,
  2533. }"
  2534. >
  2535. {{ JSON.parse(w.score).wScore }}分
  2536. </div>
  2537. <div
  2538. class="answerScore"
  2539. @click.stop="openScore(w)"
  2540. v-else-if="courseDetail.userid == userid"
  2541. :class="{
  2542. rightW:
  2543. w.userid == userid || tType == 1 || tType == 4,
  2544. }"
  2545. >
  2546. 评分
  2547. </div>
  2548. <img
  2549. class="deleteImg"
  2550. src="../assets/deleteworks.png"
  2551. v-if="
  2552. w.userid == userid || tType == 1 || tType == 4
  2553. "
  2554. @click.stop="deleteWorks(w.wid)"
  2555. alt
  2556. />
  2557. </div>
  2558. <div class="worksName">
  2559. <div>{{ w.sName }}</div>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. <div
  2565. v-if="
  2566. tType &&
  2567. tType == 2 &&
  2568. !sIsOpen &&
  2569. tool.tool.indexOf(26) != -1
  2570. "
  2571. class="worksBox"
  2572. >
  2573. <div
  2574. class="zuoyeYulan"
  2575. v-if="workStudent[toolIndex].length > 0"
  2576. >
  2577. <span class="worksTitle">作业预览</span>
  2578. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2579. </div>
  2580. <div
  2581. class="worksDetailBox"
  2582. v-if="workStudent[toolIndex].length > 0"
  2583. >
  2584. <div
  2585. class="works"
  2586. style="
  2587. width: 200px;
  2588. height: 140px;
  2589. margin: 10px 10px 10px 0;
  2590. box-shadow: 0 0 6px 1px #dfdada;
  2591. "
  2592. v-for="(w, wIndex) in workStudent[toolIndex]"
  2593. :key="wIndex"
  2594. >
  2595. <div class="workImg">
  2596. <img
  2597. :src="w.works"
  2598. @click="previewImg(w.works,w)"
  2599. alt
  2600. />
  2601. <img
  2602. class="deleteImg"
  2603. src="../assets/deleteworks.png"
  2604. v-if="
  2605. w.userid == userid || tType == 1 || tType == 4
  2606. "
  2607. @click.stop="deleteWorks(w.wid)"
  2608. alt
  2609. />
  2610. </div>
  2611. <div class="worksName">
  2612. <div>{{ w.sName }}</div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. <div
  2618. v-if="
  2619. tType &&
  2620. ((tType == 2 && sIsOpen == true) ||
  2621. tType == 1 ||
  2622. tType == 4) &&
  2623. tool.tool.indexOf(16) != -1
  2624. "
  2625. class="worksBox"
  2626. >
  2627. <div
  2628. class="zuoyeYulan"
  2629. v-if="
  2630. (worksStudent.length &&
  2631. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2632. "
  2633. >
  2634. <div class="worksTop">
  2635. <div>作业预览</div>
  2636. <div
  2637. class="corOpen"
  2638. @click="contract(toolIndex)"
  2639. v-if="
  2640. (isCloseList[toolIndex].isCloseBoolean) &&
  2641. isCloseList[toolIndex].isClose == 0
  2642. "
  2643. >
  2644. 折叠
  2645. </div>
  2646. <div
  2647. class="corOpen"
  2648. @click="contract(toolIndex)"
  2649. v-if="isCloseList[toolIndex].isClose == 1"
  2650. >
  2651. 展开
  2652. </div>
  2653. </div>
  2654. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2655. </div>
  2656. <div
  2657. class="group_workBox"
  2658. v-for="(g, gindex) in courseGroup.group"
  2659. :key="gindex"
  2660. >
  2661. <div class="group_box">
  2662. <div class="group_title">
  2663. <el-tooltip
  2664. class="item"
  2665. effect="light"
  2666. :content="g.name"
  2667. placement="top"
  2668. >
  2669. <div class="group_name">{{ g.name }}</div>
  2670. </el-tooltip>
  2671. </div>
  2672. <div
  2673. class="group_work"
  2674. v-if="
  2675. g.works &&
  2676. g.works.length &&
  2677. g.works[toolIndex].length
  2678. "
  2679. >
  2680. <div
  2681. class="works"
  2682. style="
  2683. width: 200px;
  2684. height: 140px;
  2685. margin: 10px 10px 10px 0;
  2686. border-radius: 15px;
  2687. box-shadow: 0 0 6px 1px #dfdada;
  2688. "
  2689. v-for="(w, wIndex) in g.works[toolIndex]"
  2690. :key="wIndex"
  2691. :class="w.type == 1 ? 'isTypeOne' : ''"
  2692. >
  2693. <div class="workImg" v-if="w.type == 0">
  2694. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2695. <img
  2696. :src="w.works"
  2697. @click="previewImg(w.works,w)"
  2698. alt
  2699. />
  2700. <div
  2701. class="answerScore"
  2702. v-if="w.score"
  2703. @click.stop="openScore(w)"
  2704. :class="{
  2705. rightW:
  2706. w.userid == userid ||
  2707. tType == 1 ||
  2708. tType == 4 ||
  2709. w.ateacher == userid,
  2710. }"
  2711. >
  2712. {{ JSON.parse(w.score).wScore }}分
  2713. </div>
  2714. <div
  2715. class="answerScore"
  2716. @click.stop="openScore(w)"
  2717. v-else-if="courseDetail.userid == userid"
  2718. :class="{
  2719. rightW:
  2720. w.userid == userid ||
  2721. tType == 1 ||
  2722. tType == 4 ||
  2723. w.ateacher == userid,
  2724. }"
  2725. >
  2726. 评分
  2727. </div>
  2728. <img
  2729. class="deleteImg"
  2730. src="../assets/deleteworks.png"
  2731. v-if="
  2732. w.userid == userid || tType == 1 || tType == 4
  2733. "
  2734. @click.stop="deleteWorks(w.wid)"
  2735. alt
  2736. />
  2737. </div>
  2738. <div class="workImg" v-if="w.type == 1">
  2739. <img :src="word" @click="openFile(w.works,w)" alt />
  2740. <!-- @click="openFile(w.works)" -->
  2741. <div
  2742. class="answerScore"
  2743. v-if="w.score"
  2744. @click.stop="openScore(w)"
  2745. :class="{
  2746. rightW:
  2747. w.userid == userid ||
  2748. tType == 1 ||
  2749. tType == 4 ||
  2750. w.ateacher == userid,
  2751. }"
  2752. >
  2753. {{ JSON.parse(w.score).wScore }}分
  2754. </div>
  2755. <div
  2756. class="answerScore"
  2757. @click.stop="openScore(w)"
  2758. v-else-if="courseDetail.userid == userid"
  2759. :class="{
  2760. rightW:
  2761. w.userid == userid ||
  2762. tType == 1 ||
  2763. tType == 4 ||
  2764. w.ateacher == userid,
  2765. }"
  2766. >
  2767. 评分
  2768. </div>
  2769. <img
  2770. class="deleteImg"
  2771. src="../assets/deleteworks.png"
  2772. v-if="
  2773. w.userid == userid || tType == 1 || tType == 4
  2774. "
  2775. @click.stop="deleteWorks(w.wid)"
  2776. alt
  2777. />
  2778. </div>
  2779. <div class="workImg" v-if="w.type == 3">
  2780. <img
  2781. style="cursor: pointer"
  2782. :src="video"
  2783. @click="openVideo(w)"
  2784. alt
  2785. />
  2786. <!-- @click="openVideo(w.works)" -->
  2787. <div
  2788. class="answerScore"
  2789. v-if="w.score"
  2790. @click.stop="openScore(w)"
  2791. :class="{
  2792. rightW:
  2793. w.userid == userid ||
  2794. tType == 1 ||
  2795. tType == 4 ||
  2796. w.ateacher == userid,
  2797. }"
  2798. >
  2799. {{ JSON.parse(w.score).wScore }}分
  2800. </div>
  2801. <div
  2802. class="answerScore"
  2803. @click.stop="openScore(w)"
  2804. v-else-if="courseDetail.userid == userid"
  2805. :class="{
  2806. rightW:
  2807. w.userid == userid ||
  2808. tType == 1 ||
  2809. tType == 4 ||
  2810. w.ateacher == userid,
  2811. }"
  2812. >
  2813. 评分
  2814. </div>
  2815. <img
  2816. class="deleteImg"
  2817. src="../assets/deleteworks.png"
  2818. v-if="
  2819. w.userid == userid || tType == 1 || tType == 4
  2820. "
  2821. @click.stop="deleteWorks(w.wid)"
  2822. alt
  2823. />
  2824. </div>
  2825. <div class="workImg" v-if="w.type == 12">
  2826. <img
  2827. style="cursor: pointer"
  2828. :src="word2"
  2829. @click="downloadFile(w.works,w.userid)"
  2830. alt
  2831. />
  2832. <!-- @click="openVideo(w.works)" -->
  2833. <div
  2834. class="answerScore"
  2835. v-if="w.score"
  2836. @click.stop="openScore(w)"
  2837. :class="{
  2838. rightW:
  2839. w.userid == userid ||
  2840. tType == 1 ||
  2841. tType == 4 ||
  2842. w.ateacher == userid,
  2843. }"
  2844. >
  2845. {{ JSON.parse(w.score).wScore }}分
  2846. </div>
  2847. <div
  2848. class="answerScore"
  2849. @click.stop="openScore(w)"
  2850. v-else-if="courseDetail.userid == userid"
  2851. :class="{
  2852. rightW:
  2853. w.userid == userid ||
  2854. tType == 1 ||
  2855. tType == 4 ||
  2856. w.ateacher == userid,
  2857. }"
  2858. >
  2859. 评分
  2860. </div>
  2861. <img
  2862. class="deleteImg"
  2863. src="../assets/deleteworks.png"
  2864. v-if="
  2865. w.userid == userid || tType == 1 || tType == 4
  2866. "
  2867. @click.stop="deleteWorks(w.wid)"
  2868. alt
  2869. />
  2870. </div>
  2871. <div class="comment" style="min-width: 200px">
  2872. <div class="worksName">
  2873. <div>{{ w.sName }}</div>
  2874. </div>
  2875. <div class="commentList">
  2876. <div class="commentList">
  2877. <div
  2878. class="commentImg"
  2879. @click="
  2880. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2881. "
  2882. >
  2883. <img
  2884. :src="w.isLikes == true ? likes : noLikes"
  2885. alt=""
  2886. />
  2887. </div>
  2888. <div>{{ w.likesCount }}</div>
  2889. </div>
  2890. <div
  2891. class="commentList"
  2892. style="margin-right: 15px"
  2893. >
  2894. <div
  2895. class="commentImg"
  2896. @click="
  2897. commentOther(
  2898. w,
  2899. toolIndex,
  2900. wIndex,
  2901. null,
  2902. g.id
  2903. )
  2904. "
  2905. >
  2906. <img
  2907. src="../assets/icon/comment/comment.png"
  2908. alt=""
  2909. />
  2910. </div>
  2911. <div>{{ w.commentCount }}</div>
  2912. </div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. </div>
  2917. <div class="group_work" v-else>暂无提交作业</div>
  2918. </div>
  2919. </div>
  2920. <div
  2921. :id="'tool-' + toolIndex"
  2922. :style="{
  2923. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2924. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2925. }"
  2926. class="worksDetailBox"
  2927. v-if="
  2928. worksStudent.length &&
  2929. worksStudent[toolIndex].length > 0
  2930. "
  2931. >
  2932. <div
  2933. class="works"
  2934. style="
  2935. width: 200px;
  2936. height: 140px;
  2937. margin: 10px 10px 10px 0;
  2938. border-radius: 15px;
  2939. box-shadow: 0 0 6px 1px #dfdada;
  2940. "
  2941. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2942. :key="wIndex"
  2943. :class="w.type == 1 ? 'isTypeOne' : ''"
  2944. >
  2945. <div class="workImg" v-if="w.type == 0">
  2946. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2947. <img
  2948. :src="w.works"
  2949. @click="previewImg(w.works,w)"
  2950. alt
  2951. />
  2952. <div
  2953. class="answerScore"
  2954. v-if="w.score"
  2955. @click.stop="openScore(w)"
  2956. :class="{
  2957. rightW:
  2958. w.userid == userid ||
  2959. tType == 1 ||
  2960. tType == 4 ||
  2961. w.ateacher == userid,
  2962. }"
  2963. >
  2964. {{ JSON.parse(w.score).wScore }}分
  2965. </div>
  2966. <div
  2967. class="answerScore"
  2968. @click.stop="openScore(w)"
  2969. v-else-if="courseDetail.userid == userid"
  2970. :class="{
  2971. rightW:
  2972. w.userid == userid ||
  2973. tType == 1 ||
  2974. tType == 4 ||
  2975. w.ateacher == userid,
  2976. }"
  2977. >
  2978. 评分
  2979. </div>
  2980. <img
  2981. class="deleteImg"
  2982. src="../assets/deleteworks.png"
  2983. v-if="
  2984. w.userid == userid || tType == 1 || tType == 4
  2985. "
  2986. @click.stop="deleteWorks(w.wid)"
  2987. alt
  2988. />
  2989. </div>
  2990. <div class="workImg" v-if="w.type == 1">
  2991. <img :src="word" @click="openFile(w.works,w)" alt />
  2992. <!-- @click="openFile(w.works)" -->
  2993. <div
  2994. class="answerScore"
  2995. v-if="w.score"
  2996. @click.stop="openScore(w)"
  2997. :class="{
  2998. rightW:
  2999. w.userid == userid ||
  3000. tType == 1 ||
  3001. tType == 4 ||
  3002. w.ateacher == userid,
  3003. }"
  3004. >
  3005. {{ JSON.parse(w.score).wScore }}分
  3006. </div>
  3007. <div
  3008. class="answerScore"
  3009. @click.stop="openScore(w)"
  3010. v-else-if="courseDetail.userid == userid"
  3011. :class="{
  3012. rightW:
  3013. w.userid == userid ||
  3014. tType == 1 ||
  3015. tType == 4 ||
  3016. w.ateacher == userid,
  3017. }"
  3018. >
  3019. 评分
  3020. </div>
  3021. <img
  3022. class="deleteImg"
  3023. src="../assets/deleteworks.png"
  3024. v-if="
  3025. w.userid == userid || tType == 1 || tType == 4
  3026. "
  3027. @click.stop="deleteWorks(w.wid)"
  3028. alt
  3029. />
  3030. </div>
  3031. <div class="workImg" v-if="w.type == 3">
  3032. <img
  3033. style="cursor: pointer"
  3034. :src="video"
  3035. @click="openVideo(w)"
  3036. alt
  3037. />
  3038. <!-- @click="openVideo(w.works)" -->
  3039. <div
  3040. class="answerScore"
  3041. v-if="w.score"
  3042. @click.stop="openScore(w)"
  3043. :class="{
  3044. rightW:
  3045. w.userid == userid ||
  3046. tType == 1 ||
  3047. tType == 4 ||
  3048. w.ateacher == userid,
  3049. }"
  3050. >
  3051. {{ JSON.parse(w.score).wScore }}分
  3052. </div>
  3053. <div
  3054. class="answerScore"
  3055. @click.stop="openScore(w)"
  3056. v-else-if="courseDetail.userid == userid"
  3057. :class="{
  3058. rightW:
  3059. w.userid == userid ||
  3060. tType == 1 ||
  3061. tType == 4 ||
  3062. w.ateacher == userid,
  3063. }"
  3064. >
  3065. 评分
  3066. </div>
  3067. <img
  3068. class="deleteImg"
  3069. src="../assets/deleteworks.png"
  3070. v-if="
  3071. w.userid == userid || tType == 1 || tType == 4
  3072. "
  3073. @click.stop="deleteWorks(w.wid)"
  3074. alt
  3075. />
  3076. </div>
  3077. <div class="workImg" v-if="w.type == 12">
  3078. <img
  3079. style="cursor: pointer"
  3080. :src="word2"
  3081. @click="downloadFile(w.works,w.userid)"
  3082. alt
  3083. />
  3084. <!-- @click="openVideo(w.works)" -->
  3085. <div
  3086. class="answerScore"
  3087. v-if="w.score"
  3088. @click.stop="openScore(w)"
  3089. :class="{
  3090. rightW:
  3091. w.userid == userid ||
  3092. tType == 1 ||
  3093. tType == 4 ||
  3094. w.ateacher == userid,
  3095. }"
  3096. >
  3097. {{ JSON.parse(w.score).wScore }}分
  3098. </div>
  3099. <div
  3100. class="answerScore"
  3101. @click.stop="openScore(w)"
  3102. v-else-if="courseDetail.userid == userid"
  3103. :class="{
  3104. rightW:
  3105. w.userid == userid ||
  3106. tType == 1 ||
  3107. tType == 4 ||
  3108. w.ateacher == userid,
  3109. }"
  3110. >
  3111. 评分
  3112. </div>
  3113. <img
  3114. class="deleteImg"
  3115. src="../assets/deleteworks.png"
  3116. v-if="
  3117. w.userid == userid || tType == 1 || tType == 4
  3118. "
  3119. @click.stop="deleteWorks(w.wid)"
  3120. alt
  3121. />
  3122. </div>
  3123. <div class="comment" style="min-width: 200px">
  3124. <div class="worksName">
  3125. <div>{{ w.sName }}</div>
  3126. </div>
  3127. <div class="commentList">
  3128. <div class="commentList">
  3129. <div
  3130. class="commentImg"
  3131. @click="
  3132. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3133. "
  3134. >
  3135. <img
  3136. :src="w.isLikes == true ? likes : noLikes"
  3137. alt=""
  3138. />
  3139. </div>
  3140. <div>{{ w.likesCount }}</div>
  3141. </div>
  3142. <div class="commentList" style="margin-right: 15px">
  3143. <div
  3144. class="commentImg"
  3145. @click="commentOther(w, toolIndex, wIndex)"
  3146. >
  3147. <img
  3148. src="../assets/icon/comment/comment.png"
  3149. alt=""
  3150. />
  3151. </div>
  3152. <div>{{ w.commentCount }}</div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. </div>
  3157. </div>
  3158. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3159. 未提交
  3160. </div>
  3161. <div
  3162. class="noWorksS"
  3163. v-if="noWorksS && noWorksS[toolIndex].length"
  3164. >
  3165. <div
  3166. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3167. :key="sIndex"
  3168. class="noWorksName"
  3169. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3170. >
  3171. <el-tooltip effect="dark" :content="s.student" placement="top">
  3172. <span>{{ s.student }}</span>
  3173. </el-tooltip>
  3174. </div>
  3175. </div>
  3176. </div>
  3177. <div
  3178. v-if="
  3179. tType &&
  3180. ((tType == 2 && sIsOpen == true) ||
  3181. tType == 1 ||
  3182. tType == 4) &&
  3183. tool.tool.indexOf(70) != -1
  3184. "
  3185. class="worksBox"
  3186. >
  3187. <div
  3188. class="zuoyeYulan"
  3189. v-if="
  3190. (worksStudent.length &&
  3191. worksStudent[toolIndex].length > 0)
  3192. "
  3193. >
  3194. <div class="worksTop">
  3195. <div>作业预览</div>
  3196. <div
  3197. class="corOpen"
  3198. @click="contract(toolIndex)"
  3199. v-if="
  3200. (isCloseList[toolIndex].isCloseBoolean) &&
  3201. isCloseList[toolIndex].isClose == 0
  3202. "
  3203. >
  3204. 折叠
  3205. </div>
  3206. <div
  3207. class="corOpen"
  3208. @click="contract(toolIndex)"
  3209. v-if="isCloseList[toolIndex].isClose == 1"
  3210. >
  3211. 展开
  3212. </div>
  3213. </div>
  3214. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3215. </div>
  3216. <div
  3217. :id="'tool-' + toolIndex"
  3218. :style="{
  3219. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3220. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3221. }"
  3222. class="worksDetailBox"
  3223. v-if="
  3224. worksStudent.length &&
  3225. worksStudent[toolIndex].length > 0
  3226. "
  3227. >
  3228. <div
  3229. class="works"
  3230. style="
  3231. width: 200px;
  3232. height: 140px;
  3233. margin: 10px 10px 10px 0;
  3234. border-radius: 15px;
  3235. box-shadow: 0 0 6px 1px #dfdada;
  3236. "
  3237. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3238. :key="wIndex"
  3239. :class="w.type == 1 ? 'isTypeOne' : ''"
  3240. >
  3241. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3242. <img :src="word" alt />
  3243. <img
  3244. class="deleteImg"
  3245. src="../assets/deleteworks.png"
  3246. v-if="
  3247. w.userid == userid || tType == 1 || tType == 4
  3248. "
  3249. @click.stop="deleteWorks(w.wid)"
  3250. alt
  3251. />
  3252. </div>
  3253. <div class="comment" style="min-width: 200px">
  3254. <div class="worksName">
  3255. <div>{{ w.sName }}</div>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3261. 未提交
  3262. </div>
  3263. <div
  3264. class="noWorksS"
  3265. v-if="noWorksS && noWorksS[toolIndex].length"
  3266. >
  3267. <div
  3268. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3269. :key="sIndex"
  3270. class="noWorksName"
  3271. >
  3272. <el-tooltip effect="dark" :content="s.student" placement="top">
  3273. <span>{{ s.student }}</span>
  3274. </el-tooltip>
  3275. </div>
  3276. </div>
  3277. </div>
  3278. <div
  3279. v-if="
  3280. tType &&
  3281. tType == 2 &&
  3282. !sIsOpen &&
  3283. tool.tool.indexOf(70) != -1
  3284. "
  3285. class="worksBox"
  3286. >
  3287. <div
  3288. class="zuoyeYulan"
  3289. v-if="workStudent[toolIndex].length > 0"
  3290. >
  3291. <span class="worksTitle">作业预览</span>
  3292. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3293. </div>
  3294. <div
  3295. class="worksDetailBox"
  3296. v-if="workStudent[toolIndex].length > 0"
  3297. >
  3298. <div
  3299. class="works"
  3300. style="
  3301. width: 200px;
  3302. height: 140px;
  3303. margin: 10px 10px 10px 0;
  3304. box-shadow: 0 0 6px 1px #dfdada;
  3305. "
  3306. v-for="(w, wIndex) in workStudent[toolIndex]"
  3307. :key="wIndex"
  3308. >
  3309. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3310. <img :src="word" alt />
  3311. <img
  3312. class="deleteImg"
  3313. src="../assets/deleteworks.png"
  3314. v-if="
  3315. w.userid == userid || tType == 1 || tType == 4
  3316. "
  3317. @click.stop="deleteWorks(w.wid)"
  3318. alt
  3319. />
  3320. </div>
  3321. <div class="worksName">
  3322. <div>{{ w.sName }}</div>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. <div
  3328. v-if="
  3329. tType &&
  3330. ((tType == 2 && sIsOpen == true) ||
  3331. tType == 1 ||
  3332. tType == 4) &&
  3333. tool.tool.indexOf(32) != -1
  3334. "
  3335. class="worksBox"
  3336. >
  3337. <div
  3338. class="zuoyeYulan"
  3339. v-if="
  3340. worksStudent.length &&
  3341. worksStudent[toolIndex].length > 0
  3342. "
  3343. >
  3344. <div class="worksTop">
  3345. <div>作业预览</div>
  3346. <div
  3347. class="corOpen"
  3348. @click="contract(toolIndex)"
  3349. v-if="
  3350. (isCloseList[toolIndex].isCloseBoolean) &&
  3351. isCloseList[toolIndex].isClose == 0
  3352. "
  3353. >
  3354. 折叠
  3355. </div>
  3356. <div
  3357. class="corOpen"
  3358. @click="contract(toolIndex)"
  3359. v-if="isCloseList[toolIndex].isClose == 1"
  3360. >
  3361. 展开
  3362. </div>
  3363. </div>
  3364. </div>
  3365. <div
  3366. :id="'tool-' + toolIndex"
  3367. class="worksDetailBox"
  3368. :style="{
  3369. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3370. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3371. }"
  3372. v-if="
  3373. worksStudent.length &&
  3374. worksStudent[toolIndex].length > 0
  3375. "
  3376. >
  3377. <div
  3378. class="works"
  3379. style="
  3380. width: 200px;
  3381. height: 140px;
  3382. margin: 10px 10px 10px 0;
  3383. border-radius: 15px;
  3384. box-shadow: 0 0 6px 1px #dfdada;
  3385. "
  3386. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3387. :key="wIndex"
  3388. :class="w.type == 1 ? 'isTypeOne' : ''"
  3389. >
  3390. <div class="workImg">
  3391. <img
  3392. :src="word2"
  3393. @click="downloadFile(w.works,w.userid)"
  3394. alt
  3395. />
  3396. <div
  3397. class="answerScore"
  3398. v-if="w.score"
  3399. @click.stop="openScore(w)"
  3400. :class="{
  3401. rightW:
  3402. w.userid == userid ||
  3403. tType == 1 ||
  3404. tType == 4 ||
  3405. w.ateacher == userid,
  3406. }"
  3407. >
  3408. {{ JSON.parse(w.score).wScore }}分
  3409. </div>
  3410. <div
  3411. class="answerScore"
  3412. @click.stop="openScore(w)"
  3413. v-else-if="courseDetail.userid == userid"
  3414. :class="{
  3415. rightW:
  3416. w.userid == userid ||
  3417. tType == 1 ||
  3418. tType == 4 ||
  3419. w.ateacher == userid,
  3420. }"
  3421. >
  3422. 评分
  3423. </div>
  3424. <img
  3425. class="deleteImg"
  3426. src="../assets/deleteworks.png"
  3427. v-if="
  3428. w.userid == userid || tType == 1 || tType == 4
  3429. "
  3430. @click.stop="deleteWorks(w.wid)"
  3431. alt
  3432. />
  3433. </div>
  3434. <div class="comment" style="min-width: 200px">
  3435. <div class="worksName">
  3436. <div>{{ w.sName }}</div>
  3437. </div>
  3438. <div class="commentList">
  3439. <div class="commentList">
  3440. <div
  3441. class="commentImg"
  3442. @click="
  3443. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3444. "
  3445. >
  3446. <img
  3447. :src="w.isLikes == true ? likes : noLikes"
  3448. alt=""
  3449. />
  3450. </div>
  3451. <div>{{ w.likesCount }}</div>
  3452. </div>
  3453. <div class="commentList" style="margin-right: 15px">
  3454. <div
  3455. class="commentImg"
  3456. @click="commentOther(w, toolIndex, wIndex)"
  3457. >
  3458. <img
  3459. src="../assets/icon/comment/comment.png"
  3460. alt=""
  3461. />
  3462. </div>
  3463. <div>{{ w.commentCount }}</div>
  3464. </div>
  3465. </div>
  3466. </div>
  3467. </div>
  3468. </div>
  3469. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3470. 未提交
  3471. </div>
  3472. <div
  3473. class="noWorksS"
  3474. v-if="noWorksS && noWorksS[toolIndex].length"
  3475. >
  3476. <div
  3477. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3478. :key="sIndex"
  3479. class="noWorksName"
  3480. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3481. >
  3482. <el-tooltip effect="dark" :content="s.student" placement="top">
  3483. <span>{{ s.student }}</span>
  3484. </el-tooltip>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. <div
  3489. v-if="
  3490. tType &&
  3491. ((tType == 2 && sIsOpen == true) ||
  3492. tType == 1 ||
  3493. tType == 4) &&
  3494. tool.tool.indexOf(57) != -1
  3495. "
  3496. class="worksBox"
  3497. >
  3498. <div
  3499. class="zuoyeYulan"
  3500. v-if="
  3501. worksStudent.length &&
  3502. worksStudent[toolIndex].length > 0
  3503. "
  3504. >
  3505. <div class="worksTop">
  3506. <div>作业预览</div>
  3507. <div
  3508. class="corOpen"
  3509. @click="contract(toolIndex)"
  3510. v-if="
  3511. (isCloseList[toolIndex].isCloseBoolean) &&
  3512. isCloseList[toolIndex].isClose == 0
  3513. "
  3514. >
  3515. 折叠
  3516. </div>
  3517. <div
  3518. class="corOpen"
  3519. @click="contract(toolIndex)"
  3520. v-if="isCloseList[toolIndex].isClose == 1"
  3521. >
  3522. 展开
  3523. </div>
  3524. </div>
  3525. </div>
  3526. <div
  3527. :id="'tool-' + toolIndex"
  3528. class="worksDetailBox"
  3529. :style="{
  3530. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3531. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3532. }"
  3533. v-if="
  3534. worksStudent.length &&
  3535. worksStudent[toolIndex].length > 0
  3536. "
  3537. >
  3538. <div
  3539. class="works"
  3540. style="
  3541. width: 200px;
  3542. height: 140px;
  3543. margin: 10px 10px 10px 0;
  3544. border-radius: 15px;
  3545. box-shadow: 0 0 6px 1px #dfdada;
  3546. "
  3547. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3548. :key="wIndex"
  3549. :class="w.type == 1 ? 'isTypeOne' : ''"
  3550. >
  3551. <div class="workImg">
  3552. <img
  3553. :src="word2"
  3554. @click="downloadFile(w.works,w.userid)"
  3555. v-if="w.type == 12"
  3556. alt
  3557. />
  3558. <img
  3559. :src="word2"
  3560. @click="
  3561. openCocoPi(57, toolIndex, w.userid, w.sName)
  3562. "
  3563. v-else-if="w.type == 15"
  3564. alt
  3565. />
  3566. <div
  3567. class="answerScore"
  3568. v-if="w.score"
  3569. @click.stop="openScore(w)"
  3570. :class="{
  3571. rightW:
  3572. w.userid == userid ||
  3573. tType == 1 ||
  3574. tType == 4 ||
  3575. w.ateacher == userid,
  3576. }"
  3577. >
  3578. {{ JSON.parse(w.score).wScore }}分
  3579. </div>
  3580. <div
  3581. class="answerScore"
  3582. @click.stop="openScore(w)"
  3583. v-else-if="courseDetail.userid == userid"
  3584. :class="{
  3585. rightW:
  3586. w.userid == userid ||
  3587. tType == 1 ||
  3588. tType == 4 ||
  3589. w.ateacher == userid,
  3590. }"
  3591. >
  3592. 评分
  3593. </div>
  3594. <img
  3595. class="deleteImg"
  3596. src="../assets/deleteworks.png"
  3597. v-if="
  3598. w.userid == userid || tType == 1 || tType == 4
  3599. "
  3600. @click.stop="deleteWorks(w.wid)"
  3601. alt
  3602. />
  3603. </div>
  3604. <div class="comment" style="min-width: 200px">
  3605. <div class="worksName">
  3606. <div>{{ w.sName }}</div>
  3607. </div>
  3608. <div class="commentList">
  3609. <div class="commentList">
  3610. <div
  3611. class="commentImg"
  3612. @click="
  3613. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3614. "
  3615. >
  3616. <img
  3617. :src="w.isLikes == true ? likes : noLikes"
  3618. alt=""
  3619. />
  3620. </div>
  3621. <div>{{ w.likesCount }}</div>
  3622. </div>
  3623. <div class="commentList" style="margin-right: 15px">
  3624. <div
  3625. class="commentImg"
  3626. @click="commentOther(w, toolIndex, wIndex)"
  3627. >
  3628. <img
  3629. src="../assets/icon/comment/comment.png"
  3630. alt=""
  3631. />
  3632. </div>
  3633. <div>{{ w.commentCount }}</div>
  3634. </div>
  3635. </div>
  3636. </div>
  3637. </div>
  3638. </div>
  3639. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3640. 未提交
  3641. </div>
  3642. <div
  3643. class="noWorksS"
  3644. v-if="noWorksS && noWorksS[toolIndex].length"
  3645. >
  3646. <div
  3647. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3648. :key="sIndex"
  3649. class="noWorksName"
  3650. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3651. >
  3652. <el-tooltip effect="dark" :content="s.student" placement="top">
  3653. <span>{{ s.student }}</span>
  3654. </el-tooltip>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. <div
  3659. v-if="
  3660. tType &&
  3661. ((tType == 2 && sIsOpen == true) ||
  3662. tType == 1 ||
  3663. tType == 4) &&
  3664. tool.tool.indexOf(72) != -1
  3665. "
  3666. class="worksBox"
  3667. >
  3668. <div
  3669. class="zuoyeYulan"
  3670. v-if="
  3671. worksStudent.length &&
  3672. worksStudent[toolIndex].length > 0
  3673. "
  3674. >
  3675. <div class="worksTop">
  3676. <div>作业预览</div>
  3677. <div
  3678. class="corOpen"
  3679. @click="contract(toolIndex)"
  3680. v-if="
  3681. isCloseList[toolIndex].isCloseBoolean &&
  3682. isCloseList[toolIndex].isClose == 0
  3683. "
  3684. >
  3685. 折叠
  3686. </div>
  3687. <div
  3688. class="corOpen"
  3689. @click="contract(toolIndex)"
  3690. v-if="isCloseList[toolIndex].isClose == 1"
  3691. >
  3692. 展开
  3693. </div>
  3694. </div>
  3695. </div>
  3696. <div
  3697. :id="'tool-' + toolIndex"
  3698. :style="{
  3699. height:
  3700. isCloseList[toolIndex].isClose == 1
  3701. ? retrnToolHeight('tool-' + toolIndex)
  3702. : 'auto',
  3703. overflow:
  3704. isCloseList[toolIndex].isClose == 1
  3705. ? 'hidden'
  3706. : 'unset'
  3707. }"
  3708. class="worksDetailBox"
  3709. v-if="
  3710. worksStudent.length &&
  3711. worksStudent[toolIndex].length > 0
  3712. "
  3713. >
  3714. <div
  3715. class="works"
  3716. style="
  3717. width: 200px;
  3718. height: 140px;
  3719. margin: 10px 10px 10px 0;
  3720. border-radius: 15px;
  3721. box-shadow: 0 0 6px 1px #dfdada;
  3722. "
  3723. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3724. :key="wIndex"
  3725. :class="w.type == 1 ? 'isTypeOne' : ''"
  3726. >
  3727. <div class="workImg">
  3728. <!-- <img
  3729. :src="word2"
  3730. @click="downloadFile(w.works)"
  3731. v-if="w.type == 12"
  3732. alt
  3733. /> -->
  3734. <img
  3735. :src="word2"
  3736. @click="
  3737. openCocoFlow(w)
  3738. "
  3739. alt
  3740. />
  3741. <div
  3742. class="answerScore"
  3743. v-if="w.score"
  3744. @click.stop="openScore(w)"
  3745. :class="{
  3746. rightW:
  3747. w.userid == userid ||
  3748. tType == 1 ||
  3749. tType == 4 ||
  3750. w.ateacher == userid
  3751. }"
  3752. >
  3753. {{ JSON.parse(w.score).wScore }}分
  3754. </div>
  3755. <div
  3756. class="answerScore"
  3757. @click.stop="openScore(w)"
  3758. v-else-if="
  3759. courseDetail.userid == userid &&
  3760. courseDetail.state != 5 &&
  3761. chapInfoList[courseType].chapterInfo[0]
  3762. .taskJson[taskCount].eList &&
  3763. chapInfoList[courseType].chapterInfo[0]
  3764. .taskJson[taskCount].eList.length
  3765. "
  3766. :class="{
  3767. rightW:
  3768. w.userid == userid ||
  3769. tType == 1 ||
  3770. tType == 4 ||
  3771. w.ateacher == userid
  3772. }"
  3773. >
  3774. 评分
  3775. </div>
  3776. <img
  3777. class="deleteImg"
  3778. src="../assets/deleteworks.png"
  3779. v-if="
  3780. w.userid == userid || tType == 1 || tType == 4
  3781. "
  3782. @click.stop="deleteWorks(w.wid)"
  3783. alt
  3784. />
  3785. </div>
  3786. <div class="comment" style="min-width: 200px">
  3787. <div class="worksName">
  3788. <div>{{ w.sName }}</div>
  3789. </div>
  3790. <div class="commentList">
  3791. <div class="commentList">
  3792. <div
  3793. class="commentImg"
  3794. @click="
  3795. isLikes(
  3796. w.wid,
  3797. userid,
  3798. 1,
  3799. null,
  3800. w.isLikes,
  3801. w.sName
  3802. )
  3803. "
  3804. >
  3805. <img
  3806. :src="w.isLikes == true ? likes : noLikes"
  3807. alt=""
  3808. />
  3809. </div>
  3810. <div>{{ w.likesCount }}</div>
  3811. </div>
  3812. <div class="commentList" style="margin-right: 15px">
  3813. <div
  3814. class="commentImg"
  3815. @click="commentOther(w, toolIndex, wIndex)"
  3816. >
  3817. <img
  3818. src="../assets/icon/comment/comment.png"
  3819. alt=""
  3820. />
  3821. </div>
  3822. <div>{{ w.commentCount }}</div>
  3823. </div>
  3824. </div>
  3825. </div>
  3826. </div>
  3827. </div>
  3828. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3829. 未提交
  3830. </div>
  3831. <div
  3832. class="noWorksS"
  3833. v-if="noWorksS && noWorksS[toolIndex].length"
  3834. >
  3835. <div
  3836. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3837. :key="sIndex"
  3838. class="noWorksName"
  3839. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3840. >
  3841. <el-tooltip
  3842. effect="dark"
  3843. :content="s.student"
  3844. placement="top"
  3845. >
  3846. <span>{{ s.student }}</span>
  3847. </el-tooltip>
  3848. </div>
  3849. </div>
  3850. </div>
  3851. <div
  3852. v-if="
  3853. tType &&
  3854. tType == 2 &&
  3855. !sIsOpen &&
  3856. tool.tool.indexOf(72) != -1
  3857. "
  3858. class="worksBox"
  3859. >
  3860. <div
  3861. class="zuoyeYulan"
  3862. v-if="workStudent[toolIndex].length > 0"
  3863. >
  3864. <span class="worksTitle">作业预览</span>
  3865. </div>
  3866. <div
  3867. class="worksDetailBox"
  3868. v-if="workStudent[toolIndex].length > 0"
  3869. >
  3870. <div
  3871. class="works"
  3872. style="
  3873. width: 200px;
  3874. height: 140px;
  3875. margin: 10px 10px 10px 0;
  3876. box-shadow: 0 0 6px 1px #dfdada;
  3877. "
  3878. v-for="(w, wIndex) in workStudent[toolIndex]"
  3879. :key="wIndex"
  3880. >
  3881. <div class="workImg">
  3882. <!-- <img
  3883. :src="word2"
  3884. @click="downloadFile(w.works)"
  3885. v-if="w.type == 12"
  3886. alt
  3887. /> -->
  3888. <img
  3889. :src="word2"
  3890. @click="
  3891. openCocoFlow(w)
  3892. "
  3893. alt
  3894. />
  3895. <div
  3896. class="answerScore"
  3897. v-if="w.score"
  3898. @click.stop="openScore(w)"
  3899. :class="{
  3900. rightW:
  3901. w.userid == userid || tType == 1 || tType == 4
  3902. }"
  3903. >
  3904. {{ JSON.parse(w.score).wScore }}分
  3905. </div>
  3906. <div
  3907. class="answerScore"
  3908. @click.stop="openScore(w)"
  3909. v-else-if="courseDetail.userid == userid"
  3910. :class="{
  3911. rightW:
  3912. w.userid == userid || tType == 1 || tType == 4
  3913. }"
  3914. >
  3915. 评分
  3916. </div>
  3917. <img
  3918. class="deleteImg"
  3919. src="../assets/deleteworks.png"
  3920. v-if="
  3921. w.userid == userid || tType == 1 || tType == 4
  3922. "
  3923. @click.stop="deleteWorks(w.wid)"
  3924. alt
  3925. />
  3926. </div>
  3927. <div class="worksName">
  3928. <div>{{ w.sName }}</div>
  3929. </div>
  3930. </div>
  3931. </div>
  3932. </div>
  3933. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3934. <div
  3935. class="zuoyeYulan"
  3936. v-if="
  3937. worksStudent.length &&
  3938. worksStudent[toolIndex].length > 0
  3939. "
  3940. >
  3941. <span class="worksTitle">作业预览</span>
  3942. <div
  3943. class="corOpen"
  3944. @click="contract(toolIndex)"
  3945. v-if="
  3946. (isCloseList[toolIndex].isCloseBoolean) &&
  3947. isCloseList[toolIndex].isClose == 0
  3948. "
  3949. >
  3950. 折叠
  3951. </div>
  3952. <div
  3953. class="corOpen"
  3954. @click="contract(toolIndex)"
  3955. v-if="isCloseList[toolIndex].isClose == 1"
  3956. >
  3957. 展开
  3958. </div>
  3959. </div>
  3960. <div
  3961. :id="'tool-' + toolIndex"
  3962. :style="{
  3963. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3964. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3965. }"
  3966. class="worksDetailBox"
  3967. v-if="
  3968. worksStudent.length &&
  3969. worksStudent[toolIndex].length > 0
  3970. "
  3971. >
  3972. <div
  3973. class="works"
  3974. style="
  3975. width: 200px;
  3976. height: 140px;
  3977. margin: 10px 10px 10px 0;
  3978. border-radius: 15px;
  3979. box-shadow: 0 0 6px 1px #dfdada;
  3980. "
  3981. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3982. :key="wIndex"
  3983. :class="w.type == 1 ? 'isTypeOne' : ''"
  3984. >
  3985. <div class="workImg" v-if="w.type == 0">
  3986. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3987. <img
  3988. :src="w.works"
  3989. @click="previewImg(w.works,w)"
  3990. alt
  3991. />
  3992. <div
  3993. class="answerScore"
  3994. v-if="w.score"
  3995. @click.stop="openScore(w)"
  3996. :class="{
  3997. rightW:
  3998. w.userid == userid ||
  3999. tType == 1 ||
  4000. tType == 4 ||
  4001. w.ateacher == userid,
  4002. }"
  4003. >
  4004. {{ JSON.parse(w.score).wScore }}分
  4005. </div>
  4006. <div
  4007. class="answerScore"
  4008. @click.stop="openScore(w)"
  4009. v-else-if="courseDetail.userid == userid"
  4010. :class="{
  4011. rightW:
  4012. w.userid == userid ||
  4013. tType == 1 ||
  4014. tType == 4 ||
  4015. w.ateacher == userid,
  4016. }"
  4017. >
  4018. 评分
  4019. </div>
  4020. <img
  4021. class="deleteImg"
  4022. src="../assets/deleteworks.png"
  4023. v-if="
  4024. w.userid == userid || tType == 1 || tType == 4
  4025. "
  4026. @click.stop="deleteWorks(w.wid)"
  4027. alt
  4028. />
  4029. </div>
  4030. <div
  4031. class="workImg"
  4032. style="cursor: pointer"
  4033. v-if="w.type == 1"
  4034. >
  4035. <img :src="word" @click="openFile(w.works,w)" alt />
  4036. <!-- @click="openFile(w.works)" -->
  4037. <div
  4038. class="answerScore"
  4039. v-if="w.score"
  4040. @click.stop="openScore(w)"
  4041. :class="{
  4042. rightW:
  4043. w.userid == userid ||
  4044. tType == 1 ||
  4045. tType == 4 ||
  4046. w.ateacher == userid,
  4047. }"
  4048. >
  4049. {{ JSON.parse(w.score).wScore }}分
  4050. </div>
  4051. <div
  4052. class="answerScore"
  4053. @click.stop="openScore(w)"
  4054. v-else-if="courseDetail.userid == userid"
  4055. :class="{
  4056. rightW:
  4057. w.userid == userid ||
  4058. tType == 1 ||
  4059. tType == 4 ||
  4060. w.ateacher == userid,
  4061. }"
  4062. >
  4063. 评分
  4064. </div>
  4065. <img
  4066. class="deleteImg"
  4067. src="../assets/deleteworks.png"
  4068. v-if="
  4069. w.userid == userid || tType == 1 || tType == 4
  4070. "
  4071. @click.stop="deleteWorks(w.wid)"
  4072. alt
  4073. />
  4074. </div>
  4075. <div class="workImg" v-if="w.type == 3">
  4076. <img
  4077. style="cursor: pointer"
  4078. :src="video"
  4079. @click="openVideo(w)"
  4080. alt
  4081. />
  4082. <!-- @click="openVideo(w.works)" -->
  4083. <div
  4084. class="answerScore"
  4085. v-if="w.score"
  4086. @click.stop="openScore(w)"
  4087. :class="{
  4088. rightW:
  4089. w.userid == userid ||
  4090. tType == 1 ||
  4091. tType == 4 ||
  4092. w.ateacher == userid,
  4093. }"
  4094. >
  4095. {{ JSON.parse(w.score).wScore }}分
  4096. </div>
  4097. <div
  4098. class="answerScore"
  4099. @click.stop="openScore(w)"
  4100. v-else-if="courseDetail.userid == userid"
  4101. :class="{
  4102. rightW:
  4103. w.userid == userid ||
  4104. tType == 1 ||
  4105. tType == 4 ||
  4106. w.ateacher == userid,
  4107. }"
  4108. >
  4109. 评分
  4110. </div>
  4111. <img
  4112. class="deleteImg"
  4113. src="../assets/deleteworks.png"
  4114. v-if="
  4115. w.userid == userid || tType == 1 || tType == 4
  4116. "
  4117. @click.stop="deleteWorks(w.wid)"
  4118. alt
  4119. />
  4120. </div>
  4121. <div class="comment" style="min-width: 200px">
  4122. <div class="worksName">
  4123. <div
  4124. style="cursor: pointer"
  4125. @click="
  4126. openSname(w.sName, w.wid, toolIndex, w.userid)
  4127. "
  4128. >
  4129. {{ w.sName }}
  4130. </div>
  4131. </div>
  4132. <div class="commentList">
  4133. <div class="commentList">
  4134. <div
  4135. class="commentImg"
  4136. @click="
  4137. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4138. "
  4139. >
  4140. <img
  4141. :src="w.isLikes == true ? likes : noLikes"
  4142. alt=""
  4143. />
  4144. </div>
  4145. <div>{{ w.likesCount }}</div>
  4146. </div>
  4147. <div class="commentList" style="margin-right: 15px">
  4148. <div
  4149. class="commentImg"
  4150. @click="commentOther(w, toolIndex, wIndex)"
  4151. >
  4152. <img
  4153. src="../assets/icon/comment/comment.png"
  4154. alt=""
  4155. />
  4156. </div>
  4157. <div>{{ w.commentCount }}</div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4164. 未提交
  4165. </div>
  4166. <div
  4167. class="noWorksS"
  4168. v-if="noWorksS && noWorksS[toolIndex].length"
  4169. >
  4170. <div
  4171. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4172. :key="sIndex"
  4173. class="noWorksName"
  4174. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4175. >
  4176. <el-tooltip effect="dark" :content="s.student" placement="top">
  4177. <span>{{ s.student }}</span>
  4178. </el-tooltip>
  4179. </div>
  4180. </div>
  4181. </div>
  4182. <div
  4183. v-if="
  4184. tType &&
  4185. ((tType == 2 && sIsOpen == true) ||
  4186. tType == 1 ||
  4187. tType == 4) &&
  4188. tool.tool.indexOf(4) != -1 &&
  4189. (tool.askJson[0].answer ||
  4190. tool.askJson[0].answer === 0) &&
  4191. checkJson[toolIndex].length
  4192. "
  4193. class="xuan_right_box"
  4194. >
  4195. <div
  4196. class="tool_right_box"
  4197. v-for="(item, index) in tool.askJson"
  4198. :key="index"
  4199. >
  4200. <div style="width: calc(100% - 30px);">
  4201. <el-tooltip
  4202. effect="light"
  4203. :content="index + 1 + '、' + item.askstitle"
  4204. placement="top"
  4205. popper-class="text_tooltip"
  4206. >
  4207. <div
  4208. style="
  4209. width: calc(100% - 130px);
  4210. display: block;
  4211. white-space: nowrap;
  4212. overflow: hidden;
  4213. text-overflow: ellipsis;
  4214. word-break: break-word;
  4215. cursor: pointer;
  4216. "
  4217. >
  4218. {{ index + 1 + "、" + item.askstitle }}
  4219. </div>
  4220. </el-tooltip>
  4221. </div>
  4222. <div class="right_box_xuan">
  4223. <span>正确率</span>
  4224. <span>{{
  4225. (checkJson[toolIndex][index].right
  4226. ? checkJson[toolIndex][index].right
  4227. : 0) + "%"
  4228. }}</span>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. <div
  4233. class="xuan_right_box"
  4234. style="background: unset; padding: 0 10px"
  4235. v-if="
  4236. tType &&
  4237. ((tType == 2 && sIsOpen == true) ||
  4238. tType == 1 ||
  4239. tType == 4) &&
  4240. tool.tool.indexOf(4) != -1
  4241. "
  4242. >
  4243. <AskStatic
  4244. v-if="
  4245. worksStudent.length &&
  4246. worksStudent[toolIndex].length > 0
  4247. "
  4248. :askJSON="tool"
  4249. :checkJson="checkJson[toolIndex]"
  4250. ></AskStatic>
  4251. </div>
  4252. <div
  4253. v-if="
  4254. tType &&
  4255. ((tType == 2 && sIsOpen == true) ||
  4256. tType == 1 ||
  4257. tType == 4) &&
  4258. tool.tool.indexOf(4) != -1
  4259. "
  4260. class="worksBox"
  4261. >
  4262. <div
  4263. class="zuoyeYulan"
  4264. v-if="
  4265. worksStudent.length &&
  4266. worksStudent[toolIndex].length > 0
  4267. "
  4268. >
  4269. <div class="worksTop">
  4270. <div>作业预览</div>
  4271. <div
  4272. class="corOpen"
  4273. @click="contract(toolIndex)"
  4274. v-if="
  4275. (isCloseList[toolIndex].isCloseBoolean) &&
  4276. isCloseList[toolIndex].isClose == 0
  4277. "
  4278. >
  4279. 折叠
  4280. </div>
  4281. <div
  4282. class="corOpen"
  4283. @click="contract(toolIndex)"
  4284. v-if="isCloseList[toolIndex].isClose == 1"
  4285. >
  4286. 展开
  4287. </div>
  4288. </div>
  4289. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4290. </div>
  4291. <div>
  4292. <div
  4293. :id="'tool-' + toolIndex"
  4294. :style="{
  4295. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4296. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4297. }"
  4298. class="worksDetailBox"
  4299. v-if="
  4300. worksStudent.length &&
  4301. worksStudent[toolIndex].length > 0
  4302. "
  4303. >
  4304. <div
  4305. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4306. :key="wIndex"
  4307. class="isWorksName2"
  4308. @click="
  4309. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4310. "
  4311. >
  4312. {{ w.sName }}
  4313. <img
  4314. class="deleteImg deleteImg2"
  4315. src="../assets/deleteworks.png"
  4316. v-if="
  4317. w.userid == userid || tType == 1 || tType == 4
  4318. "
  4319. @click.stop="deleteWorks(w.wid)"
  4320. alt
  4321. />
  4322. </div>
  4323. <!-- <div class="works" style="
  4324. width: 200px;
  4325. height: 140px;
  4326. border-radius: 10px;
  4327. box-shadow: 0 0 6px 1px #dfdada;
  4328. overflow: hidden;
  4329. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4330. <div class="workImg">
  4331. <img src="../assets/icon/works/noImg.png" @click="
  4332. openTools(
  4333. 4,
  4334. toolIndex,
  4335. taskCount,
  4336. w.works,
  4337. w.sName
  4338. )
  4339. " alt />
  4340. </div>
  4341. <div class="worksName">
  4342. <div>{{ w.sName }}</div>
  4343. <div>{{ w.time }}</div>
  4344. </div>
  4345. </div> -->
  4346. </div>
  4347. </div>
  4348. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4349. 未提交
  4350. </div>
  4351. <div
  4352. class="noWorksS"
  4353. v-if="noWorksS && noWorksS[toolIndex].length"
  4354. >
  4355. <div
  4356. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4357. :key="sIndex"
  4358. class="noWorksName"
  4359. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4360. >
  4361. <el-tooltip effect="dark" :content="s.student" placement="top">
  4362. <span>{{ s.student }}</span>
  4363. </el-tooltip>
  4364. </div>
  4365. </div>
  4366. </div>
  4367. <div
  4368. v-if="
  4369. tType &&
  4370. ((tType == 2 && sIsOpen == true) ||
  4371. tType == 1 ||
  4372. tType == 4) &&
  4373. tool.tool.indexOf(45) != -1 &&
  4374. (tool.testJson.testJson[0].answer ||
  4375. tool.testJson.testJson[0].answer === 0) &&
  4376. checkJson[toolIndex].length
  4377. "
  4378. class="xuan_right_box"
  4379. >
  4380. <div
  4381. class="tool_right_box"
  4382. v-for="(item, index) in tool.testJson.testJson"
  4383. :key="index"
  4384. >
  4385. <div class="right_box_xuan" style="margin-right: 10px">
  4386. <span>正确率</span>
  4387. <span>{{
  4388. (checkJson[toolIndex][index].right
  4389. ? checkJson[toolIndex][index].right
  4390. : 0) + "%"
  4391. }}</span>
  4392. </div>
  4393. <div style="width: calc(100% - 30px);">
  4394. <el-tooltip
  4395. effect="light"
  4396. :content="index + 1 + '、' + item.teststitle"
  4397. placement="top"
  4398. popper-class="text_tooltip"
  4399. >
  4400. <div
  4401. style="
  4402. width: calc(100% - 130px);
  4403. display: flex;
  4404. white-space: nowrap;
  4405. overflow: hidden;
  4406. text-overflow: ellipsis;
  4407. word-break: break-word;
  4408. cursor: pointer;
  4409. "
  4410. >
  4411. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4412. </div>
  4413. </el-tooltip>
  4414. </div>
  4415. </div>
  4416. </div>
  4417. <div
  4418. class="xuan_right_box"
  4419. style="background: unset; padding: 0 10px; width: 91.5%"
  4420. v-if="
  4421. tType &&
  4422. ((tType == 2 && sIsOpen == true) ||
  4423. tType == 1 ||
  4424. tType == 4) &&
  4425. tool.tool.indexOf(45) != -1
  4426. "
  4427. >
  4428. <AskStatic2
  4429. v-if="
  4430. worksStudent.length &&
  4431. worksStudent[toolIndex].length > 0
  4432. "
  4433. :askJSON="tool"
  4434. :checkJson="checkJson[toolIndex]"
  4435. ></AskStatic2>
  4436. </div>
  4437. <div
  4438. v-if="
  4439. tType &&
  4440. ((tType == 2 && sIsOpen == true) ||
  4441. tType == 1 ||
  4442. tType == 4) &&
  4443. tool.tool.indexOf(45) != -1
  4444. "
  4445. class="worksBox"
  4446. >
  4447. <div
  4448. class="zuoyeYulan"
  4449. v-if="
  4450. worksStudent.length &&
  4451. worksStudent[toolIndex].length > 0
  4452. "
  4453. >
  4454. <div class="worksTop">
  4455. <div>作业预览</div>
  4456. <div
  4457. class="corOpen"
  4458. @click="contract(toolIndex)"
  4459. v-if="
  4460. (isCloseList[toolIndex].isCloseBoolean) &&
  4461. isCloseList[toolIndex].isClose == 0
  4462. "
  4463. >
  4464. 折叠
  4465. </div>
  4466. <div
  4467. class="corOpen"
  4468. @click="contract(toolIndex)"
  4469. v-if="isCloseList[toolIndex].isClose == 1"
  4470. >
  4471. 展开
  4472. </div>
  4473. </div>
  4474. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4475. </div>
  4476. <div>
  4477. <div
  4478. :id="'tool-' + toolIndex"
  4479. :style="{
  4480. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4481. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4482. }"
  4483. class="worksDetailBox"
  4484. v-if="
  4485. worksStudent.length &&
  4486. worksStudent[toolIndex].length > 0
  4487. "
  4488. >
  4489. <div
  4490. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4491. :key="wIndex"
  4492. class="isWorksName2"
  4493. @click="
  4494. openTools(
  4495. 45,
  4496. toolIndex,
  4497. taskCount,
  4498. w.works,
  4499. w.sName
  4500. )
  4501. "
  4502. >
  4503. {{ w.sName }}
  4504. <img
  4505. class="deleteImg deleteImg2"
  4506. src="../assets/deleteworks.png"
  4507. v-if="
  4508. w.userid == userid || tType == 1 || tType == 4
  4509. "
  4510. @click.stop="deleteWorks(w.wid)"
  4511. alt
  4512. />
  4513. </div>
  4514. </div>
  4515. </div>
  4516. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4517. 未提交
  4518. </div>
  4519. <div
  4520. class="noWorksS"
  4521. v-if="noWorksS && noWorksS[toolIndex].length"
  4522. >
  4523. <div
  4524. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4525. :key="sIndex"
  4526. class="noWorksName"
  4527. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4528. >
  4529. <el-tooltip effect="dark" :content="s.student" placement="top">
  4530. <span>{{ s.student }}</span>
  4531. </el-tooltip>
  4532. </div>
  4533. </div>
  4534. </div>
  4535. <div
  4536. v-if="
  4537. tType &&
  4538. ((tType == 2 && sIsOpen == true) ||
  4539. tType == 1 ||
  4540. tType == 4) &&
  4541. tool.tool.indexOf(69) != -1
  4542. "
  4543. class="worksBox"
  4544. >
  4545. <div
  4546. class="zuoyeYulan"
  4547. v-if="
  4548. worksStudent.length &&
  4549. worksStudent[toolIndex].length > 0
  4550. "
  4551. >
  4552. <div class="worksTop">
  4553. <div>作业预览</div>
  4554. <div
  4555. class="corOpen"
  4556. @click="contract(toolIndex)"
  4557. v-if="
  4558. (isCloseList[toolIndex].isCloseBoolean) &&
  4559. isCloseList[toolIndex].isClose == 0
  4560. "
  4561. >
  4562. 折叠
  4563. </div>
  4564. <div
  4565. class="corOpen"
  4566. @click="contract(toolIndex)"
  4567. v-if="isCloseList[toolIndex].isClose == 1"
  4568. >
  4569. 展开
  4570. </div>
  4571. </div>
  4572. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4573. </div>
  4574. <div>
  4575. <div
  4576. :id="'tool-' + toolIndex"
  4577. :style="{
  4578. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4579. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4580. }"
  4581. class="worksDetailBox"
  4582. v-if="
  4583. worksStudent.length &&
  4584. worksStudent[toolIndex].length > 0
  4585. "
  4586. >
  4587. <div
  4588. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4589. :key="wIndex"
  4590. class="isWorksName2"
  4591. style="width: 160px;height: 65px;line-height: 65px;"
  4592. @click="
  4593. openTools(
  4594. 69,
  4595. toolIndex,
  4596. taskCount,
  4597. w.works,
  4598. w.sName,
  4599. w.wid
  4600. )
  4601. "
  4602. >
  4603. {{ w.sName }}
  4604. <img
  4605. class="deleteImg1"
  4606. src="../assets/evaEnglish.png"
  4607. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4608. alt
  4609. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4610. />
  4611. <img
  4612. class="deleteImg deleteImg2"
  4613. src="../assets/deleteworks.png"
  4614. v-if="
  4615. w.userid == userid || tType == 1 || tType == 4
  4616. "
  4617. @click.stop="deleteWorks(w.wid)"
  4618. alt
  4619. />
  4620. </div>
  4621. </div>
  4622. </div>
  4623. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4624. 未提交
  4625. </div>
  4626. <div
  4627. class="noWorksS"
  4628. v-if="noWorksS && noWorksS[toolIndex].length"
  4629. >
  4630. <div
  4631. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4632. :key="sIndex"
  4633. class="noWorksName"
  4634. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4635. >
  4636. <el-tooltip effect="dark" :content="s.student" placement="top">
  4637. <span>{{ s.student }}</span>
  4638. </el-tooltip>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div
  4643. v-if="
  4644. tType &&
  4645. ((tType == 2 && sIsOpen == true) ||
  4646. tType == 1 ||
  4647. tType == 4) &&
  4648. tool.tool.indexOf(15) != -1
  4649. "
  4650. class="worksBox"
  4651. >
  4652. <div
  4653. class="zuoyeYulan"
  4654. v-if="
  4655. (worksStudent.length &&
  4656. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4657. "
  4658. >
  4659. <div class="worksTop">
  4660. <div>作业预览</div>
  4661. <div
  4662. class="corOpen"
  4663. @click="contract(toolIndex)"
  4664. v-if="
  4665. (isCloseList[toolIndex].isCloseBoolean) &&
  4666. isCloseList[toolIndex].isClose == 0
  4667. "
  4668. >
  4669. 折叠
  4670. </div>
  4671. <div
  4672. class="corOpen"
  4673. @click="contract(toolIndex)"
  4674. v-if="isCloseList[toolIndex].isClose == 1"
  4675. >
  4676. 展开
  4677. </div>
  4678. </div>
  4679. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4680. </div>
  4681. <div
  4682. class="group_workBox"
  4683. v-for="(g, gindex) in courseGroup.group"
  4684. :key="gindex"
  4685. >
  4686. <div class="group_box">
  4687. <div class="group_title">
  4688. <el-tooltip
  4689. class="item"
  4690. effect="light"
  4691. :content="g.name"
  4692. placement="top"
  4693. >
  4694. <div class="group_name">{{ g.name }}</div>
  4695. </el-tooltip>
  4696. </div>
  4697. <div
  4698. class="group_work"
  4699. v-if="
  4700. g.works &&
  4701. g.works.length &&
  4702. g.works[toolIndex].length
  4703. "
  4704. >
  4705. <div
  4706. class="works"
  4707. v-for="(w, wIndex) in g.works[toolIndex]"
  4708. :key="wIndex"
  4709. >
  4710. <div
  4711. class="workImg"
  4712. style="
  4713. border-radius: 15px;
  4714. box-shadow: 0px 0px 5px 5px #eee;
  4715. "
  4716. >
  4717. <div
  4718. class="answerBg"
  4719. style="border-radius: 15px 15px 0 0"
  4720. @click="
  4721. commentOther(w, toolIndex, wIndex, null, g.id)
  4722. "
  4723. >
  4724. <div class="answerContent">
  4725. {{ JSON.parse(w.works)[0].answer }}
  4726. </div>
  4727. <div
  4728. class="answerScore"
  4729. v-if="w.score"
  4730. @click.stop="openScore(w)"
  4731. :class="{
  4732. rightW:
  4733. w.userid == userid ||
  4734. tType == 1 ||
  4735. tType == 4,
  4736. }"
  4737. >
  4738. {{ JSON.parse(w.score).wScore }}分
  4739. </div>
  4740. <div
  4741. class="answerScore"
  4742. @click.stop="openScore(w)"
  4743. v-else-if="courseDetail.userid == userid"
  4744. :class="{
  4745. rightW:
  4746. w.userid == userid ||
  4747. tType == 1 ||
  4748. tType == 4,
  4749. }"
  4750. >
  4751. 评分
  4752. </div>
  4753. <img
  4754. class="deleteImg"
  4755. src="../assets/deleteworks.png"
  4756. v-if="
  4757. w.userid == userid ||
  4758. tType == 1 ||
  4759. tType == 4
  4760. "
  4761. @click.stop="deleteWorks(w.wid)"
  4762. alt
  4763. />
  4764. </div>
  4765. <div class="comment">
  4766. <div class="worksName">
  4767. <div>{{ w.sName }}</div>
  4768. </div>
  4769. <div class="commentList">
  4770. <div
  4771. class="commentImg"
  4772. @click="
  4773. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4774. "
  4775. >
  4776. <img
  4777. :src="w.isLikes == true ? likes : noLikes"
  4778. alt=""
  4779. />
  4780. </div>
  4781. <div>{{ w.likesCount }}</div>
  4782. </div>
  4783. <div
  4784. class="commentList"
  4785. style="margin-right: 15px"
  4786. >
  4787. <div
  4788. class="commentImg"
  4789. @click="
  4790. commentOther(
  4791. w,
  4792. toolIndex,
  4793. wIndex,
  4794. null,
  4795. g.id
  4796. )
  4797. "
  4798. >
  4799. <img
  4800. src="../assets/icon/comment/comment.png"
  4801. alt=""
  4802. />
  4803. </div>
  4804. <div>{{ w.commentCount }}</div>
  4805. </div>
  4806. </div>
  4807. </div>
  4808. </div>
  4809. </div>
  4810. <div class="group_work" v-else>暂无提交作业</div>
  4811. </div>
  4812. </div>
  4813. <div
  4814. :id="'tool-' + toolIndex"
  4815. :style="{
  4816. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4817. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4818. }"
  4819. class="worksDetailBox"
  4820. v-if="
  4821. worksStudent.length &&
  4822. worksStudent[toolIndex].length > 0
  4823. "
  4824. >
  4825. <div
  4826. class="works"
  4827. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4828. :key="wIndex"
  4829. >
  4830. <div
  4831. class="workImg"
  4832. style="
  4833. border-radius: 15px;
  4834. box-shadow: 0px 0px 5px 5px #eee;
  4835. "
  4836. >
  4837. <!-- <img
  4838. src="../assets/icon/works/noImg.png"
  4839. @click="openTools(15, toolIndex, taskCount, w.works)"
  4840. alt=""
  4841. />-->
  4842. <div
  4843. class="answerBg"
  4844. style="border-radius: 15px 15px 0 0"
  4845. @click="commentOther(w, toolIndex, wIndex)"
  4846. >
  4847. <!-- <div>{{ w.sName }}</div> -->
  4848. <div class="answerContent">
  4849. {{ JSON.parse(w.works)[0].answer }}
  4850. </div>
  4851. <div
  4852. class="answerScore"
  4853. v-if="w.score"
  4854. @click.stop="openScore(w)"
  4855. :class="{
  4856. rightW:
  4857. w.userid == userid ||
  4858. tType == 1 ||
  4859. tType == 4,
  4860. }"
  4861. >
  4862. {{ JSON.parse(w.score).wScore }}分
  4863. </div>
  4864. <div
  4865. class="answerScore"
  4866. @click.stop="openScore(w)"
  4867. v-else-if="courseDetail.userid == userid"
  4868. :class="{
  4869. rightW:
  4870. w.userid == userid ||
  4871. tType == 1 ||
  4872. tType == 4,
  4873. }"
  4874. >
  4875. 评分
  4876. </div>
  4877. <img
  4878. class="deleteImg"
  4879. src="../assets/deleteworks.png"
  4880. v-if="
  4881. w.userid == userid || tType == 1 || tType == 4
  4882. "
  4883. @click.stop="deleteWorks(w.wid)"
  4884. alt
  4885. />
  4886. </div>
  4887. <div class="comment">
  4888. <div class="worksName">
  4889. <div>{{ w.sName }}</div>
  4890. </div>
  4891. <div class="commentList">
  4892. <div
  4893. class="commentImg"
  4894. @click="
  4895. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4896. "
  4897. >
  4898. <img
  4899. :src="w.isLikes == true ? likes : noLikes"
  4900. alt=""
  4901. />
  4902. </div>
  4903. <div>{{ w.likesCount }}</div>
  4904. </div>
  4905. <div class="commentList" style="margin-right: 15px">
  4906. <div
  4907. class="commentImg"
  4908. @click="commentOther(w, toolIndex, wIndex)"
  4909. >
  4910. <img
  4911. src="../assets/icon/comment/comment.png"
  4912. alt=""
  4913. />
  4914. </div>
  4915. <div>{{ w.commentCount }}</div>
  4916. </div>
  4917. </div>
  4918. </div>
  4919. </div>
  4920. </div>
  4921. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4922. 未提交
  4923. </div>
  4924. <div
  4925. class="noWorksS"
  4926. v-if="noWorksS && noWorksS[toolIndex].length"
  4927. >
  4928. <div
  4929. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4930. :key="sIndex"
  4931. class="noWorksName"
  4932. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4933. >
  4934. <el-tooltip effect="dark" :content="s.student" placement="top">
  4935. <span>{{ s.student }}</span>
  4936. </el-tooltip>
  4937. </div>
  4938. </div>
  4939. </div>
  4940. <div
  4941. v-if="
  4942. tType &&
  4943. ((tType == 2 && sIsOpen == true) ||
  4944. tType == 1 ||
  4945. tType == 4) &&
  4946. tool.tool.indexOf(1) != -1
  4947. "
  4948. class="worksBox"
  4949. >
  4950. <div
  4951. class="zuoyeYulan"
  4952. v-if="
  4953. (worksStudent.length &&
  4954. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4955. "
  4956. >
  4957. <div class="worksTop">
  4958. <div>作业预览</div>
  4959. <div
  4960. class="corOpen"
  4961. @click="contract(toolIndex)"
  4962. v-if="
  4963. (isCloseList[toolIndex].isCloseBoolean) &&
  4964. isCloseList[toolIndex].isClose == 0
  4965. "
  4966. >
  4967. 折叠
  4968. </div>
  4969. <div
  4970. class="corOpen"
  4971. @click="contract(toolIndex)"
  4972. v-if="isCloseList[toolIndex].isClose == 1"
  4973. >
  4974. 展开
  4975. </div>
  4976. </div>
  4977. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4978. </div>
  4979. <div
  4980. class="group_workBox"
  4981. v-for="(g, gindex) in courseGroup.group"
  4982. :key="gindex"
  4983. >
  4984. <div class="group_box">
  4985. <div class="group_title">
  4986. <el-tooltip
  4987. class="item"
  4988. effect="light"
  4989. :content="g.name"
  4990. placement="top"
  4991. >
  4992. <div class="group_name">{{ g.name }}</div>
  4993. </el-tooltip>
  4994. </div>
  4995. <div
  4996. class="group_work"
  4997. v-if="
  4998. g.works &&
  4999. g.works.length &&
  5000. g.works[toolIndex].length
  5001. "
  5002. >
  5003. <div
  5004. class="works"
  5005. style="
  5006. width: 200px;
  5007. height: 140px;
  5008. margin: 10px 10px 10px 0;
  5009. border-radius: 15px;
  5010. box-shadow: 0 0 6px 1px #dfdada;
  5011. "
  5012. v-for="(w, wIndex) in g.works[toolIndex]"
  5013. :key="wIndex"
  5014. :class="w.type == 1 ? 'isTypeOne' : ''"
  5015. >
  5016. <div class="workImg">
  5017. <img
  5018. :src="w.works"
  5019. @click="previewImg(w.works,w)"
  5020. alt
  5021. />
  5022. <div
  5023. class="answerScore"
  5024. v-if="w.score"
  5025. @click.stop="openScore(w)"
  5026. :class="{
  5027. rightW:
  5028. w.userid == userid ||
  5029. tType == 1 ||
  5030. tType == 4,
  5031. }"
  5032. >
  5033. {{ JSON.parse(w.score).wScore }}分
  5034. </div>
  5035. <div
  5036. class="answerScore"
  5037. @click.stop="openScore(w)"
  5038. v-else-if="courseDetail.userid == userid"
  5039. :class="{
  5040. rightW:
  5041. w.userid == userid ||
  5042. tType == 1 ||
  5043. tType == 4,
  5044. }"
  5045. >
  5046. 评分
  5047. </div>
  5048. <img
  5049. class="deleteImg"
  5050. src="../assets/deleteworks.png"
  5051. v-if="
  5052. w.userid == userid || tType == 1 || tType == 4
  5053. "
  5054. @click.stop="deleteWorks(w.wid)"
  5055. alt
  5056. />
  5057. </div>
  5058. <div class="comment" style="min-width: 200px">
  5059. <div class="worksName">
  5060. <div>{{ w.sName }}</div>
  5061. </div>
  5062. <div class="commentList">
  5063. <div class="commentList">
  5064. <div
  5065. class="commentImg"
  5066. @click="
  5067. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5068. "
  5069. >
  5070. <img
  5071. :src="w.isLikes == true ? likes : noLikes"
  5072. alt=""
  5073. />
  5074. </div>
  5075. <div>{{ w.likesCount }}</div>
  5076. </div>
  5077. <div
  5078. class="commentList"
  5079. style="margin-right: 15px"
  5080. >
  5081. <div
  5082. class="commentImg"
  5083. @click="
  5084. commentOther(
  5085. w,
  5086. toolIndex,
  5087. wIndex,
  5088. null,
  5089. g.id
  5090. )
  5091. "
  5092. >
  5093. <img
  5094. src="../assets/icon/comment/comment.png"
  5095. alt=""
  5096. />
  5097. </div>
  5098. <div>{{ w.commentCount }}</div>
  5099. </div>
  5100. </div>
  5101. </div>
  5102. </div>
  5103. </div>
  5104. <div class="group_work" v-else>暂无提交作业</div>
  5105. </div>
  5106. </div>
  5107. <div
  5108. :id="'tool-' + toolIndex"
  5109. :style="{
  5110. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5111. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5112. }"
  5113. class="worksDetailBox"
  5114. v-if="
  5115. worksStudent.length &&
  5116. worksStudent[toolIndex].length > 0
  5117. "
  5118. >
  5119. <div
  5120. class="works"
  5121. style="
  5122. width: 200px;
  5123. height: 140px;
  5124. margin: 10px 10px 10px 0;
  5125. border-radius: 15px;
  5126. box-shadow: 0 0 6px 1px #dfdada;
  5127. "
  5128. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5129. :key="wIndex"
  5130. >
  5131. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5132. <div class="workImg">
  5133. <img
  5134. :src="w.works"
  5135. @click="previewImg(w.works,w)"
  5136. alt
  5137. />
  5138. <div
  5139. class="answerScore"
  5140. v-if="w.score"
  5141. @click.stop="openScore(w)"
  5142. :class="{
  5143. rightW:
  5144. w.userid == userid || tType == 1 || tType == 4,
  5145. }"
  5146. >
  5147. {{ JSON.parse(w.score).wScore }}分
  5148. </div>
  5149. <div
  5150. class="answerScore"
  5151. @click.stop="openScore(w)"
  5152. v-else-if="courseDetail.userid == userid"
  5153. :class="{
  5154. rightW:
  5155. w.userid == userid || tType == 1 || tType == 4,
  5156. }"
  5157. >
  5158. 评分
  5159. </div>
  5160. <img
  5161. class="deleteImg"
  5162. src="../assets/deleteworks.png"
  5163. v-if="
  5164. w.userid == userid || tType == 1 || tType == 4
  5165. "
  5166. @click.stop="deleteWorks(w.wid)"
  5167. alt
  5168. />
  5169. </div>
  5170. <div class="comment" style="min-width: 200px">
  5171. <div class="worksName">
  5172. <div>{{ w.sName }}</div>
  5173. </div>
  5174. <div class="commentList">
  5175. <div class="commentList">
  5176. <div
  5177. class="commentImg"
  5178. @click="
  5179. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5180. "
  5181. >
  5182. <img
  5183. :src="w.isLikes == true ? likes : noLikes"
  5184. alt=""
  5185. />
  5186. </div>
  5187. <div>{{ w.likesCount }}</div>
  5188. </div>
  5189. <div class="commentList" style="margin-right: 15px">
  5190. <div
  5191. class="commentImg"
  5192. @click="commentOther(w, toolIndex, wIndex)"
  5193. >
  5194. <img
  5195. src="../assets/icon/comment/comment.png"
  5196. alt=""
  5197. />
  5198. </div>
  5199. <div>{{ w.commentCount }}</div>
  5200. </div>
  5201. </div>
  5202. </div>
  5203. </div>
  5204. </div>
  5205. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5206. 未提交
  5207. </div>
  5208. <div
  5209. class="noWorksS"
  5210. v-if="noWorksS && noWorksS[toolIndex].length"
  5211. >
  5212. <div
  5213. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5214. :key="sIndex"
  5215. class="noWorksName"
  5216. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5217. >
  5218. <el-tooltip effect="dark" :content="s.student" placement="top">
  5219. <span>{{ s.student }}</span>
  5220. </el-tooltip>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. <div
  5225. v-if="
  5226. tType &&
  5227. ((tType == 2 && sIsOpen == true) ||
  5228. tType == 1 ||
  5229. tType == 4) &&
  5230. tool.tool.indexOf(3) != -1
  5231. "
  5232. class="worksBox"
  5233. >
  5234. <div
  5235. class="zuoyeYulan"
  5236. v-if="
  5237. (worksStudent.length &&
  5238. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5239. "
  5240. >
  5241. <div class="worksTop">
  5242. <div>作业预览</div>
  5243. <div
  5244. class="corOpen"
  5245. @click="contract(toolIndex)"
  5246. v-if="
  5247. (isCloseList[toolIndex].isCloseBoolean) &&
  5248. isCloseList[toolIndex].isClose == 0
  5249. "
  5250. >
  5251. 折叠
  5252. </div>
  5253. <div
  5254. class="corOpen"
  5255. @click="contract(toolIndex)"
  5256. v-if="isCloseList[toolIndex].isClose == 1"
  5257. >
  5258. 展开
  5259. </div>
  5260. </div>
  5261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5262. </div>
  5263. <div
  5264. class="group_workBox"
  5265. v-for="(g, gindex) in courseGroup.group"
  5266. :key="gindex"
  5267. >
  5268. <div class="group_box">
  5269. <div class="group_title">
  5270. <el-tooltip
  5271. class="item"
  5272. effect="light"
  5273. :content="g.name"
  5274. placement="top"
  5275. >
  5276. <div class="group_name">{{ g.name }}</div>
  5277. </el-tooltip>
  5278. </div>
  5279. <div
  5280. class="group_work"
  5281. v-if="
  5282. g.works &&
  5283. g.works.length &&
  5284. g.works[toolIndex].length
  5285. "
  5286. >
  5287. <div
  5288. class="works"
  5289. style="
  5290. width: 200px;
  5291. height: 140px;
  5292. margin: 10px 10px 10px 0;
  5293. border-radius: 15px;
  5294. box-shadow: 0 0 6px 1px #dfdada;
  5295. "
  5296. v-for="(w, wIndex) in g.works[toolIndex]"
  5297. :key="wIndex"
  5298. :class="w.type == 1 ? 'isTypeOne' : ''"
  5299. >
  5300. <div class="workImg">
  5301. <img
  5302. :src="w.works"
  5303. @click="previewImg(w.works,w)"
  5304. alt
  5305. />
  5306. <div
  5307. class="answerScore"
  5308. v-if="w.score"
  5309. @click.stop="openScore(w)"
  5310. :class="{
  5311. rightW:
  5312. w.userid == userid ||
  5313. tType == 1 ||
  5314. tType == 4,
  5315. }"
  5316. >
  5317. {{ JSON.parse(w.score).wScore }}分
  5318. </div>
  5319. <div
  5320. class="answerScore"
  5321. @click.stop="openScore(w)"
  5322. v-else-if="courseDetail.userid == userid"
  5323. :class="{
  5324. rightW:
  5325. w.userid == userid ||
  5326. tType == 1 ||
  5327. tType == 4,
  5328. }"
  5329. >
  5330. 评分
  5331. </div>
  5332. <img
  5333. class="deleteImg"
  5334. src="../assets/deleteworks.png"
  5335. v-if="
  5336. w.userid == userid || tType == 1 || tType == 4
  5337. "
  5338. @click.stop="deleteWorks(w.wid)"
  5339. alt
  5340. />
  5341. </div>
  5342. <div class="comment" style="min-width: 200px">
  5343. <div class="worksName">
  5344. <div>{{ w.sName }}</div>
  5345. </div>
  5346. <div class="commentList">
  5347. <div class="commentList">
  5348. <div
  5349. class="commentImg"
  5350. @click="
  5351. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5352. "
  5353. >
  5354. <img
  5355. :src="w.isLikes == true ? likes : noLikes"
  5356. alt=""
  5357. />
  5358. </div>
  5359. <div>{{ w.likesCount }}</div>
  5360. </div>
  5361. <div
  5362. class="commentList"
  5363. style="margin-right: 15px"
  5364. >
  5365. <div
  5366. class="commentImg"
  5367. @click="
  5368. commentOther(
  5369. w,
  5370. toolIndex,
  5371. wIndex,
  5372. null,
  5373. g.id
  5374. )
  5375. "
  5376. >
  5377. <img
  5378. src="../assets/icon/comment/comment.png"
  5379. alt=""
  5380. />
  5381. </div>
  5382. <div>{{ w.commentCount }}</div>
  5383. </div>
  5384. </div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <div class="group_work" v-else>暂无提交作业</div>
  5389. </div>
  5390. </div>
  5391. <div
  5392. :id="'tool-' + toolIndex"
  5393. :style="{
  5394. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5395. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5396. }"
  5397. class="worksDetailBox"
  5398. v-if="
  5399. worksStudent.length &&
  5400. worksStudent[toolIndex].length > 0
  5401. "
  5402. >
  5403. <div
  5404. class="works"
  5405. style="
  5406. width: 200px;
  5407. height: 140px;
  5408. margin: 10px 10px 10px 0;
  5409. border-radius: 15px;
  5410. box-shadow: 0 0 6px 1px #dfdada;
  5411. "
  5412. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5413. :key="wIndex"
  5414. >
  5415. <!-- @click="previewImg(w.works)" -->
  5416. <div class="workImg">
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works,w)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid || tType == 1 || tType == 4,
  5429. }"
  5430. >
  5431. {{ JSON.parse(w.score).wScore }}分
  5432. </div>
  5433. <div
  5434. class="answerScore"
  5435. @click.stop="openScore(w)"
  5436. v-else-if="courseDetail.userid == userid"
  5437. :class="{
  5438. rightW:
  5439. w.userid == userid || tType == 1 || tType == 4,
  5440. }"
  5441. >
  5442. 评分
  5443. </div>
  5444. <img
  5445. class="deleteImg"
  5446. src="../assets/deleteworks.png"
  5447. v-if="
  5448. w.userid == userid || tType == 1 || tType == 4
  5449. "
  5450. @click.stop="deleteWorks(w.wid)"
  5451. alt
  5452. />
  5453. </div>
  5454. <div class="comment" style="min-width: 200px">
  5455. <div class="worksName">
  5456. <div>{{ w.sName }}</div>
  5457. </div>
  5458. <div class="commentList">
  5459. <div class="commentList">
  5460. <div
  5461. class="commentImg"
  5462. @click="
  5463. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5464. "
  5465. >
  5466. <img
  5467. :src="w.isLikes == true ? likes : noLikes"
  5468. alt=""
  5469. />
  5470. </div>
  5471. <div>{{ w.likesCount }}</div>
  5472. </div>
  5473. <div class="commentList" style="margin-right: 15px">
  5474. <div
  5475. class="commentImg"
  5476. @click="commentOther(w, toolIndex, wIndex)"
  5477. >
  5478. <img
  5479. src="../assets/icon/comment/comment.png"
  5480. alt=""
  5481. />
  5482. </div>
  5483. <div>{{ w.commentCount }}</div>
  5484. </div>
  5485. </div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5490. 未提交
  5491. </div>
  5492. <div
  5493. class="noWorksS"
  5494. v-if="noWorksS && noWorksS[toolIndex].length"
  5495. >
  5496. <div
  5497. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5498. :key="sIndex"
  5499. class="noWorksName"
  5500. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5501. >
  5502. <el-tooltip effect="dark" :content="s.student" placement="top">
  5503. <span>{{ s.student }}</span>
  5504. </el-tooltip>
  5505. </div>
  5506. </div>
  5507. </div>
  5508. <div
  5509. v-if="
  5510. tType &&
  5511. ((tType == 2 && sIsOpen == true) ||
  5512. tType == 1 ||
  5513. tType == 4) &&
  5514. tool.tool.indexOf(6) != -1
  5515. "
  5516. class="worksBox"
  5517. >
  5518. <div
  5519. class="zuoyeYulan"
  5520. v-if="
  5521. (worksStudent.length &&
  5522. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5523. "
  5524. >
  5525. <div class="worksTop">
  5526. <div>作业预览</div>
  5527. <div
  5528. class="corOpen"
  5529. @click="contract(toolIndex)"
  5530. v-if="
  5531. (isCloseList[toolIndex].isCloseBoolean) &&
  5532. isCloseList[toolIndex].isClose == 0
  5533. "
  5534. >
  5535. 折叠
  5536. </div>
  5537. <div
  5538. class="corOpen"
  5539. @click="contract(toolIndex)"
  5540. v-if="isCloseList[toolIndex].isClose == 1"
  5541. >
  5542. 展开
  5543. </div>
  5544. </div>
  5545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5546. </div>
  5547. <div
  5548. class="group_workBox"
  5549. v-for="(g, gindex) in courseGroup.group"
  5550. :key="gindex"
  5551. >
  5552. <div class="group_box">
  5553. <div class="group_title">
  5554. <el-tooltip
  5555. class="item"
  5556. effect="light"
  5557. :content="g.name"
  5558. placement="top"
  5559. >
  5560. <div class="group_name">{{ g.name }}</div>
  5561. </el-tooltip>
  5562. </div>
  5563. <div
  5564. class="group_work"
  5565. v-if="
  5566. g.works &&
  5567. g.works.length &&
  5568. g.works[toolIndex].length
  5569. "
  5570. >
  5571. <div
  5572. class="works"
  5573. style="
  5574. width: 200px;
  5575. height: 140px;
  5576. margin: 10px 10px 10px 0;
  5577. border-radius: 15px;
  5578. box-shadow: 0 0 6px 1px #dfdada;
  5579. "
  5580. v-for="(w, wIndex) in g.works[toolIndex]"
  5581. :key="wIndex"
  5582. :class="w.type == 1 ? 'isTypeOne' : ''"
  5583. >
  5584. <div class="workImg">
  5585. <img
  5586. :src="w.works"
  5587. @click="previewImg(w.works,w)"
  5588. alt
  5589. />
  5590. <div
  5591. class="answerScore"
  5592. v-if="w.score"
  5593. @click.stop="openScore(w)"
  5594. :class="{
  5595. rightW:
  5596. w.userid == userid ||
  5597. tType == 1 ||
  5598. tType == 4,
  5599. }"
  5600. >
  5601. {{ JSON.parse(w.score).wScore }}分
  5602. </div>
  5603. <div
  5604. class="answerScore"
  5605. @click.stop="openScore(w)"
  5606. v-else-if="courseDetail.userid == userid"
  5607. :class="{
  5608. rightW:
  5609. w.userid == userid ||
  5610. tType == 1 ||
  5611. tType == 4,
  5612. }"
  5613. >
  5614. 评分
  5615. </div>
  5616. <img
  5617. class="deleteImg"
  5618. src="../assets/deleteworks.png"
  5619. v-if="
  5620. w.userid == userid || tType == 1 || tType == 4
  5621. "
  5622. @click.stop="deleteWorks(w.wid)"
  5623. alt
  5624. />
  5625. </div>
  5626. <div class="comment" style="min-width: 200px">
  5627. <div class="worksName">
  5628. <div>{{ w.sName }}</div>
  5629. </div>
  5630. <div class="commentList">
  5631. <div class="commentList">
  5632. <div
  5633. class="commentImg"
  5634. @click="
  5635. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5636. "
  5637. >
  5638. <img
  5639. :src="w.isLikes == true ? likes : noLikes"
  5640. alt=""
  5641. />
  5642. </div>
  5643. <div>{{ w.likesCount }}</div>
  5644. </div>
  5645. <div
  5646. class="commentList"
  5647. style="margin-right: 15px"
  5648. >
  5649. <div
  5650. class="commentImg"
  5651. @click="
  5652. commentOther(
  5653. w,
  5654. toolIndex,
  5655. wIndex,
  5656. null,
  5657. g.id
  5658. )
  5659. "
  5660. >
  5661. <img
  5662. src="../assets/icon/comment/comment.png"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.commentCount }}</div>
  5667. </div>
  5668. </div>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. <div class="group_work" v-else>暂无提交作业</div>
  5673. </div>
  5674. </div>
  5675. <div
  5676. :id="'tool-' + toolIndex"
  5677. :style="{
  5678. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5679. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5680. }"
  5681. class="worksDetailBox"
  5682. v-if="
  5683. worksStudent.length &&
  5684. worksStudent[toolIndex].length > 0
  5685. "
  5686. >
  5687. <div
  5688. class="works"
  5689. style="
  5690. width: 200px;
  5691. height: 140px;
  5692. margin: 10px 10px 10px 0;
  5693. border-radius: 15px;
  5694. box-shadow: 0 0 6px 1px #dfdada;
  5695. "
  5696. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5697. :key="wIndex"
  5698. >
  5699. <!-- @click="previewImg(w.works)" -->
  5700. <div class="workImg">
  5701. <img
  5702. :src="w.works"
  5703. @click="previewImg(w.works,w)"
  5704. alt
  5705. />
  5706. <div
  5707. class="answerScore"
  5708. v-if="w.score"
  5709. @click.stop="openScore(w)"
  5710. :class="{
  5711. rightW:
  5712. w.userid == userid || tType == 1 || tType == 4,
  5713. }"
  5714. >
  5715. {{ JSON.parse(w.score).wScore }}分
  5716. </div>
  5717. <div
  5718. class="answerScore"
  5719. @click.stop="openScore(w)"
  5720. v-else-if="courseDetail.userid == userid"
  5721. :class="{
  5722. rightW:
  5723. w.userid == userid || tType == 1 || tType == 4,
  5724. }"
  5725. >
  5726. 评分
  5727. </div>
  5728. <img
  5729. class="deleteImg"
  5730. src="../assets/deleteworks.png"
  5731. v-if="
  5732. w.userid == userid || tType == 1 || tType == 4
  5733. "
  5734. @click.stop="deleteWorks(w.wid)"
  5735. alt
  5736. />
  5737. </div>
  5738. <div class="comment" style="min-width: 200px">
  5739. <div class="worksName">
  5740. <div>{{ w.sName }}</div>
  5741. </div>
  5742. <div class="commentList">
  5743. <div class="commentList">
  5744. <div
  5745. class="commentImg"
  5746. @click="
  5747. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5748. "
  5749. >
  5750. <img
  5751. :src="w.isLikes == true ? likes : noLikes"
  5752. alt=""
  5753. />
  5754. </div>
  5755. <div>{{ w.likesCount }}</div>
  5756. </div>
  5757. <div class="commentList" style="margin-right: 15px">
  5758. <div
  5759. class="commentImg"
  5760. @click="commentOther(w, toolIndex, wIndex)"
  5761. >
  5762. <img
  5763. src="../assets/icon/comment/comment.png"
  5764. alt=""
  5765. />
  5766. </div>
  5767. <div>{{ w.commentCount }}</div>
  5768. </div>
  5769. </div>
  5770. </div>
  5771. </div>
  5772. </div>
  5773. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5774. 未提交
  5775. </div>
  5776. <div
  5777. class="noWorksS"
  5778. v-if="noWorksS && noWorksS[toolIndex].length"
  5779. >
  5780. <div
  5781. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5782. :key="sIndex"
  5783. class="noWorksName"
  5784. >
  5785. <el-tooltip effect="dark" :content="s.student" placement="top">
  5786. <span>{{ s.student }}</span>
  5787. </el-tooltip>
  5788. </div>
  5789. </div>
  5790. </div>
  5791. <div
  5792. v-if="
  5793. tType &&
  5794. ((tType == 2 && sIsOpen == true) ||
  5795. tType == 1 ||
  5796. tType == 4) &&
  5797. tool.tool.indexOf(7) != -1
  5798. "
  5799. class="worksBox"
  5800. >
  5801. <div
  5802. class="zuoyeYulan"
  5803. v-if="
  5804. (worksStudent.length &&
  5805. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5806. "
  5807. >
  5808. <div class="worksTop">
  5809. <div>作业预览</div>
  5810. <div
  5811. class="corOpen"
  5812. @click="contract(toolIndex)"
  5813. v-if="
  5814. (isCloseList[toolIndex].isCloseBoolean) &&
  5815. isCloseList[toolIndex].isClose == 0
  5816. "
  5817. >
  5818. 折叠
  5819. </div>
  5820. <div
  5821. class="corOpen"
  5822. @click="contract(toolIndex)"
  5823. v-if="isCloseList[toolIndex].isClose == 1"
  5824. >
  5825. 展开
  5826. </div>
  5827. </div>
  5828. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5829. </div>
  5830. <div
  5831. class="group_workBox"
  5832. v-for="(g, gindex) in courseGroup.group"
  5833. :key="gindex"
  5834. >
  5835. <div class="group_box">
  5836. <div class="group_title">
  5837. <el-tooltip
  5838. class="item"
  5839. effect="light"
  5840. :content="g.name"
  5841. placement="top"
  5842. >
  5843. <div class="group_name">{{ g.name }}</div>
  5844. </el-tooltip>
  5845. </div>
  5846. <div
  5847. class="group_work"
  5848. v-if="
  5849. g.works &&
  5850. g.works.length &&
  5851. g.works[toolIndex].length
  5852. "
  5853. >
  5854. <div
  5855. class="works"
  5856. style="
  5857. width: 200px;
  5858. height: 140px;
  5859. margin: 10px 10px 10px 0;
  5860. border-radius: 15px;
  5861. box-shadow: 0 0 6px 1px #dfdada;
  5862. "
  5863. v-for="(w, wIndex) in g.works[toolIndex]"
  5864. :key="wIndex"
  5865. :class="w.type == 1 ? 'isTypeOne' : ''"
  5866. >
  5867. <div class="workImg">
  5868. <img
  5869. :src="w.works"
  5870. @click="previewImg(w.works,w)"
  5871. alt
  5872. />
  5873. <div
  5874. class="answerScore"
  5875. v-if="w.score"
  5876. @click.stop="openScore(w)"
  5877. :class="{
  5878. rightW:
  5879. w.userid == userid ||
  5880. tType == 1 ||
  5881. tType == 4,
  5882. }"
  5883. >
  5884. {{ JSON.parse(w.score).wScore }}分
  5885. </div>
  5886. <div
  5887. class="answerScore"
  5888. @click.stop="openScore(w)"
  5889. v-else-if="courseDetail.userid == userid"
  5890. :class="{
  5891. rightW:
  5892. w.userid == userid ||
  5893. tType == 1 ||
  5894. tType == 4,
  5895. }"
  5896. >
  5897. 评分
  5898. </div>
  5899. <img
  5900. class="deleteImg"
  5901. src="../assets/deleteworks.png"
  5902. v-if="
  5903. w.userid == userid || tType == 1 || tType == 4
  5904. "
  5905. @click.stop="deleteWorks(w.wid)"
  5906. alt
  5907. />
  5908. </div>
  5909. <div class="comment" style="min-width: 200px">
  5910. <div class="worksName">
  5911. <div>{{ w.sName }}</div>
  5912. </div>
  5913. <div class="commentList">
  5914. <div class="commentList">
  5915. <div
  5916. class="commentImg"
  5917. @click="
  5918. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5919. "
  5920. >
  5921. <img
  5922. :src="w.isLikes == true ? likes : noLikes"
  5923. alt=""
  5924. />
  5925. </div>
  5926. <div>{{ w.likesCount }}</div>
  5927. </div>
  5928. <div
  5929. class="commentList"
  5930. style="margin-right: 15px"
  5931. >
  5932. <div
  5933. class="commentImg"
  5934. @click="
  5935. commentOther(
  5936. w,
  5937. toolIndex,
  5938. wIndex,
  5939. null,
  5940. g.id
  5941. )
  5942. "
  5943. >
  5944. <img
  5945. src="../assets/icon/comment/comment.png"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.commentCount }}</div>
  5950. </div>
  5951. </div>
  5952. </div>
  5953. </div>
  5954. </div>
  5955. <div class="group_work" v-else>暂无提交作业</div>
  5956. </div>
  5957. </div>
  5958. <div
  5959. :id="'tool-' + toolIndex"
  5960. :style="{
  5961. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5962. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5963. }"
  5964. class="worksDetailBox"
  5965. v-if="
  5966. worksStudent.length &&
  5967. worksStudent[toolIndex].length > 0
  5968. "
  5969. >
  5970. <div
  5971. class="works"
  5972. style="
  5973. width: 200px;
  5974. height: 140px;
  5975. margin: 10px 10px 10px 0;
  5976. border-radius: 15px;
  5977. box-shadow: 0 0 6px 1px #dfdada;
  5978. "
  5979. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5980. :key="wIndex"
  5981. >
  5982. <!-- @click="previewImg(w.works)" -->
  5983. <div class="workImg">
  5984. <img
  5985. :src="w.works"
  5986. @click="previewImg(w.works,w)"
  5987. alt
  5988. />
  5989. <div
  5990. class="answerScore"
  5991. v-if="w.score"
  5992. @click.stop="openScore(w)"
  5993. :class="{
  5994. rightW:
  5995. w.userid == userid || tType == 1 || tType == 4,
  5996. }"
  5997. >
  5998. {{ JSON.parse(w.score).wScore }}分
  5999. </div>
  6000. <div
  6001. class="answerScore"
  6002. @click.stop="openScore(w)"
  6003. v-else-if="courseDetail.userid == userid"
  6004. :class="{
  6005. rightW:
  6006. w.userid == userid || tType == 1 || tType == 4,
  6007. }"
  6008. >
  6009. 评分
  6010. </div>
  6011. <img
  6012. class="deleteImg"
  6013. src="../assets/deleteworks.png"
  6014. v-if="
  6015. w.userid == userid || tType == 1 || tType == 4
  6016. "
  6017. @click.stop="deleteWorks(w.wid)"
  6018. alt
  6019. />
  6020. </div>
  6021. <div class="comment" style="min-width: 200px">
  6022. <div class="worksName">
  6023. <div>{{ w.sName }}</div>
  6024. </div>
  6025. <div class="commentList">
  6026. <div class="commentList">
  6027. <div
  6028. class="commentImg"
  6029. @click="
  6030. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6031. "
  6032. >
  6033. <img
  6034. :src="w.isLikes == true ? likes : noLikes"
  6035. alt=""
  6036. />
  6037. </div>
  6038. <div>{{ w.likesCount }}</div>
  6039. </div>
  6040. <div class="commentList" style="margin-right: 15px">
  6041. <div
  6042. class="commentImg"
  6043. @click="commentOther(w, toolIndex, wIndex)"
  6044. >
  6045. <img
  6046. src="../assets/icon/comment/comment.png"
  6047. alt=""
  6048. />
  6049. </div>
  6050. <div>{{ w.commentCount }}</div>
  6051. </div>
  6052. </div>
  6053. </div>
  6054. </div>
  6055. </div>
  6056. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6057. 未提交
  6058. </div>
  6059. <div
  6060. class="noWorksS"
  6061. v-if="noWorksS && noWorksS[toolIndex].length"
  6062. >
  6063. <div
  6064. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6065. :key="sIndex"
  6066. class="noWorksName"
  6067. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6068. >
  6069. <el-tooltip effect="dark" :content="s.student" placement="top">
  6070. <span>{{ s.student }}</span>
  6071. </el-tooltip>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. <div
  6076. v-if="
  6077. tType &&
  6078. ((tType == 2 && sIsOpen == true) ||
  6079. tType == 1 ||
  6080. tType == 4) &&
  6081. tool.tool.indexOf(26) != -1
  6082. "
  6083. class="worksBox"
  6084. >
  6085. <div
  6086. class="zuoyeYulan"
  6087. v-if="
  6088. worksStudent.length &&
  6089. worksStudent[toolIndex].length > 0
  6090. "
  6091. >
  6092. <div class="worksTop">
  6093. <div>作业预览</div>
  6094. <div
  6095. class="corOpen"
  6096. @click="contract(toolIndex)"
  6097. v-if="
  6098. (isCloseList[toolIndex].isCloseBoolean) &&
  6099. isCloseList[toolIndex].isClose == 0
  6100. "
  6101. >
  6102. 折叠
  6103. </div>
  6104. <div
  6105. class="corOpen"
  6106. @click="contract(toolIndex)"
  6107. v-if="isCloseList[toolIndex].isClose == 1"
  6108. >
  6109. 展开
  6110. </div>
  6111. </div>
  6112. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6113. </div>
  6114. <div
  6115. :id="'tool-' + toolIndex"
  6116. :style="{
  6117. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6118. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6119. }"
  6120. class="worksDetailBox"
  6121. v-if="
  6122. worksStudent.length &&
  6123. worksStudent[toolIndex].length > 0
  6124. "
  6125. >
  6126. <div
  6127. class="works"
  6128. style="width: 240px; height: 140px; overflow: hidden"
  6129. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6130. :key="wIndex"
  6131. :class="w.type == 1 ? 'isTypeOne' : ''"
  6132. >
  6133. <div class="workImg" v-if="w.type == 0">
  6134. <img
  6135. :src="w.works"
  6136. @click="previewImg(w.works,w)"
  6137. alt
  6138. />
  6139. <img
  6140. class="deleteImg"
  6141. src="../assets/deleteworks.png"
  6142. v-if="
  6143. w.userid == userid || tType == 1 || tType == 4
  6144. "
  6145. @click.stop="deleteWorks(w.wid)"
  6146. alt
  6147. />
  6148. </div>
  6149. <div class="workImg" v-if="w.type == 1">
  6150. <img :src="word" @click="openFile(w.works,w)" alt />
  6151. <img
  6152. class="deleteImg"
  6153. src="../assets/deleteworks.png"
  6154. v-if="
  6155. w.userid == userid || tType == 1 || tType == 4
  6156. "
  6157. @click.stop="deleteWorks(w.wid)"
  6158. alt
  6159. />
  6160. </div>
  6161. <div class="worksName">
  6162. <div>{{ w.sName }}</div>
  6163. </div>
  6164. </div>
  6165. </div>
  6166. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6167. 未提交
  6168. </div>
  6169. <div
  6170. class="noWorksS"
  6171. v-if="noWorksS && noWorksS[toolIndex].length"
  6172. >
  6173. <div
  6174. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6175. :key="sIndex"
  6176. class="noWorksName"
  6177. >
  6178. <el-tooltip effect="dark" :content="s.student" placement="top">
  6179. <span>{{ s.student }}</span>
  6180. </el-tooltip>
  6181. </div>
  6182. </div>
  6183. </div>
  6184. <div
  6185. v-if="
  6186. tType &&
  6187. ((tType == 2 && sIsOpen == true) ||
  6188. tType == 1 ||
  6189. tType == 4) &&
  6190. tool.tool.indexOf(40) != -1
  6191. "
  6192. class="worksBox"
  6193. >
  6194. <div
  6195. class="zuoyeYulan"
  6196. v-if="
  6197. worksStudent.length &&
  6198. worksStudent[toolIndex].length > 0
  6199. "
  6200. >
  6201. <div class="worksTop">
  6202. <div>作业预览</div>
  6203. <div
  6204. class="corOpen"
  6205. @click="contract(toolIndex)"
  6206. v-if="
  6207. (isCloseList[toolIndex].isCloseBoolean) &&
  6208. isCloseList[toolIndex].isClose == 0
  6209. "
  6210. >
  6211. 折叠
  6212. </div>
  6213. <div
  6214. class="corOpen"
  6215. @click="contract(toolIndex)"
  6216. v-if="isCloseList[toolIndex].isClose == 1"
  6217. >
  6218. 展开
  6219. </div>
  6220. </div>
  6221. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6222. </div>
  6223. <div
  6224. :id="'tool-' + toolIndex"
  6225. :style="{
  6226. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6227. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6228. }"
  6229. class="worksDetailBox"
  6230. v-if="
  6231. worksStudent.length &&
  6232. worksStudent[toolIndex].length > 0
  6233. "
  6234. >
  6235. <div
  6236. class="works"
  6237. style="
  6238. width: 200px;
  6239. height: 140px;
  6240. margin: 10px 10px 10px 0;
  6241. border-radius: 15px;
  6242. box-shadow: 0 0 6px 1px #dfdada;
  6243. "
  6244. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6245. :key="wIndex"
  6246. :class="w.type == 1 ? 'isTypeOne' : ''"
  6247. >
  6248. <div class="workImg">
  6249. <img
  6250. src="../assets/icon/works/noImg.png"
  6251. @click="openPj(w.works, toolIndex)"
  6252. alt
  6253. />
  6254. <img
  6255. class="deleteImg"
  6256. src="../assets/deleteworks.png"
  6257. v-if="
  6258. w.userid == userid || tType == 1 || tType == 4
  6259. "
  6260. @click.stop="deleteWorks(w.wid)"
  6261. alt
  6262. />
  6263. </div>
  6264. <div class="comment" style="min-width: 200px">
  6265. <div class="worksName">
  6266. <div>{{ w.sName }}</div>
  6267. </div>
  6268. <div class="commentList">
  6269. <div class="commentList">
  6270. <div
  6271. class="commentImg"
  6272. @click="
  6273. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6274. "
  6275. >
  6276. <img
  6277. :src="w.isLikes == true ? likes : noLikes"
  6278. alt=""
  6279. />
  6280. </div>
  6281. <div>{{ w.likesCount }}</div>
  6282. </div>
  6283. <div class="commentList" style="margin-right: 15px">
  6284. <div
  6285. class="commentImg"
  6286. @click="commentOther(w, toolIndex, wIndex)"
  6287. >
  6288. <img
  6289. src="../assets/icon/comment/comment.png"
  6290. alt=""
  6291. />
  6292. </div>
  6293. <div>{{ w.commentCount }}</div>
  6294. </div>
  6295. </div>
  6296. </div>
  6297. </div>
  6298. </div>
  6299. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6300. 未提交
  6301. </div>
  6302. <div
  6303. class="noWorksS"
  6304. v-if="noWorksS && noWorksS[toolIndex].length"
  6305. >
  6306. <div
  6307. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6308. :key="sIndex"
  6309. class="noWorksName"
  6310. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6311. >
  6312. <el-tooltip effect="dark" :content="s.student" placement="top">
  6313. <span>{{ s.student }}</span>
  6314. </el-tooltip>
  6315. </div>
  6316. </div>
  6317. </div>
  6318. <div
  6319. v-if="
  6320. tType &&
  6321. tType == 2 &&
  6322. !sIsOpen &&
  6323. tool.tool.indexOf(40) != -1
  6324. "
  6325. class="worksBox"
  6326. >
  6327. <div
  6328. class="zuoyeYulan"
  6329. v-if="workStudent[toolIndex].length > 0"
  6330. >
  6331. <span class="worksTitle">作业预览</span>
  6332. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6333. </div>
  6334. <div
  6335. class="worksDetailBox"
  6336. v-if="workStudent[toolIndex].length > 0"
  6337. >
  6338. <div
  6339. class="works"
  6340. style="
  6341. width: 200px;
  6342. height: 140px;
  6343. margin: 10px 10px 10px 0;
  6344. "
  6345. v-for="(w, wIndex) in workStudent[toolIndex]"
  6346. :key="wIndex"
  6347. >
  6348. <div class="workImg">
  6349. <img
  6350. src="../assets/icon/works/noImg.png"
  6351. @click="openPj(w.works, toolIndex)"
  6352. alt
  6353. />
  6354. <img
  6355. class="deleteImg"
  6356. src="../assets/deleteworks.png"
  6357. v-if="
  6358. w.userid == userid || tType == 1 || tType == 4
  6359. "
  6360. @click.stop="deleteWorks(w.wid)"
  6361. alt
  6362. />
  6363. </div>
  6364. <div class="worksName">
  6365. <div>{{ w.sName }}</div>
  6366. </div>
  6367. </div>
  6368. </div>
  6369. </div>
  6370. <div
  6371. v-if="
  6372. tType &&
  6373. ((tType == 2 && sIsOpen == true) ||
  6374. tType == 1 ||
  6375. tType == 4) &&
  6376. tool.tool.indexOf(41) != -1
  6377. "
  6378. >
  6379. <AnswerData2
  6380. v-if="
  6381. worksStudent.length &&
  6382. worksStudent[toolIndex].length > 0
  6383. "
  6384. :problemJson="tool.selectJson.answer"
  6385. :people="worksStudent[toolIndex]"
  6386. ></AnswerData2>
  6387. </div>
  6388. <div
  6389. v-if="
  6390. tType &&
  6391. ((tType == 2 && sIsOpen == true) ||
  6392. tType == 1 ||
  6393. tType == 4) &&
  6394. tool.tool.indexOf(41) != -1
  6395. "
  6396. class="worksBox"
  6397. >
  6398. <div
  6399. class="zuoyeYulan"
  6400. v-if="
  6401. worksStudent.length &&
  6402. worksStudent[toolIndex].length > 0
  6403. "
  6404. >
  6405. <div class="worksTop">
  6406. <div>作业预览</div>
  6407. <div
  6408. class="corOpen"
  6409. @click="contract(toolIndex)"
  6410. v-if="
  6411. (isCloseList[toolIndex].isCloseBoolean) &&
  6412. isCloseList[toolIndex].isClose == 0
  6413. "
  6414. >
  6415. 折叠
  6416. </div>
  6417. <div
  6418. class="corOpen"
  6419. @click="contract(toolIndex)"
  6420. v-if="isCloseList[toolIndex].isClose == 1"
  6421. >
  6422. 展开
  6423. </div>
  6424. </div>
  6425. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6426. </div>
  6427. <div
  6428. :id="'tool-' + toolIndex"
  6429. :style="{
  6430. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6431. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6432. }"
  6433. class="worksDetailBox"
  6434. v-if="
  6435. worksStudent.length &&
  6436. worksStudent[toolIndex].length > 0
  6437. "
  6438. >
  6439. <div
  6440. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6441. :key="wIndex"
  6442. class="isWorksName2"
  6443. @click="openXz(w, toolIndex)"
  6444. >
  6445. {{ w.sName }}
  6446. <img
  6447. class="deleteImg deleteImg2"
  6448. src="../assets/deleteworks.png"
  6449. v-if="w.userid == userid || tType == 1 || tType == 4"
  6450. @click.stop="deleteWorks(w.wid)"
  6451. alt
  6452. />
  6453. </div>
  6454. <!-- <div
  6455. class="works"
  6456. style="
  6457. width: 200px;
  6458. height: 140px;
  6459. margin: 10px 10px 10px 0;
  6460. border-radius: 15px;
  6461. box-shadow: 0 0 6px 1px #dfdada;
  6462. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6463. :class="w.type == 5 ? 'isTypeOne' : ''">
  6464. <div class="workImg">
  6465. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6466. </div>
  6467. <div class="worksName">
  6468. <div>{{ w.sName }}</div>
  6469. </div>
  6470. </div> -->
  6471. </div>
  6472. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6473. 未提交
  6474. </div>
  6475. <div
  6476. class="noWorksS"
  6477. v-if="noWorksS && noWorksS[toolIndex].length"
  6478. >
  6479. <div
  6480. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6481. :key="sIndex"
  6482. class="noWorksName"
  6483. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6484. >
  6485. <el-tooltip effect="dark" :content="s.student" placement="top">
  6486. <span>{{ s.student }}</span>
  6487. </el-tooltip>
  6488. </div>
  6489. </div>
  6490. </div>
  6491. <div
  6492. v-if="
  6493. tType &&
  6494. tType == 2 &&
  6495. !sIsOpen &&
  6496. tool.tool.indexOf(41) != -1
  6497. "
  6498. class="worksBox"
  6499. >
  6500. <div
  6501. class="zuoyeYulan"
  6502. v-if="workStudent[toolIndex].length > 0"
  6503. >
  6504. <span class="worksTitle">作业预览</span>
  6505. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6506. </div>
  6507. <div
  6508. class="worksDetailBox"
  6509. v-if="workStudent[toolIndex].length > 0"
  6510. >
  6511. <div
  6512. class="works"
  6513. style="
  6514. width: 200px;
  6515. height: 140px;
  6516. margin: 10px 10px 10px 0;
  6517. "
  6518. v-for="(w, wIndex) in workStudent[toolIndex]"
  6519. :key="wIndex"
  6520. >
  6521. <div class="workImg">
  6522. <img
  6523. src="../assets/icon/works/noImg.png"
  6524. @click="openXz(w, toolIndex)"
  6525. alt
  6526. />
  6527. <img
  6528. class="deleteImg"
  6529. src="../assets/deleteworks.png"
  6530. v-if="
  6531. w.userid == userid || tType == 1 || tType == 4
  6532. "
  6533. @click.stop="deleteWorks(w.wid)"
  6534. alt
  6535. />
  6536. </div>
  6537. <div class="worksName">
  6538. <div>{{ w.sName }}</div>
  6539. </div>
  6540. </div>
  6541. </div>
  6542. </div>
  6543. <div v-if="false" class="xuan_right_box">
  6544. <div
  6545. class="tool_right_box"
  6546. v-for="(item, index) in tool.sentenceList"
  6547. :key="index"
  6548. >
  6549. <div>
  6550. <span
  6551. style="word-break: break-all; white-space: normal"
  6552. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6553. >
  6554. </div>
  6555. <div class="right_box_xuan">
  6556. <span>正确率</span>
  6557. <span>{{
  6558. (checkJson[toolIndex][index].right
  6559. ? checkJson[toolIndex][index].right
  6560. : 0) + "%"
  6561. }}</span>
  6562. </div>
  6563. <div class="right_box_xuan">
  6564. <span>答对人数</span>
  6565. <span>{{
  6566. checkJson[toolIndex][index].rightPerson.length
  6567. }}</span>
  6568. </div>
  6569. </div>
  6570. </div>
  6571. <div
  6572. v-if="
  6573. tType &&
  6574. ((tType == 2 && sIsOpen == true) ||
  6575. tType == 1 ||
  6576. tType == 4) &&
  6577. tool.tool.indexOf(47) != -1
  6578. "
  6579. >
  6580. <!-- <AnswerData
  6581. v-if="
  6582. checkJson[toolIndex].length &&
  6583. (tool.sentenceList || tool.sentenceList.length > 0)
  6584. "
  6585. :people="checkJson[toolIndex]"
  6586. ></AnswerData> -->
  6587. <sortToolWorkShow v-if="
  6588. worksStudent[toolIndex].length
  6589. "
  6590. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6591. </div>
  6592. <div
  6593. v-if="
  6594. tType &&
  6595. tType == 2 &&
  6596. !sIsOpen &&
  6597. tool.tool.indexOf(47) != -1
  6598. "
  6599. class="worksBox"
  6600. >
  6601. <div
  6602. class="zuoyeYulan"
  6603. v-if="workStudent[toolIndex].length > 0"
  6604. >
  6605. <span class="worksTitle">作业预览</span>
  6606. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6607. </div>
  6608. <div
  6609. class="worksDetailBox"
  6610. v-if="workStudent[toolIndex].length > 0"
  6611. >
  6612. <div
  6613. class="works"
  6614. style="
  6615. width: 200px;
  6616. height: 140px;
  6617. margin: 10px 10px 10px 0;
  6618. "
  6619. v-for="(w, wIndex) in workStudent[toolIndex]"
  6620. :key="wIndex"
  6621. >
  6622. <!-- @click="openXz(w, toolIndex)" -->
  6623. <div class="workImg" @click="openSen(w, toolIndex)">
  6624. <img src="../assets/icon/works/noImg.png" alt />
  6625. <img
  6626. class="deleteImg"
  6627. src="../assets/deleteworks.png"
  6628. v-if="
  6629. w.userid == userid || tType == 1 || tType == 4
  6630. "
  6631. @click.stop="deleteWorks(w.wid)"
  6632. alt
  6633. />
  6634. </div>
  6635. <div class="worksName">
  6636. <div>
  6637. {{ w.sName }}
  6638. </div>
  6639. </div>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. <div
  6644. v-if="
  6645. tType &&
  6646. ((tType == 2 && sIsOpen == true) ||
  6647. tType == 1 ||
  6648. tType == 4) &&
  6649. tool.tool.indexOf(47) != -1
  6650. "
  6651. class="worksBox"
  6652. >
  6653. <div
  6654. class="zuoyeYulan"
  6655. v-if="
  6656. worksStudent.length &&
  6657. worksStudent[toolIndex].length > 0
  6658. "
  6659. >
  6660. <div class="worksTop">
  6661. <div>作业预览</div>
  6662. <div
  6663. class="corOpen"
  6664. @click="contract(toolIndex)"
  6665. v-if="
  6666. (isCloseList[toolIndex].isCloseBoolean) &&
  6667. isCloseList[toolIndex].isClose == 0
  6668. "
  6669. >
  6670. 折叠
  6671. </div>
  6672. <div
  6673. class="corOpen"
  6674. @click="contract(toolIndex)"
  6675. v-if="isCloseList[toolIndex].isClose == 1"
  6676. >
  6677. 展开
  6678. </div>
  6679. </div>
  6680. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6681. </div>
  6682. <div
  6683. :id="'tool-' + toolIndex"
  6684. :style="{
  6685. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6686. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6687. }"
  6688. class="worksDetailBox"
  6689. v-if="
  6690. worksStudent.length &&
  6691. worksStudent[toolIndex].length > 0
  6692. "
  6693. >
  6694. <!-- @click="openXz(w, toolIndex)" -->
  6695. <div
  6696. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6697. :key="wIndex"
  6698. class="isWorksName2"
  6699. @click="openSen(w, toolIndex)"
  6700. >
  6701. {{ w.sName }}
  6702. <img
  6703. class="deleteImg deleteImg2"
  6704. src="../assets/deleteworks.png"
  6705. v-if="w.userid == userid || tType == 1 || tType == 4"
  6706. @click.stop="deleteWorks(w.wid)"
  6707. alt
  6708. />
  6709. </div>
  6710. </div>
  6711. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6712. 未提交
  6713. </div>
  6714. <div
  6715. class="noWorksS"
  6716. v-if="noWorksS && noWorksS[toolIndex].length"
  6717. >
  6718. <div
  6719. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6720. :key="sIndex"
  6721. class="noWorksName"
  6722. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6723. >
  6724. <el-tooltip effect="dark" :content="s.student" placement="top">
  6725. <span>{{ s.student }}</span>
  6726. </el-tooltip>
  6727. </div>
  6728. </div>
  6729. </div>
  6730. <div
  6731. v-if="
  6732. tType &&
  6733. ((tType == 2 && sIsOpen == true) ||
  6734. tType == 1 ||
  6735. tType == 4) &&
  6736. tool.tool.indexOf(48) != -1
  6737. "
  6738. class="worksBox"
  6739. >
  6740. <div
  6741. class="zuoyeYulan"
  6742. v-if="
  6743. worksStudent.length &&
  6744. worksStudent[toolIndex].length > 0
  6745. "
  6746. >
  6747. <div class="worksTop">
  6748. <div>作业预览</div>
  6749. <div
  6750. class="corOpen"
  6751. @click="contract(toolIndex)"
  6752. v-if="
  6753. (isCloseList[toolIndex].isCloseBoolean) &&
  6754. isCloseList[toolIndex].isClose == 0
  6755. "
  6756. >
  6757. 折叠
  6758. </div>
  6759. <div
  6760. class="corOpen"
  6761. @click="contract(toolIndex)"
  6762. v-if="isCloseList[toolIndex].isClose == 1"
  6763. >
  6764. 展开
  6765. </div>
  6766. </div>
  6767. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6768. </div>
  6769. <div
  6770. :id="'tool-' + toolIndex"
  6771. :style="{
  6772. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6773. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6774. }"
  6775. class="worksDetailBox"
  6776. v-if="
  6777. worksStudent.length &&
  6778. worksStudent[toolIndex].length > 0
  6779. "
  6780. >
  6781. <div
  6782. class="works"
  6783. style="
  6784. width: 200px;
  6785. height: 140px;
  6786. margin: 10px 10px 10px 0;
  6787. border-radius: 15px;
  6788. box-shadow: 0 0 6px 1px #dfdada;
  6789. "
  6790. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6791. :key="wIndex"
  6792. :class="w.type == 1 ? 'isTypeOne' : ''"
  6793. >
  6794. <div class="workImg">
  6795. <img :src="word" @click="openTable(w)" alt />
  6796. <!-- @click="openFile(w.works)" -->
  6797. <div
  6798. class="answerScore"
  6799. v-if="w.score"
  6800. @click.stop="openScore(w)"
  6801. :class="{
  6802. rightW:
  6803. w.userid == userid ||
  6804. tType == 1 ||
  6805. tType == 4 ||
  6806. w.ateacher == userid,
  6807. }"
  6808. >
  6809. {{ JSON.parse(w.score).wScore }}分
  6810. </div>
  6811. <div
  6812. class="answerScore"
  6813. @click.stop="openScore(w)"
  6814. v-else-if="courseDetail.userid == userid"
  6815. :class="{
  6816. rightW:
  6817. w.userid == userid ||
  6818. tType == 1 ||
  6819. tType == 4 ||
  6820. w.ateacher == userid,
  6821. }"
  6822. >
  6823. 评分
  6824. </div>
  6825. <img
  6826. class="deleteImg"
  6827. src="../assets/deleteworks.png"
  6828. v-if="
  6829. w.userid == userid || tType == 1 || tType == 4
  6830. "
  6831. @click.stop="deleteWorks(w.wid)"
  6832. alt
  6833. />
  6834. </div>
  6835. <div class="comment" style="min-width: 200px">
  6836. <div class="worksName">
  6837. <div>{{ w.sName }}</div>
  6838. </div>
  6839. <div class="commentList">
  6840. <div class="commentList">
  6841. <div
  6842. class="commentImg"
  6843. @click="
  6844. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6845. "
  6846. >
  6847. <img
  6848. :src="w.isLikes == true ? likes : noLikes"
  6849. alt=""
  6850. />
  6851. </div>
  6852. <div>{{ w.likesCount }}</div>
  6853. </div>
  6854. <div class="commentList" style="margin-right: 15px">
  6855. <div
  6856. class="commentImg"
  6857. @click="commentOther(w, toolIndex, wIndex)"
  6858. >
  6859. <img
  6860. src="../assets/icon/comment/comment.png"
  6861. alt=""
  6862. />
  6863. </div>
  6864. <div>{{ w.commentCount }}</div>
  6865. </div>
  6866. </div>
  6867. </div>
  6868. </div>
  6869. </div>
  6870. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6871. 未提交
  6872. </div>
  6873. <div
  6874. class="noWorksS"
  6875. v-if="noWorksS && noWorksS[toolIndex].length"
  6876. >
  6877. <div
  6878. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6879. :key="sIndex"
  6880. class="noWorksName"
  6881. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6882. >
  6883. <el-tooltip effect="dark" :content="s.student" placement="top">
  6884. <span>{{ s.student }}</span>
  6885. </el-tooltip>
  6886. </div>
  6887. </div>
  6888. </div>
  6889. <div
  6890. v-if="
  6891. tType &&
  6892. tType == 2 &&
  6893. !sIsOpen &&
  6894. tool.tool.indexOf(48) != -1
  6895. "
  6896. class="worksBox"
  6897. >
  6898. <div
  6899. class="zuoyeYulan"
  6900. v-if="workStudent[toolIndex].length > 0"
  6901. >
  6902. <span class="worksTitle">作业预览</span>
  6903. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6904. </div>
  6905. <div
  6906. class="worksDetailBox"
  6907. v-if="workStudent[toolIndex].length > 0"
  6908. >
  6909. <div
  6910. class="works"
  6911. style="
  6912. width: 200px;
  6913. height: 140px;
  6914. margin: 10px 10px 10px 0;
  6915. box-shadow: 0 0 6px 1px #dfdada;
  6916. "
  6917. v-for="(w, wIndex) in workStudent[toolIndex]"
  6918. :key="wIndex"
  6919. >
  6920. <div class="workImg">
  6921. <img :src="word" @click="openTable(w)" alt />
  6922. <div
  6923. class="answerScore"
  6924. v-if="w.score"
  6925. @click.stop="openScore(w)"
  6926. :class="{
  6927. rightW:
  6928. w.userid == userid || tType == 1 || tType == 4,
  6929. }"
  6930. >
  6931. {{ JSON.parse(w.score).wScore }}分
  6932. </div>
  6933. <div
  6934. class="answerScore"
  6935. @click.stop="openScore(w)"
  6936. v-else-if="courseDetail.userid == userid"
  6937. :class="{
  6938. rightW:
  6939. w.userid == userid || tType == 1 || tType == 4,
  6940. }"
  6941. >
  6942. 评分
  6943. </div>
  6944. <img
  6945. class="deleteImg"
  6946. src="../assets/deleteworks.png"
  6947. v-if="
  6948. w.userid == userid || tType == 1 || tType == 4
  6949. "
  6950. @click.stop="deleteWorks(w.wid)"
  6951. alt
  6952. />
  6953. </div>
  6954. <div class="worksName">
  6955. <div>{{ w.sName }}</div>
  6956. </div>
  6957. </div>
  6958. </div>
  6959. </div>
  6960. <div
  6961. v-if="
  6962. tType &&
  6963. ((tType == 2 && sIsOpen == true) ||
  6964. tType == 1 ||
  6965. tType == 4) &&
  6966. tool.tool.indexOf(52) != -1
  6967. "
  6968. class="worksBox"
  6969. >
  6970. <div
  6971. class="zuoyeYulan"
  6972. v-if="
  6973. worksStudent.length &&
  6974. worksStudent[toolIndex].length > 0
  6975. "
  6976. >
  6977. <div class="worksTop">
  6978. <div>作业预览</div>
  6979. <div
  6980. class="corOpen"
  6981. @click="contract(toolIndex)"
  6982. v-if="
  6983. (isCloseList[toolIndex].isCloseBoolean) &&
  6984. isCloseList[toolIndex].isClose == 0
  6985. "
  6986. >
  6987. 折叠
  6988. </div>
  6989. <div
  6990. class="corOpen"
  6991. @click="contract(toolIndex)"
  6992. v-if="isCloseList[toolIndex].isClose == 1"
  6993. >
  6994. 展开
  6995. </div>
  6996. </div>
  6997. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6998. </div>
  6999. <div
  7000. :id="'tool-' + toolIndex"
  7001. :style="{
  7002. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7003. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7004. }"
  7005. class="worksDetailBox"
  7006. v-if="
  7007. worksStudent.length &&
  7008. worksStudent[toolIndex].length > 0
  7009. "
  7010. >
  7011. <div
  7012. class="works"
  7013. style="
  7014. width: 200px;
  7015. height: 140px;
  7016. margin: 10px 10px 10px 0;
  7017. border-radius: 15px;
  7018. box-shadow: 0 0 6px 1px #dfdada;
  7019. "
  7020. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7021. :key="wIndex"
  7022. :class="w.type == 1 ? 'isTypeOne' : ''"
  7023. >
  7024. <div class="workImg">
  7025. <img :src="word" @click="openWord(w)" alt />
  7026. <!-- @click="openFile(w.works)" -->
  7027. <div
  7028. class="answerScore"
  7029. v-if="w.score"
  7030. @click.stop="openScore(w)"
  7031. :class="{
  7032. rightW:
  7033. w.userid == userid ||
  7034. tType == 1 ||
  7035. tType == 4 ||
  7036. w.ateacher == userid,
  7037. }"
  7038. >
  7039. {{ JSON.parse(w.score).wScore }}分
  7040. </div>
  7041. <div
  7042. class="answerScore"
  7043. @click.stop="openScore(w)"
  7044. v-else-if="courseDetail.userid == userid"
  7045. :class="{
  7046. rightW:
  7047. w.userid == userid ||
  7048. tType == 1 ||
  7049. tType == 4 ||
  7050. w.ateacher == userid,
  7051. }"
  7052. >
  7053. 评分
  7054. </div>
  7055. <img
  7056. class="deleteImg"
  7057. src="../assets/deleteworks.png"
  7058. v-if="
  7059. w.userid == userid || tType == 1 || tType == 4
  7060. "
  7061. @click.stop="deleteWorks(w.wid)"
  7062. alt
  7063. />
  7064. </div>
  7065. <div class="comment" style="min-width: 200px">
  7066. <div class="worksName">
  7067. <div>{{ w.sName }}</div>
  7068. </div>
  7069. <div class="commentList">
  7070. <div class="commentList">
  7071. <div
  7072. class="commentImg"
  7073. @click="
  7074. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7075. "
  7076. >
  7077. <img
  7078. :src="w.isLikes == true ? likes : noLikes"
  7079. alt=""
  7080. />
  7081. </div>
  7082. <div>{{ w.likesCount }}</div>
  7083. </div>
  7084. <div class="commentList" style="margin-right: 15px">
  7085. <div
  7086. class="commentImg"
  7087. @click="commentOther(w, toolIndex, wIndex)"
  7088. >
  7089. <img
  7090. src="../assets/icon/comment/comment.png"
  7091. alt=""
  7092. />
  7093. </div>
  7094. <div>{{ w.commentCount }}</div>
  7095. </div>
  7096. </div>
  7097. </div>
  7098. </div>
  7099. </div>
  7100. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7101. 未提交
  7102. </div>
  7103. <div
  7104. class="noWorksS"
  7105. v-if="noWorksS && noWorksS[toolIndex].length"
  7106. >
  7107. <div
  7108. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7109. :key="sIndex"
  7110. class="noWorksName"
  7111. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7112. >
  7113. <el-tooltip effect="dark" :content="s.student" placement="top">
  7114. <span>{{ s.student }}</span>
  7115. </el-tooltip>
  7116. </div>
  7117. </div>
  7118. </div>
  7119. <div
  7120. v-if="
  7121. tType &&
  7122. tType == 2 &&
  7123. !sIsOpen &&
  7124. tool.tool.indexOf(52) != -1
  7125. "
  7126. class="worksBox"
  7127. >
  7128. <div
  7129. class="zuoyeYulan"
  7130. v-if="workStudent[toolIndex].length > 0"
  7131. >
  7132. <span class="worksTitle">作业预览</span>
  7133. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7134. </div>
  7135. <div
  7136. class="worksDetailBox"
  7137. v-if="workStudent[toolIndex].length > 0"
  7138. >
  7139. <div
  7140. class="works"
  7141. style="
  7142. width: 200px;
  7143. height: 140px;
  7144. margin: 10px 10px 10px 0;
  7145. box-shadow: 0 0 6px 1px #dfdada;
  7146. "
  7147. v-for="(w, wIndex) in workStudent[toolIndex]"
  7148. :key="wIndex"
  7149. >
  7150. <div class="workImg">
  7151. <img :src="word" @click="openWord(w)" alt />
  7152. <div
  7153. class="answerScore"
  7154. v-if="w.score"
  7155. @click.stop="openScore(w)"
  7156. :class="{
  7157. rightW:
  7158. w.userid == userid || tType == 1 || tType == 4,
  7159. }"
  7160. >
  7161. {{ JSON.parse(w.score).wScore }}分
  7162. </div>
  7163. <div
  7164. class="answerScore"
  7165. @click.stop="openScore(w)"
  7166. v-else-if="courseDetail.userid == userid"
  7167. :class="{
  7168. rightW:
  7169. w.userid == userid || tType == 1 || tType == 4,
  7170. }"
  7171. >
  7172. 评分
  7173. </div>
  7174. <img
  7175. class="deleteImg"
  7176. src="../assets/deleteworks.png"
  7177. v-if="
  7178. w.userid == userid || tType == 1 || tType == 4
  7179. "
  7180. @click.stop="deleteWorks(w.wid)"
  7181. alt
  7182. />
  7183. </div>
  7184. <div class="worksName">
  7185. <div>{{ w.sName }}</div>
  7186. </div>
  7187. </div>
  7188. </div>
  7189. </div>
  7190. <div
  7191. v-if="tool.tool.indexOf(49) != -1"
  7192. class="xuan_right_box"
  7193. style="margin: 0 15px 0 25px; width: 93%"
  7194. >
  7195. <div
  7196. v-if="courseDetail.userid == userid"
  7197. style="
  7198. display: flex;
  7199. justify-content: flex-end;
  7200. margin-right: 10px;
  7201. "
  7202. >
  7203. <el-button
  7204. type="primary"
  7205. size="small"
  7206. @click="addTools(49, toolIndex, taskCount)"
  7207. >分组设置</el-button
  7208. >
  7209. </div>
  7210. <div
  7211. v-if="groupStudentUid[toolIndex]"
  7212. class="group_staic_box"
  7213. >
  7214. <div
  7215. v-for="(gp, gd) in tool.groupJson.group"
  7216. :key="gd"
  7217. class="group_staic"
  7218. >
  7219. <span> {{ gp.name }}</span>
  7220. <span>
  7221. 目前人数{{
  7222. groupStudentUid[toolIndex][gd].length
  7223. }}人</span
  7224. >
  7225. </div>
  7226. </div>
  7227. </div>
  7228. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7229. <div
  7230. class="zuoyeYulan"
  7231. v-if="
  7232. worksStudent.length &&
  7233. worksStudent[toolIndex].length > 0
  7234. "
  7235. >
  7236. <span class="worksTitle">作业预览</span>
  7237. </div>
  7238. <div>
  7239. <div
  7240. class="group_workBox"
  7241. v-for="(g, gindex) in tool.groupJson.group"
  7242. :key="gindex"
  7243. >
  7244. <div
  7245. class="group_box"
  7246. v-if="
  7247. groupStudentUid[toolIndex] &&
  7248. worksStudent[toolIndex] &&
  7249. (worksStudent[toolIndex][gindex].length ||
  7250. groupStudentUid[toolIndex][gindex].indexOf(
  7251. userid
  7252. ) != -1)
  7253. "
  7254. >
  7255. <div class="group_title">
  7256. <el-tooltip
  7257. class="item"
  7258. effect="light"
  7259. :content="g.name"
  7260. placement="top"
  7261. >
  7262. <div class="group_name">{{ g.name }}</div>
  7263. </el-tooltip>
  7264. <el-button
  7265. type="primary"
  7266. v-if="
  7267. groupStudentUid[toolIndex][gindex].indexOf(
  7268. userid
  7269. ) != -1
  7270. "
  7271. @click="groupUpload(toolIndex, taskCount, gindex)"
  7272. >上传作业</el-button
  7273. >
  7274. </div>
  7275. <div class="group_work">
  7276. <div
  7277. class="works"
  7278. style="
  7279. width: 200px;
  7280. height: 140px;
  7281. margin: 10px 10px 10px 0;
  7282. border-radius: 15px;
  7283. box-shadow: 0 0 6px 1px #dfdada;
  7284. "
  7285. v-for="(w, wIndex) in worksStudent[toolIndex][
  7286. gindex
  7287. ]"
  7288. :key="wIndex"
  7289. :class="w.type == 1 ? 'isTypeOne' : ''"
  7290. >
  7291. <div class="workImg" v-if="w.type == 0">
  7292. <img
  7293. :src="w.works"
  7294. @click="previewImg(w.works,w)"
  7295. alt
  7296. />
  7297. <div
  7298. class="answerScore"
  7299. v-if="w.score"
  7300. @click.stop="openScore(w)"
  7301. :class="{
  7302. rightW:
  7303. w.userid == userid ||
  7304. tType == 1 ||
  7305. tType == 4 ||
  7306. w.ateacher == userid,
  7307. }"
  7308. >
  7309. {{ JSON.parse(w.score).wScore }}分
  7310. </div>
  7311. <div
  7312. class="answerScore"
  7313. @click.stop="openScore(w)"
  7314. v-else-if="courseDetail.userid == userid"
  7315. :class="{
  7316. rightW:
  7317. w.userid == userid ||
  7318. tType == 1 ||
  7319. tType == 4 ||
  7320. w.ateacher == userid,
  7321. }"
  7322. >
  7323. 评分
  7324. </div>
  7325. <img
  7326. class="deleteImg"
  7327. src="../assets/deleteworks.png"
  7328. v-if="
  7329. w.userid == userid ||
  7330. tType == 1 ||
  7331. tType == 4
  7332. "
  7333. @click.stop="deleteWorks(w.wid)"
  7334. alt
  7335. />
  7336. </div>
  7337. <div class="workImg" v-if="w.type == 1">
  7338. <img
  7339. :src="word"
  7340. @click="openFile(w.works,w)"
  7341. alt
  7342. />
  7343. <!-- @click="openFile(w.works)" -->
  7344. <div
  7345. class="answerScore"
  7346. v-if="w.score"
  7347. @click.stop="openScore(w)"
  7348. :class="{
  7349. rightW:
  7350. w.userid == userid ||
  7351. tType == 1 ||
  7352. tType == 4 ||
  7353. w.ateacher == userid,
  7354. }"
  7355. >
  7356. {{ JSON.parse(w.score).wScore }}分
  7357. </div>
  7358. <div
  7359. class="answerScore"
  7360. @click.stop="openScore(w)"
  7361. v-else-if="courseDetail.userid == userid"
  7362. :class="{
  7363. rightW:
  7364. w.userid == userid ||
  7365. tType == 1 ||
  7366. tType == 4 ||
  7367. w.ateacher == userid,
  7368. }"
  7369. >
  7370. 评分
  7371. </div>
  7372. <img
  7373. class="deleteImg"
  7374. src="../assets/deleteworks.png"
  7375. v-if="
  7376. w.userid == userid ||
  7377. tType == 1 ||
  7378. tType == 4
  7379. "
  7380. @click.stop="deleteWorks(w.wid)"
  7381. alt
  7382. />
  7383. </div>
  7384. <div class="workImg" v-if="w.type == 3">
  7385. <img
  7386. style="cursor: pointer"
  7387. :src="video"
  7388. @click="openVideo(w)"
  7389. alt
  7390. />
  7391. <!-- @click="openVideo(w.works)" -->
  7392. <div
  7393. class="answerScore"
  7394. v-if="w.score"
  7395. @click.stop="openScore(w)"
  7396. :class="{
  7397. rightW:
  7398. w.userid == userid ||
  7399. tType == 1 ||
  7400. tType == 4 ||
  7401. w.ateacher == userid,
  7402. }"
  7403. >
  7404. {{ JSON.parse(w.score).wScore }}分
  7405. </div>
  7406. <div
  7407. class="answerScore"
  7408. @click.stop="openScore(w)"
  7409. v-else-if="courseDetail.userid == userid"
  7410. :class="{
  7411. rightW:
  7412. w.userid == userid ||
  7413. tType == 1 ||
  7414. tType == 4 ||
  7415. w.ateacher == userid,
  7416. }"
  7417. >
  7418. 评分
  7419. </div>
  7420. <img
  7421. class="deleteImg"
  7422. src="../assets/deleteworks.png"
  7423. v-if="
  7424. w.userid == userid ||
  7425. tType == 1 ||
  7426. tType == 4
  7427. "
  7428. @click.stop="deleteWorks(w.wid)"
  7429. alt
  7430. />
  7431. </div>
  7432. <div class="workImg" v-if="w.type == 12">
  7433. <img
  7434. style="cursor: pointer"
  7435. :src="word2"
  7436. @click="downloadFile(w.works,w.userid)"
  7437. alt
  7438. />
  7439. <!-- @click="openVideo(w.works)" -->
  7440. <div
  7441. class="answerScore"
  7442. v-if="w.score"
  7443. @click.stop="openScore(w)"
  7444. :class="{
  7445. rightW:
  7446. w.userid == userid ||
  7447. tType == 1 ||
  7448. tType == 4 ||
  7449. w.ateacher == userid,
  7450. }"
  7451. >
  7452. {{ JSON.parse(w.score).wScore }}分
  7453. </div>
  7454. <div
  7455. class="answerScore"
  7456. @click.stop="openScore(w)"
  7457. v-else-if="courseDetail.userid == userid"
  7458. :class="{
  7459. rightW:
  7460. w.userid == userid ||
  7461. tType == 1 ||
  7462. tType == 4 ||
  7463. w.ateacher == userid,
  7464. }"
  7465. >
  7466. 评分
  7467. </div>
  7468. <img
  7469. class="deleteImg"
  7470. src="../assets/deleteworks.png"
  7471. v-if="
  7472. w.userid == userid ||
  7473. tType == 1 ||
  7474. tType == 4
  7475. "
  7476. @click.stop="deleteWorks(w.wid)"
  7477. alt
  7478. />
  7479. </div>
  7480. <div class="comment" style="min-width: 200px">
  7481. <div class="worksName">
  7482. <div>{{ w.sName }}</div>
  7483. </div>
  7484. <div class="commentList">
  7485. <div class="commentList">
  7486. <div
  7487. class="commentImg"
  7488. @click="
  7489. isLikes(
  7490. w.wid,
  7491. userid,
  7492. 1,
  7493. null,
  7494. w.isLikes,
  7495. w.sName
  7496. )
  7497. "
  7498. >
  7499. <img
  7500. :src="
  7501. w.isLikes == true ? likes : noLikes
  7502. "
  7503. alt=""
  7504. />
  7505. </div>
  7506. <div>{{ w.likesCount }}</div>
  7507. </div>
  7508. <div
  7509. class="commentList"
  7510. style="margin-right: 15px"
  7511. >
  7512. <div
  7513. class="commentImg"
  7514. @click="
  7515. commentOther(
  7516. w,
  7517. toolIndex,
  7518. wIndex,
  7519. gindex
  7520. )
  7521. "
  7522. >
  7523. <img
  7524. src="../assets/icon/comment/comment.png"
  7525. alt=""
  7526. />
  7527. </div>
  7528. <div>{{ w.commentCount }}</div>
  7529. </div>
  7530. </div>
  7531. </div>
  7532. </div>
  7533. </div>
  7534. </div>
  7535. </div>
  7536. </div>
  7537. </div>
  7538. </div>
  7539. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7540. 上传文件
  7541. <input
  7542. type="file"
  7543. accept="image/png, image/gif, image/jpeg"
  7544. style="display: none"
  7545. @change="beforeUpload1($event, 2, index)"
  7546. />
  7547. </div>-->
  7548. </div>
  7549. </div>
  7550. <!-- <div
  7551. class="vedioBox"
  7552. style="margin-top: 10px"
  7553. v-if="
  7554. courseDetail.userid == userid ||
  7555. (courseDetail.course_teacher &&
  7556. courseDetail.course_teacher.indexOf(userid) != -1)
  7557. "
  7558. :style="{
  7559. borderRadius:
  7560. !(
  7561. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7562. .toolChoose[0].tool &&
  7563. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7564. .toolChoose[0].tool.length > 0
  7565. ) &&
  7566. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7567. .taskDetail == '' &&
  7568. vChapterData[taskCount].length == 0 &&
  7569. fileC[taskCount].length == 0
  7570. ? '0 0 20px 20px'
  7571. : '20px',
  7572. }"
  7573. >
  7574. <div
  7575. class="queTop"
  7576. @click="isClose = !isClose"
  7577. style="
  7578. padding: 15px 0 15px 37px;
  7579. justify-content: space-between;
  7580. "
  7581. >
  7582. <div class="queTopTitle">新增工具</div>
  7583. <div class="queTopRight">
  7584. <div class="queTopClose" v-if="isClose == 0">
  7585. 展开
  7586. <div class="closeImg">
  7587. <img src="../assets/icon/newIcon/close.png" alt="" />
  7588. </div>
  7589. </div>
  7590. <div class="queTopClose" v-if="isClose == 1">
  7591. 折叠
  7592. <div class="openImg">
  7593. <img src="../assets/icon/newIcon/open.png" alt="" />
  7594. </div>
  7595. </div>
  7596. <el-button
  7597. style="margin: 0 30px 0 auto"
  7598. type="primary"
  7599. size="small"
  7600. v-if="isClose == 1 && checktoolArray.length > 0"
  7601. @click.stop="addToolChoose"
  7602. >确定</el-button
  7603. >
  7604. </div>
  7605. </div>
  7606. <div
  7607. class="tool_work_box"
  7608. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7609. >
  7610. <div class="tool_box">
  7611. <div class="tool_type_box">
  7612. <div class="chooseWho">
  7613. <div
  7614. :class="toolType == 0 ? 'isChooseActive' : ''"
  7615. @click="(toolType = 0), $forceUpdate()"
  7616. >
  7617. 互动类
  7618. </div>
  7619. <div
  7620. :class="toolType == 1 ? 'isChooseActive' : ''"
  7621. @click="(toolType = 1), $forceUpdate()"
  7622. >
  7623. 思维类
  7624. </div>
  7625. <div
  7626. :class="toolType == 2 ? 'isChooseActive' : ''"
  7627. @click="(toolType = 2), $forceUpdate()"
  7628. >
  7629. 测评类
  7630. </div>
  7631. <div
  7632. :class="toolType == 3 ? 'isChooseActive' : ''"
  7633. @click="(toolType = 3), $forceUpdate()"
  7634. >
  7635. 编程类
  7636. </div>
  7637. <div
  7638. :class="toolType == 5 ? 'isChooseActive' : ''"
  7639. @click="(toolType = 5), $forceUpdate()"
  7640. >
  7641. 学科类
  7642. </div>
  7643. </div>
  7644. </div>
  7645. <div>
  7646. <div class="toolSort" v-if="toolType == 0">
  7647. <div class="tool">
  7648. <div class="whiteBIcon" @click="addTools2(10)">
  7649. <img
  7650. src="../assets/icon/thirdToolList/time.png"
  7651. alt
  7652. />
  7653. <div style="margin: 5px 0">倒计时</div>
  7654. </div>
  7655. <div class="check" @click="addTools2(10)">
  7656. <img
  7657. src="../assets/icon/checkNo.png"
  7658. alt
  7659. v-if="checktoolArray.indexOf(10) == -1"
  7660. />
  7661. <div class="checkDiv" v-else>
  7662. <img src="../assets/icon/checkedIs.png" alt /><span
  7663. >已选择</span
  7664. >
  7665. </div>
  7666. </div>
  7667. </div>
  7668. <div class="tool">
  7669. <div class="whiteBIcon" @click="addTools2(65)">
  7670. <img
  7671. src="../assets/icon/firstToolList/pickPeople.png"
  7672. alt
  7673. />
  7674. <div style="margin: 5px 0">挑人</div>
  7675. </div>
  7676. <div class="check" @click="addTools2(65)">
  7677. <img
  7678. src="../assets/icon/checkNo.png"
  7679. alt
  7680. v-if="checktoolArray.indexOf(65) == -1"
  7681. />
  7682. <div class="checkDiv" v-else>
  7683. <img src="../assets/icon/checkedIs.png" alt /><span
  7684. >已选择</span
  7685. >
  7686. </div>
  7687. </div>
  7688. </div>
  7689. </div>
  7690. <div class="toolSort" v-if="toolType == 1">
  7691. <div class="tool">
  7692. <div class="whiteBIcon" @click="addTools2(7)">
  7693. <img
  7694. src="../assets/icon/secondToolList/mindNetwork.png"
  7695. alt
  7696. />
  7697. <div style="margin: 5px 0">思维网格</div>
  7698. </div>
  7699. <div class="check" @click="addTools2(7)">
  7700. <img
  7701. src="../assets/icon/checkNo.png"
  7702. alt
  7703. v-if="checktoolArray.indexOf(7) == -1"
  7704. />
  7705. <div class="checkDiv" v-else>
  7706. <img src="../assets/icon/checkedIs.png" alt /><span
  7707. >已选择</span
  7708. >
  7709. </div>
  7710. </div>
  7711. </div>
  7712. <div class="tool">
  7713. <div class="whiteBIcon" @click="addTools2(1)">
  7714. <img
  7715. src="../assets/icon/secondToolList/whiteBoard.png"
  7716. alt
  7717. />
  7718. <div style="margin: 5px 0">电子白板</div>
  7719. </div>
  7720. <div class="check" @click="addTools2(1)">
  7721. <img
  7722. src="../assets/icon/checkNo.png"
  7723. alt
  7724. v-if="checktoolArray.indexOf(1) == -1"
  7725. />
  7726. <div class="checkDiv" v-else>
  7727. <img src="../assets/icon/checkedIs.png" alt /><span
  7728. >已选择</span
  7729. >
  7730. </div>
  7731. </div>
  7732. </div>
  7733. <div class="tool">
  7734. <div class="whiteBIcon" @click="addTools2(52)">
  7735. <img
  7736. src="../assets/icon/fourthToolList/text.png"
  7737. alt
  7738. />
  7739. <div style="margin: 5px 0">文档</div>
  7740. </div>
  7741. <div class="check" @click="addTools2(52)">
  7742. <img
  7743. src="../assets/icon/checkNo.png"
  7744. alt
  7745. v-if="checktoolArray.indexOf(52) == -1"
  7746. />
  7747. <div class="checkDiv" v-else>
  7748. <img src="../assets/icon/checkedIs.png" alt /><span
  7749. >已选择</span
  7750. >
  7751. </div>
  7752. </div>
  7753. </div>
  7754. <div class="tool">
  7755. <div class="whiteBIcon" @click="addTools2(3)">
  7756. <img
  7757. src="../assets/icon/secondToolList/mindMapping.png"
  7758. alt
  7759. />
  7760. <div style="margin: 5px 0">思维导图</div>
  7761. </div>
  7762. <div class="check" @click="addTools2(3)">
  7763. <img
  7764. src="../assets/icon/checkNo.png"
  7765. alt
  7766. v-if="checktoolArray.indexOf(3) == -1"
  7767. />
  7768. <div class="checkDiv" v-else>
  7769. <img src="../assets/icon/checkedIs.png" alt /><span
  7770. >已选择</span
  7771. >
  7772. </div>
  7773. </div>
  7774. </div>
  7775. <div class="tool">
  7776. <div class="whiteBIcon" @click="addTools2(48)">
  7777. <img
  7778. src="../assets/icon/fourthToolList/table.png"
  7779. alt
  7780. />
  7781. <div style="margin: 5px 0">表格</div>
  7782. </div>
  7783. <div class="check" @click="addTools2(48)">
  7784. <img
  7785. src="../assets/icon/checkNo.png"
  7786. alt
  7787. v-if="checktoolArray.indexOf(48) == -1"
  7788. />
  7789. <div class="checkDiv" v-else>
  7790. <img src="../assets/icon/checkedIs.png" alt /><span
  7791. >已选择</span
  7792. >
  7793. </div>
  7794. </div>
  7795. </div>
  7796. </div>
  7797. <div class="toolSort" v-if="toolType == 6">
  7798. <div v-show="tooC == 49">
  7799. <img
  7800. @click="addTools(tooC, toolIndex, taskCount)"
  7801. src="../assets/icon/fourthToolList/group.png"
  7802. alt
  7803. />
  7804. <div style="margin: 5px 0">学生分组</div>
  7805. </div>
  7806. </div>
  7807. <div class="toolSort" v-if="toolType == 2">
  7808. <div class="tool">
  7809. <div class="whiteBIcon" @click="addTools2(16)">
  7810. <img
  7811. src="../assets/icon/thirdToolList/work.png"
  7812. alt
  7813. />
  7814. <div style="margin: 5px 0">作业提交</div>
  7815. </div>
  7816. <div class="check" @click="addTools2(16)">
  7817. <img
  7818. src="../assets/icon/checkNo.png"
  7819. alt
  7820. v-if="checktoolArray.indexOf(16) == -1"
  7821. />
  7822. <div class="checkDiv" v-else>
  7823. <img src="../assets/icon/checkedIs.png" alt /><span
  7824. >已选择</span
  7825. >
  7826. </div>
  7827. </div>
  7828. </div>
  7829. <div class="tool">
  7830. <div class="whiteBIcon" @click="addTools2(50)">
  7831. <img
  7832. src="../assets/icon/thirdToolList/plwork.png"
  7833. alt
  7834. />
  7835. <div style="margin: 5px 0">批量上传</div>
  7836. </div>
  7837. <div class="check" @click="addTools2(50)">
  7838. <img
  7839. src="../assets/icon/checkNo.png"
  7840. alt
  7841. v-if="checktoolArray.indexOf(50) == -1"
  7842. />
  7843. <div class="checkDiv" v-else>
  7844. <img src="../assets/icon/checkedIs.png" alt /><span
  7845. >已选择</span
  7846. >
  7847. </div>
  7848. </div>
  7849. </div>
  7850. </div>
  7851. <div class="toolSort" v-if="toolType == 3">
  7852. <div class="tool">
  7853. <div class="whiteBIcon" @click="addTools2(18)">
  7854. <img
  7855. src="../assets/icon/thirdToolList/trainPlatform.png"
  7856. alt
  7857. />
  7858. <div style="margin: 5px 0">训练平台</div>
  7859. </div>
  7860. <div class="check" @click="addTools2(18)">
  7861. <img
  7862. src="../assets/icon/checkNo.png"
  7863. alt
  7864. v-if="checktoolArray.indexOf(18) == -1"
  7865. />
  7866. <div class="checkDiv" v-else>
  7867. <img src="../assets/icon/checkedIs.png" alt /><span
  7868. >已选择</span
  7869. >
  7870. </div>
  7871. </div>
  7872. </div>
  7873. <div class="tool">
  7874. <div class="whiteBIcon" @click="addTools2(21)">
  7875. <img
  7876. src="../assets/icon/fourthToolList/program.png"
  7877. alt
  7878. />
  7879. <div style="margin: 5px 0">AIoT Blockly</div>
  7880. </div>
  7881. <div class="check" @click="addTools2(21)">
  7882. <img
  7883. src="../assets/icon/checkNo.png"
  7884. alt
  7885. v-if="checktoolArray.indexOf(21) == -1"
  7886. />
  7887. <div class="checkDiv" v-else>
  7888. <img src="../assets/icon/checkedIs.png" alt /><span
  7889. >已选择</span
  7890. >
  7891. </div>
  7892. </div>
  7893. </div>
  7894. <div class="tool">
  7895. <div class="whiteBIcon" @click="addTools2(23)">
  7896. <img
  7897. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7898. alt
  7899. />
  7900. <div style="margin: 5px 0">AI Python</div>
  7901. </div>
  7902. <div class="check" @click="addTools2(23)">
  7903. <img
  7904. src="../assets/icon/checkNo.png"
  7905. alt
  7906. v-if="checktoolArray.indexOf(23) == -1"
  7907. />
  7908. <div class="checkDiv" v-else>
  7909. <img src="../assets/icon/checkedIs.png" alt /><span
  7910. >已选择</span
  7911. >
  7912. </div>
  7913. </div>
  7914. </div>
  7915. <div class="tool">
  7916. <div class="whiteBIcon" @click="addTools2(24)">
  7917. <img
  7918. src="../assets/icon/fourthToolList/AIprogram.png"
  7919. alt
  7920. />
  7921. <div style="margin: 5px 0">AI Blockly</div>
  7922. </div>
  7923. <div class="check" @click="addTools2(24)">
  7924. <img
  7925. src="../assets/icon/checkNo.png"
  7926. alt
  7927. v-if="checktoolArray.indexOf(24) == -1"
  7928. />
  7929. <div class="checkDiv" v-else>
  7930. <img src="../assets/icon/checkedIs.png" alt /><span
  7931. >已选择</span
  7932. >
  7933. </div>
  7934. </div>
  7935. </div>
  7936. <div class="tool">
  7937. <div class="whiteBIcon" @click="addTools2(32)">
  7938. <img
  7939. src="../assets/icon/thirdToolList/code.png"
  7940. alt
  7941. />
  7942. <div style="margin: 5px 0">源码编辑</div>
  7943. </div>
  7944. <div class="check" @click="addTools2(32)">
  7945. <img
  7946. src="../assets/icon/checkNo.png"
  7947. alt
  7948. v-if="checktoolArray.indexOf(32) == -1"
  7949. />
  7950. <div class="checkDiv" v-else>
  7951. <img src="../assets/icon/checkedIs.png" alt /><span
  7952. >已选择</span
  7953. >
  7954. </div>
  7955. </div>
  7956. </div>
  7957. <div class="tool">
  7958. <div class="whiteBIcon" @click="addTools2(57)">
  7959. <img
  7960. src="../assets/icon/fourthToolList/cocopi.png"
  7961. alt
  7962. />
  7963. <div style="margin: 5px 0">CocoPi</div>
  7964. </div>
  7965. <div class="check" @click="addTools2(57)">
  7966. <img
  7967. src="../assets/icon/checkNo.png"
  7968. alt
  7969. v-if="checktoolArray.indexOf(57) == -1"
  7970. />
  7971. <div class="checkDiv" v-else>
  7972. <img src="../assets/icon/checkedIs.png" alt /><span
  7973. >已选择</span
  7974. >
  7975. </div>
  7976. </div>
  7977. </div>
  7978. <div class="tool">
  7979. <div class="whiteBIcon" @click="addTools2(63)">
  7980. <img
  7981. src="../assets/icon/fourthToolList/Wood.png"
  7982. alt
  7983. />
  7984. <div style="margin: 5px 0">海龟编程</div>
  7985. </div>
  7986. <div class="check" @click="addTools2(63)">
  7987. <img
  7988. src="../assets/icon/checkNo.png"
  7989. alt
  7990. v-if="checktoolArray.indexOf(63) == -1"
  7991. />
  7992. <div class="checkDiv" v-else>
  7993. <img src="../assets/icon/checkedIs.png" alt /><span
  7994. >已选择</span
  7995. >
  7996. </div>
  7997. </div>
  7998. </div>
  7999. </div>
  8000. <div class="toolSort" v-if="toolType == 5">
  8001. <div class="tool">
  8002. <div class="whiteBIcon" @click="addTools2(28)">
  8003. <img
  8004. src="../assets/icon/secondToolList/translation.png"
  8005. alt
  8006. />
  8007. <div style="margin: 5px 0">翻译</div>
  8008. </div>
  8009. <div class="check" @click="addTools2(28)">
  8010. <img
  8011. src="../assets/icon/checkNo.png"
  8012. alt
  8013. v-if="checktoolArray.indexOf(28) == -1"
  8014. />
  8015. <div class="checkDiv" v-else>
  8016. <img src="../assets/icon/checkedIs.png" alt /><span
  8017. >已选择</span
  8018. >
  8019. </div>
  8020. </div>
  8021. </div>
  8022. <div class="tool">
  8023. <div class="whiteBIcon" @click="addTools2(31)">
  8024. <img
  8025. src="../assets/icon/secondToolList/networkPanel.png"
  8026. alt
  8027. />
  8028. <div style="margin: 5px 0">数字画板</div>
  8029. </div>
  8030. <div class="check" @click="addTools2(31)">
  8031. <img
  8032. src="../assets/icon/checkNo.png"
  8033. alt
  8034. v-if="checktoolArray.indexOf(31) == -1"
  8035. />
  8036. <div class="checkDiv" v-else>
  8037. <img src="../assets/icon/checkedIs.png" alt /><span
  8038. >已选择</span
  8039. >
  8040. </div>
  8041. </div>
  8042. </div>
  8043. <div class="tool">
  8044. <div class="whiteBIcon" @click="addTools2(39)">
  8045. <img
  8046. src="../assets/icon/secondToolList/GeoGebra.png"
  8047. alt
  8048. />
  8049. <div style="margin: 5px 0">GeoGebra</div>
  8050. </div>
  8051. <div class="check" @click="addTools2(39)">
  8052. <img
  8053. src="../assets/icon/checkNo.png"
  8054. alt
  8055. v-if="checktoolArray.indexOf(39) == -1"
  8056. />
  8057. <div class="checkDiv" v-else>
  8058. <img src="../assets/icon/checkedIs.png" alt /><span
  8059. >已选择</span
  8060. >
  8061. </div>
  8062. </div>
  8063. </div>
  8064. <div class="tool">
  8065. <div class="whiteBIcon" @click="addTools2(66)">
  8066. <img
  8067. src="../assets/icon/secondToolList/formulaEdi.png"
  8068. alt
  8069. />
  8070. <div style="margin: 5px 0">公式编辑</div>
  8071. </div>
  8072. <div class="check" @click="addTools2(66)">
  8073. <img
  8074. src="../assets/icon/checkNo.png"
  8075. alt
  8076. v-if="checktoolArray.indexOf(66) == -1"
  8077. />
  8078. <div class="checkDiv" v-else>
  8079. <img src="../assets/icon/checkedIs.png" alt /><span
  8080. >已选择</span
  8081. >
  8082. </div>
  8083. </div>
  8084. </div>
  8085. <div class="tool">
  8086. <div class="whiteBIcon" @click="addTools2(67)">
  8087. <img
  8088. src="../assets/icon/secondToolList/molStr.png"
  8089. alt
  8090. />
  8091. <div style="margin: 5px 0">分子结构</div>
  8092. </div>
  8093. <div class="check" @click="addTools2(67)">
  8094. <img
  8095. src="../assets/icon/checkNo.png"
  8096. alt
  8097. v-if="checktoolArray.indexOf(67) == -1"
  8098. />
  8099. <div class="checkDiv" v-else>
  8100. <img src="../assets/icon/checkedIs.png" alt /><span
  8101. >已选择</span
  8102. >
  8103. </div>
  8104. </div>
  8105. </div>
  8106. <div class="tool">
  8107. <div class="whiteBIcon" @click="addTools2(68)">
  8108. <img
  8109. src="../assets/icon/secondToolList/timeAxis.png"
  8110. alt
  8111. />
  8112. <div style="margin: 5px 0">时间轴</div>
  8113. </div>
  8114. <div class="check" @click="addTools2(68)">
  8115. <img
  8116. src="../assets/icon/checkNo.png"
  8117. alt
  8118. v-if="checktoolArray.indexOf(68) == -1"
  8119. />
  8120. <div class="checkDiv" v-else>
  8121. <img src="../assets/icon/checkedIs.png" alt /><span
  8122. >已选择</span
  8123. >
  8124. </div>
  8125. </div>
  8126. </div>
  8127. </div>
  8128. <div class="toolSort" v-if="toolType == 7">
  8129. <div class="tool">
  8130. <div class="whiteBIcon" @click="addTools2(40)">
  8131. <img
  8132. src="../assets/icon/secondToolList/eval.png"
  8133. alt
  8134. />
  8135. <div style="margin: 5px 0">个人评价</div>
  8136. </div>
  8137. <div class="check" @click="addTools2(40)">
  8138. <img
  8139. src="../assets/icon/checkNo.png"
  8140. alt
  8141. v-if="checktoolArray.indexOf(40) == -1"
  8142. />
  8143. <div class="checkDiv" v-else>
  8144. <img src="../assets/icon/checkedIs.png" alt /><span
  8145. >已选择</span
  8146. >
  8147. </div>
  8148. </div>
  8149. </div>
  8150. </div>
  8151. <div class="toolSort" v-if="toolType == 4">
  8152. <div class="tool">
  8153. <div class="whiteBIcon" @click="addTools2(26)">
  8154. <img
  8155. src="../assets/icon/thirdToolList/courseDesign.png"
  8156. alt
  8157. />
  8158. <div style="margin: 5px 0">课程设计</div>
  8159. </div>
  8160. <div class="check" @click="addTools2(26)">
  8161. <img
  8162. src="../assets/icon/checkNo.png"
  8163. alt
  8164. v-if="checktoolArray.indexOf(26) == -1"
  8165. />
  8166. <div class="checkDiv" v-else>
  8167. <img src="../assets/icon/checkedIs.png" alt /><span
  8168. >已选择</span
  8169. >
  8170. </div>
  8171. </div>
  8172. </div>
  8173. <div class="tool">
  8174. <div class="whiteBIcon" @click="addTools2(25)">
  8175. <img
  8176. src="../assets/icon/thirdToolList/evalua.png"
  8177. alt
  8178. />
  8179. <div style="margin: 5px 0">目标管理</div>
  8180. </div>
  8181. <div class="check" @click="addTools2(25)">
  8182. <img
  8183. src="../assets/icon/checkNo.png"
  8184. alt
  8185. v-if="checktoolArray.indexOf(25) == -1"
  8186. />
  8187. <div class="checkDiv" v-else>
  8188. <img src="../assets/icon/checkedIs.png" alt /><span
  8189. >已选择</span
  8190. >
  8191. </div>
  8192. </div>
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. </div> -->
  8199. <div
  8200. class="vedioBox"
  8201. style="margin-top: 10px; border-radius: 20px"
  8202. v-if="
  8203. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8204. .eList &&
  8205. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8206. .eList.length &&
  8207. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8208. .eList.length > 0 &&
  8209. tType != 2
  8210. "
  8211. >
  8212. <div
  8213. class="queTop"
  8214. style="
  8215. font-size: 20px;
  8216. padding: 15px 0 15px 37px;
  8217. font-weight: bold;
  8218. "
  8219. >
  8220. <!-- <div class="question" style="width: 30px">
  8221. <img src="../assets/icon/toolIcon.png" alt />
  8222. </div>
  8223. <div class="queTitle">
  8224. <div>工具</div>
  8225. </div>-->
  8226. 评一评
  8227. </div>
  8228. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8229. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8230. <el-table
  8231. :data="
  8232. chapInfoList[courseType].chapterInfo[0].taskJson[
  8233. taskCount
  8234. ].eList
  8235. "
  8236. :header-cell-style="{ background: '#F0F4FA' }"
  8237. :row-class-name="tableRowClassName"
  8238. border
  8239. stripe
  8240. style="width: 100%"
  8241. >
  8242. <el-table-column
  8243. label="评价名称"
  8244. align="center"
  8245. >
  8246. <template slot-scope="scope"
  8247. ><div>{{ scope.row.value }}</div></template
  8248. >
  8249. </el-table-column>
  8250. <el-table-column
  8251. label="评价描述"
  8252. align="center"
  8253. >
  8254. <template slot-scope="scope"
  8255. ><div>
  8256. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8257. </div></template
  8258. >
  8259. </el-table-column>
  8260. <el-table-column label="目标" align="center">
  8261. <template slot-scope="scope"
  8262. ><div>
  8263. {{
  8264. scope.row.target
  8265. ? scope.row.target[scope.row.target.length - 1]
  8266. : "-"
  8267. }}
  8268. </div></template
  8269. ></el-table-column
  8270. >
  8271. </el-table>
  8272. <!-- <div
  8273. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8274. .chapterInfo[0].taskJson[taskCount].eList"
  8275. :key="eIndex"
  8276. class="elist_input_box"
  8277. >
  8278. <div style="width: 95%">
  8279. <div
  8280. style="
  8281. display: flex;
  8282. flex-direction: row;
  8283. flex-wrap: nowrap;
  8284. align-items: center;
  8285. "
  8286. >
  8287. <div style="max-width: calc(100% - 285px)">
  8288. <span>{{ eItem.value }}</span>
  8289. </div>
  8290. <div
  8291. style="
  8292. padding-left: 25px;
  8293. display: flex;
  8294. flex-direction: row;
  8295. align-items: center;
  8296. "
  8297. >
  8298. <el-rate
  8299. v-model="eItem.score"
  8300. :colors="colors"
  8301. disabled
  8302. ></el-rate>
  8303. </div>
  8304. </div>
  8305. <div class="elist_inptu_text" style="padding-left: 10px">
  8306. <span v-if="eItem.detail != ''">{{
  8307. eItem.detail
  8308. }}</span>
  8309. <span v-else style="color: #b2b1b3; font-size: 14px"
  8310. >暂无描述...</span
  8311. >
  8312. </div>
  8313. </div>
  8314. </div> -->
  8315. </div>
  8316. <div
  8317. v-if="evalua"
  8318. style="
  8319. border: 1px solid #e5e5e5;
  8320. max-width: 650px;
  8321. width: 100%;
  8322. margin-top: 20px;
  8323. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8324. "
  8325. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8326. >
  8327. <div class="e_add_top">
  8328. <div class="e_add_title" style="width: 100%">
  8329. <!-- <span>目标管理名称</span> -->
  8330. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8331. <img
  8332. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8333. src="../assets/line.png"
  8334. class="cru_line"
  8335. style="
  8336. width: 125px;
  8337. height: 20px;
  8338. bottom: -10px;
  8339. left: 5px;
  8340. "
  8341. />
  8342. <!-- <el-input
  8343. v-model="eTitle"
  8344. placeholder="请输入名称"
  8345. @change="setMindData"
  8346. ></el-input>-->
  8347. <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>
  8348. <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>
  8349. </div>
  8350. </div>
  8351. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8352. <div class="e_add_list_pbox">
  8353. <div class="e_add_list_pbox_title">
  8354. <!-- <span class="type_title">切换模式</span> -->
  8355. <div class="type_content">
  8356. <span
  8357. :class="{ active: typeMode == 1 }"
  8358. @click="typeMode = 1"
  8359. >目标树</span
  8360. >
  8361. <span
  8362. :class="{ active: typeMode == 2 }"
  8363. @click="typeMode = 2"
  8364. >目标罗盘</span
  8365. >
  8366. <!-- <span
  8367. :class="{ active: typeMode == 3 }"
  8368. @click="typeMode = 3"
  8369. >目标看板</span
  8370. > -->
  8371. </div>
  8372. </div>
  8373. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8374. <Mind
  8375. :showBar="false"
  8376. :mindData="data"
  8377. style="width: 100%"
  8378. v-show="typeMode == 1"
  8379. ></Mind>
  8380. <Sunburst
  8381. :Josn="eJson"
  8382. :num="eJSONNum"
  8383. style="width: 100%"
  8384. v-if="typeMode == 2"
  8385. ></Sunburst>
  8386. <SeeBoard
  8387. :Josn="eJson"
  8388. :num="eJSONNum"
  8389. :ename="eTitle"
  8390. style="width: 100%"
  8391. v-if="typeMode == 3"
  8392. >
  8393. </SeeBoard>
  8394. </div>
  8395. </div>
  8396. </div>
  8397. </div>
  8398. </div>
  8399. </div>
  8400. <!-- <div
  8401. class="project_box"
  8402. style="margin-top: 15px; padding-bottom: 30px"
  8403. >
  8404. <div
  8405. style="
  8406. display: flex;
  8407. flex-wrap: nowrap;
  8408. flex-direction: column;
  8409. position: relative;
  8410. "
  8411. >
  8412. <div class="queTop">
  8413. <div class="question">
  8414. <img src="../assets/icon/homeWork.png" alt="" />
  8415. </div>
  8416. <div class="queTitle">
  8417. <div>作业提交<span>(提交图文视频等)</span></div>
  8418. <div>:任务:{{ task.task }}</div>
  8419. </div>
  8420. </div>
  8421. <div class="ediBottom">
  8422. <div
  8423. class="addEditor"
  8424. style="margin-top: 23px"
  8425. @click="openAddWork"
  8426. v-if="!isNoHomeWork"
  8427. >
  8428. 选择文件
  8429. </div>
  8430. <div
  8431. class="addEditor"
  8432. style="margin-top: 23px"
  8433. @click="openAddWork"
  8434. v-else
  8435. >
  8436. 已提交
  8437. </div>
  8438. </div>
  8439. </div>
  8440. </div>-->
  8441. </div>
  8442. </div>
  8443. <el-dialog
  8444. title="作业提交"
  8445. :visible.sync="dialogVisible"
  8446. :append-to-body="true"
  8447. width="500px"
  8448. :before-close="handleClose"
  8449. class="dialog_change"
  8450. >
  8451. <div class="marginT">
  8452. <div>上传文件</div>
  8453. <div style="display: flex; gap: 10px">
  8454. <div
  8455. class="chapter_add"
  8456. @click="addImg($event)"
  8457. v-if="studyJuri[0].cover.length == 0"
  8458. >
  8459. <div class="up_photo">
  8460. <img src="../assets/icon/uploadImg.png" alt />
  8461. </div>
  8462. <!-- <input
  8463. type="file"
  8464. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8465. style="display: none"
  8466. @change="beforeUpload1($event, 1)"
  8467. /> -->
  8468. <input
  8469. type="file"
  8470. accept="*"
  8471. style="display: none"
  8472. @change="beforeUpload1($event, 1)"
  8473. />
  8474. <!-- <input
  8475. type="file"
  8476. accept="image/*"
  8477. capture="camera"
  8478. style="display: none"
  8479. @change="beforeUpload1($event, 1)"
  8480. /> -->
  8481. </div>
  8482. <div
  8483. class="chapter_add"
  8484. @click="addImg($event)"
  8485. v-if="studyJuri[0].cover.length == 0"
  8486. >
  8487. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8488. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8489. </div>
  8490. <input
  8491. type="file"
  8492. accept="image/*"
  8493. capture="camera"
  8494. style="display: none"
  8495. @change="beforeUpload1($event, 1)"
  8496. />
  8497. </div>
  8498. </div>
  8499. <div
  8500. class="chapter_add"
  8501. style="
  8502. display: flex;
  8503. width: 100%;
  8504. flex-direction: row;
  8505. flex-wrap: wrap;
  8506. justify-content: flex-start;
  8507. padding: 15px 0;
  8508. "
  8509. v-if="studyJuri[0].cover.length > 0"
  8510. >
  8511. <div class="upCover">
  8512. <img
  8513. :src="studyJuri[0].cover[0].url"
  8514. alt
  8515. v-if="fileType == 0"
  8516. />
  8517. <img :src="word" alt v-else-if="fileType == 1" />
  8518. <img :src="video" alt v-else-if="fileType == 2" />
  8519. <img :src="word2" alt v-else-if="fileType == 3" />
  8520. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8521. <div class="deleteWord" @click="clean(1)">
  8522. <img src="../assets/icon/deleteWorks.png" alt />
  8523. </div>
  8524. </div>
  8525. </div>
  8526. </div>
  8527. <div
  8528. class="upload_send"
  8529. @click="addCourseWorks(taskCount)"
  8530. v-if="!proVisible"
  8531. >
  8532. 提交
  8533. </div>
  8534. </el-dialog>
  8535. </div>
  8536. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8537. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8538. '/courseDetail?userid=' +
  8539. userid +
  8540. '&oid=' +
  8541. oid +
  8542. '&org=' +
  8543. org +
  8544. '&cid=' +
  8545. classId +
  8546. '&courseId=' +
  8547. id +
  8548. '&tType=' +
  8549. tType +
  8550. '&screenType=' +
  8551. screenType
  8552. )"></classRoomHelper>
  8553. <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(
  8554. '/courseDetail?userid=' +
  8555. userid +
  8556. '&oid=' +
  8557. oid +
  8558. '&org=' +
  8559. org +
  8560. '&cid=' +
  8561. classId +
  8562. '&courseId=' +
  8563. id +
  8564. '&tType=' +
  8565. tType +
  8566. '&screenType=' +
  8567. screenType
  8568. )"></studentClassRoomHelper>
  8569. </div>
  8570. <div
  8571. class="pButton"
  8572. @click="(pzDialog = true), selectPz()"
  8573. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8574. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8575. >
  8576. <!-- 批 -->
  8577. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8578. </div>
  8579. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8580. <div class="pzTop2">
  8581. <!-- <div>评论</div>
  8582. <div @click="pzDialog = false">
  8583. <img src="../assets/close1.png" alt="" />
  8584. </div> -->
  8585. <div class="checkbox">
  8586. <!-- <div class="check" style="font-size: 25px; position: unset">
  8587. 评论
  8588. </div> -->
  8589. <div class="cb-tabList">
  8590. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8591. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8592. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8593. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8594. </div>
  8595. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8596. <el-option label="时间降序" :value="1"></el-option>
  8597. <el-option label="时间升序" :value="2"></el-option>
  8598. <el-option label="我的评课" :value="3"></el-option>
  8599. </el-select>
  8600. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8601. </div>
  8602. </div>
  8603. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8604. <div class="pzListBox" v-if="pzList && pzList.length">
  8605. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8606. <div class="pzNavTop">
  8607. <div>评</div>
  8608. <div>
  8609. {{
  8610. pz.username && pz.username.length > 5
  8611. ? pz.username.substring(0, 5) + "..."
  8612. : pz.username
  8613. }}的评论
  8614. </div>
  8615. <div
  8616. class="pzDelete"
  8617. v-if="pz.userid == userid"
  8618. @click="deletePz(pz.id)"
  8619. >
  8620. 删除
  8621. </div>
  8622. </div>
  8623. <div
  8624. @click="checkImg(getImgList(pz.content))"
  8625. class="pzContent cont"
  8626. v-html="pz.content"
  8627. v-if="pz.type == '1'"
  8628. ></div>
  8629. <div class="pzContent" v-if="pz.type == '2'">
  8630. <audio :src="pz.content" controls="controls" ref="audio">
  8631. Your browser does not support the audio element.
  8632. </audio>
  8633. </div>
  8634. <div class="pzContent" v-if="pz.type == '3'">
  8635. <img
  8636. :src="pz.content"
  8637. style="width: 90%; margin: 0 auto; display: block"
  8638. @click="previewImg(pz.content)"
  8639. />
  8640. </div>
  8641. <div class="timeAndReply">
  8642. <div class="time">
  8643. {{ pz.time }}
  8644. </div>
  8645. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8646. </div>
  8647. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8648. <div
  8649. v-for="(h, hIndex) in pz.hfList"
  8650. :key="hIndex"
  8651. class="hfItem"
  8652. >
  8653. <div class="whoReplyWho">
  8654. <div class="hfName">{{ h.username }}</div>
  8655. <div class="hfImg">
  8656. <img src="../assets/icon/newIcons/right.png" alt="" />
  8657. </div>
  8658. <div class="hfName">{{ pz.username }}</div>
  8659. </div>
  8660. <div class="hfContent" v-html="h.content"></div>
  8661. <div class="hfBottom">
  8662. <div class="hfTime">{{ h.time }}</div>
  8663. <div
  8664. class="deleteHfItem"
  8665. @click="deleteReply(h.id)"
  8666. v-if="userid == h.userid"
  8667. >
  8668. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8669. </div>
  8670. </div>
  8671. </div>
  8672. </div>
  8673. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8674. <div class="replyInput">
  8675. <el-input v-model="reply[pzIndex]"></el-input>
  8676. </div>
  8677. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8678. </div> -->
  8679. </div>
  8680. </div>
  8681. <div class="noPz" v-else>
  8682. <img src="../assets/icon/noPz.png" alt="" />
  8683. </div>
  8684. <div class="addPzButton">
  8685. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8686. 添加评论
  8687. </div>
  8688. <!-- <div class="img1">
  8689. <div @click="(addPzDialog = true), (pzType = 2)">
  8690. <img src="../assets/audio.png" /><span>音频</span>
  8691. </div>
  8692. </div> -->
  8693. </div>
  8694. </div>
  8695. <div class="scoreList" v-if="commentTagShow==1">
  8696. <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"/>
  8697. </div>
  8698. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8699. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8700. </div>
  8701. </div>
  8702. <div
  8703. v-if="toolDialogVisible == true"
  8704. class="toolMask"
  8705. @click="toolDialogVisible = false"
  8706. ></div>
  8707. <div v-if="toolDialogVisible == true" class="addToolCss">
  8708. <div class="toolTop">
  8709. <div style="font-weight: bold">新增工具</div>
  8710. <div @click="toolDialogVisible = false">
  8711. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8712. </div>
  8713. </div>
  8714. <div class="tool_box">
  8715. <div class="tool_type_box">
  8716. <div class="chooseWho">
  8717. <div
  8718. :class="toolType == 0 ? 'isChooseActive' : ''"
  8719. @click="(toolType = 0), $forceUpdate()"
  8720. >
  8721. 互动类
  8722. </div>
  8723. <div
  8724. :class="toolType == 1 ? 'isChooseActive' : ''"
  8725. @click="(toolType = 1), $forceUpdate()"
  8726. >
  8727. 思维类
  8728. </div>
  8729. <div
  8730. :class="toolType == 2 ? 'isChooseActive' : ''"
  8731. @click="(toolType = 2), $forceUpdate()"
  8732. >
  8733. 测评类
  8734. </div>
  8735. <div
  8736. :class="toolType == 3 ? 'isChooseActive' : ''"
  8737. @click="(toolType = 3), $forceUpdate()"
  8738. >
  8739. 编程类
  8740. </div>
  8741. <div
  8742. :class="toolType == 5 ? 'isChooseActive' : ''"
  8743. @click="(toolType = 5), $forceUpdate()"
  8744. >
  8745. 学科类
  8746. </div>
  8747. </div>
  8748. </div>
  8749. <div>
  8750. <div class="toolSort" v-if="toolType == 0">
  8751. <div
  8752. class="tool"
  8753. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8754. @click="addTools2(10)"
  8755. >
  8756. <div class="whiteBIcon">
  8757. <img src="../assets/icon/thirdToolList/time.png" alt />
  8758. <div style="margin: 5px 0">倒计时</div>
  8759. </div>
  8760. <div class="check">
  8761. <div
  8762. v-if="checktoolArray.indexOf(10) == -1"
  8763. class="noChoose"
  8764. ></div>
  8765. <div v-else class="isChoose"></div>
  8766. </div>
  8767. </div>
  8768. <div
  8769. class="tool"
  8770. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8771. @click="addTools2(65)"
  8772. >
  8773. <div class="whiteBIcon">
  8774. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8775. <div style="margin: 5px 0">挑人</div>
  8776. </div>
  8777. <div class="check">
  8778. <div
  8779. v-if="checktoolArray.indexOf(65) == -1"
  8780. class="noChoose"
  8781. ></div>
  8782. <div v-else class="isChoose"></div>
  8783. </div>
  8784. </div>
  8785. </div>
  8786. <div class="toolSort" v-if="toolType == 1">
  8787. <div
  8788. class="tool"
  8789. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8790. @click="addTools2(7)"
  8791. >
  8792. <div class="whiteBIcon">
  8793. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8794. <div style="margin: 5px 0">思维网格</div>
  8795. </div>
  8796. <div class="check">
  8797. <div
  8798. v-if="checktoolArray.indexOf(7) == -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(1) != -1 }"
  8807. @click="addTools2(1)"
  8808. >
  8809. <div class="whiteBIcon">
  8810. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8811. <div style="margin: 5px 0">电子白板</div>
  8812. </div>
  8813. <div class="check">
  8814. <div
  8815. v-if="checktoolArray.indexOf(1) == -1"
  8816. class="noChoose"
  8817. ></div>
  8818. <div v-else class="isChoose"></div>
  8819. </div>
  8820. </div>
  8821. <div
  8822. class="tool"
  8823. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8824. @click="addTools2(52)"
  8825. >
  8826. <div class="whiteBIcon">
  8827. <img src="../assets/icon/fourthToolList/text.png" alt />
  8828. <div style="margin: 5px 0">文档</div>
  8829. </div>
  8830. <div class="check">
  8831. <div
  8832. v-if="checktoolArray.indexOf(52) == -1"
  8833. class="noChoose"
  8834. ></div>
  8835. <div v-else class="isChoose"></div>
  8836. </div>
  8837. </div>
  8838. <div
  8839. class="tool"
  8840. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8841. @click="addTools2(3)"
  8842. >
  8843. <div class="whiteBIcon">
  8844. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8845. <div style="margin: 5px 0">思维导图</div>
  8846. </div>
  8847. <div class="check">
  8848. <div
  8849. v-if="checktoolArray.indexOf(3) == -1"
  8850. class="noChoose"
  8851. ></div>
  8852. <div v-else class="isChoose"></div>
  8853. </div>
  8854. </div>
  8855. <div
  8856. class="tool"
  8857. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8858. @click="addTools2(48)"
  8859. >
  8860. <div class="whiteBIcon">
  8861. <img src="../assets/icon/fourthToolList/table.png" alt />
  8862. <div style="margin: 5px 0">表格</div>
  8863. </div>
  8864. <div class="check">
  8865. <div
  8866. v-if="checktoolArray.indexOf(48) == -1"
  8867. class="noChoose"
  8868. ></div>
  8869. <div v-else class="isChoose"></div>
  8870. </div>
  8871. </div>
  8872. </div>
  8873. <div class="toolSort" v-if="toolType == 6">
  8874. <div v-show="tooC == 49">
  8875. <img
  8876. @click="addTools(tooC, toolIndex, taskCount)"
  8877. src="../assets/icon/fourthToolList/group.png"
  8878. alt
  8879. />
  8880. <div style="margin: 5px 0">学生分组</div>
  8881. </div>
  8882. </div>
  8883. <div class="toolSort" v-if="toolType == 2">
  8884. <div
  8885. class="tool"
  8886. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8887. @click="addTools2(16)"
  8888. >
  8889. <div class="whiteBIcon">
  8890. <img src="../assets/icon/thirdToolList/work.png" alt />
  8891. <div style="margin: 5px 0">作业提交</div>
  8892. </div>
  8893. <div class="check">
  8894. <div
  8895. v-if="checktoolArray.indexOf(16) == -1"
  8896. class="noChoose"
  8897. ></div>
  8898. <div v-else class="isChoose"></div>
  8899. </div>
  8900. </div>
  8901. <div
  8902. class="tool"
  8903. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8904. @click="addTools2(50)"
  8905. >
  8906. <div class="whiteBIcon">
  8907. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8908. <div style="margin: 5px 0">批量上传</div>
  8909. </div>
  8910. <div class="check">
  8911. <div
  8912. v-if="checktoolArray.indexOf(50) == -1"
  8913. class="noChoose"
  8914. ></div>
  8915. <div v-else class="isChoose"></div>
  8916. </div>
  8917. </div>
  8918. </div>
  8919. <div class="toolSort" v-if="toolType == 3">
  8920. <div
  8921. class="tool"
  8922. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8923. @click="addTools2(18)"
  8924. >
  8925. <div class="whiteBIcon">
  8926. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8927. <div style="margin: 5px 0">训练平台</div>
  8928. </div>
  8929. <div class="check">
  8930. <div
  8931. v-if="checktoolArray.indexOf(18) == -1"
  8932. class="noChoose"
  8933. ></div>
  8934. <div v-else class="isChoose"></div>
  8935. </div>
  8936. </div>
  8937. <div
  8938. class="tool"
  8939. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8940. @click="addTools2(21)"
  8941. >
  8942. <div class="whiteBIcon">
  8943. <img src="../assets/icon/fourthToolList/program.png" alt />
  8944. <div style="margin: 5px 0">AIoT Blockly</div>
  8945. </div>
  8946. <div class="check">
  8947. <div
  8948. v-if="checktoolArray.indexOf(21) == -1"
  8949. class="noChoose"
  8950. ></div>
  8951. <div v-else class="isChoose"></div>
  8952. </div>
  8953. </div>
  8954. <div
  8955. class="tool"
  8956. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8957. @click="addTools2(23)"
  8958. >
  8959. <div class="whiteBIcon">
  8960. <img
  8961. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8962. alt
  8963. />
  8964. <div style="margin: 5px 0">AI Python</div>
  8965. </div>
  8966. <div class="check">
  8967. <div
  8968. v-if="checktoolArray.indexOf(23) == -1"
  8969. class="noChoose"
  8970. ></div>
  8971. <div v-else class="isChoose"></div>
  8972. </div>
  8973. </div>
  8974. <div
  8975. class="tool"
  8976. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8977. @click="addTools2(24)"
  8978. >
  8979. <div class="whiteBIcon">
  8980. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8981. <div style="margin: 5px 0">AI Blockly</div>
  8982. </div>
  8983. <div class="check">
  8984. <div
  8985. v-if="checktoolArray.indexOf(24) == -1"
  8986. class="noChoose"
  8987. ></div>
  8988. <div v-else class="isChoose"></div>
  8989. </div>
  8990. </div>
  8991. <div
  8992. class="tool"
  8993. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8994. @click="addTools2(32)"
  8995. >
  8996. <div class="whiteBIcon">
  8997. <img src="../assets/icon/thirdToolList/code.png" alt />
  8998. <div style="margin: 5px 0">源码编辑</div>
  8999. </div>
  9000. <div class="check">
  9001. <div
  9002. v-if="checktoolArray.indexOf(32) == -1"
  9003. class="noChoose"
  9004. ></div>
  9005. <div v-else class="isChoose"></div>
  9006. </div>
  9007. </div>
  9008. <div
  9009. class="tool"
  9010. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9011. @click="addTools2(57)"
  9012. >
  9013. <div class="whiteBIcon">
  9014. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  9015. <div style="margin: 5px 0">CocoPi</div>
  9016. </div>
  9017. <div class="check">
  9018. <div
  9019. v-if="checktoolArray.indexOf(57) == -1"
  9020. class="noChoose"
  9021. ></div>
  9022. <div v-else class="isChoose"></div>
  9023. </div>
  9024. </div>
  9025. <div
  9026. class="tool"
  9027. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9028. @click="addTools2(63)"
  9029. >
  9030. <div class="whiteBIcon">
  9031. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  9032. <div style="margin: 5px 0">海龟编程</div>
  9033. </div>
  9034. <div class="check">
  9035. <div
  9036. v-if="checktoolArray.indexOf(63) == -1"
  9037. class="noChoose"
  9038. ></div>
  9039. <div v-else class="isChoose"></div>
  9040. </div>
  9041. </div>
  9042. <div
  9043. class="tool"
  9044. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9045. @click="addTools2(71)"
  9046. >
  9047. <div class="whiteBIcon">
  9048. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  9049. <div style="margin: 5px 0">AI智能体</div>
  9050. </div>
  9051. <div class="check">
  9052. <div
  9053. v-if="checktoolArray.indexOf(71) == -1"
  9054. class="noChoose"
  9055. ></div>
  9056. <div v-else class="isChoose"></div>
  9057. </div>
  9058. </div>
  9059. </div>
  9060. <div class="toolSort" v-if="toolType == 7">
  9061. <div
  9062. class="tool"
  9063. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9064. @click="addTools2(40)"
  9065. >
  9066. <div class="whiteBIcon">
  9067. <img src="../assets/icon/secondToolList/eval.png" alt />
  9068. <div style="margin: 5px 0">个人评价</div>
  9069. </div>
  9070. <div class="check">
  9071. <div
  9072. v-if="checktoolArray.indexOf(40) == -1"
  9073. class="noChoose"
  9074. ></div>
  9075. <div v-else class="isChoose"></div>
  9076. </div>
  9077. </div>
  9078. </div>
  9079. <div class="toolSort" v-if="toolType == 5">
  9080. <div
  9081. class="tool"
  9082. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9083. @click="addTools2(28)"
  9084. >
  9085. <div class="whiteBIcon">
  9086. <img src="../assets/icon/secondToolList/translation.png" alt />
  9087. <div style="margin: 5px 0">翻译</div>
  9088. </div>
  9089. <div class="check">
  9090. <div
  9091. v-if="checktoolArray.indexOf(28) == -1"
  9092. class="noChoose"
  9093. ></div>
  9094. <div v-else class="isChoose"></div>
  9095. </div>
  9096. </div>
  9097. <div
  9098. class="tool"
  9099. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9100. @click="addTools2(31)"
  9101. >
  9102. <div class="whiteBIcon">
  9103. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9104. <div style="margin: 5px 0">数字画板</div>
  9105. </div>
  9106. <div class="check">
  9107. <div
  9108. v-if="checktoolArray.indexOf(31) == -1"
  9109. class="noChoose"
  9110. ></div>
  9111. <div v-else class="isChoose"></div>
  9112. </div>
  9113. </div>
  9114. <div
  9115. class="tool"
  9116. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9117. @click="addTools2(39)"
  9118. >
  9119. <div class="whiteBIcon">
  9120. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9121. <div style="margin: 5px 0">GeoGebra</div>
  9122. </div>
  9123. <div class="check">
  9124. <div
  9125. v-if="checktoolArray.indexOf(39) == -1"
  9126. class="noChoose"
  9127. ></div>
  9128. <div v-else class="isChoose"></div>
  9129. </div>
  9130. </div>
  9131. <div
  9132. class="tool"
  9133. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9134. @click="addTools2(66)"
  9135. >
  9136. <div class="whiteBIcon">
  9137. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9138. <div style="margin: 5px 0">公式编辑</div>
  9139. </div>
  9140. <div class="check">
  9141. <div
  9142. v-if="checktoolArray.indexOf(66) == -1"
  9143. class="noChoose"
  9144. ></div>
  9145. <div v-else class="isChoose"></div>
  9146. </div>
  9147. </div>
  9148. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9149. <div class="whiteBIcon" @click="addTools2(67)">
  9150. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9151. <div style="margin: 5px 0">分子结构</div>
  9152. </div>
  9153. <div class="check" @click="addTools2(67)">
  9154. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9155. <div v-else class="isChoose"></div>
  9156. </div>
  9157. </div> -->
  9158. <div
  9159. class="tool"
  9160. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9161. @click="addTools2(68)"
  9162. >
  9163. <div class="whiteBIcon">
  9164. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9165. <div style="margin: 5px 0">时间轴</div>
  9166. </div>
  9167. <div class="check">
  9168. <div
  9169. v-if="checktoolArray.indexOf(68) == -1"
  9170. class="noChoose"
  9171. ></div>
  9172. <div v-else class="isChoose"></div>
  9173. </div>
  9174. </div>
  9175. <!-- <div
  9176. class="tool"
  9177. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9178. @click="addTools2(69)"
  9179. >
  9180. <div class="whiteBIcon">
  9181. <img src="../assets/icon/secondToolList/english.png" alt />
  9182. <div style="margin: 5px 0">英语写作</div>
  9183. </div>
  9184. <div class="check">
  9185. <div
  9186. v-if="checktoolArray.indexOf(69) == -1"
  9187. class="noChoose"
  9188. ></div>
  9189. <div v-else class="isChoose"></div>
  9190. </div>
  9191. </div> -->
  9192. </div>
  9193. <div class="toolSort" v-if="toolType == 4">
  9194. <div
  9195. class="tool"
  9196. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9197. @click="addTools2(26)"
  9198. >
  9199. <div class="whiteBIcon">
  9200. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9201. <div style="margin: 5px 0">课程设计</div>
  9202. </div>
  9203. <div class="check">
  9204. <div
  9205. v-if="checktoolArray.indexOf(26) == -1"
  9206. class="noChoose"
  9207. ></div>
  9208. <div v-else class="isChoose"></div>
  9209. </div>
  9210. </div>
  9211. <div
  9212. class="tool"
  9213. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9214. @click="addTools2(25)"
  9215. >
  9216. <div class="whiteBIcon">
  9217. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9218. <div style="margin: 5px 0">目标管理</div>
  9219. </div>
  9220. <div class="check">
  9221. <div
  9222. v-if="checktoolArray.indexOf(25) == -1"
  9223. class="noChoose"
  9224. ></div>
  9225. <div v-else class="isChoose"></div>
  9226. </div>
  9227. </div>
  9228. </div>
  9229. </div>
  9230. </div>
  9231. <span
  9232. slot="footer"
  9233. class="dialog-footer"
  9234. style="display: block; text-align: center; padding: 0 0 10px 0"
  9235. >
  9236. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9237. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9238. </span>
  9239. </div>
  9240. <div
  9241. v-if="replyDialogVisible == true"
  9242. class="addDialogCss"
  9243. v-el-drag-dialog
  9244. >
  9245. <div class="pzTop">
  9246. <div class="teacherPz">
  9247. <div class="teacherPzImg">
  9248. <img src="../assets/icon/teacherPz.png" alt="" />
  9249. </div>
  9250. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9251. </div>
  9252. <div @click="replyDialogVisible = false">
  9253. <img src="../assets/close1.png" class="pzClose" alt="" />
  9254. </div>
  9255. </div>
  9256. <div class="addPzBox">
  9257. <!-- <div class="addPzCheck">
  9258. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9259. >文本</span
  9260. >
  9261. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9262. >音频</span
  9263. >
  9264. </div> -->
  9265. <div style="height: calc(100% - 50px)">
  9266. <editor-bar
  9267. class="binfo_input pzConText"
  9268. style="width: 100% !important; margin: 0 auto"
  9269. placeholder="请输入回复描述"
  9270. v-model="reply"
  9271. @change="change"
  9272. ></editor-bar>
  9273. </div>
  9274. <div class="addTextCss" @click="addHf">确定</div>
  9275. </div>
  9276. </div>
  9277. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9278. <div class="pzTop">
  9279. <div class="teacherPz">
  9280. <div class="teacherPzImg">
  9281. <img src="../assets/icon/teacherPz.png" alt="" />
  9282. </div>
  9283. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9284. </div>
  9285. <div @click="addPzDialog = false">
  9286. <img src="../assets/close1.png" class="pzClose" alt="" />
  9287. </div>
  9288. </div>
  9289. <div class="addPzBox">
  9290. <div class="addPzCheck">
  9291. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9292. >文本</span
  9293. >
  9294. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9295. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9296. >音频</span
  9297. >
  9298. </div>
  9299. <div style="height: calc(100% - 95px)">
  9300. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9301. v-if="pzType == 1"></textarea> -->
  9302. <editor-bar
  9303. class="binfo_input pzConText"
  9304. style="width: 100% !important"
  9305. placeholder="请输入任务描述"
  9306. v-model="pzConText"
  9307. @change="change"
  9308. v-if="pzType == 1"
  9309. ></editor-bar>
  9310. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9311. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9312. <div @click="addImg($event)">
  9313. <el-button type="primary">上传图片</el-button>
  9314. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9315. @change="beforeUpload1($event, 4)" />
  9316. </div>
  9317. </div> -->
  9318. </div>
  9319. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9320. 确定
  9321. </div>
  9322. </div>
  9323. </div>
  9324. <div v-if="proVisible" class="mask">
  9325. <div class="progressBox">
  9326. <!-- <div id="closePro" class="closeCss">
  9327. <img src="../assets/icon/close.png" alt />
  9328. </div> -->
  9329. <div class="lbox">
  9330. <img src="../assets/loading.gif" />上传中,请稍后
  9331. </div>
  9332. <div style="margin-bottom: 10px">
  9333. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9334. </div>
  9335. <el-progress
  9336. :text-inside="true"
  9337. :stroke-width="20"
  9338. :percentage="progress"
  9339. style="width: 80%"
  9340. ></el-progress>
  9341. </div>
  9342. </div>
  9343. <div v-if="proVisible2" class="mask">
  9344. <div class="progressBox">
  9345. <div class="lbox">
  9346. <img src="../assets/loading.gif" />上传中,请稍后
  9347. </div>
  9348. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9349. </div>
  9350. </div>
  9351. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9352. <img width="100%" :src="dialogImageUrl" alt />
  9353. </el-dialog>
  9354. <el-dialog
  9355. :title="noteName != '' ? noteName : '查看问卷'"
  9356. :visible.sync="dialogVisible5"
  9357. :append-to-body="true"
  9358. width="1000px"
  9359. :before-close="handleClose"
  9360. class="dialog_diy dialog_diy3"
  9361. >
  9362. <div>
  9363. <div
  9364. class="a_add_title"
  9365. style="
  9366. display: flex;
  9367. flex-direction: row;
  9368. align-items: center;
  9369. justify-content: center;
  9370. "
  9371. >
  9372. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9373. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9374. </div>
  9375. <div class="a_addBox">
  9376. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9377. 题目内容
  9378. </div>
  9379. <div
  9380. class="a_add_box"
  9381. v-for="(item1, index1) in askJson.askCount"
  9382. :key="index1"
  9383. >
  9384. <div class="a_add_head">
  9385. <div style="display: flex">
  9386. <span class="askIndex"> {{ index1 + 1 }}</span>
  9387. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9388. </div>
  9389. <img
  9390. v-if="askJson.askJson[index1].img"
  9391. :src="askJson.askJson[index1].img"
  9392. style="height: 300px; margin-top: 10px; max-width: 100%"
  9393. />
  9394. </div>
  9395. <div class="a_add_body">
  9396. <div class="a_add_input">
  9397. <el-radio-group
  9398. v-model="radio[index1]"
  9399. v-if="
  9400. askJson.askJson[index1].type == '1' ||
  9401. !askJson.askJson[index1].type
  9402. "
  9403. >
  9404. <el-radio
  9405. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9406. .checkList"
  9407. :key="checkIndex"
  9408. :label="checkIndex"
  9409. :disabled="isAnswer"
  9410. class="redioStyle"
  9411. ><span v-html="item2"></span
  9412. ></el-radio>
  9413. </el-radio-group>
  9414. <el-checkbox-group
  9415. v-model="radio[index1]"
  9416. v-if="askJson.askJson[index1].type == '2'"
  9417. >
  9418. <el-checkbox
  9419. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9420. .checkList"
  9421. :key="checkIndex1"
  9422. :label="checkIndex1"
  9423. :disabled="isAnswer"
  9424. class="redioStyle"
  9425. ><span v-html="item2"></span>
  9426. </el-checkbox>
  9427. </el-checkbox-group>
  9428. </div>
  9429. </div>
  9430. </div>
  9431. </div>
  9432. </div>
  9433. <span slot="footer" class="dialog-footer">
  9434. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9435. >取 消</el-button
  9436. >
  9437. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9438. >确 定</el-button
  9439. >
  9440. </span>
  9441. </el-dialog>
  9442. <el-dialog
  9443. :title="noteName != '' ? noteName : '查看问卷'"
  9444. :visible.sync="dialogVisible5Teacher"
  9445. :append-to-body="true"
  9446. width="1000px"
  9447. :before-close="handleClose"
  9448. class="dialog_diy dialog_diy3"
  9449. >
  9450. <div>
  9451. <div class="w_name">
  9452. 学生姓名:<span>{{ sStudent.student }}</span>
  9453. </div>
  9454. <div
  9455. class="a_add_title"
  9456. style="
  9457. display: flex;
  9458. flex-direction: row;
  9459. align-items: center;
  9460. justify-content: center;
  9461. "
  9462. >
  9463. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9464. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9465. </div>
  9466. <div class="a_addBox">
  9467. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9468. 题目内容
  9469. </div>
  9470. <div
  9471. class="a_add_box"
  9472. v-for="(item1, index1) in askJson.askCount"
  9473. :key="index1"
  9474. >
  9475. <div class="a_add_head">
  9476. <div style="display: flex">
  9477. <span class="askIndex">{{ index1 + 1 }}</span>
  9478. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9479. </div>
  9480. <img
  9481. v-if="askJson.askJson[index1].img"
  9482. :src="askJson.askJson[index1].img"
  9483. style="height: 300px; margin-top: 10px; max-width: 100%"
  9484. />
  9485. </div>
  9486. <div class="a_add_body">
  9487. <div class="a_add_input">
  9488. <el-radio-group
  9489. v-model="radio[index1]"
  9490. v-if="
  9491. askJson.askJson[index1].type == '1' ||
  9492. !askJson.askJson[index1].type
  9493. "
  9494. >
  9495. <el-radio
  9496. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9497. .checkList"
  9498. :key="checkIndex"
  9499. :label="checkIndex"
  9500. :disabled="isAnswer"
  9501. class="redioStyle"
  9502. ><span v-html="item2"></span
  9503. ></el-radio>
  9504. </el-radio-group>
  9505. <el-checkbox-group
  9506. v-model="radio[index1]"
  9507. v-if="askJson.askJson[index1].type == '2'"
  9508. >
  9509. <el-checkbox
  9510. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9511. .checkList"
  9512. :key="checkIndex1"
  9513. :label="checkIndex1"
  9514. :disabled="isAnswer"
  9515. class="redioStyle"
  9516. ><span v-html="item2"></span>
  9517. </el-checkbox>
  9518. </el-checkbox-group>
  9519. </div>
  9520. </div>
  9521. </div>
  9522. </div>
  9523. </div>
  9524. <span slot="footer" class="dialog-footer">
  9525. <el-button
  9526. @click="dialogVisible5Teacher = false"
  9527. v-show="noteName == ''"
  9528. >取 消</el-button
  9529. >
  9530. <el-button
  9531. type="primary"
  9532. @click="addStudentAskTeacher"
  9533. v-show="noteName == ''"
  9534. >确 定</el-button
  9535. >
  9536. </span>
  9537. </el-dialog>
  9538. <el-dialog
  9539. :title="noteName != '' ? noteName : '查看选择题'"
  9540. :visible.sync="dialogVisibleChoice"
  9541. :append-to-body="true"
  9542. width="1000px"
  9543. :before-close="handleClose"
  9544. class="dialog_diy dialog_diy3"
  9545. >
  9546. <div>
  9547. <!-- <div class="a_add_title" style="
  9548. display: flex;
  9549. flex-direction: row;
  9550. align-items: center;
  9551. justify-content: center;
  9552. ">
  9553. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9554. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9555. </div> -->
  9556. <div class="a_addBox">
  9557. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9558. 题目内容
  9559. </div>
  9560. <div
  9561. class="a_add_box"
  9562. v-for="(item1, index1) in testJson.testCount"
  9563. :key="index1"
  9564. >
  9565. <div class="a_add_head">
  9566. <div style="display: flex;align-items: center;">
  9567. <span class="askIndex">{{ index1 + 1 }}</span>
  9568. <div
  9569. v-if="testJson.testJson[index1].type == '1'"
  9570. style="margin-right: 5px; min-width: 70px"
  9571. >
  9572. (单选题)
  9573. </div>
  9574. <div
  9575. v-if="testJson.testJson[index1].type == '2'"
  9576. style="margin-right: 5px; min-width: 70px"
  9577. >
  9578. (多选题)
  9579. </div>
  9580. <div>题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9581. </div>
  9582. <img
  9583. v-if="testJson.testJson[index1].img"
  9584. :src="testJson.testJson[index1].img"
  9585. style="height: 300px; margin-top: 10px; max-width: 100%"
  9586. />
  9587. </div>
  9588. <div
  9589. class="timuImgBox"
  9590. v-if="
  9591. testJson.testJson[index1].timuList &&
  9592. testJson.testJson[index1].timuList.length
  9593. "
  9594. >
  9595. <div
  9596. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9597. :key="tIndex"
  9598. class="timuImg"
  9599. @click.stop="previewImg(timg.src)"
  9600. >
  9601. <img :src="timg.src" alt="" />
  9602. </div>
  9603. </div>
  9604. <div class="a_add_body">
  9605. <div class="a_add_input">
  9606. <el-radio-group
  9607. v-model="radio[index1]"
  9608. v-if="testJson.testJson[index1].type == '1'"
  9609. >
  9610. <div class="radioBox">
  9611. <el-radio
  9612. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9613. .checkList"
  9614. :key="checkIndex"
  9615. :label="checkIndex"
  9616. :disabled="isAnswer"
  9617. class="redioStyle"
  9618. >
  9619. <div
  9620. style="margin-right: 10px"
  9621. v-if="item2 && item2.imgType && item2.imgType == 1"
  9622. >
  9623. <div class="inImg" @click.stop="previewImg(item2.src)">
  9624. <img :src="item2.src" alt="" />
  9625. </div>
  9626. </div>
  9627. <span v-else v-html="item2"></span>
  9628. </el-radio>
  9629. </div>
  9630. </el-radio-group>
  9631. <el-checkbox-group
  9632. v-model="radio[index1]"
  9633. v-if="testJson.testJson[index1].type == '2'"
  9634. >
  9635. <div class="radioBox">
  9636. <el-checkbox
  9637. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9638. .checkList"
  9639. :key="checkIndex"
  9640. :label="checkIndex"
  9641. :disabled="isAnswer"
  9642. class="redioStyle"
  9643. >
  9644. <div
  9645. style="margin-right: 10px"
  9646. v-if="item2 && item2.imgType && item2.imgType == 1"
  9647. >
  9648. <div class="inImg" @click.stop="previewImg(item2.src)">
  9649. <img :src="item2.src" alt="" />
  9650. </div>
  9651. </div>
  9652. <span v-else v-html="item2"></span>
  9653. </el-checkbox>
  9654. </div>
  9655. </el-checkbox-group>
  9656. </div>
  9657. </div>
  9658. </div>
  9659. </div>
  9660. </div>
  9661. <span slot="footer" class="dialog-footer">
  9662. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9663. >取 消</el-button
  9664. >
  9665. <el-button
  9666. type="primary"
  9667. @click="addStudentTest"
  9668. v-show="noteName == ''"
  9669. >确 定</el-button
  9670. >
  9671. </span>
  9672. </el-dialog>
  9673. <el-dialog
  9674. :title="noteName != '' ? noteName : '查看选择题'"
  9675. :visible.sync="dialogVisibleChoiceTeacher"
  9676. :append-to-body="true"
  9677. width="1000px"
  9678. :before-close="handleClose"
  9679. class="dialog_diy dialog_diy3"
  9680. >
  9681. <div>
  9682. <div class="w_name">
  9683. 学生姓名:<span>{{ sStudent.student }}</span>
  9684. </div>
  9685. <div class="a_addBox">
  9686. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9687. 题目内容
  9688. </div>
  9689. <div
  9690. class="a_add_box"
  9691. v-for="(item1, index1) in testJson.testCount"
  9692. :key="index1"
  9693. >
  9694. <div class="a_add_head">
  9695. <div style="display: flex">
  9696. <span class="askIndex">{{ index1 + 1 }}</span>
  9697. <div
  9698. v-if="testJson.testJson[index1].type == '1'"
  9699. style="margin-right: 5px; min-width: 70px"
  9700. >
  9701. (单选题)
  9702. </div>
  9703. <div
  9704. v-if="testJson.testJson[index1].type == '2'"
  9705. style="margin-right: 5px; min-width: 70px"
  9706. >
  9707. (多选题)
  9708. </div>
  9709. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9710. </div>
  9711. <img
  9712. v-if="testJson.testJson[index1].img"
  9713. :src="testJson.testJson[index1].img"
  9714. style="height: 300px; margin-top: 10px; max-width: 100%"
  9715. />
  9716. </div>
  9717. <div
  9718. class="timuImgBox"
  9719. v-if="
  9720. testJson.testJson[index1].timuList &&
  9721. testJson.testJson[index1].timuList.length
  9722. "
  9723. >
  9724. <div
  9725. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9726. :key="tIndex"
  9727. class="timuImg"
  9728. @click.stop="previewImg(timg.src)"
  9729. >
  9730. <img :src="timg.src" alt="" />
  9731. </div>
  9732. </div>
  9733. <div class="a_add_body">
  9734. <div class="a_add_input">
  9735. <el-radio-group
  9736. v-model="radio[index1]"
  9737. v-if="testJson.testJson[index1].type == '1'"
  9738. >
  9739. <div class="radioBox">
  9740. <el-radio
  9741. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9742. .checkList"
  9743. :key="checkIndex"
  9744. :label="checkIndex"
  9745. :disabled="isAnswer"
  9746. class="redioStyle"
  9747. >
  9748. <div
  9749. style="margin-right: 10px"
  9750. v-if="item2 && item2.imgType && item2.imgType == 1"
  9751. >
  9752. <div class="inImg" @click.stop="previewImg(item2.src)">
  9753. <img :src="item2.src" alt="" />
  9754. </div>
  9755. </div>
  9756. <span v-else v-html="item2"></span>
  9757. </el-radio>
  9758. </div>
  9759. </el-radio-group>
  9760. <el-checkbox-group
  9761. v-model="radio[index1]"
  9762. v-if="testJson.testJson[index1].type == '2'"
  9763. >
  9764. <div class="radioBox">
  9765. <el-checkbox
  9766. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9767. .checkList"
  9768. :key="checkIndex"
  9769. :label="checkIndex"
  9770. :disabled="isAnswer"
  9771. class="redioStyle"
  9772. >
  9773. <div
  9774. style="margin-right: 10px"
  9775. v-if="item2 && item2.imgType && item2.imgType == 1"
  9776. >
  9777. <div class="inImg" @click.stop="previewImg(item2.src)">
  9778. <img :src="item2.src" alt="" />
  9779. </div>
  9780. </div>
  9781. <span v-else v-html="item2"></span>
  9782. </el-checkbox>
  9783. </div>
  9784. </el-checkbox-group>
  9785. </div>
  9786. </div>
  9787. </div>
  9788. </div>
  9789. </div>
  9790. <span slot="footer" class="dialog-footer">
  9791. <el-button
  9792. @click="dialogVisibleChoiceTeacher = false"
  9793. v-show="noteName == ''"
  9794. >取 消</el-button
  9795. >
  9796. <el-button
  9797. type="primary"
  9798. @click="addStudentTestTeacher"
  9799. v-show="noteName == ''"
  9800. >确 定</el-button
  9801. >
  9802. </span>
  9803. </el-dialog>
  9804. <el-dialog
  9805. title="查看富文本"
  9806. :visible.sync="dialogVisible1"
  9807. :append-to-body="true"
  9808. width="500px"
  9809. :before-close="handleClose"
  9810. class="dialog_diy textCss"
  9811. >
  9812. <el-form style="font-size: 20px">
  9813. <el-form-item label="文本标题" class="textTitle">
  9814. <div style="font-size: 20px">{{ text.name }}</div>
  9815. </el-form-item>
  9816. <div>富文本内容</div>
  9817. <div
  9818. v-html="text.url"
  9819. style="font-size: 18px; padding: 40px 0 0 0"
  9820. ></div>
  9821. </el-form>
  9822. <span slot="footer" class="dialog-footer">
  9823. <el-button type="primary" @click="dialogVisible1 = false"
  9824. >确定</el-button
  9825. >
  9826. </span>
  9827. </el-dialog>
  9828. <el-dialog
  9829. title="文件预览"
  9830. :visible.sync="dialogVisible3"
  9831. width="50%"
  9832. :before-close="handleClose"
  9833. class="dialog_diy"
  9834. :class="{ fullStyle: full }"
  9835. >
  9836. <div slot="title" class="header-title">
  9837. <div style="color: #fff">文件预览</div>
  9838. <div style="position: absolute; top: 19px; right: 50px">
  9839. <img
  9840. src="../assets/full.png"
  9841. style="height: 16px; cursor: pointer"
  9842. alt=""
  9843. @click="fullTools"
  9844. />
  9845. </div>
  9846. </div>
  9847. <pdf
  9848. v-if="showPDF"
  9849. :pdfUrl="pptImgUrl"
  9850. style="width: 100%; height: 520px; overflow: auto"
  9851. :class="{ fullStyle: full }"
  9852. ></pdf>
  9853. <iframe
  9854. v-else
  9855. :src="pptImgUrl"
  9856. frameborder="0"
  9857. width="100%"
  9858. height="600"
  9859. :class="{ fullStyle: full }"
  9860. ></iframe>
  9861. </el-dialog>
  9862. <el-dialog
  9863. title="文件预览"
  9864. :visible.sync="dialogVisible6"
  9865. width="50%"
  9866. :before-close="handleClose"
  9867. class="dialog_diy"
  9868. >
  9869. <iframe
  9870. :src="pptImgUrl1"
  9871. frameborder="0"
  9872. width="100%"
  9873. height="600"
  9874. ></iframe>
  9875. </el-dialog>
  9876. <el-dialog
  9877. title="提示"
  9878. :visible.sync="dialogVisible4"
  9879. :append-to-body="true"
  9880. width="800px"
  9881. :before-close="handleClose"
  9882. class="dialog_diy notice"
  9883. >
  9884. <div>此功能暂未开放!</div>
  9885. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9886. </el-dialog>
  9887. <el-dialog
  9888. title="问答"
  9889. :visible.sync="answerDialogVisible"
  9890. :append-to-body="true"
  9891. width="800px"
  9892. :before-close="handleClose"
  9893. class="dialog_diy"
  9894. >
  9895. <div>
  9896. <div
  9897. style="
  9898. display: flex;
  9899. flex-wrap: nowrap;
  9900. flex-direction: column;
  9901. position: relative;
  9902. "
  9903. >
  9904. <div class="queTop" style="padding: 20px 0 20px 0">
  9905. <div class="question">
  9906. <img src="../assets/icon/question.png" alt />
  9907. </div>
  9908. <div class="queTitle">
  9909. <div style="width: 90px; min-width: 90px">提问:</div>
  9910. <div>{{ answerQ }}</div>
  9911. </div>
  9912. </div>
  9913. <div class="ediBottom">
  9914. <textarea
  9915. rows="6"
  9916. class="binfo_input"
  9917. cols
  9918. style="width: 95%; height: 120px"
  9919. v-model="questionAnswer"
  9920. ></textarea>
  9921. </div>
  9922. </div>
  9923. </div>
  9924. <div slot="footer">
  9925. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9926. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9927. </div>
  9928. </el-dialog>
  9929. <el-dialog
  9930. title="问答"
  9931. :visible.sync="answerDialogVisibleTeacher"
  9932. :append-to-body="true"
  9933. width="800px"
  9934. :before-close="handleClose"
  9935. class="dialog_diy"
  9936. >
  9937. <div>
  9938. <div class="w_name">
  9939. 学生姓名:<span>{{ sStudent.student }}</span>
  9940. </div>
  9941. <div
  9942. style="
  9943. display: flex;
  9944. flex-wrap: nowrap;
  9945. flex-direction: column;
  9946. position: relative;
  9947. "
  9948. >
  9949. <div class="queTop" style="padding: 20px 0 20px 0">
  9950. <div class="question">
  9951. <img src="../assets/icon/question.png" alt />
  9952. </div>
  9953. <div class="queTitle">
  9954. <div style="width: 90px; min-width: 90px">提问:</div>
  9955. <div>{{ answerQ }}</div>
  9956. </div>
  9957. </div>
  9958. <div class="ediBottom">
  9959. <textarea
  9960. rows="6"
  9961. class="binfo_input"
  9962. cols
  9963. style="width: 95%; height: 120px"
  9964. v-model="questionAnswer"
  9965. ></textarea>
  9966. </div>
  9967. </div>
  9968. </div>
  9969. <div slot="footer">
  9970. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9971. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9972. </div>
  9973. </el-dialog>
  9974. <el-dialog
  9975. title="倒计时"
  9976. :visible.sync="timeDialogVisible"
  9977. :append-to-body="true"
  9978. width="800px"
  9979. :before-close="handleClose"
  9980. class="dialog_diy"
  9981. >
  9982. <div>
  9983. <div style="margin-bottom: 20px; color: #999">
  9984. 提示:点击“+”或“-”修改倒计时时长。
  9985. </div>
  9986. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9987. </div>
  9988. <div slot="footer">
  9989. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9990. </div>
  9991. </el-dialog>
  9992. <el-dialog
  9993. title="权限设置"
  9994. :visible.sync="juriVisible"
  9995. :append-to-body="true"
  9996. width="400px"
  9997. :before-close="handleClose"
  9998. class="dialog_diy"
  9999. >
  10000. <div>
  10001. <div class="open_box">
  10002. <div class="switch_box">
  10003. <span>允许学生查看所有作业</span>
  10004. <el-switch
  10005. v-model="sIsOpen"
  10006. active-text=""
  10007. class="switchCss"
  10008. @change="updateSLook"
  10009. ></el-switch>
  10010. </div>
  10011. <div
  10012. class="switch_box"
  10013. v-if="
  10014. (courseDetail.userid == userid ||
  10015. (courseDetail.course_teacher &&
  10016. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10017. "
  10018. >
  10019. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10020. <span>禁止学生查看阶段</span>
  10021. <el-switch
  10022. v-model="IsLookOpen"
  10023. active-text=""
  10024. class="switchCss"
  10025. @change="updateLookOpen"
  10026. ></el-switch>
  10027. </div>
  10028. <div class="switch_box" v-if="courseDetail.userid == userid">
  10029. <span>开启跟随模式</span>
  10030. <el-switch
  10031. v-model="IsFollow"
  10032. active-text=""
  10033. class="switchCss"
  10034. @change="updateFollow"
  10035. ></el-switch>
  10036. </div>
  10037. <div class="switch_box" v-if="courseDetail.userid == userid">
  10038. <span>允许学生查看内容资料</span>
  10039. <el-switch
  10040. v-model="IsStulook"
  10041. active-text=""
  10042. class="switchCss"
  10043. @change="updateIsStulook"
  10044. ></el-switch>
  10045. </div>
  10046. </div>
  10047. </div>
  10048. <div slot="footer">
  10049. <el-button
  10050. style="background: #409efe; color: #fff"
  10051. @click="juriVisible = false"
  10052. >关 闭</el-button
  10053. >
  10054. </div>
  10055. </el-dialog>
  10056. <el-dialog
  10057. title="查看视频"
  10058. :visible.sync="videoVisible"
  10059. :append-to-body="true"
  10060. width="1000px"
  10061. :before-close="handleClose"
  10062. class="dialog_diy1"
  10063. >
  10064. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10065. <video-player
  10066. class="video-player vjs-custom-skin"
  10067. :playsinline="true"
  10068. :options="videoDetail"
  10069. @play="onPlayerPlay($event)"
  10070. style="width: 100%; height: 100%"
  10071. ></video-player>
  10072. </div>
  10073. <div slot="footer">
  10074. <el-button
  10075. style="background: #409efe; color: #fff"
  10076. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10077. >
  10078. 关 闭</el-button
  10079. >
  10080. </div>
  10081. </el-dialog>
  10082. <el-dialog
  10083. title="查看详情"
  10084. :visible.sync="commentDialogVisible"
  10085. :append-to-body="true"
  10086. width="800px"
  10087. :before-close="handleClose"
  10088. class="dialog_diy"
  10089. >
  10090. <div class="commentTop">
  10091. <div class="studentDetail">
  10092. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10093. <div class="nameAndTime">
  10094. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10095. <div>{{ commentDetail.time }}</div>
  10096. </div>
  10097. <div
  10098. class="returnBtn"
  10099. style="margin-left: auto; width: 80px"
  10100. v-if="
  10101. commentDetail.works &&
  10102. commentDetail.type == 0 &&
  10103. (tType == 1 || tType == 4)
  10104. "
  10105. @click="
  10106. showPicturePaint(
  10107. commentDetail.img ? commentDetail.img : commentDetail.works
  10108. )
  10109. "
  10110. >
  10111. 教师批注
  10112. </div>
  10113. </div>
  10114. <div
  10115. class="worksAnswer"
  10116. v-if="commentDetail.works && commentDetail.type == 2"
  10117. >
  10118. {{ JSON.parse(commentDetail.works)[0].answer }}
  10119. </div>
  10120. <div
  10121. class="worksAnswer"
  10122. v-if="commentDetail.works && commentDetail.type == 1"
  10123. >
  10124. <img
  10125. src="../assets/teacherWork.png"
  10126. v-if="commentDetail.ateacher"
  10127. class="w_teachert"
  10128. />
  10129. <pdf
  10130. v-if="showPDF"
  10131. :pdfUrl="pptImgUrl"
  10132. style="width: 100%; height: 520px; overflow: auto"
  10133. :class="{ fullStyle: full }"
  10134. ></pdf>
  10135. <iframe
  10136. v-else
  10137. :src="pptImgUrl"
  10138. frameborder="0"
  10139. width="100%"
  10140. height="600"
  10141. :class="{ fullStyle: full }"
  10142. ></iframe>
  10143. </div>
  10144. <div
  10145. class="worksAnswer"
  10146. v-if="commentDetail.works && commentDetail.type == 0"
  10147. >
  10148. <img
  10149. src="../assets/teacherWork.png"
  10150. v-if="commentDetail.ateacher"
  10151. class="w_teachert"
  10152. style="right: 105px"
  10153. />
  10154. <img
  10155. :src="commentDetail.works"
  10156. alt=""
  10157. @click="previewImg(commentDetail.works)"
  10158. />
  10159. </div>
  10160. <div
  10161. class="worksAnswer"
  10162. v-if="commentDetail.works && commentDetail.type == 3"
  10163. >
  10164. <img
  10165. src="../assets/teacherWork.png"
  10166. v-if="commentDetail.ateacher"
  10167. class="w_teachert"
  10168. />
  10169. <video-player
  10170. class="video-player vjs-custom-skin"
  10171. :playsinline="true"
  10172. :options="videoDetail"
  10173. @play="onPlayerPlay($event)"
  10174. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10175. ></video-player>
  10176. </div>
  10177. <div
  10178. class="worksAnswer"
  10179. v-if="commentDetail.works && commentDetail.type == 10"
  10180. >
  10181. <div class="cont" v-html="commentDetail.works.text"></div>
  10182. </div>
  10183. <div
  10184. class="worksAnswer codeFileBox"
  10185. v-if="commentDetail.works && commentDetail.type == 12"
  10186. @click="downloadFile(commentDetail.works)"
  10187. >
  10188. <img src="../assets/icon/codeFile.png" />
  10189. <div>点击下载文件</div>
  10190. </div>
  10191. <div
  10192. class="worksAnswer codeFileBox"
  10193. v-if="commentDetail.works && commentDetail.type == 15"
  10194. @click="
  10195. openCocoPi(
  10196. 57,
  10197. commentIndexJson.toolIndex,
  10198. commentDetail.userid,
  10199. commentDetail.sName
  10200. )
  10201. "
  10202. >
  10203. <img src="../assets/icon/codeFile.png" />
  10204. <div>点击打开CocoPi</div>
  10205. </div>
  10206. <div
  10207. class="worksAnswer"
  10208. v-if="commentDetail.works && commentDetail.type == 13"
  10209. >
  10210. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10211. </div>
  10212. <div
  10213. class="worksAnswer"
  10214. v-if="commentDetail.works && commentDetail.type == 4"
  10215. >
  10216. <div class="evalCss">
  10217. <div class="nav">请选择星星进行评分</div>
  10218. <div class="middleBox" v-if="eScore.eStar">
  10219. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10220. <div class="nameAndrate">
  10221. <div>{{ e.value }}</div>
  10222. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10223. </div>
  10224. <div v-if="e.detail">{{ e.detail }}</div>
  10225. </div>
  10226. <div class="bz">
  10227. <textarea
  10228. disabled
  10229. rows="4"
  10230. class="pj"
  10231. style="
  10232. padding: 10px 5px;
  10233. width: 70%;
  10234. background: #f7f6f9;
  10235. font-size: 14px;
  10236. text-indent: 10px;
  10237. color: #000;
  10238. "
  10239. cols
  10240. v-model="eScore.eBzText"
  10241. placeholder="请输入评价内容..."
  10242. ></textarea>
  10243. </div>
  10244. </div>
  10245. </div>
  10246. </div>
  10247. <div class="comment">
  10248. <div class="commentList">
  10249. <div class="commentImg">
  10250. <img
  10251. @click="
  10252. isLikes(
  10253. commentDetail.wid,
  10254. userid,
  10255. 1,
  10256. null,
  10257. commentDetail.isLikes,
  10258. commentDetail.sName
  10259. )
  10260. "
  10261. :src="commentDetail.isLikes == true ? likes : noLikes"
  10262. alt=""
  10263. />
  10264. </div>
  10265. <div>{{ commentDetail.likesCount }}</div>
  10266. </div>
  10267. <div class="commentList">
  10268. <div class="commentImg">
  10269. <img src="../assets/icon/comment/comment.png" alt="" />
  10270. </div>
  10271. <div>{{ commentDetail.commentCount }}</div>
  10272. </div>
  10273. </div>
  10274. <div class="drawPBox" v-if="commentDetail.img">
  10275. <span>教师批注</span>
  10276. <img
  10277. :src="commentDetail.img"
  10278. alt=""
  10279. @click="previewImg(commentDetail.img)"
  10280. />
  10281. <span
  10282. class="deleteImg"
  10283. v-if="tType == 1 || tType == 4"
  10284. @click.stop="deletePicturePaint(commentDetail.wid)"
  10285. style="
  10286. font-size: 14px;
  10287. width: auto !important;
  10288. color: #b4b4b4;
  10289. top: unset;
  10290. bottom: 0;
  10291. border: none;
  10292. padding: 0;
  10293. height: auto !important;
  10294. margin: 0;
  10295. "
  10296. >删除</span
  10297. >
  10298. </div>
  10299. </div>
  10300. <div class="commentBox">
  10301. <div class="pl">评论:</div>
  10302. <div style="max-height: 200px; overflow: auto">
  10303. <div
  10304. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10305. style="padding: 10px 0 0 0"
  10306. >
  10307. <div
  10308. class="studentDetail"
  10309. style="padding-top: 10px"
  10310. v-for="(co, coIndex) in commentDetail.commentJson"
  10311. :key="coIndex"
  10312. >
  10313. <div class="tx" style="min-width: 50px">
  10314. <img src="../assets/avatar.png" alt="" />
  10315. </div>
  10316. <div class="plPerson">
  10317. <div class="plName">
  10318. <div>{{ co.commentPeople }}</div>
  10319. <div style="margin-left: 5px">
  10320. {{ co.commentTime }}
  10321. </div>
  10322. <div
  10323. class="deleteComment"
  10324. v-if="userid == co.userid"
  10325. @click="deleteComment(co.wid)"
  10326. >
  10327. 删除
  10328. </div>
  10329. </div>
  10330. <div class="plContent">{{ co.commentText }}</div>
  10331. </div>
  10332. </div>
  10333. </div>
  10334. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10335. </div>
  10336. </div>
  10337. <div style="margin-top: 10px">
  10338. <div class="displayBox">
  10339. <div
  10340. style="
  10341. color: #556db4;
  10342. font-size: 14px;
  10343. font-weight: bold;
  10344. padding-bottom: 10px;
  10345. "
  10346. >
  10347. 评价
  10348. </div>
  10349. <div class="easy_comment" v-if="false">
  10350. <div
  10351. v-for="(p, pIndex) in PlTextList"
  10352. :key="pIndex"
  10353. @click="fastText(p, 1)"
  10354. >
  10355. {{ p }}
  10356. </div>
  10357. </div>
  10358. </div>
  10359. <div>
  10360. <textarea
  10361. rows="3"
  10362. class="pj"
  10363. style="padding: 10px 5px"
  10364. cols
  10365. v-model="commentText"
  10366. placeholder="请输入评论"
  10367. ></textarea>
  10368. </div>
  10369. </div>
  10370. <div slot="footer">
  10371. <el-button
  10372. @click="
  10373. (commentDialogVisible = false),
  10374. (commentIndexJson = {}),
  10375. videoDetail.sources && videoDetail.sources[0]
  10376. ? (videoDetail.sources[0].src = '')
  10377. : ''
  10378. "
  10379. >取 消</el-button
  10380. >
  10381. <el-button
  10382. type="primary"
  10383. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10384. >确 定</el-button
  10385. >
  10386. </div>
  10387. </el-dialog>
  10388. <el-dialog
  10389. title="查看文档"
  10390. :visible.sync="fullDialogVisible"
  10391. :append-to-body="true"
  10392. width="100%"
  10393. :before-close="handleClose"
  10394. :show-close="false"
  10395. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10396. >
  10397. <div slot="title" class="header-title">
  10398. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10399. <div v-else style="color: #fff">查看文档</div>
  10400. <div
  10401. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10402. style="
  10403. cursor: pointer;
  10404. position: absolute;
  10405. top: 20px;
  10406. right: 20px;
  10407. color: #fff;
  10408. "
  10409. >
  10410. 退出全屏
  10411. </div>
  10412. </div>
  10413. <div style="height: 100%;position: relative;">
  10414. <el-button
  10415. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10416. size="medium"
  10417. type="primary"
  10418. @click="
  10419. () => {
  10420. (fullDialogVisible = false),
  10421. changeSplitScreenBehavior({ code: 99 });
  10422. }
  10423. "
  10424. style="
  10425. cursor: pointer;
  10426. position: absolute;
  10427. top: 10px;
  10428. right: 20px;
  10429. color: #fff;
  10430. "
  10431. >
  10432. 退出全屏
  10433. </el-button>
  10434. <div
  10435. class="wheel"
  10436. v-if="fulltype == 1"
  10437. style="
  10438. box-shadow: 0 0 6px 1px #f2f2f2;
  10439. width: 100%;
  10440. height:100%;
  10441. background: #f1f1f1;
  10442. "
  10443. >
  10444. <div class="title" style="width: 100%; box-sizing: border-box">
  10445. 查看文档
  10446. </div>
  10447. <el-form class="textBox" style="height: 90%">
  10448. <el-form-item class="textTitle">
  10449. <div style="font-size: 22px">
  10450. {{ fullUrl.name }}
  10451. </div>
  10452. </el-form-item>
  10453. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10454. <div
  10455. v-html="fullUrl.url"
  10456. class="textContent"
  10457. style="height: auto"
  10458. ></div>
  10459. </el-form>
  10460. </div>
  10461. <div
  10462. class="wheel"
  10463. v-else-if="
  10464. (fulltype == 2 || fulltype == 4) &&
  10465. fullUrl.indexOf(
  10466. 'https://view.officeapps.live.com/op/view.aspx?src='
  10467. ) != -1
  10468. "
  10469. style="width: 100%;height:100%; margin: 0 auto"
  10470. >
  10471. <iframe
  10472. style="width: 100%; height: 100%; border: none"
  10473. :src="fullUrl"
  10474. ></iframe>
  10475. </div>
  10476. <!-- <iframe
  10477. v-else-if="fulltype == 2"
  10478. style="width: 100%; height: 100%; border: none"
  10479. :src="fullUrl"
  10480. security="restricted"
  10481. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10482. ></iframe> -->
  10483. <iframe
  10484. style="width: 100%; height: 100%; border: none"
  10485. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10486. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  10487. :src="fullUrl"
  10488. ></iframe>
  10489. <iframe
  10490. style="width: 100%; height: 100%; border: none"
  10491. security="restricted"
  10492. v-else-if="(fulltype == 2 || fulltype == 4)"
  10493. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10494. :src="fullUrl"
  10495. ></iframe>
  10496. <pdf
  10497. v-else-if="fulltype == 3"
  10498. :pdfUrl="fullUrl"
  10499. style="width: 100%; height: 100%; overflow: auto"
  10500. ></pdf>
  10501. <iframe
  10502. style="width: 100%; height: 100%; border: none"
  10503. security="restricted"
  10504. v-if="(fulltype == 16)"
  10505. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10506. :src="fullUrl"
  10507. ></iframe>
  10508. </div>
  10509. <!-- <div slot="footer">
  10510. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10511. </div> -->
  10512. </el-dialog>
  10513. <el-dialog
  10514. title="个人评价"
  10515. :visible.sync="studentEvalDialogVisible"
  10516. :append-to-body="true"
  10517. width="800px"
  10518. :before-close="handleClose"
  10519. class="dialog_diy"
  10520. >
  10521. <div class="evalCss">
  10522. <div class="nav">请选择星星进行评分</div>
  10523. <div class="middleBox" v-if="eScore.eStar">
  10524. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10525. <div class="nameAndrate">
  10526. <div>{{ e.value }}</div>
  10527. <el-rate
  10528. v-model="eScore.eStar[eIndex]"
  10529. :disabled="isStar"
  10530. ></el-rate>
  10531. </div>
  10532. <div v-if="e.detail">{{ e.detail }}</div>
  10533. </div>
  10534. <div class="easy_comment" v-if="false">
  10535. <div
  10536. v-for="(p, pIndex) in PlTextList"
  10537. :key="pIndex"
  10538. @click="fastText(p, 2)"
  10539. >
  10540. {{ p }}
  10541. </div>
  10542. </div>
  10543. <div class="bz">
  10544. <textarea
  10545. :disabled="isStar"
  10546. rows="4"
  10547. class="pj"
  10548. style="
  10549. padding: 10px 5px;
  10550. width: 70%;
  10551. background: #f7f6f9;
  10552. font-size: 14px;
  10553. text-indent: 10px;
  10554. "
  10555. cols
  10556. v-model="eScore.eBzText"
  10557. placeholder="请输入评价内容..."
  10558. ></textarea>
  10559. </div>
  10560. </div>
  10561. </div>
  10562. <div slot="footer">
  10563. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10564. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10565. >确 定</el-button
  10566. >
  10567. </div>
  10568. </el-dialog>
  10569. <el-dialog
  10570. title="个人评价"
  10571. :visible.sync="studentEvalDialogVisibleTeacher"
  10572. :append-to-body="true"
  10573. width="800px"
  10574. :before-close="handleClose"
  10575. class="dialog_diy"
  10576. >
  10577. <div class="w_name">
  10578. 学生姓名:<span>{{ sStudent.student }}</span>
  10579. </div>
  10580. <div class="evalCss">
  10581. <div class="nav">请选择星星进行评分</div>
  10582. <div class="middleBox" v-if="eScore.eStar">
  10583. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10584. <div class="nameAndrate">
  10585. <div>{{ e.value }}</div>
  10586. <el-rate
  10587. v-model="eScore.eStar[eIndex]"
  10588. :disabled="isStar"
  10589. ></el-rate>
  10590. </div>
  10591. <div v-if="e.detail">{{ e.detail }}</div>
  10592. </div>
  10593. <div class="easy_comment" v-if="false">
  10594. <div
  10595. v-for="(p, pIndex) in PlTextList"
  10596. :key="pIndex"
  10597. @click="fastText(p, 2)"
  10598. >
  10599. {{ p }}
  10600. </div>
  10601. </div>
  10602. <div class="bz">
  10603. <textarea
  10604. :disabled="isStar"
  10605. rows="4"
  10606. class="pj"
  10607. style="
  10608. padding: 10px 5px;
  10609. width: 70%;
  10610. background: #f7f6f9;
  10611. font-size: 14px;
  10612. text-indent: 10px;
  10613. "
  10614. cols
  10615. v-model="eScore.eBzText"
  10616. placeholder="请输入评价内容..."
  10617. ></textarea>
  10618. </div>
  10619. </div>
  10620. </div>
  10621. <div slot="footer">
  10622. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10623. >取 消</el-button
  10624. >
  10625. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10626. >确 定</el-button
  10627. >
  10628. </div>
  10629. </el-dialog>
  10630. <el-dialog
  10631. title="选择匹配"
  10632. :visible.sync="dialogVisibleSelect"
  10633. :append-to-body="true"
  10634. width="90%"
  10635. :before-close="handleClose"
  10636. class="dialog_diy dialog_diy3"
  10637. >
  10638. <div v-if="selectJson">
  10639. <div class="select_box2">
  10640. <div class="select_box2_title">
  10641. <div>选择匹配</div>
  10642. <div>请选择对应的答案进行答题!</div>
  10643. </div>
  10644. <div class="select_box2_box">
  10645. <div class="select_box2_img">
  10646. <img
  10647. :src="selectJson.url"
  10648. @click="previewImg(selectJson.url)"
  10649. alt=""
  10650. />
  10651. </div>
  10652. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10653. <div style="padding-top: 15px">
  10654. <div class="select_answer_title" v-if="isSelect">
  10655. {{ selectAnswer.stu }}
  10656. </div>
  10657. <div class="select_answer_title" v-else>
  10658. 根据题目选择对应答案
  10659. </div>
  10660. <div
  10661. class="select_box2_answer_box"
  10662. v-for="(item2, checkIndex) in selectJson.select"
  10663. :key="checkIndex"
  10664. >
  10665. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10666. <el-select
  10667. :disabled="isSelect"
  10668. v-model="selectAnswer.answer[checkIndex]"
  10669. placeholder="请选择正确答案"
  10670. >
  10671. <el-option
  10672. v-for="(e, eIndex) in selectJson.select"
  10673. :key="eIndex"
  10674. :label="e"
  10675. :value="eIndex"
  10676. >
  10677. </el-option>
  10678. </el-select>
  10679. </div>
  10680. </div>
  10681. <div
  10682. class="rightAnswerCss"
  10683. v-if="isSelect && (tType == 1 || tType == 4)"
  10684. >
  10685. <div
  10686. v-for="(a, aIndex) in selectJson.answer"
  10687. :key="aIndex"
  10688. class="rightAnswer"
  10689. >
  10690. <div
  10691. v-if="selectAnswer.answer[aIndex] === a"
  10692. style="color: #767de1"
  10693. >
  10694. 回答正确
  10695. </div>
  10696. <div v-else>回答错误</div>
  10697. <div
  10698. style="margin-left: 10px"
  10699. v-if="selectAnswer.answer[aIndex] !== a"
  10700. >
  10701. 正确答案:
  10702. </div>
  10703. <div
  10704. :class="
  10705. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10706. "
  10707. >
  10708. {{ selectJson.select[a] }}
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <div class="upAnswerCss">
  10714. <el-button
  10715. type="primary"
  10716. @click="addSelectAnswer"
  10717. v-if="!isSelect"
  10718. >提交答案</el-button
  10719. >
  10720. </div>
  10721. </div>
  10722. </div>
  10723. </div>
  10724. </el-dialog>
  10725. <el-dialog
  10726. title="选择匹配"
  10727. :visible.sync="dialogVisibleSelectTeacher"
  10728. :append-to-body="true"
  10729. width="90%"
  10730. :before-close="handleClose"
  10731. class="dialog_diy dialog_diy3"
  10732. >
  10733. <div v-if="selectJson">
  10734. <div class="w_name">
  10735. 学生姓名:<span>{{ sStudent.student }}</span>
  10736. </div>
  10737. <div class="select_box2">
  10738. <div class="select_box2_title">
  10739. <div>选择匹配</div>
  10740. <div>请选择对应的答案进行答题!</div>
  10741. </div>
  10742. <div class="select_box2_box">
  10743. <div class="select_box2_img">
  10744. <img
  10745. :src="selectJson.url"
  10746. @click="previewImg(selectJson.url)"
  10747. alt=""
  10748. />
  10749. </div>
  10750. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10751. <div style="padding-top: 15px">
  10752. <div class="select_answer_title" v-if="isSelect">
  10753. {{ selectAnswer.stu }}
  10754. </div>
  10755. <div class="select_answer_title" v-else>
  10756. 根据题目选择对应答案
  10757. </div>
  10758. <div
  10759. class="select_box2_answer_box"
  10760. v-for="(item2, checkIndex) in selectJson.select"
  10761. :key="checkIndex"
  10762. >
  10763. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10764. <el-select
  10765. :disabled="isSelect"
  10766. v-model="selectAnswer.answer[checkIndex]"
  10767. placeholder="请选择正确答案"
  10768. >
  10769. <el-option
  10770. v-for="(e, eIndex) in selectJson.select"
  10771. :key="eIndex"
  10772. :label="e"
  10773. :value="eIndex"
  10774. >
  10775. </el-option>
  10776. </el-select>
  10777. </div>
  10778. </div>
  10779. <div
  10780. class="rightAnswerCss"
  10781. v-if="isSelect && (tType == 1 || tType == 4)"
  10782. >
  10783. <div
  10784. v-for="(a, aIndex) in selectJson.answer"
  10785. :key="aIndex"
  10786. class="rightAnswer"
  10787. >
  10788. <div
  10789. v-if="selectAnswer.answer[aIndex] === a"
  10790. style="color: #767de1"
  10791. >
  10792. 回答正确
  10793. </div>
  10794. <div v-else>回答错误</div>
  10795. <div
  10796. style="margin-left: 10px"
  10797. v-if="selectAnswer.answer[aIndex] !== a"
  10798. >
  10799. 正确答案:
  10800. </div>
  10801. <div
  10802. :class="
  10803. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10804. "
  10805. >
  10806. {{ selectJson.select[a] }}
  10807. </div>
  10808. </div>
  10809. </div>
  10810. </div>
  10811. <div class="upAnswerCss">
  10812. <el-button
  10813. type="primary"
  10814. @click="addSelectAnswerTeacher"
  10815. v-if="!isSelect"
  10816. >提交答案</el-button
  10817. >
  10818. </div>
  10819. </div>
  10820. </div>
  10821. </div>
  10822. </el-dialog>
  10823. <el-dialog
  10824. title="教师评分"
  10825. :visible.sync="dialogVisibleScore"
  10826. :append-to-body="true"
  10827. width="800px"
  10828. :before-close="handleClose"
  10829. class="dialog_diy"
  10830. >
  10831. <div>
  10832. <div class="studentDetail">
  10833. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10834. <div class="nameAndTime">
  10835. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10836. <div>{{ commentDetail.time }}</div>
  10837. </div>
  10838. </div>
  10839. <div
  10840. class="worksAnswer"
  10841. v-if="commentDetail.works && commentDetail.type == 2"
  10842. >
  10843. {{ JSON.parse(commentDetail.works)[0].answer }}
  10844. </div>
  10845. <div
  10846. class="worksAnswer"
  10847. v-if="commentDetail.works && commentDetail.type == 1"
  10848. >
  10849. <pdf
  10850. v-if="showPDF"
  10851. :pdfUrl="pptImgUrl"
  10852. style="width: 100%; height: 520px; overflow: auto"
  10853. :class="{ fullStyle: full }"
  10854. ></pdf>
  10855. <iframe
  10856. v-else
  10857. :src="pptImgUrl"
  10858. frameborder="0"
  10859. width="100%"
  10860. height="600"
  10861. :class="{ fullStyle: full }"
  10862. ></iframe>
  10863. </div>
  10864. <div
  10865. class="worksAnswer"
  10866. v-if="commentDetail.works && commentDetail.type == 0"
  10867. >
  10868. <img
  10869. :src="commentDetail.works"
  10870. alt=""
  10871. @click="previewImg(commentDetail.works)"
  10872. />
  10873. </div>
  10874. <div
  10875. class="worksAnswer"
  10876. v-if="commentDetail.works && commentDetail.type == 3"
  10877. >
  10878. <video-player
  10879. class="video-player vjs-custom-skin"
  10880. :playsinline="true"
  10881. :options="videoDetail"
  10882. @play="onPlayerPlay($event)"
  10883. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10884. ></video-player>
  10885. </div>
  10886. <div
  10887. class="worksAnswer codeFileBox"
  10888. v-if="commentDetail.works && commentDetail.type == 12"
  10889. @click="downloadFile(commentDetail.works)"
  10890. >
  10891. <img src="../assets/icon/codeFile.png" />
  10892. <div>点击下载文件</div>
  10893. </div>
  10894. <div
  10895. class="worksAnswer codeFileBox"
  10896. v-if="commentDetail.works && commentDetail.type == 15"
  10897. @click="
  10898. openCocoPi(
  10899. 57,
  10900. commentIndexJson.toolIndex,
  10901. commentDetail.userid,
  10902. commentDetail.sName
  10903. )
  10904. "
  10905. >
  10906. <img src="../assets/icon/codeFile.png" />
  10907. <div>点击打开CocoPi</div>
  10908. </div>
  10909. <div
  10910. class="worksAnswer"
  10911. v-if="commentDetail.works && commentDetail.type == 13"
  10912. >
  10913. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10914. </div>
  10915. <div class="scoreBox">
  10916. <span class="t">请输入分数</span>
  10917. <el-input-number
  10918. :disabled="courseDetail.userid != userid"
  10919. v-model="wScore"
  10920. :controls="false"
  10921. :min="0"
  10922. :max="100"
  10923. ></el-input-number>
  10924. </div>
  10925. <div class="scoreDetailBox">
  10926. <span class="t">评分评论</span>
  10927. <el-input
  10928. type="textarea"
  10929. :rows="5"
  10930. :disabled="courseDetail.userid != userid"
  10931. resize="none"
  10932. v-model="scoreDetail"
  10933. placeholder="请输入对学生的评价"
  10934. >
  10935. </el-input>
  10936. </div>
  10937. </div>
  10938. <span slot="footer" class="dialog-footer">
  10939. <el-button
  10940. @click="
  10941. (dialogVisibleScore = false),
  10942. (commentIndexJson = {}),
  10943. videoDetail.sources && videoDetail.sources[0]
  10944. ? (videoDetail.sources[0].src = '')
  10945. : ''
  10946. "
  10947. >取 消</el-button
  10948. >
  10949. <el-button
  10950. type="primary"
  10951. v-if="courseDetail.userid == userid"
  10952. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10953. >确 定
  10954. </el-button>
  10955. </span>
  10956. </el-dialog>
  10957. <el-dialog
  10958. title="排序"
  10959. :visible.sync="dialogVisibleSentence"
  10960. :append-to-body="true"
  10961. width="1000px"
  10962. :before-close="handleClose"
  10963. class="dialog_diy dialog_diy3"
  10964. >
  10965. <div>
  10966. <div class="sentenBox">
  10967. <div
  10968. v-for="(st, stIndex) in sentenceList"
  10969. :key="stIndex"
  10970. style="padding-bottom: 20px"
  10971. >
  10972. <div
  10973. style="padding: 15px 0 10px 20px"
  10974. class="sentenceTitle"
  10975. :index="stIndex + 1"
  10976. >
  10977. 题目{{ stIndex + 1 }}:请选择正确顺序
  10978. </div>
  10979. <div class="cardList" v-if="st.chooseSenList">
  10980. <div class="cardBox">
  10981. <div
  10982. v-for="(r, rIndex) in st.chooseSenList"
  10983. :key="rIndex"
  10984. @click="returnCard(r, stIndex, rIndex)"
  10985. >
  10986. <el-tooltip
  10987. class="item"
  10988. effect="light"
  10989. :content="r"
  10990. placement="top"
  10991. v-if="r != '' && r != undefined"
  10992. >
  10993. <div
  10994. :class="{
  10995. isCard: r,
  10996. isChooseCard: r == '' || r == undefined,
  10997. }"
  10998. >
  10999. <div>{{ r }}</div>
  11000. </div>
  11001. </el-tooltip>
  11002. <div
  11003. :class="{
  11004. isCard: r,
  11005. isChooseCard: r == '' || r == undefined,
  11006. }"
  11007. v-else
  11008. >
  11009. <div>{{ r }}</div>
  11010. </div>
  11011. </div>
  11012. </div>
  11013. </div>
  11014. <div class="cardList" v-if="st.addChangeSen">
  11015. <div class="cardBox">
  11016. <div
  11017. v-for="(s, sIndex) in st.addChangeSen"
  11018. :key="sIndex"
  11019. @click="setRightAnswer(s, stIndex, sIndex)"
  11020. >
  11021. <el-tooltip
  11022. class="item"
  11023. effect="light"
  11024. :content="s"
  11025. placement="top"
  11026. v-if="s != '' && s != undefined"
  11027. >
  11028. <div
  11029. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11030. >
  11031. <div>{{ s }}</div>
  11032. </div>
  11033. </el-tooltip>
  11034. <div
  11035. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11036. v-else
  11037. >
  11038. <div>{{ s }}</div>
  11039. </div>
  11040. </div>
  11041. </div>
  11042. </div>
  11043. </div>
  11044. </div>
  11045. </div>
  11046. <span slot="footer" class="dialog-footer">
  11047. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11048. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11049. </span>
  11050. </el-dialog>
  11051. <el-dialog
  11052. title="排序"
  11053. :visible.sync="dialogVisibleSentenceTeacher"
  11054. :append-to-body="true"
  11055. width="1000px"
  11056. :before-close="handleClose"
  11057. class="dialog_diy dialog_diy3"
  11058. >
  11059. <div>
  11060. <div class="w_name">
  11061. 学生姓名:<span>{{ sStudent.student }}</span>
  11062. </div>
  11063. <div class="sentenBox">
  11064. <div
  11065. v-for="(st, stIndex) in sentenceList"
  11066. :key="stIndex"
  11067. style="padding-bottom: 20px"
  11068. >
  11069. <div
  11070. style="padding: 15px 0 10px 20px"
  11071. class="sentenceTitle"
  11072. :index="stIndex + 1"
  11073. >
  11074. 题目{{ stIndex + 1 }}:请选择正确顺序
  11075. </div>
  11076. <div class="cardList" v-if="st.chooseSenList">
  11077. <div class="cardBox">
  11078. <div
  11079. v-for="(r, rIndex) in st.chooseSenList"
  11080. :key="rIndex"
  11081. @click="returnCard(r, stIndex, rIndex)"
  11082. >
  11083. <el-tooltip
  11084. class="item"
  11085. effect="light"
  11086. :content="r"
  11087. placement="top"
  11088. v-if="r != '' && r != undefined"
  11089. >
  11090. <div
  11091. :class="{
  11092. isCard: r,
  11093. isChooseCard: r == '' || r == undefined,
  11094. }"
  11095. >
  11096. <div>{{ r }}</div>
  11097. </div>
  11098. </el-tooltip>
  11099. <div
  11100. :class="{
  11101. isCard: r,
  11102. isChooseCard: r == '' || r == undefined,
  11103. }"
  11104. v-else
  11105. >
  11106. <div>{{ r }}</div>
  11107. </div>
  11108. </div>
  11109. </div>
  11110. </div>
  11111. <div class="cardList" v-if="st.addChangeSen">
  11112. <div class="cardBox">
  11113. <div
  11114. v-for="(s, sIndex) in st.addChangeSen"
  11115. :key="sIndex"
  11116. @click="setRightAnswer(s, stIndex, sIndex)"
  11117. >
  11118. <el-tooltip
  11119. class="item"
  11120. effect="light"
  11121. :content="s"
  11122. placement="top"
  11123. v-if="s != '' && s != undefined"
  11124. >
  11125. <div
  11126. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11127. >
  11128. <div>{{ s }}</div>
  11129. </div>
  11130. </el-tooltip>
  11131. <div
  11132. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11133. v-else
  11134. >
  11135. <div>{{ s }}</div>
  11136. </div>
  11137. </div>
  11138. </div>
  11139. </div>
  11140. </div>
  11141. </div>
  11142. </div>
  11143. <span slot="footer" class="dialog-footer">
  11144. <el-button @click="dialogVisibleSentenceTeacher = false"
  11145. >取 消</el-button
  11146. >
  11147. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11148. </span>
  11149. </el-dialog>
  11150. <el-dialog
  11151. title="排序"
  11152. :visible.sync="dialogVisibleSentence1"
  11153. :append-to-body="true"
  11154. width="1000px"
  11155. :before-close="handleClose"
  11156. class="dialog_diy dialog_diy3"
  11157. >
  11158. <div>
  11159. <div class="sentenBox">
  11160. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11161. {{ sentenceList1.stuName }}的作业
  11162. </div>
  11163. <div
  11164. v-for="(st, stIndex) in sentenceList1"
  11165. :key="stIndex"
  11166. style="padding-bottom: 20px"
  11167. >
  11168. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11169. 第{{ stIndex + 1 }}题
  11170. </div>
  11171. <div class="isWrong">
  11172. <div class="cardList1" v-if="st.chooseSenList">
  11173. <div class="cardBox">
  11174. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11175. <el-tooltip
  11176. class="item"
  11177. effect="light"
  11178. :content="s"
  11179. placement="top"
  11180. >
  11181. <div class="isCard">
  11182. <div>{{ s }}</div>
  11183. </div>
  11184. </el-tooltip>
  11185. </div>
  11186. </div>
  11187. <div class="cardAnswerBox">
  11188. 组成句子:{{ st.chooseSenList.join(" ") }}
  11189. </div>
  11190. </div>
  11191. <div v-if="tType == 2" class="isTj">
  11192. <div class="isTjImg">
  11193. <img src="../assets/icon/conSentences/right.png" alt="" />
  11194. </div>
  11195. <div>已提交</div>
  11196. </div>
  11197. <div
  11198. class="answerRight isTj"
  11199. v-if="
  11200. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11201. (tType == 1 || tType == 4)
  11202. "
  11203. >
  11204. <div class="isTjImg">
  11205. <img src="../assets/icon/conSentences/right.png" alt="" />
  11206. </div>
  11207. <div>回答正确</div>
  11208. </div>
  11209. <div
  11210. class="answerRight isTj"
  11211. v-if="
  11212. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11213. (tType == 1 || tType == 4)
  11214. "
  11215. >
  11216. <div class="isTjImg">
  11217. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11218. </div>
  11219. <div>回答错误</div>
  11220. </div>
  11221. </div>
  11222. <div
  11223. v-if="
  11224. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11225. (tType == 1 || tType == 4)
  11226. "
  11227. >
  11228. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11229. <div
  11230. class="cardList"
  11231. v-if="st.rightAnswer"
  11232. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11233. >
  11234. <div class="cardBox">
  11235. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11236. <el-tooltip
  11237. class="item"
  11238. effect="light"
  11239. :content="r"
  11240. placement="top"
  11241. >
  11242. <div class="isCard1">
  11243. <div>{{ r }}</div>
  11244. </div>
  11245. </el-tooltip>
  11246. </div>
  11247. </div>
  11248. <div class="cardAnswerBox">
  11249. 组成句子:{{ st.rightAnswer.join(" ") }}
  11250. </div>
  11251. </div>
  11252. </div>
  11253. </div>
  11254. </div>
  11255. </div>
  11256. <span slot="footer" class="dialog-footer">
  11257. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11258. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11259. >确 定</el-button
  11260. >
  11261. </span>
  11262. </el-dialog>
  11263. <el-dialog
  11264. title="教师提交作业"
  11265. :visible.sync="dialogVisibleWorks"
  11266. :append-to-body="true"
  11267. width="500px"
  11268. :before-close="handleClose"
  11269. class="dialog_change"
  11270. >
  11271. <div class="marginT">
  11272. <div class="w_name">
  11273. 学生姓名:<span>{{ sStudent.student }}</span>
  11274. </div>
  11275. <div>上传文件</div>
  11276. <div style="display: flex; gap: 10px">
  11277. <div
  11278. class="chapter_add"
  11279. @click="addImg($event)"
  11280. v-if="studyJuri[0].cover.length == 0"
  11281. >
  11282. <div class="up_photo">
  11283. <img src="../assets/icon/uploadImg.png" alt />
  11284. </div>
  11285. <!-- <input
  11286. type="file"
  11287. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11288. style="display: none"
  11289. @change="beforeUpload1($event, 1)"
  11290. /> -->
  11291. <input
  11292. type="file"
  11293. accept="*"
  11294. style="display: none"
  11295. @change="beforeUpload1($event, 1)"
  11296. />
  11297. <!-- <input
  11298. type="file"
  11299. accept="image/*"
  11300. capture="camera"
  11301. style="display: none"
  11302. @change="beforeUpload1($event, 1)"
  11303. /> -->
  11304. </div>
  11305. <div
  11306. class="chapter_add"
  11307. @click="addImg($event)"
  11308. v-if="studyJuri[0].cover.length == 0"
  11309. >
  11310. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11311. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11312. </div>
  11313. <input
  11314. type="file"
  11315. accept="image/*"
  11316. capture="camera"
  11317. style="display: none"
  11318. @change="beforeUpload1($event, 1)"
  11319. />
  11320. </div>
  11321. </div>
  11322. <!-- capture="camera" -->
  11323. <div
  11324. class="chapter_add"
  11325. style="
  11326. display: flex;
  11327. width: 100%;
  11328. flex-direction: row;
  11329. flex-wrap: wrap;
  11330. justify-content: flex-start;
  11331. padding: 15px 0;
  11332. "
  11333. v-if="studyJuri[0].cover.length > 0"
  11334. >
  11335. <div class="upCover">
  11336. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11337. <img :src="word" alt v-else-if="fileType == 1" />
  11338. <img :src="video" alt v-else-if="fileType == 2" />
  11339. <img :src="word2" alt v-else-if="fileType == 3" />
  11340. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11341. <div class="deleteWord" @click="clean(1)">
  11342. <img src="../assets/icon/deleteWorks.png" alt />
  11343. </div>
  11344. </div>
  11345. </div>
  11346. </div>
  11347. <div
  11348. class="upload_send"
  11349. @click="addCourseWorksTeacher(taskCount)"
  11350. v-if="!proVisible"
  11351. >
  11352. 提交
  11353. </div>
  11354. </el-dialog>
  11355. <ImgDraw
  11356. :drawShow="drawShow"
  11357. @closeDraw="closeDraw"
  11358. @addImgDraw="addImgDraw"
  11359. :bg="bg"
  11360. ></ImgDraw>
  11361. <el-dialog
  11362. title="表格"
  11363. :visible.sync="dialogVisibleTable"
  11364. :append-to-body="true"
  11365. width="95%"
  11366. :before-close="handleClose"
  11367. class="dialog_diy"
  11368. >
  11369. <el-form>
  11370. <div
  11371. style="
  11372. display: flex;
  11373. align-items: center;
  11374. justify-content: space-between;
  11375. "
  11376. >
  11377. <span>表格内容</span>
  11378. <el-button type="primary" size="small" @click="returnTableText"
  11379. >还原模板</el-button
  11380. >
  11381. </div>
  11382. <Table
  11383. v-model="tableJson.text"
  11384. @change="change"
  11385. v-if="dialogVisibleTable"
  11386. ></Table>
  11387. </el-form>
  11388. <span slot="footer" class="dialog-footer">
  11389. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11390. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11391. </span>
  11392. </el-dialog>
  11393. <el-dialog
  11394. title="表格"
  11395. :visible.sync="dialogVisibleTableTeacher"
  11396. :append-to-body="true"
  11397. width="95%"
  11398. :before-close="handleClose"
  11399. class="dialog_diy"
  11400. >
  11401. <el-form>
  11402. <div class="w_name">
  11403. 学生姓名:<span>{{ sStudent.student }}</span>
  11404. </div>
  11405. <div>表格内容</div>
  11406. <Table
  11407. v-model="tableJson.text"
  11408. @change="change"
  11409. v-if="dialogVisibleTableTeacher"
  11410. ></Table>
  11411. </el-form>
  11412. <span slot="footer" class="dialog-footer">
  11413. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11414. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11415. </span>
  11416. </el-dialog>
  11417. <el-dialog
  11418. title="文档"
  11419. :visible.sync="dialogVisibleWord"
  11420. :append-to-body="true"
  11421. width="95%"
  11422. :before-close="handleClose"
  11423. class="dialog_diy"
  11424. >
  11425. <el-form>
  11426. <div
  11427. style="
  11428. display: flex;
  11429. align-items: center;
  11430. justify-content: space-between;
  11431. "
  11432. >
  11433. <span>文档内容</span>
  11434. <el-button type="primary" size="small" @click="returnWordText"
  11435. >还原模板</el-button
  11436. >
  11437. </div>
  11438. <editor-bar
  11439. v-model="wordJson.text"
  11440. v-if="dialogVisibleWord"
  11441. ></editor-bar>
  11442. </el-form>
  11443. <span slot="footer" class="dialog-footer">
  11444. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11445. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11446. </span>
  11447. </el-dialog>
  11448. <el-dialog
  11449. title="文档"
  11450. :visible.sync="dialogVisibleWordTeacher"
  11451. :append-to-body="true"
  11452. width="95%"
  11453. :before-close="handleClose"
  11454. class="dialog_diy"
  11455. >
  11456. <el-form>
  11457. <div class="w_name">
  11458. 学生姓名:<span>{{ sStudent.student }}</span>
  11459. </div>
  11460. <div>文档内容</div>
  11461. <editor-bar
  11462. v-model="wordJson.text"
  11463. v-if="dialogVisibleWordTeacher"
  11464. ></editor-bar>
  11465. </el-form>
  11466. <span slot="footer" class="dialog-footer">
  11467. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11468. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11469. </span>
  11470. </el-dialog>
  11471. <el-dialog
  11472. title="表格"
  11473. :visible.sync="dialogVisibleTable2"
  11474. :append-to-body="true"
  11475. width="95%"
  11476. :before-close="handleClose"
  11477. class="dialog_diy"
  11478. >
  11479. <el-form>
  11480. <div class="cont" v-html="tableJson.text"></div>
  11481. </el-form>
  11482. <span slot="footer" class="dialog-footer">
  11483. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11484. </span>
  11485. </el-dialog>
  11486. <el-dialog
  11487. title="文档"
  11488. :visible.sync="dialogVisibleTable3"
  11489. :append-to-body="true"
  11490. width="95%"
  11491. :before-close="handleClose"
  11492. class="dialog_diy"
  11493. >
  11494. <el-form>
  11495. <div class="cont" v-html="tableJson.text"></div>
  11496. </el-form>
  11497. <span slot="footer" class="dialog-footer">
  11498. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11499. </span>
  11500. </el-dialog>
  11501. <el-dialog
  11502. title="分组设置"
  11503. :visible.sync="dialogVisibleGroup"
  11504. :append-to-body="true"
  11505. width="95%"
  11506. :before-close="handleClose"
  11507. class="dialog_diy"
  11508. >
  11509. <div v-if="dialogVisibleGroup">
  11510. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11511. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11512. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11513. </div>
  11514. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11515. @click="lockChair">
  11516. 锁定位置
  11517. </div>
  11518. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11519. 解锁位置
  11520. </div> -->
  11521. <div class="group_switch">
  11522. <span>开放选座</span>
  11523. <el-switch
  11524. v-model="islock"
  11525. active-text=""
  11526. class="switchCss"
  11527. @change="lockChair"
  11528. ></el-switch>
  11529. </div>
  11530. <div
  11531. type="primary"
  11532. @click="updateGroup"
  11533. class="returnBtn"
  11534. style="background-color: #225bc7"
  11535. >
  11536. 分组设置
  11537. </div>
  11538. </div>
  11539. <div>
  11540. <div
  11541. class="g_d_box"
  11542. v-if="groupJson.group && groupStudent[toolindex]"
  11543. >
  11544. <div
  11545. class="g_d_group"
  11546. v-for="(g, gindex) in groupJson.group"
  11547. :key="gindex"
  11548. >
  11549. <div class="g_d_group_chair">
  11550. <div v-if="groupJson.number > 1">
  11551. <span
  11552. :class="{
  11553. isChair:
  11554. groupStudent[toolindex][gindex] &&
  11555. groupStudent[toolindex][gindex][0],
  11556. updateChair:
  11557. courseDetail.userid == userid &&
  11558. groupStudent[toolindex][gindex] &&
  11559. groupStudent[toolindex][gindex][0] &&
  11560. groupJson.islock == 2,
  11561. }"
  11562. ><span
  11563. class="updateChairBtn"
  11564. @click="
  11565. updateGroupChair(
  11566. groupStudent[toolindex][gindex] &&
  11567. groupStudent[toolindex][gindex][0]
  11568. )
  11569. "
  11570. >修改</span
  11571. ></span
  11572. ><span>{{
  11573. groupStudent[toolindex][gindex] &&
  11574. groupStudent[toolindex][gindex][0]
  11575. ? groupStudent[toolindex][gindex] &&
  11576. groupStudent[toolindex][gindex][0].name
  11577. : "空位置"
  11578. }}</span>
  11579. </div>
  11580. <div v-if="groupJson.number > 4">
  11581. <span
  11582. :class="{
  11583. isChair:
  11584. groupStudent[toolindex][gindex] &&
  11585. groupStudent[toolindex][gindex][4],
  11586. updateChair:
  11587. courseDetail.userid == userid &&
  11588. groupStudent[toolindex][gindex] &&
  11589. groupStudent[toolindex][gindex][4] &&
  11590. groupJson.islock == 2,
  11591. }"
  11592. ><span
  11593. class="updateChairBtn"
  11594. @click="
  11595. updateGroupChair(
  11596. groupStudent[toolindex][gindex] &&
  11597. groupStudent[toolindex][gindex][4]
  11598. )
  11599. "
  11600. >修改</span
  11601. ></span
  11602. ><span>{{
  11603. groupStudent[toolindex][gindex] &&
  11604. groupStudent[toolindex][gindex][4]
  11605. ? groupStudent[toolindex][gindex] &&
  11606. groupStudent[toolindex][gindex][4].name
  11607. : "空位置"
  11608. }}</span>
  11609. </div>
  11610. <div v-if="groupJson.number > 8">
  11611. <span
  11612. :class="{
  11613. isChair:
  11614. groupStudent[toolindex][gindex] &&
  11615. groupStudent[toolindex][gindex][8],
  11616. updateChair:
  11617. courseDetail.userid == userid &&
  11618. groupStudent[toolindex][gindex] &&
  11619. groupStudent[toolindex][gindex][8] &&
  11620. groupJson.islock == 2,
  11621. }"
  11622. ><span
  11623. class="updateChairBtn"
  11624. @click="
  11625. updateGroupChair(
  11626. groupStudent[toolindex][gindex] &&
  11627. groupStudent[toolindex][gindex][8]
  11628. )
  11629. "
  11630. >修改</span
  11631. ></span
  11632. ><span>{{
  11633. groupStudent[toolindex][gindex] &&
  11634. groupStudent[toolindex][gindex][8]
  11635. ? groupStudent[toolindex][gindex] &&
  11636. groupStudent[toolindex][gindex][8].name
  11637. : "空位置"
  11638. }}</span>
  11639. </div>
  11640. </div>
  11641. <div class="g_d_group_tableBox">
  11642. <div class="g_d_group_chair2">
  11643. <div v-if="groupJson.number > 2">
  11644. <span
  11645. :class="{
  11646. isChair:
  11647. groupStudent[toolindex][gindex] &&
  11648. groupStudent[toolindex][gindex][2],
  11649. updateChair:
  11650. courseDetail.userid == userid &&
  11651. groupStudent[toolindex][gindex] &&
  11652. groupStudent[toolindex][gindex][2] &&
  11653. groupJson.islock == 2,
  11654. }"
  11655. ><span
  11656. class="updateChairBtn"
  11657. @click="
  11658. updateGroupChair(
  11659. groupStudent[toolindex][gindex] &&
  11660. groupStudent[toolindex][gindex][2]
  11661. )
  11662. "
  11663. >修改</span
  11664. ></span
  11665. ><span>{{
  11666. groupStudent[toolindex][gindex] &&
  11667. groupStudent[toolindex][gindex][2]
  11668. ? groupStudent[toolindex][gindex] &&
  11669. groupStudent[toolindex][gindex][2].name
  11670. : "空位置"
  11671. }}</span>
  11672. </div>
  11673. <div v-if="groupJson.number > 6">
  11674. <span
  11675. :class="{
  11676. isChair:
  11677. groupStudent[toolindex][gindex] &&
  11678. groupStudent[toolindex][gindex][6],
  11679. updateChair:
  11680. courseDetail.userid == userid &&
  11681. groupStudent[toolindex][gindex] &&
  11682. groupStudent[toolindex][gindex][6] &&
  11683. groupJson.islock == 2,
  11684. }"
  11685. ><span
  11686. class="updateChairBtn"
  11687. @click="
  11688. updateGroupChair(
  11689. groupStudent[toolindex][gindex] &&
  11690. groupStudent[toolindex][gindex][6]
  11691. )
  11692. "
  11693. >修改</span
  11694. ></span
  11695. ><span>{{
  11696. groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][6]
  11698. ? groupStudent[toolindex][gindex] &&
  11699. groupStudent[toolindex][gindex][6].name
  11700. : "空位置"
  11701. }}</span>
  11702. </div>
  11703. </div>
  11704. <div class="g_d_group_table">
  11705. <div>
  11706. {{ g.name }}
  11707. </div>
  11708. <div>
  11709. <div
  11710. v-if="
  11711. courseDetail.userid == userid && groupJson.islock == 2
  11712. "
  11713. @click="deleteGroupChair(gindex)"
  11714. >
  11715. 移除组员
  11716. </div>
  11717. <div
  11718. @click="selectGroup(gindex)"
  11719. v-else-if="
  11720. groupStudentUid[toolindex] &&
  11721. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11722. "
  11723. >
  11724. 加入分组
  11725. </div>
  11726. <div
  11727. @click="
  11728. exitGroup(
  11729. groupStudent[toolindex][gindex] &&
  11730. groupStudent[toolindex][gindex][
  11731. groupStudentUid[toolindex][gindex].indexOf(userid)
  11732. ].id
  11733. )
  11734. "
  11735. v-else-if="
  11736. groupStudentUid[toolindex] &&
  11737. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11738. "
  11739. >
  11740. 退出分组
  11741. </div>
  11742. </div>
  11743. </div>
  11744. <div class="g_d_group_chair2">
  11745. <div v-if="groupJson.number > 3">
  11746. <span
  11747. :class="{
  11748. isChair:
  11749. groupStudent[toolindex][gindex] &&
  11750. groupStudent[toolindex][gindex][3],
  11751. updateChair:
  11752. courseDetail.userid == userid &&
  11753. groupStudent[toolindex][gindex] &&
  11754. groupStudent[toolindex][gindex][3] &&
  11755. groupJson.islock == 2,
  11756. }"
  11757. ><span
  11758. class="updateChairBtn"
  11759. @click="
  11760. updateGroupChair(
  11761. groupStudent[toolindex][gindex] &&
  11762. groupStudent[toolindex][gindex][3]
  11763. )
  11764. "
  11765. >修改</span
  11766. ></span
  11767. ><span>{{
  11768. groupStudent[toolindex][gindex] &&
  11769. groupStudent[toolindex][gindex][3]
  11770. ? groupStudent[toolindex][gindex] &&
  11771. groupStudent[toolindex][gindex][3].name
  11772. : "空位置"
  11773. }}</span>
  11774. </div>
  11775. <div v-if="groupJson.number > 7">
  11776. <span
  11777. :class="{
  11778. isChair:
  11779. groupStudent[toolindex][gindex] &&
  11780. groupStudent[toolindex][gindex][7],
  11781. updateChair:
  11782. courseDetail.userid == userid &&
  11783. groupStudent[toolindex][gindex] &&
  11784. groupStudent[toolindex][gindex][7] &&
  11785. groupJson.islock == 2,
  11786. }"
  11787. ><span
  11788. class="updateChairBtn"
  11789. @click="
  11790. updateGroupChair(
  11791. groupStudent[toolindex][gindex] &&
  11792. groupStudent[toolindex][gindex][7]
  11793. )
  11794. "
  11795. >修改</span
  11796. ></span
  11797. ><span>{{
  11798. groupStudent[toolindex][gindex] &&
  11799. groupStudent[toolindex][gindex][7]
  11800. ? groupStudent[toolindex][gindex] &&
  11801. groupStudent[toolindex][gindex][7].name
  11802. : "空位置"
  11803. }}</span>
  11804. </div>
  11805. </div>
  11806. </div>
  11807. <div class="g_d_group_chair">
  11808. <div v-if="groupJson.number > 1">
  11809. <span
  11810. :class="{
  11811. isChair:
  11812. groupStudent[toolindex][gindex] &&
  11813. groupStudent[toolindex][gindex][1],
  11814. updateChair:
  11815. courseDetail.userid == userid &&
  11816. groupStudent[toolindex][gindex] &&
  11817. groupStudent[toolindex][gindex][1] &&
  11818. groupJson.islock == 2,
  11819. }"
  11820. ><span
  11821. class="updateChairBtn"
  11822. @click="
  11823. updateGroupChair(
  11824. groupStudent[toolindex][gindex] &&
  11825. groupStudent[toolindex][gindex][1]
  11826. )
  11827. "
  11828. >修改</span
  11829. ></span
  11830. ><span>{{
  11831. groupStudent[toolindex][gindex] &&
  11832. groupStudent[toolindex][gindex][1]
  11833. ? groupStudent[toolindex][gindex] &&
  11834. groupStudent[toolindex][gindex][1].name
  11835. : "空位置"
  11836. }}</span>
  11837. </div>
  11838. <div v-if="groupJson.number > 5">
  11839. <span
  11840. :class="{
  11841. isChair:
  11842. groupStudent[toolindex][gindex] &&
  11843. groupStudent[toolindex][gindex][5],
  11844. updateChair:
  11845. courseDetail.userid == userid &&
  11846. groupStudent[toolindex][gindex] &&
  11847. groupStudent[toolindex][gindex][5] &&
  11848. groupJson.islock == 2,
  11849. }"
  11850. ><span
  11851. class="updateChairBtn"
  11852. @click="
  11853. updateGroupChair(
  11854. groupStudent[toolindex][gindex] &&
  11855. groupStudent[toolindex][gindex][5]
  11856. )
  11857. "
  11858. >修改</span
  11859. ></span
  11860. ><span>{{
  11861. groupStudent[toolindex][gindex] &&
  11862. groupStudent[toolindex][gindex][5]
  11863. ? groupStudent[toolindex][gindex] &&
  11864. groupStudent[toolindex][gindex][5].name
  11865. : "空位置"
  11866. }}</span>
  11867. </div>
  11868. <div v-if="groupJson.number > 9">
  11869. <span
  11870. :class="{
  11871. isChair:
  11872. groupStudent[toolindex][gindex] &&
  11873. groupStudent[toolindex][gindex][9],
  11874. updateChair:
  11875. courseDetail.userid == userid &&
  11876. groupStudent[toolindex][gindex] &&
  11877. groupStudent[toolindex][gindex][9] &&
  11878. groupJson.islock == 2,
  11879. }"
  11880. ><span
  11881. class="updateChairBtn"
  11882. @click="
  11883. updateGroupChair(
  11884. groupStudent[toolindex][gindex] &&
  11885. groupStudent[toolindex][gindex][9]
  11886. )
  11887. "
  11888. >修改</span
  11889. ></span
  11890. ><span>{{
  11891. groupStudent[toolindex][gindex] &&
  11892. groupStudent[toolindex][gindex][9]
  11893. ? groupStudent[toolindex][gindex] &&
  11894. groupStudent[toolindex][gindex][9].name
  11895. : "空位置"
  11896. }}</span>
  11897. </div>
  11898. </div>
  11899. </div>
  11900. </div>
  11901. </div>
  11902. </div>
  11903. <span slot="footer" class="dialog-footer">
  11904. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11905. </span>
  11906. </el-dialog>
  11907. <el-dialog
  11908. title="分组设置"
  11909. :visible.sync="dialogVisibleGroup2"
  11910. :append-to-body="true"
  11911. width="650px"
  11912. :before-close="handleClose"
  11913. class="dialog_diy"
  11914. >
  11915. <div class="groupBox">
  11916. <div v-if="groupJson2.group" class="groupContent">
  11917. <div class="groupTitle">请设置小组数量及名称</div>
  11918. <div
  11919. v-for="(item, index) in groupJson2.group"
  11920. :key="index"
  11921. class="groupName"
  11922. >
  11923. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11924. <el-input
  11925. v-model="item.name"
  11926. placeholder="请输入名称..."
  11927. style="width: 250px"
  11928. ></el-input>
  11929. <!-- <div class="groupBtn">
  11930. <el-button type="primary" size="small" @click="addGroup(index)">
  11931. 添加</el-button>
  11932. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11933. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11934. </div> -->
  11935. </div>
  11936. </div>
  11937. <div class="groupContent">
  11938. <div class="groupTitle">请设置每组人数</div>
  11939. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11940. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11941. <el-input
  11942. v-model="groupJson2.number"
  11943. style="width: 150px"
  11944. placeholder="请输入2-10的数字"
  11945. @change="numberPan"
  11946. ></el-input>
  11947. </div>
  11948. </div>
  11949. <span slot="footer" class="dialog-footer">
  11950. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11951. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11952. </span>
  11953. </el-dialog>
  11954. <el-dialog
  11955. title="作业提交"
  11956. :visible.sync="dialogVisibleGroupWork"
  11957. :append-to-body="true"
  11958. width="500px"
  11959. :before-close="handleClose"
  11960. class="dialog_change"
  11961. >
  11962. <div class="marginT">
  11963. <div>上传文件</div>
  11964. <div
  11965. class="chapter_add"
  11966. @click="addImg($event)"
  11967. v-if="studyJuri[0].cover.length == 0"
  11968. >
  11969. <div class="up_photo">
  11970. <img src="../assets/icon/uploadImg.png" alt />
  11971. </div>
  11972. <!-- <input
  11973. type="file"
  11974. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11975. style="display: none"
  11976. @change="beforeUpload1($event, 1)"
  11977. /> -->
  11978. <input
  11979. type="file"
  11980. accept="*"
  11981. style="display: none"
  11982. @change="beforeUpload1($event, 1)"
  11983. />
  11984. </div>
  11985. <!-- capture="camera" -->
  11986. <div
  11987. class="chapter_add"
  11988. style="
  11989. display: flex;
  11990. width: 100%;
  11991. flex-direction: row;
  11992. flex-wrap: wrap;
  11993. justify-content: flex-start;
  11994. padding: 15px 0;
  11995. "
  11996. v-if="studyJuri[0].cover.length > 0"
  11997. >
  11998. <div class="upCover">
  11999. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12000. <img :src="word" alt v-else-if="fileType == 1" />
  12001. <img :src="video" alt v-else-if="fileType == 2" />
  12002. <img :src="word2" alt v-else-if="fileType == 3" />
  12003. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12004. <div class="deleteWord" @click="clean(1)">
  12005. <img src="../assets/icon/deleteWorks.png" alt />
  12006. </div>
  12007. </div>
  12008. </div>
  12009. </div>
  12010. <div
  12011. class="upload_send"
  12012. @click="addCourseWorks2(taskCount)"
  12013. v-if="!proVisible"
  12014. >
  12015. 提交
  12016. </div>
  12017. </el-dialog>
  12018. <el-dialog
  12019. title="修改分组"
  12020. :visible.sync="dialogVisibleUpdateGroup"
  12021. :append-to-body="true"
  12022. width="350px"
  12023. :before-close="handleClose"
  12024. class="dialog_diy"
  12025. >
  12026. <div>
  12027. <h2>
  12028. {{ this.updateGroupUser.name }}
  12029. </h2>
  12030. <div style="color: rgb(171 171 171); margin-top: 10px">
  12031. 请选择要进入的分组
  12032. </div>
  12033. <el-radio-group v-model="checkChair">
  12034. <el-radio
  12035. style="display: block; margin-top: 20px"
  12036. v-for="(item, index) in updateGroupArray"
  12037. :label="item.label"
  12038. :key="index"
  12039. >{{ item.name }}</el-radio
  12040. >
  12041. </el-radio-group>
  12042. </div>
  12043. <span slot="footer" class="dialog-footer">
  12044. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12045. <el-button type="primary" @click="updateChair">确定</el-button>
  12046. </span>
  12047. </el-dialog>
  12048. <el-dialog
  12049. title="移除组员"
  12050. :visible.sync="dialogVisibleDeleteGroup"
  12051. :append-to-body="true"
  12052. width="350px"
  12053. :before-close="handleClose"
  12054. class="dialog_diy"
  12055. >
  12056. <div>
  12057. <h2>
  12058. {{ this.deleteGroupArray.name }}
  12059. </h2>
  12060. <div style="color: rgb(171 171 171); margin-top: 10px">
  12061. 请选择要删除的组员
  12062. </div>
  12063. <el-checkbox-group v-model="checkDeleteGroup">
  12064. <el-checkbox
  12065. style="display: flex; margin-top: 20px"
  12066. v-for="(item, index) in deleteGroupUser"
  12067. :label="item.userid"
  12068. :key="index"
  12069. >{{ item.name }}</el-checkbox
  12070. >
  12071. </el-checkbox-group>
  12072. </div>
  12073. <span slot="footer" class="dialog-footer">
  12074. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12075. <el-button type="primary" @click="deleteChair">确定</el-button>
  12076. </span>
  12077. </el-dialog>
  12078. <el-dialog
  12079. title="批量上传"
  12080. :visible.sync="dialogVisiblePl"
  12081. :append-to-body="true"
  12082. width="700px"
  12083. :before-close="handleClose"
  12084. class="dialog_change"
  12085. >
  12086. <div class="marginT">
  12087. <div class="plworkBox">
  12088. <div
  12089. class="chapter_add"
  12090. style="
  12091. display: flex;
  12092. width: 150px;
  12093. flex-direction: row;
  12094. flex-wrap: wrap;
  12095. justify-content: flex-start;
  12096. margin: 0 10px 10px 0;
  12097. "
  12098. v-for="(item, index) in plworkFile"
  12099. :key="index"
  12100. >
  12101. <div class="upCover2">
  12102. <img
  12103. :src="item.url"
  12104. alt
  12105. v-if="item.fileType == 1"
  12106. @click="previewImg(item.url)"
  12107. />
  12108. <img :src="word" alt v-else-if="item.fileType == 4" />
  12109. <img :src="video" alt v-else />
  12110. <!-- <span class="picName">{{ item.name }}</span> -->
  12111. <!-- <el-input
  12112. v-model="item.username"
  12113. placeholder="请输入学生名字"
  12114. style="margin-top: 10px"
  12115. ></el-input> -->
  12116. <div
  12117. class="pl_select_box"
  12118. @click="
  12119. getUpdateMore(true, checkUpload(), item.username, index)
  12120. "
  12121. >
  12122. {{ getSName(item.username) }}
  12123. </div>
  12124. <!-- <el-select
  12125. style="margin-top: 10px"
  12126. v-model="item.username"
  12127. filterable
  12128. allow-create
  12129. placeholder="请选择学生"
  12130. >
  12131. <el-option
  12132. v-for="item1 in checkUpload()"
  12133. :key="item1.userid"
  12134. :label="item1.name ? item1.name : item1.username"
  12135. :value="item1.userid"
  12136. >
  12137. </el-option>
  12138. </el-select> -->
  12139. <div class="deleteWord" @click="clean2(index)">
  12140. <img src="../assets/icon/deleteWorks.png" alt />
  12141. </div>
  12142. </div>
  12143. </div>
  12144. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12145. <div class="up_photo2">
  12146. <img src="../assets/icon/plwork.png" alt />
  12147. <span>点击上传文件</span>
  12148. </div>
  12149. <input
  12150. type="file"
  12151. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12152. multiple="multiple"
  12153. style="display: none"
  12154. @change="beforeUpload3($event, 6)"
  12155. />
  12156. </div>
  12157. </div>
  12158. </div>
  12159. <!-- capture="camera" -->
  12160. <div
  12161. class="upload_send"
  12162. @click="addCourseWorksPl(taskCount)"
  12163. v-if="!proVisible2"
  12164. >
  12165. 提交
  12166. </div>
  12167. </el-dialog>
  12168. <el-dialog
  12169. title="修改名称"
  12170. :visible.sync="dialogVisibleSname"
  12171. width="500px"
  12172. :before-close="handleClose"
  12173. class="dialog_diy"
  12174. center
  12175. >
  12176. <div
  12177. style="
  12178. text-align: center;
  12179. display: flex;
  12180. align-items: center;
  12181. justify-content: center;
  12182. "
  12183. >
  12184. <span class="tian1">名称</span>
  12185. <div
  12186. class="pl_select_box"
  12187. style="margin-left: 10px; width: 200px"
  12188. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12189. >
  12190. {{ getSName(worksSName) }}
  12191. </div>
  12192. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12193. placeholder="请选择学生">
  12194. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12195. :value="item.userid">
  12196. </el-option>
  12197. </el-select> -->
  12198. <!-- <el-input
  12199. v-model="worksSName"
  12200. style="width: 250px; margin: 15px 0px"
  12201. ></el-input> -->
  12202. </div>
  12203. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12204. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12205. <el-button type="primary" @click="updateName">确 定</el-button>
  12206. </span>
  12207. </el-dialog>
  12208. <el-dialog
  12209. title="英语写作"
  12210. :visible.sync="engDialogVisible"
  12211. :append-to-body="true"
  12212. width="800px"
  12213. :before-close="handleClose"
  12214. class="dialog_diy"
  12215. >
  12216. <onlineWrite
  12217. v-if="engDialogVisible"
  12218. :englishList="englishList"
  12219. :myAnswerList1="myAnswerList1"
  12220. :userid="userid"
  12221. ref="engJson"
  12222. ></onlineWrite>
  12223. <span slot="footer" class="dialog-footer">
  12224. <el-button @click="engDialogVisible = false">取 消</el-button>
  12225. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12226. </span>
  12227. </el-dialog>
  12228. <el-dialog
  12229. title="英语写作"
  12230. :visible.sync="engUpdateDialogVisible"
  12231. :append-to-body="true"
  12232. width="800px"
  12233. :before-close="handleClose"
  12234. class="dialog_diy fullStyle"
  12235. >
  12236. <div class="engUpBox">
  12237. <div class="engUpTop">
  12238. <div class="engTitle">
  12239. <div>作文题目:</div>
  12240. <div>{{ englishList1.engTitle }}</div>
  12241. </div>
  12242. <div class="engText">
  12243. <div>作文内容:</div>
  12244. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12245. </div>
  12246. </div>
  12247. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12248. <div class="oldBox">
  12249. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12250. <div class="oldText">
  12251. <div class="detailBox">
  12252. <div class="oldDetail">
  12253. <div>标题:</div>
  12254. <div>{{ oldEnglishJson.engTitle }} </div>
  12255. </div>
  12256. <div class="oldDetail1">
  12257. <div>正文:</div>
  12258. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12259. </div>
  12260. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12261. <div>图片:</div>
  12262. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12263. </div>
  12264. </div>
  12265. </div>
  12266. </div>
  12267. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12268. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12269. <div class="oldText">
  12270. <div class="detailBox" style="position: relative;">
  12271. <div class="oldDetail">
  12272. <div>标题:</div>
  12273. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12274. <div v-else v-html="newEnglishList.engTitle"></div>
  12275. </div>
  12276. <div class="oldDetail">
  12277. <div>正文:</div>
  12278. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12279. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12280. </div>
  12281. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12282. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12283. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12284. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12285. </div>
  12286. </div>
  12287. </div>
  12288. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12289. <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">
  12290. <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>
  12291. <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>
  12292. </div>
  12293. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12294. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12295. <div class="detailBox" style="position: relative;">
  12296. <div class="oldDetail">
  12297. <div>标题:</div>
  12298. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12299. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12300. </div>
  12301. <div class="oldDetail">
  12302. <div>正文:</div>
  12303. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12304. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12305. </div>
  12306. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12307. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12308. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12309. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12310. </div>
  12311. </div>
  12312. <div class="oldText" v-else-if="newEngIndex == -1">
  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 v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12323. </div>
  12324. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12325. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12326. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12327. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12328. </div>
  12329. </div>
  12330. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12331. <div class="detailBox" style="position: relative;">
  12332. <div class="oldDetail">
  12333. <div>标题:</div>
  12334. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12335. <div v-else>
  12336. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12337. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12338. </div>
  12339. </div>
  12340. <div class="oldDetail">
  12341. <div>正文:</div>
  12342. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12343. <div v-else>
  12344. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12345. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12346. </div>
  12347. </div>
  12348. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12349. <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>
  12350. <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>
  12351. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12352. </div>
  12353. </div>
  12354. </div>
  12355. </div>
  12356. </div>
  12357. <span slot="footer" class="dialog-footer">
  12358. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12359. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12360. </span>
  12361. </el-dialog>
  12362. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12363. <interVideo
  12364. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12365. :videoJson="videoJson"
  12366. :userid="userid"
  12367. :id="id"
  12368. :courseType="courseType"
  12369. :taskCount="taskCount"
  12370. :toolindex="toolindex"
  12371. :videoType="videoType"
  12372. ></interVideo>
  12373. <UpdateMore
  12374. :dialogVisibleMember.sync="dialogVisibleMember"
  12375. :cList="uploadStudentJuri"
  12376. :userid="userid"
  12377. :searchTN="worksSName2"
  12378. @setPlname="setPlname"
  12379. ></UpdateMore>
  12380. <!-- <wordCloud
  12381. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12382. :data="wordCloudData"
  12383. ></wordCloud> -->
  12384. <el-dialog
  12385. title="词云"
  12386. :visible.sync="dialogVisibleWordCloud"
  12387. width="30%"
  12388. class="dialog_diy"
  12389. :before-close="handleClose">
  12390. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12391. </el-dialog>
  12392. <el-dialog
  12393. title="挑人"
  12394. :visible.sync="dialogVisiblePickPeople"
  12395. width="650px"
  12396. :before-close="handleClose"
  12397. class="dialog_diy"
  12398. center
  12399. >
  12400. <div class="pick_box">
  12401. <div
  12402. class="noWorksName"
  12403. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12404. v-for="(item, index) in uploadStudentJuri"
  12405. :key="index"
  12406. @click="pickStudent(item)"
  12407. >
  12408. {{ item.name }}
  12409. </div>
  12410. </div>
  12411. </el-dialog>
  12412. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12413. :englishVoiceJson='englishVoiceJson'
  12414. :userid="userid"
  12415. :id="id"
  12416. :courseType="courseType"
  12417. :taskCount="taskCount"
  12418. :toolindex="toolindex"
  12419. @selectSWorks="selectSWorks"
  12420. @selectStudent="selectStudent"
  12421. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12422. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12423. :userid="userid"
  12424. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12425. :commentDetail="commentDetail"
  12426. :courseDetail="courseDetail"
  12427. :wScore="wScore"
  12428. :scoreDetail="scoreDetail"
  12429. @selectSWorks="selectSWorks"
  12430. @selectStudent="selectStudent"></checkEnglishVoice>
  12431. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12432. <choseWorksDetailDialog
  12433. ref="choseWorksDetailDialogRef"
  12434. :worksStudentData="worksStudent"
  12435. :noWorksSData="noWorksS"
  12436. :chapInfoListData="chapInfoList"
  12437. :courseType="courseType"
  12438. :taskCount="taskCount"
  12439. :tType="tType"
  12440. :sIsOpen="sIsOpen"
  12441. :courseDetail="courseDetail"
  12442. :groupStudent2="groupStudent"
  12443. :groupStudentUid2="groupStudentUid"
  12444. :oid="oid"
  12445. :org="org"
  12446. @getCourseDetail="getCourseDetail"
  12447. @selectSLook="selectSLook"
  12448. @selectSWorks="selectSWorks"
  12449. @selectStudent="selectStudent"
  12450. @deleteWorks="deleteWorks"
  12451. @openTools="openTools"
  12452. @openWord="openWord"
  12453. @openScore="openScore"
  12454. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12455. />
  12456. <el-dialog
  12457. :visible.sync="confirmOpenDig"
  12458. width="500px"
  12459. :modal="false"
  12460. class="confirmOpenDigCss dialog_diyCopy"
  12461. :before-close="handleClose">
  12462. <div style="display: flex;align-items: center;">
  12463. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12464. <span>“{{ courseDetail.title }}”开课啦</span>
  12465. </div>
  12466. <div style="margin: 20px 0 35px;">
  12467. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12468. <div>要认真听讲哦~</div>
  12469. </div>
  12470. <div style="text-align: center;">
  12471. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12472. </div>
  12473. </el-dialog>
  12474. <appStoreC ref="appStoreC"
  12475. :sStudent="sStudent"
  12476. :courseType="courseType"
  12477. :taskCount="taskCount"
  12478. :toolindex="toolindex"
  12479. @selectSWorks="selectSWorks"
  12480. @selectStudent="selectStudent"
  12481. ></appStoreC>
  12482. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12483. </div>
  12484. </template>
  12485. <script>
  12486. import "../common/aws-sdk-2.235.1.min.js";
  12487. // import pdf from "./components/pdf3";
  12488. import pdf from "./components/vpdf";
  12489. import AskStatic from "./components/askStatic";
  12490. import AskStatic2 from "./components/askStatic2";
  12491. import AnswerData2 from "./components/answerData2";
  12492. import AnswerData from "./components/answerData";
  12493. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  12494. import EditorBar from "./tools/wangEnduit.vue";
  12495. import Table from "./tools/table.vue";
  12496. import Time from "./tools/time.vue";
  12497. import Mind from "./tools/jsmind.vue";
  12498. import Sunburst from "./tools/sunburst";
  12499. import SeeBoard from "./tools/seeBoard";
  12500. import * as imageConversion from "image-conversion";
  12501. import Audio from "./components/audio.vue";
  12502. import ImgDraw from "./tools/imgDraw/imgDraw";
  12503. import { Empty } from "element-ui";
  12504. import RecordRTC from "recordrtc";
  12505. import interVideo from "./interVideo/index.vue";
  12506. import UpdateMore from "./updateMore/updateMore.vue";
  12507. import wordCloud from "./wordCloud/index.vue";
  12508. import axios from "axios";
  12509. import JSZip from "jszip";
  12510. import FileSaver from "file-saver";
  12511. import onlineWrite from "./components/onlineWrite";
  12512. import englishEva from "./components/englishEva";
  12513. import * as Diff from 'diff'
  12514. import EnglishVoice from './EnglishVoice2/index.vue'
  12515. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12516. import correctText from './components/correctText.vue'
  12517. import scoreItem from './scoreList/scoreItem.vue'
  12518. import scoreZong from './scoreZong/index.vue'
  12519. import classRoomHelper from './classRoomHelper/index.vue'
  12520. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  12521. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12522. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12523. import { v4 as uuidv4 } from "uuid";
  12524. var OpenCC = require("opencc-js");
  12525. import choseWordCloud from './components/choseWordCloud.vue'
  12526. import appStoreC from "./components/appStoreC.vue";
  12527. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12528. import { myMixin } from "@/mixins/mixin.js"
  12529. import { tools as toolsList } from "@/common/tools2.js";
  12530. import katex from 'katex'
  12531. import 'katex/dist/katex.min.css'
  12532. let converter = OpenCC.Converter({
  12533. from: "hk",
  12534. to: "cn"
  12535. });
  12536. const getFile = (url) => {
  12537. return new Promise((resolve, reject) => {
  12538. var credentials = {
  12539. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12540. secretAccessKey: "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",
  12541. }; //秘钥形式的登录上传
  12542. window.AWS.config.update(credentials);
  12543. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12544. let url2 = url;
  12545. let _url2 = "";
  12546. if (
  12547. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12548. ) {
  12549. _url2 = url2.split(
  12550. "https://view.officeapps.live.com/op/view.aspx?src="
  12551. )[1];
  12552. } else {
  12553. _url2 = url2;
  12554. }
  12555. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12556. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12557. var params = {
  12558. Bucket: "ccrb",
  12559. Key: name
  12560. };
  12561. s3.getObject(params, function (err, data) {
  12562. if (err) {
  12563. console.log(err, err.stack)
  12564. resolve({ data: 1 });
  12565. }else {
  12566. resolve({ data: data.Body });
  12567. console.log(data);
  12568. } // sxuccessful response
  12569. });
  12570. // axios({
  12571. // method: "get",
  12572. // url,
  12573. // responseType: "blob",
  12574. // })
  12575. // .then((data) => {
  12576. // resolve({ data: data.data });
  12577. // })
  12578. // .catch((error) => {
  12579. // resolve({ data: 1 });
  12580. // // reject(error.toString());
  12581. // });
  12582. });
  12583. };
  12584. export default {
  12585. mixins: [ myMixin ],
  12586. components: {
  12587. choseWordCloud,
  12588. EditorBar,
  12589. Time,
  12590. pdf,
  12591. AskStatic,
  12592. AskStatic2,
  12593. Mind,
  12594. Sunburst,
  12595. SeeBoard,
  12596. AnswerData2,
  12597. AnswerData,
  12598. sortToolWorkShow,
  12599. Audio,
  12600. ImgDraw,
  12601. Table,
  12602. interVideo,
  12603. UpdateMore,
  12604. wordCloud,
  12605. onlineWrite,
  12606. englishEva,
  12607. EnglishVoice,
  12608. checkEnglishVoice,
  12609. correctText,
  12610. scoreItem,
  12611. classRoomHelper,
  12612. scoreZong,
  12613. statisticalAnalysis,
  12614. choseWorksDetailDialog,
  12615. appStoreC,
  12616. cocoFlowDia,
  12617. studentClassRoomHelper
  12618. },
  12619. data() {
  12620. return {
  12621. // 是否允许学生查看内容资料 2不可以 1可以
  12622. IsStulook:false,
  12623. homeWorkLoading:false,
  12624. wordCloudKey: 0,
  12625. bg: null,
  12626. drawShow: false,
  12627. dialogVisible: false,
  12628. dialogVisiblePl: false,
  12629. commentDialogVisible: false,
  12630. dialogVisibleMember: false,
  12631. dialogVisibleWordCloud: false,
  12632. videoVisible: false,
  12633. isStar: false,
  12634. studentEvalDialogVisible: false,
  12635. studentEvalDialogVisibleTeacher: false,
  12636. dialogVisibleSelect: false,
  12637. dialogVisibleSelectTeacher: false,
  12638. dialogVisibleScore: false,
  12639. dialogVisibleENScore: false,
  12640. dialogVisibleSentence: false,
  12641. dialogVisibleSentenceTeacher: false,
  12642. dialogVisibleSentence1: false,
  12643. dialogVisibleWorks: false,
  12644. dialogVisibleTable: false,
  12645. dialogVisibleTableTeacher: false,
  12646. dialogVisibleWord: false,
  12647. dialogVisibleWordTeacher: false,
  12648. dialogVisibleTable2: false,
  12649. dialogVisibleTable3: false,
  12650. dialogVisibleGroupWork: false,
  12651. dialogVisibleUpdateGroup: false,
  12652. dialogVisibleDeleteGroup: false,
  12653. dialogVisibleSname: false,
  12654. dialogVisibleVideo: false,
  12655. dialogVisiblePickPeople: false,
  12656. engDialogVisible: false,
  12657. engUpdateDialogVisible: false,
  12658. engEvaDialogVisible: false,
  12659. evaEngJson: {
  12660. teacherJson: {},
  12661. studentJson: {},
  12662. message: {},
  12663. },
  12664. isNoUserid:false,
  12665. engListLength:0,
  12666. engWid:"",
  12667. newEnglishList:{
  12668. engTitle:"",
  12669. engText:"",
  12670. },
  12671. newEnglishList1:[],
  12672. oldEnglishJson:{},
  12673. oldEnglishJson1:{},
  12674. englishList1:{},
  12675. englishList:{},
  12676. myAnswerList1:{},
  12677. topHeight:0,
  12678. newEngIndex:-1,
  12679. englishToolIndex:0,
  12680. worksSName: "",
  12681. classJuri: [],
  12682. uploadStudentJuri: [],
  12683. uploadCid: "",
  12684. snameWid: "",
  12685. sStudent: {},
  12686. sTool: "",
  12687. bzText: "",
  12688. commentDetail: [],
  12689. selectAnswer: [],
  12690. videoDetail: {},
  12691. selectJson: {},
  12692. eScore: { eBzText: "", eStar: [] },
  12693. id: this.$route.query.courseId,
  12694. userid: this.$route.query.userid,
  12695. classId: this.$route.query.cid,
  12696. // courseTypeLine: this.$route.query.type,
  12697. oid: this.$route.query.oid,
  12698. org: this.$route.query.org,
  12699. tType: this.$route.query.tType,
  12700. courseType: this.$route.query.type,
  12701. screenType: this.$route.query.screenType,
  12702. tcid2: this.$route.query.tcid,
  12703. tcid: "",
  12704. pptImgUrl: "",
  12705. pptImgUrl1: "",
  12706. commentText: "",
  12707. full: false,
  12708. sIsOpen: false,
  12709. IsLookOpen: false,
  12710. IsFollow: false,
  12711. pzDialog: false,
  12712. contentDialog: false,
  12713. mlDialog: false,
  12714. type: 1,
  12715. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12716. sentenceList1: [],
  12717. tableJson: [],
  12718. tableJsonO: [],
  12719. wordJson: [],
  12720. wordJsonO: [],
  12721. vedio: [],
  12722. text: [],
  12723. textList: [],
  12724. line: [],
  12725. lineList: [],
  12726. chapTools: [],
  12727. chapToolList: [],
  12728. file: [],
  12729. fileC: [],
  12730. vedioTime: [],
  12731. upToolImg: "",
  12732. preTime: 0,
  12733. rateList: {
  12734. ca: 0,
  12735. },
  12736. rateParams: [],
  12737. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12738. studyJuri: [
  12739. {
  12740. content: "",
  12741. cover: [],
  12742. upVedio: [],
  12743. upFile: [],
  12744. },
  12745. ],
  12746. isClose: 0,
  12747. plworkFile: [],
  12748. mr: require("../assets/vedioPic.png"),
  12749. word: require("../assets/icon/isWord.png"),
  12750. word2: require("../assets/icon/word2.png"),
  12751. video: require("../assets/icon/isVideo.png"),
  12752. noLikes: require("../assets/icon/comment/noLikes.png"),
  12753. likes: require("../assets/icon/comment/likes.png"),
  12754. scoreImg: require("../assets/score.png"),
  12755. courseDetail: {},
  12756. reply: "",
  12757. isSelect: false,
  12758. chapInfo: [],
  12759. chapInfoList: [],
  12760. taskCount: 0,
  12761. imgList: [],
  12762. noImgList: [],
  12763. pzList: [],
  12764. timeWorkList: [],
  12765. PlTextList: [
  12766. "Excellent!",
  12767. "nice!",
  12768. "很有创意!",
  12769. "还不错哦~",
  12770. "继续努力哦~",
  12771. ],
  12772. isClickNav: "",
  12773. navId: "",
  12774. playerOptions: {
  12775. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12776. autoplay: false, //如果true,浏览器准备好时开始回放。
  12777. muted: false, // 默认情况下将会消除任何音频。
  12778. loop: false, // 导致视频一结束就重新开始。
  12779. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12780. language: "zh-CN",
  12781. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12782. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12783. sources: [
  12784. {
  12785. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12786. src: "", //url地址require("../../assets/media/aaa.mp4")
  12787. },
  12788. ],
  12789. // poster: require("../../assets/tu31.png"), //你的封面地址
  12790. // poster: dataRes.imgUrl, //你的封面地址
  12791. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12792. controlBar: {
  12793. timeDivider: true, //当前时间和持续时间的分隔符
  12794. durationDisplay: true, //显示持续时间
  12795. remainingTimeDisplay: false, //是否显示剩余时间功能
  12796. fullscreenToggle: true, //全屏按钮
  12797. },
  12798. },
  12799. playerOptions1: {
  12800. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12801. autoplay: false, //如果true,浏览器准备好时开始回放。
  12802. muted: false, // 默认情况下将会消除任何音频。
  12803. loop: false, // 导致视频一结束就重新开始。
  12804. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12805. language: "zh-CN",
  12806. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12807. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12808. sources: [
  12809. {
  12810. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12811. src: "", //url地址require("../../assets/media/aaa.mp4")
  12812. },
  12813. ],
  12814. // poster: require("../../assets/tu31.png"), //你的封面地址
  12815. // poster: dataRes.imgUrl, //你的封面地址
  12816. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12817. controlBar: {
  12818. timeDivider: true, //当前时间和持续时间的分隔符
  12819. durationDisplay: true, //显示持续时间
  12820. remainingTimeDisplay: false, //是否显示剩余时间功能
  12821. fullscreenToggle: true, //全屏按钮
  12822. },
  12823. },
  12824. playerO: {},
  12825. noneBtnImg: false,
  12826. proVisible: false,
  12827. proVisible2: false,
  12828. progress: 0,
  12829. isFinishSize: 0,
  12830. isAllSize: 0,
  12831. questionAnswer: "",
  12832. answerQ: "", //问答标题
  12833. rateJson: [],
  12834. wbCount: 0,
  12835. wordCount: 0,
  12836. mindCount: 0,
  12837. askCount: 0,
  12838. noteCount: 0,
  12839. mindNetWorkCount: 0,
  12840. libraryCount: 0,
  12841. workCount: 0,
  12842. timeCount: 0,
  12843. answerCount: 0,
  12844. trainCount: 0,
  12845. evalCount: 0,
  12846. dialogImageUrl: "",
  12847. pictureDialog: false,
  12848. toolTypeList: [],
  12849. dialogVisible1: false,
  12850. dialogVisible2: false,
  12851. dialogVisible3: false,
  12852. dialogVisible6: false,
  12853. dialogVisible4: false,
  12854. isNoHomeWork: false,
  12855. dialogVisible5: false,
  12856. dialogVisible5Teacher: false,
  12857. dialogVisibleChoice: false,
  12858. dialogVisibleChoiceTeacher: false,
  12859. answerDialogVisible: false,
  12860. answerDialogVisibleTeacher: false,
  12861. juriVisible: false,
  12862. timeDialogVisible: false,
  12863. replyDialogVisible: false,
  12864. toolDialogVisible: false,
  12865. replyIndex: 0,
  12866. replyPid: "",
  12867. radio: [],
  12868. isAsk: false,
  12869. askJson: {
  12870. askCount: 1,
  12871. askTitle: "",
  12872. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12873. },
  12874. testJson: {},
  12875. videoType:0,
  12876. checkJson: [],
  12877. askList: [],
  12878. answerList: [],
  12879. navList: [],
  12880. addPzDialog: false,
  12881. pzConText: "",
  12882. worksStudent: [],
  12883. isCloseList: [],
  12884. workStudent: [],
  12885. groupStudent: [],
  12886. groupStudentUid: [],
  12887. noWorksS: [],
  12888. isWorksS: [],
  12889. noWorksStudent: [],
  12890. toolindex: 0,
  12891. toolDetailIndex: null,
  12892. groupIndex: 0,
  12893. workTypeB: false,
  12894. workTypeC: false,
  12895. isAnswer: false,
  12896. isHovered: false,
  12897. isHovered1: false,
  12898. isHovered2: false,
  12899. commentTagShow:0,
  12900. timer: null,
  12901. timer2: null,
  12902. opertimer: null,
  12903. showType: 0,
  12904. fileType: 0,
  12905. showPDF: false,
  12906. noteName: "",
  12907. evaJuri: [],
  12908. evalua: "",
  12909. eTitle: "",
  12910. eName: "",
  12911. eJson: {},
  12912. fid: "", //一级
  12913. sid: "", //二级
  12914. tid: "", //二级
  12915. typeMode: 1,
  12916. eJSONNum: 0,
  12917. Etype: 1,
  12918. data: {
  12919. meta: {
  12920. name: "example",
  12921. author: "dd@163.com",
  12922. version: "0.2",
  12923. },
  12924. format: "node_array",
  12925. data: [{ id: "root", isroot: true, topic: "" }],
  12926. },
  12927. fullDialogVisible: false,
  12928. fulltype: "",
  12929. fullUrl: "",
  12930. commentIndexJson: {},
  12931. Stbodywidth: 0,
  12932. ispzType: 0,
  12933. pzType: 1,
  12934. wScore: 0,
  12935. scoreDetail: "",
  12936. videoStart: false,
  12937. recorder: null,
  12938. groupJson: {},
  12939. islock: false,
  12940. groupJson2: {},
  12941. dialogVisibleGroup: false,
  12942. dialogVisibleGroup2: false,
  12943. updateGroupArray: [],
  12944. updateGroupUser: {},
  12945. deleteGroupUser: [],
  12946. deleteGroupArray: {},
  12947. checkChair: "",
  12948. checkDeleteGroup: [],
  12949. inviteCode: "",
  12950. courseGroupStudent: [],
  12951. courseGroupStudentUid: [],
  12952. courseGroup: {},
  12953. isGroup: false,
  12954. // toolIndex: null,
  12955. tool: {},
  12956. isWorkTool: [
  12957. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12958. ], //, 40
  12959. videoJson: {},
  12960. toolType: 0,
  12961. checktoolArray: [],
  12962. vChapterData: [],
  12963. isUpdateToolDetail: false,
  12964. isUpdateToolDetail1: false,
  12965. updateToolDetailInner: "",
  12966. checkboxList: [],
  12967. plIndex: "",
  12968. worksSName2: "",
  12969. worksSid: "",
  12970. wordCloudData: [],
  12971. isPickStudent: [],
  12972. pzStype: 1,
  12973. myAnList: {},
  12974. userMes:{},
  12975. downLoading: false,
  12976. greyType: false,
  12977. correctWord: [],
  12978. isUpdateText: "",
  12979. EnglishVoiceDialog: false,
  12980. englishVoiceJson: {},
  12981. englishVoiceJsonWork:[],
  12982. scoreList:{
  12983. listdata:[],
  12984. isScoreList:[],
  12985. },
  12986. classRoomHelperWidth: '85px',
  12987. orgArray:[],
  12988. oidArray:[],
  12989. toolsList: toolsList,
  12990. splitScreenData:{
  12991. isOpen:false,
  12992. userId:"",
  12993. uid:"",
  12994. myUid:"",
  12995. loading:false,
  12996. behavior:null,
  12997. },
  12998. confirmOpenDig:false,
  12999. confirmOpenDigData:'',
  13000. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  13001. diffKey:"1",
  13002. };
  13003. },
  13004. methods: {
  13005. //查看应用中心作业
  13006. openCocoFlow(w){
  13007. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13008. },
  13009. getAIJ(){
  13010. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13011. let oid = res.data[0];
  13012. let org = res.data[1];
  13013. let oidArray = [];
  13014. let orgArray = [];
  13015. oid.forEach(i=>oidArray.push(i.oid))
  13016. org.forEach(i=>orgArray.push(i.oid))
  13017. this.orgArray = orgArray;
  13018. this.oidArray = oidArray;
  13019. })
  13020. },
  13021. insertMemorandum(_html){//保存行为操作
  13022. //variable
  13023. //btn
  13024. let params = [{
  13025. uid:this.userid,
  13026. courseId:this.id+(this.tcid2?this.tcid2:''),
  13027. content:_html
  13028. }]
  13029. console.log("👇👇")
  13030. console.log(params)
  13031. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13032. if(res.data==1){
  13033. console.log('保存操作成功')
  13034. }else{
  13035. console.log('保存操作失败')
  13036. }
  13037. }).catch(e=>{
  13038. console.log('保存操作失败')
  13039. console.log(e)
  13040. })
  13041. },
  13042. gx(){
  13043. this.$forceUpdate();
  13044. },
  13045. isUpdateCorrect(t,p){
  13046. if(this.greyType == false){
  13047. this.isUpdateText = t;
  13048. this.greyType = true;
  13049. }else{
  13050. if(p == 1){
  13051. this.newEnglishList.engText = this.isUpdateText;
  13052. }else if(p == 2){
  13053. this.oldEnglishJson1.engText = this.isUpdateText;
  13054. }else if(p == 3){
  13055. this.newEnglishList.engText = this.isUpdateText;
  13056. }else{
  13057. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13058. }
  13059. this.greyType = false
  13060. }
  13061. },
  13062. aiCorrect(t,p){
  13063. let aiText = "";
  13064. const loading = this.$loading.service({
  13065. background: "rgba(255, 255, 255)",
  13066. target: document.querySelectorAll(".loadingText")[0],
  13067. });
  13068. let param = {
  13069. model: "gpt-3.5-turbo",
  13070. temperature: 0,
  13071. max_tokens: 2048,
  13072. top_p: 1,
  13073. frequency_penalty: 0,
  13074. presence_penalty: 0,
  13075. messages: [
  13076. {
  13077. role: "user",
  13078. content:
  13079. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13080. },
  13081. ],
  13082. uid: this.userid,
  13083. stream: false,
  13084. };
  13085. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13086. (res) => {
  13087. if (
  13088. res.data.FunctionResponse &&
  13089. res.data.FunctionResponse.result &&
  13090. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13091. ) {
  13092. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13093. return;
  13094. }
  13095. aiText =
  13096. res.data.FunctionResponse.choices[0].message.content;
  13097. aiText = aiText.replace(/%/g,"%25");
  13098. // let w = "";
  13099. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13100. // for(var k = 0;k<a.length;k++){
  13101. // //diffWordsWithSpace
  13102. // if(a.length > 1){
  13103. // if(a[k].added == true){
  13104. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13105. // }else if(a[k].removed == true){
  13106. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13107. // }else{
  13108. // w += '<span>' + a[k].value + '</span>';
  13109. // }
  13110. // }else{
  13111. // if(p == 1){
  13112. // w = this.newEnglishList.engText;
  13113. // }else if(p == 2){
  13114. // w = this.oldEnglishJson1.engText;
  13115. // }else if(p == 3){
  13116. // w = this.newEnglishList.engText;
  13117. // }else{
  13118. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13119. // }
  13120. // }
  13121. // }
  13122. if(p == 1){
  13123. this.newEnglishList.engText = aiText;
  13124. }else if(p == 2){
  13125. this.oldEnglishJson1.engText = aiText;
  13126. }else if(p == 3){
  13127. this.newEnglishList.engText = aiText;
  13128. }else{
  13129. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13130. }
  13131. loading.close();
  13132. },
  13133. (err) => {
  13134. console.log(err);
  13135. loading.close();
  13136. }
  13137. );
  13138. },
  13139. addToolChoose() {
  13140. if (!this.checktoolArray.length) {
  13141. this.$message.error("请选择要添加的任务");
  13142. return;
  13143. }
  13144. if (
  13145. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13146. this.taskCount
  13147. ].toolChoose[0].tool.length
  13148. ) {
  13149. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13150. this.taskCount
  13151. ].toolChoose[0].tool = this.checktoolArray;
  13152. } else {
  13153. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13154. this.taskCount
  13155. ].toolChoose.push({
  13156. tool: this.checktoolArray,
  13157. toolDetail: "",
  13158. toolType: 0,
  13159. askCount: 1,
  13160. askTitle: "",
  13161. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13162. });
  13163. }
  13164. let params = [
  13165. {
  13166. cid: this.id,
  13167. chapters: JSON.stringify(this.chapInfoList),
  13168. uid: this.userid,
  13169. unitIndex: this.courseType,
  13170. },
  13171. ];
  13172. this.ajax
  13173. .post(this.$store.state.api + "updateWorkNew4", params)
  13174. .then((res) => {
  13175. this.$message({
  13176. message: "添加成功",
  13177. type: "success",
  13178. });
  13179. this.checktoolArray = [];
  13180. this.getCourseDetail(2);
  13181. this.checkBz(
  13182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13183. this.taskCount
  13184. ].toolChoose.length - 1
  13185. );
  13186. this.toolDialogVisible = false;
  13187. this.refreshCourse();
  13188. this.$forceUpdate();
  13189. })
  13190. .catch((err) => {
  13191. console.error(err);
  13192. });
  13193. },
  13194. checkBz(index) {
  13195. this.isUpdateToolDetail = false;
  13196. this.$forceUpdate();
  13197. setTimeout(() => {
  13198. document.scrollingElement.scrollTop =
  13199. document.querySelectorAll(".filebox")[index].offsetTop +
  13200. document.querySelector(".student_body").offsetTop;
  13201. }, 500);
  13202. },
  13203. updateToolDetail(i, type) {
  13204. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13205. this.toolDetailIndex = i
  13206. this.isUpdateToolDetail1 = true;
  13207. setTimeout(() => {
  13208. this.updateToolDetailInner = JSON.parse(
  13209. JSON.stringify(
  13210. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13211. this.taskCount
  13212. ].toolChoose[i].toolDetail
  13213. )
  13214. );
  13215. document.querySelector(".checkTextArea").focus();
  13216. }, 0);
  13217. } else if((this.isUpdateToolDetail1 && type != 2)){
  13218. // this.toolDetailIndex = i;
  13219. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13220. this.taskCount
  13221. ].toolChoose[i].toolDetail = JSON.parse(
  13222. JSON.stringify(this.updateToolDetailInner)
  13223. );
  13224. let params = [
  13225. {
  13226. cid: this.id,
  13227. chapters: JSON.stringify(this.chapInfoList),
  13228. uid: this.userid,
  13229. unitIndex: this.courseType,
  13230. },
  13231. ];
  13232. this.ajax
  13233. .post(this.$store.state.api + "updateWorkNew4", params)
  13234. .then((res) => {
  13235. this.isUpdateToolDetail1 = false;
  13236. this.$message({
  13237. message: "修改成功",
  13238. type: "success",
  13239. });
  13240. this.toolDetailIndex = null;
  13241. this.updateToolDetailInner = "";
  13242. this.getCourseDetail(2);
  13243. this.$forceUpdate();
  13244. })
  13245. .catch((err) => {
  13246. console.error(err);
  13247. });
  13248. } else if((this.isUpdateToolDetail1 && type == 2)){
  13249. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13250. this.taskCount
  13251. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13252. JSON.stringify(this.updateToolDetailInner)
  13253. );
  13254. let params = [
  13255. {
  13256. cid: this.id,
  13257. chapters: JSON.stringify(this.chapInfoList),
  13258. uid: this.userid,
  13259. unitIndex: this.courseType,
  13260. },
  13261. ];
  13262. this.ajax
  13263. .post(this.$store.state.api + "updateWorkNew4", params)
  13264. .then((res) => {
  13265. this.$message({
  13266. message: "修改成功",
  13267. type: "success",
  13268. });
  13269. this.toolDetailIndex = i;
  13270. this.isUpdateToolDetail1 = true;
  13271. setTimeout(() => {
  13272. this.updateToolDetailInner = JSON.parse(
  13273. JSON.stringify(
  13274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13275. this.taskCount
  13276. ].toolChoose[i].toolDetail
  13277. )
  13278. );
  13279. document.querySelector(".checkTextArea").focus();
  13280. }, 0);
  13281. this.getCourseDetail(2);
  13282. this.$forceUpdate();
  13283. })
  13284. .catch((err) => {
  13285. console.error(err);
  13286. });
  13287. }
  13288. },
  13289. jumpGj(i, j, k, l) {
  13290. for (var z = 0; z < this.navList.length; z++) {
  13291. for (var q = 0; q < this.navList[z].task.length; q++) {
  13292. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13293. this.navList[z].task[q].tool[w].isTool = false;
  13294. }
  13295. }
  13296. }
  13297. this.navList[i].task[j].tool[k].isTool =
  13298. !this.navList[i].task[j].tool[k].isTool;
  13299. var a = document.scrollingElement;
  13300. this.navId = ""
  13301. let target = document.querySelector(`#gj${k}`);
  13302. if (target) {
  13303. // target.scrollIntoView(true);
  13304. // setTimeout(() => {
  13305. // a.scrollTop = a.scrollTop - 150;
  13306. // }, 0);
  13307. target.scrollIntoView();
  13308. setTimeout(()=>{
  13309. let scrollBody = document.querySelector('.body_student').parentElement
  13310. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13311. }, 0);
  13312. }
  13313. let flag = this.courseType == i;
  13314. let flag2 = this.taskCount == j
  13315. if (l) {
  13316. this.courseType = i;
  13317. // this.navId = l;
  13318. this.taskCount = j;
  13319. this.selectPz();
  13320. this.getHomeWork();
  13321. this.getCourseDetail(2);
  13322. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13323. if(flag){
  13324. if(flag2){
  13325. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13326. }else{
  13327. 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>`)
  13328. }
  13329. }else{
  13330. 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>`)
  13331. }
  13332. }
  13333. // var b = this.$refs["bz" + k][0];
  13334. // a.scrollTop = b.offsetTop;
  13335. },
  13336. addTools2(i) {
  13337. if (i == 4) {
  13338. // this.openTools2(4);
  13339. this.$message.error("暂未开放");
  13340. return;
  13341. }
  13342. if (i == 45) {
  13343. // this.openTools2(45);
  13344. this.$message.error("暂未开放");
  13345. return;
  13346. }
  13347. if (i == 47) {
  13348. // this.openTools2(47);
  13349. this.$message.error("暂未开放");
  13350. return;
  13351. }
  13352. if (i == 49) {
  13353. // this.openTools2(49);
  13354. this.$message.error("暂未开放");
  13355. return;
  13356. }
  13357. if (i == 62) {
  13358. // this.openTools(itemTaskIndex, 62, toolIndex);
  13359. this.$message.error("暂未开放");
  13360. return;
  13361. }
  13362. if (i == 15) {
  13363. // this.openTools(itemTaskIndex, 15, toolIndex);
  13364. this.$message.error("暂未开放");
  13365. return;
  13366. }
  13367. if (i == 40) {
  13368. // this.openTools(itemTaskIndex, 40, toolIndex);
  13369. this.$message.error("暂未开放");
  13370. return;
  13371. }
  13372. if (i == 41) {
  13373. // this.openTools(itemTaskIndex, 41, toolIndex);
  13374. this.$message.error("暂未开放");
  13375. return;
  13376. }
  13377. if (i == 42) {
  13378. // this.openTools(itemTaskIndex, 42, toolIndex);
  13379. this.$message.error("暂未开放");
  13380. return;
  13381. }
  13382. if (this.checktoolArray.length > 0) {
  13383. if (this.checktoolArray.indexOf(i) != -1) {
  13384. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13385. } else {
  13386. this.checktoolArray = [];
  13387. this.checktoolArray.push(i);
  13388. }
  13389. } else {
  13390. this.checktoolArray.push(i);
  13391. }
  13392. this.$forceUpdate();
  13393. },
  13394. jump() {
  13395. window.topU.postMessage({ tools: "43" }, "*");
  13396. },
  13397. getUpdateMore(f, checkboxList, searchTN, index) {
  13398. this.dialogVisibleMember = f;
  13399. this.checkboxList = checkboxList;
  13400. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13401. this.plIndex = index;
  13402. },
  13403. setPlname(a) {
  13404. if (this.plworkFile.length) {
  13405. this.plworkFile[this.plIndex].username = a;
  13406. } else {
  13407. this.worksSName = a;
  13408. }
  13409. this.dialogVisibleMember = false;
  13410. },
  13411. previewImg(url,w=null) {
  13412. this.$hevueImgPreview(url);
  13413. if(w){
  13414. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13415. }
  13416. },
  13417. checkImg(list) {
  13418. if (!list.length) {
  13419. return;
  13420. }
  13421. this.$hevueImgPreview({
  13422. multiple: true, // 开启多图预览模式
  13423. imgList: list, // 需要预览的多图数组
  13424. });
  13425. },
  13426. change(val) {
  13427. console.log(val);
  13428. },
  13429. goTo(path) {
  13430. this.$router.push(path);
  13431. },
  13432. handlePictureCardPreview(url) {
  13433. this.dialogImageUrl = url;
  13434. this.pictureDialog = true;
  13435. },
  13436. clean(type) {
  13437. if (type == 1) {
  13438. this.studyJuri[0].cover.splice(0, 1);
  13439. } else if (type == 2) {
  13440. this.studyJuri[0].upVedio.splice(0, 1);
  13441. } else {
  13442. this.studyJuri[0].upFile.splice(0, 1);
  13443. }
  13444. },
  13445. clean2(index) {
  13446. this.plworkFile.splice(index, 1);
  13447. },
  13448. handleClose(done) {
  13449. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13450. this.videoDetail.sources[0].src = "";
  13451. }
  13452. this.commentIndexJson = {};
  13453. done();
  13454. },
  13455. fullTools() {
  13456. this.full = !this.full;
  13457. },
  13458. imgChange(file, fileList, type) {
  13459. if (type == 1) {
  13460. var _tmp = this.studyJuri[0].cover;
  13461. } else if (type == 2) {
  13462. var _tmp = this.studyJuri[0].upVedio;
  13463. } else {
  13464. var _tmp = this.studyJuri[0].upFile;
  13465. }
  13466. this.noneBtnImg = _tmp.length >= 1;
  13467. },
  13468. setContent(bool) {
  13469. this.contentDialog = bool;
  13470. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13471. document.querySelector(".workd_media").style.height = "650px";
  13472. } else if (document.querySelector(".workd_media")) {
  13473. document.querySelector(".workd_media").style.height = "auto";
  13474. }
  13475. },
  13476. setContent2(bool) {
  13477. this.mlDialog = bool;
  13478. if (
  13479. bool &&
  13480. this.contentDialog &&
  13481. document.querySelector(".workd_media")
  13482. ) {
  13483. document.querySelector(".workd_media").style.height = "650px";
  13484. } else if (document.querySelector(".workd_media")) {
  13485. document.querySelector(".workd_media").style.height = "auto";
  13486. }
  13487. this.$forceUpdate();
  13488. },
  13489. openToolAll() {
  13490. this.toolDialogVisible = true;
  13491. },
  13492. addImg(e) {
  13493. var el = e.currentTarget;
  13494. // this.$message.success('触发上传')
  13495. el.getElementsByTagName("input")[0].click();
  13496. e.target.value = "";
  13497. },
  13498. addSelectAnswer() {
  13499. let params = [
  13500. {
  13501. uid: this.userid,
  13502. cid: this.id,
  13503. stage: this.courseType,
  13504. task: this.taskCount,
  13505. tool: this.toolindex,
  13506. content: this.selectAnswer.answer,
  13507. type: 7,
  13508. },
  13509. ];
  13510. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13511. this.homeWorkLoading = true
  13512. this.ajax
  13513. .post(this.$store.state.api + "addCourseWorks", params)
  13514. .then((res) => {
  13515. this.$message({
  13516. message: "提交成功",
  13517. type: "success",
  13518. });
  13519. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13520. setTimeout(() => {
  13521. this.homeWorkLoading = false
  13522. }, 500);
  13523. this.dialogVisibleSelect = false;
  13524. // this.selectAnswer = {};
  13525. this.selectSWorks();
  13526. this.selectStudent();
  13527. })
  13528. .catch((err) => {
  13529. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13530. setTimeout(() => {
  13531. this.homeWorkLoading = false
  13532. }, 500);
  13533. this.$message.error("提交失败");
  13534. console.error(err);
  13535. });
  13536. },
  13537. addSelectAnswerTeacher() {
  13538. let params = [
  13539. {
  13540. uid: this.sStudent.userid,
  13541. cid: this.id,
  13542. stage: this.courseType,
  13543. task: this.taskCount,
  13544. tool: this.toolindex,
  13545. content: this.selectAnswer.answer,
  13546. type: 7,
  13547. },
  13548. ];
  13549. this.ajax
  13550. .post(this.$store.state.api + "addCourseWorks", params)
  13551. .then((res) => {
  13552. this.$message({
  13553. message: "提交成功",
  13554. type: "success",
  13555. });
  13556. this.dialogVisibleSelectTeacher = false;
  13557. // this.selectAnswer = {};
  13558. this.selectSWorks();
  13559. this.selectStudent();
  13560. })
  13561. .catch((err) => {
  13562. this.$message.error("提交失败");
  13563. console.error(err);
  13564. });
  13565. },
  13566. addSenWorks() {
  13567. for (var i = 0; i < this.sentenceList.length; i++) {
  13568. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13569. if (
  13570. this.sentenceList[i].chooseSenList[j] == undefined ||
  13571. this.sentenceList[i].chooseSenList[j] == ""
  13572. ) {
  13573. this.$message.error("请将答案填写完整!");
  13574. return;
  13575. }
  13576. }
  13577. }
  13578. let params = [
  13579. {
  13580. uid: this.userid,
  13581. cid: this.id,
  13582. stage: this.courseType,
  13583. task: this.taskCount,
  13584. tool: this.toolindex,
  13585. content: JSON.stringify(this.sentenceList),
  13586. type: 9,
  13587. },
  13588. ];
  13589. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13590. this.homeWorkLoading = true
  13591. this.ajax
  13592. .post(this.$store.state.api + "addCourseWorks", params)
  13593. .then((res) => {
  13594. this.$message({
  13595. message: "提交成功",
  13596. type: "success",
  13597. });
  13598. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13599. setTimeout(() => {
  13600. this.homeWorkLoading = false
  13601. }, 500);
  13602. this.dialogVisibleSentence = false;
  13603. // this.selectAnswer = {};
  13604. this.selectSWorks();
  13605. this.selectStudent();
  13606. })
  13607. .catch((err) => {
  13608. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13609. setTimeout(() => {
  13610. this.homeWorkLoading = false
  13611. }, 500);
  13612. this.$message.error("提交失败");
  13613. console.error(err);
  13614. });
  13615. },
  13616. addSenWorksTeacher() {
  13617. for (var i = 0; i < this.sentenceList.length; i++) {
  13618. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13619. if (
  13620. this.sentenceList[i].chooseSenList[j] == undefined ||
  13621. this.sentenceList[i].chooseSenList[j] == ""
  13622. ) {
  13623. this.$message.error("请将答案填写完整!");
  13624. return;
  13625. }
  13626. }
  13627. }
  13628. let params = [
  13629. {
  13630. uid: this.sStudent.userid,
  13631. cid: this.id,
  13632. stage: this.courseType,
  13633. task: this.taskCount,
  13634. tool: this.toolindex,
  13635. content: JSON.stringify(this.sentenceList),
  13636. type: 9,
  13637. },
  13638. ];
  13639. this.ajax
  13640. .post(this.$store.state.api + "addCourseWorks", params)
  13641. .then((res) => {
  13642. this.$message({
  13643. message: "提交成功",
  13644. type: "success",
  13645. });
  13646. this.dialogVisibleSentenceTeacher = false;
  13647. // this.selectAnswer = {};
  13648. this.selectSWorks();
  13649. this.selectStudent();
  13650. })
  13651. .catch((err) => {
  13652. this.$message.error("提交失败");
  13653. console.error(err);
  13654. });
  13655. },
  13656. returnTableText() {
  13657. this.$confirm("确定还原此模板吗?", "提示", {
  13658. confirmButtonText: "确定",
  13659. cancelButtonText: "取消",
  13660. type: "warning",
  13661. })
  13662. .then(() => {
  13663. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13664. })
  13665. .catch(() => {});
  13666. },
  13667. addTableWorks() {
  13668. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13669. this.homeWorkLoading = true
  13670. let params = [
  13671. {
  13672. uid: this.userid,
  13673. cid: this.id,
  13674. stage: this.courseType,
  13675. task: this.taskCount,
  13676. tool: this.toolindex,
  13677. content: JSON.stringify(this.tableJson),
  13678. type: 10,
  13679. },
  13680. ];
  13681. this.ajax
  13682. .post(this.$store.state.api + "addCourseWorks", params)
  13683. .then((res) => {
  13684. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13685. this.$message({
  13686. message: "提交成功",
  13687. type: "success",
  13688. });
  13689. this.dialogVisibleTable = false;
  13690. setTimeout(() => {
  13691. this.homeWorkLoading = false
  13692. }, 500);
  13693. // this.selectAnswer = {};
  13694. this.selectSWorks();
  13695. this.selectStudent();
  13696. })
  13697. .catch((err) => {
  13698. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13699. setTimeout(() => {
  13700. this.homeWorkLoading = false
  13701. }, 500);
  13702. this.$message.error("提交失败");
  13703. console.error(err);
  13704. });
  13705. },
  13706. tableRowClassName({ row, rowIndex }) {
  13707. if ((rowIndex + 1) % 2 === 0) {
  13708. return "even_row";
  13709. } else {
  13710. return "";
  13711. }
  13712. },
  13713. addTableWorksTeacher() {
  13714. let params = [
  13715. {
  13716. uid: this.sStudent.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. this.ajax
  13726. .post(this.$store.state.api + "addCourseWorks", params)
  13727. .then((res) => {
  13728. this.$message({
  13729. message: "提交成功",
  13730. type: "success",
  13731. });
  13732. this.dialogVisibleTableTeacher = false;
  13733. // this.selectAnswer = {};
  13734. this.selectSWorks();
  13735. this.selectStudent();
  13736. })
  13737. .catch((err) => {
  13738. this.$message.error("提交失败");
  13739. console.error(err);
  13740. });
  13741. },
  13742. returnWordText() {
  13743. this.$confirm("确定还原此模板吗?", "提示", {
  13744. confirmButtonText: "确定",
  13745. cancelButtonText: "取消",
  13746. type: "warning",
  13747. })
  13748. .then(() => {
  13749. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13750. })
  13751. .catch(() => {});
  13752. },
  13753. addWordWorks() {
  13754. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13755. this.homeWorkLoading = true
  13756. let params = [
  13757. {
  13758. uid: this.userid,
  13759. cid: this.id,
  13760. stage: this.courseType,
  13761. task: this.taskCount,
  13762. tool: this.toolindex,
  13763. content: JSON.stringify(this.wordJson),
  13764. type: 13,
  13765. atool: 52,
  13766. },
  13767. ];
  13768. this.ajax
  13769. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13770. .then((res) => {
  13771. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13772. this.$message({
  13773. message: "提交成功",
  13774. type: "success",
  13775. });
  13776. this.dialogVisibleWord = false;
  13777. setTimeout(() => {
  13778. this.homeWorkLoading = false
  13779. }, 500);
  13780. // this.selectAnswer = {};
  13781. this.selectSWorks();
  13782. this.selectStudent();
  13783. })
  13784. .catch((err) => {
  13785. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13786. setTimeout(() => {
  13787. this.homeWorkLoading = false
  13788. }, 500);
  13789. this.$message.error("提交失败");
  13790. console.error(err);
  13791. });
  13792. },
  13793. addWordWorksTeacher() {
  13794. let params = [
  13795. {
  13796. uid: this.sStudent.userid,
  13797. cid: this.id,
  13798. stage: this.courseType,
  13799. task: this.taskCount,
  13800. tool: this.toolindex,
  13801. content: JSON.stringify(this.wordJson),
  13802. type: 13,
  13803. atool: 52,
  13804. },
  13805. ];
  13806. this.ajax
  13807. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13808. .then((res) => {
  13809. this.$message({
  13810. message: "提交成功",
  13811. type: "success",
  13812. });
  13813. this.dialogVisibleWordTeacher = false;
  13814. // this.selectAnswer = {};
  13815. this.selectSWorks();
  13816. this.selectStudent();
  13817. })
  13818. .catch((err) => {
  13819. this.$message.error("提交失败");
  13820. console.error(err);
  13821. });
  13822. },
  13823. addCourseWorks(i) {
  13824. var typesql;
  13825. if (this.fileType === 0) {
  13826. typesql = 1;
  13827. } else if (this.fileType === 1) {
  13828. typesql = 4;
  13829. } else if (this.fileType === 2) {
  13830. typesql = 5;
  13831. } else if (this.fileType === 3) {
  13832. typesql = 12;
  13833. }
  13834. if (!this.studyJuri[0].cover[0].url) {
  13835. this.$message.error("请上传文件");
  13836. return;
  13837. }
  13838. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13839. this.homeWorkLoading = true
  13840. let params = [
  13841. {
  13842. uid: this.userid,
  13843. cid: this.id,
  13844. stage: this.courseType,
  13845. task: i,
  13846. tool: this.toolindex,
  13847. content: this.studyJuri[0].cover[0].url,
  13848. type: typesql,
  13849. },
  13850. ];
  13851. this.ajax
  13852. .post(this.$store.state.api + "addCourseWorksR", params)
  13853. .then((res) => {
  13854. this.$message({
  13855. message: "提交成功",
  13856. type: "success",
  13857. });
  13858. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13859. setTimeout(() => {
  13860. this.homeWorkLoading = false
  13861. }, 500);
  13862. this.studyJuri[0].cover = [];
  13863. this.dialogVisible = false;
  13864. this.getCourseDetail(2);
  13865. })
  13866. .catch((err) => {
  13867. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13868. setTimeout(() => {
  13869. this.homeWorkLoading = false
  13870. }, 500);
  13871. this.$message.error("提交失败");
  13872. console.error(err);
  13873. });
  13874. },
  13875. addCourseWorksPl(i) {
  13876. let _files = this.plworkFile;
  13877. var c = 1;
  13878. for (var k = 0; k < _files.length; k++) {
  13879. if (!_files[k].username) {
  13880. c = 2;
  13881. }
  13882. }
  13883. if (c == 2) {
  13884. this.$message.error("请填写学生姓名");
  13885. return;
  13886. }
  13887. let params = [
  13888. {
  13889. ateacher: this.userid,
  13890. cid: this.id,
  13891. stage: this.courseType,
  13892. task: i,
  13893. tool: this.toolindex,
  13894. content: JSON.stringify(_files),
  13895. },
  13896. ];
  13897. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13898. this.homeWorkLoading = true
  13899. this.ajax
  13900. .post(this.$store.state.api + "addCourseWorksPl", params)
  13901. .then((res) => {
  13902. this.$message({
  13903. message: "提交成功",
  13904. type: "success",
  13905. });
  13906. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13907. setTimeout(() => {
  13908. this.homeWorkLoading = false
  13909. }, 500);
  13910. this.plworkFile = [];
  13911. this.dialogVisiblePl = false;
  13912. this.getCourseDetail(2);
  13913. })
  13914. .catch((err) => {
  13915. this.$message.error("提交失败");
  13916. setTimeout(() => {
  13917. this.homeWorkLoading = false
  13918. }, 500);
  13919. console.error(err);
  13920. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13921. });
  13922. },
  13923. addCourseWorks2(i) {
  13924. var typesql;
  13925. if (this.fileType === 0) {
  13926. typesql = 0;
  13927. } else if (this.fileType === 1) {
  13928. typesql = 1;
  13929. } else if (this.fileType === 2) {
  13930. typesql = 3;
  13931. } else if (this.fileType === 3) {
  13932. typesql = 12;
  13933. }
  13934. if (!this.studyJuri[0].cover[0].url) {
  13935. this.$message.error("请上传文件");
  13936. return;
  13937. }
  13938. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13939. this.homeWorkLoading = true
  13940. let params = [
  13941. {
  13942. uid: this.userid,
  13943. cid: this.id,
  13944. stage: this.courseType,
  13945. task: i,
  13946. tool: this.toolindex,
  13947. content: JSON.stringify({
  13948. type: typesql,
  13949. groupIndex: this.groupIndex,
  13950. url: this.studyJuri[0].cover[0].url,
  13951. }),
  13952. type: 11,
  13953. atool: 49,
  13954. text: "",
  13955. },
  13956. ];
  13957. this.ajax
  13958. .post(this.$store.state.api + "addCourseWorks5", params)
  13959. .then((res) => {
  13960. this.$message({
  13961. message: "提交成功",
  13962. type: "success",
  13963. });
  13964. setTimeout(() => {
  13965. this.homeWorkLoading = false
  13966. }, 500);
  13967. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13968. type: typesql,
  13969. groupIndex: this.groupIndex,
  13970. url: this.studyJuri[0].cover[0].url,
  13971. }),type: "course_tool_sub" }, "success")
  13972. this.studyJuri[0].cover = [];
  13973. this.dialogVisibleGroupWork = false;
  13974. this.getCourseDetail(2);
  13975. })
  13976. .catch((err) => {
  13977. this.$message.error("提交失败");
  13978. setTimeout(() => {
  13979. this.homeWorkLoading = false
  13980. }, 500);
  13981. console.error(err);
  13982. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13983. type: typesql,
  13984. groupIndex: this.groupIndex,
  13985. url: this.studyJuri[0].cover[0].url,
  13986. }),type: "course_tool_sub" }, err)
  13987. });
  13988. },
  13989. addEnglishWork() {
  13990. this.myAnList = this.$refs['engJson'].myAnswerList;
  13991. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13992. this.$message.error("请输入作文标题和正文!");
  13993. return;
  13994. }
  13995. let params = [
  13996. {
  13997. uid: this.userid,
  13998. cid: this.id,
  13999. stage: this.courseType,
  14000. task: this.taskCount,
  14001. tool: this.englishToolIndex,
  14002. content: JSON.stringify(this.myAnList),
  14003. type: 16,
  14004. atool: 69,
  14005. text: "",
  14006. },
  14007. ];
  14008. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14009. this.homeWorkLoading = true
  14010. this.ajax
  14011. .post(this.$store.state.api + "addCourseWorks5", params)
  14012. .then((res) => {
  14013. this.$message({
  14014. message: "提交成功",
  14015. type: "success",
  14016. });
  14017. setTimeout(() => {
  14018. this.homeWorkLoading = false
  14019. }, 500);
  14020. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14021. data: JSON.stringify(this.myAnList),
  14022. type: "course_tool_sub" }, "success")
  14023. this.myAnList = {};
  14024. this.englishList = {};
  14025. this.englishToolIndex = 0;
  14026. this.engDialogVisible = false;
  14027. this.selectSWorks();
  14028. this.selectStudent();
  14029. })
  14030. .catch((err) => {
  14031. this.$message.error("提交失败");
  14032. console.error(err);
  14033. setTimeout(() => {
  14034. this.homeWorkLoading = false
  14035. }, 500);
  14036. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14037. data: JSON.stringify(this.myAnList),
  14038. type: "course_tool_sub" }, err)
  14039. });
  14040. },
  14041. addCourseWorksGong(i, data, tool) {
  14042. let params = [
  14043. {
  14044. uid: this.userid,
  14045. cid: this.id,
  14046. stage: this.courseType,
  14047. task: this.taskCount,
  14048. tool: i,
  14049. content: data,
  14050. type: 12,
  14051. atool: tool,
  14052. text: "",
  14053. },
  14054. ];
  14055. this.ajax
  14056. .post(this.$store.state.api + "addCourseWorks5", params)
  14057. .then((res) => {
  14058. this.$message({
  14059. message: "提交成功",
  14060. type: "success",
  14061. });
  14062. this.studyJuri[0].cover = [];
  14063. this.selectSWorks();
  14064. this.selectStudent();
  14065. })
  14066. .catch((err) => {
  14067. this.$message.error("提交失败");
  14068. console.error(err);
  14069. });
  14070. },
  14071. addCourseWorksGongTeacher(i, data, tool) {
  14072. let params = [
  14073. {
  14074. uid: this.sStudent.userid,
  14075. cid: this.id,
  14076. stage: this.courseType,
  14077. task: this.taskCount,
  14078. tool: i,
  14079. content: data,
  14080. type: 12,
  14081. atool: tool,
  14082. text: "",
  14083. },
  14084. ];
  14085. this.ajax
  14086. .post(this.$store.state.api + "addCourseWorks5", params)
  14087. .then((res) => {
  14088. this.$message({
  14089. message: "提交成功",
  14090. type: "success",
  14091. });
  14092. this.studyJuri[0].cover = [];
  14093. this.dialogVisibleWorks = false;
  14094. this.selectSWorks();
  14095. this.selectStudent();
  14096. })
  14097. .catch((err) => {
  14098. this.$message.error("提交失败");
  14099. console.error(err);
  14100. });
  14101. },
  14102. addCourseWorksGongPl(i, data, tool, type) {
  14103. let params = [
  14104. {
  14105. uid: this.sStudent.userid,
  14106. cid: this.id,
  14107. stage: this.courseType,
  14108. task: this.taskCount,
  14109. tool: i,
  14110. content: data,
  14111. type: type,
  14112. atool: tool,
  14113. text: "",
  14114. },
  14115. ];
  14116. this.ajax
  14117. .post(this.$store.state.api + "addCourseWorks5", params)
  14118. .then((res) => {
  14119. this.$message({
  14120. message: "提交成功",
  14121. type: "success",
  14122. });
  14123. this.studyJuri[0].cover = [];
  14124. this.dialogVisibleWorks = false;
  14125. this.selectSWorks();
  14126. this.selectStudent();
  14127. })
  14128. .catch((err) => {
  14129. this.$message.error("提交失败");
  14130. console.error(err);
  14131. });
  14132. },
  14133. addCourseWorksTeacher(i) {
  14134. var typesql;
  14135. if (this.sTool == 32) {
  14136. this.addCourseWorksGongTeacher(
  14137. this.toolindex,
  14138. this.studyJuri[0].cover[0].url,
  14139. this.sTool
  14140. );
  14141. return;
  14142. }
  14143. if (this.fileType === 0) {
  14144. typesql = 1;
  14145. } else if (this.fileType === 1) {
  14146. typesql = 4;
  14147. } else if (this.fileType === 2) {
  14148. typesql = 5;
  14149. } else if (this.fileType === 3) {
  14150. typesql = 12;
  14151. }
  14152. if (this.sTool == 50) {
  14153. this.addCourseWorksGongPl(
  14154. this.toolindex,
  14155. this.studyJuri[0].cover[0].url,
  14156. this.sTool,
  14157. typesql
  14158. );
  14159. return;
  14160. }
  14161. if (!this.studyJuri[0].cover[0].url) {
  14162. this.$message.error("请上传文件");
  14163. return;
  14164. }
  14165. let params = [
  14166. {
  14167. uid: this.sStudent.userid,
  14168. cid: this.id,
  14169. stage: this.courseType,
  14170. task: i,
  14171. tool: this.toolindex,
  14172. content: this.studyJuri[0].cover[0].url,
  14173. type: typesql,
  14174. ateacher: this.userid,
  14175. },
  14176. ];
  14177. this.ajax
  14178. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14179. .then((res) => {
  14180. this.$message({
  14181. message: "提交成功",
  14182. type: "success",
  14183. });
  14184. this.studyJuri[0].cover = [];
  14185. this.dialogVisibleWorks = false;
  14186. this.getCourseDetail(2);
  14187. })
  14188. .catch((err) => {
  14189. this.$message.error("提交失败");
  14190. console.error(err);
  14191. });
  14192. },
  14193. selectUploadStudent(type) {
  14194. const loading = this.$loading.service({
  14195. background: "rgba(255, 255, 255, 0.7)",
  14196. target: document.body,
  14197. });
  14198. let params = {
  14199. cid: this.uploadCid,
  14200. oid: this.oid,
  14201. cn: "",
  14202. };
  14203. this.ajax
  14204. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14205. .then((res) => {
  14206. loading.close();
  14207. var studentK = [];
  14208. if (this.isWorksS[this.toolindex].length > 0) {
  14209. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14210. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14211. }
  14212. studentK = studentK.join(",");
  14213. }
  14214. this.uploadStudentJuri = res.data[0].filter((el) => {
  14215. return studentK.indexOf(el.userid) == -1;
  14216. });
  14217. if (this.worksSName && this.worksSid) {
  14218. this.uploadStudentJuri.push({
  14219. userid: this.worksSid,
  14220. name: this.worksSName,
  14221. });
  14222. }
  14223. if (type == 1) {
  14224. this.plworkFile = [];
  14225. this.dialogVisibleSname = true;
  14226. } else if (type == 2) {
  14227. this.dialogVisiblePl = true;
  14228. }
  14229. })
  14230. .catch((err) => {
  14231. loading.close();
  14232. console.error(err);
  14233. });
  14234. },
  14235. selectPickStudent() {
  14236. const loading = this.$loading.service({
  14237. background: "rgba(255, 255, 255, 0.7)",
  14238. target: document.body,
  14239. });
  14240. let params = {
  14241. cid: this.uploadCid,
  14242. oid: this.oid,
  14243. cn: "",
  14244. };
  14245. this.ajax
  14246. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14247. .then((res) => {
  14248. loading.close();
  14249. this.uploadStudentJuri = res.data[0];
  14250. this.dialogVisiblePickPeople = true;
  14251. })
  14252. .catch((err) => {
  14253. loading.close();
  14254. console.error(err);
  14255. });
  14256. },
  14257. arrayToArray(arrayo, arrayt) {
  14258. let array1 = arrayo;
  14259. let array2 = arrayt;
  14260. let commonElements = [];
  14261. for (let i = 0; i < array1.length; i++) {
  14262. for (let j = 0; j < array2.length; j++) {
  14263. if (array1[i] === array2[j]) {
  14264. commonElements.push(array1[i]);
  14265. }
  14266. }
  14267. }
  14268. return commonElements;
  14269. },
  14270. selectWorksStudent() {
  14271. let params = {
  14272. oid: this.oid,
  14273. cid: this.courseDetail.juri,
  14274. };
  14275. this.ajax
  14276. .get(this.$store.state.api + "selectWorksStudent", params)
  14277. .then((res) => {
  14278. var a = res.data[0];
  14279. for (var i = 0; i < this.isWorksS.length; i++) {
  14280. this.noWorksS[i] = [];
  14281. var studentK = [];
  14282. if (this.isWorksS[i].length > 0) {
  14283. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14284. studentK.push(this.isWorksS[i][z].uid);
  14285. }
  14286. studentK = studentK.join(",");
  14287. for (var j = 0; j < a.length; j++) {
  14288. if (studentK.indexOf(a[j].userid) == -1) {
  14289. if (this.tcid) {
  14290. // a[j].classid.indexOf(this.tcid) != -1
  14291. if (
  14292. this.arrayToArray(
  14293. a[j].classid.split(","),
  14294. this.tcid.split(",")
  14295. ).length
  14296. ) {
  14297. this.noWorksS[i].push({
  14298. student: a[j].name,
  14299. userid: a[j].userid,
  14300. });
  14301. }
  14302. } else {
  14303. this.noWorksS[i].push({
  14304. student: a[j].name,
  14305. userid: a[j].userid,
  14306. });
  14307. }
  14308. }
  14309. }
  14310. } else {
  14311. for (var k = 0; k < a.length; k++) {
  14312. if (this.tcid) {
  14313. if (
  14314. this.arrayToArray(
  14315. a[k].classid.split(","),
  14316. this.tcid.split(",")
  14317. ).length
  14318. ) {
  14319. this.noWorksS[i].push({
  14320. student: a[k].name,
  14321. userid: a[k].userid,
  14322. });
  14323. }
  14324. } else {
  14325. this.noWorksS[i].push({
  14326. student: a[k].name,
  14327. userid: a[k].userid,
  14328. });
  14329. }
  14330. }
  14331. }
  14332. }
  14333. this.$forceUpdate();
  14334. if (
  14335. Object.keys(this.commentDetail).length &&
  14336. Object.keys(this.commentIndexJson).length &&
  14337. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14338. ) {
  14339. let a = 1;
  14340. let c = this.commentIndexJson;
  14341. if (
  14342. this.commentIndexJson.gindex ||
  14343. this.commentIndexJson.gindex === 0
  14344. ) {
  14345. for (
  14346. var i = 0;
  14347. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14348. i++
  14349. ) {
  14350. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14351. groupA: for (var k = 0; k < _el.length; k++) {
  14352. let el = _el[k];
  14353. if (el.wid == this.commentDetail.wid) {
  14354. a = 2;
  14355. this.commentOther(
  14356. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14357. this.commentIndexJson.toolIndex,
  14358. k,
  14359. this.commentIndexJson.gindex
  14360. );
  14361. break groupA;
  14362. }
  14363. }
  14364. }
  14365. if (a === 1) {
  14366. this.commentDetail = [];
  14367. this.commentIndexJson = {};
  14368. this.commentDialogVisible = false;
  14369. this.$message("此作业已被删除");
  14370. }
  14371. } else {
  14372. if (this.isGroup && this.commentIndexJson.gid) {
  14373. groupA: for (
  14374. var i = 0;
  14375. i < this.courseGroup.group.length;
  14376. i++
  14377. ) {
  14378. let _group = this.courseGroup.group[i];
  14379. if (_group.id == this.commentIndexJson.gid) {
  14380. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14381. for (var k = 0; k < _el2.length; k++) {
  14382. let el2 = _el2[k];
  14383. if (el2.wid == this.commentDetail.wid) {
  14384. a = 2;
  14385. this.commentOther(
  14386. _el2[k],
  14387. this.commentIndexJson.toolIndex,
  14388. k,
  14389. null,
  14390. this.commentIndexJson.gid
  14391. );
  14392. break groupA;
  14393. }
  14394. }
  14395. }
  14396. }
  14397. }
  14398. if (a == 1) {
  14399. for (
  14400. var i = 0;
  14401. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14402. i++
  14403. ) {
  14404. let el =
  14405. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14406. if (el.wid == this.commentDetail.wid) {
  14407. a = 2;
  14408. this.commentOther(
  14409. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14410. this.commentIndexJson.toolIndex,
  14411. i
  14412. );
  14413. break;
  14414. }
  14415. }
  14416. }
  14417. if (a === 1) {
  14418. this.commentDetail = [];
  14419. this.commentIndexJson = {};
  14420. this.commentDialogVisible = false;
  14421. this.$message("此作业已被删除");
  14422. }
  14423. }
  14424. }
  14425. })
  14426. .catch((err) => {
  14427. console.error(err);
  14428. });
  14429. },
  14430. selectStudent() {
  14431. //学生查看自己作业
  14432. let params = {
  14433. uid: this.userid,
  14434. cid: this.id,
  14435. s: this.courseType,
  14436. t: this.taskCount,
  14437. };
  14438. this.ajax
  14439. .get(this.$store.state.api + "selectStudentWorks", params)
  14440. .then((res) => {
  14441. var a =
  14442. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14443. this.taskCount
  14444. ].toolChoose;
  14445. var b = res.data[0];
  14446. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14447. var y = [
  14448. "AVI",
  14449. "NAVI",
  14450. "MPEG",
  14451. "ASF",
  14452. "MOV",
  14453. "WMV",
  14454. "3GP",
  14455. "RM",
  14456. "RMVB",
  14457. "FLV",
  14458. "F4V",
  14459. "H.264",
  14460. "H.265",
  14461. "REAL VIDEO",
  14462. "MKV",
  14463. "WebM",
  14464. "HDDVD",
  14465. "MP4",
  14466. "MPG",
  14467. "M4V",
  14468. "MGV",
  14469. "OGV",
  14470. "QTM",
  14471. "STR",
  14472. "AMC",
  14473. "DVX",
  14474. "EVO",
  14475. "DAT",
  14476. "OGG",
  14477. "OGM",
  14478. ];
  14479. for (var i = 0; i < a.length; i++) {
  14480. this.workStudent[i] = [];
  14481. for (var j = 0; j < b.length; j++) {
  14482. if (i == b[j].tool) {
  14483. if (
  14484. (b[j].type == 1 ||
  14485. b[j].type == 4 ||
  14486. b[j].type == 5 ||
  14487. b[j].type == 6 ||
  14488. b[j].type == 12 ||
  14489. b[j].type == 7) &&
  14490. a[i].tool[0] != 15 &&
  14491. a[i].tool[0] != 4 &&
  14492. a[i].tool[0] != 45 &&
  14493. a[i].tool[0] != 50 &&
  14494. a[i].tool[0] != 32 &&
  14495. a[i].tool[0] != 57 &&
  14496. a[i].tool[0] != 52 &&
  14497. a[i].tool[0] != 69
  14498. ) {
  14499. if (
  14500. c.indexOf(
  14501. b[j].content
  14502. .split(".")
  14503. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14504. ) != -1 &&
  14505. a[i].tool[0] == 16 &&
  14506. b[j].atool != 50
  14507. ) {
  14508. this.workStudent[i].push({
  14509. works: b[j].content,
  14510. sName: b[j].name,
  14511. score: b[j].score,
  14512. img: b[j].img,
  14513. type: 1,
  14514. time: b[j].time,
  14515. userid: b[j].userid,
  14516. wid: b[j].id,
  14517. });
  14518. } else if (
  14519. y.indexOf(
  14520. b[j].content
  14521. .split(".")
  14522. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14523. ) != -1 &&
  14524. a[i].tool[0] == 16 &&
  14525. b[j].atool != 50
  14526. ) {
  14527. this.workStudent[i].push({
  14528. userid: b[j].userid,
  14529. wid: b[j].id,
  14530. works: b[j].content,
  14531. sName: b[j].name,
  14532. score: b[j].score,
  14533. img: b[j].img,
  14534. type: 3,
  14535. time: b[j].time,
  14536. });
  14537. } else if (b[j].type == 6 && b[j].atool != 50) {
  14538. this.workStudent[i].push({
  14539. userid: b[j].userid,
  14540. wid: b[j].id,
  14541. works: b[j].content,
  14542. sName: b[j].name,
  14543. score: b[j].score,
  14544. img: b[j].img,
  14545. type: 4,
  14546. time: b[j].time,
  14547. });
  14548. } else if (b[j].type == 7 && b[j].atool != 50) {
  14549. this.workStudent[i].push({
  14550. userid: b[j].userid,
  14551. wid: b[j].id,
  14552. works: b[j].content,
  14553. sName: b[j].name,
  14554. score: b[j].score,
  14555. img: b[j].img,
  14556. type: 5,
  14557. time: b[j].time,
  14558. });
  14559. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14560. this.workStudent[i].push({
  14561. works: b[j].content,
  14562. sName: b[j].name,
  14563. score: b[j].score,
  14564. img: b[j].img,
  14565. type: 12,
  14566. time: b[j].time,
  14567. userid: b[j].userid,
  14568. wid: b[j].id,
  14569. });
  14570. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14571. this.workStudent[i].push({
  14572. works: b[j].content,
  14573. sName: b[j].name,
  14574. score: b[j].score,
  14575. img: b[j].img,
  14576. type: 0,
  14577. time: b[j].time,
  14578. userid: b[j].userid,
  14579. wid: b[j].id,
  14580. });
  14581. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14582. this.workStudent[i].push({
  14583. works: b[j].content,
  14584. sName: b[j].name,
  14585. score: b[j].score,
  14586. img: b[j].img,
  14587. type: 0,
  14588. time: b[j].time,
  14589. userid: b[j].userid,
  14590. wid: b[j].id,
  14591. });
  14592. }
  14593. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14594. this.workStudent[i].push({
  14595. works: b[j].content,
  14596. sName: b[j].name,
  14597. score: b[j].score,
  14598. img: b[j].img,
  14599. type: 2,
  14600. time: b[j].time,
  14601. userid: b[j].userid,
  14602. wid: b[j].id,
  14603. });
  14604. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14605. this.workStudent[i].push({
  14606. works: b[j].content,
  14607. sName: b[j].name,
  14608. score: b[j].score,
  14609. img: b[j].img,
  14610. type: 20,
  14611. time: b[j].time,
  14612. userid: b[j].userid,
  14613. wid: b[j].id,
  14614. });
  14615. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14616. //问卷
  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: 2,
  14623. time: b[j].time,
  14624. userid: b[j].userid,
  14625. wid: b[j].id,
  14626. });
  14627. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14628. //选择题
  14629. this.workStudent[i].push({
  14630. works: b[j].content,
  14631. sName: b[j].name,
  14632. score: b[j].score,
  14633. img: b[j].img,
  14634. type: 8,
  14635. time: b[j].time,
  14636. userid: b[j].userid,
  14637. wid: b[j].id,
  14638. });
  14639. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14640. //选择题
  14641. this.workStudent[i].push({
  14642. works: b[j].content,
  14643. sName: b[j].name,
  14644. score: b[j].score,
  14645. img: b[j].img,
  14646. type: 9,
  14647. time: b[j].time,
  14648. userid: b[j].userid,
  14649. wid: b[j].id,
  14650. });
  14651. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14652. //选择题
  14653. this.workStudent[i].push({
  14654. works: b[j].content,
  14655. sName: b[j].name,
  14656. score: b[j].score,
  14657. img: b[j].img,
  14658. type: 10,
  14659. time: b[j].time,
  14660. userid: b[j].userid,
  14661. wid: b[j].id,
  14662. });
  14663. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14664. //选择题
  14665. this.workStudent[i].push({
  14666. works: b[j].content,
  14667. sName: b[j].name,
  14668. score: b[j].score,
  14669. img: b[j].img,
  14670. type: 13,
  14671. time: b[j].time,
  14672. userid: b[j].userid,
  14673. wid: b[j].id,
  14674. });
  14675. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14676. //选择题
  14677. this.workStudent[i].push({
  14678. works: b[j].content,
  14679. sName: b[j].name,
  14680. score: b[j].score,
  14681. img: b[j].img,
  14682. type: 12,
  14683. time: b[j].time,
  14684. userid: b[j].userid,
  14685. wid: b[j].id,
  14686. });
  14687. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14688. //选择题
  14689. this.workStudent[i].push({
  14690. works: b[j].content,
  14691. sName: b[j].name,
  14692. score: b[j].score,
  14693. img: b[j].img,
  14694. type: 12,
  14695. time: b[j].time,
  14696. userid: b[j].userid,
  14697. wid: b[j].id,
  14698. });
  14699. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14700. //选择题
  14701. this.workStudent[i].push({
  14702. works: b[j].content,
  14703. sName: b[j].name,
  14704. score: b[j].score,
  14705. img: b[j].img,
  14706. type: 15,
  14707. time: b[j].time,
  14708. userid: b[j].userid,
  14709. wid: b[j].id,
  14710. });
  14711. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14712. //英语写作
  14713. this.workStudent[i].push({
  14714. works: b[j].content,
  14715. sName: b[j].name,
  14716. score: b[j].score,
  14717. img: b[j].img,
  14718. type: 16,
  14719. time: b[j].time,
  14720. userid: b[j].userid,
  14721. wid: b[j].id,
  14722. aiCode: b[j].aiCode,
  14723. teacherCode: b[j].teacherCode
  14724. });
  14725. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14726. //英语口语
  14727. this.workStudent[i].push({
  14728. works: b[j].content,
  14729. sName: b[j].name,
  14730. score: b[j].score,
  14731. img: b[j].img,
  14732. type: 17,
  14733. time: b[j].time,
  14734. userid: b[j].userid,
  14735. wid: b[j].id,
  14736. });
  14737. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14738. //英语口语
  14739. this.workStudent[i].push({
  14740. works: b[j].content,
  14741. sName: b[j].name,
  14742. score: b[j].score,
  14743. img: b[j].img,
  14744. type: 14,
  14745. time: b[j].time,
  14746. userid: b[j].userid,
  14747. wid: b[j].id,
  14748. });
  14749. }
  14750. }
  14751. }
  14752. }
  14753. })
  14754. .catch((err) => {
  14755. console.error(err);
  14756. });
  14757. },
  14758. openVideo(w) {
  14759. this.videoDetail = {};
  14760. this.playerOptions1.sources[0].src = w.works;
  14761. this.videoDetail = this.playerOptions1;
  14762. this.videoVisible = true;
  14763. },
  14764. isLikes(wid, uid, t, c, isLikes,sName) {
  14765. if (isLikes == false) {
  14766. let params = [
  14767. {
  14768. wid: wid,
  14769. lid: uid,
  14770. t: t,
  14771. c: c,
  14772. },
  14773. ];
  14774. this.ajax
  14775. .post(this.$store.state.api + "insertComment", params)
  14776. .then((res) => {
  14777. this.$message({
  14778. message: "点赞成功",
  14779. type: "success",
  14780. });
  14781. this.selectSWorks();
  14782. this.selectStudent();
  14783. if(this.tType==1){
  14784. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14785. }
  14786. })
  14787. .catch((err) => {
  14788. this.$message.error("点赞失败");
  14789. console.error(err);
  14790. });
  14791. } else {
  14792. let params = {
  14793. wid: wid,
  14794. lid: uid,
  14795. type: t,
  14796. };
  14797. this.ajax
  14798. .get(this.$store.state.api + "deleteComment", params)
  14799. .then((res) => {
  14800. this.$message({
  14801. message: "取消点赞成功",
  14802. type: "success",
  14803. });
  14804. this.selectSWorks();
  14805. this.selectStudent();
  14806. })
  14807. .catch((err) => {
  14808. console.error(err);
  14809. });
  14810. }
  14811. },
  14812. deleteComment(wid) {
  14813. this.$confirm("确定删除此评论吗?", "提示", {
  14814. confirmButtonText: "确定",
  14815. cancelButtonText: "取消",
  14816. type: "warning",
  14817. })
  14818. .then(() => {
  14819. let params = {
  14820. id: wid,
  14821. };
  14822. this.ajax
  14823. .get(this.$store.state.api + "deleteComment2", params)
  14824. .then((res) => {
  14825. this.$message({
  14826. message: "删除评论成功",
  14827. type: "success",
  14828. });
  14829. this.selectSWorks();
  14830. this.selectStudent();
  14831. })
  14832. .catch((err) => {
  14833. console.error(err);
  14834. });
  14835. })
  14836. .catch(() => {});
  14837. },
  14838. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14839. this.commentIndexJson = {
  14840. toolIndex: toolIndex,
  14841. wIndex: wIndex,
  14842. gindex: gindex,
  14843. gid: gid,
  14844. };
  14845. this.commentDetail = [];
  14846. this.commentDialogVisible = true;
  14847. this.commentDetail = w;
  14848. if (w.works && w.type == 1) {
  14849. // this.pptImgUrl = "";
  14850. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14851. if (
  14852. a.indexOf(
  14853. w.works
  14854. .split(".")
  14855. [w.works.split(".").length - 1].toLocaleUpperCase()
  14856. ) != -1
  14857. ) {
  14858. let _uuurl = await this.checkLink(w.works);
  14859. this.pptImgUrl =
  14860. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14861. this.showPDF = false;
  14862. } else if (
  14863. w.works
  14864. .split(".")
  14865. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14866. ) {
  14867. this.pptImgUrl = w.works;
  14868. this.showPDF = true;
  14869. }
  14870. } else if (w.works && w.type == 3) {
  14871. this.videoDetail = {};
  14872. this.playerOptions1.sources[0].src = w.works;
  14873. this.videoDetail = this.playerOptions1;
  14874. // this.videoVisible = true;
  14875. } else if (w.works && w.type == 4) {
  14876. this.eScore = JSON.parse(w.works);
  14877. this.rateJson =
  14878. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14879. this.taskCount
  14880. ].toolChoose[toolIndex].rateJson;
  14881. } else if (w.works && w.type == 10) {
  14882. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14883. } else if (w.works && w.type == 13) {
  14884. this.wordJson =
  14885. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14886. this.taskCount
  14887. ].toolChoose[toolIndex].wordJson;
  14888. }
  14889. },
  14890. async openScore(w, index) {
  14891. this.wScore = 0;
  14892. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14893. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14894. this.commentDetail = [];
  14895. if(w.type == 17){
  14896. this.dialogVisibleENScore = true;
  14897. }else{
  14898. this.dialogVisibleScore = true;
  14899. }
  14900. this.commentDetail = w;
  14901. if (w.works && w.type == 1) {
  14902. this.pptImgUrl = "";
  14903. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14904. if (
  14905. a.indexOf(
  14906. w.works
  14907. .split(".")
  14908. [w.works.split(".").length - 1].toLocaleUpperCase()
  14909. ) != -1
  14910. ) {
  14911. let _uuurl = await this.checkLink(w.works);
  14912. this.pptImgUrl =
  14913. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14914. this.showPDF = false;
  14915. } else if (
  14916. w.works
  14917. .split(".")
  14918. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14919. ) {
  14920. this.pptImgUrl = w.works;
  14921. this.showPDF = true;
  14922. }
  14923. } else if (w.works && w.type == 3) {
  14924. this.videoDetail = {};
  14925. this.playerOptions1.sources[0].src = w.works;
  14926. this.videoDetail = this.playerOptions1;
  14927. }else if(w.type == 17){
  14928. let englishVoiceJson = {}
  14929. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14930. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14931. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14932. .toolChoose[index].englishVoiceJson
  14933. : {};
  14934. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14935. }
  14936. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14937. },
  14938. addComment(wid, uid, t,detail) {
  14939. if (this.commentText == "") {
  14940. this.$message.error("请输入评论");
  14941. return;
  14942. }
  14943. let params2 = [
  14944. {
  14945. wid: wid,
  14946. lid: uid,
  14947. t: t,
  14948. },
  14949. ];
  14950. this.ajax
  14951. .post(this.$store.state.api + "getComment", params2)
  14952. .then((res) => {
  14953. if (res.data[0].length > 0) {
  14954. this.$message.error("一个作业只能评论一条");
  14955. } else {
  14956. let params = [
  14957. {
  14958. wid: wid,
  14959. lid: uid,
  14960. t: t,
  14961. c: this.commentText,
  14962. },
  14963. ];
  14964. this.ajax
  14965. .post(this.$store.state.api + "insertComment", params)
  14966. .then((res) => {
  14967. this.$message({
  14968. message: "评论成功",
  14969. type: "success",
  14970. });
  14971. this.commentText = "";
  14972. this.selectSWorks();
  14973. this.selectStudent();
  14974. if(this.tType!=2){
  14975. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14976. }
  14977. })
  14978. .catch((err) => {
  14979. this.$message.error("评论失败");
  14980. console.error(err);
  14981. });
  14982. }
  14983. })
  14984. .catch((err) => {
  14985. // this.$message.error("评论失败");
  14986. console.error(err);
  14987. });
  14988. },
  14989. scoreWork(wid,sName) {
  14990. if (this.wScore == 0) {
  14991. this.$message.error("请评分");
  14992. return;
  14993. }
  14994. let params = [
  14995. {
  14996. wid: wid,
  14997. score: JSON.stringify({
  14998. wScore: this.wScore,
  14999. detail: this.scoreDetail,
  15000. }),
  15001. },
  15002. ];
  15003. this.ajax
  15004. .post(this.$store.state.api + "scoreWork", params)
  15005. .then((res) => {
  15006. this.$message({
  15007. message: "评分成功",
  15008. type: "success",
  15009. });
  15010. this.wScore = 0;
  15011. this.scoreDetail = "";
  15012. this.dialogVisibleScore = false;
  15013. this.selectSWorks();
  15014. this.selectStudent();
  15015. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15016. })
  15017. .catch((err) => {
  15018. this.$message.error("评分失败");
  15019. console.error(err);
  15020. });
  15021. },
  15022. openXz(w, i) {
  15023. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15024. .taskJson[this.taskCount].toolChoose[i].selectJson
  15025. ? JSON.parse(
  15026. JSON.stringify(
  15027. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15028. this.taskCount
  15029. ].toolChoose[i].selectJson
  15030. )
  15031. )
  15032. : { url: "", select: [], answer: [] };
  15033. var a = w.works.split(",");
  15034. for (var k = 0; k < a.length; k++) {
  15035. a[k] = parseInt(a[k]);
  15036. }
  15037. this.selectAnswer = { answer: a, stu: w.sName };
  15038. this.isSelect = true;
  15039. this.dialogVisibleSelect = true;
  15040. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15041. },
  15042. openSen(w, i) {
  15043. console.log("openSen")
  15044. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15045. this.sentenceList1 = JSON.parse(w.works);
  15046. this.sentenceList1.stuName = w.sName;
  15047. this.dialogVisibleSentence1 = true;
  15048. },
  15049. openPj(w, toolindex) {
  15050. console.log("openPJ")
  15051. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15052. this.isStar = true;
  15053. this.eScore = JSON.parse(w);
  15054. this.rateJson =
  15055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15056. this.taskCount
  15057. ].toolChoose[toolindex].rateJson;
  15058. this.studentEvalDialogVisible = true;
  15059. },
  15060. openEnglishEva(id,i){
  15061. let params = {
  15062. wid: id
  15063. };
  15064. this.ajax
  15065. .get(this.$store.state.api + "selectEngWork", params)
  15066. .then((res) => {
  15067. this.evaEngJson.message = res.data[0][0];
  15068. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15069. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15070. .toolChoose[i].englishList;
  15071. this.engEvaDialogVisible = true;
  15072. })
  15073. .catch((err) => {
  15074. console.error(err);
  15075. });
  15076. },
  15077. deleteWorks(id) {
  15078. this.$confirm("确定删除此作业吗?", "提示", {
  15079. confirmButtonText: "确定",
  15080. cancelButtonText: "取消",
  15081. type: "warning",
  15082. })
  15083. .then(() => {
  15084. let params = [
  15085. {
  15086. id: id,
  15087. },
  15088. ];
  15089. this.ajax
  15090. .post(this.$store.state.api + "deleteCourseWork", params)
  15091. .then((res) => {
  15092. this.$message({
  15093. message: "删除成功",
  15094. type: "success",
  15095. });
  15096. this.selectStudent();
  15097. this.selectSWorks();
  15098. this.selectSLook();
  15099. })
  15100. .catch((err) => {
  15101. this.$message.error("网络异常");
  15102. console.error(err);
  15103. });
  15104. })
  15105. .catch(() => {});
  15106. },
  15107. selectSWorks(gindex) {
  15108. //教师查看全部作业
  15109. let params = {
  15110. cid: this.id,
  15111. s: this.courseType,
  15112. t: this.taskCount,
  15113. };
  15114. this.ajax
  15115. .get(this.$store.state.api + "selectSWorks", params)
  15116. .then((res) => {
  15117. var a =
  15118. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15119. this.taskCount
  15120. ].toolChoose;
  15121. var b = res.data[0];
  15122. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15123. var y = [
  15124. "AVI",
  15125. "NAVI",
  15126. "MPEG",
  15127. "ASF",
  15128. "MOV",
  15129. "WMV",
  15130. "3GP",
  15131. "RM",
  15132. "RMVB",
  15133. "FLV",
  15134. "F4V",
  15135. "H.264",
  15136. "H.265",
  15137. "REAL VIDEO",
  15138. "MKV",
  15139. "WebM",
  15140. "HDDVD",
  15141. "MP4",
  15142. "MPG",
  15143. "M4V",
  15144. "MGV",
  15145. "OGV",
  15146. "QTM",
  15147. "STR",
  15148. "AMC",
  15149. "DVX",
  15150. "EVO",
  15151. "DAT",
  15152. "OGG",
  15153. "OGM",
  15154. ];
  15155. var d = res.data[1];
  15156. var e = res.data[2];
  15157. var f = res.data[3];
  15158. let _worksStudent = [];
  15159. var _worksStudent2 = [];
  15160. for (var i = 0; i < a.length; i++) {
  15161. _worksStudent[i] = [];
  15162. _worksStudent2[i] = [];
  15163. if (
  15164. !this.isCloseList[i] ||
  15165. this.isCloseList[i].isClose == undefined
  15166. ) {
  15167. this.isCloseList[i] = { isClose: 0 };
  15168. }
  15169. this.groupStudent[i] = [];
  15170. this.groupStudentUid[i] = [];
  15171. if (this.isGroup) {
  15172. for (
  15173. var groupI = 0;
  15174. groupI < this.courseGroup.group.length;
  15175. groupI++
  15176. ) {
  15177. this.courseGroup.group[groupI].works[i] = [];
  15178. }
  15179. }
  15180. this.isWorksS[i] = [];
  15181. this.checkJson[i] = [];
  15182. if (a[i].tool[0] == 49) {
  15183. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15184. this.groupStudent[i][gA] = [];
  15185. this.groupStudentUid[i][gA] = [];
  15186. _worksStudent[i][gA] = [];
  15187. _worksStudent2[i][gA] = [];
  15188. this.isCloseList[i][gA] = [];
  15189. // debugger
  15190. for (var g = 0; g < f.length; g++) {
  15191. if (
  15192. f[g].ttype == 2 &&
  15193. this.tcid &&
  15194. this.arrayToArray(
  15195. (f[g].classid ? f[g].classid.split(",") : []),
  15196. this.tcid.split(",")
  15197. ).length == 0
  15198. ) {
  15199. continue;
  15200. }
  15201. let _classId = this.arrayToArray(
  15202. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15203. this.classId ? this.classId.split(",") : []
  15204. )
  15205. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15206. (f[g].classid ? f[g].classid.split(",") : []),
  15207. this.tcid.split(",")
  15208. ).length !== 0 || this.arrayToArray(
  15209. (f[g].classid ? f[g].classid.split(",") : []),
  15210. _classId
  15211. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15212. this.groupStudent[i][gA].push(f[g]);
  15213. this.groupStudentUid[i][gA].push(f[g].userid);
  15214. }
  15215. }
  15216. }
  15217. this.$forceUpdate();
  15218. }
  15219. for (var j = 0; j < b.length; j++) {
  15220. if (
  15221. b[j].ttype == 2 &&
  15222. this.tcid &&
  15223. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15224. .length == 0
  15225. ) {
  15226. continue;
  15227. }
  15228. var likesCount = 0;
  15229. var commentCount = 0;
  15230. var isLikes = false;
  15231. var commentJson = [];
  15232. var likeJson = [];
  15233. var data = b[j];
  15234. if (i == b[j].tool) {
  15235. if (data.type == 2 && a[i].tool[0] == 4) {
  15236. // if(JSON.parse(data.content)[0].anwer){
  15237. var checkL =
  15238. JSON.parse(data.content)[0].anwer instanceof Array
  15239. ? JSON.parse(data.content)[0].anwer
  15240. : JSON.parse(data.content)[0].anwer.split(",");
  15241. for (var z = 0; z < checkL.length; z++) {
  15242. if (!this.checkJson[i][z]) {
  15243. this.checkJson[i].push({
  15244. checkCount: [],
  15245. checkPerson: [],
  15246. rightPerson: [],
  15247. });
  15248. }
  15249. if (!this.checkJson[i][z].checkCount.length) {
  15250. this.checkJson[i][z].checkCount = [];
  15251. let _askItemCount = JSON.parse(data.content)[0].askJson
  15252. .askJson[z].askItem;
  15253. for (var aic = 0; aic < _askItemCount; aic++) {
  15254. this.checkJson[i][z].checkCount.push(0);
  15255. }
  15256. }
  15257. if (checkL[z] instanceof Array) {
  15258. if (
  15259. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15260. checkL[z].sort().join(",")
  15261. ) {
  15262. this.checkJson[i][z].rightPerson.push(data.name);
  15263. }
  15264. for (var q = 0; q < checkL[z].length; q++) {
  15265. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15266. ? this.checkJson[i][z].checkPerson[
  15267. parseInt(checkL[z][q])
  15268. ].push(data.name)
  15269. : (this.checkJson[i][z].checkPerson[
  15270. parseInt(checkL[z][q])
  15271. ] = [data.name]);
  15272. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15273. ? this.checkJson[i][z].checkCount[
  15274. parseInt(checkL[z][q])
  15275. ]++
  15276. : (this.checkJson[i][z].checkCount[
  15277. parseInt(checkL[z][q])
  15278. ] = 1);
  15279. }
  15280. } else {
  15281. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15282. this.checkJson[i][z].rightPerson.push(data.name);
  15283. }
  15284. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15285. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15286. ? this.checkJson[i][z].checkPerson[
  15287. parseInt(checkL[z])
  15288. ].push(data.name)
  15289. : (this.checkJson[i][z].checkPerson[
  15290. parseInt(checkL[z])
  15291. ] = [data.name]);
  15292. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15293. ? this.checkJson[i][z].checkCount[
  15294. parseInt(checkL[z])
  15295. ]++
  15296. : (this.checkJson[i][z].checkCount[
  15297. parseInt(checkL[z])
  15298. ] = 1);
  15299. }
  15300. }
  15301. }
  15302. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15303. var checkL = JSON.parse(data.content)[0].anwer;
  15304. for (var z = 0; z < checkL.length; z++) {
  15305. if (!this.checkJson[i][z]) {
  15306. this.checkJson[i].push({
  15307. checkCount: [],
  15308. checkPerson: [],
  15309. rightPerson: [],
  15310. });
  15311. }
  15312. if (!this.checkJson[i][z].checkCount.length) {
  15313. this.checkJson[i][z].checkCount = [];
  15314. let _askItemCount = JSON.parse(data.content)[0].testJson
  15315. .testJson[z].testItem;
  15316. for (var aic = 0; aic < _askItemCount; aic++) {
  15317. this.checkJson[i][z].checkCount.push(0);
  15318. }
  15319. }
  15320. if (checkL[z] instanceof Array) {
  15321. if (
  15322. JSON.parse(data.content)[0]
  15323. .testJson.testJson[z].answer.sort()
  15324. .join(",") == checkL[z].sort().join(",")
  15325. ) {
  15326. this.checkJson[i][z].rightPerson.push(data.name);
  15327. }
  15328. for (var q = 0; q < checkL[z].length; q++) {
  15329. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15330. ? this.checkJson[i][z].checkPerson[
  15331. parseInt(checkL[z][q])
  15332. ].push(data.name)
  15333. : (this.checkJson[i][z].checkPerson[
  15334. parseInt(checkL[z][q])
  15335. ] = [data.name]);
  15336. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15337. ? this.checkJson[i][z].checkCount[
  15338. parseInt(checkL[z][q])
  15339. ]++
  15340. : (this.checkJson[i][z].checkCount[
  15341. parseInt(checkL[z][q])
  15342. ] = 1);
  15343. }
  15344. } else {
  15345. if (
  15346. JSON.parse(data.content)[0].testJson.testJson[z]
  15347. .answer == checkL[z]
  15348. ) {
  15349. this.checkJson[i][z].rightPerson.push(data.name);
  15350. }
  15351. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15352. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15353. ? this.checkJson[i][z].checkPerson[
  15354. parseInt(checkL[z])
  15355. ].push(data.name)
  15356. : (this.checkJson[i][z].checkPerson[
  15357. parseInt(checkL[z])
  15358. ] = [data.name]);
  15359. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15360. ? this.checkJson[i][z].checkCount[
  15361. parseInt(checkL[z])
  15362. ]++
  15363. : (this.checkJson[i][z].checkCount[
  15364. parseInt(checkL[z])
  15365. ] = 1);
  15366. }
  15367. }
  15368. }
  15369. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15370. var checkL = JSON.parse(data.content);
  15371. for (var z = 0; z < checkL.length; z++) {
  15372. if (!this.checkJson[i][z]) {
  15373. this.checkJson[i].push({
  15374. checkCount: [],
  15375. checkPerson: [],
  15376. rightPerson: [],
  15377. });
  15378. }
  15379. this.checkJson[i][z].checkPerson.push(data.name);
  15380. if (
  15381. checkL[z].chooseSenList.toString() ==
  15382. checkL[z].rightAnswer.toString()
  15383. ) {
  15384. this.checkJson[i][z].rightPerson.push(data.name);
  15385. }
  15386. }
  15387. }
  15388. for (var k = 0; k < d.length; k++) {
  15389. //点赞
  15390. if (d[k].workId == b[j].id) {
  15391. likesCount++;
  15392. likeJson.push(d[k])
  15393. if (d[k].likesId == this.userid) {
  15394. isLikes = true;
  15395. }
  15396. }
  15397. }
  15398. for (var l = 0; l < e.length; l++) {
  15399. //评论
  15400. if (e[l].workId == b[j].id) {
  15401. if (e[l].comment != "") {
  15402. commentCount++;
  15403. commentJson.push({
  15404. commentText: e[l].comment,
  15405. commentTime: e[l].commentTime,
  15406. commentPeople: e[l].commentPeople,
  15407. userid: e[l].userid,
  15408. wid: e[l].id,
  15409. });
  15410. }
  15411. }
  15412. }
  15413. if (
  15414. (b[j].type == 1 ||
  15415. b[j].type == 4 ||
  15416. b[j].type == 5 ||
  15417. b[j].type == 6 ||
  15418. b[j].type == 12 ||
  15419. b[j].type == 7) &&
  15420. a[i].tool[0] != 15 &&
  15421. a[i].tool[0] != 4 &&
  15422. a[i].tool[0] != 45 &&
  15423. a[i].tool[0] != 50 &&
  15424. a[i].tool[0] != 32 &&
  15425. a[i].tool[0] != 57 &&
  15426. a[i].tool[0] != 52
  15427. ) {
  15428. if (
  15429. c.indexOf(
  15430. b[j].content
  15431. .split(".")
  15432. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15433. ) != -1 &&
  15434. a[i].tool[0] == 16 &&
  15435. b[j].atool != 50
  15436. ) {
  15437. let _works = {
  15438. userid: b[j].userid,
  15439. ateacher: b[j].ateacher,
  15440. wid: b[j].id,
  15441. works: b[j].content,
  15442. sName: b[j].name,
  15443. type: 1,
  15444. ttype:b[j].ttype,
  15445. time: b[j].time,
  15446. score: b[j].score,
  15447. img: b[j].img,
  15448. likesCount: likesCount,
  15449. commentCount: commentCount,
  15450. isLikes: isLikes,
  15451. commentJson: commentJson,
  15452. likeJson:likeJson
  15453. };
  15454. if (this.isGroup) {
  15455. let isGw = 1;
  15456. for (
  15457. var groupI = 0;
  15458. groupI < this.courseGroup.group.length;
  15459. groupI++
  15460. ) {
  15461. let gid = this.courseGroup.group[groupI].id;
  15462. if (
  15463. this.courseGroupStudentUid[gid].indexOf(
  15464. b[j].userid
  15465. ) != -1
  15466. ) {
  15467. isGw = 2;
  15468. this.courseGroup.group[groupI].works[i].push(_works);
  15469. break;
  15470. }
  15471. }
  15472. if (isGw == 1) {
  15473. _worksStudent[i].push(_works);
  15474. }
  15475. } else {
  15476. _worksStudent[i].push(_works);
  15477. }
  15478. _worksStudent2[i].push(_works);
  15479. this.isWorksS[i].push({
  15480. uid: b[j].userid,
  15481. sName: b[j].name,
  15482. });
  15483. } else if (
  15484. y.indexOf(
  15485. b[j].content
  15486. .split(".")
  15487. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15488. ) != -1 &&
  15489. a[i].tool[0] == 16 &&
  15490. b[j].atool != 50
  15491. ) {
  15492. let _works = {
  15493. userid: b[j].userid,
  15494. ateacher: b[j].ateacher,
  15495. wid: b[j].id,
  15496. works: b[j].content,
  15497. sName: b[j].name,
  15498. type: 3,
  15499. ttype:b[j].ttype,
  15500. time: b[j].time,
  15501. score: b[j].score,
  15502. img: b[j].img,
  15503. likesCount: likesCount,
  15504. commentCount: commentCount,
  15505. isLikes: isLikes,
  15506. commentJson: commentJson,
  15507. likeJson:likeJson
  15508. };
  15509. if (this.isGroup) {
  15510. let isGw = 1;
  15511. for (
  15512. var groupI = 0;
  15513. groupI < this.courseGroup.group.length;
  15514. groupI++
  15515. ) {
  15516. let gid = this.courseGroup.group[groupI].id;
  15517. if (
  15518. this.courseGroupStudentUid[gid].indexOf(
  15519. b[j].userid
  15520. ) != -1
  15521. ) {
  15522. isGw = 2;
  15523. this.courseGroup.group[groupI].works[i].push(_works);
  15524. break;
  15525. }
  15526. }
  15527. if (isGw == 1) {
  15528. _worksStudent[i].push(_works);
  15529. }
  15530. } else {
  15531. _worksStudent[i].push(_works);
  15532. }
  15533. _worksStudent2[i].push(_works);
  15534. this.isWorksS[i].push({
  15535. uid: b[j].userid,
  15536. sName: b[j].name,
  15537. });
  15538. } else if (b[j].type == 6 && b[j].atool != 50) {
  15539. let _works = {
  15540. userid: b[j].userid,
  15541. ateacher: b[j].ateacher,
  15542. wid: b[j].id,
  15543. works: b[j].content,
  15544. sName: b[j].name,
  15545. type: 4,
  15546. ttype:b[j].ttype,
  15547. time: b[j].time,
  15548. score: b[j].score,
  15549. img: b[j].img,
  15550. likesCount: likesCount,
  15551. commentCount: commentCount,
  15552. isLikes: isLikes,
  15553. commentJson: commentJson,
  15554. likeJson:likeJson
  15555. };
  15556. _worksStudent[i].push(_works);
  15557. _worksStudent2[i].push(_works);
  15558. this.isWorksS[i].push({
  15559. uid: b[j].userid,
  15560. sName: b[j].name,
  15561. });
  15562. } else if (b[j].type == 7 && b[j].atool != 50) {
  15563. let _work = {
  15564. userid: b[j].userid,
  15565. ateacher: b[j].ateacher,
  15566. wid: b[j].id,
  15567. works: b[j].content,
  15568. sName: b[j].name,
  15569. type: 5,
  15570. ttype:b[j].ttype,
  15571. time: b[j].time,
  15572. score: b[j].score,
  15573. img: b[j].img,
  15574. likesCount: likesCount,
  15575. commentCount: commentCount,
  15576. isLikes: isLikes,
  15577. commentJson: commentJson,
  15578. likeJson:likeJson
  15579. };
  15580. _worksStudent[i].push(_work);
  15581. _worksStudent2[i].push(_work);
  15582. this.isWorksS[i].push({
  15583. uid: b[j].userid,
  15584. sName: b[j].name,
  15585. });
  15586. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15587. let _works = {
  15588. userid: b[j].userid,
  15589. ateacher: b[j].ateacher,
  15590. wid: b[j].id,
  15591. works: b[j].content,
  15592. sName: b[j].name,
  15593. type: 12,
  15594. ttype:b[j].ttype,
  15595. time: b[j].time,
  15596. score: b[j].score,
  15597. img: b[j].img,
  15598. likesCount: likesCount,
  15599. commentCount: commentCount,
  15600. isLikes: isLikes,
  15601. commentJson: commentJson,
  15602. likeJson:likeJson
  15603. };
  15604. if (this.isGroup) {
  15605. let isGw = 1;
  15606. for (
  15607. var groupI = 0;
  15608. groupI < this.courseGroup.group.length;
  15609. groupI++
  15610. ) {
  15611. let gid = this.courseGroup.group[groupI].id;
  15612. if (
  15613. this.courseGroupStudentUid[gid].indexOf(
  15614. b[j].userid
  15615. ) != -1
  15616. ) {
  15617. isGw = 2;
  15618. this.courseGroup.group[groupI].works[i].push(_works);
  15619. break;
  15620. }
  15621. }
  15622. if (isGw == 1) {
  15623. _worksStudent[i].push(_works);
  15624. }
  15625. } else {
  15626. _worksStudent[i].push(_works);
  15627. }
  15628. _worksStudent2[i].push(_works);
  15629. this.isWorksS[i].push({
  15630. uid: b[j].userid,
  15631. sName: b[j].name,
  15632. });
  15633. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15634. let _works = {
  15635. userid: b[j].userid,
  15636. ateacher: b[j].ateacher,
  15637. wid: b[j].id,
  15638. works: b[j].content,
  15639. sName: b[j].name,
  15640. type: 0,
  15641. ttype:b[j].ttype,
  15642. time: b[j].time,
  15643. score: b[j].score,
  15644. img: b[j].img,
  15645. likesCount: likesCount,
  15646. commentCount: commentCount,
  15647. isLikes: isLikes,
  15648. commentJson: commentJson,
  15649. likeJson:likeJson
  15650. };
  15651. if (this.isGroup) {
  15652. let isGw = 1;
  15653. for (
  15654. var groupI = 0;
  15655. groupI < this.courseGroup.group.length;
  15656. groupI++
  15657. ) {
  15658. let gid = this.courseGroup.group[groupI].id;
  15659. if (
  15660. this.courseGroupStudentUid[gid].indexOf(
  15661. b[j].userid
  15662. ) != -1
  15663. ) {
  15664. isGw = 2;
  15665. this.courseGroup.group[groupI].works[i].push(_works);
  15666. break;
  15667. }
  15668. }
  15669. if (isGw == 1) {
  15670. _worksStudent[i].push(_works);
  15671. }
  15672. } else {
  15673. _worksStudent[i].push(_works);
  15674. }
  15675. _worksStudent2[i].push(_works);
  15676. this.isWorksS[i].push({
  15677. uid: b[j].userid,
  15678. sName: b[j].name,
  15679. });
  15680. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15681. let _works = {
  15682. userid: b[j].userid,
  15683. ateacher: b[j].ateacher,
  15684. wid: b[j].id,
  15685. works: b[j].content,
  15686. sName: b[j].name,
  15687. type: 0,
  15688. ttype:b[j].ttype,
  15689. time: b[j].time,
  15690. score: b[j].score,
  15691. img: b[j].img,
  15692. likesCount: likesCount,
  15693. commentCount: commentCount,
  15694. isLikes: isLikes,
  15695. commentJson: commentJson,
  15696. likeJson:likeJson
  15697. };
  15698. if (this.isGroup) {
  15699. let isGw = 1;
  15700. for (
  15701. var groupI = 0;
  15702. groupI < this.courseGroup.group.length;
  15703. groupI++
  15704. ) {
  15705. let gid = this.courseGroup.group[groupI].id;
  15706. if (
  15707. this.courseGroupStudentUid[gid].indexOf(
  15708. b[j].userid
  15709. ) != -1
  15710. ) {
  15711. isGw = 2;
  15712. this.courseGroup.group[groupI].works[i].push(_works);
  15713. break;
  15714. }
  15715. }
  15716. if (isGw == 1) {
  15717. _worksStudent[i].push(_works);
  15718. }
  15719. } else {
  15720. _worksStudent[i].push(_works);
  15721. }
  15722. _worksStudent2[i].push(_works);
  15723. this.isWorksS[i].push({
  15724. uid: b[j].userid,
  15725. sName: b[j].name,
  15726. });
  15727. }
  15728. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15729. let _works = {
  15730. userid: b[j].userid,
  15731. ateacher: b[j].ateacher,
  15732. wid: b[j].id,
  15733. works: b[j].content,
  15734. sName: b[j].name,
  15735. type: 2,
  15736. ttype:b[j].ttype,
  15737. time: b[j].time,
  15738. score: b[j].score,
  15739. img: b[j].img,
  15740. likesCount: likesCount,
  15741. commentCount: commentCount,
  15742. isLikes: isLikes,
  15743. commentJson: commentJson,
  15744. likeJson:likeJson
  15745. };
  15746. if (this.isGroup) {
  15747. let isGw = 1;
  15748. for (
  15749. var groupI = 0;
  15750. groupI < this.courseGroup.group.length;
  15751. groupI++
  15752. ) {
  15753. let gid = this.courseGroup.group[groupI].id;
  15754. if (
  15755. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15756. -1
  15757. ) {
  15758. isGw = 2;
  15759. this.courseGroup.group[groupI].works[i].push(_works);
  15760. break;
  15761. }
  15762. }
  15763. if (isGw == 1) {
  15764. _worksStudent[i].push(_works);
  15765. }
  15766. } else {
  15767. _worksStudent[i].push(_works);
  15768. }
  15769. _worksStudent2[i].push(_works);
  15770. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15771. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15772. let _works = {
  15773. userid: b[j].userid,
  15774. ateacher: b[j].ateacher,
  15775. wid: b[j].id,
  15776. works: b[j].content,
  15777. sName: b[j].name,
  15778. type: 20,
  15779. ttype:b[j].ttype,
  15780. time: b[j].time,
  15781. score: b[j].score,
  15782. img: b[j].img,
  15783. likesCount: likesCount,
  15784. commentCount: commentCount,
  15785. isLikes: isLikes,
  15786. commentJson: commentJson,
  15787. likeJson:likeJson
  15788. };
  15789. if (this.isGroup) {
  15790. let isGw = 1;
  15791. for (
  15792. var groupI = 0;
  15793. groupI < this.courseGroup.group.length;
  15794. groupI++
  15795. ) {
  15796. let gid = this.courseGroup.group[groupI].id;
  15797. if (
  15798. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15799. -1
  15800. ) {
  15801. isGw = 2;
  15802. this.courseGroup.group[groupI].works[i].push(_works);
  15803. break;
  15804. }
  15805. }
  15806. if (isGw == 1) {
  15807. _worksStudent[i].push(_works);
  15808. }
  15809. } else {
  15810. _worksStudent[i].push(_works);
  15811. }
  15812. _worksStudent2[i].push(_works);
  15813. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15814. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15815. //问卷
  15816. let _work = {
  15817. userid: b[j].userid,
  15818. ateacher: b[j].ateacher,
  15819. wid: b[j].id,
  15820. works: b[j].content,
  15821. sName: b[j].name,
  15822. type: 2,
  15823. ttype:b[j].ttype,
  15824. time: b[j].time,
  15825. score: b[j].score,
  15826. img: b[j].img,
  15827. likesCount: likesCount,
  15828. commentCount: commentCount,
  15829. isLikes: isLikes,
  15830. commentJson: commentJson,
  15831. likeJson:likeJson
  15832. };
  15833. _worksStudent[i].push(_work);
  15834. _worksStudent2[i].push(_work);
  15835. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15836. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15837. //选择题
  15838. let _work = {
  15839. userid: b[j].userid,
  15840. ateacher: b[j].ateacher,
  15841. wid: b[j].id,
  15842. works: b[j].content,
  15843. sName: b[j].name,
  15844. type: 8,
  15845. ttype:b[j].ttype,
  15846. time: b[j].time,
  15847. score: b[j].score,
  15848. img: b[j].img,
  15849. likesCount: likesCount,
  15850. commentCount: commentCount,
  15851. isLikes: isLikes,
  15852. commentJson: commentJson,
  15853. likeJson:likeJson
  15854. };
  15855. _worksStudent[i].push(_work);
  15856. _worksStudent2[i].push(_work);
  15857. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15858. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15859. //选择题
  15860. let _work = {
  15861. userid: b[j].userid,
  15862. ateacher: b[j].ateacher,
  15863. wid: b[j].id,
  15864. works: b[j].content,
  15865. sName: b[j].name,
  15866. type: 9,
  15867. ttype:b[j].ttype,
  15868. time: b[j].time,
  15869. score: b[j].score,
  15870. img: b[j].img,
  15871. likesCount: likesCount,
  15872. commentCount: commentCount,
  15873. isLikes: isLikes,
  15874. commentJson: commentJson,
  15875. likeJson:likeJson
  15876. };
  15877. _worksStudent[i].push(_work);
  15878. _worksStudent2[i].push(_work);
  15879. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15880. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15881. //选择题
  15882. let _work = {
  15883. userid: b[j].userid,
  15884. ateacher: b[j].ateacher,
  15885. wid: b[j].id,
  15886. works: b[j].content,
  15887. sName: b[j].name,
  15888. type: 10,
  15889. ttype:b[j].ttype,
  15890. time: b[j].time,
  15891. score: b[j].score,
  15892. img: b[j].img,
  15893. likesCount: likesCount,
  15894. commentCount: commentCount,
  15895. isLikes: isLikes,
  15896. commentJson: commentJson,
  15897. likeJson:likeJson
  15898. };
  15899. _worksStudent[i].push(_work);
  15900. _worksStudent2[i].push(_work);
  15901. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15902. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15903. //选择题
  15904. let _work = {
  15905. userid: b[j].userid,
  15906. ateacher: b[j].ateacher,
  15907. wid: b[j].id,
  15908. works: b[j].content,
  15909. sName: b[j].name,
  15910. type: 13,
  15911. ttype:b[j].ttype,
  15912. time: b[j].time,
  15913. score: b[j].score,
  15914. img: b[j].img,
  15915. likesCount: likesCount,
  15916. commentCount: commentCount,
  15917. isLikes: isLikes,
  15918. commentJson: commentJson,
  15919. likeJson:likeJson
  15920. };
  15921. _worksStudent[i].push(_work);
  15922. _worksStudent2[i].push(_work);
  15923. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15924. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15925. //选择题
  15926. let _work = {
  15927. userid: b[j].userid,
  15928. ateacher: b[j].ateacher,
  15929. wid: b[j].id,
  15930. works: b[j].content,
  15931. sName: b[j].name,
  15932. type: 16,
  15933. ttype:b[j].ttype,
  15934. time: b[j].time,
  15935. score: b[j].score,
  15936. img: b[j].img,
  15937. likesCount: likesCount,
  15938. commentCount: commentCount,
  15939. isLikes: isLikes,
  15940. commentJson: commentJson,
  15941. aiCode: b[j].aiCode,
  15942. teacherCode: b[j].teacherCode,
  15943. likeJson:likeJson
  15944. };
  15945. _worksStudent[i].push(_work);
  15946. _worksStudent2[i].push(_work);
  15947. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15948. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15949. //英语口语
  15950. let _work = {
  15951. userid: b[j].userid,
  15952. ateacher: b[j].ateacher,
  15953. wid: b[j].id,
  15954. works: b[j].content,
  15955. sName: b[j].name,
  15956. type: 17,
  15957. ttype:b[j].ttype,
  15958. time: b[j].time,
  15959. score: b[j].score,
  15960. img: b[j].img,
  15961. likesCount: likesCount,
  15962. commentCount: commentCount,
  15963. isLikes: isLikes,
  15964. commentJson: commentJson,
  15965. likeJson:likeJson
  15966. };
  15967. _worksStudent[i].push(_work);
  15968. _worksStudent2[i].push(_work);
  15969. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15970. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15971. //交互视频
  15972. let _work = {
  15973. userid: b[j].userid,
  15974. ateacher: b[j].ateacher,
  15975. wid: b[j].id,
  15976. works: b[j].content,
  15977. sName: b[j].name,
  15978. type: 14,
  15979. ttype:b[j].ttype,
  15980. time: b[j].time,
  15981. score: b[j].score,
  15982. img: b[j].img,
  15983. likesCount: likesCount,
  15984. commentCount: commentCount,
  15985. isLikes: isLikes,
  15986. commentJson: commentJson,
  15987. likeJson:likeJson
  15988. };
  15989. _worksStudent[i].push(_work);
  15990. _worksStudent2[i].push(_work);
  15991. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15992. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15993. let _gindex = JSON.parse(b[j].content);
  15994. if (
  15995. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15996. b[j].userid
  15997. ) != -1
  15998. ) {
  15999. let _work = {
  16000. userid: b[j].userid,
  16001. ateacher: b[j].ateacher,
  16002. wid: b[j].id,
  16003. works: _gindex.url,
  16004. sName: b[j].name,
  16005. type: _gindex.type,
  16006. ttype:b[j].ttype,
  16007. time: b[j].time,
  16008. score: b[j].score,
  16009. img: b[j].img,
  16010. likesCount: likesCount,
  16011. commentCount: commentCount,
  16012. isLikes: isLikes,
  16013. commentJson: commentJson,
  16014. likeJson:likeJson
  16015. };
  16016. _worksStudent[i][_gindex.groupIndex].push(_work);
  16017. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16018. }
  16019. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16020. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16021. let _work = {
  16022. userid: b[j].userid,
  16023. ateacher: b[j].ateacher,
  16024. wid: b[j].id,
  16025. works: b[j].content,
  16026. sName: b[j].name ? b[j].name : b[j].userid,
  16027. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16028. ttype:b[j].ttype,
  16029. time: b[j].time,
  16030. score: b[j].score,
  16031. img: b[j].img,
  16032. likesCount: likesCount,
  16033. commentCount: commentCount,
  16034. isLikes: isLikes,
  16035. commentJson: commentJson,
  16036. likeJson:likeJson
  16037. };
  16038. _worksStudent[i].push(_work);
  16039. _worksStudent2[i].push(_work);
  16040. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16041. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16042. let _work = {
  16043. userid: b[j].userid,
  16044. ateacher: b[j].ateacher,
  16045. wid: b[j].id,
  16046. works: b[j].content,
  16047. sName: b[j].name ? b[j].name : b[j].userid,
  16048. type: 12,
  16049. ttype:b[j].ttype,
  16050. time: b[j].time,
  16051. score: b[j].score,
  16052. img: b[j].img,
  16053. likesCount: likesCount,
  16054. commentCount: commentCount,
  16055. isLikes: isLikes,
  16056. commentJson: commentJson,
  16057. likeJson:likeJson
  16058. };
  16059. _worksStudent[i].push(_work);
  16060. _worksStudent2[i].push(_work);
  16061. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16062. } else if (
  16063. a[i].tool[0] == 57 &&
  16064. b[j].atool == 57 &&
  16065. b[j].type == 12
  16066. ) {
  16067. let _work = {
  16068. userid: b[j].userid,
  16069. ateacher: b[j].ateacher,
  16070. wid: b[j].id,
  16071. works: b[j].content,
  16072. sName: b[j].name ? b[j].name : b[j].userid,
  16073. type: 12,
  16074. ttype:b[j].ttype,
  16075. time: b[j].time,
  16076. score: b[j].score,
  16077. img: b[j].img,
  16078. likesCount: likesCount,
  16079. commentCount: commentCount,
  16080. isLikes: isLikes,
  16081. commentJson: commentJson,
  16082. likeJson:likeJson
  16083. };
  16084. _worksStudent[i].push(_work);
  16085. _worksStudent2[i].push(_work);
  16086. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16087. } else if (
  16088. a[i].tool[0] == 57 &&
  16089. b[j].atool == 57 &&
  16090. b[j].type == 15
  16091. ) {
  16092. let _work = {
  16093. userid: b[j].userid,
  16094. ateacher: b[j].ateacher,
  16095. wid: b[j].id,
  16096. works: b[j].content,
  16097. sName: b[j].name ? b[j].name : b[j].userid,
  16098. type: 15,
  16099. ttype:b[j].ttype,
  16100. time: b[j].time,
  16101. score: b[j].score,
  16102. img: b[j].img,
  16103. likesCount: likesCount,
  16104. commentCount: commentCount,
  16105. isLikes: isLikes,
  16106. commentJson: commentJson,
  16107. likeJson:likeJson
  16108. };
  16109. _worksStudent[i].push(_work);
  16110. _worksStudent2[i].push(_work);
  16111. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16112. }
  16113. }
  16114. }
  16115. if (_worksStudent[i] && _worksStudent[i].length) {
  16116. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16117. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16118. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16119. var scoreA = parseFloat(jscoreA);
  16120. var scoreB = parseFloat(jscoreB);
  16121. if (scoreA == scoreB) {
  16122. return b.likesCount - a.likesCount;
  16123. }
  16124. return scoreB - scoreA;
  16125. });
  16126. if (this.isGroup) {
  16127. for (
  16128. var groupI = 0;
  16129. groupI < this.courseGroup.group.length;
  16130. groupI++
  16131. ) {
  16132. this.courseGroup.group[groupI].works[i] =
  16133. this.courseGroup.group[groupI].works[i].sort(function (
  16134. a,
  16135. b
  16136. ) {
  16137. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16138. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16139. var scoreA = parseFloat(jscoreA);
  16140. var scoreB = parseFloat(jscoreB);
  16141. if (scoreA == scoreB) {
  16142. return b.likesCount - a.likesCount;
  16143. }
  16144. return scoreB - scoreA;
  16145. });
  16146. }
  16147. }
  16148. }
  16149. }
  16150. this.timeWorkList = _worksStudent2;
  16151. for (var i = 0; i < a.length; i++) {
  16152. for (var j = 0; j < b.length; j++) {
  16153. var data = b[j];
  16154. if (i == b[j].tool) {
  16155. if (data.type == 2 || data.type == 8) {
  16156. for (var z = 0; z < this.checkJson[i].length; z++) {
  16157. this.checkJson[i][z].checkPerent = [];
  16158. this.checkJson[i][z].right = Math.round(
  16159. (this.checkJson[i][z].rightPerson.length /
  16160. parseInt(_worksStudent[i].length)) *
  16161. 100
  16162. );
  16163. let aaaa = this.checkJson[i][z];
  16164. for (
  16165. var k = 0;
  16166. k < this.checkJson[i][z].checkCount.length;
  16167. k++
  16168. ) {
  16169. this.checkJson[i][z].checkPerent.push(
  16170. Math.round(
  16171. (this.checkJson[i][z].checkCount[k] /
  16172. parseInt(_worksStudent[i].length)) *
  16173. 100
  16174. )
  16175. );
  16176. }
  16177. }
  16178. } else if (data.type == 9) {
  16179. for (var z = 0; z < this.checkJson[i].length; z++) {
  16180. this.checkJson[i][z].checkPerent = [];
  16181. this.checkJson[i][z].right = Math.round(
  16182. (this.checkJson[i][z].rightPerson.length /
  16183. this.checkJson[i][z].checkPerson.length) *
  16184. 100
  16185. );
  16186. }
  16187. }
  16188. }
  16189. }
  16190. }
  16191. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16192. this.joinGroup(gindex);
  16193. }
  16194. this.worksStudent = _worksStudent;
  16195. this.selectWorksStudent();
  16196. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16197. this.$nextTick(()=>{
  16198. setTimeout(()=>{
  16199. setTimeout(()=>{
  16200. this.panToolHeight('tool-'+ci);
  16201. }, 500)
  16202. }, 0)
  16203. })
  16204. }
  16205. })
  16206. .catch((err) => {
  16207. console.error(err);
  16208. });
  16209. },
  16210. pngToWhiteBg(file) {
  16211. const _file = file;
  16212. let read = new FileReader();
  16213. read.readAsDataURL(file); // 文件转base64
  16214. return new Promise((resolve, reject) => {
  16215. read.onload = (e) => {
  16216. let img = new Image();
  16217. img.src = e.target.result;
  16218. img.onload = async () => {
  16219. // 生成canvas
  16220. let canvas = document.createElement("canvas");
  16221. let context = canvas.getContext("2d");
  16222. // 绘制图片到canvas上
  16223. canvas.width = img.width;
  16224. canvas.height = img.height;
  16225. // 在canvas绘制前填充白色背景
  16226. context.fillStyle = "#fff";
  16227. context.fillRect(0, 0, canvas.width, canvas.height);
  16228. context.drawImage(img, 0, 0);
  16229. let base64 = canvas.toDataURL(file["type"], 1);
  16230. let newFile = this.dataUrlToFile(base64, _file);
  16231. resolve(newFile);
  16232. };
  16233. };
  16234. });
  16235. },
  16236. dataUrlToFile(dataurl, file) {
  16237. let arr = dataurl.split(","),
  16238. mime = arr[0].match(/:(.*?);/)[1],
  16239. bstr = atob(arr[1]),
  16240. n = bstr.length,
  16241. u8arr = new Uint8Array(n);
  16242. while (n--) {
  16243. u8arr[n] = bstr.charCodeAt(n);
  16244. }
  16245. // return new Blob([u8arr], { type: mime });
  16246. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16247. type: mime,
  16248. });
  16249. },
  16250. async beforeUpload1(event, type, i) {
  16251. // this.$message.success('进入上传')
  16252. var file = "";
  16253. if (type == 5) {
  16254. file = event;
  16255. } else {
  16256. file = event.target.files[0];
  16257. }
  16258. var credentials = {
  16259. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16260. secretAccessKey: "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",
  16261. }; //秘钥形式的登录上传
  16262. window.AWS.config.update(credentials);
  16263. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16264. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16265. var _this = this;
  16266. _this.progress = 0;
  16267. _this.proVisible = true;
  16268. _this.isFinishSize = 0;
  16269. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16270. var b = [
  16271. "DOC",
  16272. "DOCX",
  16273. "DOCM",
  16274. "DOTM",
  16275. "DOTX",
  16276. "PPTX",
  16277. "PPSX",
  16278. "PPT",
  16279. "PPS",
  16280. "PPTM",
  16281. "POTM",
  16282. "PPAM",
  16283. "POTX",
  16284. "PPSM",
  16285. ];
  16286. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16287. var photoA = [
  16288. "BMP",
  16289. "GIF",
  16290. "PNG",
  16291. "JPEG",
  16292. "JPEG",
  16293. "JPG",
  16294. "TIF",
  16295. "PCX",
  16296. "TGA",
  16297. "EXIF",
  16298. "FPX",
  16299. "SVG",
  16300. "APNG",
  16301. ];
  16302. // if (
  16303. // b.indexOf(
  16304. // file.name
  16305. // .split(".")
  16306. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16307. // ) != -1
  16308. // ) {
  16309. // if (file.size / 1024 / 1024 > 10) {
  16310. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16311. // return;
  16312. // }
  16313. // } else if (
  16314. // excelA.indexOf(
  16315. // file.name
  16316. // .split(".")
  16317. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16318. // ) != "-1"
  16319. // ) {
  16320. // if (file.size / 1024 / 1024 > 5) {
  16321. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16322. // return;
  16323. // }
  16324. // }
  16325. if (
  16326. photoA.indexOf(
  16327. file.name
  16328. .split(".")
  16329. [file.name.split(".").length - 1].toLocaleUpperCase()
  16330. ) != -1 &&
  16331. type != 4
  16332. ) {
  16333. // const blob = await imageConversion.compress(file, 0.8)
  16334. file = await this.pngToWhiteBg(file);
  16335. const blob = await imageConversion.compressAccurately(file, 256);
  16336. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16337. file = new File([blob], file.name, { type: file.type });
  16338. }
  16339. if (file) {
  16340. var params = {
  16341. Key:
  16342. file.name.split(".")[0] +
  16343. new Date().getTime() +
  16344. "." +
  16345. file.name.split(".")[file.name.split(".").length - 1],
  16346. ContentType: file.type,
  16347. Body: file,
  16348. "Access-Control-Allow-Credentials": "*",
  16349. ACL: "public-read",
  16350. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16351. var options = {
  16352. // partSize: 2048 * 1024 * 1024,
  16353. partSize: 1024 * 1024 * 1024,
  16354. queueSize: 2,
  16355. leavePartsOnError: true,
  16356. };
  16357. bucket
  16358. .upload(params, options)
  16359. .on("httpUploadProgress", function (evt) {
  16360. //这里可以写进度条
  16361. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16362. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16363. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16364. })
  16365. .send(function (err, data) {
  16366. _this.progress = 100;
  16367. _this.isFinishSize = _this.isAllSize;
  16368. setTimeout(() => {
  16369. _this.proVisible = false;
  16370. }, 1000);
  16371. if (err) {
  16372. var a = _this.$refs.upload1.uploadFiles;
  16373. a.splice(a.length - 1, a.length);
  16374. _this.$message.error("上传失败");
  16375. } else {
  16376. // _this.$message.success('上传成功')
  16377. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16378. var c = [
  16379. "AVI",
  16380. "NAVI",
  16381. "MPEG",
  16382. "ASF",
  16383. "MOV",
  16384. "WMV",
  16385. "3GP",
  16386. "RM",
  16387. "RMVB",
  16388. "FLV",
  16389. "F4V",
  16390. "H.264",
  16391. "H.265",
  16392. "REAL VIDEO",
  16393. "MKV",
  16394. "WebM",
  16395. "HDDVD",
  16396. "MP4",
  16397. "MPG",
  16398. "M4V",
  16399. "MGV",
  16400. "OGV",
  16401. "QTM",
  16402. "STR",
  16403. "AMC",
  16404. "DVX",
  16405. "EVO",
  16406. "DAT",
  16407. "OGG",
  16408. "OGM",
  16409. ];
  16410. if (type == 1) {
  16411. _this.studyJuri[0].cover.push({
  16412. name: file.name,
  16413. url: data.Location,
  16414. uid: file.uid,
  16415. });
  16416. if (
  16417. c.indexOf(
  16418. _this.studyJuri[0].cover[0].url
  16419. .split(".")
  16420. [
  16421. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16422. ].toLocaleUpperCase()
  16423. ) != -1
  16424. ) {
  16425. _this.fileType = 2;
  16426. } else if (
  16427. b.indexOf(
  16428. _this.studyJuri[0].cover[0].url
  16429. .split(".")
  16430. [
  16431. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16432. ].toLocaleUpperCase()
  16433. ) != -1
  16434. ) {
  16435. _this.fileType = 1;
  16436. } else if (
  16437. photoA.indexOf(
  16438. _this.studyJuri[0].cover[0].url
  16439. .split(".")
  16440. [
  16441. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16442. ].toLocaleUpperCase()
  16443. ) != -1
  16444. ) {
  16445. _this.fileType = 0;
  16446. } else {
  16447. _this.fileType = 3;
  16448. }
  16449. _this.imgChange(null, null, type);
  16450. } else if (type == 2) {
  16451. _this.upToolImg = data.Location;
  16452. _this.imgChange(null, null, type);
  16453. _this.addCourseWorks(i);
  16454. } else if (type == 4) {
  16455. _this.addPz("3", data.Location);
  16456. } else if (type == 5) {
  16457. _this.addImgDrawImG(data.Location);
  16458. } else if (type == 6) {
  16459. var _ftype = 1;
  16460. if (
  16461. c.indexOf(
  16462. data.Location.split(".")[
  16463. data.Location.split(".").length - 1
  16464. ].toLocaleUpperCase()
  16465. ) != -1
  16466. ) {
  16467. _ftype = 5;
  16468. } else if (
  16469. b.indexOf(
  16470. data.Location.split(".")[
  16471. data.Location.split(".").length - 1
  16472. ].toLocaleUpperCase()
  16473. ) != -1
  16474. ) {
  16475. _ftype = 4;
  16476. } else {
  16477. _ftype = 1;
  16478. }
  16479. _this.plworkFile.push({
  16480. name: file.name,
  16481. url: data.Location,
  16482. uid: file.uid,
  16483. fileType: _ftype,
  16484. username:
  16485. _this.plworkFile.length > 10
  16486. ? _this.plworkFile.length + 1
  16487. : "0" + (_this.plworkFile.length + 1),
  16488. });
  16489. } else if (type == 7) {
  16490. _this.addCourseWorksGong(i, data.Location, 32);
  16491. } else if (type == 8) {
  16492. _this.addCourseWorksGong(i, data.Location, 57);
  16493. }
  16494. _this.imgChange(null, null, type);
  16495. console.log(data.Location);
  16496. // _this.$message.success('上传成功'+data.Location)
  16497. }
  16498. });
  16499. }
  16500. },
  16501. async beforeUpload3(event, type, i) {
  16502. // this.$message.success('进入上传')
  16503. let file = "";
  16504. let cfindex2 = 0;
  16505. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16506. file = event.target.files[cfindex];
  16507. var credentials = {
  16508. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16509. secretAccessKey: "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",
  16510. }; //秘钥形式的登录上传
  16511. window.AWS.config.update(credentials);
  16512. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16513. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16514. var _this = this;
  16515. // _this.progress = 0;
  16516. _this.proVisible2 = true;
  16517. var b = [
  16518. "DOC",
  16519. "DOCX",
  16520. "DOCM",
  16521. "DOTM",
  16522. "DOTX",
  16523. "PPTX",
  16524. "PPSX",
  16525. "PPT",
  16526. "PPS",
  16527. "PPTM",
  16528. "POTM",
  16529. "PPAM",
  16530. "POTX",
  16531. "PPSM",
  16532. ];
  16533. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16534. var photoA = [
  16535. "BMP",
  16536. "GIF",
  16537. "PNG",
  16538. "JPEG",
  16539. "JPG",
  16540. "TIF",
  16541. "PCX",
  16542. "TGA",
  16543. "EXIF",
  16544. "FPX",
  16545. "SVG",
  16546. "APNG",
  16547. ];
  16548. if (
  16549. photoA.indexOf(
  16550. file.name
  16551. .split(".")
  16552. [file.name.split(".").length - 1].toLocaleUpperCase()
  16553. ) != -1 &&
  16554. type != 4
  16555. ) {
  16556. // const blob = await imageConversion.compress(file, 0.8)
  16557. file = await this.pngToWhiteBg(file);
  16558. const blob = await imageConversion.compressAccurately(file, 256);
  16559. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16560. file = new File([blob], file.name, { type: file.type });
  16561. }
  16562. if (file) {
  16563. var params = {
  16564. Key:
  16565. file.name.split(".")[0] +
  16566. new Date().getTime() +
  16567. "." +
  16568. file.name.split(".")[file.name.split(".").length - 1],
  16569. ContentType: file.type,
  16570. Body: file,
  16571. "Access-Control-Allow-Credentials": "*",
  16572. ACL: "public-read",
  16573. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16574. var options = {
  16575. // partSize: 2048 * 1024 * 1024,
  16576. partSize: 1024 * 1024 * 1024,
  16577. queueSize: 2,
  16578. leavePartsOnError: true,
  16579. };
  16580. bucket
  16581. .upload(params, options)
  16582. .on("httpUploadProgress", function (evt) {
  16583. //这里可以写进度条
  16584. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16585. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16586. })
  16587. .send(function (err, data) {
  16588. // _this.progress = 100;
  16589. cfindex2++;
  16590. setTimeout(() => {
  16591. if (
  16592. cfindex2 == event.target.files.length - 1 ||
  16593. cfindex2 > event.target.files.length - 1
  16594. ) {
  16595. _this.proVisible2 = false;
  16596. }
  16597. }, 1000);
  16598. if (err) {
  16599. var a = _this.$refs.upload1.uploadFiles;
  16600. a.splice(a.length - 1, a.length);
  16601. _this.$message.error("上传失败");
  16602. } else {
  16603. // _this.$message.success('上传成功')
  16604. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16605. var c = [
  16606. "AVI",
  16607. "NAVI",
  16608. "MPEG",
  16609. "ASF",
  16610. "MOV",
  16611. "WMV",
  16612. "3GP",
  16613. "RM",
  16614. "RMVB",
  16615. "FLV",
  16616. "F4V",
  16617. "H.264",
  16618. "H.265",
  16619. "REAL VIDEO",
  16620. "MKV",
  16621. "WebM",
  16622. "HDDVD",
  16623. "MP4",
  16624. "MPG",
  16625. "M4V",
  16626. "MGV",
  16627. "OGV",
  16628. "QTM",
  16629. "STR",
  16630. "AMC",
  16631. "DVX",
  16632. "EVO",
  16633. "DAT",
  16634. "OGG",
  16635. "OGM",
  16636. ];
  16637. if (type == 1) {
  16638. _this.studyJuri[0].cover.push({
  16639. name: file.name,
  16640. url: data.Location,
  16641. uid: file.uid,
  16642. });
  16643. if (
  16644. c.indexOf(
  16645. _this.studyJuri[0].cover[0].url
  16646. .split(".")
  16647. [
  16648. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16649. ].toLocaleUpperCase()
  16650. ) != -1
  16651. ) {
  16652. _this.fileType = 2;
  16653. } else if (
  16654. b.indexOf(
  16655. _this.studyJuri[0].cover[0].url
  16656. .split(".")
  16657. [
  16658. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16659. ].toLocaleUpperCase()
  16660. ) != -1
  16661. ) {
  16662. _this.fileType = 1;
  16663. } else {
  16664. _this.fileType = 0;
  16665. }
  16666. _this.imgChange(null, null, type);
  16667. } else if (type == 2) {
  16668. _this.upToolImg = data.Location;
  16669. _this.imgChange(null, null, type);
  16670. _this.addCourseWorks(i);
  16671. } else if (type == 4) {
  16672. _this.addPz("3", data.Location);
  16673. } else if (type == 5) {
  16674. _this.addImgDrawImG(data.Location);
  16675. } else if (type == 6) {
  16676. var _ftype = 1;
  16677. if (
  16678. c.indexOf(
  16679. data.Location.split(".")[
  16680. data.Location.split(".").length - 1
  16681. ].toLocaleUpperCase()
  16682. ) != -1
  16683. ) {
  16684. _ftype = 5;
  16685. } else if (
  16686. b.indexOf(
  16687. data.Location.split(".")[
  16688. data.Location.split(".").length - 1
  16689. ].toLocaleUpperCase()
  16690. ) != -1
  16691. ) {
  16692. _ftype = 4;
  16693. } else {
  16694. _ftype = 1;
  16695. }
  16696. _this.plworkFile.push({
  16697. name: file.name,
  16698. url: data.Location,
  16699. uid: file.uid,
  16700. fileType: _ftype,
  16701. username:
  16702. _this.plworkFile.length + 1 > 9
  16703. ? _this.plworkFile.length + 1
  16704. : "0" + (_this.plworkFile.length + 1),
  16705. });
  16706. }
  16707. _this.imgChange(null, null, type);
  16708. console.log(data.Location);
  16709. // _this.$message.success('上传成功'+data.Location)
  16710. }
  16711. });
  16712. }
  16713. }
  16714. },
  16715. beforeUpload2(event, type) {
  16716. var file = event.target.files[0];
  16717. var credentials = {
  16718. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16719. secretAccessKey: "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",
  16720. }; //秘钥形式的登录上传
  16721. window.AWS.config.update(credentials);
  16722. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16723. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16724. var _this = this;
  16725. _this.progress = 0;
  16726. _this.proVisible = true;
  16727. if (file) {
  16728. var params = {
  16729. Key:
  16730. file.name.split(".")[0] +
  16731. new Date().getTime() +
  16732. "." +
  16733. file.name.split(".")[file.name.split(".").length - 1],
  16734. ContentType: file.type,
  16735. Body: file,
  16736. "Access-Control-Allow-Credentials": "*",
  16737. ACL: "public-read",
  16738. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16739. var options = {
  16740. partSize: 2048 * 1024 * 1024,
  16741. queueSize: 2,
  16742. leavePartsOnError: true,
  16743. };
  16744. bucket
  16745. .upload(params, options)
  16746. .on("httpUploadProgress", function (evt) {
  16747. //这里可以写进度条
  16748. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16749. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16750. })
  16751. .send(function (err, data) {
  16752. _this.progress = 100;
  16753. setTimeout(() => {
  16754. _this.proVisible = false;
  16755. }, 1000);
  16756. if (err) {
  16757. var a = _this.$refs.upload1.uploadFiles;
  16758. a.splice(a.length - 1, a.length);
  16759. _this.$message.error("上传失败");
  16760. } else {
  16761. if (type == 2) {
  16762. _this.studyJuri[0].upVedio.push({
  16763. name: file.name,
  16764. url: data.Location,
  16765. uid: file.uid,
  16766. });
  16767. _this.imgChange(null, null, type);
  16768. } else if (type == 3) {
  16769. _this.studyJuri[0].upFile.push({
  16770. name: file.name,
  16771. url: data.Location,
  16772. uid: file.uid,
  16773. });
  16774. _this.imgChange(null, null, type);
  16775. }
  16776. console.log(data.Location);
  16777. }
  16778. });
  16779. }
  16780. },
  16781. allScrell() {
  16782. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16783. },
  16784. nextOrpreSteps(t) {
  16785. if (this.IsFollow && this.tType == 2) {
  16786. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16787. return;
  16788. }
  16789. var b = this.chapInfoList.length - 1;
  16790. if (t == 0) {
  16791. if (this.courseType == 0) {
  16792. if (this.taskCount == 0) {
  16793. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16794. if (this.IsLookOpen) {
  16795. if (
  16796. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16797. ) {
  16798. if (
  16799. this.courseDetail.userid != this.userid &&
  16800. (!this.courseDetail.course_teacher ||
  16801. (this.courseDetail.course_teacher &&
  16802. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16803. ) {
  16804. this.$message.error("任务未解锁");
  16805. } else {
  16806. this.$message.error("上一任务未解锁");
  16807. }
  16808. return;
  16809. }
  16810. }
  16811. this.navList[this.courseType].isOpen = false;
  16812. this.courseType = b;
  16813. this.taskCount =
  16814. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16815. .length - 1;
  16816. this.navList[this.courseType].isOpen = true;
  16817. } else {
  16818. this.taskCount--;
  16819. }
  16820. } else {
  16821. if (this.taskCount == 0) {
  16822. this.navList[this.courseType].isOpen = false;
  16823. this.courseType--;
  16824. this.taskCount =
  16825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16826. .length - 1;
  16827. this.navList[this.courseType].isOpen = true;
  16828. } else {
  16829. this.taskCount--;
  16830. }
  16831. }
  16832. } else {
  16833. if (this.courseType == b) {
  16834. if (
  16835. this.taskCount ==
  16836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16837. 1
  16838. ) {
  16839. this.navList[this.courseType].isOpen = false;
  16840. this.courseType = 0;
  16841. this.taskCount = 0;
  16842. this.navList[this.courseType].isOpen = true;
  16843. } else {
  16844. var bbb = parseInt(this.taskCount) + 1;
  16845. if (
  16846. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16847. .isLook &&
  16848. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16849. (this.courseDetail.course_teacher &&
  16850. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16851. this.IsLookOpen
  16852. ) {
  16853. this.$message.error("任务未解锁");
  16854. return;
  16855. }
  16856. this.taskCount++;
  16857. if (this.IsLookOpen) {
  16858. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16859. this.taskCount
  16860. ].isLook = true;
  16861. this.addCourseState(3);
  16862. }
  16863. }
  16864. } else {
  16865. if (
  16866. this.taskCount ==
  16867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16868. 1
  16869. ) {
  16870. var bbb = parseInt(this.courseType) + 1;
  16871. if (
  16872. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16873. this.courseDetail.userid != this.userid &&
  16874. (!this.courseDetail.course_teacher ||
  16875. (this.courseDetail.course_teacher &&
  16876. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16877. this.IsLookOpen
  16878. ) {
  16879. this.$message.error("任务未解锁");
  16880. return;
  16881. }
  16882. this.navList[this.courseType].isOpen = false;
  16883. this.courseType++;
  16884. this.taskCount = 0;
  16885. this.navList[this.courseType].isOpen = true;
  16886. } else {
  16887. var bbb = parseInt(this.taskCount) + 1;
  16888. if (
  16889. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16890. .isLook &&
  16891. this.courseDetail.userid != this.userid &&
  16892. (!this.courseDetail.course_teacher ||
  16893. (this.courseDetail.course_teacher &&
  16894. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16895. this.IsLookOpen
  16896. ) {
  16897. this.$message.error("任务未解锁");
  16898. return;
  16899. }
  16900. this.taskCount++;
  16901. }
  16902. if (this.IsLookOpen) {
  16903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16904. this.taskCount
  16905. ].isLook = true;
  16906. this.addCourseState(3);
  16907. }
  16908. }
  16909. // if (
  16910. // this.taskCount ==
  16911. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16912. // ) {
  16913. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16914. // } else {
  16915. // this.taskCount++;
  16916. // }
  16917. }
  16918. document.scrollingElement.scrollTop = 0;
  16919. this.showType = 7;
  16920. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16921. // if (this.vedio[this.taskCount].length > 0) {
  16922. // var a =
  16923. // document.getElementsByClassName("box_course")[this.taskCount]
  16924. // .offsetHeight;
  16925. // document.getElementsByClassName("vedioList")[
  16926. // this.taskCount
  16927. // ].style.height = a + "px";
  16928. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16929. // a - 40 + "px";
  16930. // }
  16931. this.isNoHomeWork = false;
  16932. (this.studyJuri = [
  16933. {
  16934. content: "",
  16935. cover: [],
  16936. upVedio: [],
  16937. upFile: [],
  16938. },
  16939. ]),
  16940. (this.radio = []);
  16941. this.isClickNav = "";
  16942. this.selectPz();
  16943. this.getHomeWork();
  16944. this.getCourseDetail(2);
  16945. this.$forceUpdate();
  16946. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16947. this.setCTask();
  16948. }
  16949. },
  16950. openTask(s, n, i,ctype) {
  16951. if (this.IsFollow && this.tType == 2) {
  16952. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16953. return;
  16954. }
  16955. if (this.IsLookOpen &&
  16956. this.courseDetail.userid != this.userid &&
  16957. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16958. if (
  16959. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16960. this.courseDetail.userid != this.userid &&
  16961. (!this.courseDetail.course_teacher ||
  16962. (this.courseDetail.course_teacher &&
  16963. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16964. ) {
  16965. this.$message.error("任务未解锁");
  16966. return;
  16967. }
  16968. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16969. if (
  16970. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16971. .isLook
  16972. ) {
  16973. this.$message.error("上一任务未解锁");
  16974. return;
  16975. }
  16976. } else if (s > this.courseType) {
  16977. if (n > 0) {
  16978. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16979. this.$message.error("上一任务未解锁");
  16980. return;
  16981. }
  16982. } else {
  16983. if (
  16984. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16985. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16986. ].isLook
  16987. ) {
  16988. this.$message.error("上一任务未解锁");
  16989. return;
  16990. }
  16991. }
  16992. }
  16993. }
  16994. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16995. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16996. return;
  16997. }
  16998. let flag = this.courseType==s;
  16999. this.courseType = s;
  17000. this.navId = i;
  17001. this.taskCount = n;
  17002. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17003. if(ctype == 2){
  17004. this.navList[s].task[n].isOpen = true
  17005. }else{
  17006. this.navList[this.courseType].task[this.taskCount].isOpen =
  17007. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17008. }
  17009. if (this.IsLookOpen) {
  17010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17011. this.taskCount
  17012. ].isLook = true;
  17013. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17014. this.addCourseState(3,yym);
  17015. }
  17016. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17017. this.isCloseList[ci].isClose = 0;
  17018. this.isCloseList[ci].isCloseBoolean = false;
  17019. this.$nextTick(()=>{
  17020. setTimeout(()=>{
  17021. setTimeout(()=>{
  17022. this.panToolHeight('tool-'+ci);
  17023. }, 0)
  17024. }, 0)
  17025. })
  17026. }
  17027. this.showType = 0;
  17028. this.isNoHomeWork = false;
  17029. (this.studyJuri = [
  17030. {
  17031. content: "",
  17032. cover: [],
  17033. upVedio: [],
  17034. upFile: [],
  17035. },
  17036. ]),
  17037. (this.radio = []);
  17038. document.scrollingElement.scrollTop = 0;
  17039. // setTimeout(() => {
  17040. // let a = document.getElementById(i);
  17041. // if (a.offsetTop - 110 == 0) {
  17042. // window.scrollTo(0, 0);
  17043. // } else {
  17044. // window.scrollTo(0, a.offsetTop);
  17045. // }
  17046. // }, 0);
  17047. for (var z = 0; z < this.navList.length; z++) {
  17048. for (var q = 0; q < this.navList[z].task.length; q++) {
  17049. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17050. this.navList[z].task[q].tool[w].isTool = false;
  17051. }
  17052. }
  17053. }
  17054. this.selectPz();
  17055. this.getHomeWork();
  17056. this.getCourseDetail(2);
  17057. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17058. this.setCTask();
  17059. }
  17060. if(flag){
  17061. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17062. }else{
  17063. 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>`)
  17064. }
  17065. },
  17066. get(i) {
  17067. if (this.IsFollow && this.tType == 2) {
  17068. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17069. return;
  17070. }
  17071. // for(var k=0;k<this.navList.length;k++){
  17072. // this.navList[k].isOpen = false;
  17073. // }
  17074. // this.navList[i].isOpen = true;
  17075. let a = this.navList[i].isOpen
  17076. this.navList[i].isOpen = !this.navList[i].isOpen;
  17077. this.$forceUpdate()
  17078. if (this.navList[i].isOpen) {
  17079. this.openTask(i, 0, (i + "-0"),2);
  17080. }
  17081. },
  17082. addQuestion() {
  17083. this.answerList.push({
  17084. answerTitle: this.answerQ,
  17085. answer: this.questionAnswer,
  17086. });
  17087. let params = [
  17088. {
  17089. uid: this.userid,
  17090. cid: this.id,
  17091. stage: this.courseType,
  17092. task: this.taskCount,
  17093. tool: this.toolindex,
  17094. content: JSON.stringify(this.answerList),
  17095. type: 3,
  17096. },
  17097. ];
  17098. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17099. this.homeWorkLoading = true
  17100. this.ajax
  17101. .post(this.$store.state.api + "addCourseWorks", params)
  17102. .then((res) => {
  17103. this.$message({
  17104. message: "提交成功",
  17105. type: "success",
  17106. });
  17107. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17108. setTimeout(() => {
  17109. this.homeWorkLoading = false
  17110. }, 500);
  17111. this.answerList = [];
  17112. this.answerDialogVisible = false;
  17113. this.selectStudent();
  17114. this.selectSWorks();
  17115. this.selectSLook();
  17116. })
  17117. .catch((err) => {
  17118. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17119. setTimeout(() => {
  17120. this.homeWorkLoading = false
  17121. }, 500);
  17122. this.$message.error("提交失败");
  17123. console.error(err);
  17124. });
  17125. },
  17126. addQuestionTeacher() {
  17127. this.answerList.push({
  17128. answerTitle: this.answerQ,
  17129. answer: this.questionAnswer,
  17130. });
  17131. let params = [
  17132. {
  17133. uid: this.sStudent.userid,
  17134. cid: this.id,
  17135. stage: this.courseType,
  17136. task: this.taskCount,
  17137. tool: this.toolindex,
  17138. content: JSON.stringify(this.answerList),
  17139. type: 3,
  17140. ateacher: this.userid,
  17141. },
  17142. ];
  17143. this.ajax
  17144. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17145. .then((res) => {
  17146. this.$message({
  17147. message: "提交成功",
  17148. type: "success",
  17149. });
  17150. this.answerList = [];
  17151. this.questionAnswer = "";
  17152. this.answerDialogVisibleTeacher = false;
  17153. this.selectStudent();
  17154. this.selectSWorks();
  17155. this.selectSLook();
  17156. })
  17157. .catch((err) => {
  17158. this.$message.error("提交失败");
  17159. console.error(err);
  17160. });
  17161. },
  17162. refreshCourse() {
  17163. // window.location.reload();
  17164. this.navList = [];
  17165. this.getCourseDetail(1);
  17166. },
  17167. getCourseDetail(type, gindex) {
  17168. let loading;
  17169. if (type != 2) {
  17170. loading = this.$loading.service({
  17171. background: "rgba(255, 255, 255, 0.7)",
  17172. target: document.querySelector(".student_table"),
  17173. });
  17174. }
  17175. this.downLoading = false
  17176. // this.navList[0].isOpen = false;
  17177. // this.navList[this.courseType].isOpen = true;
  17178. // this.courseType = this.courseTypeLine;
  17179. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17180. let params = {
  17181. courseId: this.id,
  17182. };
  17183. this.ajax
  17184. .get(this.$store.state.api + "selectCourseDetail3", params)
  17185. .then((res) => {
  17186. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17187. if (type != 2) {
  17188. loading.close();
  17189. if (
  17190. this.courseType >
  17191. JSON.parse(res.data[0][0].chapters).length - 1
  17192. ) {
  17193. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17194. }
  17195. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17196. .chapterInfo[0].taskJson;
  17197. var b = [
  17198. "AVI",
  17199. "NAVI",
  17200. "MPEG",
  17201. "ASF",
  17202. "MOV",
  17203. "WMV",
  17204. "3GP",
  17205. "RM",
  17206. "RMVB",
  17207. "FLV",
  17208. "F4V",
  17209. "H.264",
  17210. "H.265",
  17211. "REAL VIDEO",
  17212. "MKV",
  17213. "WebM",
  17214. "HDDVD",
  17215. "MP4",
  17216. "MPG",
  17217. "M4V",
  17218. "MGV",
  17219. "OGV",
  17220. "QTM",
  17221. "STR",
  17222. "AMC",
  17223. "DVX",
  17224. "EVO",
  17225. "DAT",
  17226. "OGG",
  17227. "OGM",
  17228. "MP3",
  17229. ];
  17230. let _chapterData = [];
  17231. for (var i = 0; i < a.length; i++) {
  17232. var c = a[i].chapterData;
  17233. this.vedio[i] = [];
  17234. this.textList[i] = [];
  17235. this.lineList[i] = [];
  17236. this.chapToolList[i] = [];
  17237. this.file[i] = [];
  17238. this.fileC[i] = [];
  17239. _chapterData[i] = c.filter((el) => {
  17240. return el.type != 12;
  17241. });
  17242. this.fileC[i] = c.filter((el) => {
  17243. return el.type == 12;
  17244. });
  17245. if (this.tType == 2) {
  17246. if (this.fileC[i].length) {
  17247. let yym1 = this.fileC[i].filter(e=>{
  17248. if(!converter(e.name).includes(converter("教案"))){
  17249. return e
  17250. }
  17251. })
  17252. this.fileC[i] = yym1
  17253. }
  17254. }
  17255. // else if (c[j].type == 12) {
  17256. // this.fileC[i].push(c[j]);
  17257. // }
  17258. for (var j = 0; j < c.length; j++) {
  17259. if (c[j].type == 7) {
  17260. this.chapToolList[i].push(c[j]);
  17261. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17262. this.lineList[i].push(c[j]);
  17263. } else if (c[j].type == 6) {
  17264. this.textList[i].push(c[j]);
  17265. } else {
  17266. if (
  17267. b.indexOf(
  17268. c[j].url
  17269. .split(".")
  17270. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17271. ) != -1
  17272. ) {
  17273. this.vedio[i].push(c[j]);
  17274. } else {
  17275. this.file[i].push(c[j]);
  17276. }
  17277. }
  17278. }
  17279. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17280. d.sources[0].src =
  17281. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17282. this.playerO[i] = d;
  17283. }
  17284. this.courseDetail = res.data[0][0];
  17285. if(this.tType == 2){
  17286. this.tcid = this.arrayToArray(
  17287. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17288. this.classId ? this.classId.split(",") : []
  17289. ).join(",");
  17290. }else{
  17291. this.tcid = this.arrayToArray(
  17292. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17293. this.tcid2 ? this.tcid2.split(",") : []
  17294. ).join(",");
  17295. }
  17296. this.evalua = res.data[0][0].evaId;
  17297. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17298. this.courseType
  17299. ];
  17300. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17301. if (this.tcid && res.data[1].length) {
  17302. let _inviteA = [];
  17303. for (var ik = 0; ik < res.data[1].length; ik++) {
  17304. _inviteA.push({
  17305. cid: res.data[1][ik].classid,
  17306. ic: res.data[1][ik].code,
  17307. });
  17308. }
  17309. for (var ik = 0; ik < _inviteA.length; ik++) {
  17310. if (
  17311. this.arrayToArray(
  17312. _inviteA[ik].cid.split(","),
  17313. this.tcid.split(",")
  17314. ).length
  17315. ) {
  17316. this.inviteCode = _inviteA[ik].ic;
  17317. break;
  17318. }
  17319. }
  17320. }
  17321. for (var l = 0; l < this.chapInfoList.length; l++) {
  17322. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17323. for (var m = 0; m < w.length; m++) {
  17324. w[m].id = l + "-" + m;
  17325. }
  17326. }
  17327. if (
  17328. _chapterData[this.taskCount].length &&
  17329. _chapterData[this.taskCount][0].type == 2
  17330. ) {
  17331. this.showType = 0;
  17332. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17333. } else {
  17334. if (_chapterData[this.taskCount].length > 0) {
  17335. let _url = _chapterData[this.taskCount][0].url;
  17336. if (
  17337. _chapterData[this.taskCount][0].type == 8 ||
  17338. _chapterData[this.taskCount][0].type == 14 ||
  17339. _chapterData[this.taskCount][0].type == 15
  17340. ) {
  17341. this.showType = 2;
  17342. if (
  17343. _url.indexOf("https://") == -1 &&
  17344. _url.indexOf("http://") == -1
  17345. ) {
  17346. _url = "https://" + _url;
  17347. }
  17348. this.pptImgUrl1 = _url;
  17349. } else if (_chapterData[this.taskCount][0].type == 3) {
  17350. if (
  17351. _url
  17352. .split(".")
  17353. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17354. ) {
  17355. this.showType = 3;
  17356. this.pptImgUrl1 = _url;
  17357. } else if (
  17358. this.isAssetTypeAnImage(
  17359. _url
  17360. .split(".")
  17361. [_url.split(".").length - 1].toLocaleLowerCase()
  17362. )
  17363. ) {
  17364. this.showType = 4;
  17365. this.pptImgUrl1 = _url;
  17366. } else {
  17367. this.showType = 2;
  17368. this.pptImgUrl1 =
  17369. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17370. encodeURIComponent(_url);
  17371. }
  17372. } else if (_chapterData[this.taskCount][0].type == 13) {
  17373. this.showType = 4;
  17374. this.pptImgUrl1 = _url;
  17375. } else if (_chapterData[this.taskCount][0].type == 6) {
  17376. this.showType = 1;
  17377. this.text = this.textList[this.taskCount][0];
  17378. } else if (_chapterData[this.taskCount][0].type == 16) {
  17379. this.showType = 16;
  17380. this.pptImgUrl1 = _url;
  17381. }
  17382. }
  17383. }
  17384. this.isClickNav = 0;
  17385. if (
  17386. !_chapterData[this.taskCount].length ||
  17387. _chapterData[this.taskCount][0].type == 12
  17388. ) {
  17389. this.isClickNav = "";
  17390. this.showType = "";
  17391. }
  17392. if (this.tType == 2) {
  17393. _chapterData.forEach((e,i)=>{
  17394. if (e.length) {
  17395. let yym = e.filter(k=>{
  17396. if(!converter(k.name).includes(converter("教案"))){
  17397. return k
  17398. }
  17399. })
  17400. _chapterData[i] = yym
  17401. }
  17402. })
  17403. }
  17404. this.vChapterData = _chapterData;
  17405. } else {
  17406. this.showType = 0;
  17407. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17408. .chapterInfo[0].taskJson;
  17409. var b = [
  17410. "AVI",
  17411. "NAVI",
  17412. "MPEG",
  17413. "ASF",
  17414. "MOV",
  17415. "WMV",
  17416. "3GP",
  17417. "RM",
  17418. "RMVB",
  17419. "FLV",
  17420. "F4V",
  17421. "H.264",
  17422. "H.265",
  17423. "REAL VIDEO",
  17424. "MKV",
  17425. "WebM",
  17426. "HDDVD",
  17427. "MP4",
  17428. "MPG",
  17429. "M4V",
  17430. "MGV",
  17431. "OGV",
  17432. "QTM",
  17433. "STR",
  17434. "AMC",
  17435. "DVX",
  17436. "EVO",
  17437. "DAT",
  17438. "OGG",
  17439. "OGM",
  17440. "MP3",
  17441. ];
  17442. let _chapterData = [];
  17443. for (var i = 0; i < a.length; i++) {
  17444. var c = a[i].chapterData;
  17445. this.vedio[i] = [];
  17446. this.textList[i] = [];
  17447. this.lineList[i] = [];
  17448. this.chapToolList[i] = [];
  17449. this.file[i] = [];
  17450. this.fileC[i] = [];
  17451. _chapterData[i] = c.filter((el) => {
  17452. return el.type != 12;
  17453. });
  17454. this.fileC[i] = c.filter((el) => {
  17455. return el.type == 12;
  17456. });
  17457. if (this.tType == 2) {
  17458. if (this.fileC[i].length) {
  17459. let yym1 = this.fileC[i].filter(e=>{
  17460. if(!converter(e.name).includes(converter("教案"))){
  17461. return e
  17462. }
  17463. })
  17464. this.fileC[i] = yym1
  17465. }
  17466. }
  17467. for (var j = 0; j < c.length; j++) {
  17468. if (c[j].type == 7) {
  17469. this.chapToolList[i].push(c[j]);
  17470. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17471. this.lineList[i].push(c[j]);
  17472. } else if (c[j].type == 6) {
  17473. this.textList[i].push(c[j]);
  17474. } else {
  17475. if (
  17476. b.indexOf(
  17477. c[j].url
  17478. .split(".")
  17479. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17480. ) != -1
  17481. ) {
  17482. this.vedio[i].push(c[j]);
  17483. } else {
  17484. this.file[i].push(c[j]);
  17485. }
  17486. }
  17487. }
  17488. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17489. d.sources[0].src =
  17490. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17491. this.playerO[i] = d;
  17492. }
  17493. if (
  17494. _chapterData[this.taskCount].length &&
  17495. _chapterData[this.taskCount][0].type == 2
  17496. ) {
  17497. this.showType = 0;
  17498. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17499. } else {
  17500. if (_chapterData[this.taskCount].length > 0) {
  17501. let _url = _chapterData[this.taskCount][0].url;
  17502. if (
  17503. _chapterData[this.taskCount][0].type == 8 ||
  17504. _chapterData[this.taskCount][0].type == 14 ||
  17505. _chapterData[this.taskCount][0].type == 15
  17506. ) {
  17507. this.showType = 2;
  17508. if (
  17509. _url.indexOf("https://") == -1 &&
  17510. _url.indexOf("http://") == -1
  17511. ) {
  17512. _url = "https://" + _url;
  17513. }
  17514. this.pptImgUrl1 = _url;
  17515. } else if (_chapterData[this.taskCount][0].type == 3) {
  17516. if (
  17517. _url
  17518. .split(".")
  17519. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17520. ) {
  17521. this.showType = 3;
  17522. this.pptImgUrl1 = _url;
  17523. } else if (
  17524. this.isAssetTypeAnImage(
  17525. _url
  17526. .split(".")
  17527. [_url.split(".").length - 1].toLocaleLowerCase()
  17528. )
  17529. ) {
  17530. this.showType = 4;
  17531. this.pptImgUrl1 = _url;
  17532. } else {
  17533. this.showType = 2;
  17534. this.pptImgUrl1 =
  17535. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17536. encodeURIComponent(_url);
  17537. }
  17538. } else if (_chapterData[this.taskCount][0].type == 13) {
  17539. this.showType = 4;
  17540. this.pptImgUrl1 = _url;
  17541. } else if (_chapterData[this.taskCount][0].type == 6) {
  17542. this.showType = 1;
  17543. this.text = this.textList[this.taskCount][0];
  17544. } else if (_chapterData[this.taskCount][0].type == 16) {
  17545. this.showType = 16;
  17546. this.pptImgUrl1 = _url;
  17547. }
  17548. }
  17549. }
  17550. this.isClickNav = 0;
  17551. if (
  17552. !_chapterData[this.taskCount].length ||
  17553. _chapterData[this.taskCount][0].type == 12
  17554. ) {
  17555. this.isClickNav = "";
  17556. this.showType = "";
  17557. }
  17558. console.log('_chapterData66666',_chapterData);
  17559. if (this.tType == 2) {
  17560. _chapterData.forEach((e,i)=>{
  17561. if (e.length) {
  17562. let yym = e.filter(k=>{
  17563. if(!converter(k.name).includes(converter("教案"))){
  17564. return k
  17565. }
  17566. })
  17567. _chapterData[i] = yym
  17568. }
  17569. })
  17570. }
  17571. this.vChapterData = _chapterData;
  17572. this.$forceUpdate();
  17573. }
  17574. // else {
  17575. // this.courseDetail = res.data[0][0];
  17576. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17577. // }
  17578. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17579. if (type == 10) {
  17580. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17581. console.log('this.userid',this.userid);
  17582. if (this.courseDetail.userid == this.userid) {
  17583. // 开局关闭学生查看内容
  17584. this.StulookMode(false)
  17585. // 开局打开跟随模式
  17586. this.followingMode(true)
  17587. }
  17588. }
  17589. let _this = this;
  17590. if (_this.timer) {
  17591. clearInterval(_this.timer);
  17592. _this.timer = null;
  17593. }
  17594. if (_this.tcid) {
  17595. _this.getCourseGroup(gindex);
  17596. } else {
  17597. _this.selectSWorks(gindex);
  17598. }
  17599. _this.selectStudent();
  17600. _this.selectSLook();
  17601. _this.getPick();
  17602. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17603. // _this.setCTask();
  17604. // }
  17605. if (_this.dialogVisibleGroup) {
  17606. _this.groupJson =
  17607. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17608. _this.taskCount
  17609. ].toolChoose[_this.toolindex].groupJson;
  17610. }
  17611. _this.$nextTick(() => {
  17612. setTimeout(() => {
  17613. _this.checkEva();
  17614. }, 1000);
  17615. });
  17616. _this.timer = setInterval(function () {
  17617. // _this.getCourseDetail(2);
  17618. if (_this.tcid) {
  17619. _this.getCourseGroup();
  17620. } else {
  17621. _this.selectSWorks();
  17622. }
  17623. _this.selectStudent();
  17624. _this.selectSLook();
  17625. _this.getPick();
  17626. // _this.getSplitScreenData();
  17627. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17628. // _this.setCTask();
  17629. // }
  17630. if (_this.dialogVisibleGroup) {
  17631. _this.groupJson =
  17632. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17633. _this.taskCount
  17634. ].toolChoose[_this.toolindex].groupJson;
  17635. }
  17636. if (_this.tType == 4 || _this.ispzType == 4) {
  17637. _this.selectPz();
  17638. }
  17639. }, 5000);
  17640. if (_this.timer2 == null) {
  17641. _this.timer2 = setInterval(()=> {
  17642. _this.getSplitScreenData();//获取分屏数据
  17643. }, 5000);
  17644. }
  17645. _this.$nextTick(function () {
  17646. setTimeout(() => {
  17647. // var a =
  17648. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17649. // document.getElementsByClassName("vedioList")[0].style.height =
  17650. // a + "px";
  17651. // document.getElementsByClassName("navBox")[0].style.height =
  17652. // a - 40 + "px";
  17653. // if (_this.vedio[_this.taskCount].length > 0) {
  17654. // _this.vedioTime = [];
  17655. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17656. // _this.vedioTime[i] = document.getElementsByClassName(
  17657. // "vjs-duration-display"
  17658. // )[i].textContent;
  17659. // }
  17660. // }
  17661. }, 1000);
  17662. });
  17663. })
  17664. .catch((err) => {
  17665. loading.close();
  17666. console.error(err);
  17667. });
  17668. },
  17669. getCourseGroup(gindex) {
  17670. let params = {
  17671. cid: this.id,
  17672. classid: this.tcid ? this.tcid : "1",
  17673. };
  17674. this.ajax
  17675. .get(this.$store.state.api + "getCourseGroup", params)
  17676. .then((res) => {
  17677. if (res.data && res.data[0].length) {
  17678. if (!this.isGroup) {
  17679. let courseGroup = JSON.parse(res.data[0][0].group);
  17680. courseGroup.group = courseGroup.group.filter((el) => {
  17681. el.works = [];
  17682. return el;
  17683. });
  17684. if (courseGroup.isopen == 2) {
  17685. this.isGroup = false;
  17686. this.selectSWorks(gindex);
  17687. return;
  17688. }
  17689. this.courseGroup = courseGroup;
  17690. let groupPerson = res.data[1];
  17691. let group = JSON.parse(res.data[0][0].group).group;
  17692. let courseGroupStudent = {};
  17693. let courseGroupStudentUid = {};
  17694. for (var i = 0; i < group.length; i++) {
  17695. courseGroupStudent[group[i].id] = [];
  17696. courseGroupStudentUid[group[i].id] = [];
  17697. for (var j = 0; j < groupPerson.length; j++) {
  17698. if (groupPerson[j].groupCid == group[i].id) {
  17699. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17700. courseGroupStudentUid[group[i].id].push(
  17701. groupPerson[j].userid
  17702. );
  17703. }
  17704. }
  17705. }
  17706. this.courseGroupStudent = courseGroupStudent;
  17707. this.courseGroupStudentUid = courseGroupStudentUid;
  17708. }
  17709. if (this.courseGroup.isopen == 2) {
  17710. this.isGroup = false;
  17711. } else {
  17712. this.isGroup = true;
  17713. }
  17714. this.selectSWorks(gindex);
  17715. } else {
  17716. this.selectSWorks(gindex);
  17717. this.isGroup = false;
  17718. }
  17719. })
  17720. .catch((err) => {
  17721. // this.$message.error("网络不佳");
  17722. console.error(err);
  17723. });
  17724. },
  17725. setOperationTime() {
  17726. let _this = this;
  17727. if (_this.opertimer) {
  17728. clearInterval(_this.opertimer);
  17729. _this.opertimer = null;
  17730. }
  17731. _this.opertimer = setInterval(() => {
  17732. _this.setoTime("600");
  17733. }, 600000);
  17734. },
  17735. setoTime(time) {
  17736. let params = [
  17737. {
  17738. uid: this.userid,
  17739. cid: this.id,
  17740. type: "2",
  17741. time: time,
  17742. },
  17743. ];
  17744. this.ajax
  17745. .post(this.$store.state.api + "addOperationTimeT2", params)
  17746. .then((res) => {})
  17747. .catch((err) => {
  17748. console.error(err);
  17749. });
  17750. },
  17751. addPz(type, content) {
  17752. if (type == "1" && this.pzConText == "") {
  17753. this.$message.error("评论不能为空!");
  17754. return;
  17755. }
  17756. let params = [
  17757. {
  17758. cid: this.id,
  17759. uid: this.userid,
  17760. s: this.courseType,
  17761. t: this.taskCount,
  17762. c: type == "1" ? this.pzConText : content,
  17763. type: type,
  17764. },
  17765. ];
  17766. this.ajax
  17767. .post(this.$store.state.api + "addPz2", params)
  17768. .then((res) => {
  17769. this.$message({
  17770. message: "添加成功",
  17771. type: "success",
  17772. });
  17773. this.pzConText = "";
  17774. this.addPzDialog = false;
  17775. this.selectPz();
  17776. if(this.tType!=2){
  17777. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17778. }
  17779. })
  17780. .catch((err) => {
  17781. this.$message.error("添加失败");
  17782. console.error(err);
  17783. });
  17784. },
  17785. setReplyIndex(id, i) {
  17786. this.replyIndex = i;
  17787. this.replyPid = id;
  17788. this.replyDialogVisible = true;
  17789. },
  17790. addHf() {
  17791. if (this.reply == "") {
  17792. this.$message.error("回复不能为空!");
  17793. return;
  17794. }
  17795. let params = [
  17796. {
  17797. cid: this.id,
  17798. uid: this.userid,
  17799. s: this.courseType,
  17800. t: this.taskCount,
  17801. type: "1",
  17802. ct: 2,
  17803. pid: this.replyPid,
  17804. c: this.reply,
  17805. },
  17806. ];
  17807. this.ajax
  17808. .post(this.$store.state.api + "addHf", params)
  17809. .then((res) => {
  17810. this.reply = "";
  17811. this.$message({
  17812. message: "回复成功",
  17813. type: "success",
  17814. });
  17815. this.replyDialogVisible = false;
  17816. this.selectPz();
  17817. })
  17818. .catch((err) => {
  17819. this.$message.error("回复失败");
  17820. console.error(err);
  17821. });
  17822. },
  17823. deletePz(id) {
  17824. this.$confirm("确定删除此评论吗?", "提示", {
  17825. confirmButtonText: "确定",
  17826. cancelButtonText: "取消",
  17827. type: "warning",
  17828. })
  17829. .then(() => {
  17830. let params = [
  17831. {
  17832. id: id,
  17833. },
  17834. ];
  17835. this.ajax
  17836. .post(this.$store.state.api + "deletePz", params)
  17837. .then((res) => {
  17838. this.$message({
  17839. message: "删除成功",
  17840. type: "success",
  17841. });
  17842. this.selectPz();
  17843. })
  17844. .catch((err) => {
  17845. this.$message.error("网络异常");
  17846. console.error(err);
  17847. });
  17848. })
  17849. .catch(() => {});
  17850. },
  17851. deleteReply(id) {
  17852. this.$confirm("确定删除此回复吗?", "提示", {
  17853. confirmButtonText: "确定",
  17854. cancelButtonText: "取消",
  17855. type: "warning",
  17856. })
  17857. .then(() => {
  17858. let params = [
  17859. {
  17860. id: id,
  17861. },
  17862. ];
  17863. this.ajax
  17864. .post(this.$store.state.api + "deleteReply", params)
  17865. .then((res) => {
  17866. this.$message({
  17867. message: "删除成功",
  17868. type: "success",
  17869. });
  17870. this.selectPz();
  17871. })
  17872. .catch((err) => {
  17873. this.$message.error("网络异常");
  17874. console.error(err);
  17875. });
  17876. })
  17877. .catch(() => {});
  17878. },
  17879. setPz() {
  17880. if (this.ispzType == 4) {
  17881. this.ispzType = 0;
  17882. this.pzDialog = false;
  17883. return;
  17884. }
  17885. this.ispzType = 4;
  17886. this.pzDialog = true;
  17887. this.selectPz();
  17888. },
  17889. selectPz() {
  17890. let params = {
  17891. cid: this.id,
  17892. s: this.courseType,
  17893. t: this.taskCount,
  17894. type: this.pzStype,
  17895. uid: this.userid,
  17896. };
  17897. this.ajax
  17898. .get(this.$store.state.api + "selectPzListType", params)
  17899. .then((res) => {
  17900. this.pzList = res.data[0];
  17901. var a = res.data[1];
  17902. for (var i = 0; i < a.length; i++) {
  17903. for (var j = 0; j < this.pzList.length; j++) {
  17904. if (!this.pzList[j].hfList) {
  17905. this.pzList[j].hfList = [];
  17906. }
  17907. if (a[i].pid == this.pzList[j].id) {
  17908. this.pzList[j].hfList.push(a[i]);
  17909. }
  17910. }
  17911. }
  17912. })
  17913. .catch((err) => {
  17914. console.error(err);
  17915. });
  17916. },
  17917. // selectHf() {
  17918. // let params = {
  17919. // cid: this.id,
  17920. // s: this.courseType,
  17921. // t: this.taskCount,
  17922. // };
  17923. // this.ajax
  17924. // .get(this.$store.state.api + "selectHfList", params)
  17925. // .then((res) => {
  17926. // var a = res.data[0];
  17927. // for (var i = 0; i < a.length; i++) {
  17928. // for (var j = 0; j < this.pzList.length; j++) {
  17929. // if (!this.pzList[i].hfList) {
  17930. // this.pzList[i].hfList = [];
  17931. // }
  17932. // if (a[i].pid == this.pzList[j].id) {
  17933. // this.pzList[i].hfList.push(a[i]);
  17934. // }
  17935. // }
  17936. // }
  17937. // })
  17938. // .catch((err) => {
  17939. // console.error(err);
  17940. // });
  17941. // },
  17942. updateSLook() {
  17943. let params = {
  17944. sopen: this.sIsOpen == false ? 1 : 2,
  17945. cid: this.id,
  17946. };
  17947. this.ajax
  17948. .get(this.$store.state.api + "updateCourseSLook", params)
  17949. .then((res) => {
  17950. if (this.sIsOpen == true) {
  17951. this.$message({
  17952. message: "权限设置成功",
  17953. type: "success",
  17954. });
  17955. } else {
  17956. this.$message({
  17957. message: "权限关闭成功",
  17958. type: "success",
  17959. });
  17960. }
  17961. })
  17962. .catch((err) => {
  17963. console.error(err);
  17964. });
  17965. },
  17966. updateIsStulook(){
  17967. let params = [
  17968. {
  17969. sopen: this.IsStulook == false ? 2 : 1,
  17970. cid: this.id
  17971. }
  17972. ];
  17973. this.ajax
  17974. .post(this.$store.state.api + "updateCourseStulook", params)
  17975. .then(res => {
  17976. if (this.IsStulook == true) {
  17977. this.$message({
  17978. message: "学生查看内容资料权限已开启",
  17979. type: "success"
  17980. });
  17981. } else {
  17982. this.$message({
  17983. message: "关闭学生查看内容资料权限",
  17984. type: "success"
  17985. });
  17986. }
  17987. // this.setCTask();
  17988. })
  17989. .catch(err => {
  17990. console.error(err);
  17991. });
  17992. },
  17993. updateFollow() {
  17994. let params = [
  17995. {
  17996. sopen: this.IsFollow == false ? 1 : 2,
  17997. cid: this.id,
  17998. },
  17999. ];
  18000. this.ajax
  18001. .post(this.$store.state.api + "updateCourseFollow", params)
  18002. .then((res) => {
  18003. if (this.IsFollow == true) {
  18004. this.$message({
  18005. message: "跟随模式已开启",
  18006. type: "success",
  18007. });
  18008. } else {
  18009. this.$message({
  18010. message: "跟随模式已关闭",
  18011. type: "success",
  18012. });
  18013. }
  18014. this.setCTask();
  18015. })
  18016. .catch((err) => {
  18017. console.error(err);
  18018. });
  18019. },
  18020. setCTask() {
  18021. let params = [
  18022. {
  18023. sopen: this.courseType + "-" + this.taskCount,
  18024. cid: this.id,
  18025. },
  18026. ];
  18027. this.ajax
  18028. .post(this.$store.state.api + "updateCourseFollowC", params)
  18029. .then((res) => {})
  18030. .catch((err) => {
  18031. console.error(err);
  18032. });
  18033. },
  18034. updateLookOpen() {
  18035. let params = [
  18036. {
  18037. sopen: this.IsLookOpen == false ? 1 : 2,
  18038. cid: this.id,
  18039. },
  18040. ];
  18041. this.ajax
  18042. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18043. .then((res) => {
  18044. if (this.IsLookOpen == true) {
  18045. // if (this.courseType != 0 && this.taskCount != 0) {
  18046. // this.openTask(0, 0, "0-0");
  18047. // }
  18048. this.$message({
  18049. message: "权限设置成功",
  18050. type: "success",
  18051. });
  18052. } else {
  18053. this.$message({
  18054. message: "权限关闭成功",
  18055. type: "success",
  18056. });
  18057. }
  18058. this.getCourseState(2);
  18059. })
  18060. .catch((err) => {
  18061. console.error(err);
  18062. });
  18063. },
  18064. selectSLook() {
  18065. let params = {
  18066. cid: this.id,
  18067. };
  18068. this.ajax
  18069. .get(this.$store.state.api + "selectCourseSLook", params)
  18070. .then((res) => {
  18071. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18072. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18073. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18074. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18075. if (!this.IsLookOpen) {
  18076. this.setNavList();
  18077. }else {
  18078. this.getCourseState(1);
  18079. }
  18080. if ((this.IsFollow && this.tType == 2)) {
  18081. this.setContent2(false);
  18082. let _followC = res.data[0][0].followC.split("-");
  18083. if (
  18084. this.courseType != _followC[0] ||
  18085. this.taskCount != _followC[1]
  18086. ) {
  18087. this.navList[this.courseType].isOpen = false;
  18088. this.courseType = _followC[0];
  18089. this.navList[this.courseType].isOpen = true;
  18090. this.taskCount = parseInt(_followC[1]);
  18091. this.navId = res.data[0][0].followC;
  18092. document.scrollingElement.scrollTop = 0;
  18093. this.getCourseDetail(2);
  18094. }
  18095. }
  18096. })
  18097. .catch((err) => {
  18098. console.error(err);
  18099. });
  18100. },
  18101. setNavList() {
  18102. if (this.navList.length == 0) {
  18103. this.navList = [];
  18104. var copyList = [];
  18105. for (var l = 0; l < this.chapInfoList.length; l++) {
  18106. var q = this.chapInfoList[l].dyName;
  18107. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18108. var e;
  18109. copyList.push({
  18110. dyName: q,
  18111. isOpen: l === 0 ? true : false,
  18112. task: [],
  18113. });
  18114. for (var r = 0; r < w.length; r++) {
  18115. e = w[r].task;
  18116. if (this.chapInfoList[l].easy == 1) {
  18117. copyList[l].task.push({
  18118. taskName: q,
  18119. id: l + "-" + r,
  18120. isLook: w[r].isLook,
  18121. isOpen: r === 0 ? true : false,
  18122. tool: [],
  18123. });
  18124. } else {
  18125. copyList[l].task.push({
  18126. taskName: e,
  18127. id: l + "-" + r,
  18128. isLook: w[r].isLook,
  18129. isOpen: r === 0 ? true : false,
  18130. tool: [],
  18131. });
  18132. }
  18133. var t = w[r].toolChoose;
  18134. for (var k = 0; k < t.length; k++) {
  18135. var tool = t[k].tool[0];
  18136. copyList[l].task[r].tool.push({
  18137. tool: tool,
  18138. isTool: false,
  18139. });
  18140. }
  18141. // this.navId = this.navId ? this.navId : l + "-" + r;
  18142. // this.navId = l + "-" + r;
  18143. }
  18144. }
  18145. this.navList = copyList;
  18146. this.navList[0].isOpen = false;
  18147. this.navList[this.courseType].isOpen = true;
  18148. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18149. } else {
  18150. this.setNavList2();
  18151. }
  18152. },
  18153. setNavList2() {
  18154. for (var l = 0; l < this.chapInfoList.length; l++) {
  18155. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18156. for (var r = 0; r < w.length; r++) {
  18157. this.navList[l].task[r].isLook = w[r].isLook;
  18158. }
  18159. }
  18160. if (
  18161. this.IsLookOpen &&
  18162. !this.navList[this.courseType].task[this.taskCount].isLook
  18163. ) {
  18164. this.openTask(0, 0, "0-0");
  18165. }
  18166. this.$forceUpdate();
  18167. },
  18168. getCourseState(type) {
  18169. let params = {
  18170. cid: this.id,
  18171. };
  18172. this.ajax
  18173. .get(this.$store.state.api + "getCourseState", params)
  18174. .then((res) => {
  18175. // if (res.data[0].length > 0) {
  18176. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18177. // }
  18178. if (res.data[0].length > 0 && type == 1) {
  18179. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18180. this.setNavList();
  18181. this.$forceUpdate();
  18182. } else if (res.data[0].length > 0 && type == 2) {
  18183. this.addCourseState(2);
  18184. } else {
  18185. // this.addCourseState(1);
  18186. }
  18187. })
  18188. .catch((err) => {
  18189. console.error(err);
  18190. });
  18191. },
  18192. addCourseState(type,val = '') {
  18193. let _state = val ? val : this.chapInfoList;
  18194. // this.courseType this.taskCount
  18195. if (type == 1 || type == 2) {
  18196. for (var i = 0; i < _state.length; i++) {
  18197. let el = _state[i].chapterInfo[0].taskJson;
  18198. for (var j = 0; j < el.length; j++) {
  18199. // if (i == 0 && j == 0) {
  18200. // el[j].isLook = true;
  18201. // } else {
  18202. // el[j].isLook = false;
  18203. // }
  18204. if (
  18205. this.courseType > i ||
  18206. (this.courseType == i && this.taskCount + 1 > j)
  18207. ) {
  18208. el[j].isLook = true;
  18209. } else {
  18210. el[j].isLook = false;
  18211. }
  18212. }
  18213. }
  18214. }
  18215. let params = [
  18216. {
  18217. cid: this.id,
  18218. state: JSON.stringify(_state),
  18219. },
  18220. ];
  18221. this.ajax
  18222. .post(
  18223. this.$store.state.api +
  18224. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18225. params
  18226. )
  18227. .then((res) => {
  18228. if (this.IsLookOpen) {
  18229. this.setNavList();
  18230. }
  18231. if (type == 3 && type == 2) {
  18232. this.getCourseState(1);
  18233. }
  18234. })
  18235. .catch((err) => {
  18236. console.error(err);
  18237. });
  18238. },
  18239. getHomeWork() {
  18240. let params = {
  18241. cid: this.id,
  18242. stage: this.courseType,
  18243. task: this.taskCount,
  18244. uid: this.userid,
  18245. };
  18246. this.ajax
  18247. .get(this.$store.state.api + "selectWork", params)
  18248. .then((res) => {
  18249. if (res.data[0].length > 0) {
  18250. this.studyJuri = JSON.parse(res.data[0][0].content);
  18251. this.isNoHomeWork = true;
  18252. }
  18253. })
  18254. .catch((err) => {
  18255. console.error(err);
  18256. });
  18257. },
  18258. isAssetTypeAnImage(ext) {
  18259. return (
  18260. [
  18261. "png",
  18262. "jpg",
  18263. "jpeg",
  18264. "bmp",
  18265. "gif",
  18266. "webp",
  18267. "psd",
  18268. "svg",
  18269. "tiff",
  18270. ].indexOf(ext) !== -1
  18271. );
  18272. },
  18273. switchVideo(media) {
  18274. this.playerO = {};
  18275. this.playerOptions.poster = "";
  18276. this.playerOptions.sources[0].src = media;
  18277. this.playerO = this.playerOptions;
  18278. },
  18279. onPlayerPlay() {},
  18280. onPlayerTimeupdate(player) {
  18281. let gklog = player.cache_.currentTime; //当前播放的秒数
  18282. let a = player.cache_.duration; //视频的总时长
  18283. let gklog2 = parseInt(gklog);
  18284. // if(gklog2 == '3'){
  18285. // player.pause()
  18286. // setTimeout(()=>{
  18287. // player.currentTime(gklog2+1)
  18288. // player.play()
  18289. // },1000)
  18290. // }
  18291. console.log(" onPlayerTimeupdate!", gklog);
  18292. console.log(" onPlayerTimeupdate!", gklog2);
  18293. },
  18294. lookVedio(u, i) {
  18295. this.isClickNav = "";
  18296. // this.playerOptions.sources[0].src = u;
  18297. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18298. d.sources[0].src = u;
  18299. this.playerO[this.taskCount] = d;
  18300. this.showType = 0;
  18301. // this.isClickNav = "video" + i;
  18302. this.isClickNav = i;
  18303. this.$forceUpdate();
  18304. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18305. },
  18306. lookText(i, t) {
  18307. this.isClickNav = "";
  18308. // this.text = this.textList[i][t];
  18309. this.text = this.vChapterData[i][t];
  18310. // this.dialogVisible1 = true;
  18311. this.showType = 1;
  18312. // this.isClickNav = "text" + t;
  18313. this.isClickNav = t;
  18314. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18315. },
  18316. lookTools(i, t) {
  18317. this.chapTools = this.chapToolList[i][t];
  18318. this.dialogVisible2 = true;
  18319. },
  18320. async openFile(f,w) {
  18321. this.pptImgUrl = "";
  18322. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18323. if (
  18324. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18325. -1
  18326. ) {
  18327. let _uuurl = await this.checkLink(f);
  18328. this.pptImgUrl =
  18329. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18330. this.showPDF = false;
  18331. this.dialogVisible3 = true;
  18332. } else if (
  18333. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18334. ) {
  18335. this.pptImgUrl = f;
  18336. this.showPDF = true;
  18337. this.dialogVisible3 = true;
  18338. }
  18339. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18340. },
  18341. openTable(f) {
  18342. this.tableJson = JSON.parse(f.works);
  18343. this.dialogVisibleTable2 = true;
  18344. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18345. },
  18346. openWord(f) {
  18347. this.tableJson = JSON.parse(f.works);
  18348. this.dialogVisibleTable3 = true;
  18349. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18350. },
  18351. doUrl(url, i) {
  18352. this.isClickNav = "";
  18353. this.pptImgUrl1 = "";
  18354. this.showType = 2;
  18355. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18356. url = "https://" + url;
  18357. }
  18358. this.pptImgUrl1 = "";
  18359. this.diffKey = new Date().getTime();
  18360. setTimeout(() => {
  18361. this.pptImgUrl1 = url;
  18362. }, 500);
  18363. // this.isClickNav = "line" + i;
  18364. this.isClickNav = i;
  18365. this.$forceUpdate();
  18366. },
  18367. checkPhoto(f, i) {
  18368. this.showType = 4;
  18369. this.pptImgUrl1 = f.url;
  18370. this.isClickNav = i;
  18371. this.$forceUpdate();
  18372. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18373. },
  18374. checkHtml(f, i){
  18375. this.showType = 16;
  18376. this.pptImgUrl1 = f.url;
  18377. this.isClickNav = i;
  18378. this.$forceUpdate();
  18379. },
  18380. async downFile(f, i) {
  18381. this.isClickNav = "";
  18382. this.pptImgUrl1 = "";
  18383. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18384. if (
  18385. a.indexOf(
  18386. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18387. ) != -1
  18388. ) {
  18389. let _uuurl = await this.checkLink(f.url);
  18390. this.pptImgUrl1 =
  18391. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18392. // this.dialogVisible3 = true;
  18393. this.showType = 2;
  18394. } else if (
  18395. this.isAssetTypeAnImage(
  18396. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18397. )
  18398. ) {
  18399. this.showType = 4;
  18400. this.pptImgUrl1 = f.url;
  18401. } else if (
  18402. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18403. "PDF"
  18404. ) {
  18405. this.pptImgUrl1 = f.url;
  18406. // this.dialogVisible3 = true;
  18407. this.showType = 3;
  18408. } else {
  18409. window.open(this.file[i].url);
  18410. }
  18411. // this.isClickNav = "word" + i;
  18412. this.isClickNav = i;
  18413. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18414. },
  18415. downFileList(i) {
  18416. window.open(this.noImgList[i].url);
  18417. },
  18418. openAddWork() {
  18419. this.dialogVisible = true;
  18420. },
  18421. addBzWorks() {
  18422. let params = [
  18423. {
  18424. uid: this.userid,
  18425. cid: this.id,
  18426. stage: this.courseType,
  18427. task: this.taskCount,
  18428. tool: this.toolindex,
  18429. content: JSON.stringify(this.eScore),
  18430. type: 6,
  18431. },
  18432. ];
  18433. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18434. this.homeWorkLoading = true
  18435. this.ajax
  18436. .post(this.$store.state.api + "addCourseWorks", params)
  18437. .then((res) => {
  18438. this.$message({
  18439. message: "提交成功",
  18440. type: "success",
  18441. });
  18442. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18443. setTimeout(() => {
  18444. this.homeWorkLoading = false
  18445. }, 500);
  18446. this.eScore = { eBzText: "", eStar: [] };
  18447. this.studentEvalDialogVisible = false;
  18448. this.selectSWorks();
  18449. })
  18450. .catch((err) => {
  18451. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18452. setTimeout(() => {
  18453. this.homeWorkLoading = false
  18454. }, 500);
  18455. this.$message.error("提交失败");
  18456. console.error(err);
  18457. });
  18458. },
  18459. addBzWorksTeacher() {
  18460. let params = [
  18461. {
  18462. uid: this.sStudent.userid,
  18463. cid: this.id,
  18464. stage: this.courseType,
  18465. task: this.taskCount,
  18466. tool: this.toolindex,
  18467. content: JSON.stringify(this.eScore),
  18468. type: 6,
  18469. },
  18470. ];
  18471. this.ajax
  18472. .post(this.$store.state.api + "addCourseWorks", params)
  18473. .then((res) => {
  18474. this.$message({
  18475. message: "提交成功",
  18476. type: "success",
  18477. });
  18478. this.eScore = { eBzText: "", eStar: [] };
  18479. this.studentEvalDialogVisibleTeacher = false;
  18480. this.selectSWorks();
  18481. })
  18482. .catch((err) => {
  18483. this.$message.error("提交失败");
  18484. console.error(err);
  18485. });
  18486. },
  18487. addStudentAsk() {
  18488. if (!this.radio.length) {
  18489. this.$message.error("请选择选项");
  18490. return;
  18491. }
  18492. for (var i = 0; i < this.askJson.askCount; i++) {
  18493. if (
  18494. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18495. (this.radio[i] !== 0 && !this.radio[i])
  18496. ) {
  18497. this.$message.error("请选择选项");
  18498. return;
  18499. }
  18500. }
  18501. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18502. let params = [
  18503. {
  18504. uid: this.userid,
  18505. cid: this.id,
  18506. stage: this.courseType,
  18507. task: this.taskCount,
  18508. tool: this.toolindex,
  18509. content: JSON.stringify(this.askList),
  18510. type: 2,
  18511. },
  18512. ];
  18513. // console.log('params',params);
  18514. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18515. this.homeWorkLoading = true
  18516. this.ajax
  18517. .post(this.$store.state.api + "addCourseWorks", params)
  18518. .then((res) => {
  18519. this.$message({
  18520. message: "提交成功",
  18521. type: "success",
  18522. });
  18523. setTimeout(() => {
  18524. this.homeWorkLoading = false
  18525. }, 500);
  18526. this.askList = [];
  18527. this.dialogVisible5 = false;
  18528. this.selectStudent();
  18529. this.selectSWorks();
  18530. this.selectSLook();
  18531. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18532. })
  18533. .catch((err) => {
  18534. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18535. setTimeout(() => {
  18536. this.homeWorkLoading = false
  18537. }, 500);
  18538. this.$message.error("提交失败");
  18539. console.error(err);
  18540. });
  18541. },
  18542. addStudentAskTeacher() {
  18543. if (!this.radio.length) {
  18544. this.$message.error("请选择选项");
  18545. return;
  18546. }
  18547. for (var i = 0; i < this.askJson.askCount; i++) {
  18548. if (
  18549. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18550. (this.radio[i] !== 0 && !this.radio[i])
  18551. ) {
  18552. this.$message.error("请选择选项");
  18553. return;
  18554. }
  18555. }
  18556. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18557. let params = [
  18558. {
  18559. uid: this.sStudent.userid,
  18560. cid: this.id,
  18561. stage: this.courseType,
  18562. task: this.taskCount,
  18563. tool: this.toolindex,
  18564. content: JSON.stringify(this.askList),
  18565. type: 2,
  18566. },
  18567. ];
  18568. this.ajax
  18569. .post(this.$store.state.api + "addCourseWorks", params)
  18570. .then((res) => {
  18571. this.$message({
  18572. message: "提交成功",
  18573. type: "success",
  18574. });
  18575. this.askList = [];
  18576. this.dialogVisible5Teacher = false;
  18577. this.selectStudent();
  18578. this.selectSWorks();
  18579. this.selectSLook();
  18580. })
  18581. .catch((err) => {
  18582. this.$message.error("提交失败");
  18583. console.error(err);
  18584. });
  18585. },
  18586. addStudentTest() {
  18587. if (!this.radio.length) {
  18588. this.$message.error("请选择选项");
  18589. return;
  18590. }
  18591. for (var i = 0; i < this.testJson.testCount; i++) {
  18592. if (
  18593. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18594. (this.radio[i] !== 0 && !this.radio[i])
  18595. ) {
  18596. this.$message.error("请选择选项");
  18597. return;
  18598. }
  18599. }
  18600. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18601. let params = [
  18602. {
  18603. uid: this.userid,
  18604. cid: this.id,
  18605. stage: this.courseType,
  18606. task: this.taskCount,
  18607. tool: this.toolindex,
  18608. content: JSON.stringify(this.askList),
  18609. type: 8,
  18610. },
  18611. ];
  18612. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18613. this.homeWorkLoading = true
  18614. this.ajax
  18615. .post(this.$store.state.api + "addCourseWorks", params)
  18616. .then((res) => {
  18617. this.$message({
  18618. message: "提交成功",
  18619. type: "success",
  18620. });
  18621. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18622. setTimeout(() => {
  18623. this.homeWorkLoading = false
  18624. }, 500);
  18625. this.askList = [];
  18626. this.dialogVisibleChoice = false;
  18627. this.selectStudent();
  18628. this.selectSWorks();
  18629. this.selectSLook();
  18630. })
  18631. .catch((err) => {
  18632. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18633. setTimeout(() => {
  18634. this.homeWorkLoading = false
  18635. }, 500);
  18636. this.$message.error("提交失败");
  18637. console.error(err);
  18638. });
  18639. },
  18640. addStudentTestTeacher() {
  18641. if (!this.radio.length) {
  18642. this.$message.error("请选择选项");
  18643. return;
  18644. }
  18645. for (var i = 0; i < this.testJson.testCount; i++) {
  18646. if (
  18647. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18648. (this.radio[i] !== 0 && !this.radio[i])
  18649. ) {
  18650. this.$message.error("请选择选项");
  18651. return;
  18652. }
  18653. }
  18654. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18655. let params = [
  18656. {
  18657. uid: this.sStudent.userid,
  18658. cid: this.id,
  18659. stage: this.courseType,
  18660. task: this.taskCount,
  18661. tool: this.toolindex,
  18662. content: JSON.stringify(this.askList),
  18663. type: 8,
  18664. },
  18665. ];
  18666. this.ajax
  18667. .post(this.$store.state.api + "addCourseWorks", params)
  18668. .then((res) => {
  18669. this.$message({
  18670. message: "提交成功",
  18671. type: "success",
  18672. });
  18673. this.askList = [];
  18674. this.dialogVisibleChoiceTeacher = false;
  18675. this.selectStudent();
  18676. this.selectSWorks();
  18677. this.selectSLook();
  18678. })
  18679. .catch((err) => {
  18680. this.$message.error("提交失败");
  18681. console.error(err);
  18682. });
  18683. },
  18684. addWork() {
  18685. if (this.studyJuri[0].content == "") {
  18686. this.$message.error("请将信息填写完整");
  18687. return;
  18688. } else if (this.studyJuri[0].cover.length == 0) {
  18689. this.$message.error("请将信息填写完整");
  18690. return;
  18691. } else if (this.studyJuri[0].upVedio.length == 0) {
  18692. this.$message.error("请将信息填写完整");
  18693. return;
  18694. }
  18695. if (this.isNoHomeWork) {
  18696. this.$confirm(
  18697. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18698. "提示",
  18699. {
  18700. confirmButtonText: "确定",
  18701. cancelButtonText: "取消",
  18702. type: "warning",
  18703. }
  18704. )
  18705. .then(() => {
  18706. let params = [
  18707. {
  18708. uid: this.userid,
  18709. cid: this.id,
  18710. stage: this.courseType,
  18711. task: this.taskCount,
  18712. content: JSON.stringify(this.studyJuri),
  18713. },
  18714. ];
  18715. this.ajax
  18716. .post(this.$store.state.api + "addWorks", params)
  18717. .then((res) => {
  18718. this.$message({
  18719. message: "提交成功",
  18720. type: "success",
  18721. });
  18722. this.isNoHomeWork = true;
  18723. this.dialogVisible = false;
  18724. })
  18725. .catch((err) => {
  18726. this.$message.error("提交失败");
  18727. console.error(err);
  18728. });
  18729. })
  18730. .catch(() => {});
  18731. } else {
  18732. let params = [
  18733. {
  18734. uid: this.userid,
  18735. cid: this.id,
  18736. stage: this.courseType,
  18737. task: this.taskCount,
  18738. content: JSON.stringify(this.studyJuri),
  18739. },
  18740. ];
  18741. this.ajax
  18742. .post(this.$store.state.api + "addWorks", params)
  18743. .then((res) => {
  18744. this.$message({
  18745. message: "提交成功",
  18746. type: "success",
  18747. });
  18748. this.isNoHomeWork = true;
  18749. this.dialogVisible = false;
  18750. })
  18751. .catch((err) => {
  18752. this.$message.error("提交失败");
  18753. console.error(err);
  18754. });
  18755. }
  18756. },
  18757. selectCount() {
  18758. let params = {
  18759. cid: this.id,
  18760. chid: this.courseType,
  18761. uid: this.userid,
  18762. };
  18763. this.ajax
  18764. .get(this.$store.state.api + "selectToolsCount", params)
  18765. .then((res) => {
  18766. for (var i = 0; i < res.data[0].length; i++) {
  18767. if (res.data[0][i].tools == 1) {
  18768. this.wbCount = res.data[0][i].count;
  18769. } else if (res.data[0][i].tools == 2) {
  18770. this.wordCount = res.data[0][i].count;
  18771. } else if (res.data[0][i].tools == 3) {
  18772. this.mindCount = res.data[0][i].count;
  18773. } else if (res.data[0][i].tools == 4) {
  18774. this.askCount = res.data[0][i].count;
  18775. } else if (res.data[0][i].tools == 6) {
  18776. this.noteCount = res.data[0][i].count;
  18777. } else if (res.data[0][i].tools == 7) {
  18778. this.mindNetWorkCount = res.data[0][i].count;
  18779. } else if (res.data[0][i].tools == 8) {
  18780. this.libraryCount = res.data[0][i].count;
  18781. } else if (res.data[0][i].tools == 16) {
  18782. this.workCount = res.data[0][i].count;
  18783. } else if (res.data[0][i].tools == 10) {
  18784. this.timeCount = res.data[0][i].count;
  18785. } else if (res.data[0][i].tools == 15) {
  18786. this.answerCount = res.data[0][i].count;
  18787. } else if (res.data[0][i].tools == 18) {
  18788. this.trainCount = res.data[0][i].count;
  18789. }
  18790. }
  18791. })
  18792. .catch((err) => {
  18793. console.error(err);
  18794. });
  18795. },
  18796. openTools(t, i, index, c, sName,id) {
  18797. var z = JSON.parse(c);
  18798. this.noteName = sName;
  18799. if (t == 4) {
  18800. this.radio = [];
  18801. this.isAnswer = false;
  18802. let b = z[0].anwer;
  18803. this.radio = b;
  18804. this.askJson = z[0].askJson;
  18805. this.isAnswer = true;
  18806. this.dialogVisible5 = true;
  18807. } else if (t == 45) {
  18808. this.radio = [];
  18809. this.isAnswer = false;
  18810. let b = z[0].anwer;
  18811. this.radio = b;
  18812. this.testJson = z[0].testJson;
  18813. this.isAnswer = true;
  18814. this.dialogVisibleChoice = true;
  18815. }else if(t == 69){
  18816. this.oldEnglishJson1 = {}
  18817. this.oldEnglishJson = {}
  18818. this.englishList1 = {}
  18819. this.newEngIndex = -1;
  18820. this.isNoUserid = false;
  18821. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18822. .toolChoose[i].englishList;
  18823. this.oldEnglishJson = z;
  18824. this.engWid = id;
  18825. this.newEnglishList = { engTitle:"",engText:"" }
  18826. this.newEnglishList1 = []
  18827. this.selectEngC(id,z);
  18828. }else if(t == 62){
  18829. this.videoType = 1;
  18830. this.videoJson = {};
  18831. this.videoJson = JSON.parse(c);
  18832. // this.videoJson =
  18833. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18834. // index
  18835. // ].toolChoose[i].videoJson;
  18836. this.dialogVisibleVideo = true;
  18837. //this.dialog
  18838. }
  18839. // else if (t == 15) {
  18840. // this.answerQ = "";
  18841. // this.questionAnswer = "";
  18842. // this.answerQ = z[0].answerTitle;
  18843. // this.questionAnswer = z[0].answer;
  18844. // this.answerDialogVisible = true;
  18845. // }
  18846. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18847. },
  18848. fastText(p, t) {
  18849. if (t == 1) {
  18850. this.commentText += p;
  18851. } else {
  18852. this.eScore.eBzText += p;
  18853. }
  18854. },
  18855. addTools(t, i, index) {
  18856. var a = 0;
  18857. // this.taskCount = index;
  18858. this.toolindex = i;
  18859. if (t == 1) {
  18860. if (this.wbCount > 0) {
  18861. this.updateCount(this.wbCount, t);
  18862. } else {
  18863. this.wbCount++;
  18864. a = this.wbCount;
  18865. this.toolsCount(a, t);
  18866. }
  18867. window.topU.postMessage(
  18868. {
  18869. tools: "1",
  18870. cid: this.id,
  18871. stage: this.courseType,
  18872. task: this.taskCount,
  18873. tool: i,
  18874. },
  18875. "*"
  18876. );
  18877. } else if (t == 2) {
  18878. if (this.wordCount > 0) {
  18879. this.updateCount(this.wordCount, t);
  18880. } else {
  18881. this.wordCount++;
  18882. a = this.wordCount;
  18883. this.toolsCount(a, t);
  18884. }
  18885. window.topU.postMessage({ tools: "2" }, "*");
  18886. } else if (t == 3) {
  18887. if (this.mindCount > 0) {
  18888. this.updateCount(this.mindCount, t);
  18889. } else {
  18890. this.mindCount++;
  18891. a = this.mindCount;
  18892. this.toolsCount(a, t);
  18893. }
  18894. window.topU.postMessage(
  18895. {
  18896. tools: "3",
  18897. cid: this.id,
  18898. stage: this.courseType,
  18899. task: this.taskCount,
  18900. tool: i,
  18901. },
  18902. "*"
  18903. );
  18904. } else if (t == 4) {
  18905. this.radio = [];
  18906. this.noteName = "";
  18907. this.isAnswer = false;
  18908. if (this.askCount > 0) {
  18909. this.updateCount(this.askCount, t);
  18910. } else {
  18911. this.askCount++;
  18912. a = this.askCount;
  18913. this.toolsCount(a, t);
  18914. }
  18915. if (!this.dialogVisible2) {
  18916. this.askJson.askJson =
  18917. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18918. index
  18919. ].toolChoose[i].askJson;
  18920. this.askJson.askTitle =
  18921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18922. index
  18923. ].toolChoose[i].askTitle;
  18924. this.askJson.askCount =
  18925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18926. index
  18927. ].toolChoose[i].askCount;
  18928. } else {
  18929. this.askJson.askJson = this.chapTools.askJson.askJson;
  18930. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18931. this.askJson.askCount = this.chapTools.askJson.askCount;
  18932. }
  18933. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18934. if (this.askJson.askJson[k].type == "2") {
  18935. this.radio.push([]);
  18936. } else {
  18937. this.radio.push("");
  18938. }
  18939. }
  18940. this.dialogVisible5 = true;
  18941. // window.topU.postMessage({ tools: "4" }, "*");
  18942. } else if (t == 45) {
  18943. this.noteName = "";
  18944. this.radio = [];
  18945. this.isAnswer = false;
  18946. if (this.askCount > 0) {
  18947. this.updateCount(this.askCount, t);
  18948. } else {
  18949. this.askCount++;
  18950. a = this.askCount;
  18951. this.toolsCount(a, t);
  18952. }
  18953. this.testJson =
  18954. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18955. index
  18956. ].toolChoose[i].testJson;
  18957. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18958. if (this.testJson.testJson[k].type == "2") {
  18959. this.radio.push([]);
  18960. } else {
  18961. this.radio.push("");
  18962. }
  18963. }
  18964. this.dialogVisibleChoice = true;
  18965. // window.topU.postMessage({ tools: "4" }, "*");
  18966. } else if (t == 5) {
  18967. if (this.scoreCount > 0) {
  18968. this.updateCount(this.scoreCount, t);
  18969. } else {
  18970. this.scoreCount++;
  18971. a = this.scoreCount;
  18972. this.toolsCount(a, t);
  18973. }
  18974. this.dialogVisible4 = true;
  18975. // window.topU.postMessage({ tools: "5" }, "*");
  18976. } else if (t == 6) {
  18977. if (this.noteCount > 0) {
  18978. this.updateCount(this.noteCount, t);
  18979. } else {
  18980. this.noteCount++;
  18981. a = this.noteCount;
  18982. this.toolsCount(a, t);
  18983. }
  18984. window.topU.postMessage(
  18985. {
  18986. tools: "6",
  18987. cid: this.id,
  18988. stage: this.courseType,
  18989. task: this.taskCount,
  18990. tool: i,
  18991. },
  18992. "*"
  18993. );
  18994. } else if (t == 7) {
  18995. if (this.mindNetWorkCount > 0) {
  18996. this.updateCount(this.mindNetWorkCount, t);
  18997. } else {
  18998. this.mindNetWorkCount++;
  18999. a = this.mindNetWorkCount;
  19000. this.toolsCount(a, t);
  19001. }
  19002. window.topU.postMessage(
  19003. {
  19004. tools: "7",
  19005. cid: this.id,
  19006. stage: this.courseType,
  19007. task: this.taskCount,
  19008. tool: i,
  19009. },
  19010. "*"
  19011. );
  19012. } else if (t == 16) {
  19013. if (this.workCount > 0) {
  19014. this.updateCount(this.workCount, t);
  19015. } else {
  19016. this.workCount++;
  19017. a = this.workCount;
  19018. this.toolsCount(a, t);
  19019. }
  19020. this.dialogVisible = true;
  19021. } else if (t == 50) {
  19022. if (this.tType == 2) {
  19023. this.$message.error("不支持学生使用");
  19024. return;
  19025. }
  19026. this.plworkFile = [];
  19027. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19028. if (!this.uploadCid) {
  19029. this.$message.error(
  19030. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19031. );
  19032. return;
  19033. }
  19034. // this.uploadCid =
  19035. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19036. // index
  19037. // ].toolChoose[i].uploadJson[0];
  19038. this.selectUploadStudent(2);
  19039. } else if (t == 8) {
  19040. if (this.libraryCount > 0) {
  19041. this.updateCount(this.libraryCount, t);
  19042. } else {
  19043. this.libraryCount++;
  19044. a = this.libraryCount;
  19045. this.toolsCount(a, t);
  19046. }
  19047. window.topU.postMessage({ tools: "8" }, "*");
  19048. } else if (t == 17) {
  19049. if (this.libraryCount > 0) {
  19050. this.updateCount(this.libraryCount, t);
  19051. } else {
  19052. this.libraryCount++;
  19053. a = this.libraryCount;
  19054. this.toolsCount(a, t);
  19055. }
  19056. window.topU.postMessage({ tools: "17" }, "*");
  19057. } else if (t == 18) {
  19058. if (this.trainCount > 0) {
  19059. this.updateCount(this.trainCount, t);
  19060. } else {
  19061. this.trainCount++;
  19062. a = this.trainCount;
  19063. this.toolsCount(a, t);
  19064. }
  19065. window.topU.postMessage({ tools: "18" }, "*");
  19066. } else if (t == 10) {
  19067. if (this.timeCount > 0) {
  19068. this.updateCount(this.timeCount, t);
  19069. } else {
  19070. this.timeCount++;
  19071. a = this.timeCount;
  19072. this.toolsCount(a, t);
  19073. }
  19074. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19075. .taskJson[index].toolChoose[i].preTime
  19076. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19077. .toolChoose[i].preTime
  19078. : "";
  19079. this.timeDialogVisible = true;
  19080. } else if (t == 15) {
  19081. this.answerQ = "";
  19082. this.questionAnswer = "";
  19083. if (this.answerCount > 0) {
  19084. this.updateCount(this.answerCount, t);
  19085. } else {
  19086. this.answerCount++;
  19087. a = this.answerCount;
  19088. this.toolsCount(a, t);
  19089. }
  19090. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19091. .taskJson[index].toolChoose[i].answerQ
  19092. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19093. .toolChoose[i].answerQ
  19094. : "";
  19095. this.answerDialogVisible = true;
  19096. } else if (t == 21) {
  19097. window.topU.postMessage({ tools: "21" }, "*");
  19098. } else if (t == 22) {
  19099. window.topU.postMessage({ tools: "22" }, "*");
  19100. } else if (t == 23) {
  19101. window.topU.postMessage({ tools: "23" }, "*");
  19102. } else if (t == 24) {
  19103. window.topU.postMessage({ tools: "24" }, "*");
  19104. } else if (t == 25) {
  19105. window.topU.postMessage({ tools: "25" }, "*");
  19106. } else if (t == 31) {
  19107. window.topU.postMessage({ tools: "31" }, "*");
  19108. } else if (t == 28) {
  19109. window.topU.postMessage({ tools: "28" }, "*");
  19110. } else if (t == 37) {
  19111. window.topU.postMessage({ tools: "37" }, "*");
  19112. } else if (t == 38) {
  19113. window.topU.postMessage({ tools: "38" }, "*");
  19114. } else if (t == 39) {
  19115. window.topU.postMessage({ tools: "39" }, "*");
  19116. } else if (t == 32) {
  19117. window.topU.postMessage({ tools: "32" }, "*");
  19118. } else if (t == 66) {
  19119. window.topU.postMessage({ tools: "66" }, "*");
  19120. } else if (t == 67) {
  19121. window.topU.postMessage({ tools: "67" }, "*");
  19122. } else if (t == 68) {
  19123. window.topU.postMessage({ tools: "68" }, "*");
  19124. } else if (t == 57) {
  19125. // window.topU.postMessage({ tools: "57" }, "*");
  19126. window.topU.postMessage(
  19127. {
  19128. tools: "57u",
  19129. cid: this.id,
  19130. stage: this.courseType,
  19131. task: this.taskCount,
  19132. tool: i,
  19133. },
  19134. "*"
  19135. );
  19136. } else if (t == 58) {
  19137. window.topU.postMessage({ tools: "58" }, "*");
  19138. } else if (t == 59) {
  19139. window.topU.postMessage({ tools: "59" }, "*");
  19140. } else if (t == 60) {
  19141. window.topU.postMessage({ tools: "60" }, "*");
  19142. } else if (t == 61) {
  19143. window.topU.postMessage({ tools: "61" }, "*");
  19144. } else if (t == 63) {
  19145. window.topU.postMessage({ tools: "63" }, "*");
  19146. } else if (t == 71) {
  19147. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19148. // this.$message.error("该工具不可使用");
  19149. // return
  19150. // }
  19151. window.topU.postMessage({ tools: "71" }, "*");
  19152. } else if (t == 72) {
  19153. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19154. .taskJson[index].toolChoose[i].appJson
  19155. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19156. .toolChoose[i].appJson
  19157. : "";
  19158. if(!item || !item.url){
  19159. this.$message.error("应用连接为空, 请到课程管理中添加");
  19160. return;
  19161. }
  19162. if (!document.fullscreenElement) {
  19163. this.enterFullScreen();
  19164. }
  19165. this.$refs.appStoreC.getData(item.url,this.userid)
  19166. // window.open(item.url, "_blank");
  19167. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19168. } else if (t == 69) {
  19169. if (this.worksStudent[i].length) {
  19170. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19171. if (this.userid == this.worksStudent[i][k].userid) {
  19172. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19173. break;
  19174. } else {
  19175. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19176. }
  19177. }
  19178. } else {
  19179. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19180. }
  19181. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19182. .taskJson[index].toolChoose[i].englishList
  19183. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19184. .toolChoose[i].englishList
  19185. : {};
  19186. this.englishToolIndex = i;
  19187. this.myAnList = this.myAnswerList1;
  19188. this.engDialogVisible = true;
  19189. } else if (t == 70) {
  19190. if (this.worksStudent[i].length) {
  19191. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19192. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19193. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19194. break;
  19195. } else {
  19196. this.englishVoiceJsonWork = [];
  19197. }
  19198. }
  19199. } else {
  19200. this.englishVoiceJsonWork = [];
  19201. }
  19202. let englishVoiceJson = {}
  19203. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19204. .taskJson[index].toolChoose[i].englishVoiceJson
  19205. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19206. .toolChoose[i].englishVoiceJson
  19207. : {};
  19208. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19209. this.EnglishVoiceDialog = true;
  19210. } else if (t == 65) {
  19211. if (this.tType == 2) {
  19212. this.$message.error("不支持学生使用");
  19213. return;
  19214. }
  19215. this.uploadCid = this.tcid;
  19216. if (!this.uploadCid) {
  19217. this.$message.error(
  19218. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19219. );
  19220. return;
  19221. }
  19222. this.selectPickStudent();
  19223. } else if (t == 26) {
  19224. window.topU.postMessage(
  19225. {
  19226. tools: "26",
  19227. cid: this.id,
  19228. stage: this.courseType,
  19229. task: this.taskCount,
  19230. tool: i,
  19231. },
  19232. "*"
  19233. );
  19234. } else if (t == 40) {
  19235. if (this.evalCount > 0) {
  19236. this.updateCount(this.evalCount, t);
  19237. } else {
  19238. this.evalCount++;
  19239. a = this.evalCount;
  19240. this.toolsCount(a, t);
  19241. }
  19242. this.eScore = { eBzText: "", eStar: [] };
  19243. if (this.worksStudent[i].length) {
  19244. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19245. if (this.userid == this.worksStudent[i][k].userid) {
  19246. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19247. this.rateJson =
  19248. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19249. index
  19250. ].toolChoose[i].rateJson;
  19251. break;
  19252. } else {
  19253. this.rateJson =
  19254. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19255. index
  19256. ].toolChoose[i].rateJson;
  19257. }
  19258. }
  19259. } else {
  19260. this.rateJson =
  19261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19262. index
  19263. ].toolChoose[i].rateJson;
  19264. }
  19265. this.isStar = false;
  19266. this.studentEvalDialogVisible = true;
  19267. } else if (t == 41) {
  19268. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19269. .taskJson[index].toolChoose[i].selectJson
  19270. ? JSON.parse(
  19271. JSON.stringify(
  19272. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19273. index
  19274. ].toolChoose[i].selectJson
  19275. )
  19276. )
  19277. : { url: "", select: [], answer: [] };
  19278. if (this.worksStudent[i].length) {
  19279. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19280. if (this.userid == this.worksStudent[i][k].userid) {
  19281. var a = this.worksStudent[i][k].works.split(",");
  19282. for (var ki = 0; ki < a.length; ki++) {
  19283. a[ki] = parseInt(a[ki]);
  19284. }
  19285. this.selectAnswer = {
  19286. answer: a,
  19287. stu: this.worksStudent[i][k].sName,
  19288. };
  19289. break;
  19290. } else {
  19291. this.selectAnswer = { answer: [], stu: "" };
  19292. }
  19293. }
  19294. } else {
  19295. this.selectAnswer = { answer: [], stu: "" };
  19296. }
  19297. this.isSelect = false;
  19298. this.dialogVisibleSelect = true;
  19299. } else if (t == 44) {
  19300. window.topU.postMessage({ tools: "44" }, "*");
  19301. } else if (t == 47) {
  19302. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19303. .taskJson[index].toolChoose[i].sentenceList
  19304. ? JSON.parse(
  19305. JSON.stringify(
  19306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19307. index
  19308. ].toolChoose[i].sentenceList
  19309. )
  19310. )
  19311. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19312. for (var q = 0; q < this.sentenceList.length; q++) {
  19313. this.sentenceList[q].chooseSenList = [];
  19314. this.sentenceList[q].addChangeSen = [];
  19315. this.sentenceList[q].addChangeSen = JSON.parse(
  19316. JSON.stringify(this.sentenceList[q].addSentence)
  19317. );
  19318. this.sentenceList[q].chooseSenList.length =
  19319. this.sentenceList[q].rightAnswer.length;
  19320. }
  19321. this.dialogVisibleSentence = true;
  19322. } else if (t == 48) {
  19323. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19324. .taskJson[index].toolChoose[i].tableJson
  19325. ? JSON.parse(
  19326. JSON.stringify(
  19327. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19328. index
  19329. ].toolChoose[i].tableJson
  19330. )
  19331. )
  19332. : { text: "" };
  19333. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19334. if (this.worksStudent[i].length) {
  19335. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19336. if (this.userid == this.worksStudent[i][k].userid) {
  19337. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19338. break;
  19339. }
  19340. }
  19341. }
  19342. this.dialogVisibleTable = true;
  19343. } else if (t == 52) {
  19344. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19345. .taskJson[index].toolChoose[i].wordJson
  19346. ? JSON.parse(
  19347. JSON.stringify(
  19348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19349. index
  19350. ].toolChoose[i].wordJson
  19351. )
  19352. )
  19353. : { text: "" };
  19354. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19355. if (this.worksStudent[i].length) {
  19356. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19357. if (this.userid == this.worksStudent[i][k].userid) {
  19358. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19359. break;
  19360. }
  19361. }
  19362. }
  19363. this.dialogVisibleWord = true;
  19364. } else if (t == 49) {
  19365. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19366. return
  19367. }
  19368. this.groupJson =
  19369. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19370. index
  19371. ].toolChoose[i].groupJson;
  19372. this.islock = this.groupJson.islock == 1 ? true : false;
  19373. this.dialogVisibleGroup = true;
  19374. } else if (t == 62) {
  19375. this.videoType = 0;
  19376. this.videoJson = {};
  19377. this.videoJson =
  19378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19379. index
  19380. ].toolChoose[i].videoJson;
  19381. this.dialogVisibleVideo = true;
  19382. }
  19383. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19384. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19385. },
  19386. teacherWorkSubmit(t, i, index, s) {
  19387. this.sStudent = s;
  19388. this.toolindex = i;
  19389. this.sTool = t;
  19390. if (this.tType !== "1" && this.tType !== "4") {
  19391. return;
  19392. }
  19393. if (t == 16 || t == 32 || t == 50) {
  19394. this.dialogVisibleWorks = true;
  19395. } else if (t == 15) {
  19396. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19397. .taskJson[index].toolChoose[i].answerQ
  19398. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19399. .toolChoose[i].answerQ
  19400. : "";
  19401. this.questionAnswer = "";
  19402. this.answerDialogVisibleTeacher = true; //问答
  19403. } else if (t == 52) {
  19404. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19405. .taskJson[index].toolChoose[i].wordJson
  19406. ? JSON.parse(
  19407. JSON.stringify(
  19408. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19409. index
  19410. ].toolChoose[i].wordJson
  19411. )
  19412. )
  19413. : { text: "" };
  19414. if (this.worksStudent[i].length) {
  19415. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19416. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19417. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19418. break;
  19419. }
  19420. }
  19421. }
  19422. this.dialogVisibleWordTeacher = true; //文档
  19423. } else if (t == 4) {
  19424. this.radio = [];
  19425. this.noteName = "";
  19426. this.isAnswer = false;
  19427. if (this.askCount > 0) {
  19428. this.updateCount(this.askCount, t);
  19429. } else {
  19430. this.askCount++;
  19431. a = this.askCount;
  19432. this.toolsCount(a, t);
  19433. }
  19434. if (!this.dialogVisible2) {
  19435. this.askJson.askJson =
  19436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19437. index
  19438. ].toolChoose[i].askJson;
  19439. this.askJson.askTitle =
  19440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19441. index
  19442. ].toolChoose[i].askTitle;
  19443. this.askJson.askCount =
  19444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19445. index
  19446. ].toolChoose[i].askCount;
  19447. } else {
  19448. this.askJson.askJson = this.chapTools.askJson.askJson;
  19449. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19450. this.askJson.askCount = this.chapTools.askJson.askCount;
  19451. }
  19452. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19453. if (this.askJson.askJson[k].type == "2") {
  19454. this.radio.push([]);
  19455. } else {
  19456. this.radio.push("");
  19457. }
  19458. }
  19459. this.dialogVisible5Teacher = true;
  19460. } else if (t == 45) {
  19461. this.noteName = "";
  19462. this.radio = [];
  19463. this.isAnswer = false;
  19464. if (this.askCount > 0) {
  19465. this.updateCount(this.askCount, t);
  19466. } else {
  19467. this.askCount++;
  19468. a = this.askCount;
  19469. this.toolsCount(a, t);
  19470. }
  19471. this.testJson =
  19472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19473. index
  19474. ].toolChoose[i].testJson;
  19475. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19476. if (this.testJson.testJson[k].type == "2") {
  19477. this.radio.push([]);
  19478. } else {
  19479. this.radio.push("");
  19480. }
  19481. }
  19482. this.dialogVisibleChoiceTeacher = true;
  19483. } else if (t == 41) {
  19484. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19485. .taskJson[index].toolChoose[i].selectJson
  19486. ? JSON.parse(
  19487. JSON.stringify(
  19488. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19489. index
  19490. ].toolChoose[i].selectJson
  19491. )
  19492. )
  19493. : { url: "", select: [], answer: [] };
  19494. if (this.worksStudent[i].length) {
  19495. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19496. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19497. var a = this.worksStudent[i][k].works.split(",");
  19498. for (var ki = 0; ki < a.length; ki++) {
  19499. a[ki] = parseInt(a[ki]);
  19500. }
  19501. this.selectAnswer = {
  19502. answer: a,
  19503. stu: this.worksStudent[i][k].sName,
  19504. };
  19505. break;
  19506. } else {
  19507. this.selectAnswer = { answer: [], stu: "" };
  19508. }
  19509. }
  19510. } else {
  19511. this.selectAnswer = { answer: [], stu: "" };
  19512. }
  19513. this.isSelect = false;
  19514. this.dialogVisibleSelectTeacher = true;
  19515. } else if (t == 47) {
  19516. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19517. .taskJson[index].toolChoose[i].sentenceList
  19518. ? JSON.parse(
  19519. JSON.stringify(
  19520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19521. index
  19522. ].toolChoose[i].sentenceList
  19523. )
  19524. )
  19525. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19526. for (var q = 0; q < this.sentenceList.length; q++) {
  19527. this.sentenceList[q].chooseSenList = [];
  19528. this.sentenceList[q].addChangeSen = [];
  19529. this.sentenceList[q].addChangeSen = JSON.parse(
  19530. JSON.stringify(this.sentenceList[q].addSentence)
  19531. );
  19532. this.sentenceList[q].chooseSenList.length =
  19533. this.sentenceList[q].rightAnswer.length;
  19534. }
  19535. this.dialogVisibleSentenceTeacher = true;
  19536. } else if (t == 48) {
  19537. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19538. .taskJson[index].toolChoose[i].tableJson
  19539. ? JSON.parse(
  19540. JSON.stringify(
  19541. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19542. index
  19543. ].toolChoose[i].tableJson
  19544. )
  19545. )
  19546. : { text: "" };
  19547. if (this.worksStudent[i].length) {
  19548. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19549. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19550. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19551. break;
  19552. }
  19553. }
  19554. }
  19555. this.dialogVisibleTableTeacher = true;
  19556. } else if (t == 40) {
  19557. if (this.evalCount > 0) {
  19558. this.updateCount(this.evalCount, t);
  19559. } else {
  19560. this.evalCount++;
  19561. a = this.evalCount;
  19562. this.toolsCount(a, t);
  19563. }
  19564. this.eScore = { eBzText: "", eStar: [] };
  19565. if (this.worksStudent[i].length) {
  19566. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19567. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19568. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19569. this.rateJson =
  19570. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19571. index
  19572. ].toolChoose[i].rateJson;
  19573. break;
  19574. } else {
  19575. this.rateJson =
  19576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19577. index
  19578. ].toolChoose[i].rateJson;
  19579. }
  19580. }
  19581. } else {
  19582. this.rateJson =
  19583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19584. index
  19585. ].toolChoose[i].rateJson;
  19586. }
  19587. this.isStar = false;
  19588. this.studentEvalDialogVisibleTeacher = true;
  19589. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19590. window.topU.postMessage(
  19591. {
  19592. tools: t + "teacher",
  19593. cid: this.id,
  19594. stage: this.courseType,
  19595. task: this.taskCount,
  19596. tool: i,
  19597. student: this.sStudent,
  19598. },
  19599. "*"
  19600. );
  19601. }else if (t == 72) {
  19602. if (!document.fullscreenElement) {
  19603. this.enterFullScreen();
  19604. }
  19605. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19606. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19607. }
  19608. },
  19609. openCocoPi(tool, i, uid, uname) {
  19610. let student = {
  19611. userid: uid,
  19612. student: uname,
  19613. };
  19614. if (tool == 57) {
  19615. window.topU.postMessage(
  19616. {
  19617. tools: tool + "teacher",
  19618. cid: this.id,
  19619. stage: this.courseType,
  19620. task: this.taskCount,
  19621. tool: i,
  19622. student: student,
  19623. },
  19624. "*"
  19625. );
  19626. }
  19627. },
  19628. setRightAnswer(s, i, j) {
  19629. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19630. if (
  19631. this.sentenceList[i].chooseSenList[q] == undefined ||
  19632. this.sentenceList[i].chooseSenList[q] == ""
  19633. ) {
  19634. this.sentenceList[i].chooseSenList[q] = s;
  19635. this.sentenceList[i].addChangeSen[j] = "";
  19636. break;
  19637. }
  19638. }
  19639. this.$forceUpdate();
  19640. },
  19641. returnCard(r, i, j) {
  19642. var a = this.sentenceList[i].addSentence.indexOf(r);
  19643. this.sentenceList[i].chooseSenList[j] = "";
  19644. this.sentenceList[i].addChangeSen[a] = r;
  19645. this.$forceUpdate();
  19646. },
  19647. // addSentenceTool() {
  19648. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19649. // this.taskCount
  19650. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19651. // this.sentenceList = [
  19652. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19653. // ];
  19654. // this.dialogVisibleSentence = false;
  19655. // },
  19656. toolsCount(a, t) {
  19657. let params = {
  19658. cid: this.id,
  19659. chid: this.courseType,
  19660. uid: this.userid,
  19661. tid: t,
  19662. count: a,
  19663. };
  19664. this.ajax
  19665. .get(this.$store.state.api + "insertToolsCount", params)
  19666. .then((res) => {
  19667. this.selectCount();
  19668. })
  19669. .catch((err) => {
  19670. console.error(err);
  19671. });
  19672. },
  19673. updateCount(c, t) {
  19674. c++;
  19675. let params = {
  19676. cid: this.id,
  19677. chid: this.courseType,
  19678. uid: this.userid,
  19679. tid: t,
  19680. count: c,
  19681. };
  19682. this.ajax
  19683. .get(this.$store.state.api + "updateToolsCount", params)
  19684. .then((res) => {
  19685. this.selectCount();
  19686. })
  19687. .catch((err) => {
  19688. console.error(err);
  19689. });
  19690. },
  19691. checkEva() {
  19692. if (this.evalua != "") {
  19693. for (var i = 0; i < this.evaJuri.length; i++) {
  19694. if (this.evalua == this.evaJuri[i].id) {
  19695. this.eTitle = this.evaJuri[i].title;
  19696. this.eJson = JSON.parse(this.evaJuri[i].content);
  19697. }
  19698. }
  19699. this.$forceUpdate();
  19700. setTimeout(() => {
  19701. this.setMindData();
  19702. }, 0);
  19703. }
  19704. },
  19705. selectEva() {
  19706. let params = {
  19707. oid: this.oid,
  19708. };
  19709. this.ajax
  19710. .get(this.$store.state.api + "selectAllEvaluation", params)
  19711. .then((res) => {
  19712. this.evaJuri = res.data[0];
  19713. })
  19714. .catch((err) => {
  19715. console.error(err);
  19716. });
  19717. },
  19718. setMindData() {
  19719. this.data.data = [];
  19720. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19721. let _eJson = Object.keys(this.eJson);
  19722. let _e = this.eJson;
  19723. for (let i = 0; i < _eJson.length; i++) {
  19724. let element = _e[_eJson[i]];
  19725. this.data.data.push({
  19726. id: element.id,
  19727. parentid: "root",
  19728. topic: element.name,
  19729. });
  19730. let _eJsonc = Object.keys(element.child);
  19731. let _e2 = element.child;
  19732. for (let j = 0; j < _eJsonc.length; j++) {
  19733. let _ec = _e2[_eJsonc[j]];
  19734. this.data.data.push({
  19735. id: _ec.id,
  19736. parentid: element.id,
  19737. topic: _ec.name,
  19738. });
  19739. let _eJsonz = Object.keys(_ec.child);
  19740. let _e3 = _ec.child;
  19741. for (let z = 0; z < _eJsonz.length; z++) {
  19742. let _ez = _e3[_eJsonz[z]];
  19743. this.data.data.push({
  19744. id: _ez.id,
  19745. parentid: _ec.id,
  19746. topic: _ez.name,
  19747. });
  19748. }
  19749. }
  19750. }
  19751. this.$forceUpdate();
  19752. },
  19753. checkFileFull(type, url) {
  19754. this.fullDialogVisible = true;
  19755. this.fulltype = type;
  19756. this.fullUrl = url;
  19757. },
  19758. async checkFileFull1(t, f) {
  19759. this.fullDialogVisible = true;
  19760. if (t == 6) {
  19761. this.fulltype = 1;
  19762. this.fullUrl = JSON.parse(JSON.stringify(f));
  19763. } else if (t == 8 ) {
  19764. this.fulltype = 2;
  19765. this.fullUrl = f.url;
  19766. }else if (t == 15) {
  19767. this.diffKey = new Date().getTime();
  19768. this.fulltype = 4;
  19769. this.fullUrl = f.url;
  19770. } else if (t == 16) {
  19771. this.fulltype = 16;
  19772. this.fullUrl = f.url;
  19773. } else if (
  19774. t == 3 &&
  19775. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19776. "PDF"
  19777. ) {
  19778. this.fulltype = 3;
  19779. this.fullUrl = f.url;
  19780. } else if (t == 3) {
  19781. this.fulltype = 2;
  19782. let _uuurl = await this.checkLink(f.url);
  19783. this.fullUrl =
  19784. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19785. }
  19786. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19787. },
  19788. openSname(n, id, i, uid) {
  19789. this.snameWid = id;
  19790. this.worksSName = n;
  19791. this.worksSid = uid == n ? "" : uid;
  19792. this.toolindex = i;
  19793. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19794. if (!this.uploadCid) {
  19795. this.$message.error(
  19796. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19797. );
  19798. return;
  19799. }
  19800. this.selectUploadStudent(1);
  19801. },
  19802. updateName() {
  19803. let params = {
  19804. n: this.worksSName,
  19805. cid: this.snameWid,
  19806. };
  19807. this.ajax
  19808. .get(this.$store.state.api + "updateCourseWorksName", params)
  19809. .then((res) => {
  19810. this.$message({
  19811. message: "修改成功",
  19812. type: "success",
  19813. });
  19814. this.dialogVisibleSname = false;
  19815. this.getCourseDetail(2);
  19816. this.snameWid = "";
  19817. this.worksSName = "";
  19818. })
  19819. .catch((err) => {
  19820. console.error(err);
  19821. });
  19822. },
  19823. downloadFile2(f) {
  19824. // const loading = this.$loading.service({
  19825. // background: "rgba(255, 255, 255, 0.7)",
  19826. // target: document.body,
  19827. // text: "文件加载中...",
  19828. // });
  19829. // let url2 = f.url;
  19830. // let _url2 = "";
  19831. // if (
  19832. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19833. // ) {
  19834. // _url2 = url2.split(
  19835. // "https://view.officeapps.live.com/op/view.aspx?src="
  19836. // )[1];
  19837. // } else {
  19838. // _url2 = url2;
  19839. // }
  19840. // let params = {
  19841. // url: _url2,
  19842. // name: f.name,
  19843. // };
  19844. // this.ajax
  19845. // .get(this.$store.state.api + "download", params)
  19846. // .then((res) => {
  19847. // loading.close();
  19848. // let content = res.data.data.data;
  19849. // let ab = new ArrayBuffer(content.length);
  19850. // let view = new Uint8Array(ab);
  19851. // for (var i = 0; i < content.length; ++i) {
  19852. // view[i] = content[i];
  19853. // }
  19854. // let elink = document.createElement("a");
  19855. // elink.download = f.name;
  19856. // elink.style.display = "none";
  19857. // let blob = new Blob([ab], {
  19858. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19859. // });
  19860. // elink.href = URL.createObjectURL(blob);
  19861. // document.body.appendChild(elink);
  19862. // elink.click();
  19863. // document.body.removeChild(elink);
  19864. // })
  19865. // .catch((err) => {
  19866. // loading.close();
  19867. // console.error(err);
  19868. // });
  19869. var credentials = {
  19870. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19871. secretAccessKey: "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",
  19872. }; //秘钥形式的登录上传
  19873. window.AWS.config.update(credentials);
  19874. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19875. let url2 = f.url;
  19876. let _url2 = "";
  19877. if (
  19878. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19879. ) {
  19880. _url2 = url2.split(
  19881. "https://view.officeapps.live.com/op/view.aspx?src="
  19882. )[1];
  19883. } else {
  19884. _url2 = url2;
  19885. }
  19886. let _this = this;
  19887. _this.downLoading = true
  19888. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19889. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19890. var params = {
  19891. Bucket: "ccrb",
  19892. Key: name
  19893. };
  19894. s3.getObject(params, function (err, data) {
  19895. _this.downLoading = false
  19896. if (err) console.log(err, err.stack); // an error occurred
  19897. else {
  19898. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19899. let a = document.createElement("a");
  19900. a.name = f.name;
  19901. a.href = url;
  19902. a.download = f.name;
  19903. a.click();
  19904. console.log(data);
  19905. } // sxuccessful response
  19906. });
  19907. return;
  19908. let url = f.url;
  19909. let _url = "";
  19910. if (
  19911. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19912. ) {
  19913. _url = url.split(
  19914. "https://view.officeapps.live.com/op/view.aspx?src="
  19915. )[1];
  19916. } else {
  19917. _url = url;
  19918. }
  19919. _this.downLoading = true
  19920. let x = new XMLHttpRequest();
  19921. x.open("GET", _url, true);
  19922. x.responseType = "blob";
  19923. x.onload = function () {
  19924. _this.downLoading = false
  19925. let url = window.URL.createObjectURL(new Blob([x.response]));
  19926. let a = document.createElement("a");
  19927. a.name = f.name;
  19928. a.href = url;
  19929. a.download = f.name;
  19930. a.click();
  19931. };
  19932. x.send();
  19933. },
  19934. downloadFile(url,uid) {
  19935. if (this.tType == 1 || this.userid == uid) {
  19936. // this.$message.info("查看作业-下载文件")
  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. }
  19979. return;
  19980. let _this = this;
  19981. let _url = "";
  19982. if (
  19983. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19984. ) {
  19985. _url = url.split(
  19986. "https://view.officeapps.live.com/op/view.aspx?src="
  19987. )[1];
  19988. } else {
  19989. _url = url;
  19990. }
  19991. const x = new XMLHttpRequest();
  19992. x.open("GET", _url, true);
  19993. x.responseType = "blob";
  19994. // this.downLoading = true
  19995. const loading = _this.$loading.service({
  19996. background: "rgba(255, 255, 255, 0.7)",
  19997. target: document.body,
  19998. text: "文件加载中...",
  19999. });
  20000. // _this.$message.success("文件下载中...");
  20001. x.onload = function (e) {
  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. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20029. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20030. }
  20031. }
  20032. }
  20033. this.Stbodywidth =
  20034. document.getElementsByClassName("student_body").length &&
  20035. document.getElementsByClassName("student_body")[0].offsetWidth;
  20036. },
  20037. closeDraw() {
  20038. this.bg = null;
  20039. this.drawShow = false;
  20040. },
  20041. showPicturePaint(url) {
  20042. let params = {
  20043. img: url,
  20044. };
  20045. this.ajax
  20046. .get(this.$store.state.api + "imgToBase64", params)
  20047. .then((res) => {
  20048. this.drawShow = true;
  20049. this.bg = res.data[0].img;
  20050. })
  20051. .catch((err) => {
  20052. console.error(err);
  20053. });
  20054. },
  20055. addImgDraw(base64) {
  20056. let file = { name: "批注图.png" };
  20057. let img = this.dataUrlToFile(base64, file);
  20058. this.beforeUpload1(img, 5);
  20059. },
  20060. addImgDrawImG(url) {
  20061. // console.log(url);
  20062. let params = [
  20063. {
  20064. wid: this.commentDetail.wid,
  20065. img: url,
  20066. },
  20067. ];
  20068. this.ajax
  20069. .post(this.$store.state.api + "updateCourseWorks", params)
  20070. .then((res) => {
  20071. this.$message({
  20072. message: "提交成功",
  20073. type: "success",
  20074. });
  20075. this.drawShow = false;
  20076. this.bg = "";
  20077. this.selectSWorks();
  20078. this.selectStudent();
  20079. })
  20080. .catch((err) => {
  20081. this.$message.error("提交失败");
  20082. console.error(err);
  20083. });
  20084. },
  20085. deletePicturePaint() {
  20086. this.$confirm("确定删除此批注吗?", "提示", {
  20087. confirmButtonText: "确定",
  20088. cancelButtonText: "取消",
  20089. type: "warning",
  20090. })
  20091. .then(() => {
  20092. let params = [
  20093. {
  20094. wid: this.commentDetail.wid,
  20095. img: "",
  20096. },
  20097. ];
  20098. this.ajax
  20099. .post(this.$store.state.api + "updateCourseWorks", params)
  20100. .then((res) => {
  20101. this.$message({
  20102. message: "删除成功",
  20103. type: "success",
  20104. });
  20105. this.selectSWorks();
  20106. this.selectStudent();
  20107. })
  20108. .catch((err) => {
  20109. this.$message.error("删除失败");
  20110. console.error(err);
  20111. });
  20112. })
  20113. .catch(() => {});
  20114. },
  20115. getAudioVideo(constraintsData) {
  20116. if (navigator.mediaDevices === undefined) {
  20117. navigator.mediaDevices = {};
  20118. }
  20119. if (navigator.mediaDevices.getUserMedia === undefined) {
  20120. navigator.mediaDevices.getUserMedia = function (constraints) {
  20121. // 首先,如果有getUserMedia的话,就获得它
  20122. var getUserMedia =
  20123. navigator.getUserMedia ||
  20124. navigator.webkitGetUserMedia ||
  20125. navigator.mozGetUserMedia ||
  20126. navigator.msGetUserMedia;
  20127. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20128. if (!getUserMedia) {
  20129. return Promise.reject({ code: 404 });
  20130. }
  20131. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20132. return new Promise(function (resolve, reject) {
  20133. getUserMedia.call(navigator, constraints, resolve, reject);
  20134. });
  20135. };
  20136. }
  20137. return navigator.mediaDevices.getUserMedia(constraintsData);
  20138. },
  20139. /**
  20140. * 开始录制
  20141. */
  20142. startRecording(callback) {
  20143. let _function = (screenStream) => {
  20144. this.addStreamStopListener(screenStream, () => {
  20145. console.log("流停止监听");
  20146. this.stopRecording();
  20147. this.$emit("streamStop", {});
  20148. // this.stopRecording();
  20149. });
  20150. var options = {
  20151. type: "video",
  20152. mimeType: "video/webm",
  20153. disableLogs: false,
  20154. getNativeBlob: false, // enable it for longer recordings
  20155. ignoreMutedMedia: false,
  20156. };
  20157. // this.video.srcObject = screenStream;
  20158. this.recorder = RecordRTC(screenStream, options);
  20159. this.recorder.startRecording();
  20160. this.recorder.screen = screenStream;
  20161. this.videoStart = true;
  20162. // callback(true);
  20163. };
  20164. this.getAudioVideo({ audio: true })
  20165. .then((res) => {
  20166. this.captureScreen(_function, true);
  20167. console.log("已点击允许,开启成功");
  20168. })
  20169. .catch((err) => {
  20170. // console.log('浏览器不支持,请更换浏览器')
  20171. // } else {
  20172. this.captureScreen(_function, false);
  20173. console.log("请检查是否存在麦克风");
  20174. });
  20175. },
  20176. /**
  20177. * 停止录制
  20178. */
  20179. stopRecording(callback) {
  20180. this.recorder.stopRecording(() => {
  20181. // this.video.src = this.video.srcObject = null;
  20182. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20183. const url = URL.createObjectURL(this.recorder.getBlob());
  20184. const a = document.createElement("a"); //this.fileName+
  20185. let videoFile = new File(
  20186. [this.recorder.getBlob()],
  20187. this.courseDetail.title + "录屏.mp4",
  20188. {
  20189. type: "video/mp4",
  20190. }
  20191. );
  20192. let downloadUrl = URL.createObjectURL(videoFile);
  20193. if(this.$refs.classRoomHelperRef){
  20194. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20195. }
  20196. document.body.appendChild(a);
  20197. a.style.display = "none";
  20198. a.href = url;
  20199. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20200. a.click();
  20201. this.recorder.screen.stop();
  20202. this.recorder.destroy();
  20203. this.recorder = null;
  20204. this.videoStart = false;
  20205. // callback(false);
  20206. });
  20207. },
  20208. //初始化
  20209. captureScreen(callback, type) {
  20210. if (navigator.getDisplayMedia) {
  20211. //录制结束,文件下载
  20212. navigator
  20213. .getDisplayMedia({
  20214. video: true,
  20215. })
  20216. .then((screenStream) => {
  20217. if (type) {
  20218. navigator.mediaDevices
  20219. .getUserMedia({ audio: true })
  20220. .then((mic) => {
  20221. screenStream.addTrack(mic.getTracks()[0]);
  20222. callback(screenStream);
  20223. });
  20224. } else {
  20225. callback(screenStream);
  20226. }
  20227. })
  20228. .catch(function (error) {
  20229. console.log("error", error);
  20230. });
  20231. } else if (navigator.mediaDevices.getDisplayMedia) {
  20232. navigator.mediaDevices
  20233. .getDisplayMedia({
  20234. video: true,
  20235. })
  20236. .then((screenStream) => {
  20237. if (type) {
  20238. navigator.mediaDevices
  20239. .getUserMedia({ audio: true })
  20240. .then((mic) => {
  20241. screenStream.addTrack(mic.getTracks()[0]);
  20242. callback(screenStream);
  20243. });
  20244. } else {
  20245. callback(screenStream);
  20246. }
  20247. })
  20248. .catch(function (error) {
  20249. console.log("error", error);
  20250. });
  20251. } else {
  20252. var error = "getDisplayMedia API are not supported in this browser.";
  20253. console.log("error", error);
  20254. alert(error);
  20255. }
  20256. },
  20257. //流监听
  20258. addStreamStopListener(stream, callback) {
  20259. stream.addEventListener(
  20260. "ended",
  20261. function () {
  20262. callback();
  20263. callback = function () {};
  20264. },
  20265. false
  20266. );
  20267. stream.addEventListener(
  20268. "inactive",
  20269. function () {
  20270. callback();
  20271. callback = function () {};
  20272. },
  20273. false
  20274. );
  20275. stream.getTracks().forEach(function (track) {
  20276. track.addEventListener(
  20277. "ended",
  20278. function () {
  20279. callback();
  20280. callback = function () {};
  20281. },
  20282. false
  20283. );
  20284. track.addEventListener(
  20285. "inactive",
  20286. function () {
  20287. callback();
  20288. callback = function () {};
  20289. },
  20290. false
  20291. );
  20292. });
  20293. },
  20294. updateGroup() {
  20295. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20296. this.dialogVisibleGroup2 = true;
  20297. },
  20298. numberPan() {
  20299. if (
  20300. /[^\d]/.test(this.groupJson.number) ||
  20301. this.groupJson.number < 2 ||
  20302. this.groupJson.number > 10
  20303. ) {
  20304. this.$message.error("请输入2-10的数字");
  20305. this.groupJson.number = "";
  20306. }
  20307. },
  20308. updateGroupJson() {
  20309. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20310. if (
  20311. this.groupStudentUid[this.toolindex][i].length >
  20312. this.groupJson2.number
  20313. ) {
  20314. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20315. return;
  20316. }
  20317. }
  20318. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20319. this.islock = this.groupJson.islock == 1 ? true : false;
  20320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20321. this.taskCount
  20322. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20323. let params = [
  20324. {
  20325. cid: this.id,
  20326. chapters: JSON.stringify(this.chapInfoList),
  20327. uid: this.userid,
  20328. unitIndex: this.courseType,
  20329. },
  20330. ];
  20331. this.ajax
  20332. .post(this.$store.state.api + "updateWorkNew4", params)
  20333. .then((res) => {
  20334. this.$message.success("设置成功");
  20335. this.getCourseDetail(2);
  20336. this.dialogVisibleGroup2 = false;
  20337. this.groupJson2 = {};
  20338. this.$forceUpdate();
  20339. })
  20340. .catch((err) => {
  20341. this.$message.error("网络不佳");
  20342. console.error(err);
  20343. });
  20344. },
  20345. lockChair() {
  20346. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20347. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20348. this.updateGroupJson();
  20349. },
  20350. selectGroup(index) {
  20351. this.getCourseDetail(2, index);
  20352. },
  20353. joinGroup(index) {
  20354. if (this.groupJson.islock == 2) {
  20355. this.$message.error("位置已被锁定,无法加入");
  20356. return;
  20357. }
  20358. if (
  20359. this.groupStudent[this.toolindex][index].length >
  20360. this.groupJson.number ||
  20361. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20362. ) {
  20363. this.$message.error("位置已满,无法加入");
  20364. return;
  20365. }
  20366. let params = [
  20367. {
  20368. cid: this.id,
  20369. stage: this.courseType,
  20370. task: this.taskCount,
  20371. tool: this.toolindex,
  20372. g: index,
  20373. uid: this.userid,
  20374. },
  20375. ];
  20376. this.ajax
  20377. .post(this.$store.state.api + "joinGroup", params)
  20378. .then((res) => {
  20379. this.$message.success("加入成功");
  20380. this.getCourseDetail(2);
  20381. })
  20382. .catch((err) => {
  20383. this.$message.error("网络不佳");
  20384. console.error(err);
  20385. });
  20386. },
  20387. exitGroup(id) {
  20388. if (this.groupJson.islock == 2) {
  20389. this.$message.error("位置已被锁定,无法退出");
  20390. return;
  20391. }
  20392. let params = [
  20393. {
  20394. gid: id,
  20395. },
  20396. ];
  20397. this.ajax
  20398. .post(this.$store.state.api + "exitGroup", params)
  20399. .then((res) => {
  20400. this.$message.success("退出成功");
  20401. this.getCourseDetail(2);
  20402. })
  20403. .catch((err) => {
  20404. this.$message.error("网络不佳");
  20405. console.error(err);
  20406. });
  20407. },
  20408. groupUpload(index, task, gindex) {
  20409. this.taskCount = task;
  20410. this.toolindex = index;
  20411. this.groupIndex = gindex;
  20412. this.dialogVisibleGroupWork = true;
  20413. },
  20414. updateGroupChair(user) {
  20415. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20416. el.label = index;
  20417. return index != user.group;
  20418. });
  20419. this.updateGroupUser = user;
  20420. this.dialogVisibleUpdateGroup = true;
  20421. },
  20422. updateChair() {
  20423. if (
  20424. this.groupStudent[this.toolindex][this.checkChair].length >
  20425. this.groupJson.number ||
  20426. this.groupStudent[this.toolindex][this.checkChair].length ==
  20427. this.groupJson.number
  20428. ) {
  20429. this.$message.error("位置已满,无法加入");
  20430. return;
  20431. }
  20432. let params = [
  20433. {
  20434. cid: this.id,
  20435. stage: this.courseType,
  20436. task: this.taskCount,
  20437. tool: this.toolindex,
  20438. g: this.checkChair,
  20439. uid: this.updateGroupUser.userid,
  20440. },
  20441. ];
  20442. this.ajax
  20443. .post(this.$store.state.api + "joinGroup", params)
  20444. .then((res) => {
  20445. this.$message.success("修改成功");
  20446. this.updateGroupUser = {};
  20447. this.checkChair = "";
  20448. this.updateGroupArray = {};
  20449. this.dialogVisibleUpdateGroup = false;
  20450. this.getCourseDetail(2);
  20451. })
  20452. .catch((err) => {
  20453. this.$message.error("网络不佳");
  20454. console.error(err);
  20455. });
  20456. },
  20457. deleteGroupChair(gindex) {
  20458. this.checkDeleteGroup = [];
  20459. this.deleteGroupUser = JSON.parse(
  20460. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20461. );
  20462. this.deleteGroupArray = this.groupJson.group[gindex];
  20463. this.groupIndex = gindex;
  20464. this.dialogVisibleDeleteGroup = true;
  20465. },
  20466. async deleteChair() {
  20467. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20468. const gid =
  20469. this.groupStudent[this.toolindex][this.groupIndex][
  20470. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20471. this.checkDeleteGroup[i]
  20472. )
  20473. ];
  20474. let params = [
  20475. {
  20476. gid: gid.id,
  20477. },
  20478. ];
  20479. var a = await this.deleteChairA(params);
  20480. if (i == this.checkDeleteGroup.length - 1) {
  20481. this.$message.success("退出成功");
  20482. this.dialogVisibleDeleteGroup = false;
  20483. this.deleteGroupUser = [];
  20484. this.deleteGroupArray = {};
  20485. this.groupIndex = "";
  20486. this.checkDeleteGroup = [];
  20487. this.getCourseDetail(2);
  20488. }
  20489. }
  20490. },
  20491. deleteChairA(params) {
  20492. return new Promise((resolve, reject) => {
  20493. this.ajax
  20494. .post(this.$store.state.api + "exitGroup", params)
  20495. .then((res) => {
  20496. resolve(1);
  20497. })
  20498. .catch((err) => {
  20499. this.$message.error("网络不佳");
  20500. console.error(err);
  20501. });
  20502. });
  20503. },
  20504. contract(i) {
  20505. if (this.isCloseList[i].isClose == 0) {
  20506. this.isCloseList[i].isClose = 1;
  20507. } else {
  20508. this.isCloseList[i].isClose = 0;
  20509. }
  20510. this.$forceUpdate();
  20511. },
  20512. openWordCloud(toolindex) {
  20513. this.wordCloudData = '';
  20514. let array = [];
  20515. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20516. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20517. array.push({ name: works });
  20518. }
  20519. if (this.isGroup) {
  20520. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20521. let works = this.courseGroup.group[i].works[toolindex];
  20522. for (var j = 0; j < works.length; j++) {
  20523. let answer = JSON.parse(works[j].works)[0].answer;
  20524. array.push({ name: answer });
  20525. }
  20526. }
  20527. }
  20528. let _result = ''
  20529. array.forEach(e=>{
  20530. _result +=e.name+','
  20531. })
  20532. this.wordCloudData = _result;
  20533. this.dialogVisibleWordCloud = true;
  20534. this.wordCloudKey += 1;
  20535. },
  20536. uploadWorks(i) {
  20537. this.$confirm("确定导出作业吗?", "提示", {
  20538. confirmButtonText: "确定",
  20539. cancelButtonText: "取消",
  20540. type: "warning",
  20541. })
  20542. .then(() => {
  20543. const loading = this.$loading.service({
  20544. background: "rgba(255, 255, 255, 0.7)",
  20545. target: document.body,
  20546. text: "文件加载中...",
  20547. });
  20548. const _worksStudent = this.worksStudent;
  20549. let url = [];
  20550. var counts = {};
  20551. for (var l = 0; l < _worksStudent[i].length; l++) {
  20552. var item = _worksStudent[i][l];
  20553. var name = item.sName;
  20554. if (!counts.hasOwnProperty(name)) {
  20555. counts[name] = 0;
  20556. } else {
  20557. counts[name]++;
  20558. }
  20559. if (counts[name] > 0) {
  20560. item.sName += " (" + counts[name] + ")";
  20561. }
  20562. }
  20563. for (var l = 0; l < _worksStudent[i].length; l++) {
  20564. var item = _worksStudent[i][l];
  20565. if (
  20566. item.works.indexOf(
  20567. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20568. ) !== -1 &&
  20569. item.works.indexOf("img") === -1
  20570. ) {
  20571. url.push({ name: item.sName, url: item.works });
  20572. }
  20573. }
  20574. // var toolList = [
  20575. // { name: "电子白板", tool: 1 },
  20576. // { name: "思维导图", tool: 3 },
  20577. // { name: "协同文档", tool: 6 },
  20578. // { name: "思维网格", tool: 7 },
  20579. // { name: "素材库", tool: 8 },
  20580. // { name: "学习资料", tool: 17 },
  20581. // { name: "便签", tool: 2 },
  20582. // { name: "问卷调查", tool: 4 },
  20583. // { name: "选择题", tool: 45 },
  20584. // { name: "倒计时", tool: 10 },
  20585. // { name: "问答", tool: 15 },
  20586. // { name: "课程设计", tool: 26 },
  20587. // { name: "训练服务器", tool: 18 },
  20588. // { name: "作业提交", tool: 16 },
  20589. // { name: "批量上传", tool: 50 },
  20590. // { name: "AIoT Blockly", tool: 21 },
  20591. // { name: "AI Python", tool: 23 },
  20592. // { name: "AI Blockly", tool: 24 },
  20593. // { name: "目标管理", tool: 25 },
  20594. // { name: "数学画板", tool: 31 },
  20595. // { name: "翻译", tool: 28 },
  20596. // { name: "魔盒识字", tool: 37 },
  20597. // { name: "数学画板", tool: 31 },
  20598. // { name: "24点", tool: 38 },
  20599. // { name: "GeoGebra", tool: 39 },
  20600. // { name: "源码编辑", tool: 32 },
  20601. // { name: "个人评价", tool: 40 },
  20602. // { name: "选择匹配", tool: 41 },
  20603. // { name: "汉字宫", tool: 44 },
  20604. // { name: "排序", tool: 47 },
  20605. // { name: "表格", tool: 48 },
  20606. // { name: "文档", tool: 52 },
  20607. // { name: "学生分组", tool: 49 },
  20608. // { name: "CocoPi", tool: 57 },
  20609. // { name: "模拟驾驶", tool: 58 },
  20610. // { name: "路径搜索", tool: 59 },
  20611. // { name: "深度学习", tool: 60 },
  20612. // { name: "全历史", tool: 61 },
  20613. // { name: "交互视频", tool: 62 },
  20614. // { name: "海龟编程", tool: 63 },
  20615. // { name: "挑人", tool: 65 },
  20616. // { name: "公式编辑", tool: 66 },
  20617. // { name: "分子结构", tool: 67 },
  20618. // { name: "时间轴", tool: 68 },
  20619. // ];
  20620. // var toolName = "";
  20621. // for(var w = 0;w<toolList.length;w++){
  20622. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20623. // toolName = toolList[w].name;
  20624. // }
  20625. // }
  20626. console.log(url);
  20627. this.downLoadAll(url, loading);
  20628. })
  20629. .catch(() => {});
  20630. },
  20631. downLoadAll(url, loading) {
  20632. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20633. const zip = new JSZip();
  20634. const cache = {};
  20635. const promises = [];
  20636. data.forEach((item) => {
  20637. const promise = getFile(item.url).then((data) => {
  20638. if (data.data != 1) {
  20639. // 下载文件, 并存成ArrayBuffer对象
  20640. const file_name =
  20641. item.name +
  20642. "." +
  20643. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20644. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20645. cache[file_name] = data.data;
  20646. }
  20647. });
  20648. promises.push(promise);
  20649. });
  20650. Promise.all(promises).then(() => {
  20651. zip.generateAsync({ type: "blob" }).then((content) => {
  20652. // 生成二进制流
  20653. FileSaver.saveAs(
  20654. content,
  20655. this.courseDetail.title + "-" + "作业提交工具.zip"
  20656. ); // 利用file-saver保存文件 自定义文件名
  20657. setTimeout(() => {
  20658. loading.close();
  20659. }, 2000);
  20660. });
  20661. });
  20662. },
  20663. pickStudent(stu) {
  20664. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20665. return;
  20666. }
  20667. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20668. confirmButtonText: "确定",
  20669. cancelButtonText: "取消",
  20670. type: "warning",
  20671. })
  20672. .then(() => {
  20673. let params = [
  20674. {
  20675. uid: stu.userid,
  20676. cid: this.id,
  20677. stage: this.courseType,
  20678. task: this.taskCount,
  20679. tool: this.toolindex,
  20680. },
  20681. ];
  20682. this.ajax
  20683. .post(this.$store.state.api + "updateCoursePick", params)
  20684. .then((res) => {
  20685. this.$message.success("操作成功");
  20686. this.getPick();
  20687. })
  20688. .catch((err) => {
  20689. this.$message.error("网络不佳");
  20690. console.error(err);
  20691. });
  20692. })
  20693. .catch(() => {});
  20694. },
  20695. selectUser(){
  20696. let params = {
  20697. userid: this.userid,
  20698. };
  20699. this.ajax
  20700. .get(this.$store.state.api + "selectUser", params)
  20701. .then((res) => {
  20702. this.userMes = res.data[0];
  20703. })
  20704. .catch((err) => {
  20705. console.error(err);
  20706. });
  20707. },
  20708. setEngText(i){
  20709. this.newEngIndex = i;
  20710. this.$forceUpdate();
  20711. },
  20712. addCorrect(){
  20713. this.$confirm("你确定提交批改嘛?", "提示", {
  20714. confirmButtonText: "确定",
  20715. showCancelButton: false,
  20716. closeOnClickModal: false,
  20717. type: "warning",
  20718. })
  20719. .then(() => {
  20720. let params = {
  20721. cid: this.id,
  20722. s: parseInt(this.courseType),
  20723. t: this.taskCount,
  20724. tool: this.toolindex,
  20725. wid: this.engWid,
  20726. c: this.userid,
  20727. 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) : "",
  20728. };
  20729. this.ajax
  20730. .get(this.$store.state.api + "addEngC", params)
  20731. .then((res) => {
  20732. this.$message.success("提交成功");
  20733. this.engUpdateDialogVisible = false;
  20734. })
  20735. .catch((err) => {
  20736. console.error(err);
  20737. });
  20738. })
  20739. .catch(() => {});
  20740. },
  20741. selectEngC(id,z){
  20742. let params = {
  20743. workid: id,
  20744. };
  20745. this.ajax
  20746. .get(this.$store.state.api + "selectEngC", params)
  20747. .then((res) => {
  20748. if(res.data[0].length == 0){
  20749. this.newEnglishList.engTitle = z.engTitle;
  20750. this.newEnglishList.engText = z.engText;
  20751. }else{
  20752. var a = res.data[0];
  20753. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20754. if(this.userMes[0].type == 2){
  20755. var snum = 0;
  20756. for(var i = 0;i<a.length;i++){
  20757. if(this.userMes[0].userid == a[i].correct){
  20758. this.newEnglishList = JSON.parse(a[i].cWork);
  20759. snum = 1;
  20760. }
  20761. }
  20762. if(snum == 0){
  20763. this.newEnglishList = { engTitle:"",engText:"" };
  20764. this.newEnglishList.engTitle = z.engTitle;
  20765. this.newEnglishList.engText = z.engText;
  20766. }
  20767. }else if(this.userMes[0].type == 1){
  20768. var num = 0;
  20769. for(var w= 0;w<a.length;w++){
  20770. if(this.userMes[0].userid == a[w].correct){
  20771. num = 1;
  20772. }
  20773. }
  20774. if(num == 0){
  20775. this.isNoUserid = true;
  20776. var c = JSON.parse(JSON.stringify(z));
  20777. this.oldEnglishJson1 = c;
  20778. }else{
  20779. this.isNoUserid = false;
  20780. }
  20781. var b = a.sort((item, index) => {
  20782. console.log(item)
  20783. if (item.correct === this.userMes[0].userid) {
  20784. return -1; // 将a移到前面
  20785. } else if (index.correct === this.userMes[0].userid) {
  20786. return 1; // 将b移到前面
  20787. } else {
  20788. return 0; // 保持默认顺序
  20789. }
  20790. });
  20791. for(var p = 0;p<b.length;p++){
  20792. for(var y = 0;y<ppp.length;y++){
  20793. if(b[p].id == ppp[y].id){
  20794. b[p].cWork = JSON.parse(ppp[y].cWork);
  20795. break
  20796. }
  20797. }
  20798. }
  20799. this.newEnglishList1 = b;
  20800. }
  20801. }
  20802. this.greyType = false;
  20803. setTimeout(() => {
  20804. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20805. if(this.newEnglishList1.length > 0){
  20806. if(this.isNoUserid == true){
  20807. this.engListLength = this.newEnglishList1.length + 1;
  20808. this.newEngIndex = -1;
  20809. }else{
  20810. this.engListLength = this.newEnglishList1.length;
  20811. this.newEngIndex = 0;
  20812. }
  20813. }
  20814. if(this.userMes[0].type == 2){
  20815. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20816. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20817. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20818. }else if(this.newEngIndex == -1){
  20819. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20820. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20821. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20822. }
  20823. }, 500);
  20824. this.engUpdateDialogVisible = true;
  20825. this.$forceUpdate();
  20826. })
  20827. .catch((err) => {
  20828. console.error(err);
  20829. });
  20830. },
  20831. getPick() {
  20832. let params = {
  20833. cid: this.id,
  20834. };
  20835. this.ajax
  20836. .get(this.$store.state.api + "getPick", params)
  20837. .then((res) => {
  20838. let array = [];
  20839. for (var i = 0; i < res.data[0].length; i++) {
  20840. array.push(res.data[0][i].userid);
  20841. }
  20842. this.isPickStudent = array;
  20843. if (array.indexOf(this.userid) !== -1) {
  20844. this.$confirm("你被老师选到啦!", "提示", {
  20845. confirmButtonText: "确定",
  20846. showCancelButton: false,
  20847. closeOnClickModal: false,
  20848. type: "warning",
  20849. })
  20850. .then(() => {
  20851. let pa = [
  20852. {
  20853. uid: this.userid,
  20854. cid: this.id,
  20855. },
  20856. ];
  20857. this.ajax
  20858. .post(this.$store.state.api + "deletePick", pa)
  20859. .then((res) => {
  20860. this.getPick();
  20861. })
  20862. .catch((err) => {
  20863. this.$message.error("网络不佳");
  20864. console.error(err);
  20865. });
  20866. })
  20867. .catch(() => {});
  20868. }
  20869. })
  20870. .catch((err) => {
  20871. this.$message.error("网络不佳");
  20872. console.error(err);
  20873. });
  20874. },
  20875. foldEva() {
  20876. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20877. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20878. } else {
  20879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20880. setTimeout(() => {
  20881. this.checkEva();
  20882. setTimeout(() => {
  20883. this.checkEva();
  20884. }, 500);
  20885. }, 0);
  20886. }
  20887. this.$forceUpdate();
  20888. },
  20889. panToolHeight(tool) {
  20890. var _tool = document.querySelectorAll('#'+tool)[0]
  20891. var _toolA = _tool ? _tool.offsetHeight : 0
  20892. var _toolC = 0
  20893. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20894. let boolean2 = (_toolA > _toolC) ? true : false
  20895. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20896. this.$forceUpdate();
  20897. },
  20898. async checkLink(url) {
  20899. console.log(url)
  20900. let _url = url
  20901. try {
  20902. const response = await fetch(url);
  20903. if(!response.ok){
  20904. _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]))
  20905. }
  20906. console.log(response.ok)
  20907. } catch (error) {
  20908. console.error('Error checking link:', error);
  20909. // console.log(false)
  20910. _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]))
  20911. }
  20912. // console.log(_url)
  20913. return _url
  20914. },
  20915. getScoreList(){
  20916. let params = {
  20917. cid: this.id,
  20918. };
  20919. this.ajax
  20920. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20921. .then((res) => {
  20922. let result = res.data;
  20923. this.scoreList.datalist = result[0];
  20924. this.scoreList.isScoreList = result[1];
  20925. })
  20926. .catch((err) => {
  20927. console.error(err);
  20928. });
  20929. },
  20930. setClassRoomHelperWidth(width){
  20931. this.classRoomHelperWidth = width
  20932. },
  20933. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20934. this.$refs.choseWorksDetailDialogRef.open({
  20935. toolType:tooc,
  20936. tType: this.tType,
  20937. toolIndex: toolIndex
  20938. });
  20939. this.changeSplitScreenBehavior({
  20940. code: 1,
  20941. form: {
  20942. toolType:tooc,
  20943. toolIndex: toolIndex,
  20944. courseType: this.courseType,
  20945. taskCount: this.taskCount,
  20946. type: 0
  20947. }
  20948. });
  20949. },
  20950. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20951. this.$refs.statisticalAnalysisRef.open({
  20952. worksStudent: this.worksStudent[toolIndex],
  20953. tType: this.tType,
  20954. toolIndex: toolIndex
  20955. });
  20956. this.changeSplitScreenBehavior({
  20957. code: 2,
  20958. form: {
  20959. toolType:4,
  20960. courseType: this.courseType,
  20961. taskCount: this.taskCount,
  20962. toolIndex: toolIndex,
  20963. type: 0
  20964. }
  20965. });
  20966. },
  20967. statisticalAnalysisRefresh(toolIndex) {
  20968. this.$refs.statisticalAnalysisRef.refreshData({
  20969. worksStudent: this.worksStudent[toolIndex],
  20970. tType: this.tType,
  20971. toolIndex: toolIndex
  20972. });
  20973. },
  20974. async splitScreenBehavior(type = 0) {
  20975. // return;
  20976. if (this.splitScreenData.loading)
  20977. return this.$message.info("操作过快,请稍等");
  20978. if (type == 0) {
  20979. //关闭分屏
  20980. this.splitScreenData.isOpen = false;
  20981. // this.splitScreenData.userId = "";
  20982. // this.splitScreenData.uid = "";
  20983. this.splitScreenData.behavior = null;
  20984. await this.updateSplitScreenData(1);
  20985. this.$message.success("已关闭分屏模式");
  20986. this.studentFreePreview(false);
  20987. this.OpenJobPreview(false);
  20988. // this.followingMode(false);
  20989. } else if (type == 1) {
  20990. //开启分屏
  20991. this.splitScreenData.isOpen = true;
  20992. this.splitScreenData.userId = this.userid;
  20993. this.splitScreenData.uid = this.splitScreenData.myUid;
  20994. this.splitScreenData.behavior = null;
  20995. let status = await this.updateSplitScreenData(0);
  20996. this.changeSplitScreenBehavior({form:{}})
  20997. if (status == 1) {
  20998. this.$message.success("已开启分屏");
  20999. this.studentFreePreview(false);
  21000. this.OpenJobPreview(true);
  21001. // this.followingMode(true);
  21002. } else {
  21003. this.splitScreenData.isOpen = false;
  21004. this.splitScreenData.userId = "";
  21005. this.splitScreenData.uid = "";
  21006. this.splitScreenData.behavior = null;
  21007. this.$message.success("分屏开启失败");
  21008. }
  21009. }
  21010. },
  21011. enterFullScreen() {
  21012. let element = document.documentElement;
  21013. if (element.requestFullscreen) {
  21014. element.requestFullscreen();
  21015. } else if (element.mozRequestFullScreen) { /* Firefox */
  21016. element.mozRequestFullScreen();
  21017. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21018. element.webkitRequestFullscreen();
  21019. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21020. element.msRequestFullscreen();
  21021. }
  21022. },
  21023. exitFullScreen() {
  21024. if (document.exitFullscreen) {
  21025. document.exitFullscreen();
  21026. } else if (document.mozCancelFullScreen) { /* Firefox */
  21027. document.mozCancelFullScreen();
  21028. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21029. document.webkitExitFullscreen();
  21030. } else if (document.msExitFullscreen) { /* IE/Edge */
  21031. document.msExitFullscreen();
  21032. }
  21033. },
  21034. confirmOpen(){
  21035. this.splitScreenData.isOpen = true;
  21036. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21037. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21038. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21039. this.confirmOpenDig = false
  21040. if (!document.fullscreenElement) {
  21041. this.enterFullScreen();
  21042. }
  21043. // if (this.timer2) {
  21044. // clearInterval(this.timer2);
  21045. // this.timer2 = null;
  21046. // }
  21047. // this.timer2 = setInterval(()=> {
  21048. // this.getSplitScreenData();//获取分屏数据
  21049. // }, 5000);
  21050. this.$message.success("分屏模式已开启");
  21051. },
  21052. // 获取分屏数据
  21053. getSplitScreenData() {
  21054. // return;
  21055. // if (this.tType != 1) return;
  21056. let params = {
  21057. cid: this.id
  21058. };
  21059. this.ajax
  21060. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21061. .then(async res => {
  21062. let data = res.data[0][0]["splitScreenData"];
  21063. console.log("获取了分屏数:", data);
  21064. if (data) {
  21065. data = JSON.parse(data);
  21066. if (
  21067. !this.splitScreenData.isOpen &&
  21068. data.isOpen &&
  21069. this.splitScreenData.myUid == data.uid
  21070. ) {
  21071. this.splitScreenData.isOpen = false;
  21072. this.splitScreenData.userId = "";
  21073. this.splitScreenData.uid = "";
  21074. this.splitScreenData.behavior = null;
  21075. await this.updateSplitScreenData(1);
  21076. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21077. this.confirmOpenDig = true
  21078. this.confirmOpenDigData = data
  21079. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21080. this.splitScreenData.isOpen = false;
  21081. this.splitScreenData.userId = "";
  21082. this.splitScreenData.uid = "";
  21083. this.splitScreenData.behavior = null;
  21084. this.$message.error("已结束分屏模式");
  21085. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21086. this.splitScreenData.isOpen = true;
  21087. this.splitScreenData.uid = data.uid;
  21088. this.splitScreenData.userId = data.userId;
  21089. this.splitScreenData.behavior = data.behavior;
  21090. }
  21091. this.doSplitScreenBehavior();
  21092. } else {
  21093. if (this.splitScreenData.isOpen) {
  21094. this.splitScreenData.isOpen = false;
  21095. this.splitScreenData.userId = "";
  21096. this.splitScreenData.uid = "";
  21097. this.splitScreenData.behavior = null;
  21098. this.$message.error("已结束分屏模式");
  21099. // if (this.timer2) {
  21100. // clearInterval(this.timer2);
  21101. // this.timer2 = null;
  21102. // }
  21103. // this.timer2 = setInterval(()=> {
  21104. // this.getSplitScreenData();//获取分屏数据
  21105. // }, 5000);
  21106. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21107. confirmButtonText: '确定', //确认按钮的文字
  21108. showCancelButton: false, //是否显示取消按钮
  21109. showClose: false, //是否显示关闭按钮
  21110. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21111. type: "warning",
  21112. })
  21113. .then(() => {
  21114. if (document.fullscreenElement) {
  21115. this.exitFullScreen();
  21116. }
  21117. })
  21118. .catch(() => {});
  21119. }
  21120. }
  21121. })
  21122. .catch(e => {
  21123. console.log("获取分屏数出错:", e);
  21124. });
  21125. },
  21126. // 操作
  21127. doSplitScreenBehavior() {
  21128. if (
  21129. this.splitScreenData.isOpen &&
  21130. this.splitScreenData.uid != this.splitScreenData.myUid
  21131. ) {
  21132. let behavior = this.splitScreenData.behavior;
  21133. if (behavior) {
  21134. // console.log('behavior',behavior);
  21135. // this.toolindex = behavior.form.toolType
  21136. // 初始状态
  21137. if (behavior.code === 99) {
  21138. //初始化
  21139. this.fullDialogVisible = false;
  21140. if(this.$refs.choseWorksDetailDialogRef.show){
  21141. this.$refs.choseWorksDetailDialogRef.close();
  21142. }
  21143. if(this.$refs.statisticalAnalysisRef.show){
  21144. this.$refs.statisticalAnalysisRef.close();
  21145. }
  21146. }
  21147. // 文件列表
  21148. if (behavior.code === 0) {
  21149. //开启内容列表弹窗
  21150. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21151. }else{
  21152. this.fullDialogVisible = false;
  21153. }
  21154. // 打开工具
  21155. if (behavior.code === 1) {
  21156. //关于选择题的作业详细的操作
  21157. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21158. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21159. this.courseType = behavior.form.courseType;
  21160. this.taskCount = behavior.form.taskCount;
  21161. }
  21162. this.$nextTick(() => {
  21163. if (this.$refs.choseWorksDetailDialogRef.show) {
  21164. //已经打开了
  21165. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21166. } else {
  21167. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21168. }
  21169. });
  21170. }else{
  21171. this.$refs.choseWorksDetailDialogRef.close()
  21172. }
  21173. // 问卷调查
  21174. if(behavior.code === 2){
  21175. if(this.$refs.statisticalAnalysisRef.show){
  21176. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21177. }else{
  21178. this.$refs.statisticalAnalysisRef.open({
  21179. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21180. tType: this.tType,
  21181. toolIndex: behavior.form.toolIndex
  21182. });
  21183. }
  21184. }else{
  21185. this.$refs.statisticalAnalysisRef.close();
  21186. }
  21187. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21188. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21189. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21190. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21191. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21192. if (behavior.form.courseType != this.courseType ||
  21193. behavior.form.taskCount != this.taskCount ||
  21194. behavior.form.toolType != this.toolindex
  21195. ) {
  21196. var a = document.scrollingElement;
  21197. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21198. if (target) {
  21199. target.scrollIntoView(true);
  21200. setTimeout(()=>{
  21201. let scrollBody = document.querySelector('.body_student').parentElement
  21202. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21203. }, 0);
  21204. // setTimeout(() => {
  21205. // a.scrollTop = 0
  21206. // }, 0);
  21207. }
  21208. }
  21209. if(this.courseType !=behavior.form.courseType){
  21210. this.courseType = behavior.form.courseType;
  21211. }
  21212. if(this.taskCount !=behavior.form.taskCount){
  21213. this.taskCount = behavior.form.taskCount;
  21214. }
  21215. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21216. this.toolindex = behavior.form.toolType;
  21217. }
  21218. // if(behavior.form.navId){
  21219. // this.navId = behavior.form.navId
  21220. // }
  21221. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21222. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21223. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21224. this.getCourseDetail()
  21225. }
  21226. this.setContent2(false)
  21227. }
  21228. } else {
  21229. }
  21230. }
  21231. },
  21232. // 修改分屏数据
  21233. updateSplitScreenData(empty = 0) {
  21234. return new Promise(resolve => {
  21235. if(this.userid!==this.courseDetail.userid){
  21236. if(!this.courseDetail.userid){
  21237. return setTimeout(()=>{
  21238. this.updateSplitScreenData(empty)
  21239. },2000)
  21240. }
  21241. return;
  21242. };
  21243. if (
  21244. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21245. this.splitScreenData.userId == this.userid
  21246. ) {
  21247. this.splitScreenData.loading = true;
  21248. let params = [
  21249. {
  21250. cid: this.id,
  21251. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21252. }
  21253. ];
  21254. this.ajax
  21255. .post(
  21256. this.$store.state.api + "update_courseSplitScreenData",
  21257. params
  21258. )
  21259. .then(res => {
  21260. this.splitScreenData.loading = false;
  21261. if (res.data == 1) {
  21262. resolve(1);
  21263. console.log("修改分屏数据成功");
  21264. }
  21265. })
  21266. .catch(e => {
  21267. this.splitScreenData.loading = false;
  21268. console.log("修改分屏数据失败", e);
  21269. resoleve(0);
  21270. });
  21271. } else if (empty == 2 && this.tType == 1) {
  21272. console.log("清空清空清空清空")
  21273. let params = [
  21274. {
  21275. cid: this.id,
  21276. nData: ""
  21277. }
  21278. ];
  21279. return this.ajax
  21280. .post(
  21281. this.$store.state.api + "update_courseSplitScreenData",
  21282. params
  21283. )
  21284. .then(_ => resolve(1))
  21285. .catch(_ => resolve(0));
  21286. } else {
  21287. return resolve(0);
  21288. }
  21289. });
  21290. },
  21291. // 修改分屏数据
  21292. changeSplitScreenBehavior(newValue) {
  21293. if (
  21294. this.splitScreenData.isOpen &&
  21295. this.splitScreenData.uid == this.splitScreenData.myUid
  21296. ) {
  21297. let _behavior = null;
  21298. if(!newValue){
  21299. _behavior = {}
  21300. }else{
  21301. _behavior = newValue
  21302. }
  21303. if(_behavior.form){
  21304. _behavior.form.taskCount = this.taskCount;
  21305. _behavior.form.courseType = this.courseType
  21306. }else{
  21307. _behavior.form = {
  21308. taskCount:this.taskCount,
  21309. courseType:this.courseType,
  21310. }
  21311. }
  21312. this.splitScreenData.behavior = _behavior;
  21313. this.updateSplitScreenData(0);
  21314. }
  21315. },
  21316. studentFreePreview(flag) {
  21317. this.IsLookOpen = flag;
  21318. this.updateLookOpen();
  21319. this.followingMode(flag)
  21320. },
  21321. OpenJobPreview(flag) {
  21322. this.sIsOpen = flag;
  21323. this.updateSLook();
  21324. },
  21325. followingMode(flag) {
  21326. this.IsFollow = flag;
  21327. this.updateFollow();
  21328. },
  21329. StulookMode(flag) {
  21330. this.IsStulook = flag;
  21331. this.updateIsStulook();
  21332. },
  21333. },
  21334. directives: {
  21335. // 使用局部注册指令的方式
  21336. resize: {
  21337. // 指令的名称
  21338. bind(el, binding) {
  21339. // el为绑定的元素,binding为绑定给指令的对象
  21340. let width = "",
  21341. height = "";
  21342. function isReize() {
  21343. const style = document.defaultView.getComputedStyle(el);
  21344. if (width !== style.width || height !== style.height) {
  21345. binding.value(); // 关键
  21346. }
  21347. width = style.width;
  21348. height = style.height;
  21349. }
  21350. el.__vueSetInterval__ = setInterval(isReize, 300);
  21351. },
  21352. unbind(el) {
  21353. clearInterval(el.__vueSetInterval__);
  21354. },
  21355. },
  21356. autoHeight: {
  21357. update(el, binding) {
  21358. const { value } = binding
  21359. if (value && typeof value === 'number') {
  21360. el.style.height = `${value}px`
  21361. } else {
  21362. el.style.height = 'auto'
  21363. }
  21364. },
  21365. componentUpdated(el) {
  21366. el.style.height = `${el.scrollHeight}px`
  21367. },
  21368. },
  21369. },
  21370. beforeDestroy() {
  21371. window.onresize = null;
  21372. clearInterval(this.timer);
  21373. this.timer = null;
  21374. clearInterval(this.timer2);
  21375. this.timer2 = null;
  21376. clearInterval(this.opertimer);
  21377. this.opertimer = null;
  21378. this.updateSplitScreenData(1);
  21379. },
  21380. computed: {
  21381. renderedFormula2() {
  21382. return function(val){
  21383. // 处理换行符和HTML实体
  21384. const normalized = val
  21385. .replace(/&amp;/g, '&')
  21386. .replace(/<br\/?>/g, '\n');
  21387. // 匹配行内公式($...$)和块级公式($$...$$)
  21388. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21389. try {
  21390. return katex.renderToString(expr.trim(), {
  21391. displayMode: false,
  21392. throwOnError: false,
  21393. macros: {
  21394. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21395. }
  21396. });
  21397. } catch (e) {
  21398. console.warn('KaTeX渲染失败:', e);
  21399. return `<span style="color:red">${expr}</span>`;
  21400. }
  21401. })
  21402. }
  21403. },
  21404. renderedFormula() {
  21405. return function(val){
  21406. try {
  21407. // 判断是否含有HTML标签,<tag ...>...</tag>
  21408. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21409. if (!hasTag) {
  21410. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21411. // 纯文本,整体渲染
  21412. try {
  21413. return katex.renderToString(val.trim(), {
  21414. throwOnError: false,
  21415. strict: false,
  21416. output: "htmlAndMathml"
  21417. });
  21418. } catch (e) {
  21419. return val; // 渲染失败原样输出
  21420. }
  21421. } else {
  21422. // 有标签,对每个标签内容渲染
  21423. return val.replace(
  21424. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21425. (match, tag, attrs, inner) => {
  21426. let html;
  21427. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21428. try {
  21429. html = katex.renderToString(inner.trim(), {
  21430. throwOnError: false,
  21431. strict: false,
  21432. output: "htmlAndMathml"
  21433. });
  21434. } catch (e) {
  21435. html = inner;
  21436. }
  21437. return `<${tag}${attrs}>${html}</${tag}>`;
  21438. }
  21439. );
  21440. }
  21441. } catch (e) {
  21442. console.error('KaTeX渲染错误:', e);
  21443. return val;
  21444. }
  21445. }
  21446. },
  21447. isAndroid() {
  21448. return /Android/i.test(navigator.userAgent);
  21449. },
  21450. contentConvent() {
  21451. return function (c) {
  21452. return c
  21453. ? c
  21454. .replaceAll(/\r\n/g, "<br/>")
  21455. .replaceAll(/\n/g, "<br/>")
  21456. .replaceAll(/\s/g, "&nbsp")
  21457. : "";
  21458. };
  21459. },
  21460. commentRight(){
  21461. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21462. return "35px";
  21463. }
  21464. return `calc(${this.classRoomHelperWidth} + 5px)`
  21465. // if(this.$refs["classRoomHelperRef"].type==0){
  21466. // return "100px";
  21467. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21468. // return "502px"
  21469. // }else{
  21470. // return "0px"
  21471. // }
  21472. },
  21473. checkUpload() {
  21474. return function () {
  21475. var studentK = [];
  21476. if (this.plworkFile.length > 0) {
  21477. for (var z = 0; z < this.plworkFile.length; z++) {
  21478. studentK.push(this.plworkFile[z].username);
  21479. }
  21480. studentK = studentK.join(",");
  21481. }
  21482. var a = this.uploadStudentJuri.filter((el) => {
  21483. return studentK.indexOf(el.userid) == -1;
  21484. });
  21485. return a;
  21486. };
  21487. },
  21488. getSName() {
  21489. return function (name) {
  21490. var check = name;
  21491. this.uploadStudentJuri.forEach((el) => {
  21492. if (el.userid == check) {
  21493. check = el.name ? el.name : el.username;
  21494. }
  21495. });
  21496. return check;
  21497. };
  21498. },
  21499. getImgList() {
  21500. return function (val) {
  21501. let srcList = []; // 定义一个数组用来接收后面的img地址
  21502. val.replace(
  21503. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21504. function (match, capture) {
  21505. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21506. srcList.push(capture);
  21507. }
  21508. );
  21509. return srcList;
  21510. };
  21511. },
  21512. retrnToolHeight(){
  21513. return function (tool) {
  21514. var _tool = document.querySelectorAll('#'+tool)[0]
  21515. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21516. };
  21517. },
  21518. Correct() {
  21519. return function (c) {
  21520. let w = "";
  21521. let a = this.correctWord;
  21522. for(var k = 0;k<a.length;k++){
  21523. //diffWordsWithSpace
  21524. if(a.length > 1){
  21525. if(a[k].added == true){
  21526. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21527. }else if(a[k].removed == true){
  21528. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21529. }else{
  21530. w += '<span>' + a[k].value + '</span>';
  21531. }
  21532. }else{
  21533. w = c
  21534. }
  21535. //diffChars方法
  21536. // if(a.length > 1){
  21537. // if(w == ""){
  21538. // if(a[k].added == true){
  21539. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21540. // }else if(a[k].removed == true){
  21541. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21542. // }
  21543. // }else{
  21544. // if(k == a.length - 1){
  21545. // if(a[k].added == true){
  21546. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21547. // }else if(a[k].removed == true){
  21548. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21549. // }
  21550. // }else{
  21551. // if(a[k].added == true){
  21552. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21553. // }else if(a[k].removed == true){
  21554. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21555. // }
  21556. // }
  21557. // }
  21558. // }else{
  21559. // w = c
  21560. // }
  21561. }
  21562. c = w;
  21563. return c;
  21564. };
  21565. },
  21566. },
  21567. mounted() {
  21568. if (this.tType == 1) {
  21569. // 开局关闭学生查看内容
  21570. this.StulookMode(false)
  21571. // 开局打开跟随模式
  21572. this.followingMode(true)
  21573. }
  21574. document.body.addEventListener("click", (e) => {
  21575. if (this.isUpdateToolDetail1) {
  21576. this.updateToolDetail(this.toolDetailIndex);
  21577. }
  21578. });
  21579. this.setOperationTime();
  21580. this.selectEva();
  21581. this.getCourseDetail(10);
  21582. this.selectCount();
  21583. this.getHomeWork();
  21584. this.selectUser();
  21585. this.getAIJ();
  21586. this.updateSplitScreenData(2);
  21587. this.splitScreenData.myUid = uuidv4();
  21588. this.contentDialog = false;
  21589. this.setContent2(true);
  21590. if (this.tType == 4) {
  21591. this.pzDialog = true;
  21592. this.selectPz();
  21593. }
  21594. // 获取评分列表
  21595. this.getScoreList()
  21596. document.scrollingElement.scrollTop = 0;
  21597. window.addEventListener("resize", () => {
  21598. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21599. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21600. if (this.showType == 2 || this.showType == 3) {
  21601. document.getElementsByClassName("navBox")[0].style.height =
  21602. a - 40 + 0+ "px";
  21603. } else {
  21604. document.getElementsByClassName("navBox")[0].style.height =
  21605. a - 40 + "px";
  21606. }
  21607. });
  21608. let _this = this;
  21609. setTimeout(() => {
  21610. // _this.vedioTime = [];
  21611. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21612. // _this.vedioTime[i] = document.getElementsByClassName(
  21613. // "vjs-duration-display"
  21614. // )[i].textContent;
  21615. // }
  21616. }, 1000);
  21617. try{
  21618. if (this.screenType == 2) {
  21619. window.topU.postMessage({ allScreen: 4 }, "*");
  21620. } else if (this.screenType == 3) {
  21621. window.topU.postMessage({ allScreen: 5 }, "*");
  21622. } else if (this.screenType == 1) {
  21623. window.topU.postMessage({ allScreen: 6 }, "*");
  21624. }
  21625. }catch(e){
  21626. console.log(e)
  21627. }
  21628. },
  21629. };
  21630. </script>
  21631. <style scoped>
  21632. @media screen and (max-width: 1280px) {
  21633. /* .courseIndex > div:first-child(2) {
  21634. width: 15% !important;
  21635. } */
  21636. /* .navText {
  21637. width: 120px !important;
  21638. } */
  21639. .evaCss {
  21640. flex-direction: column !important;
  21641. align-items: center !important;
  21642. }
  21643. .elist_input {
  21644. width: 90% !important;
  21645. }
  21646. .dialog_diy1 >>> .el-dialog {
  21647. width: 100% !important;
  21648. }
  21649. .rightWidthCss {
  21650. width: 100% !important;
  21651. }
  21652. .dialog_diy3 >>> .el-dialog {
  21653. width: 100% !important;
  21654. }
  21655. .addToolCss {
  21656. right: 0 !important;
  21657. width: 100% !important;
  21658. min-width: unset !important;
  21659. }
  21660. }
  21661. .evaCssMax {
  21662. flex-direction: column !important;
  21663. align-items: center !important;
  21664. }
  21665. .dialog_diy >>> .el-dialog {
  21666. margin-top: 10vh !important;
  21667. }
  21668. .body_student {
  21669. width: 77%;
  21670. height: 100%;
  21671. position: absolute;
  21672. left: 22%;
  21673. top: 0;
  21674. }
  21675. .student_head {
  21676. width: 100%;
  21677. margin: 20px auto 0;
  21678. padding-bottom: 20px;
  21679. display: flex;
  21680. flex-direction: column;
  21681. flex-wrap: nowrap;
  21682. align-items: flex-start;
  21683. justify-content: flex-start;
  21684. }
  21685. .pb_left {
  21686. width: 15%;
  21687. margin-right: 10px;
  21688. background: rgb(255, 255, 255);
  21689. position: fixed;
  21690. height: calc(100% - 40px);
  21691. border-radius: 20px;
  21692. padding-bottom: 15px;
  21693. box-sizing: border-box;
  21694. }
  21695. .wheel > img,
  21696. .project > img,
  21697. .star > img,
  21698. .evaluate > img,
  21699. .up_photo > img,
  21700. .chapter_add > img,
  21701. .deleteWord > img,
  21702. .question > img,
  21703. .homework > img {
  21704. width: 100%;
  21705. height: 100%;
  21706. }
  21707. .upCover > img {
  21708. width: 131px;
  21709. height: 69px;
  21710. object-fit: cover;
  21711. }
  21712. .upCover {
  21713. width: calc(100% / 3.5);
  21714. position: relative;
  21715. margin: 0 15px 10px 0;
  21716. display: flex;
  21717. flex-direction: column;
  21718. flex-wrap: nowrap;
  21719. justify-content: center;
  21720. align-content: center;
  21721. align-items: center;
  21722. height: fit-content;
  21723. }
  21724. .upCover2 {
  21725. width: 100%;
  21726. position: relative;
  21727. margin: 0 15px 10px 0;
  21728. display: flex;
  21729. flex-direction: column;
  21730. flex-wrap: nowrap;
  21731. justify-content: center;
  21732. align-content: center;
  21733. align-items: center;
  21734. }
  21735. .upCover2 > img {
  21736. width: 100%;
  21737. height: 90px;
  21738. object-fit: contain;
  21739. }
  21740. .chapter_add {
  21741. width: 120px;
  21742. position: relative;
  21743. text-align: center;
  21744. }
  21745. .isAddThings {
  21746. margin-top: 20px;
  21747. position: relative;
  21748. text-align: center;
  21749. background: #f7f8fa;
  21750. height: 90px;
  21751. width: 90px;
  21752. display: flex;
  21753. flex-direction: column;
  21754. justify-content: center;
  21755. }
  21756. .deleteWord {
  21757. width: 22px;
  21758. height: 22px;
  21759. position: absolute;
  21760. right: -5px;
  21761. top: -5px;
  21762. cursor: pointer;
  21763. }
  21764. .box_course {
  21765. /* width: 60%; */
  21766. width: calc(100% - 300px);
  21767. }
  21768. .wheel {
  21769. width: 100%;
  21770. /* height: 100%; */
  21771. height: 650px;
  21772. }
  21773. .right_box {
  21774. display: flex;
  21775. flex-direction: column;
  21776. margin-left: 30px;
  21777. justify-content: space-around;
  21778. }
  21779. .right_box_title {
  21780. font-size: 23px;
  21781. }
  21782. .people {
  21783. display: flex;
  21784. }
  21785. .student_body {
  21786. width: 100%;
  21787. margin: 0 auto;
  21788. margin-top: 10px;
  21789. padding: 0 0 20px;
  21790. }
  21791. .study_top {
  21792. margin-top: 100px;
  21793. width: 100%;
  21794. height: auto;
  21795. padding-bottom: 20px;
  21796. margin-left: 2px;
  21797. min-height: 90%;
  21798. }
  21799. .study_top .checkbox {
  21800. display: flex;
  21801. align-items: center;
  21802. padding: 15px 0 15px 30px;
  21803. flex: 0 0 auto;
  21804. font-weight: bold;
  21805. border-bottom: 1px solid #eee;
  21806. }
  21807. .study_top .check {
  21808. padding-bottom: 5px;
  21809. text-align: center;
  21810. cursor: pointer;
  21811. height: 30px;
  21812. box-sizing: border-box;
  21813. display: flex;
  21814. }
  21815. .study_top .checked {
  21816. border-bottom: 4px solid #3fc6a0;
  21817. padding-bottom: 5px;
  21818. color: #3fc6a0;
  21819. display: flex;
  21820. height: 35px;
  21821. }
  21822. .study_top .checked > div,
  21823. .study_top .check > div {
  21824. margin-right: 5px;
  21825. }
  21826. .videoTop {
  21827. display: flex;
  21828. flex-direction: row;
  21829. justify-content: space-between;
  21830. background: #fff;
  21831. align-items: center;
  21832. width: 95%;
  21833. padding: 20px;
  21834. }
  21835. .filebox {
  21836. display: flex;
  21837. flex-wrap: wrap;
  21838. flex-direction: column;
  21839. padding: 0 0 5px;
  21840. position: relative;
  21841. }
  21842. .filebox:before {
  21843. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21844. position: absolute;
  21845. top: 20px;
  21846. left: 13px;
  21847. border-left: 2px dotted #cad1dc;
  21848. height: calc(100% - 15px);
  21849. }
  21850. .toolHeng2 > div:last-child::before {
  21851. height: calc(100% - 43px);
  21852. }
  21853. .filebox .tooldetail {
  21854. width: calc(100%);
  21855. margin: 0px 12px;
  21856. padding: 12px;
  21857. line-height: 30px;
  21858. word-break: break-word;
  21859. background: #ffffff;
  21860. border-radius: 8px 8px 8px 8px;
  21861. opacity: 1;
  21862. border: 1px solid #cad1dc;
  21863. overflow:hidden;
  21864. box-sizing:border-box;
  21865. }
  21866. .file {
  21867. display: flex;
  21868. flex-direction: column;
  21869. align-items: center;
  21870. justify-content: center;
  21871. cursor: pointer;
  21872. width: 200px;
  21873. }
  21874. .file div {
  21875. margin-top: 10px;
  21876. width: 150px;
  21877. text-align: center;
  21878. overflow: hidden;
  21879. white-space: nowrap;
  21880. text-overflow: ellipsis;
  21881. }
  21882. .media {
  21883. display: flex;
  21884. flex-direction: column;
  21885. align-items: center;
  21886. justify-content: center;
  21887. margin: 0 20px 20px 0;
  21888. cursor: pointer;
  21889. margin: 12px 0 5px 15px;
  21890. overflow: hidden;
  21891. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21892. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21893. box-sizing: border-box;
  21894. }
  21895. .media img {
  21896. height: 90px;
  21897. width: 160px;
  21898. object-fit: cover;
  21899. }
  21900. .media .title {
  21901. padding: 5px;
  21902. text-align: left;
  21903. width: 100%;
  21904. box-sizing: border-box;
  21905. }
  21906. .media .btn {
  21907. width: 100%;
  21908. height: 35px;
  21909. line-height: 35px;
  21910. color: #fff;
  21911. background: #606060;
  21912. text-align: center;
  21913. overflow: hidden;
  21914. white-space: nowrap;
  21915. text-overflow: ellipsis;
  21916. }
  21917. .detail_content_top {
  21918. width: 100%;
  21919. padding: 25px 0 25px 0;
  21920. }
  21921. .detail_title {
  21922. text-align: center;
  21923. font-size: 24px;
  21924. }
  21925. .detail_time {
  21926. font-size: 13px;
  21927. padding: 15px 0 0 40px;
  21928. }
  21929. .detail_content {
  21930. line-height: 2pc;
  21931. width: 90%;
  21932. margin: 0 auto;
  21933. padding-top: 30px;
  21934. text-indent: 30px;
  21935. overflow: auto;
  21936. height: 200px;
  21937. }
  21938. .score_box >>> .el-rate {
  21939. margin-left: 10px;
  21940. }
  21941. .dialog_change >>> .el-dialog {
  21942. border-radius: 5px;
  21943. }
  21944. .dialog_change >>> .el-dialog__header {
  21945. background: #f2f2f2;
  21946. text-align: center;
  21947. }
  21948. .dialog_change >>> .el-dialog__title {
  21949. line-height: 5px;
  21950. }
  21951. .dialog_change >>> .el-dialog__body {
  21952. background: #fff;
  21953. padding: 10px 20px;
  21954. }
  21955. .score_box {
  21956. display: flex;
  21957. align-items: center;
  21958. margin-bottom: 18px;
  21959. margin-top: 20px;
  21960. }
  21961. .up_photo {
  21962. width: 120px;
  21963. cursor: pointer;
  21964. margin-top: 10px;
  21965. }
  21966. .up_photo2 {
  21967. width: 180px;
  21968. box-sizing: border-box;
  21969. min-width: 180px;
  21970. height: 180px;
  21971. max-height: 180px;
  21972. min-height: 180px;
  21973. cursor: pointer;
  21974. display: flex;
  21975. flex-direction: column;
  21976. align-items: center;
  21977. justify-content: center;
  21978. background: rgb(242, 246, 255);
  21979. /* padding: 25px; */
  21980. margin-bottom: 10px;
  21981. }
  21982. .up_photo2 img {
  21983. width: 50%;
  21984. height: auto;
  21985. }
  21986. .up_photo2 span {
  21987. color: #898989;
  21988. }
  21989. .plworkBox {
  21990. display: flex;
  21991. align-items: center;
  21992. margin-top: 10px;
  21993. flex-wrap: wrap;
  21994. }
  21995. .upload_send {
  21996. margin: 30px auto 30px;
  21997. width: 60%;
  21998. background: #3681fc;
  21999. text-align: center;
  22000. height: 35px;
  22001. line-height: 35px;
  22002. color: #fff;
  22003. border-radius: 5px;
  22004. cursor: pointer;
  22005. }
  22006. .marginT {
  22007. margin-top: 20px;
  22008. }
  22009. .cd_content_steps {
  22010. display: flex;
  22011. width: 90%;
  22012. justify-content: space-around;
  22013. border-top: 1px solid #eeeeee;
  22014. }
  22015. .cd_steps_box {
  22016. display: flex;
  22017. justify-content: center;
  22018. align-items: center;
  22019. flex-direction: column;
  22020. cursor: pointer;
  22021. }
  22022. .first {
  22023. display: flex;
  22024. align-items: center;
  22025. margin: 15px 0 20px 0;
  22026. font-size: 20px;
  22027. }
  22028. .first > div:nth-child(2) {
  22029. font-size: 16px !important;
  22030. padding-left: 10px;
  22031. line-height: 26px;
  22032. box-sizing: border-box;
  22033. }
  22034. .blue_box_one {
  22035. text-align: center;
  22036. color: #fff;
  22037. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22038. border-radius: 7px;
  22039. margin: 10px;
  22040. cursor: pointer;
  22041. width: 95%;
  22042. height: 45px;
  22043. display: flex;
  22044. flex-direction: row;
  22045. justify-content: flex-start;
  22046. align-items: center;
  22047. }
  22048. .blue_box_one > div:nth-child(1) {
  22049. line-height: 30px;
  22050. margin: 0 5px 0 10px;
  22051. width: 30%;
  22052. min-width: 70px;
  22053. border-radius: 4px;
  22054. }
  22055. .blue_box_one > div:nth-child(2) {
  22056. white-space: nowrap;
  22057. text-overflow: ellipsis;
  22058. overflow: hidden;
  22059. word-break: break-all;
  22060. width: 70%;
  22061. text-align: left;
  22062. margin-right: 10px;
  22063. max-width: calc(100% - 85px);
  22064. }
  22065. .blue_box_one > div:nth-child(2):hover {
  22066. overflow: hidden;
  22067. text-overflow: ellipsis;
  22068. white-space: nowrap;
  22069. cursor: pointer;
  22070. }
  22071. .upFile {
  22072. margin: 0 auto;
  22073. width: 120px;
  22074. background: #3681fc;
  22075. color: #fff;
  22076. height: 30px;
  22077. text-align: center;
  22078. line-height: 30px;
  22079. border-radius: 5px;
  22080. font-size: 14px;
  22081. cursor: pointer;
  22082. }
  22083. .courseTitle {
  22084. width: 85%;
  22085. margin: 10px auto 26px auto;
  22086. display: flex;
  22087. flex-direction: row;
  22088. align-items: center;
  22089. justify-content: space-between;
  22090. text-align: center;
  22091. }
  22092. .courseTitle .ctitle {
  22093. font-size: 20px;
  22094. font-weight: bold;
  22095. color: #0e1e33;
  22096. white-space: nowrap;
  22097. overflow: hidden;
  22098. text-overflow: ellipsis;
  22099. }
  22100. .inviteBox {
  22101. font-size: 14px;
  22102. /* margin-top: 5px; */
  22103. color: #00000099;
  22104. text-align: center;
  22105. }
  22106. .courseTitle >>> .el-tooltip {
  22107. width: 100%;
  22108. white-space: nowrap;
  22109. overflow: hidden;
  22110. text-overflow: ellipsis;
  22111. word-break: break-word;
  22112. }
  22113. .ml {
  22114. margin-left: 20px;
  22115. color: #5b7dba;
  22116. border-left: 3px solid #5b7dba;
  22117. padding-left: 5px;
  22118. font-weight: bold;
  22119. }
  22120. .return {
  22121. width: 2rem;
  22122. height: 2rem;
  22123. cursor: pointer;
  22124. }
  22125. .return > img {
  22126. width: 100%;
  22127. height: 100%;
  22128. }
  22129. .returnBtn {
  22130. width: 86px;
  22131. height: 36px;
  22132. background: #3681fc;
  22133. border-radius: 4px;
  22134. color: #fff;
  22135. text-align: center;
  22136. line-height: 36px;
  22137. margin-right: 20px;
  22138. cursor: pointer;
  22139. font-size: 14px;
  22140. font-weight: 400;
  22141. display: flex;
  22142. flex-direction: row;
  22143. flex-wrap: nowrap;
  22144. align-items: center;
  22145. justify-content: center;
  22146. }
  22147. .reBtnIcon,
  22148. .commentIcon,
  22149. .vedioIcon,
  22150. .vedioIcon1 {
  22151. /* width: 36px; */
  22152. height: 36px;
  22153. border-radius: 4px;
  22154. position: relative;
  22155. /* background: #e0eafb; */
  22156. background: #0061ff;
  22157. cursor: pointer;
  22158. margin-right: 12px;
  22159. display: flex;
  22160. align-items: center;
  22161. padding: 0 10px;
  22162. box-sizing: border-box;
  22163. font-size: 14px;
  22164. color: #fff;
  22165. }
  22166. .reBtnIcon::before,
  22167. .commentIcon::before,
  22168. .vedioIcon::before,
  22169. .vedioIcon1::before {
  22170. content: "";
  22171. display: block;
  22172. background-size: 100% 100%;
  22173. background-repeat: no-repeat;
  22174. width: 20px;
  22175. height: 20px;
  22176. margin-right: 5px;
  22177. /* position: absolute; */
  22178. /* top: 8px;
  22179. left: 8px; */
  22180. }
  22181. .vedioIcon1 {
  22182. background: #f63564;
  22183. }
  22184. .reBtnIcon::before {
  22185. background-image: url("../assets/icon/newIcons/refresh.png");
  22186. }
  22187. .commentIcon::before {
  22188. background-image: url("../assets/icon/newIcons/comment.png");
  22189. }
  22190. .vedioIcon::before {
  22191. background-image: url("../assets/icon/newIcons/transcribe.png");
  22192. }
  22193. .vedioIcon1::before {
  22194. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22195. background-image: url("../assets/icon/newIcons/transcribe.png");
  22196. }
  22197. .tool {
  22198. display: flex;
  22199. flex-direction: column;
  22200. flex-wrap: nowrap;
  22201. width: 13%;
  22202. margin: 0 30px;
  22203. align-items: center;
  22204. position: relative;
  22205. padding: 10px 25px;
  22206. cursor: pointer;
  22207. }
  22208. .whiteBIcon {
  22209. width: 150px;
  22210. }
  22211. .whiteBIcon > img {
  22212. width: 100%;
  22213. height: 100%;
  22214. }
  22215. .mask {
  22216. background-color: rgba(0, 0, 0, 0);
  22217. position: fixed;
  22218. top: 0;
  22219. left: 0;
  22220. width: 100%;
  22221. height: 100%;
  22222. z-index: 20000;
  22223. display: flex;
  22224. align-items: center;
  22225. justify-content: center;
  22226. }
  22227. .progressBox {
  22228. width: 500px;
  22229. height: 180px;
  22230. background: #fff;
  22231. border-radius: 10px;
  22232. box-shadow: 0 0 6px 1px #bfbfbf;
  22233. display: flex;
  22234. align-items: center;
  22235. justify-content: center;
  22236. flex-direction: column;
  22237. position: relative;
  22238. color: #6c6c6c;
  22239. }
  22240. .progressBox >>> .el-progress-bar__outer {
  22241. background-color: #d1dfff !important;
  22242. }
  22243. .progressBox .lbox {
  22244. height: 50px;
  22245. font-size: 19px;
  22246. display: flex;
  22247. align-items: center;
  22248. color: #747474;
  22249. }
  22250. .progressBox .lbox img {
  22251. width: 40px;
  22252. margin-right: 20px;
  22253. }
  22254. .closeCss {
  22255. position: absolute;
  22256. top: 8px;
  22257. right: 8px;
  22258. cursor: pointer;
  22259. width: 20px;
  22260. height: 20px;
  22261. }
  22262. .closeCss > img {
  22263. width: 100%;
  22264. height: 100%;
  22265. }
  22266. .uploadVedio {
  22267. display: flex;
  22268. flex-direction: column;
  22269. flex-wrap: nowrap;
  22270. justify-content: center;
  22271. align-items: center;
  22272. margin: 0 15px 10px 0;
  22273. }
  22274. .uploadVedio > img {
  22275. width: 30px;
  22276. height: 30px;
  22277. }
  22278. .uploadVedio > span {
  22279. white-space: nowrap;
  22280. overflow: hidden;
  22281. text-overflow: ellipsis;
  22282. width: 75px;
  22283. margin-top: 7px;
  22284. }
  22285. .picName {
  22286. white-space: nowrap;
  22287. overflow: hidden;
  22288. text-overflow: ellipsis;
  22289. width: 75px;
  22290. margin-top: 7px;
  22291. }
  22292. .new_top {
  22293. display: flex;
  22294. background: #fff;
  22295. flex-direction: row;
  22296. justify-content: flex-start;
  22297. align-items: center;
  22298. height: 60px;
  22299. position: fixed;
  22300. top: 20px;
  22301. left: 22%;
  22302. width: 77%;
  22303. z-index: 999;
  22304. border-radius: 12px 12px 0 0;
  22305. border-bottom: 1px solid #cad1dc;
  22306. padding: 10px 0;
  22307. }
  22308. .new_topFixed {
  22309. width: 100%;
  22310. height: 40px;
  22311. position: fixed;
  22312. top: 0px;
  22313. display: block;
  22314. background: #f2f2f2;
  22315. z-index: 998;
  22316. }
  22317. .before {
  22318. position: absolute;
  22319. background: #c3dad4;
  22320. width: 6px;
  22321. height: 100%;
  22322. }
  22323. .courseIndex {
  22324. display: flex;
  22325. flex-direction: row;
  22326. align-items: center;
  22327. width: calc(100% - 745px);
  22328. }
  22329. .courseIndex > div:nth-child(1) {
  22330. margin: 0 0 0 10px;
  22331. font-size: 20px;
  22332. min-width: 100px;
  22333. font-weight: bold;
  22334. border-left: 4px solid #3363b9;
  22335. height: 32px;
  22336. text-align: center;
  22337. line-height: 35px;
  22338. }
  22339. .courseIndex > div:nth-child(2) {
  22340. font-size: 20px;
  22341. /* width: 300px; */
  22342. max-width: calc(100% - 105px);
  22343. white-space: nowrap;
  22344. overflow: hidden;
  22345. text-overflow: ellipsis;
  22346. }
  22347. .courseIndex > div:nth-child(3) {
  22348. border-bottom: 1px solid #d7d7d7;
  22349. padding-bottom: 5px;
  22350. background: #3681fc;
  22351. width: 55px;
  22352. min-width: 55px;
  22353. border-radius: 5px;
  22354. color: #fff;
  22355. text-align: center;
  22356. height: 20px;
  22357. line-height: 26px;
  22358. font-size: 14px;
  22359. margin: 0 0 0 10px;
  22360. }
  22361. .course_text {
  22362. padding: 20px 0 0 15px;
  22363. text-indent: 30px;
  22364. width: 80%;
  22365. min-height: 20px;
  22366. }
  22367. .vedioList {
  22368. background: #f2f2f2;
  22369. border: 1px solid #ececec;
  22370. /* width: 38.8%; */
  22371. /* width: 300px; */
  22372. width: 100%;
  22373. height: 445px;
  22374. border-radius: 10px;
  22375. overflow: hidden;
  22376. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22377. }
  22378. .vedioNav {
  22379. margin: 10px 0 0 15px;
  22380. border-bottom: 1px solid #d7d7d7;
  22381. padding-bottom: 5px;
  22382. background: #3681fc;
  22383. width: 55px;
  22384. min-width: 55px;
  22385. border-radius: 5px;
  22386. color: #fff;
  22387. text-align: center;
  22388. height: 20px;
  22389. line-height: 26px;
  22390. font-size: 14px;
  22391. }
  22392. .queTop {
  22393. display: flex;
  22394. padding: 20px 0 20px 30px;
  22395. width: 100%;
  22396. flex-direction: row;
  22397. justify-content: flex-start;
  22398. align-items: center;
  22399. box-sizing: border-box;
  22400. }
  22401. .queTopTitle {
  22402. display: flex;
  22403. flex-direction: row;
  22404. flex-wrap: nowrap;
  22405. align-items: center;
  22406. font-weight: bold;
  22407. font-size: 20px;
  22408. color: rgb(14, 30, 51);
  22409. }
  22410. .queTopTitle::before {
  22411. content: "";
  22412. width: 2px;
  22413. height: 22px;
  22414. background: #3681fc;
  22415. border-radius: 3px;
  22416. display: block;
  22417. margin: 2px 6px 0 0;
  22418. }
  22419. .queTopRight {
  22420. display: flex;
  22421. flex-direction: row;
  22422. flex-wrap: nowrap;
  22423. align-items: center;
  22424. }
  22425. .queTopClose {
  22426. margin-right: 20px;
  22427. cursor: pointer;
  22428. position: relative;
  22429. display: flex;
  22430. }
  22431. .closeImg,
  22432. .openImg {
  22433. width: 25px;
  22434. height: 25px;
  22435. position: absolute;
  22436. left: -20px;
  22437. top: -1px;
  22438. }
  22439. .closeImg > img,
  22440. .openImg > img {
  22441. width: 100%;
  22442. height: 100%;
  22443. }
  22444. .question {
  22445. width: 40px;
  22446. margin-right: 10px;
  22447. margin-top: 7px;
  22448. }
  22449. .queTitle {
  22450. margin-left: 5px;
  22451. font-size: 25px;
  22452. display: flex;
  22453. align-items: center;
  22454. }
  22455. .addEditor {
  22456. width: 100px;
  22457. height: 30px;
  22458. background: #42cda6;
  22459. color: #fff;
  22460. border-radius: 5px;
  22461. text-align: center;
  22462. line-height: 30px;
  22463. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22464. cursor: pointer;
  22465. }
  22466. /* .vedioName {
  22467. cursor: pointer;
  22468. margin: 0px 0px 10px 5px;
  22469. white-space: nowrap;
  22470. overflow: hidden;
  22471. text-overflow: ellipsis;
  22472. width: 100%;
  22473. } */
  22474. .vedioTime {
  22475. width: 35px;
  22476. position: absolute;
  22477. color: #fff;
  22478. bottom: 0px;
  22479. right: 0px;
  22480. text-align: center;
  22481. background: #46411f;
  22482. height: 20px;
  22483. font-size: 14px;
  22484. line-height: 20px;
  22485. }
  22486. .homework {
  22487. width: 200px;
  22488. display: flex;
  22489. flex-direction: column;
  22490. flex-wrap: nowrap;
  22491. align-items: center;
  22492. cursor: pointer;
  22493. }
  22494. .homebox {
  22495. display: flex;
  22496. flex-wrap: wrap;
  22497. flex-direction: row;
  22498. justify-content: flex-start;
  22499. align-items: center;
  22500. padding: 15px 0;
  22501. }
  22502. .isChooseActive {
  22503. color: #3681fc !important;
  22504. font-weight: bold !important;
  22505. }
  22506. .chooseWho {
  22507. display: flex;
  22508. width: 100%;
  22509. flex-direction: row;
  22510. flex-wrap: nowrap;
  22511. justify-content: flex-start;
  22512. padding-bottom: 10px;
  22513. }
  22514. .chooseWho > div {
  22515. cursor: pointer;
  22516. padding-bottom: 10px;
  22517. margin: 0 30px 0 0;
  22518. font-weight: 400;
  22519. color: #0e1e33;
  22520. }
  22521. .addPoint > div > img {
  22522. cursor: pointer;
  22523. width: 85px;
  22524. border-radius: 15px;
  22525. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22526. }
  22527. .addPoint > div {
  22528. display: flex;
  22529. flex-direction: column;
  22530. flex-wrap: nowrap;
  22531. align-items: center;
  22532. }
  22533. .isBorder > div {
  22534. margin: 0 0 10px 0;
  22535. align-items: flex-start !important;
  22536. }
  22537. .noiframeBox {
  22538. display: flex;
  22539. flex-wrap: wrap;
  22540. }
  22541. .iframeBox iframe {
  22542. width: 100%;
  22543. height: 800px;
  22544. border: none;
  22545. margin-bottom: 20px;
  22546. border: 1px solid #ccc;
  22547. }
  22548. .upload_toolBtn {
  22549. background: #3681fc;
  22550. color: #fff;
  22551. width: 110px;
  22552. text-align: center;
  22553. height: 35px;
  22554. line-height: 35px;
  22555. font-size: 14px;
  22556. border-radius: 5px;
  22557. cursor: pointer;
  22558. position: absolute;
  22559. right: 10px;
  22560. bottom: 0;
  22561. }
  22562. .binfo_input,
  22563. .pj {
  22564. font: inherit;
  22565. color: currentColor;
  22566. width: 100%;
  22567. margin: 0;
  22568. padding: 15px 14px;
  22569. display: block;
  22570. min-width: 0;
  22571. outline: none;
  22572. box-sizing: content-box;
  22573. background: none;
  22574. -webkit-tap-highlight-color: transparent;
  22575. border: 1px solid rgba(0, 0, 0, 0.23);
  22576. border-radius: 4px;
  22577. box-sizing: border-box;
  22578. resize: none;
  22579. }
  22580. .binfo_input:focus-visible {
  22581. border: 1px solid rgba(61, 103, 188);
  22582. }
  22583. .dialog_diy >>> .el-dialog__header,
  22584. .dialog_diy1 >>> .el-dialog__header {
  22585. background: #454545 !important;
  22586. padding: 15px 20px;
  22587. }
  22588. .dialog_diy >>> .el-dialog__title,
  22589. .dialog_diy1 >>> .el-dialog__title {
  22590. color: #fff;
  22591. }
  22592. .dialog_diy >>> .el-dialog__headerbtn,
  22593. .dialog_diy1 >>> .el-dialog__headerbtn {
  22594. top: 19px;
  22595. }
  22596. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22597. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22598. color: #fff;
  22599. }
  22600. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22601. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22602. color: #fff;
  22603. }
  22604. .dialog_diy1 >>> .el-dialog__body {
  22605. padding: 0;
  22606. }
  22607. .dialog_diy >>> .el-dialog__body,
  22608. .dialog_diy >>> .el-dialog__footer,
  22609. .dialog_diy1 >>> .el-dialog__footer {
  22610. background: #fafafa;
  22611. }
  22612. .a_addBox {
  22613. padding: 0 0 0 15px;
  22614. }
  22615. .a_add_box {
  22616. padding: 10px;
  22617. background: #fff;
  22618. margin-bottom: 10px;
  22619. border-radius: 5px;
  22620. box-shadow: 0 0 5px 0 #d5d5d5;
  22621. }
  22622. .a_add_head {
  22623. display: flex;
  22624. align-items: flex-start;
  22625. /* justify-content: space-between; */
  22626. flex-direction: column;
  22627. /* flex-direction: row; */
  22628. margin: 10px 0 20px 0;
  22629. font-size: 18px;
  22630. width: 100%;
  22631. }
  22632. .askIndex {
  22633. background: #3681fc;
  22634. border-radius: 50%;
  22635. color: #fff;
  22636. width: 25px;
  22637. height: 25px;
  22638. min-width: 25px;
  22639. min-height: 25px;
  22640. text-align: center;
  22641. line-height: 25px;
  22642. margin-right: 5px;
  22643. }
  22644. .a_add_head .a_add_head_input {
  22645. width: 300px;
  22646. }
  22647. .a_add_head .a_add_head_div {
  22648. display: flex;
  22649. align-items: center;
  22650. justify-content: space-between;
  22651. }
  22652. .a_add_body {
  22653. display: flex;
  22654. align-items: center;
  22655. }
  22656. .a_add_input {
  22657. display: flex;
  22658. align-items: center;
  22659. flex-wrap: wrap;
  22660. width: 100%;
  22661. }
  22662. .a_add_input >>> .el-radio-group,
  22663. .a_add_input >>> .el-checkbox-group {
  22664. width: 100%;
  22665. }
  22666. .a_add_input >>> .el-radio,
  22667. .a_add_input >>> .el-checkbox {
  22668. display: flex;
  22669. flex-direction: row;
  22670. flex-wrap: nowrap;
  22671. align-items: center;
  22672. padding: 15px 0;
  22673. }
  22674. .a_add_input >>> .el-radio:not(:last-child),
  22675. .a_add_input >>> .el-checkbox:not(:last-child) {
  22676. width: 100%;
  22677. border-bottom: 1px solid #efefef;
  22678. }
  22679. .redioStyle >>> .el-radio__label {
  22680. font-size: 18px;
  22681. }
  22682. .redioStyle >>> .el-radio__label > span,
  22683. .redioStyle >>> .el-checkbox__label > span {
  22684. word-break: break-all;
  22685. white-space: normal;
  22686. }
  22687. .redioStyle >>> .el-checkbox__label {
  22688. font-size: 18px;
  22689. }
  22690. .toolHeng2 {
  22691. width: 100%;
  22692. padding-left: 15px;
  22693. box-sizing: border-box;
  22694. }
  22695. .workNav {
  22696. font-size: 20px;
  22697. font-weight: bold;
  22698. color: #0e1e33;
  22699. display: flex;
  22700. flex-direction: row;
  22701. flex-wrap: nowrap;
  22702. align-items: center;
  22703. padding: 15px 0 15px 0;
  22704. }
  22705. .workNav::before {
  22706. content: "";
  22707. width: 2px;
  22708. height: 22px;
  22709. background: #3681fc;
  22710. border-radius: 3px;
  22711. display: block;
  22712. margin: 2px 6px 0 0;
  22713. }
  22714. .toolHeng {
  22715. display: flex;
  22716. flex-direction: row;
  22717. flex-wrap: wrap;
  22718. justify-content: flex-start;
  22719. align-items: center;
  22720. width: 100%;
  22721. }
  22722. .toolHeng > div {
  22723. padding-left: 20px;
  22724. }
  22725. .isWidth {
  22726. width: 20%;
  22727. }
  22728. .textTitle {
  22729. display: flex;
  22730. flex-direction: row;
  22731. flex-wrap: nowrap;
  22732. align-items: center;
  22733. width: 95%;
  22734. }
  22735. .textTitle >>> .el-form-item__label {
  22736. font-size: 22px;
  22737. color: #918f8f;
  22738. width: 100px;
  22739. }
  22740. .textTitle >>> .el-form-item__content {
  22741. width: calc(100% - 100px);
  22742. }
  22743. .textCss >>> .el-dialog {
  22744. width: 800px !important;
  22745. height: 400px;
  22746. background: #fafafa;
  22747. }
  22748. .textCss >>> .el-dialog__body {
  22749. margin: 55px 8% 0 8%;
  22750. padding: 0 !important;
  22751. }
  22752. .textCss >>> .el-dialog__footer {
  22753. padding-top: 38px;
  22754. }
  22755. .toolsCss >>> .el-dialog__body {
  22756. padding: 20px;
  22757. }
  22758. .lineCss >>> .el-dialog__body {
  22759. display: flex;
  22760. flex-direction: row;
  22761. align-items: center;
  22762. justify-content: center;
  22763. }
  22764. .newNav {
  22765. display: flex;
  22766. flex-direction: row;
  22767. align-items: baseline;
  22768. justify-content: flex-start;
  22769. }
  22770. .navListItem {
  22771. width: calc(100% - 20px);
  22772. height: 50px;
  22773. margin: 0px auto 10px;
  22774. display: flex;
  22775. flex-direction: row;
  22776. flex-wrap: nowrap;
  22777. align-items: center;
  22778. justify-content: space-between;
  22779. background: #f0f4fa;
  22780. border-radius: 6px 6px 6px 6px;
  22781. }
  22782. .navText {
  22783. cursor: pointer;
  22784. white-space: nowrap;
  22785. overflow: hidden;
  22786. text-overflow: ellipsis;
  22787. width: 220px;
  22788. padding: 0 10px;
  22789. font-weight: 400;
  22790. color: #0e1e33;
  22791. }
  22792. .downIcon {
  22793. width: 20px;
  22794. min-width: 20px;
  22795. height: 20px;
  22796. margin-right: 15px;
  22797. cursor: pointer;
  22798. }
  22799. .downIcon > img {
  22800. width: 100%;
  22801. height: 100%;
  22802. }
  22803. .noVedio {
  22804. display: flex;
  22805. flex-direction: row;
  22806. justify-content: center;
  22807. align-content: center;
  22808. }
  22809. .noNavText {
  22810. cursor: pointer;
  22811. margin: 0px 0px 10px 5px;
  22812. width: 112px;
  22813. }
  22814. .listNoVedio {
  22815. margin: 0 0 0 30px;
  22816. width: 97%;
  22817. }
  22818. .video-player >>> .video-js {
  22819. height: 100%;
  22820. }
  22821. .hangVedioList {
  22822. width: 90% !important;
  22823. height: 150px !important;
  22824. margin: 20px 0 0 30px;
  22825. }
  22826. .hangVedio {
  22827. width: 100%;
  22828. height: 170px !important;
  22829. align-items: flex-start !important;
  22830. }
  22831. .hangHand {
  22832. height: 150px !important;
  22833. }
  22834. .twoChild {
  22835. width: 95%;
  22836. margin: 10px;
  22837. border-radius: 5px;
  22838. background: #f2f2f2;
  22839. display: flex;
  22840. flex-direction: column;
  22841. flex-wrap: nowrap;
  22842. justify-content: flex-start;
  22843. align-items: flex-start;
  22844. transition: all 0.5s;
  22845. overflow: hidden;
  22846. height: 0;
  22847. background: #e7f3ff;
  22848. }
  22849. .twoChild > div:nth-child(1) {
  22850. margin-top: 5px;
  22851. }
  22852. .navChild {
  22853. width: 100%;
  22854. cursor: pointer;
  22855. margin-bottom: 10px;
  22856. position: relative;
  22857. }
  22858. .navChild img {
  22859. position: absolute;
  22860. right: 11px;
  22861. width: 15px;
  22862. top: 50%;
  22863. transform: translateY(-50%);
  22864. }
  22865. .navActive,
  22866. .toolActive {
  22867. height: auto !important;
  22868. overflow: auto !important;
  22869. /* padding-bottom: 16px; */
  22870. }
  22871. .toolActive {
  22872. padding: 0;
  22873. }
  22874. .navTask {
  22875. display: flex;
  22876. flex-direction: row;
  22877. flex-wrap: nowrap;
  22878. align-items: center;
  22879. align-content: flex-start;
  22880. height: 40px;
  22881. justify-content: flex-start;
  22882. padding: 0 10px;
  22883. width: 100%;
  22884. box-sizing: border-box;
  22885. }
  22886. .navTaskname {
  22887. white-space: nowrap;
  22888. text-overflow: ellipsis;
  22889. overflow: hidden;
  22890. word-break: break-all;
  22891. padding-left: 5px;
  22892. }
  22893. .openTaskActive {
  22894. /* background-color: #e0eafb !important;
  22895. color: #0061ff; */
  22896. color:#fff;
  22897. background: rgb(55, 129, 252) !important;
  22898. }
  22899. .iframeName {
  22900. margin: 5px 0;
  22901. border-left: 4px solid #41c4a4;
  22902. padding-left: 4px;
  22903. }
  22904. .toolTitle {
  22905. margin: 0px 0px 20px;
  22906. font-size: 20px;
  22907. font-weight: 500;
  22908. border-left: 4px solid #41c4a4;
  22909. padding-left: 4px;
  22910. }
  22911. .cru_selectBox {
  22912. overflow: auto;
  22913. width: 95%;
  22914. margin: 17px auto 0;
  22915. height: calc(100% - 40px - 21px - 20px - 17px);
  22916. background: #fff;
  22917. border-radius: 8px;
  22918. }
  22919. .cru_selectBox::-webkit-scrollbar,
  22920. .study_top::-webkit-scrollbar,
  22921. .textContent::-webkit-scrollbar {
  22922. /*滚动条整体样式*/
  22923. width: 6px;
  22924. /*高宽分别对应横竖滚动条的尺寸*/
  22925. height: 6px;
  22926. }
  22927. /*定义滚动条轨道 内阴影+圆角*/
  22928. .cru_selectBox::-webkit-scrollbar-track,
  22929. .study_top::-webkit-scrollbar-track,
  22930. .textContent::-webkit-scrollbar {
  22931. border-radius: 10px;
  22932. background-color: #b8bdc9;
  22933. }
  22934. /*定义滑块 内阴影+圆角*/
  22935. .cru_selectBox::-webkit-scrollbar-thumb,
  22936. .study_top::-webkit-scrollbar-thumb,
  22937. .textContent::-webkit-scrollbar-thumb {
  22938. border-radius: 10px;
  22939. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22940. background-color: #2c5ab3;
  22941. }
  22942. .vedioBox {
  22943. border-radius: 0 0 20px 20px;
  22944. background: #fff;
  22945. overflow: auto;
  22946. }
  22947. .taskBox {
  22948. width: 98%;
  22949. background: #f0f4fa;
  22950. margin: 10px auto;
  22951. padding: 0 10px;
  22952. border-radius: 4px;
  22953. box-sizing: border-box;
  22954. }
  22955. .vedioTaskBox {
  22956. width: 100%;
  22957. display: flex;
  22958. flex-direction: row;
  22959. flex-wrap: nowrap;
  22960. align-items: flex-start;
  22961. position: relative;
  22962. }
  22963. .toolBox {
  22964. margin: 15px 0 0 25px;
  22965. display: flex;
  22966. position: relative;
  22967. padding: 18px 20px;
  22968. border-top-left-radius: 5px;
  22969. border-top-right-radius: 5px;
  22970. width: 90%;
  22971. }
  22972. .btnAll {
  22973. position: absolute;
  22974. right: 0;
  22975. display: flex;
  22976. flex-direction: row;
  22977. flex-wrap: nowrap;
  22978. align-items: center;
  22979. }
  22980. .btnLeft,
  22981. .btnRight {
  22982. display: flex;
  22983. flex-direction: row;
  22984. flex-wrap: nowrap;
  22985. align-items: center;
  22986. padding: 5px 0;
  22987. }
  22988. .btnLeft {
  22989. border-right: 1px solid #cad1dc;
  22990. }
  22991. .btnLeft > .custom-tooltip {
  22992. background: #3681fc;
  22993. color: #fff;
  22994. }
  22995. .last:hover {
  22996. background: #3383fa !important;
  22997. color: #fff;
  22998. border: 1px solid #3383fa !important;
  22999. }
  23000. .last,
  23001. .returnBtn1 {
  23002. width: 90px;
  23003. height: 36px;
  23004. background: #ffffff;
  23005. border-radius: 4px;
  23006. border: 1px solid #0061ff;
  23007. color: #0061ff;
  23008. cursor: pointer;
  23009. display: flex;
  23010. flex-direction: row;
  23011. flex-wrap: nowrap;
  23012. align-items: center;
  23013. justify-content: center;
  23014. margin-left: 12px;
  23015. }
  23016. .returnBtn1 {
  23017. background: #f0f4fa;
  23018. border-radius: 4px;
  23019. border: 1px solid #cad1dc;
  23020. margin: 0 12px;
  23021. }
  23022. .lastImg {
  23023. min-width: 15px;
  23024. width: 15px;
  23025. height: 15px;
  23026. display: flex;
  23027. }
  23028. .lastText {
  23029. padding: 0 5px 0 5px;
  23030. box-sizing: border-box;
  23031. font-size: 14px;
  23032. }
  23033. .lastImg > img {
  23034. width: 100%;
  23035. height: 100%;
  23036. }
  23037. /* .vedioTimeBox {
  23038. display: flex;
  23039. flex-direction: row;
  23040. align-items: center;
  23041. flex-wrap: nowrap;
  23042. position: relative;
  23043. } */
  23044. .navBox {
  23045. background: #fff;
  23046. height: calc(100% - 40px);
  23047. overflow-y: auto;
  23048. overflow-x: hidden;
  23049. }
  23050. .worksBox {
  23051. margin: 0 0 10px 25px;
  23052. border-bottom: 1px solid #eeeeee;
  23053. padding: 18px 20px;
  23054. border-radius: 4px;
  23055. width: 90%;
  23056. }
  23057. .worksBTitle {
  23058. font-size: 20px;
  23059. padding-bottom: 15px;
  23060. border-bottom: 1px solid #eeeeee;
  23061. display: flex;
  23062. align-items: center;
  23063. }
  23064. .greenBox {
  23065. width: 5px;
  23066. height: 30px;
  23067. background: #63b6fa;
  23068. margin-right: 5px;
  23069. }
  23070. .worksDetailBox {
  23071. display: flex;
  23072. width: 100%;
  23073. flex-direction: row;
  23074. flex-wrap: wrap;
  23075. align-items: flex-end;
  23076. justify-content: flex-start;
  23077. padding: 15px 5px;
  23078. box-sizing: border-box;
  23079. }
  23080. .works {
  23081. display: flex;
  23082. flex-direction: column;
  23083. flex-wrap: nowrap;
  23084. align-items: flex-start;
  23085. justify-content: flex-start;
  23086. align-content: center;
  23087. max-width: 240px;
  23088. width: calc(100% / 3 - 10px);
  23089. height: auto;
  23090. margin-right: 10px;
  23091. margin-bottom: 10px;
  23092. overflow: hidden;
  23093. height: 140px;
  23094. box-shadow: 0 0 6px 1px #dfdada;
  23095. border-radius: 15px;
  23096. }
  23097. .workImg {
  23098. width: 100%;
  23099. /* height: calc(100% - 40px); */
  23100. height: 105px;
  23101. position: relative;
  23102. }
  23103. .workImg > img {
  23104. width: 100%;
  23105. height: 100%;
  23106. object-fit: contain;
  23107. cursor: pointer;
  23108. }
  23109. .worksName {
  23110. height: 40px;
  23111. line-height: 40px;
  23112. display: flex;
  23113. width: 100%;
  23114. flex-direction: row;
  23115. flex-wrap: nowrap;
  23116. justify-content: space-between;
  23117. align-items: center;
  23118. margin: 0 0 0 10px;
  23119. }
  23120. .worksName > div:nth-child(1) {
  23121. width: 110px;
  23122. white-space: nowrap;
  23123. overflow: hidden;
  23124. text-overflow: ellipsis;
  23125. }
  23126. .worksName > div:nth-child(2) {
  23127. color: #b7b4b5;
  23128. }
  23129. .noWorksS {
  23130. padding: 15px 0;
  23131. display: flex;
  23132. flex-direction: row;
  23133. flex-wrap: wrap;
  23134. align-items: center;
  23135. justify-content: flex-start;
  23136. }
  23137. .noWorksName,
  23138. .isWorksName,
  23139. .isWorksName2 {
  23140. background: #ddebf8;
  23141. color: #000;
  23142. width: 90px;
  23143. height: 25px;
  23144. text-align: center;
  23145. line-height: 25px;
  23146. border-radius: 4px;
  23147. margin: 10px 15px 10px 0;
  23148. white-space: nowrap;
  23149. overflow: hidden;
  23150. padding: 5px;
  23151. text-overflow: ellipsis;
  23152. cursor: pointer;
  23153. border: 1px solid #ddebf8;
  23154. }
  23155. .noWorksName {
  23156. background: #fff;
  23157. color: #0061ff;
  23158. border: 1px solid #0061ff;
  23159. }
  23160. .noWorksName > span{
  23161. max-width: 100%;
  23162. display: block;
  23163. overflow: hidden;
  23164. text-overflow: ellipsis;
  23165. white-space: nowrap;
  23166. }
  23167. .isWorksName2 {
  23168. width: 100px;
  23169. height: 40px;
  23170. line-height: 40px;
  23171. position: relative;
  23172. background: #dae6f9;
  23173. }
  23174. .isWorksName {
  23175. background: #e7ebf1 !important;
  23176. width: 100px;
  23177. height: 40px;
  23178. line-height: 40px;
  23179. position: relative;
  23180. color: #acb4bf;
  23181. border: 1px solid #cad1dc !important;
  23182. }
  23183. .isSelectName,
  23184. .noWorksName:hover {
  23185. background: #3383fa !important;
  23186. color: #fff !important;
  23187. border: 1px solid #3383fa !important;
  23188. }
  23189. .title {
  23190. background: #1e5cc9;
  23191. /* width: 98%; */
  23192. height: 45px;
  23193. color: #fff;
  23194. line-height: 45px;
  23195. padding-left: 20px;
  23196. box-sizing: border-box;
  23197. }
  23198. .textBox {
  23199. font-size: 20px;
  23200. width: 90%;
  23201. display: flex;
  23202. flex-direction: column;
  23203. align-items: center;
  23204. margin: 20px auto 0;
  23205. max-height: calc(100% - 75px);
  23206. overflow: auto;
  23207. }
  23208. .textContent {
  23209. font-size: 18px;
  23210. width: 95%;
  23211. max-width: 95%;
  23212. }
  23213. .answerBg {
  23214. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23215. background-size: 100% 100%;
  23216. width: 100%;
  23217. height: 100%;
  23218. color: #fff;
  23219. text-align: center;
  23220. display: flex;
  23221. flex-direction: column;
  23222. flex-wrap: nowrap;
  23223. align-items: center;
  23224. position: relative;
  23225. justify-content: center;
  23226. }
  23227. /* .answerBg > div:nth-child(1) { */
  23228. /* font-size: 22px;
  23229. padding: 25px 0 10px; */
  23230. /* } */
  23231. .answerContent {
  23232. width: 215px;
  23233. max-height: 60px;
  23234. word-break: break-all;
  23235. text-align: center;
  23236. /* white-space: nowrap; */
  23237. overflow: hidden;
  23238. text-overflow: ellipsis;
  23239. /* padding: 23px 0 0; */
  23240. -webkit-line-clamp: 3;
  23241. -webkit-box-orient: vertical;
  23242. display: -webkit-box;
  23243. font-size: 15px;
  23244. cursor: pointer;
  23245. }
  23246. .elist_input_box {
  23247. display: flex;
  23248. align-items: flex-start;
  23249. flex-wrap: nowrap;
  23250. padding: 10px 0 15px 30px;
  23251. flex-direction: column;
  23252. }
  23253. .elist_input {
  23254. /* width: 40%; */
  23255. width: 45%;
  23256. margin: 20px;
  23257. }
  23258. .elist_input .elist_input_box input {
  23259. font: inherit;
  23260. color: currentColor;
  23261. width: 200px;
  23262. padding: 8px 14px;
  23263. display: block;
  23264. min-width: 0;
  23265. outline: none;
  23266. border: 1px solid rgba(0, 0, 0, 0.23);
  23267. border-radius: 4px;
  23268. box-sizing: border-box;
  23269. background: #fff;
  23270. margin: 0 20px 0 0;
  23271. }
  23272. .elist_input .elist_input_box span {
  23273. height: 36px;
  23274. line-height: 36px;
  23275. color: rgb(82, 82, 82);
  23276. }
  23277. .elist_input .elist_input_box .remove {
  23278. height: 20px;
  23279. width: 20px;
  23280. background-size: 100% 100%;
  23281. background-position: unset;
  23282. margin-left: 5px;
  23283. }
  23284. .elist_input_box >>> .el-rate {
  23285. display: flex;
  23286. height: 36px;
  23287. align-items: center;
  23288. }
  23289. .elist_input_box .elist_inptu_text {
  23290. min-height: 50px;
  23291. /* width: 500px;
  23292. max-height: 150px; */
  23293. width: 100%;
  23294. line-height: 50px;
  23295. color: rgb(82, 82, 82);
  23296. overflow: auto;
  23297. text-indent: 5px;
  23298. background: #f7f6f9;
  23299. border-radius: 10px;
  23300. }
  23301. .elist_input_box .elist_inptu_text input {
  23302. width: 500px;
  23303. }
  23304. .elist_input_box >>> .el-rate__icon {
  23305. font-size: 24px;
  23306. }
  23307. .isClick {
  23308. background: #4d9def;
  23309. }
  23310. .bzBox {
  23311. display: flex;
  23312. flex-direction: row;
  23313. align-items: center;
  23314. }
  23315. .bzBox .yCss {
  23316. width: 7px;
  23317. height: 7px;
  23318. background: #fff;
  23319. margin: 0 16px 0 6px;
  23320. border-radius: 50%;
  23321. border: 5px solid #3681fc;
  23322. z-index: 99;
  23323. }
  23324. .bzBox > div:nth-child(2) {
  23325. font-size: 18px;
  23326. font-weight: bold;
  23327. color: #0e1e33;
  23328. }
  23329. .navTitile {
  23330. padding: 0 0px 0 15px;
  23331. font-size: 16px;
  23332. font-weight: bold;
  23333. color: #0e1e33;
  23334. height: 40px;
  23335. line-height: 40px;
  23336. }
  23337. .isTypeOne {
  23338. width: 240px;
  23339. height: 170px;
  23340. /* border: 1px solid #f8f8f8; */
  23341. border-radius: 10px;
  23342. box-shadow: 0 0 6px 1px #dfdada;
  23343. }
  23344. .e_add_top {
  23345. display: flex;
  23346. justify-content: space-between;
  23347. padding: 10px 20px;
  23348. border-radius: 3px;
  23349. background: #fff;
  23350. }
  23351. .e_add_title2 {
  23352. display: flex;
  23353. align-items: center;
  23354. }
  23355. .e_add_title2 span {
  23356. width: 40px;
  23357. }
  23358. .e_add_title {
  23359. display: flex;
  23360. align-items: center;
  23361. color: #b8b8b8;
  23362. font-size: 18px;
  23363. position: relative;
  23364. height: 40px;
  23365. width: 100%;
  23366. }
  23367. .e_add_title span {
  23368. margin-right: 10px;
  23369. }
  23370. .e_add_title .el_input {
  23371. width: 300px;
  23372. }
  23373. .e_add_title >>> .el-input__inner {
  23374. width: 400px;
  23375. }
  23376. /* .e_add_btn {
  23377. } */
  23378. .e_add_content {
  23379. display: flex;
  23380. width: 100%;
  23381. max-width: 650px;
  23382. height: 550px;
  23383. }
  23384. .e_add_list {
  23385. background: #fff;
  23386. height: 500px;
  23387. width: 210px;
  23388. position: relative;
  23389. margin: 15px 5px 0 0;
  23390. flex-shrink: 0;
  23391. display: flex;
  23392. flex-direction: column;
  23393. }
  23394. .e_add_list_title {
  23395. font-size: 20px;
  23396. width: 100%;
  23397. box-sizing: border-box;
  23398. padding: 15px 40px;
  23399. text-align: center;
  23400. border-bottom: 1px solid #eaeaea;
  23401. position: relative;
  23402. display: flex;
  23403. align-items: center;
  23404. justify-content: center;
  23405. height: 57px;
  23406. background: #f6f6f6;
  23407. }
  23408. .e_add_list_title span {
  23409. overflow: hidden;
  23410. white-space: nowrap;
  23411. text-overflow: ellipsis;
  23412. }
  23413. .e_add_list_title img {
  23414. position: absolute;
  23415. right: 15px;
  23416. width: 25px;
  23417. cursor: pointer;
  23418. top: 50%;
  23419. transform: translateY(-50%);
  23420. }
  23421. .e_add_list_body {
  23422. height: calc(100% - 187px);
  23423. overflow: auto;
  23424. }
  23425. .e_add_list_child {
  23426. width: 100%;
  23427. display: flex;
  23428. align-items: center;
  23429. justify-content: center;
  23430. position: relative;
  23431. box-sizing: border-box;
  23432. padding: 15px 40px;
  23433. text-align: center;
  23434. }
  23435. .e_add_list_child span {
  23436. overflow: hidden;
  23437. white-space: nowrap;
  23438. text-overflow: ellipsis;
  23439. cursor: pointer;
  23440. }
  23441. .e_add_list_child img {
  23442. position: absolute;
  23443. right: 10px;
  23444. width: 21px;
  23445. cursor: pointer;
  23446. top: 50%;
  23447. transform: translateY(-50%);
  23448. }
  23449. .e_add_list_child + .e_add_list_child {
  23450. border-top: 1px solid #eaeaea;
  23451. }
  23452. .e_add_list_child .active {
  23453. color: #409eff;
  23454. }
  23455. .e_add_list_btn {
  23456. position: absolute;
  23457. bottom: 0;
  23458. height: 50px;
  23459. background: rgb(120, 120, 254);
  23460. width: 100%;
  23461. color: #fff;
  23462. font-size: 16px;
  23463. text-align: center;
  23464. line-height: 50px;
  23465. cursor: pointer;
  23466. }
  23467. .e_add_list_detail {
  23468. position: absolute;
  23469. bottom: 0;
  23470. height: 130px;
  23471. background: rgb(120, 120, 254);
  23472. width: 100%;
  23473. color: #fff;
  23474. font-size: 16px;
  23475. display: flex;
  23476. align-items: center;
  23477. justify-content: center;
  23478. }
  23479. .e_add_list_detail textarea {
  23480. height: 90%;
  23481. width: 95%;
  23482. border: none;
  23483. resize: none;
  23484. outline: none;
  23485. padding: 5px;
  23486. box-sizing: border-box;
  23487. }
  23488. .e_add_list_pbox {
  23489. width: 100%;
  23490. max-width: 650px;
  23491. /* height: 600px; */
  23492. }
  23493. .e_add_list_pbox_title {
  23494. height: 50px;
  23495. background: #fff;
  23496. display: flex;
  23497. align-items: center;
  23498. width: 100%;
  23499. box-sizing: border-box;
  23500. padding: 0 20px;
  23501. }
  23502. .type_title {
  23503. font-size: 18px;
  23504. font-weight: 700;
  23505. }
  23506. .type_content {
  23507. font-size: 16px;
  23508. /* margin-left: 30px; */
  23509. }
  23510. .type_content span + span {
  23511. margin-left: 20px;
  23512. }
  23513. .type_content span {
  23514. cursor: pointer;
  23515. padding-bottom: 5px;
  23516. box-sizing: border-box;
  23517. }
  23518. .type_content .active {
  23519. color: #409eff;
  23520. border-bottom: 2px solid #409eff;
  23521. }
  23522. .e_add_list_pbox_content {
  23523. height: calc(100% - 50px);
  23524. display: flex;
  23525. align-items: center;
  23526. width: 100%;
  23527. background: #fff;
  23528. }
  23529. .evaCss {
  23530. display: flex;
  23531. flex-direction: row;
  23532. flex-wrap: nowrap;
  23533. align-items: flex-start;
  23534. padding: 0 0 20px;
  23535. }
  23536. .cru_line {
  23537. position: absolute;
  23538. bottom: 0px;
  23539. transition: all 0.5s;
  23540. left: 0px;
  23541. width: 125px;
  23542. margin-left: -25px;
  23543. }
  23544. .isNoMessage {
  23545. width: 20%;
  23546. margin: 25% auto 0;
  23547. }
  23548. .isNoMessage > img {
  23549. width: 100%;
  23550. height: 100%;
  23551. }
  23552. .fullStyle >>> .el-dialog__body {
  23553. height: 100% !important;
  23554. }
  23555. .fullStyle >>> .el-dialog,
  23556. .fullStyle {
  23557. width: 100% !important;
  23558. max-width: 100% !important;
  23559. height: 100% !important;
  23560. margin: 0 !important;
  23561. }
  23562. .full_diy >>> .el-dialog {
  23563. margin: 0 !important;
  23564. height: 100%;
  23565. padding: 4px;
  23566. }
  23567. .full_diy >>> .el-dialog__body {
  23568. height: calc(100% - 100px);
  23569. }
  23570. .full_diy2 >>> .el-dialog__body {
  23571. height: calc(100% - 50px);
  23572. padding: 0;
  23573. }
  23574. .switchCss {
  23575. /* width: 100%; */
  23576. display: flex;
  23577. flex-direction: row;
  23578. flex-wrap: nowrap;
  23579. align-items: center;
  23580. /* justify-content: center; */
  23581. }
  23582. .isClickNav {
  23583. /* color: #499eef; */
  23584. color: #000;
  23585. }
  23586. .commentImg {
  23587. width: 25px;
  23588. height: 25px;
  23589. cursor: pointer;
  23590. }
  23591. .commentImg > img {
  23592. width: 100%;
  23593. height: 100%;
  23594. }
  23595. .comment {
  23596. background: #f9f9f9;
  23597. border-radius: 0 0 4px 4px;
  23598. display: flex;
  23599. flex-direction: row;
  23600. flex-wrap: nowrap;
  23601. align-items: center;
  23602. justify-content: flex-end;
  23603. height: 35px;
  23604. }
  23605. .commentList {
  23606. display: flex;
  23607. flex-direction: row;
  23608. flex-wrap: nowrap;
  23609. align-items: center;
  23610. justify-content: center;
  23611. align-content: center;
  23612. /* margin-left: 15px; */
  23613. /* margin-left: 8px; */
  23614. }
  23615. .scoreImg {
  23616. width: 17px;
  23617. height: 17px;
  23618. }
  23619. .studentDetail {
  23620. display: flex;
  23621. flex-direction: row;
  23622. flex-wrap: nowrap;
  23623. /* align-items: center; */
  23624. align-items: flex-start;
  23625. }
  23626. .tx {
  23627. width: 50px;
  23628. }
  23629. .tx > img {
  23630. width: 100%;
  23631. height: 100%;
  23632. }
  23633. .nameAndTime {
  23634. display: flex;
  23635. flex-direction: column;
  23636. flex-wrap: nowrap;
  23637. align-items: flex-start;
  23638. margin-left: 10px;
  23639. }
  23640. .worksAnswer {
  23641. color: #4078dd;
  23642. margin: 10px 0;
  23643. font-size: 16px;
  23644. position: relative;
  23645. }
  23646. .worksAnswer > img {
  23647. width: 500px;
  23648. height: 300px;
  23649. object-fit: contain;
  23650. margin: 0 auto;
  23651. display: block;
  23652. }
  23653. .commentTop {
  23654. border-bottom: 1px solid #eaeaea;
  23655. padding-bottom: 10px;
  23656. }
  23657. .commentBox {
  23658. padding-top: 15px;
  23659. }
  23660. .pl {
  23661. font-size: 18px;
  23662. }
  23663. .plPerson {
  23664. width: 100%;
  23665. }
  23666. .plName {
  23667. display: flex;
  23668. flex-direction: row;
  23669. flex-wrap: nowrap;
  23670. align-items: baseline;
  23671. color: #78787a;
  23672. width: 100%;
  23673. }
  23674. .deleteComment {
  23675. cursor: pointer;
  23676. margin-left: auto;
  23677. color: #237ade;
  23678. }
  23679. .plContent {
  23680. margin-top: 5px;
  23681. }
  23682. .evalCss {
  23683. background: #fff;
  23684. font-size: 18px;
  23685. }
  23686. .nav {
  23687. color: #9d9d9d;
  23688. padding: 5px 0 15px 20px;
  23689. }
  23690. .middleBox {
  23691. padding: 5px 0 15px 20px;
  23692. }
  23693. .pfBox {
  23694. padding-bottom: 30px;
  23695. }
  23696. .nameAndrate {
  23697. display: flex;
  23698. flex-direction: row;
  23699. flex-wrap: nowrap;
  23700. align-items: center;
  23701. padding-bottom: 10px;
  23702. height: 30px;
  23703. line-height: 30px;
  23704. }
  23705. .nameAndrate > div {
  23706. margin-left: 10px;
  23707. color: #000;
  23708. height: 30px;
  23709. }
  23710. .nameAndrate >>> .el-rate__icon {
  23711. font-size: 28px !important;
  23712. }
  23713. .pfBox > div:nth-child(2) {
  23714. background: #f7f6f9;
  23715. width: 400px;
  23716. min-height: 45px;
  23717. border-radius: 10px;
  23718. font-size: 16px;
  23719. display: flex;
  23720. flex-wrap: wrap;
  23721. align-items: center;
  23722. padding: 10px 20px;
  23723. box-sizing: border-box;
  23724. color: #000;
  23725. }
  23726. .bz {
  23727. display: flex;
  23728. flex-direction: row;
  23729. flex-wrap: nowrap;
  23730. align-items: flex-start;
  23731. }
  23732. .bz > div {
  23733. padding: 0 10px;
  23734. }
  23735. .select_box2_title {
  23736. background: #fff;
  23737. border-radius: 5px;
  23738. padding: 15px 10px;
  23739. box-sizing: border-box;
  23740. margin-bottom: 10px;
  23741. display: flex;
  23742. flex-direction: row;
  23743. flex-wrap: nowrap;
  23744. align-items: center;
  23745. }
  23746. .select_box2_title > div:nth-child(2) {
  23747. margin-left: 10px;
  23748. color: #c4c4c4;
  23749. }
  23750. .select_box2_box {
  23751. display: flex;
  23752. height: 500px;
  23753. }
  23754. .select_box2_img {
  23755. width: calc(100% - 310px);
  23756. height: 100%;
  23757. overflow: auto;
  23758. background: #fff;
  23759. border-radius: 5px;
  23760. }
  23761. .select_box2_img img {
  23762. width: 100%;
  23763. }
  23764. .select_box2_answer {
  23765. background: #fff;
  23766. margin-left: 10px;
  23767. border-radius: 5px;
  23768. width: 300px;
  23769. overflow: auto;
  23770. height: 90%;
  23771. display: flex;
  23772. flex-direction: column;
  23773. align-items: flex-start;
  23774. padding-top: 10px;
  23775. box-sizing: border-box;
  23776. position: relative;
  23777. }
  23778. .select_answer_title {
  23779. padding: 0 0 15px 20px;
  23780. color: #c4c4c4;
  23781. }
  23782. .select_box2_answer_box {
  23783. margin: 0 0 10px 20px;
  23784. width: 85%;
  23785. display: flex;
  23786. flex-direction: row;
  23787. flex-wrap: nowrap;
  23788. align-items: center;
  23789. }
  23790. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23791. color: #000;
  23792. }
  23793. .upAnswerCss {
  23794. position: absolute;
  23795. bottom: 15px;
  23796. right: 15px;
  23797. }
  23798. .upAnswerCss >>> .el-button {
  23799. width: 95px;
  23800. height: 35px;
  23801. line-height: 35px;
  23802. padding: 0;
  23803. }
  23804. .rightWidthCss {
  23805. width: 60%;
  23806. display: flex;
  23807. flex-direction: row;
  23808. align-items: flex-start;
  23809. }
  23810. .rightAnswer {
  23811. display: flex;
  23812. flex-direction: row;
  23813. flex-wrap: nowrap;
  23814. align-items: center;
  23815. color: red;
  23816. margin-bottom: 31px;
  23817. }
  23818. .rightAnswerCss {
  23819. display: flex;
  23820. flex-direction: column;
  23821. flex-wrap: nowrap;
  23822. padding-top: 60px;
  23823. }
  23824. .blueCss {
  23825. color: #767de1;
  23826. margin-left: 10px;
  23827. }
  23828. .redCss {
  23829. color: red;
  23830. }
  23831. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23832. color: rgb(0 123 255) !important;
  23833. }
  23834. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23835. color: rgb(0 123 255) !important;
  23836. }
  23837. .zuoyeYulan {
  23838. padding-top: 0;
  23839. font-size: 18px;
  23840. display: flex;
  23841. align-items: flex-end;
  23842. }
  23843. .buttonA {
  23844. margin-left: 10px;
  23845. padding: 0;
  23846. }
  23847. .displayBox {
  23848. margin-bottom: 10px;
  23849. display: block;
  23850. border-bottom: 3px solid #eee;
  23851. display: flex;
  23852. align-items: center;
  23853. }
  23854. .easy_comment {
  23855. width: calc(100% - 90px);
  23856. margin-left: 10px;
  23857. display: flex;
  23858. flex-wrap: wrap;
  23859. }
  23860. .easy_comment > div {
  23861. border: 1px solid #4a4a4a;
  23862. color: #666;
  23863. border-radius: 15px;
  23864. padding: 5px 10px;
  23865. font-size: 16px;
  23866. margin-bottom: 10px;
  23867. margin-right: 5px;
  23868. cursor: pointer;
  23869. }
  23870. .easy_comment div:hover {
  23871. border: 1px solid #f7ba2a;
  23872. color: #c69217;
  23873. }
  23874. .xuan_right_box {
  23875. padding: 10px 0;
  23876. background: #f0f4fa;
  23877. margin: 0 15px 0 25px;
  23878. border-bottom-left-radius: 5px;
  23879. border-bottom-right-radius: 5px;
  23880. width: 91.5%;
  23881. }
  23882. .tool_right_box {
  23883. display: flex;
  23884. align-items: center;
  23885. }
  23886. .tool_right_box >>> .katex {
  23887. font-size: 16px;
  23888. }
  23889. .tool_right_box + .tool_right_box {
  23890. margin-top: 10px;
  23891. }
  23892. .right_box_xuan {
  23893. border-radius: 5px;
  23894. padding: 5px;
  23895. margin-left: 10px;
  23896. min-width: 85px;
  23897. background: #fff;
  23898. color: #0061ff;
  23899. border: 1px solid #0061ff;
  23900. font-size: 14px;
  23901. }
  23902. .pButton:hover {
  23903. opacity: 1 !important;
  23904. }
  23905. .pButton {
  23906. position: fixed;
  23907. text-align: center;
  23908. cursor: pointer;
  23909. z-index: 999;
  23910. right: 20px;
  23911. top: 110px;
  23912. width: 50px;
  23913. height: 50px;
  23914. display: flex;
  23915. align-items: center;
  23916. justify-content: center;
  23917. border-radius: 5px;
  23918. }
  23919. .pzClass {
  23920. width: calc(100% - 340px);
  23921. }
  23922. .newDialogCss {
  23923. /* position: fixed;
  23924. right: 5%;
  23925. top: 50%;
  23926. width: 340px;
  23927. transform: translateY(-50%);
  23928. height: 60%;
  23929. box-shadow: 0px 0 8px 0px #555555;
  23930. border-radius: 15px;
  23931. z-index: 999; */
  23932. position: fixed;
  23933. right: 20px;
  23934. top: 101px;
  23935. width: 330px;
  23936. height: calc(100% - 80px);
  23937. z-index: 999;
  23938. background: #fff;
  23939. border-top-right-radius: 0px;
  23940. border-bottom-right-radius: 0px;
  23941. overflow: hidden;
  23942. }
  23943. .newDialogCss>.scoreList{
  23944. width:100%;
  23945. height:100%;
  23946. box-sizing:border-box;
  23947. padding:10px 15px;
  23948. overflow:auto;
  23949. padding-bottom:80px;
  23950. }
  23951. .pzTop {
  23952. color: #fff;
  23953. background: #000;
  23954. display: flex;
  23955. flex-direction: row;
  23956. flex-wrap: nowrap;
  23957. align-items: center;
  23958. justify-content: space-between;
  23959. height: 40px;
  23960. border-radius: 15px 15px 0 0;
  23961. user-select: none;
  23962. }
  23963. .pzTop2 .checkbox {
  23964. display: flex;
  23965. align-items: center;
  23966. padding: 5px 10px;
  23967. flex: 0 0 auto;
  23968. font-weight: bold;
  23969. border-bottom: 1px solid #eee;
  23970. justify-content: space-between;
  23971. }
  23972. .checkbox>.cb-tabList{
  23973. display:flex;
  23974. align-items:center;
  23975. }
  23976. .cb-tabList>div{
  23977. margin-right:20px;
  23978. font-weight:400;
  23979. cursor:pointer;
  23980. }
  23981. .cb-tabList>.cb-tabItem{
  23982. color:#1684FC;
  23983. position:relative;
  23984. }
  23985. .cb-tabItem::after{
  23986. content:"";
  23987. width:100%;
  23988. height:2px;
  23989. background:#1684FC;
  23990. position:absolute;
  23991. bottom:-5px;
  23992. left:0
  23993. }
  23994. .pzTop2 .check {
  23995. text-align: center;
  23996. cursor: pointer;
  23997. box-sizing: border-box;
  23998. display: flex;
  23999. }
  24000. .pzTop2 img {
  24001. width: 25px;
  24002. cursor: pointer;
  24003. }
  24004. .pzTop > div:nth-child(1) {
  24005. padding-left: 10px;
  24006. }
  24007. .pzTop > div:nth-child(2) {
  24008. width: 15px;
  24009. height: 15px;
  24010. padding-right: 10px;
  24011. cursor: pointer;
  24012. }
  24013. .pzTop > div:nth-child(2) > img {
  24014. width: 100%;
  24015. height: 100%;
  24016. }
  24017. .pzBox,
  24018. .noPzBox {
  24019. height: calc(100% - 60px);
  24020. /* background: #ededed; */
  24021. background: #fff;
  24022. /* border-radius: 0 0 15px 15px; */
  24023. }
  24024. .noPzBox {
  24025. display: flex;
  24026. flex-direction: column;
  24027. flex-wrap: nowrap;
  24028. justify-content: center;
  24029. align-items: center;
  24030. }
  24031. .pzList {
  24032. background: #f7f7f7;
  24033. width: 90%;
  24034. margin: 0 auto 15px;
  24035. border-radius: 5px;
  24036. }
  24037. .pzNavTop {
  24038. display: flex;
  24039. flex-direction: row;
  24040. flex-wrap: nowrap;
  24041. padding: 10px 10px 0 10px;
  24042. align-items: center;
  24043. }
  24044. .pzDelete {
  24045. cursor: pointer;
  24046. margin-left: auto;
  24047. font-size: 14px;
  24048. color: #afafaf;
  24049. }
  24050. .pzNavTop > div:nth-child(1) {
  24051. background: #3760af;
  24052. width: 35px;
  24053. height: 35px;
  24054. color: #fff;
  24055. text-align: center;
  24056. line-height: 35px;
  24057. border-radius: 50%;
  24058. font-size: 14px;
  24059. }
  24060. .pzNavTop > div:nth-child(2) {
  24061. font-size: 18px;
  24062. color: #959595;
  24063. margin-left: 5px;
  24064. }
  24065. .pzContent {
  24066. padding: 10px;
  24067. word-break: break-word;
  24068. }
  24069. .pzContent audio {
  24070. width: 100%;
  24071. }
  24072. .pzContent audio::-webkit-media-controls-panel {
  24073. background: #fff;
  24074. }
  24075. .pzContent >>> img {
  24076. max-width: 100%;
  24077. }
  24078. .pzListBox {
  24079. padding-top: 15px;
  24080. height: calc(100% - 110px);
  24081. overflow: auto;
  24082. }
  24083. .addPzButton {
  24084. position: relative;
  24085. margin-top: 3px;
  24086. width: 100%;
  24087. }
  24088. .addPzButton .img1 {
  24089. position: absolute;
  24090. top: 50%;
  24091. right: 25px;
  24092. transform: translateY(-50%);
  24093. height: 100%;
  24094. display: flex;
  24095. align-items: center;
  24096. }
  24097. .addPzButton .img1 div {
  24098. display: flex;
  24099. }
  24100. .addPzButton .img1 div img {
  24101. width: 28px;
  24102. margin-left: 10px;
  24103. cursor: pointer;
  24104. }
  24105. .addPzButton .img1 div span {
  24106. font-size: 14px;
  24107. margin: 4px 0 0 3px;
  24108. color: #afafaf;
  24109. }
  24110. .addPz {
  24111. background: #4b79ce;
  24112. width: 100px;
  24113. color: #fff;
  24114. font-size: 12px;
  24115. height: 30px;
  24116. margin: 0 auto;
  24117. text-align: center;
  24118. line-height: 30px;
  24119. border-radius: 10px;
  24120. cursor: pointer;
  24121. }
  24122. .addDialogCss {
  24123. position: fixed;
  24124. width: 600px;
  24125. height: 70%;
  24126. min-height: 450px;
  24127. box-shadow: 0px 0 8px 0px #555555;
  24128. border-radius: 15px;
  24129. z-index: 999;
  24130. left: 50%;
  24131. top: 50%;
  24132. margin: -18% 0 0 -300px;
  24133. }
  24134. .teacherPz {
  24135. display: flex;
  24136. flex-direction: row;
  24137. align-items: center;
  24138. flex-wrap: nowrap;
  24139. }
  24140. .teacherPzImg {
  24141. width: 30px;
  24142. height: 30px;
  24143. }
  24144. .teacherPzImg > img {
  24145. width: 100%;
  24146. height: 100%;
  24147. }
  24148. .addPzBox {
  24149. height: calc(100% - 40px);
  24150. background: #ededed;
  24151. border-bottom-left-radius: 15px;
  24152. border-bottom-right-radius: 15px;
  24153. }
  24154. .pzAudioClass {
  24155. margin: 15px 14px;
  24156. background: #fff;
  24157. height: 100%;
  24158. display: flex;
  24159. justify-content: center;
  24160. align-items: center;
  24161. }
  24162. .pzConText {
  24163. width: 95%;
  24164. height: 100%;
  24165. margin: 10px auto 0;
  24166. border: none;
  24167. background: #fff;
  24168. border-radius: 0px;
  24169. }
  24170. .pzConText >>> .text {
  24171. height: calc(100% - 82px);
  24172. }
  24173. .addTextCss {
  24174. background: #4b79ce;
  24175. width: 80px;
  24176. height: 30px;
  24177. text-align: center;
  24178. color: #fff;
  24179. line-height: 30px;
  24180. border-radius: 10px;
  24181. margin: 10px auto 0;
  24182. cursor: pointer;
  24183. }
  24184. .pzConText:focus-visible {
  24185. border: none !important;
  24186. }
  24187. .maxWidth {
  24188. width: 1000px;
  24189. }
  24190. .noPz {
  24191. width: 150px;
  24192. margin: 0 auto 20%;
  24193. }
  24194. .noPz > img {
  24195. width: 100%;
  24196. height: 100%;
  24197. }
  24198. .timeAndReply {
  24199. display: flex;
  24200. flex-direction: row;
  24201. flex-wrap: nowrap;
  24202. justify-content: space-between;
  24203. align-items: center;
  24204. font-size: 14px;
  24205. box-sizing: border-box;
  24206. padding: 0 10px 10px 0px;
  24207. }
  24208. .timeAndReply .time {
  24209. color: #bfbfbf;
  24210. padding: 0 0 0 10px;
  24211. box-sizing: border-box;
  24212. }
  24213. .timeAndReply > div:last-child {
  24214. cursor: pointer;
  24215. color: #777;
  24216. }
  24217. /* table 样式 */
  24218. .cont >>> table {
  24219. border-top: 1px solid #ccc;
  24220. border-left: 1px solid #ccc;
  24221. }
  24222. .cont >>> table td,
  24223. .cont >>> table th {
  24224. border-bottom: 1px solid #ccc;
  24225. border-right: 1px solid #ccc;
  24226. /* padding: 20px 5px; */
  24227. padding: 5px 10px;
  24228. max-width: 0px;
  24229. height: 30px;
  24230. vertical-align: baseline;
  24231. box-sizing: border-box;
  24232. }
  24233. .cont >>> table th {
  24234. border-bottom: 2px solid #ccc;
  24235. text-align: center;
  24236. }
  24237. /* blockquote 样式 */
  24238. .cont >>> blockquote {
  24239. display: block;
  24240. border-left: 8px solid #d0e5f2;
  24241. padding: 5px 10px;
  24242. margin: 10px 0;
  24243. line-height: 1.4;
  24244. font-size: 100%;
  24245. background-color: #f1f1f1;
  24246. }
  24247. /* code 样式 */
  24248. .cont >>> code {
  24249. display: inline-block;
  24250. /* *display: inline; */
  24251. zoom: 1;
  24252. background-color: #f1f1f1;
  24253. border-radius: 3px;
  24254. padding: 3px 5px;
  24255. margin: 0 3px;
  24256. }
  24257. .cont >>> pre code {
  24258. display: block;
  24259. }
  24260. /* ul ol 样式 */
  24261. .cont >>> ul,
  24262. ol {
  24263. margin: 10px 0 10px 20px;
  24264. }
  24265. .addPzCheck {
  24266. display: flex;
  24267. flex-direction: row;
  24268. flex-wrap: nowrap;
  24269. padding: 10px 15px 0;
  24270. }
  24271. .addPzCheck span {
  24272. cursor: pointer;
  24273. padding-bottom: 5px;
  24274. font-weight: bold;
  24275. }
  24276. .addPzCheck span + span {
  24277. margin-left: 10px;
  24278. }
  24279. .addPzCheck .isChooseActive {
  24280. color: #3e88f4;
  24281. border-bottom: 2px solid #2f80f3;
  24282. }
  24283. /* code 样式 */
  24284. .cont {
  24285. /* -webkit-user-modify: read-write; */
  24286. overflow-wrap: break-word;
  24287. -webkit-line-break: after-white-space;
  24288. word-break: break-word;
  24289. white-space: pre-line;
  24290. }
  24291. .scoreBox,
  24292. .scoreDetailBox {
  24293. display: flex;
  24294. align-items: center;
  24295. justify-content: flex-start;
  24296. margin-top: 20px;
  24297. font-size: 18px;
  24298. width: 100%;
  24299. }
  24300. .scoreBox .t,
  24301. .scoreDetailBox .t {
  24302. margin-right: 10px;
  24303. width: 100px;
  24304. text-align: right;
  24305. }
  24306. .scoreDetailBox {
  24307. align-items: flex-start;
  24308. }
  24309. .scoreDetailBox >>> .el-textarea {
  24310. width: calc(100% - 200px);
  24311. }
  24312. .scoreBox >>> .el-input {
  24313. width: 130px;
  24314. font-size: 38px;
  24315. }
  24316. .scoreBox >>> .el-input__inner {
  24317. height: 60px;
  24318. }
  24319. .answerScore {
  24320. position: absolute;
  24321. top: 10px;
  24322. right: 10px;
  24323. background: #0000008f;
  24324. border-radius: 5px;
  24325. padding: 3px 5px;
  24326. font-size: 14px;
  24327. color: #fff;
  24328. cursor: pointer;
  24329. }
  24330. .open_box .switch_box {
  24331. width: 100%;
  24332. margin: 0 auto;
  24333. display: flex;
  24334. justify-content: space-between;
  24335. }
  24336. .open_box .switch_box + .switch_box {
  24337. margin-top: 10px;
  24338. }
  24339. .deleteImg,.deleteImg1 {
  24340. width: 25px !important;
  24341. height: 25px !important;
  24342. cursor: pointer;
  24343. position: absolute;
  24344. top: 10px;
  24345. right: 10px;
  24346. }
  24347. .deleteImg2 {
  24348. width: 23px !important;
  24349. height: 23px !important;
  24350. top: 5px;
  24351. right: 5px;
  24352. }
  24353. .deleteImg1{
  24354. width: 23px !important;
  24355. height: 23px !important;
  24356. top: 5px !important;
  24357. right: 30px !important;
  24358. }
  24359. .rightW {
  24360. right: 40px;
  24361. }
  24362. .drawPBox {
  24363. display: flex;
  24364. flex-direction: column;
  24365. position: relative;
  24366. }
  24367. .drawPBox span {
  24368. font-size: 18px;
  24369. color: #606266;
  24370. padding-bottom: 10px;
  24371. margin: 10px 0;
  24372. border-bottom: 1px solid #eaeaea;
  24373. }
  24374. .drawPBox img {
  24375. width: 500px;
  24376. height: 300px;
  24377. object-fit: contain;
  24378. cursor: pointer;
  24379. margin: 0 auto;
  24380. }
  24381. .sentenBox {
  24382. background: #fff;
  24383. height: 450px;
  24384. overflow: auto;
  24385. background-image: url("../assets/icon/conSentences/stuBg.png");
  24386. background-position: 102%;
  24387. background-repeat: no-repeat;
  24388. background-size: 60%;
  24389. }
  24390. .addSen {
  24391. background: #409efe;
  24392. width: 90px;
  24393. color: #fff;
  24394. height: 35px;
  24395. text-align: center;
  24396. line-height: 35px;
  24397. border-radius: 5px;
  24398. float: right;
  24399. margin: 10px 20px 0 0;
  24400. cursor: pointer;
  24401. }
  24402. .sentenTop {
  24403. display: flex;
  24404. flex-direction: row;
  24405. flex-wrap: nowrap;
  24406. align-items: center;
  24407. padding: 55px 0 0 20px;
  24408. box-sizing: border-box;
  24409. }
  24410. .sentenTop > div:nth-child(2) {
  24411. width: 300px;
  24412. margin: 0 15px;
  24413. }
  24414. .sentenTop > div:nth-child(3) {
  24415. background: #409efe;
  24416. color: #fff;
  24417. width: 65px;
  24418. height: 35px;
  24419. text-align: center;
  24420. line-height: 35px;
  24421. border-radius: 5px;
  24422. cursor: pointer;
  24423. }
  24424. .cardList,
  24425. .cardList1 {
  24426. padding: 10px 0 10px 0;
  24427. display: flex;
  24428. flex-direction: row;
  24429. flex-wrap: wrap;
  24430. align-items: center;
  24431. box-sizing: border-box;
  24432. border-bottom: 1px solid #f4f4f4;
  24433. width: 98%;
  24434. margin: 0 auto;
  24435. min-width: 60%;
  24436. max-width: 85%;
  24437. }
  24438. .cardList1 {
  24439. padding: 10px 0 10px 10px !important;
  24440. margin: 0 !important;
  24441. }
  24442. .cardBox {
  24443. display: flex;
  24444. flex-direction: row;
  24445. flex-wrap: wrap;
  24446. align-items: center;
  24447. align-content: center;
  24448. }
  24449. .cardBox > div {
  24450. margin-bottom: 10px;
  24451. }
  24452. .isCard,
  24453. .isChooseCard,
  24454. .noCard,
  24455. .isCard1 {
  24456. min-width: 130px;
  24457. width: auto;
  24458. height: 60px;
  24459. text-align: center;
  24460. line-height: 60px;
  24461. font-size: 20px;
  24462. cursor: pointer;
  24463. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24464. background-size: cover;
  24465. transition: all 2s;
  24466. margin-right: 20px;
  24467. background-size: 100% 100%;
  24468. padding: 0 20px;
  24469. box-sizing: border-box;
  24470. }
  24471. .isCard > div,
  24472. .noCard > div,
  24473. .isCard1 > div {
  24474. white-space: nowrap;
  24475. overflow: hidden;
  24476. text-overflow: ellipsis;
  24477. width: 100%;
  24478. margin: 0 auto;
  24479. }
  24480. .noCard {
  24481. background-image: none;
  24482. }
  24483. .isCard1 {
  24484. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24485. }
  24486. .isChooseCard {
  24487. background-image: none;
  24488. border: 1px dashed #b9b9b9;
  24489. border-radius: 10px;
  24490. }
  24491. .card {
  24492. width: 130px;
  24493. height: 60px;
  24494. }
  24495. .card > img {
  24496. width: 100%;
  24497. height: 100%;
  24498. }
  24499. .rightCardBox {
  24500. margin: 10px 0 0 10px;
  24501. }
  24502. .rightCardBox > div:nth-child(1) {
  24503. margin-bottom: 10px;
  24504. }
  24505. .cardCss {
  24506. display: flex;
  24507. flex-direction: column;
  24508. flex-wrap: nowrap;
  24509. align-items: center;
  24510. border-bottom: 3px solid #b4c3d3;
  24511. padding: 0 0 5px 0;
  24512. margin-right: 10px;
  24513. }
  24514. .cardCss > div:nth-child(2) {
  24515. background: #5b7b9d;
  24516. color: #fff;
  24517. width: 20px;
  24518. height: 20px;
  24519. border-radius: 50%;
  24520. text-align: center;
  24521. line-height: 20px;
  24522. }
  24523. .isWrong {
  24524. display: flex;
  24525. flex-direction: row;
  24526. flex-wrap: nowrap;
  24527. align-content: center;
  24528. align-items: center;
  24529. }
  24530. .answerRight {
  24531. width: 25%;
  24532. }
  24533. .isTj {
  24534. display: flex;
  24535. flex-direction: row;
  24536. flex-wrap: nowrap;
  24537. align-items: center;
  24538. }
  24539. .isTj > div:nth-child(2) {
  24540. color: #727070;
  24541. margin-left: 10px;
  24542. }
  24543. .isTjImg {
  24544. width: 30px;
  24545. height: 30px;
  24546. }
  24547. .isTjImg > img {
  24548. width: 100%;
  24549. height: 100%;
  24550. }
  24551. .cardAnswerBox {
  24552. font-size: 18px;
  24553. width: 97%;
  24554. border: 5px;
  24555. padding: 0;
  24556. border-radius: 5px;
  24557. margin: 10px auto;
  24558. word-break: break-word;
  24559. }
  24560. .w_name {
  24561. margin-bottom: 10px;
  24562. }
  24563. .w_name span {
  24564. font-size: 16px;
  24565. }
  24566. .w_teachert {
  24567. width: 50px !important;
  24568. position: absolute;
  24569. height: auto !important;
  24570. z-index: 10;
  24571. right: 25px;
  24572. top: -25px;
  24573. }
  24574. /* .group_workBox {
  24575. } */
  24576. .group_workBox + .group_workBox {
  24577. margin-top: 20px;
  24578. }
  24579. .group_box {
  24580. padding-bottom: 20px;
  24581. border-bottom: 2px solid #f0f0f0;
  24582. margin-top: 10px;
  24583. }
  24584. .group_title {
  24585. display: flex;
  24586. align-items: center;
  24587. justify-content: space-between;
  24588. width: 95%;
  24589. }
  24590. .group_name {
  24591. background-image: url(../assets/icon/groupN.png);
  24592. width: 220px;
  24593. background-size: 100% 100%;
  24594. height: 67px;
  24595. padding: 0 20px 0 43px;
  24596. box-sizing: border-box;
  24597. line-height: 63px;
  24598. color: #fff;
  24599. overflow: hidden;
  24600. white-space: nowrap;
  24601. text-overflow: ellipsis;
  24602. }
  24603. .group_work {
  24604. width: 100%;
  24605. padding: 0 10px;
  24606. box-sizing: border-box;
  24607. display: flex;
  24608. flex-wrap: wrap;
  24609. }
  24610. .g_d_box {
  24611. display: flex;
  24612. flex-flow: wrap;
  24613. justify-content: space-around;
  24614. }
  24615. .g_d_box .isChair {
  24616. background-image: url(../assets/avatar.png) !important;
  24617. }
  24618. .g_d_group {
  24619. width: 500px;
  24620. margin-bottom: 80px;
  24621. }
  24622. .g_d_group_chair {
  24623. display: flex;
  24624. align-items: center;
  24625. justify-content: center;
  24626. }
  24627. .g_d_group_chair > div + div {
  24628. margin-left: 30px;
  24629. }
  24630. .g_d_group_chair > div,
  24631. .g_d_group_chair2 > div {
  24632. display: flex;
  24633. flex-direction: column;
  24634. align-items: center;
  24635. }
  24636. .g_d_group_chair > div > span:nth-child(1),
  24637. .g_d_group_chair2 > div > span:nth-child(1) {
  24638. background-image: url(../assets/icon/chair.png);
  24639. width: 50px;
  24640. height: 50px;
  24641. display: block;
  24642. background-size: 100% 100%;
  24643. }
  24644. .g_d_group_tableBox {
  24645. display: flex;
  24646. align-items: center;
  24647. justify-content: center;
  24648. }
  24649. .g_d_group_chair2 {
  24650. display: flex;
  24651. flex-direction: column;
  24652. align-items: center;
  24653. justify-content: center;
  24654. }
  24655. .g_d_group_chair2 > div + div {
  24656. margin-top: 10px;
  24657. }
  24658. .g_d_group_table {
  24659. background-image: url(../assets/icon/groupBg.png);
  24660. width: 354px;
  24661. height: 196px;
  24662. background-size: 100% 100%;
  24663. display: flex;
  24664. align-items: center;
  24665. justify-content: center;
  24666. flex-direction: column;
  24667. color: #fff;
  24668. }
  24669. .g_d_group_table > div:nth-child(1) {
  24670. font-size: 24px;
  24671. margin-bottom: 5px;
  24672. }
  24673. .g_d_group_table > div:nth-child(2) div {
  24674. cursor: pointer;
  24675. background: #2e77bf;
  24676. padding: 4px 10px;
  24677. border-radius: 5px;
  24678. }
  24679. /* .groupBox {
  24680. } */
  24681. .groupContent + .groupContent {
  24682. margin-top: 30px;
  24683. }
  24684. .groupTitle {
  24685. font-size: 24px;
  24686. color: rgb(80, 80, 80);
  24687. margin-bottom: 20px;
  24688. }
  24689. .groupName {
  24690. display: flex;
  24691. align-items: center;
  24692. }
  24693. .groupn {
  24694. font-size: 15px;
  24695. margin-right: 10px;
  24696. }
  24697. .groupName + .groupName {
  24698. margin-top: 15px;
  24699. }
  24700. .groupBtn {
  24701. margin-left: 10px;
  24702. }
  24703. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24704. text-align: left;
  24705. }
  24706. .g_d_btnBox {
  24707. display: flex;
  24708. justify-content: flex-end;
  24709. align-items: center;
  24710. margin-bottom: 20px;
  24711. }
  24712. .updateChair {
  24713. position: relative;
  24714. }
  24715. .updateChairBtn {
  24716. position: absolute;
  24717. width: 50px;
  24718. height: 50px;
  24719. overflow: hidden;
  24720. /* display: flex; */
  24721. align-items: center;
  24722. justify-content: center;
  24723. background: #00000087;
  24724. color: #fff;
  24725. border-radius: 50px;
  24726. display: none;
  24727. cursor: pointer;
  24728. }
  24729. .updateChair:hover .updateChairBtn {
  24730. display: flex;
  24731. }
  24732. .group_staic_box {
  24733. display: flex;
  24734. padding: 30px 40px 10px;
  24735. flex-wrap: wrap;
  24736. }
  24737. .group_staic {
  24738. /* width: 50%; */
  24739. margin-bottom: 20px;
  24740. display: flex;
  24741. align-items: center;
  24742. }
  24743. .group_staic span:nth-child(1) {
  24744. width: 150px;
  24745. text-align: right;
  24746. margin-right: 15px;
  24747. }
  24748. .group_staic span:nth-child(2) {
  24749. background: rgb(0 123 255);
  24750. color: #fff;
  24751. border-radius: 5px;
  24752. padding: 5px;
  24753. }
  24754. .codeFileBox {
  24755. height: 300px;
  24756. background: #fff;
  24757. display: flex;
  24758. align-items: center;
  24759. justify-content: center;
  24760. }
  24761. .codeFileBox img {
  24762. width: 200px;
  24763. margin: 0;
  24764. height: auto;
  24765. }
  24766. .codeFileBox div {
  24767. background: rgb(80, 142, 226);
  24768. color: #fff;
  24769. padding: 10px 20px;
  24770. border-radius: 25px;
  24771. cursor: pointer;
  24772. margin-left: 15px;
  24773. }
  24774. .radioBox {
  24775. display: flex;
  24776. flex-direction: column;
  24777. flex-wrap: nowrap;
  24778. align-items: flex-start;
  24779. }
  24780. .radioBox > div {
  24781. margin: 10px 0 0 10px;
  24782. }
  24783. /* .radioBox >>> .el-radio__input,
  24784. .radioBox >>> .el-checkbox__inner {
  24785. margin-left: 10px;
  24786. } */
  24787. .radioBox >>> .el-radio__label,
  24788. .radioBox >>> .el-checkbox__label {
  24789. display: flex;
  24790. align-items: center;
  24791. width: 100%;
  24792. }
  24793. .radioBox >>> .el-radio__label > span {
  24794. width: 100%;
  24795. display: -webkit-box;
  24796. overflow: hidden;
  24797. white-space: normal !important;
  24798. text-overflow: ellipsis;
  24799. word-wrap: break-word;
  24800. }
  24801. .inImg {
  24802. width: 100px;
  24803. cursor: pointer;
  24804. }
  24805. .inImg > img {
  24806. width: 100%;
  24807. height: 100%;
  24808. object-fit: cover;
  24809. }
  24810. .timuImgBox {
  24811. margin: 10px 0;
  24812. display: flex;
  24813. flex-direction: column;
  24814. flex-wrap: wrap;
  24815. align-items: flex-start;
  24816. }
  24817. .timuImg {
  24818. width: 150px;
  24819. margin: 5px 0;
  24820. cursor: pointer;
  24821. }
  24822. .timuImg > img {
  24823. width: 100%;
  24824. height: 100%;
  24825. object-fit: cover;
  24826. }
  24827. .worksTop {
  24828. display: flex;
  24829. flex-direction: row;
  24830. align-items: flex-end;
  24831. }
  24832. .worksTitle{
  24833. display: flex;
  24834. flex-direction: row;
  24835. flex-wrap: nowrap;
  24836. align-items: center;
  24837. }
  24838. .worksTitle::before,.worksTop::before{
  24839. content: '';
  24840. display: block;
  24841. width: 3px;
  24842. height: 20px;
  24843. background: #0061FF;
  24844. border-radius: 3px;
  24845. margin: 0 5px 0 0;
  24846. }
  24847. .corOpen {
  24848. margin: 0 0 0 10px;
  24849. font-size: 14px;
  24850. cursor: pointer;
  24851. color: #505050;
  24852. }
  24853. .corOpen:hover {
  24854. color: #499eef;
  24855. }
  24856. .navCorOpenBox {
  24857. display: flex;
  24858. flex-direction: row;
  24859. align-items: center;
  24860. justify-content: space-between;
  24861. height: 55px;
  24862. background: #ffffff;
  24863. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24864. border-radius: 8px 8px 0px 0px;
  24865. z-index: 9;
  24866. position: relative;
  24867. }
  24868. .navCorOpen {
  24869. padding-right: 15px;
  24870. cursor: pointer;
  24871. width: 45px;
  24872. display: flex;
  24873. }
  24874. .navCorOpen > img {
  24875. width: 100%;
  24876. height: 100%;
  24877. }
  24878. .mlImg {
  24879. width: 40px !important;
  24880. min-width: 40px;
  24881. cursor: pointer;
  24882. transform: rotate(180deg);
  24883. }
  24884. .mlImg > img {
  24885. width: 100%;
  24886. height: 100%;
  24887. }
  24888. .navLeftCss {
  24889. width: 100% !important;
  24890. left: 0 !important;
  24891. }
  24892. .isContentCss {
  24893. width: 100% !important;
  24894. }
  24895. .isAllWidth {
  24896. width: 100% !important;
  24897. }
  24898. .group_switch {
  24899. margin-right: 10px;
  24900. height: 30px;
  24901. display: flex;
  24902. align-items: center;
  24903. }
  24904. .group_switch > span {
  24905. margin-right: 5px;
  24906. }
  24907. .fileC_box {
  24908. padding-top: 15px;
  24909. }
  24910. .fileC_box > .fileC_title {
  24911. padding: 10px 5px 14px 10px;
  24912. border-top: 1px solid #cad1dc;
  24913. font-size: 14px;
  24914. font-weight: 400;
  24915. color: #cad1dc;
  24916. width: calc(100% - 20px);
  24917. margin: 0 auto;
  24918. box-sizing: border-box;
  24919. }
  24920. .pl_select_box {
  24921. height: 40px;
  24922. line-height: 40px;
  24923. width: 100%;
  24924. cursor: pointer;
  24925. padding: 0 20px;
  24926. box-sizing: border-box;
  24927. border-radius: 5px;
  24928. border: 1px solid #d6d6d6;
  24929. white-space: nowrap;
  24930. overflow: hidden;
  24931. text-overflow: ellipsis;
  24932. background: #fff;
  24933. text-align: left;
  24934. }
  24935. .newButton {
  24936. width: 102px;
  24937. height: 36px;
  24938. background: #e7ebf1;
  24939. border-radius: 4px;
  24940. color: #0e1e33;
  24941. font-weight: 400;
  24942. font-size: 14px;
  24943. border: none;
  24944. float: right;
  24945. margin-left: 10px;
  24946. }
  24947. .el-table >>> .even_row {
  24948. background-color: #f0f4fa;
  24949. }
  24950. .stageBoxCss,
  24951. .stageBoxIsCss {
  24952. display: flex;
  24953. flex-direction: row;
  24954. flex-wrap: nowrap;
  24955. align-items: center;
  24956. height: 50px;
  24957. border-bottom: 1px solid #e2f5fc;
  24958. cursor: pointer;
  24959. width: 100%;
  24960. }
  24961. .stageBoxIsCss {
  24962. background: #0061ff;
  24963. color: #fff;
  24964. border-radius: 8px;
  24965. }
  24966. .stageItemTitle {
  24967. display: flex;
  24968. flex-direction: row;
  24969. flex-wrap: nowrap;
  24970. align-items: center;
  24971. margin-left: 15px;
  24972. width: calc(100% - 50px);
  24973. }
  24974. /* .stageNav{ */
  24975. /* font-weight: bold; */
  24976. /* } */
  24977. .stageItemTitle > div:first-child {
  24978. min-width: 55px;
  24979. }
  24980. .stageItemTitle > div:last-child {
  24981. max-width: 242px;
  24982. white-space: nowrap;
  24983. overflow: hidden;
  24984. text-overflow: ellipsis;
  24985. word-break: break-word;
  24986. width: calc(100% - 55px);
  24987. }
  24988. .closeTri,
  24989. .closeTri1 {
  24990. min-width: 15px;
  24991. width: 15px;
  24992. height: 15px;
  24993. transition: all .5s;
  24994. }
  24995. .closeTri1 {
  24996. padding-left: 10px;
  24997. cursor: pointer;
  24998. }
  24999. .closeTri > img,
  25000. .closeTri1 > img {
  25001. width: 100%;
  25002. height: 100%;
  25003. /* transition: all .5s; */
  25004. }
  25005. .noToolBlue {
  25006. min-width: 10px;
  25007. width: 10px;
  25008. height: 10px;
  25009. background: #0061ff;
  25010. border-radius: 50%;
  25011. margin-left: 13px;
  25012. }
  25013. .stageChild,
  25014. .toolChild {
  25015. height: 0;
  25016. overflow: hidden;
  25017. transition: all 0.5s;
  25018. }
  25019. /* .toolChild { */
  25020. /* margin: 0 0 0 17px;
  25021. padding: 0 0 0 20px;
  25022. border-left: 1px solid #d7d7d7; */
  25023. /* } */
  25024. .toolChild > div + div{
  25025. margin-top:5px;
  25026. }
  25027. .gjCss {
  25028. display: flex;
  25029. flex-direction: row;
  25030. flex-wrap: nowrap;
  25031. align-items: center;
  25032. padding: 10px 0 10px 40px;
  25033. box-sizing: border-box;
  25034. font-size: 14px;
  25035. cursor: pointer;
  25036. border-radius:5px;
  25037. }
  25038. .toolChild > div {
  25039. position: relative;
  25040. width:100%;
  25041. }
  25042. /* .toolChild > div::before { */
  25043. /* content: "";
  25044. width: 15px;
  25045. height: 1px;
  25046. background: #cad1dc;
  25047. position: absolute;
  25048. top: 24px;
  25049. left: -20px;
  25050. display: block; */
  25051. /* } */
  25052. .isGjCss {
  25053. /* color: #0061ff; */
  25054. color:#fff;
  25055. background: rgb(55, 129, 252);
  25056. /* background-color: #e0eafb !important;
  25057. color: #0061ff !important; */
  25058. }
  25059. .navItem {
  25060. background: #ffffff;
  25061. border-radius: 4px;
  25062. width: 100%;
  25063. margin: 10px auto;
  25064. position: relative;
  25065. height: 40px;
  25066. display: flex;
  25067. flex-direction: row;
  25068. flex-wrap: nowrap;
  25069. align-items: center;
  25070. }
  25071. .navItemList {
  25072. display: flex;
  25073. flex-direction: row;
  25074. flex-wrap: nowrap;
  25075. align-items: center;
  25076. padding: 0 13px;
  25077. cursor: pointer;
  25078. width: calc(100% - 60px);
  25079. height: 100%;
  25080. }
  25081. .navItemList > div:first-child {
  25082. /* min-width: 60px; */
  25083. min-width:fit-content;
  25084. }
  25085. .navItemList > div:last-child {
  25086. width: calc(100% - 80px);
  25087. white-space: nowrap;
  25088. overflow: hidden;
  25089. text-overflow: ellipsis;
  25090. word-break: break-word;
  25091. }
  25092. /* .isItemList > div {
  25093. color: #fff !important;
  25094. } */
  25095. .tool_work_box {
  25096. width: 100%;
  25097. padding: 0 37px 0;
  25098. box-sizing: border-box;
  25099. }
  25100. .tool_box {
  25101. width: 100%;
  25102. padding: 0 0 0 20px;
  25103. }
  25104. .tool_type_box {
  25105. display: flex;
  25106. flex-direction: row;
  25107. align-items: baseline;
  25108. flex-wrap: nowrap;
  25109. justify-content: flex-start;
  25110. position: relative;
  25111. }
  25112. .toolSort {
  25113. display: flex;
  25114. flex-direction: row;
  25115. flex-wrap: wrap;
  25116. justify-content: flex-start;
  25117. align-items: flex-start;
  25118. padding: 0 0 15px 0;
  25119. }
  25120. .toolSort > div {
  25121. margin: 0 10px 0 0;
  25122. width: 135px;
  25123. box-sizing: border-box;
  25124. border: 2px solid transparent;
  25125. }
  25126. .tools {
  25127. width: 100%;
  25128. display: flex;
  25129. flex-direction: column;
  25130. flex-wrap: nowrap;
  25131. align-items: flex-start;
  25132. }
  25133. .whiteBIcon {
  25134. width: fit-content;
  25135. cursor: pointer;
  25136. display: flex;
  25137. flex-direction: column;
  25138. flex-wrap: nowrap;
  25139. align-items: center;
  25140. font-size: 14px;
  25141. }
  25142. .tool:hover {
  25143. border: 2px solid #a5c7ff;
  25144. border-radius: 5px;
  25145. }
  25146. .whiteBIcon > img {
  25147. width: 65px;
  25148. height: 100%;
  25149. }
  25150. .whiteBIcon > img {
  25151. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25152. border-radius: 15px;
  25153. }
  25154. .check {
  25155. /* width: 20px;
  25156. height: 20px; */
  25157. cursor: pointer;
  25158. margin: 10px 0;
  25159. position: absolute;
  25160. right: 2px;
  25161. top: -5px;
  25162. }
  25163. .noChoose,
  25164. .isChoose {
  25165. width: 15px;
  25166. height: 15px;
  25167. border-radius: 50%;
  25168. border: 1px solid #adadad;
  25169. }
  25170. .isChoose {
  25171. border: 4px solid #0363ff !important;
  25172. width: 10px;
  25173. height: 10px;
  25174. }
  25175. .isToolChoose {
  25176. border: 2px solid #5394ff !important;
  25177. border-radius: 5px;
  25178. box-shadow: 0 0 6px 0px #5394ff;
  25179. }
  25180. .checkDiv {
  25181. display: flex;
  25182. align-items: center;
  25183. }
  25184. .checkDiv span {
  25185. margin-left: 5px;
  25186. color: #858585;
  25187. }
  25188. .check img {
  25189. width: 20px;
  25190. height: 20px;
  25191. }
  25192. .lockTaskIcon {
  25193. width: 20px;
  25194. height: 20px;
  25195. position: absolute;
  25196. right: 10px;
  25197. top: 5px;
  25198. }
  25199. .lockTaskIcon > img {
  25200. width: 100%;
  25201. height: 100%;
  25202. }
  25203. .pick_box {
  25204. display: flex;
  25205. align-items: flex-start;
  25206. flex-wrap: wrap;
  25207. }
  25208. .selectBox {
  25209. width: 110px;
  25210. margin-left: 10px;
  25211. margin: 0 10px 0 auto;
  25212. }
  25213. .selectBox >>> .el-input__inner {
  25214. height: 30px;
  25215. line-height: 30px;
  25216. }
  25217. .selectBox >>> .el-input__icon {
  25218. line-height: 30px;
  25219. }
  25220. .sentenceTitle {
  25221. display: flex;
  25222. flex-direction: row;
  25223. flex-wrap: nowrap;
  25224. align-items: center;
  25225. }
  25226. .sentenceTitle::before {
  25227. content: attr(index);
  25228. background: #3681fc;
  25229. border-radius: 50%;
  25230. color: #fff;
  25231. width: 25px;
  25232. height: 25px;
  25233. min-width: 25px;
  25234. min-height: 25px;
  25235. text-align: center;
  25236. line-height: 25px;
  25237. margin-right: 5px;
  25238. }
  25239. .hfBox {
  25240. padding: 10px;
  25241. box-sizing: border-box;
  25242. }
  25243. .whoReplyWho {
  25244. display: flex;
  25245. flex-direction: row;
  25246. flex-wrap: nowrap;
  25247. align-items: baseline;
  25248. justify-content: flex-start;
  25249. }
  25250. .hfBottom {
  25251. display: flex;
  25252. flex-direction: row;
  25253. flex-wrap: nowrap;
  25254. align-items: center;
  25255. justify-content: space-between;
  25256. font-size: 14px;
  25257. }
  25258. .deleteHfItem {
  25259. cursor: pointer;
  25260. width: 20px;
  25261. height: 20px;
  25262. }
  25263. .deleteHfItem > img {
  25264. width: 100%;
  25265. height: 100%;
  25266. }
  25267. .whoReplyWho > .hfImg {
  25268. width: 12px;
  25269. height: 12px;
  25270. margin: 0 5px;
  25271. }
  25272. .whoReplyWho > .hfImg > img {
  25273. width: 100%;
  25274. height: 100%;
  25275. }
  25276. .hfContent {
  25277. padding-top: 10px;
  25278. box-sizing: border-box;
  25279. display: -webkit-box;
  25280. overflow: hidden;
  25281. white-space: normal !important;
  25282. text-overflow: ellipsis;
  25283. word-wrap: break-word;
  25284. -webkit-box-orient: vertical;
  25285. }
  25286. .hfTime {
  25287. text-align: left;
  25288. box-sizing: border-box;
  25289. padding: 10px 0 10px 0px;
  25290. color: #bfbfbf;
  25291. font-size: 14px;
  25292. }
  25293. .btnAllNT {
  25294. position: fixed;
  25295. bottom: 100px;
  25296. right: 40px;
  25297. z-index: 999;
  25298. display: flex;
  25299. flex-direction: row;
  25300. }
  25301. .btnAllNT > img {
  25302. cursor: pointer;
  25303. width: 80px;
  25304. }
  25305. .toolMask {
  25306. position: fixed;
  25307. width: 100%;
  25308. height: 100%;
  25309. background: #3f3c3c;
  25310. opacity: 0.5;
  25311. top: 0;
  25312. left: 0;
  25313. z-index: 999;
  25314. }
  25315. .addToolCss {
  25316. position: fixed;
  25317. z-index: 999;
  25318. background: #fff;
  25319. right: 5%;
  25320. bottom: 18%;
  25321. min-width: 1035px;
  25322. min-height: 300px;
  25323. border-radius: 10px;
  25324. box-shadow: 0 0 8px 1px #b2b2b2;
  25325. }
  25326. .toolTop {
  25327. display: flex;
  25328. flex-direction: row;
  25329. flex-wrap: nowrap;
  25330. justify-content: space-between;
  25331. align-items: center;
  25332. padding: 20px;
  25333. }
  25334. .toolTop > div:nth-child(2) {
  25335. width: 15px;
  25336. height: 15px;
  25337. padding-right: 10px;
  25338. cursor: pointer;
  25339. }
  25340. .toolTop > div:nth-child(2) > img {
  25341. width: 100%;
  25342. height: 100%;
  25343. }
  25344. .fullStyle>>>.el-dialog__body {
  25345. height: calc(100% - 125px) !important;
  25346. box-sizing: border-box;
  25347. padding: 30px 0 !important;
  25348. background: #fff !important;
  25349. }
  25350. .fullStyle>>>.el-dialog {
  25351. width: 100% !important;
  25352. max-width: 100% !important;
  25353. height: 100% !important;
  25354. margin: 0 !important;
  25355. }
  25356. .fullStyle {
  25357. width: 100% !important;
  25358. max-width: 100% !important;
  25359. height: 100% !important;
  25360. margin: 0 auto !important;
  25361. }
  25362. .fullStyle>>>.el-dialog__footer{
  25363. background: #fff !important;
  25364. }
  25365. .engUpBox {
  25366. width: 100%;
  25367. height: 100%;
  25368. }
  25369. .engTitle,
  25370. .engText {
  25371. display: flex;
  25372. flex-direction: row;
  25373. flex-wrap: nowrap;
  25374. align-items: flex-start;
  25375. padding: 0 20px 20px 20px;
  25376. box-sizing: border-box;
  25377. }
  25378. .engTitle > .div:first-child,
  25379. .engText > div:first-child {
  25380. min-width: 75px;
  25381. }
  25382. .correctBox{
  25383. width: 100%;
  25384. display: flex;
  25385. flex-direction: row;
  25386. flex-wrap: nowrap;
  25387. align-items: flex-start;
  25388. }
  25389. .oldBox{
  25390. width: 50%;
  25391. height: 100%;
  25392. display: flex;
  25393. flex-direction: column;
  25394. flex-wrap: nowrap;
  25395. align-items: center;
  25396. border-top: 1px solid #d9d9d9;
  25397. border-left: 1px solid #d9d9d9;
  25398. border-right: 1px solid #d9d9d9;
  25399. }
  25400. .oldBox>div:first-child{
  25401. width: 100%;
  25402. text-align: center;
  25403. background: #d9d9d9;
  25404. height: 35px;
  25405. line-height: 35px;
  25406. font-weight: bold;
  25407. }
  25408. .oldText{
  25409. width: 100%;
  25410. height: calc(100% - 35px);
  25411. overflow: auto;
  25412. margin: 10px 0;
  25413. display: flex;
  25414. flex-direction: column;
  25415. flex-wrap: nowrap;
  25416. align-content: center;
  25417. align-items: center;
  25418. }
  25419. .detailBox{
  25420. width: 50%;
  25421. padding: 10px;
  25422. background: #f6f6f6;
  25423. border-radius: 5px;
  25424. }
  25425. .oldDetail,.oldDetail1{
  25426. padding-bottom: 30px;
  25427. }
  25428. .oldImg{
  25429. width:30px;
  25430. height: 30px;
  25431. }
  25432. .oldImg>img{
  25433. width: 100%;
  25434. height: 100%;
  25435. }
  25436. .allName{
  25437. min-width: 200px;
  25438. white-space: nowrap;
  25439. overflow: hidden;
  25440. text-overflow: ellipsis;
  25441. word-break: break-word;
  25442. cursor: pointer;
  25443. text-align: center;
  25444. border: 1px solid #bcc2cc;
  25445. box-sizing: border-box;
  25446. }
  25447. .engUpTop{
  25448. max-height: 300px;
  25449. overflow: auto;
  25450. }
  25451. .isUpdateToolDetailClass{
  25452. padding: 0 !important;
  25453. }
  25454. .isUpdateToolDetailClass textarea{
  25455. padding:12px;
  25456. font-size: 16px;
  25457. min-height:100%;
  25458. width: 100%;
  25459. box-sizing:border-box;
  25460. outline: none;
  25461. border:none;
  25462. line-height: 30px;
  25463. resize: none;
  25464. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25465. color: #838383;
  25466. }
  25467. .show_taskD {
  25468. min-width: fit-content;
  25469. margin-left: 10px;
  25470. display: flex;
  25471. align-items: center;
  25472. font-size: 14px;
  25473. cursor: pointer;
  25474. color: #717c8d;
  25475. }
  25476. .show_taskD > img {
  25477. width: 15px;
  25478. margin-right: 5px;
  25479. transition: 0.2s all;
  25480. transform: rotate(-90deg);
  25481. }
  25482. .show_taskD.show > img {
  25483. transform: rotate(0deg);
  25484. }
  25485. .correctCss{
  25486. position: absolute;
  25487. bottom: -70px;
  25488. background: #409eff;
  25489. color: #fff;
  25490. }
  25491. .dialog_diyCopy >>> .el-dialog__header {
  25492. display: none !important;
  25493. }
  25494. .dialog_diyCopy >>> .el-dialog__body {
  25495. padding: 0 !important;
  25496. height: 100% !important;
  25497. }
  25498. .confirmOpenDigCss > div{
  25499. font-size: 14px;
  25500. color: rgba(0, 0, 0, 0.6);
  25501. }
  25502. .confirmOpenDigCss >>> .el-dialog{
  25503. border-radius: 6px;
  25504. }
  25505. .confirmOpenDigCss >>> .el-dialog__body{
  25506. padding: 25px !important;
  25507. }
  25508. .confirmOpenDigCss > span{
  25509. font-size: 16px;
  25510. font-weight: 600;
  25511. color: rgba(0, 0, 0, 0.8);
  25512. }
  25513. div::-webkit-scrollbar {
  25514. width: 10px;
  25515. height: 6px;
  25516. }
  25517. .Ovh{
  25518. margin: 5px 0;
  25519. width: 4em;
  25520. -webkit-line-clamp: 2;
  25521. display: -webkit-box;
  25522. -webkit-box-orient: vertical;
  25523. overflow: hidden;
  25524. text-overflow: ellipsis;
  25525. }
  25526. .pb_content >>> .katex {
  25527. font-size: 16px;
  25528. width: 100%;
  25529. white-space: normal;
  25530. }
  25531. .pb_content >>> .katex .base{
  25532. display: inline !important;
  25533. display: contents !important;
  25534. }
  25535. .pb_content >>> .katex .base .cjk_fallback{
  25536. white-space: normal !important;
  25537. display: inline !important;
  25538. }
  25539. </style>