studyStudent.vue 884 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283
  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. let _this = this;
  17579. if (_this.timer) {
  17580. clearInterval(_this.timer);
  17581. _this.timer = null;
  17582. }
  17583. if (_this.tcid) {
  17584. _this.getCourseGroup(gindex);
  17585. } else {
  17586. _this.selectSWorks(gindex);
  17587. }
  17588. _this.selectStudent();
  17589. _this.selectSLook();
  17590. _this.getPick();
  17591. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17592. // _this.setCTask();
  17593. // }
  17594. if (_this.dialogVisibleGroup) {
  17595. _this.groupJson =
  17596. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17597. _this.taskCount
  17598. ].toolChoose[_this.toolindex].groupJson;
  17599. }
  17600. _this.$nextTick(() => {
  17601. setTimeout(() => {
  17602. _this.checkEva();
  17603. }, 1000);
  17604. });
  17605. _this.timer = setInterval(function () {
  17606. // _this.getCourseDetail(2);
  17607. if (_this.tcid) {
  17608. _this.getCourseGroup();
  17609. } else {
  17610. _this.selectSWorks();
  17611. }
  17612. _this.selectStudent();
  17613. _this.selectSLook();
  17614. _this.getPick();
  17615. // _this.getSplitScreenData();
  17616. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17617. // _this.setCTask();
  17618. // }
  17619. if (_this.dialogVisibleGroup) {
  17620. _this.groupJson =
  17621. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17622. _this.taskCount
  17623. ].toolChoose[_this.toolindex].groupJson;
  17624. }
  17625. if (_this.tType == 4 || _this.ispzType == 4) {
  17626. _this.selectPz();
  17627. }
  17628. }, 5000);
  17629. if (_this.timer2 == null) {
  17630. _this.timer2 = setInterval(()=> {
  17631. _this.getSplitScreenData();//获取分屏数据
  17632. }, 5000);
  17633. }
  17634. _this.$nextTick(function () {
  17635. setTimeout(() => {
  17636. // var a =
  17637. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17638. // document.getElementsByClassName("vedioList")[0].style.height =
  17639. // a + "px";
  17640. // document.getElementsByClassName("navBox")[0].style.height =
  17641. // a - 40 + "px";
  17642. // if (_this.vedio[_this.taskCount].length > 0) {
  17643. // _this.vedioTime = [];
  17644. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17645. // _this.vedioTime[i] = document.getElementsByClassName(
  17646. // "vjs-duration-display"
  17647. // )[i].textContent;
  17648. // }
  17649. // }
  17650. }, 1000);
  17651. });
  17652. })
  17653. .catch((err) => {
  17654. loading.close();
  17655. console.error(err);
  17656. });
  17657. },
  17658. getCourseGroup(gindex) {
  17659. let params = {
  17660. cid: this.id,
  17661. classid: this.tcid ? this.tcid : "1",
  17662. };
  17663. this.ajax
  17664. .get(this.$store.state.api + "getCourseGroup", params)
  17665. .then((res) => {
  17666. if (res.data && res.data[0].length) {
  17667. if (!this.isGroup) {
  17668. let courseGroup = JSON.parse(res.data[0][0].group);
  17669. courseGroup.group = courseGroup.group.filter((el) => {
  17670. el.works = [];
  17671. return el;
  17672. });
  17673. if (courseGroup.isopen == 2) {
  17674. this.isGroup = false;
  17675. this.selectSWorks(gindex);
  17676. return;
  17677. }
  17678. this.courseGroup = courseGroup;
  17679. let groupPerson = res.data[1];
  17680. let group = JSON.parse(res.data[0][0].group).group;
  17681. let courseGroupStudent = {};
  17682. let courseGroupStudentUid = {};
  17683. for (var i = 0; i < group.length; i++) {
  17684. courseGroupStudent[group[i].id] = [];
  17685. courseGroupStudentUid[group[i].id] = [];
  17686. for (var j = 0; j < groupPerson.length; j++) {
  17687. if (groupPerson[j].groupCid == group[i].id) {
  17688. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17689. courseGroupStudentUid[group[i].id].push(
  17690. groupPerson[j].userid
  17691. );
  17692. }
  17693. }
  17694. }
  17695. this.courseGroupStudent = courseGroupStudent;
  17696. this.courseGroupStudentUid = courseGroupStudentUid;
  17697. }
  17698. if (this.courseGroup.isopen == 2) {
  17699. this.isGroup = false;
  17700. } else {
  17701. this.isGroup = true;
  17702. }
  17703. this.selectSWorks(gindex);
  17704. } else {
  17705. this.selectSWorks(gindex);
  17706. this.isGroup = false;
  17707. }
  17708. })
  17709. .catch((err) => {
  17710. // this.$message.error("网络不佳");
  17711. console.error(err);
  17712. });
  17713. },
  17714. setOperationTime() {
  17715. let _this = this;
  17716. if (_this.opertimer) {
  17717. clearInterval(_this.opertimer);
  17718. _this.opertimer = null;
  17719. }
  17720. _this.opertimer = setInterval(() => {
  17721. _this.setoTime("600");
  17722. }, 600000);
  17723. },
  17724. setoTime(time) {
  17725. let params = [
  17726. {
  17727. uid: this.userid,
  17728. cid: this.id,
  17729. type: "2",
  17730. time: time,
  17731. },
  17732. ];
  17733. this.ajax
  17734. .post(this.$store.state.api + "addOperationTimeT2", params)
  17735. .then((res) => {})
  17736. .catch((err) => {
  17737. console.error(err);
  17738. });
  17739. },
  17740. addPz(type, content) {
  17741. if (type == "1" && this.pzConText == "") {
  17742. this.$message.error("评论不能为空!");
  17743. return;
  17744. }
  17745. let params = [
  17746. {
  17747. cid: this.id,
  17748. uid: this.userid,
  17749. s: this.courseType,
  17750. t: this.taskCount,
  17751. c: type == "1" ? this.pzConText : content,
  17752. type: type,
  17753. },
  17754. ];
  17755. this.ajax
  17756. .post(this.$store.state.api + "addPz2", params)
  17757. .then((res) => {
  17758. this.$message({
  17759. message: "添加成功",
  17760. type: "success",
  17761. });
  17762. this.pzConText = "";
  17763. this.addPzDialog = false;
  17764. this.selectPz();
  17765. if(this.tType!=2){
  17766. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17767. }
  17768. })
  17769. .catch((err) => {
  17770. this.$message.error("添加失败");
  17771. console.error(err);
  17772. });
  17773. },
  17774. setReplyIndex(id, i) {
  17775. this.replyIndex = i;
  17776. this.replyPid = id;
  17777. this.replyDialogVisible = true;
  17778. },
  17779. addHf() {
  17780. if (this.reply == "") {
  17781. this.$message.error("回复不能为空!");
  17782. return;
  17783. }
  17784. let params = [
  17785. {
  17786. cid: this.id,
  17787. uid: this.userid,
  17788. s: this.courseType,
  17789. t: this.taskCount,
  17790. type: "1",
  17791. ct: 2,
  17792. pid: this.replyPid,
  17793. c: this.reply,
  17794. },
  17795. ];
  17796. this.ajax
  17797. .post(this.$store.state.api + "addHf", params)
  17798. .then((res) => {
  17799. this.reply = "";
  17800. this.$message({
  17801. message: "回复成功",
  17802. type: "success",
  17803. });
  17804. this.replyDialogVisible = false;
  17805. this.selectPz();
  17806. })
  17807. .catch((err) => {
  17808. this.$message.error("回复失败");
  17809. console.error(err);
  17810. });
  17811. },
  17812. deletePz(id) {
  17813. this.$confirm("确定删除此评论吗?", "提示", {
  17814. confirmButtonText: "确定",
  17815. cancelButtonText: "取消",
  17816. type: "warning",
  17817. })
  17818. .then(() => {
  17819. let params = [
  17820. {
  17821. id: id,
  17822. },
  17823. ];
  17824. this.ajax
  17825. .post(this.$store.state.api + "deletePz", params)
  17826. .then((res) => {
  17827. this.$message({
  17828. message: "删除成功",
  17829. type: "success",
  17830. });
  17831. this.selectPz();
  17832. })
  17833. .catch((err) => {
  17834. this.$message.error("网络异常");
  17835. console.error(err);
  17836. });
  17837. })
  17838. .catch(() => {});
  17839. },
  17840. deleteReply(id) {
  17841. this.$confirm("确定删除此回复吗?", "提示", {
  17842. confirmButtonText: "确定",
  17843. cancelButtonText: "取消",
  17844. type: "warning",
  17845. })
  17846. .then(() => {
  17847. let params = [
  17848. {
  17849. id: id,
  17850. },
  17851. ];
  17852. this.ajax
  17853. .post(this.$store.state.api + "deleteReply", params)
  17854. .then((res) => {
  17855. this.$message({
  17856. message: "删除成功",
  17857. type: "success",
  17858. });
  17859. this.selectPz();
  17860. })
  17861. .catch((err) => {
  17862. this.$message.error("网络异常");
  17863. console.error(err);
  17864. });
  17865. })
  17866. .catch(() => {});
  17867. },
  17868. setPz() {
  17869. if (this.ispzType == 4) {
  17870. this.ispzType = 0;
  17871. this.pzDialog = false;
  17872. return;
  17873. }
  17874. this.ispzType = 4;
  17875. this.pzDialog = true;
  17876. this.selectPz();
  17877. },
  17878. selectPz() {
  17879. let params = {
  17880. cid: this.id,
  17881. s: this.courseType,
  17882. t: this.taskCount,
  17883. type: this.pzStype,
  17884. uid: this.userid,
  17885. };
  17886. this.ajax
  17887. .get(this.$store.state.api + "selectPzListType", params)
  17888. .then((res) => {
  17889. this.pzList = res.data[0];
  17890. var a = res.data[1];
  17891. for (var i = 0; i < a.length; i++) {
  17892. for (var j = 0; j < this.pzList.length; j++) {
  17893. if (!this.pzList[j].hfList) {
  17894. this.pzList[j].hfList = [];
  17895. }
  17896. if (a[i].pid == this.pzList[j].id) {
  17897. this.pzList[j].hfList.push(a[i]);
  17898. }
  17899. }
  17900. }
  17901. })
  17902. .catch((err) => {
  17903. console.error(err);
  17904. });
  17905. },
  17906. // selectHf() {
  17907. // let params = {
  17908. // cid: this.id,
  17909. // s: this.courseType,
  17910. // t: this.taskCount,
  17911. // };
  17912. // this.ajax
  17913. // .get(this.$store.state.api + "selectHfList", params)
  17914. // .then((res) => {
  17915. // var a = res.data[0];
  17916. // for (var i = 0; i < a.length; i++) {
  17917. // for (var j = 0; j < this.pzList.length; j++) {
  17918. // if (!this.pzList[i].hfList) {
  17919. // this.pzList[i].hfList = [];
  17920. // }
  17921. // if (a[i].pid == this.pzList[j].id) {
  17922. // this.pzList[i].hfList.push(a[i]);
  17923. // }
  17924. // }
  17925. // }
  17926. // })
  17927. // .catch((err) => {
  17928. // console.error(err);
  17929. // });
  17930. // },
  17931. updateSLook() {
  17932. let params = {
  17933. sopen: this.sIsOpen == false ? 1 : 2,
  17934. cid: this.id,
  17935. };
  17936. this.ajax
  17937. .get(this.$store.state.api + "updateCourseSLook", params)
  17938. .then((res) => {
  17939. if (this.sIsOpen == true) {
  17940. this.$message({
  17941. message: "权限设置成功",
  17942. type: "success",
  17943. });
  17944. } else {
  17945. this.$message({
  17946. message: "权限关闭成功",
  17947. type: "success",
  17948. });
  17949. }
  17950. })
  17951. .catch((err) => {
  17952. console.error(err);
  17953. });
  17954. },
  17955. updateIsStulook(){
  17956. let params = [
  17957. {
  17958. sopen: this.IsStulook == false ? 2 : 1,
  17959. cid: this.id
  17960. }
  17961. ];
  17962. this.ajax
  17963. .post(this.$store.state.api + "updateCourseStulook", params)
  17964. .then(res => {
  17965. if (this.IsStulook == true) {
  17966. this.$message({
  17967. message: "学生查看内容资料权限已开启",
  17968. type: "success"
  17969. });
  17970. } else {
  17971. this.$message({
  17972. message: "关闭学生查看内容资料权限",
  17973. type: "success"
  17974. });
  17975. }
  17976. // this.setCTask();
  17977. })
  17978. .catch(err => {
  17979. console.error(err);
  17980. });
  17981. },
  17982. updateFollow() {
  17983. let params = [
  17984. {
  17985. sopen: this.IsFollow == false ? 1 : 2,
  17986. cid: this.id,
  17987. },
  17988. ];
  17989. this.ajax
  17990. .post(this.$store.state.api + "updateCourseFollow", params)
  17991. .then((res) => {
  17992. if (this.IsFollow == true) {
  17993. this.$message({
  17994. message: "跟随模式已开启",
  17995. type: "success",
  17996. });
  17997. } else {
  17998. this.$message({
  17999. message: "跟随模式已关闭",
  18000. type: "success",
  18001. });
  18002. }
  18003. this.setCTask();
  18004. })
  18005. .catch((err) => {
  18006. console.error(err);
  18007. });
  18008. },
  18009. setCTask() {
  18010. let params = [
  18011. {
  18012. sopen: this.courseType + "-" + this.taskCount,
  18013. cid: this.id,
  18014. },
  18015. ];
  18016. this.ajax
  18017. .post(this.$store.state.api + "updateCourseFollowC", params)
  18018. .then((res) => {})
  18019. .catch((err) => {
  18020. console.error(err);
  18021. });
  18022. },
  18023. updateLookOpen() {
  18024. let params = [
  18025. {
  18026. sopen: this.IsLookOpen == false ? 1 : 2,
  18027. cid: this.id,
  18028. },
  18029. ];
  18030. this.ajax
  18031. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18032. .then((res) => {
  18033. if (this.IsLookOpen == true) {
  18034. // if (this.courseType != 0 && this.taskCount != 0) {
  18035. // this.openTask(0, 0, "0-0");
  18036. // }
  18037. this.$message({
  18038. message: "权限设置成功",
  18039. type: "success",
  18040. });
  18041. } else {
  18042. this.$message({
  18043. message: "权限关闭成功",
  18044. type: "success",
  18045. });
  18046. }
  18047. this.getCourseState(2);
  18048. })
  18049. .catch((err) => {
  18050. console.error(err);
  18051. });
  18052. },
  18053. selectSLook() {
  18054. let params = {
  18055. cid: this.id,
  18056. };
  18057. this.ajax
  18058. .get(this.$store.state.api + "selectCourseSLook", params)
  18059. .then((res) => {
  18060. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18061. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18062. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18063. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18064. if (!this.IsLookOpen) {
  18065. this.setNavList();
  18066. }else {
  18067. this.getCourseState(1);
  18068. }
  18069. if ((this.IsFollow && this.tType == 2)) {
  18070. this.setContent2(false);
  18071. let _followC = res.data[0][0].followC.split("-");
  18072. if (
  18073. this.courseType != _followC[0] ||
  18074. this.taskCount != _followC[1]
  18075. ) {
  18076. this.navList[this.courseType].isOpen = false;
  18077. this.courseType = _followC[0];
  18078. this.navList[this.courseType].isOpen = true;
  18079. this.taskCount = parseInt(_followC[1]);
  18080. this.navId = res.data[0][0].followC;
  18081. document.scrollingElement.scrollTop = 0;
  18082. this.getCourseDetail(2);
  18083. }
  18084. }
  18085. })
  18086. .catch((err) => {
  18087. console.error(err);
  18088. });
  18089. },
  18090. setNavList() {
  18091. if (this.navList.length == 0) {
  18092. this.navList = [];
  18093. var copyList = [];
  18094. for (var l = 0; l < this.chapInfoList.length; l++) {
  18095. var q = this.chapInfoList[l].dyName;
  18096. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18097. var e;
  18098. copyList.push({
  18099. dyName: q,
  18100. isOpen: l === 0 ? true : false,
  18101. task: [],
  18102. });
  18103. for (var r = 0; r < w.length; r++) {
  18104. e = w[r].task;
  18105. if (this.chapInfoList[l].easy == 1) {
  18106. copyList[l].task.push({
  18107. taskName: q,
  18108. id: l + "-" + r,
  18109. isLook: w[r].isLook,
  18110. isOpen: r === 0 ? true : false,
  18111. tool: [],
  18112. });
  18113. } else {
  18114. copyList[l].task.push({
  18115. taskName: e,
  18116. id: l + "-" + r,
  18117. isLook: w[r].isLook,
  18118. isOpen: r === 0 ? true : false,
  18119. tool: [],
  18120. });
  18121. }
  18122. var t = w[r].toolChoose;
  18123. for (var k = 0; k < t.length; k++) {
  18124. var tool = t[k].tool[0];
  18125. copyList[l].task[r].tool.push({
  18126. tool: tool,
  18127. isTool: false,
  18128. });
  18129. }
  18130. // this.navId = this.navId ? this.navId : l + "-" + r;
  18131. // this.navId = l + "-" + r;
  18132. }
  18133. }
  18134. this.navList = copyList;
  18135. this.navList[0].isOpen = false;
  18136. this.navList[this.courseType].isOpen = true;
  18137. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18138. } else {
  18139. this.setNavList2();
  18140. }
  18141. },
  18142. setNavList2() {
  18143. for (var l = 0; l < this.chapInfoList.length; l++) {
  18144. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18145. for (var r = 0; r < w.length; r++) {
  18146. this.navList[l].task[r].isLook = w[r].isLook;
  18147. }
  18148. }
  18149. if (
  18150. this.IsLookOpen &&
  18151. !this.navList[this.courseType].task[this.taskCount].isLook
  18152. ) {
  18153. this.openTask(0, 0, "0-0");
  18154. }
  18155. this.$forceUpdate();
  18156. },
  18157. getCourseState(type) {
  18158. let params = {
  18159. cid: this.id,
  18160. };
  18161. this.ajax
  18162. .get(this.$store.state.api + "getCourseState", params)
  18163. .then((res) => {
  18164. // if (res.data[0].length > 0) {
  18165. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18166. // }
  18167. if (res.data[0].length > 0 && type == 1) {
  18168. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18169. this.setNavList();
  18170. this.$forceUpdate();
  18171. } else if (res.data[0].length > 0 && type == 2) {
  18172. this.addCourseState(2);
  18173. } else {
  18174. // this.addCourseState(1);
  18175. }
  18176. })
  18177. .catch((err) => {
  18178. console.error(err);
  18179. });
  18180. },
  18181. addCourseState(type,val = '') {
  18182. let _state = val ? val : this.chapInfoList;
  18183. // this.courseType this.taskCount
  18184. if (type == 1 || type == 2) {
  18185. for (var i = 0; i < _state.length; i++) {
  18186. let el = _state[i].chapterInfo[0].taskJson;
  18187. for (var j = 0; j < el.length; j++) {
  18188. // if (i == 0 && j == 0) {
  18189. // el[j].isLook = true;
  18190. // } else {
  18191. // el[j].isLook = false;
  18192. // }
  18193. if (
  18194. this.courseType > i ||
  18195. (this.courseType == i && this.taskCount + 1 > j)
  18196. ) {
  18197. el[j].isLook = true;
  18198. } else {
  18199. el[j].isLook = false;
  18200. }
  18201. }
  18202. }
  18203. }
  18204. let params = [
  18205. {
  18206. cid: this.id,
  18207. state: JSON.stringify(_state),
  18208. },
  18209. ];
  18210. this.ajax
  18211. .post(
  18212. this.$store.state.api +
  18213. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18214. params
  18215. )
  18216. .then((res) => {
  18217. if (this.IsLookOpen) {
  18218. this.setNavList();
  18219. }
  18220. if (type == 3 && type == 2) {
  18221. this.getCourseState(1);
  18222. }
  18223. })
  18224. .catch((err) => {
  18225. console.error(err);
  18226. });
  18227. },
  18228. getHomeWork() {
  18229. let params = {
  18230. cid: this.id,
  18231. stage: this.courseType,
  18232. task: this.taskCount,
  18233. uid: this.userid,
  18234. };
  18235. this.ajax
  18236. .get(this.$store.state.api + "selectWork", params)
  18237. .then((res) => {
  18238. if (res.data[0].length > 0) {
  18239. this.studyJuri = JSON.parse(res.data[0][0].content);
  18240. this.isNoHomeWork = true;
  18241. }
  18242. })
  18243. .catch((err) => {
  18244. console.error(err);
  18245. });
  18246. },
  18247. isAssetTypeAnImage(ext) {
  18248. return (
  18249. [
  18250. "png",
  18251. "jpg",
  18252. "jpeg",
  18253. "bmp",
  18254. "gif",
  18255. "webp",
  18256. "psd",
  18257. "svg",
  18258. "tiff",
  18259. ].indexOf(ext) !== -1
  18260. );
  18261. },
  18262. switchVideo(media) {
  18263. this.playerO = {};
  18264. this.playerOptions.poster = "";
  18265. this.playerOptions.sources[0].src = media;
  18266. this.playerO = this.playerOptions;
  18267. },
  18268. onPlayerPlay() {},
  18269. onPlayerTimeupdate(player) {
  18270. let gklog = player.cache_.currentTime; //当前播放的秒数
  18271. let a = player.cache_.duration; //视频的总时长
  18272. let gklog2 = parseInt(gklog);
  18273. // if(gklog2 == '3'){
  18274. // player.pause()
  18275. // setTimeout(()=>{
  18276. // player.currentTime(gklog2+1)
  18277. // player.play()
  18278. // },1000)
  18279. // }
  18280. console.log(" onPlayerTimeupdate!", gklog);
  18281. console.log(" onPlayerTimeupdate!", gklog2);
  18282. },
  18283. lookVedio(u, i) {
  18284. this.isClickNav = "";
  18285. // this.playerOptions.sources[0].src = u;
  18286. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18287. d.sources[0].src = u;
  18288. this.playerO[this.taskCount] = d;
  18289. this.showType = 0;
  18290. // this.isClickNav = "video" + i;
  18291. this.isClickNav = i;
  18292. this.$forceUpdate();
  18293. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18294. },
  18295. lookText(i, t) {
  18296. this.isClickNav = "";
  18297. // this.text = this.textList[i][t];
  18298. this.text = this.vChapterData[i][t];
  18299. // this.dialogVisible1 = true;
  18300. this.showType = 1;
  18301. // this.isClickNav = "text" + t;
  18302. this.isClickNav = t;
  18303. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18304. },
  18305. lookTools(i, t) {
  18306. this.chapTools = this.chapToolList[i][t];
  18307. this.dialogVisible2 = true;
  18308. },
  18309. async openFile(f,w) {
  18310. this.pptImgUrl = "";
  18311. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18312. if (
  18313. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18314. -1
  18315. ) {
  18316. let _uuurl = await this.checkLink(f);
  18317. this.pptImgUrl =
  18318. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18319. this.showPDF = false;
  18320. this.dialogVisible3 = true;
  18321. } else if (
  18322. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18323. ) {
  18324. this.pptImgUrl = f;
  18325. this.showPDF = true;
  18326. this.dialogVisible3 = true;
  18327. }
  18328. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18329. },
  18330. openTable(f) {
  18331. this.tableJson = JSON.parse(f.works);
  18332. this.dialogVisibleTable2 = true;
  18333. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18334. },
  18335. openWord(f) {
  18336. this.tableJson = JSON.parse(f.works);
  18337. this.dialogVisibleTable3 = true;
  18338. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18339. },
  18340. doUrl(url, i) {
  18341. this.isClickNav = "";
  18342. this.pptImgUrl1 = "";
  18343. this.showType = 2;
  18344. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18345. url = "https://" + url;
  18346. }
  18347. this.pptImgUrl1 = "";
  18348. this.diffKey = new Date().getTime();
  18349. setTimeout(() => {
  18350. this.pptImgUrl1 = url;
  18351. }, 500);
  18352. // this.isClickNav = "line" + i;
  18353. this.isClickNav = i;
  18354. this.$forceUpdate();
  18355. },
  18356. checkPhoto(f, i) {
  18357. this.showType = 4;
  18358. this.pptImgUrl1 = f.url;
  18359. this.isClickNav = i;
  18360. this.$forceUpdate();
  18361. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18362. },
  18363. checkHtml(f, i){
  18364. this.showType = 16;
  18365. this.pptImgUrl1 = f.url;
  18366. this.isClickNav = i;
  18367. this.$forceUpdate();
  18368. },
  18369. async downFile(f, i) {
  18370. this.isClickNav = "";
  18371. this.pptImgUrl1 = "";
  18372. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18373. if (
  18374. a.indexOf(
  18375. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18376. ) != -1
  18377. ) {
  18378. let _uuurl = await this.checkLink(f.url);
  18379. this.pptImgUrl1 =
  18380. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18381. // this.dialogVisible3 = true;
  18382. this.showType = 2;
  18383. } else if (
  18384. this.isAssetTypeAnImage(
  18385. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18386. )
  18387. ) {
  18388. this.showType = 4;
  18389. this.pptImgUrl1 = f.url;
  18390. } else if (
  18391. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18392. "PDF"
  18393. ) {
  18394. this.pptImgUrl1 = f.url;
  18395. // this.dialogVisible3 = true;
  18396. this.showType = 3;
  18397. } else {
  18398. window.open(this.file[i].url);
  18399. }
  18400. // this.isClickNav = "word" + i;
  18401. this.isClickNav = i;
  18402. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18403. },
  18404. downFileList(i) {
  18405. window.open(this.noImgList[i].url);
  18406. },
  18407. openAddWork() {
  18408. this.dialogVisible = true;
  18409. },
  18410. addBzWorks() {
  18411. let params = [
  18412. {
  18413. uid: this.userid,
  18414. cid: this.id,
  18415. stage: this.courseType,
  18416. task: this.taskCount,
  18417. tool: this.toolindex,
  18418. content: JSON.stringify(this.eScore),
  18419. type: 6,
  18420. },
  18421. ];
  18422. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18423. this.homeWorkLoading = true
  18424. this.ajax
  18425. .post(this.$store.state.api + "addCourseWorks", params)
  18426. .then((res) => {
  18427. this.$message({
  18428. message: "提交成功",
  18429. type: "success",
  18430. });
  18431. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18432. setTimeout(() => {
  18433. this.homeWorkLoading = false
  18434. }, 500);
  18435. this.eScore = { eBzText: "", eStar: [] };
  18436. this.studentEvalDialogVisible = false;
  18437. this.selectSWorks();
  18438. })
  18439. .catch((err) => {
  18440. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18441. setTimeout(() => {
  18442. this.homeWorkLoading = false
  18443. }, 500);
  18444. this.$message.error("提交失败");
  18445. console.error(err);
  18446. });
  18447. },
  18448. addBzWorksTeacher() {
  18449. let params = [
  18450. {
  18451. uid: this.sStudent.userid,
  18452. cid: this.id,
  18453. stage: this.courseType,
  18454. task: this.taskCount,
  18455. tool: this.toolindex,
  18456. content: JSON.stringify(this.eScore),
  18457. type: 6,
  18458. },
  18459. ];
  18460. this.ajax
  18461. .post(this.$store.state.api + "addCourseWorks", params)
  18462. .then((res) => {
  18463. this.$message({
  18464. message: "提交成功",
  18465. type: "success",
  18466. });
  18467. this.eScore = { eBzText: "", eStar: [] };
  18468. this.studentEvalDialogVisibleTeacher = false;
  18469. this.selectSWorks();
  18470. })
  18471. .catch((err) => {
  18472. this.$message.error("提交失败");
  18473. console.error(err);
  18474. });
  18475. },
  18476. addStudentAsk() {
  18477. if (!this.radio.length) {
  18478. this.$message.error("请选择选项");
  18479. return;
  18480. }
  18481. for (var i = 0; i < this.askJson.askCount; i++) {
  18482. if (
  18483. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18484. (this.radio[i] !== 0 && !this.radio[i])
  18485. ) {
  18486. this.$message.error("请选择选项");
  18487. return;
  18488. }
  18489. }
  18490. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18491. let params = [
  18492. {
  18493. uid: this.userid,
  18494. cid: this.id,
  18495. stage: this.courseType,
  18496. task: this.taskCount,
  18497. tool: this.toolindex,
  18498. content: JSON.stringify(this.askList),
  18499. type: 2,
  18500. },
  18501. ];
  18502. // console.log('params',params);
  18503. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18504. this.homeWorkLoading = true
  18505. this.ajax
  18506. .post(this.$store.state.api + "addCourseWorks", params)
  18507. .then((res) => {
  18508. this.$message({
  18509. message: "提交成功",
  18510. type: "success",
  18511. });
  18512. setTimeout(() => {
  18513. this.homeWorkLoading = false
  18514. }, 500);
  18515. this.askList = [];
  18516. this.dialogVisible5 = false;
  18517. this.selectStudent();
  18518. this.selectSWorks();
  18519. this.selectSLook();
  18520. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18521. })
  18522. .catch((err) => {
  18523. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18524. setTimeout(() => {
  18525. this.homeWorkLoading = false
  18526. }, 500);
  18527. this.$message.error("提交失败");
  18528. console.error(err);
  18529. });
  18530. },
  18531. addStudentAskTeacher() {
  18532. if (!this.radio.length) {
  18533. this.$message.error("请选择选项");
  18534. return;
  18535. }
  18536. for (var i = 0; i < this.askJson.askCount; i++) {
  18537. if (
  18538. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18539. (this.radio[i] !== 0 && !this.radio[i])
  18540. ) {
  18541. this.$message.error("请选择选项");
  18542. return;
  18543. }
  18544. }
  18545. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18546. let params = [
  18547. {
  18548. uid: this.sStudent.userid,
  18549. cid: this.id,
  18550. stage: this.courseType,
  18551. task: this.taskCount,
  18552. tool: this.toolindex,
  18553. content: JSON.stringify(this.askList),
  18554. type: 2,
  18555. },
  18556. ];
  18557. this.ajax
  18558. .post(this.$store.state.api + "addCourseWorks", params)
  18559. .then((res) => {
  18560. this.$message({
  18561. message: "提交成功",
  18562. type: "success",
  18563. });
  18564. this.askList = [];
  18565. this.dialogVisible5Teacher = false;
  18566. this.selectStudent();
  18567. this.selectSWorks();
  18568. this.selectSLook();
  18569. })
  18570. .catch((err) => {
  18571. this.$message.error("提交失败");
  18572. console.error(err);
  18573. });
  18574. },
  18575. addStudentTest() {
  18576. if (!this.radio.length) {
  18577. this.$message.error("请选择选项");
  18578. return;
  18579. }
  18580. for (var i = 0; i < this.testJson.testCount; i++) {
  18581. if (
  18582. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18583. (this.radio[i] !== 0 && !this.radio[i])
  18584. ) {
  18585. this.$message.error("请选择选项");
  18586. return;
  18587. }
  18588. }
  18589. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18590. let params = [
  18591. {
  18592. uid: this.userid,
  18593. cid: this.id,
  18594. stage: this.courseType,
  18595. task: this.taskCount,
  18596. tool: this.toolindex,
  18597. content: JSON.stringify(this.askList),
  18598. type: 8,
  18599. },
  18600. ];
  18601. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18602. this.homeWorkLoading = true
  18603. this.ajax
  18604. .post(this.$store.state.api + "addCourseWorks", params)
  18605. .then((res) => {
  18606. this.$message({
  18607. message: "提交成功",
  18608. type: "success",
  18609. });
  18610. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18611. setTimeout(() => {
  18612. this.homeWorkLoading = false
  18613. }, 500);
  18614. this.askList = [];
  18615. this.dialogVisibleChoice = false;
  18616. this.selectStudent();
  18617. this.selectSWorks();
  18618. this.selectSLook();
  18619. })
  18620. .catch((err) => {
  18621. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18622. setTimeout(() => {
  18623. this.homeWorkLoading = false
  18624. }, 500);
  18625. this.$message.error("提交失败");
  18626. console.error(err);
  18627. });
  18628. },
  18629. addStudentTestTeacher() {
  18630. if (!this.radio.length) {
  18631. this.$message.error("请选择选项");
  18632. return;
  18633. }
  18634. for (var i = 0; i < this.testJson.testCount; i++) {
  18635. if (
  18636. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18637. (this.radio[i] !== 0 && !this.radio[i])
  18638. ) {
  18639. this.$message.error("请选择选项");
  18640. return;
  18641. }
  18642. }
  18643. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18644. let params = [
  18645. {
  18646. uid: this.sStudent.userid,
  18647. cid: this.id,
  18648. stage: this.courseType,
  18649. task: this.taskCount,
  18650. tool: this.toolindex,
  18651. content: JSON.stringify(this.askList),
  18652. type: 8,
  18653. },
  18654. ];
  18655. this.ajax
  18656. .post(this.$store.state.api + "addCourseWorks", params)
  18657. .then((res) => {
  18658. this.$message({
  18659. message: "提交成功",
  18660. type: "success",
  18661. });
  18662. this.askList = [];
  18663. this.dialogVisibleChoiceTeacher = false;
  18664. this.selectStudent();
  18665. this.selectSWorks();
  18666. this.selectSLook();
  18667. })
  18668. .catch((err) => {
  18669. this.$message.error("提交失败");
  18670. console.error(err);
  18671. });
  18672. },
  18673. addWork() {
  18674. if (this.studyJuri[0].content == "") {
  18675. this.$message.error("请将信息填写完整");
  18676. return;
  18677. } else if (this.studyJuri[0].cover.length == 0) {
  18678. this.$message.error("请将信息填写完整");
  18679. return;
  18680. } else if (this.studyJuri[0].upVedio.length == 0) {
  18681. this.$message.error("请将信息填写完整");
  18682. return;
  18683. }
  18684. if (this.isNoHomeWork) {
  18685. this.$confirm(
  18686. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18687. "提示",
  18688. {
  18689. confirmButtonText: "确定",
  18690. cancelButtonText: "取消",
  18691. type: "warning",
  18692. }
  18693. )
  18694. .then(() => {
  18695. let params = [
  18696. {
  18697. uid: this.userid,
  18698. cid: this.id,
  18699. stage: this.courseType,
  18700. task: this.taskCount,
  18701. content: JSON.stringify(this.studyJuri),
  18702. },
  18703. ];
  18704. this.ajax
  18705. .post(this.$store.state.api + "addWorks", params)
  18706. .then((res) => {
  18707. this.$message({
  18708. message: "提交成功",
  18709. type: "success",
  18710. });
  18711. this.isNoHomeWork = true;
  18712. this.dialogVisible = false;
  18713. })
  18714. .catch((err) => {
  18715. this.$message.error("提交失败");
  18716. console.error(err);
  18717. });
  18718. })
  18719. .catch(() => {});
  18720. } else {
  18721. let params = [
  18722. {
  18723. uid: this.userid,
  18724. cid: this.id,
  18725. stage: this.courseType,
  18726. task: this.taskCount,
  18727. content: JSON.stringify(this.studyJuri),
  18728. },
  18729. ];
  18730. this.ajax
  18731. .post(this.$store.state.api + "addWorks", params)
  18732. .then((res) => {
  18733. this.$message({
  18734. message: "提交成功",
  18735. type: "success",
  18736. });
  18737. this.isNoHomeWork = true;
  18738. this.dialogVisible = false;
  18739. })
  18740. .catch((err) => {
  18741. this.$message.error("提交失败");
  18742. console.error(err);
  18743. });
  18744. }
  18745. },
  18746. selectCount() {
  18747. let params = {
  18748. cid: this.id,
  18749. chid: this.courseType,
  18750. uid: this.userid,
  18751. };
  18752. this.ajax
  18753. .get(this.$store.state.api + "selectToolsCount", params)
  18754. .then((res) => {
  18755. for (var i = 0; i < res.data[0].length; i++) {
  18756. if (res.data[0][i].tools == 1) {
  18757. this.wbCount = res.data[0][i].count;
  18758. } else if (res.data[0][i].tools == 2) {
  18759. this.wordCount = res.data[0][i].count;
  18760. } else if (res.data[0][i].tools == 3) {
  18761. this.mindCount = res.data[0][i].count;
  18762. } else if (res.data[0][i].tools == 4) {
  18763. this.askCount = res.data[0][i].count;
  18764. } else if (res.data[0][i].tools == 6) {
  18765. this.noteCount = res.data[0][i].count;
  18766. } else if (res.data[0][i].tools == 7) {
  18767. this.mindNetWorkCount = res.data[0][i].count;
  18768. } else if (res.data[0][i].tools == 8) {
  18769. this.libraryCount = res.data[0][i].count;
  18770. } else if (res.data[0][i].tools == 16) {
  18771. this.workCount = res.data[0][i].count;
  18772. } else if (res.data[0][i].tools == 10) {
  18773. this.timeCount = res.data[0][i].count;
  18774. } else if (res.data[0][i].tools == 15) {
  18775. this.answerCount = res.data[0][i].count;
  18776. } else if (res.data[0][i].tools == 18) {
  18777. this.trainCount = res.data[0][i].count;
  18778. }
  18779. }
  18780. })
  18781. .catch((err) => {
  18782. console.error(err);
  18783. });
  18784. },
  18785. openTools(t, i, index, c, sName,id) {
  18786. var z = JSON.parse(c);
  18787. this.noteName = sName;
  18788. if (t == 4) {
  18789. this.radio = [];
  18790. this.isAnswer = false;
  18791. let b = z[0].anwer;
  18792. this.radio = b;
  18793. this.askJson = z[0].askJson;
  18794. this.isAnswer = true;
  18795. this.dialogVisible5 = true;
  18796. } else if (t == 45) {
  18797. this.radio = [];
  18798. this.isAnswer = false;
  18799. let b = z[0].anwer;
  18800. this.radio = b;
  18801. this.testJson = z[0].testJson;
  18802. this.isAnswer = true;
  18803. this.dialogVisibleChoice = true;
  18804. }else if(t == 69){
  18805. this.oldEnglishJson1 = {}
  18806. this.oldEnglishJson = {}
  18807. this.englishList1 = {}
  18808. this.newEngIndex = -1;
  18809. this.isNoUserid = false;
  18810. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18811. .toolChoose[i].englishList;
  18812. this.oldEnglishJson = z;
  18813. this.engWid = id;
  18814. this.newEnglishList = { engTitle:"",engText:"" }
  18815. this.newEnglishList1 = []
  18816. this.selectEngC(id,z);
  18817. }else if(t == 62){
  18818. this.videoType = 1;
  18819. this.videoJson = {};
  18820. this.videoJson = JSON.parse(c);
  18821. // this.videoJson =
  18822. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18823. // index
  18824. // ].toolChoose[i].videoJson;
  18825. this.dialogVisibleVideo = true;
  18826. //this.dialog
  18827. }
  18828. // else if (t == 15) {
  18829. // this.answerQ = "";
  18830. // this.questionAnswer = "";
  18831. // this.answerQ = z[0].answerTitle;
  18832. // this.questionAnswer = z[0].answer;
  18833. // this.answerDialogVisible = true;
  18834. // }
  18835. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18836. },
  18837. fastText(p, t) {
  18838. if (t == 1) {
  18839. this.commentText += p;
  18840. } else {
  18841. this.eScore.eBzText += p;
  18842. }
  18843. },
  18844. addTools(t, i, index) {
  18845. var a = 0;
  18846. // this.taskCount = index;
  18847. this.toolindex = i;
  18848. if (t == 1) {
  18849. if (this.wbCount > 0) {
  18850. this.updateCount(this.wbCount, t);
  18851. } else {
  18852. this.wbCount++;
  18853. a = this.wbCount;
  18854. this.toolsCount(a, t);
  18855. }
  18856. window.topU.postMessage(
  18857. {
  18858. tools: "1",
  18859. cid: this.id,
  18860. stage: this.courseType,
  18861. task: this.taskCount,
  18862. tool: i,
  18863. },
  18864. "*"
  18865. );
  18866. } else if (t == 2) {
  18867. if (this.wordCount > 0) {
  18868. this.updateCount(this.wordCount, t);
  18869. } else {
  18870. this.wordCount++;
  18871. a = this.wordCount;
  18872. this.toolsCount(a, t);
  18873. }
  18874. window.topU.postMessage({ tools: "2" }, "*");
  18875. } else if (t == 3) {
  18876. if (this.mindCount > 0) {
  18877. this.updateCount(this.mindCount, t);
  18878. } else {
  18879. this.mindCount++;
  18880. a = this.mindCount;
  18881. this.toolsCount(a, t);
  18882. }
  18883. window.topU.postMessage(
  18884. {
  18885. tools: "3",
  18886. cid: this.id,
  18887. stage: this.courseType,
  18888. task: this.taskCount,
  18889. tool: i,
  18890. },
  18891. "*"
  18892. );
  18893. } else if (t == 4) {
  18894. this.radio = [];
  18895. this.noteName = "";
  18896. this.isAnswer = false;
  18897. if (this.askCount > 0) {
  18898. this.updateCount(this.askCount, t);
  18899. } else {
  18900. this.askCount++;
  18901. a = this.askCount;
  18902. this.toolsCount(a, t);
  18903. }
  18904. if (!this.dialogVisible2) {
  18905. this.askJson.askJson =
  18906. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18907. index
  18908. ].toolChoose[i].askJson;
  18909. this.askJson.askTitle =
  18910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18911. index
  18912. ].toolChoose[i].askTitle;
  18913. this.askJson.askCount =
  18914. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18915. index
  18916. ].toolChoose[i].askCount;
  18917. } else {
  18918. this.askJson.askJson = this.chapTools.askJson.askJson;
  18919. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18920. this.askJson.askCount = this.chapTools.askJson.askCount;
  18921. }
  18922. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18923. if (this.askJson.askJson[k].type == "2") {
  18924. this.radio.push([]);
  18925. } else {
  18926. this.radio.push("");
  18927. }
  18928. }
  18929. this.dialogVisible5 = true;
  18930. // window.topU.postMessage({ tools: "4" }, "*");
  18931. } else if (t == 45) {
  18932. this.noteName = "";
  18933. this.radio = [];
  18934. this.isAnswer = false;
  18935. if (this.askCount > 0) {
  18936. this.updateCount(this.askCount, t);
  18937. } else {
  18938. this.askCount++;
  18939. a = this.askCount;
  18940. this.toolsCount(a, t);
  18941. }
  18942. this.testJson =
  18943. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18944. index
  18945. ].toolChoose[i].testJson;
  18946. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18947. if (this.testJson.testJson[k].type == "2") {
  18948. this.radio.push([]);
  18949. } else {
  18950. this.radio.push("");
  18951. }
  18952. }
  18953. this.dialogVisibleChoice = true;
  18954. // window.topU.postMessage({ tools: "4" }, "*");
  18955. } else if (t == 5) {
  18956. if (this.scoreCount > 0) {
  18957. this.updateCount(this.scoreCount, t);
  18958. } else {
  18959. this.scoreCount++;
  18960. a = this.scoreCount;
  18961. this.toolsCount(a, t);
  18962. }
  18963. this.dialogVisible4 = true;
  18964. // window.topU.postMessage({ tools: "5" }, "*");
  18965. } else if (t == 6) {
  18966. if (this.noteCount > 0) {
  18967. this.updateCount(this.noteCount, t);
  18968. } else {
  18969. this.noteCount++;
  18970. a = this.noteCount;
  18971. this.toolsCount(a, t);
  18972. }
  18973. window.topU.postMessage(
  18974. {
  18975. tools: "6",
  18976. cid: this.id,
  18977. stage: this.courseType,
  18978. task: this.taskCount,
  18979. tool: i,
  18980. },
  18981. "*"
  18982. );
  18983. } else if (t == 7) {
  18984. if (this.mindNetWorkCount > 0) {
  18985. this.updateCount(this.mindNetWorkCount, t);
  18986. } else {
  18987. this.mindNetWorkCount++;
  18988. a = this.mindNetWorkCount;
  18989. this.toolsCount(a, t);
  18990. }
  18991. window.topU.postMessage(
  18992. {
  18993. tools: "7",
  18994. cid: this.id,
  18995. stage: this.courseType,
  18996. task: this.taskCount,
  18997. tool: i,
  18998. },
  18999. "*"
  19000. );
  19001. } else if (t == 16) {
  19002. if (this.workCount > 0) {
  19003. this.updateCount(this.workCount, t);
  19004. } else {
  19005. this.workCount++;
  19006. a = this.workCount;
  19007. this.toolsCount(a, t);
  19008. }
  19009. this.dialogVisible = true;
  19010. } else if (t == 50) {
  19011. if (this.tType == 2) {
  19012. this.$message.error("不支持学生使用");
  19013. return;
  19014. }
  19015. this.plworkFile = [];
  19016. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19017. if (!this.uploadCid) {
  19018. this.$message.error(
  19019. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19020. );
  19021. return;
  19022. }
  19023. // this.uploadCid =
  19024. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19025. // index
  19026. // ].toolChoose[i].uploadJson[0];
  19027. this.selectUploadStudent(2);
  19028. } else if (t == 8) {
  19029. if (this.libraryCount > 0) {
  19030. this.updateCount(this.libraryCount, t);
  19031. } else {
  19032. this.libraryCount++;
  19033. a = this.libraryCount;
  19034. this.toolsCount(a, t);
  19035. }
  19036. window.topU.postMessage({ tools: "8" }, "*");
  19037. } else if (t == 17) {
  19038. if (this.libraryCount > 0) {
  19039. this.updateCount(this.libraryCount, t);
  19040. } else {
  19041. this.libraryCount++;
  19042. a = this.libraryCount;
  19043. this.toolsCount(a, t);
  19044. }
  19045. window.topU.postMessage({ tools: "17" }, "*");
  19046. } else if (t == 18) {
  19047. if (this.trainCount > 0) {
  19048. this.updateCount(this.trainCount, t);
  19049. } else {
  19050. this.trainCount++;
  19051. a = this.trainCount;
  19052. this.toolsCount(a, t);
  19053. }
  19054. window.topU.postMessage({ tools: "18" }, "*");
  19055. } else if (t == 10) {
  19056. if (this.timeCount > 0) {
  19057. this.updateCount(this.timeCount, t);
  19058. } else {
  19059. this.timeCount++;
  19060. a = this.timeCount;
  19061. this.toolsCount(a, t);
  19062. }
  19063. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19064. .taskJson[index].toolChoose[i].preTime
  19065. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19066. .toolChoose[i].preTime
  19067. : "";
  19068. this.timeDialogVisible = true;
  19069. } else if (t == 15) {
  19070. this.answerQ = "";
  19071. this.questionAnswer = "";
  19072. if (this.answerCount > 0) {
  19073. this.updateCount(this.answerCount, t);
  19074. } else {
  19075. this.answerCount++;
  19076. a = this.answerCount;
  19077. this.toolsCount(a, t);
  19078. }
  19079. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19080. .taskJson[index].toolChoose[i].answerQ
  19081. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19082. .toolChoose[i].answerQ
  19083. : "";
  19084. this.answerDialogVisible = true;
  19085. } else if (t == 21) {
  19086. window.topU.postMessage({ tools: "21" }, "*");
  19087. } else if (t == 22) {
  19088. window.topU.postMessage({ tools: "22" }, "*");
  19089. } else if (t == 23) {
  19090. window.topU.postMessage({ tools: "23" }, "*");
  19091. } else if (t == 24) {
  19092. window.topU.postMessage({ tools: "24" }, "*");
  19093. } else if (t == 25) {
  19094. window.topU.postMessage({ tools: "25" }, "*");
  19095. } else if (t == 31) {
  19096. window.topU.postMessage({ tools: "31" }, "*");
  19097. } else if (t == 28) {
  19098. window.topU.postMessage({ tools: "28" }, "*");
  19099. } else if (t == 37) {
  19100. window.topU.postMessage({ tools: "37" }, "*");
  19101. } else if (t == 38) {
  19102. window.topU.postMessage({ tools: "38" }, "*");
  19103. } else if (t == 39) {
  19104. window.topU.postMessage({ tools: "39" }, "*");
  19105. } else if (t == 32) {
  19106. window.topU.postMessage({ tools: "32" }, "*");
  19107. } else if (t == 66) {
  19108. window.topU.postMessage({ tools: "66" }, "*");
  19109. } else if (t == 67) {
  19110. window.topU.postMessage({ tools: "67" }, "*");
  19111. } else if (t == 68) {
  19112. window.topU.postMessage({ tools: "68" }, "*");
  19113. } else if (t == 57) {
  19114. // window.topU.postMessage({ tools: "57" }, "*");
  19115. window.topU.postMessage(
  19116. {
  19117. tools: "57u",
  19118. cid: this.id,
  19119. stage: this.courseType,
  19120. task: this.taskCount,
  19121. tool: i,
  19122. },
  19123. "*"
  19124. );
  19125. } else if (t == 58) {
  19126. window.topU.postMessage({ tools: "58" }, "*");
  19127. } else if (t == 59) {
  19128. window.topU.postMessage({ tools: "59" }, "*");
  19129. } else if (t == 60) {
  19130. window.topU.postMessage({ tools: "60" }, "*");
  19131. } else if (t == 61) {
  19132. window.topU.postMessage({ tools: "61" }, "*");
  19133. } else if (t == 63) {
  19134. window.topU.postMessage({ tools: "63" }, "*");
  19135. } else if (t == 71) {
  19136. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19137. // this.$message.error("该工具不可使用");
  19138. // return
  19139. // }
  19140. window.topU.postMessage({ tools: "71" }, "*");
  19141. } else if (t == 72) {
  19142. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19143. .taskJson[index].toolChoose[i].appJson
  19144. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19145. .toolChoose[i].appJson
  19146. : "";
  19147. if(!item || !item.url){
  19148. this.$message.error("应用连接为空, 请到课程管理中添加");
  19149. return;
  19150. }
  19151. if (!document.fullscreenElement) {
  19152. this.enterFullScreen();
  19153. }
  19154. this.$refs.appStoreC.getData(item.url,this.userid)
  19155. // window.open(item.url, "_blank");
  19156. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19157. } else if (t == 69) {
  19158. if (this.worksStudent[i].length) {
  19159. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19160. if (this.userid == this.worksStudent[i][k].userid) {
  19161. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19162. break;
  19163. } else {
  19164. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19165. }
  19166. }
  19167. } else {
  19168. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19169. }
  19170. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19171. .taskJson[index].toolChoose[i].englishList
  19172. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19173. .toolChoose[i].englishList
  19174. : {};
  19175. this.englishToolIndex = i;
  19176. this.myAnList = this.myAnswerList1;
  19177. this.engDialogVisible = true;
  19178. } else if (t == 70) {
  19179. if (this.worksStudent[i].length) {
  19180. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19181. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19182. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19183. break;
  19184. } else {
  19185. this.englishVoiceJsonWork = [];
  19186. }
  19187. }
  19188. } else {
  19189. this.englishVoiceJsonWork = [];
  19190. }
  19191. let englishVoiceJson = {}
  19192. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19193. .taskJson[index].toolChoose[i].englishVoiceJson
  19194. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19195. .toolChoose[i].englishVoiceJson
  19196. : {};
  19197. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19198. this.EnglishVoiceDialog = true;
  19199. } else if (t == 65) {
  19200. if (this.tType == 2) {
  19201. this.$message.error("不支持学生使用");
  19202. return;
  19203. }
  19204. this.uploadCid = this.tcid;
  19205. if (!this.uploadCid) {
  19206. this.$message.error(
  19207. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19208. );
  19209. return;
  19210. }
  19211. this.selectPickStudent();
  19212. } else if (t == 26) {
  19213. window.topU.postMessage(
  19214. {
  19215. tools: "26",
  19216. cid: this.id,
  19217. stage: this.courseType,
  19218. task: this.taskCount,
  19219. tool: i,
  19220. },
  19221. "*"
  19222. );
  19223. } else if (t == 40) {
  19224. if (this.evalCount > 0) {
  19225. this.updateCount(this.evalCount, t);
  19226. } else {
  19227. this.evalCount++;
  19228. a = this.evalCount;
  19229. this.toolsCount(a, t);
  19230. }
  19231. this.eScore = { eBzText: "", eStar: [] };
  19232. if (this.worksStudent[i].length) {
  19233. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19234. if (this.userid == this.worksStudent[i][k].userid) {
  19235. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19236. this.rateJson =
  19237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19238. index
  19239. ].toolChoose[i].rateJson;
  19240. break;
  19241. } else {
  19242. this.rateJson =
  19243. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19244. index
  19245. ].toolChoose[i].rateJson;
  19246. }
  19247. }
  19248. } else {
  19249. this.rateJson =
  19250. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19251. index
  19252. ].toolChoose[i].rateJson;
  19253. }
  19254. this.isStar = false;
  19255. this.studentEvalDialogVisible = true;
  19256. } else if (t == 41) {
  19257. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19258. .taskJson[index].toolChoose[i].selectJson
  19259. ? JSON.parse(
  19260. JSON.stringify(
  19261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19262. index
  19263. ].toolChoose[i].selectJson
  19264. )
  19265. )
  19266. : { url: "", select: [], answer: [] };
  19267. if (this.worksStudent[i].length) {
  19268. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19269. if (this.userid == this.worksStudent[i][k].userid) {
  19270. var a = this.worksStudent[i][k].works.split(",");
  19271. for (var ki = 0; ki < a.length; ki++) {
  19272. a[ki] = parseInt(a[ki]);
  19273. }
  19274. this.selectAnswer = {
  19275. answer: a,
  19276. stu: this.worksStudent[i][k].sName,
  19277. };
  19278. break;
  19279. } else {
  19280. this.selectAnswer = { answer: [], stu: "" };
  19281. }
  19282. }
  19283. } else {
  19284. this.selectAnswer = { answer: [], stu: "" };
  19285. }
  19286. this.isSelect = false;
  19287. this.dialogVisibleSelect = true;
  19288. } else if (t == 44) {
  19289. window.topU.postMessage({ tools: "44" }, "*");
  19290. } else if (t == 47) {
  19291. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19292. .taskJson[index].toolChoose[i].sentenceList
  19293. ? JSON.parse(
  19294. JSON.stringify(
  19295. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19296. index
  19297. ].toolChoose[i].sentenceList
  19298. )
  19299. )
  19300. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19301. for (var q = 0; q < this.sentenceList.length; q++) {
  19302. this.sentenceList[q].chooseSenList = [];
  19303. this.sentenceList[q].addChangeSen = [];
  19304. this.sentenceList[q].addChangeSen = JSON.parse(
  19305. JSON.stringify(this.sentenceList[q].addSentence)
  19306. );
  19307. this.sentenceList[q].chooseSenList.length =
  19308. this.sentenceList[q].rightAnswer.length;
  19309. }
  19310. this.dialogVisibleSentence = true;
  19311. } else if (t == 48) {
  19312. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19313. .taskJson[index].toolChoose[i].tableJson
  19314. ? JSON.parse(
  19315. JSON.stringify(
  19316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19317. index
  19318. ].toolChoose[i].tableJson
  19319. )
  19320. )
  19321. : { text: "" };
  19322. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19323. if (this.worksStudent[i].length) {
  19324. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19325. if (this.userid == this.worksStudent[i][k].userid) {
  19326. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19327. break;
  19328. }
  19329. }
  19330. }
  19331. this.dialogVisibleTable = true;
  19332. } else if (t == 52) {
  19333. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19334. .taskJson[index].toolChoose[i].wordJson
  19335. ? JSON.parse(
  19336. JSON.stringify(
  19337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19338. index
  19339. ].toolChoose[i].wordJson
  19340. )
  19341. )
  19342. : { text: "" };
  19343. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19344. if (this.worksStudent[i].length) {
  19345. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19346. if (this.userid == this.worksStudent[i][k].userid) {
  19347. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19348. break;
  19349. }
  19350. }
  19351. }
  19352. this.dialogVisibleWord = true;
  19353. } else if (t == 49) {
  19354. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19355. return
  19356. }
  19357. this.groupJson =
  19358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19359. index
  19360. ].toolChoose[i].groupJson;
  19361. this.islock = this.groupJson.islock == 1 ? true : false;
  19362. this.dialogVisibleGroup = true;
  19363. } else if (t == 62) {
  19364. this.videoType = 0;
  19365. this.videoJson = {};
  19366. this.videoJson =
  19367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19368. index
  19369. ].toolChoose[i].videoJson;
  19370. this.dialogVisibleVideo = true;
  19371. }
  19372. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19373. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19374. },
  19375. teacherWorkSubmit(t, i, index, s) {
  19376. this.sStudent = s;
  19377. this.toolindex = i;
  19378. this.sTool = t;
  19379. if (this.tType !== "1" && this.tType !== "4") {
  19380. return;
  19381. }
  19382. if (t == 16 || t == 32 || t == 50) {
  19383. this.dialogVisibleWorks = true;
  19384. } else if (t == 15) {
  19385. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19386. .taskJson[index].toolChoose[i].answerQ
  19387. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19388. .toolChoose[i].answerQ
  19389. : "";
  19390. this.questionAnswer = "";
  19391. this.answerDialogVisibleTeacher = true; //问答
  19392. } else if (t == 52) {
  19393. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19394. .taskJson[index].toolChoose[i].wordJson
  19395. ? JSON.parse(
  19396. JSON.stringify(
  19397. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19398. index
  19399. ].toolChoose[i].wordJson
  19400. )
  19401. )
  19402. : { text: "" };
  19403. if (this.worksStudent[i].length) {
  19404. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19405. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19406. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19407. break;
  19408. }
  19409. }
  19410. }
  19411. this.dialogVisibleWordTeacher = true; //文档
  19412. } else if (t == 4) {
  19413. this.radio = [];
  19414. this.noteName = "";
  19415. this.isAnswer = false;
  19416. if (this.askCount > 0) {
  19417. this.updateCount(this.askCount, t);
  19418. } else {
  19419. this.askCount++;
  19420. a = this.askCount;
  19421. this.toolsCount(a, t);
  19422. }
  19423. if (!this.dialogVisible2) {
  19424. this.askJson.askJson =
  19425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19426. index
  19427. ].toolChoose[i].askJson;
  19428. this.askJson.askTitle =
  19429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19430. index
  19431. ].toolChoose[i].askTitle;
  19432. this.askJson.askCount =
  19433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19434. index
  19435. ].toolChoose[i].askCount;
  19436. } else {
  19437. this.askJson.askJson = this.chapTools.askJson.askJson;
  19438. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19439. this.askJson.askCount = this.chapTools.askJson.askCount;
  19440. }
  19441. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19442. if (this.askJson.askJson[k].type == "2") {
  19443. this.radio.push([]);
  19444. } else {
  19445. this.radio.push("");
  19446. }
  19447. }
  19448. this.dialogVisible5Teacher = true;
  19449. } else if (t == 45) {
  19450. this.noteName = "";
  19451. this.radio = [];
  19452. this.isAnswer = false;
  19453. if (this.askCount > 0) {
  19454. this.updateCount(this.askCount, t);
  19455. } else {
  19456. this.askCount++;
  19457. a = this.askCount;
  19458. this.toolsCount(a, t);
  19459. }
  19460. this.testJson =
  19461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19462. index
  19463. ].toolChoose[i].testJson;
  19464. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19465. if (this.testJson.testJson[k].type == "2") {
  19466. this.radio.push([]);
  19467. } else {
  19468. this.radio.push("");
  19469. }
  19470. }
  19471. this.dialogVisibleChoiceTeacher = true;
  19472. } else if (t == 41) {
  19473. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19474. .taskJson[index].toolChoose[i].selectJson
  19475. ? JSON.parse(
  19476. JSON.stringify(
  19477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19478. index
  19479. ].toolChoose[i].selectJson
  19480. )
  19481. )
  19482. : { url: "", select: [], answer: [] };
  19483. if (this.worksStudent[i].length) {
  19484. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19485. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19486. var a = this.worksStudent[i][k].works.split(",");
  19487. for (var ki = 0; ki < a.length; ki++) {
  19488. a[ki] = parseInt(a[ki]);
  19489. }
  19490. this.selectAnswer = {
  19491. answer: a,
  19492. stu: this.worksStudent[i][k].sName,
  19493. };
  19494. break;
  19495. } else {
  19496. this.selectAnswer = { answer: [], stu: "" };
  19497. }
  19498. }
  19499. } else {
  19500. this.selectAnswer = { answer: [], stu: "" };
  19501. }
  19502. this.isSelect = false;
  19503. this.dialogVisibleSelectTeacher = true;
  19504. } else if (t == 47) {
  19505. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19506. .taskJson[index].toolChoose[i].sentenceList
  19507. ? JSON.parse(
  19508. JSON.stringify(
  19509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19510. index
  19511. ].toolChoose[i].sentenceList
  19512. )
  19513. )
  19514. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19515. for (var q = 0; q < this.sentenceList.length; q++) {
  19516. this.sentenceList[q].chooseSenList = [];
  19517. this.sentenceList[q].addChangeSen = [];
  19518. this.sentenceList[q].addChangeSen = JSON.parse(
  19519. JSON.stringify(this.sentenceList[q].addSentence)
  19520. );
  19521. this.sentenceList[q].chooseSenList.length =
  19522. this.sentenceList[q].rightAnswer.length;
  19523. }
  19524. this.dialogVisibleSentenceTeacher = true;
  19525. } else if (t == 48) {
  19526. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19527. .taskJson[index].toolChoose[i].tableJson
  19528. ? JSON.parse(
  19529. JSON.stringify(
  19530. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19531. index
  19532. ].toolChoose[i].tableJson
  19533. )
  19534. )
  19535. : { text: "" };
  19536. if (this.worksStudent[i].length) {
  19537. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19538. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19539. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19540. break;
  19541. }
  19542. }
  19543. }
  19544. this.dialogVisibleTableTeacher = true;
  19545. } else if (t == 40) {
  19546. if (this.evalCount > 0) {
  19547. this.updateCount(this.evalCount, t);
  19548. } else {
  19549. this.evalCount++;
  19550. a = this.evalCount;
  19551. this.toolsCount(a, t);
  19552. }
  19553. this.eScore = { eBzText: "", eStar: [] };
  19554. if (this.worksStudent[i].length) {
  19555. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19556. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19557. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19558. this.rateJson =
  19559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19560. index
  19561. ].toolChoose[i].rateJson;
  19562. break;
  19563. } else {
  19564. this.rateJson =
  19565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19566. index
  19567. ].toolChoose[i].rateJson;
  19568. }
  19569. }
  19570. } else {
  19571. this.rateJson =
  19572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19573. index
  19574. ].toolChoose[i].rateJson;
  19575. }
  19576. this.isStar = false;
  19577. this.studentEvalDialogVisibleTeacher = true;
  19578. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19579. window.topU.postMessage(
  19580. {
  19581. tools: t + "teacher",
  19582. cid: this.id,
  19583. stage: this.courseType,
  19584. task: this.taskCount,
  19585. tool: i,
  19586. student: this.sStudent,
  19587. },
  19588. "*"
  19589. );
  19590. }else if (t == 72) {
  19591. if (!document.fullscreenElement) {
  19592. this.enterFullScreen();
  19593. }
  19594. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19595. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19596. }
  19597. },
  19598. openCocoPi(tool, i, uid, uname) {
  19599. let student = {
  19600. userid: uid,
  19601. student: uname,
  19602. };
  19603. if (tool == 57) {
  19604. window.topU.postMessage(
  19605. {
  19606. tools: tool + "teacher",
  19607. cid: this.id,
  19608. stage: this.courseType,
  19609. task: this.taskCount,
  19610. tool: i,
  19611. student: student,
  19612. },
  19613. "*"
  19614. );
  19615. }
  19616. },
  19617. setRightAnswer(s, i, j) {
  19618. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19619. if (
  19620. this.sentenceList[i].chooseSenList[q] == undefined ||
  19621. this.sentenceList[i].chooseSenList[q] == ""
  19622. ) {
  19623. this.sentenceList[i].chooseSenList[q] = s;
  19624. this.sentenceList[i].addChangeSen[j] = "";
  19625. break;
  19626. }
  19627. }
  19628. this.$forceUpdate();
  19629. },
  19630. returnCard(r, i, j) {
  19631. var a = this.sentenceList[i].addSentence.indexOf(r);
  19632. this.sentenceList[i].chooseSenList[j] = "";
  19633. this.sentenceList[i].addChangeSen[a] = r;
  19634. this.$forceUpdate();
  19635. },
  19636. // addSentenceTool() {
  19637. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19638. // this.taskCount
  19639. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19640. // this.sentenceList = [
  19641. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19642. // ];
  19643. // this.dialogVisibleSentence = false;
  19644. // },
  19645. toolsCount(a, t) {
  19646. let params = {
  19647. cid: this.id,
  19648. chid: this.courseType,
  19649. uid: this.userid,
  19650. tid: t,
  19651. count: a,
  19652. };
  19653. this.ajax
  19654. .get(this.$store.state.api + "insertToolsCount", params)
  19655. .then((res) => {
  19656. this.selectCount();
  19657. })
  19658. .catch((err) => {
  19659. console.error(err);
  19660. });
  19661. },
  19662. updateCount(c, t) {
  19663. c++;
  19664. let params = {
  19665. cid: this.id,
  19666. chid: this.courseType,
  19667. uid: this.userid,
  19668. tid: t,
  19669. count: c,
  19670. };
  19671. this.ajax
  19672. .get(this.$store.state.api + "updateToolsCount", params)
  19673. .then((res) => {
  19674. this.selectCount();
  19675. })
  19676. .catch((err) => {
  19677. console.error(err);
  19678. });
  19679. },
  19680. checkEva() {
  19681. if (this.evalua != "") {
  19682. for (var i = 0; i < this.evaJuri.length; i++) {
  19683. if (this.evalua == this.evaJuri[i].id) {
  19684. this.eTitle = this.evaJuri[i].title;
  19685. this.eJson = JSON.parse(this.evaJuri[i].content);
  19686. }
  19687. }
  19688. this.$forceUpdate();
  19689. setTimeout(() => {
  19690. this.setMindData();
  19691. }, 0);
  19692. }
  19693. },
  19694. selectEva() {
  19695. let params = {
  19696. oid: this.oid,
  19697. };
  19698. this.ajax
  19699. .get(this.$store.state.api + "selectAllEvaluation", params)
  19700. .then((res) => {
  19701. this.evaJuri = res.data[0];
  19702. })
  19703. .catch((err) => {
  19704. console.error(err);
  19705. });
  19706. },
  19707. setMindData() {
  19708. this.data.data = [];
  19709. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19710. let _eJson = Object.keys(this.eJson);
  19711. let _e = this.eJson;
  19712. for (let i = 0; i < _eJson.length; i++) {
  19713. let element = _e[_eJson[i]];
  19714. this.data.data.push({
  19715. id: element.id,
  19716. parentid: "root",
  19717. topic: element.name,
  19718. });
  19719. let _eJsonc = Object.keys(element.child);
  19720. let _e2 = element.child;
  19721. for (let j = 0; j < _eJsonc.length; j++) {
  19722. let _ec = _e2[_eJsonc[j]];
  19723. this.data.data.push({
  19724. id: _ec.id,
  19725. parentid: element.id,
  19726. topic: _ec.name,
  19727. });
  19728. let _eJsonz = Object.keys(_ec.child);
  19729. let _e3 = _ec.child;
  19730. for (let z = 0; z < _eJsonz.length; z++) {
  19731. let _ez = _e3[_eJsonz[z]];
  19732. this.data.data.push({
  19733. id: _ez.id,
  19734. parentid: _ec.id,
  19735. topic: _ez.name,
  19736. });
  19737. }
  19738. }
  19739. }
  19740. this.$forceUpdate();
  19741. },
  19742. checkFileFull(type, url) {
  19743. this.fullDialogVisible = true;
  19744. this.fulltype = type;
  19745. this.fullUrl = url;
  19746. },
  19747. async checkFileFull1(t, f) {
  19748. this.fullDialogVisible = true;
  19749. if (t == 6) {
  19750. this.fulltype = 1;
  19751. this.fullUrl = JSON.parse(JSON.stringify(f));
  19752. } else if (t == 8 ) {
  19753. this.fulltype = 2;
  19754. this.fullUrl = f.url;
  19755. }else if (t == 15) {
  19756. this.diffKey = new Date().getTime();
  19757. this.fulltype = 4;
  19758. this.fullUrl = f.url;
  19759. } else if (t == 16) {
  19760. this.fulltype = 16;
  19761. this.fullUrl = f.url;
  19762. } else if (
  19763. t == 3 &&
  19764. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19765. "PDF"
  19766. ) {
  19767. this.fulltype = 3;
  19768. this.fullUrl = f.url;
  19769. } else if (t == 3) {
  19770. this.fulltype = 2;
  19771. let _uuurl = await this.checkLink(f.url);
  19772. this.fullUrl =
  19773. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19774. }
  19775. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19776. },
  19777. openSname(n, id, i, uid) {
  19778. this.snameWid = id;
  19779. this.worksSName = n;
  19780. this.worksSid = uid == n ? "" : uid;
  19781. this.toolindex = i;
  19782. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19783. if (!this.uploadCid) {
  19784. this.$message.error(
  19785. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19786. );
  19787. return;
  19788. }
  19789. this.selectUploadStudent(1);
  19790. },
  19791. updateName() {
  19792. let params = {
  19793. n: this.worksSName,
  19794. cid: this.snameWid,
  19795. };
  19796. this.ajax
  19797. .get(this.$store.state.api + "updateCourseWorksName", params)
  19798. .then((res) => {
  19799. this.$message({
  19800. message: "修改成功",
  19801. type: "success",
  19802. });
  19803. this.dialogVisibleSname = false;
  19804. this.getCourseDetail(2);
  19805. this.snameWid = "";
  19806. this.worksSName = "";
  19807. })
  19808. .catch((err) => {
  19809. console.error(err);
  19810. });
  19811. },
  19812. downloadFile2(f) {
  19813. // const loading = this.$loading.service({
  19814. // background: "rgba(255, 255, 255, 0.7)",
  19815. // target: document.body,
  19816. // text: "文件加载中...",
  19817. // });
  19818. // let url2 = f.url;
  19819. // let _url2 = "";
  19820. // if (
  19821. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19822. // ) {
  19823. // _url2 = url2.split(
  19824. // "https://view.officeapps.live.com/op/view.aspx?src="
  19825. // )[1];
  19826. // } else {
  19827. // _url2 = url2;
  19828. // }
  19829. // let params = {
  19830. // url: _url2,
  19831. // name: f.name,
  19832. // };
  19833. // this.ajax
  19834. // .get(this.$store.state.api + "download", params)
  19835. // .then((res) => {
  19836. // loading.close();
  19837. // let content = res.data.data.data;
  19838. // let ab = new ArrayBuffer(content.length);
  19839. // let view = new Uint8Array(ab);
  19840. // for (var i = 0; i < content.length; ++i) {
  19841. // view[i] = content[i];
  19842. // }
  19843. // let elink = document.createElement("a");
  19844. // elink.download = f.name;
  19845. // elink.style.display = "none";
  19846. // let blob = new Blob([ab], {
  19847. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19848. // });
  19849. // elink.href = URL.createObjectURL(blob);
  19850. // document.body.appendChild(elink);
  19851. // elink.click();
  19852. // document.body.removeChild(elink);
  19853. // })
  19854. // .catch((err) => {
  19855. // loading.close();
  19856. // console.error(err);
  19857. // });
  19858. var credentials = {
  19859. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19860. secretAccessKey: "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",
  19861. }; //秘钥形式的登录上传
  19862. window.AWS.config.update(credentials);
  19863. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19864. let url2 = f.url;
  19865. let _url2 = "";
  19866. if (
  19867. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19868. ) {
  19869. _url2 = url2.split(
  19870. "https://view.officeapps.live.com/op/view.aspx?src="
  19871. )[1];
  19872. } else {
  19873. _url2 = url2;
  19874. }
  19875. let _this = this;
  19876. _this.downLoading = true
  19877. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19878. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19879. var params = {
  19880. Bucket: "ccrb",
  19881. Key: name
  19882. };
  19883. s3.getObject(params, function (err, data) {
  19884. _this.downLoading = false
  19885. if (err) console.log(err, err.stack); // an error occurred
  19886. else {
  19887. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19888. let a = document.createElement("a");
  19889. a.name = f.name;
  19890. a.href = url;
  19891. a.download = f.name;
  19892. a.click();
  19893. console.log(data);
  19894. } // sxuccessful response
  19895. });
  19896. return;
  19897. let url = f.url;
  19898. let _url = "";
  19899. if (
  19900. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19901. ) {
  19902. _url = url.split(
  19903. "https://view.officeapps.live.com/op/view.aspx?src="
  19904. )[1];
  19905. } else {
  19906. _url = url;
  19907. }
  19908. _this.downLoading = true
  19909. let x = new XMLHttpRequest();
  19910. x.open("GET", _url, true);
  19911. x.responseType = "blob";
  19912. x.onload = function () {
  19913. _this.downLoading = false
  19914. let url = window.URL.createObjectURL(new Blob([x.response]));
  19915. let a = document.createElement("a");
  19916. a.name = f.name;
  19917. a.href = url;
  19918. a.download = f.name;
  19919. a.click();
  19920. };
  19921. x.send();
  19922. },
  19923. downloadFile(url,uid) {
  19924. if (this.tType == 1 || this.userid == uid) {
  19925. // this.$message.info("查看作业-下载文件")
  19926. var credentials = {
  19927. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19928. secretAccessKey: "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",
  19929. }; //秘钥形式的登录上传
  19930. window.AWS.config.update(credentials);
  19931. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19932. let url2 = url;
  19933. let _url2 = "";
  19934. if (
  19935. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19936. ) {
  19937. _url2 = url2.split(
  19938. "https://view.officeapps.live.com/op/view.aspx?src="
  19939. )[1];
  19940. } else {
  19941. _url2 = url2;
  19942. }
  19943. const loading2 = this.$loading.service({
  19944. background: "rgba(255, 255, 255, 0.7)",
  19945. target: document.body,
  19946. text: "文件加载中...",
  19947. });
  19948. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19949. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19950. var params = {
  19951. Bucket: "ccrb",
  19952. Key: name
  19953. };
  19954. s3.getObject(params, function (err, data) {
  19955. loading2.close();
  19956. if (err) console.log(err, err.stack); // an error occurred
  19957. else {
  19958. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19959. let a = document.createElement("a");
  19960. a.name = name;
  19961. a.href = url;
  19962. a.download = name;
  19963. a.click();
  19964. console.log(data);
  19965. } // sxuccessful response
  19966. });
  19967. }
  19968. return;
  19969. let _this = this;
  19970. let _url = "";
  19971. if (
  19972. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19973. ) {
  19974. _url = url.split(
  19975. "https://view.officeapps.live.com/op/view.aspx?src="
  19976. )[1];
  19977. } else {
  19978. _url = url;
  19979. }
  19980. const x = new XMLHttpRequest();
  19981. x.open("GET", _url, true);
  19982. x.responseType = "blob";
  19983. // this.downLoading = true
  19984. const loading = _this.$loading.service({
  19985. background: "rgba(255, 255, 255, 0.7)",
  19986. target: document.body,
  19987. text: "文件加载中...",
  19988. });
  19989. // _this.$message.success("文件下载中...");
  19990. x.onload = function (e) {
  19991. loading.close();
  19992. let content = x.response;
  19993. let elink = document.createElement("a");
  19994. elink.download = decodeURI(
  19995. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19996. );
  19997. elink.style.display = "none";
  19998. let blob = new Blob([content]);
  19999. elink.href = URL.createObjectURL(blob);
  20000. document.body.appendChild(elink);
  20001. elink.click();
  20002. document.body.removeChild(elink);
  20003. };
  20004. x.send();
  20005. },
  20006. openLine(url) {
  20007. window.open(url);
  20008. },
  20009. resize() {
  20010. if (document.getElementsByClassName("box_course").length) {
  20011. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20012. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20013. if (this.showType == 2 || this.showType == 3) {
  20014. document.getElementsByClassName("navBox")[0].style.height =
  20015. a - 40 + 0+ "px";
  20016. } else {
  20017. document.getElementsByClassName("navBox")[0].style.height =
  20018. a - 40 + "px";
  20019. }
  20020. }
  20021. this.Stbodywidth =
  20022. document.getElementsByClassName("student_body").length &&
  20023. document.getElementsByClassName("student_body")[0].offsetWidth;
  20024. },
  20025. closeDraw() {
  20026. this.bg = null;
  20027. this.drawShow = false;
  20028. },
  20029. showPicturePaint(url) {
  20030. let params = {
  20031. img: url,
  20032. };
  20033. this.ajax
  20034. .get(this.$store.state.api + "imgToBase64", params)
  20035. .then((res) => {
  20036. this.drawShow = true;
  20037. this.bg = res.data[0].img;
  20038. })
  20039. .catch((err) => {
  20040. console.error(err);
  20041. });
  20042. },
  20043. addImgDraw(base64) {
  20044. let file = { name: "批注图.png" };
  20045. let img = this.dataUrlToFile(base64, file);
  20046. this.beforeUpload1(img, 5);
  20047. },
  20048. addImgDrawImG(url) {
  20049. // console.log(url);
  20050. let params = [
  20051. {
  20052. wid: this.commentDetail.wid,
  20053. img: url,
  20054. },
  20055. ];
  20056. this.ajax
  20057. .post(this.$store.state.api + "updateCourseWorks", params)
  20058. .then((res) => {
  20059. this.$message({
  20060. message: "提交成功",
  20061. type: "success",
  20062. });
  20063. this.drawShow = false;
  20064. this.bg = "";
  20065. this.selectSWorks();
  20066. this.selectStudent();
  20067. })
  20068. .catch((err) => {
  20069. this.$message.error("提交失败");
  20070. console.error(err);
  20071. });
  20072. },
  20073. deletePicturePaint() {
  20074. this.$confirm("确定删除此批注吗?", "提示", {
  20075. confirmButtonText: "确定",
  20076. cancelButtonText: "取消",
  20077. type: "warning",
  20078. })
  20079. .then(() => {
  20080. let params = [
  20081. {
  20082. wid: this.commentDetail.wid,
  20083. img: "",
  20084. },
  20085. ];
  20086. this.ajax
  20087. .post(this.$store.state.api + "updateCourseWorks", params)
  20088. .then((res) => {
  20089. this.$message({
  20090. message: "删除成功",
  20091. type: "success",
  20092. });
  20093. this.selectSWorks();
  20094. this.selectStudent();
  20095. })
  20096. .catch((err) => {
  20097. this.$message.error("删除失败");
  20098. console.error(err);
  20099. });
  20100. })
  20101. .catch(() => {});
  20102. },
  20103. getAudioVideo(constraintsData) {
  20104. if (navigator.mediaDevices === undefined) {
  20105. navigator.mediaDevices = {};
  20106. }
  20107. if (navigator.mediaDevices.getUserMedia === undefined) {
  20108. navigator.mediaDevices.getUserMedia = function (constraints) {
  20109. // 首先,如果有getUserMedia的话,就获得它
  20110. var getUserMedia =
  20111. navigator.getUserMedia ||
  20112. navigator.webkitGetUserMedia ||
  20113. navigator.mozGetUserMedia ||
  20114. navigator.msGetUserMedia;
  20115. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20116. if (!getUserMedia) {
  20117. return Promise.reject({ code: 404 });
  20118. }
  20119. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20120. return new Promise(function (resolve, reject) {
  20121. getUserMedia.call(navigator, constraints, resolve, reject);
  20122. });
  20123. };
  20124. }
  20125. return navigator.mediaDevices.getUserMedia(constraintsData);
  20126. },
  20127. /**
  20128. * 开始录制
  20129. */
  20130. startRecording(callback) {
  20131. let _function = (screenStream) => {
  20132. this.addStreamStopListener(screenStream, () => {
  20133. console.log("流停止监听");
  20134. this.stopRecording();
  20135. this.$emit("streamStop", {});
  20136. // this.stopRecording();
  20137. });
  20138. var options = {
  20139. type: "video",
  20140. mimeType: "video/webm",
  20141. disableLogs: false,
  20142. getNativeBlob: false, // enable it for longer recordings
  20143. ignoreMutedMedia: false,
  20144. };
  20145. // this.video.srcObject = screenStream;
  20146. this.recorder = RecordRTC(screenStream, options);
  20147. this.recorder.startRecording();
  20148. this.recorder.screen = screenStream;
  20149. this.videoStart = true;
  20150. // callback(true);
  20151. };
  20152. this.getAudioVideo({ audio: true })
  20153. .then((res) => {
  20154. this.captureScreen(_function, true);
  20155. console.log("已点击允许,开启成功");
  20156. })
  20157. .catch((err) => {
  20158. // console.log('浏览器不支持,请更换浏览器')
  20159. // } else {
  20160. this.captureScreen(_function, false);
  20161. console.log("请检查是否存在麦克风");
  20162. });
  20163. },
  20164. /**
  20165. * 停止录制
  20166. */
  20167. stopRecording(callback) {
  20168. this.recorder.stopRecording(() => {
  20169. // this.video.src = this.video.srcObject = null;
  20170. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20171. const url = URL.createObjectURL(this.recorder.getBlob());
  20172. const a = document.createElement("a"); //this.fileName+
  20173. let videoFile = new File(
  20174. [this.recorder.getBlob()],
  20175. this.courseDetail.title + "录屏.mp4",
  20176. {
  20177. type: "video/mp4",
  20178. }
  20179. );
  20180. let downloadUrl = URL.createObjectURL(videoFile);
  20181. if(this.$refs.classRoomHelperRef){
  20182. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20183. }
  20184. document.body.appendChild(a);
  20185. a.style.display = "none";
  20186. a.href = url;
  20187. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20188. a.click();
  20189. this.recorder.screen.stop();
  20190. this.recorder.destroy();
  20191. this.recorder = null;
  20192. this.videoStart = false;
  20193. // callback(false);
  20194. });
  20195. },
  20196. //初始化
  20197. captureScreen(callback, type) {
  20198. if (navigator.getDisplayMedia) {
  20199. //录制结束,文件下载
  20200. navigator
  20201. .getDisplayMedia({
  20202. video: true,
  20203. })
  20204. .then((screenStream) => {
  20205. if (type) {
  20206. navigator.mediaDevices
  20207. .getUserMedia({ audio: true })
  20208. .then((mic) => {
  20209. screenStream.addTrack(mic.getTracks()[0]);
  20210. callback(screenStream);
  20211. });
  20212. } else {
  20213. callback(screenStream);
  20214. }
  20215. })
  20216. .catch(function (error) {
  20217. console.log("error", error);
  20218. });
  20219. } else if (navigator.mediaDevices.getDisplayMedia) {
  20220. navigator.mediaDevices
  20221. .getDisplayMedia({
  20222. video: true,
  20223. })
  20224. .then((screenStream) => {
  20225. if (type) {
  20226. navigator.mediaDevices
  20227. .getUserMedia({ audio: true })
  20228. .then((mic) => {
  20229. screenStream.addTrack(mic.getTracks()[0]);
  20230. callback(screenStream);
  20231. });
  20232. } else {
  20233. callback(screenStream);
  20234. }
  20235. })
  20236. .catch(function (error) {
  20237. console.log("error", error);
  20238. });
  20239. } else {
  20240. var error = "getDisplayMedia API are not supported in this browser.";
  20241. console.log("error", error);
  20242. alert(error);
  20243. }
  20244. },
  20245. //流监听
  20246. addStreamStopListener(stream, callback) {
  20247. stream.addEventListener(
  20248. "ended",
  20249. function () {
  20250. callback();
  20251. callback = function () {};
  20252. },
  20253. false
  20254. );
  20255. stream.addEventListener(
  20256. "inactive",
  20257. function () {
  20258. callback();
  20259. callback = function () {};
  20260. },
  20261. false
  20262. );
  20263. stream.getTracks().forEach(function (track) {
  20264. track.addEventListener(
  20265. "ended",
  20266. function () {
  20267. callback();
  20268. callback = function () {};
  20269. },
  20270. false
  20271. );
  20272. track.addEventListener(
  20273. "inactive",
  20274. function () {
  20275. callback();
  20276. callback = function () {};
  20277. },
  20278. false
  20279. );
  20280. });
  20281. },
  20282. updateGroup() {
  20283. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20284. this.dialogVisibleGroup2 = true;
  20285. },
  20286. numberPan() {
  20287. if (
  20288. /[^\d]/.test(this.groupJson.number) ||
  20289. this.groupJson.number < 2 ||
  20290. this.groupJson.number > 10
  20291. ) {
  20292. this.$message.error("请输入2-10的数字");
  20293. this.groupJson.number = "";
  20294. }
  20295. },
  20296. updateGroupJson() {
  20297. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20298. if (
  20299. this.groupStudentUid[this.toolindex][i].length >
  20300. this.groupJson2.number
  20301. ) {
  20302. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20303. return;
  20304. }
  20305. }
  20306. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20307. this.islock = this.groupJson.islock == 1 ? true : false;
  20308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20309. this.taskCount
  20310. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20311. let params = [
  20312. {
  20313. cid: this.id,
  20314. chapters: JSON.stringify(this.chapInfoList),
  20315. uid: this.userid,
  20316. unitIndex: this.courseType,
  20317. },
  20318. ];
  20319. this.ajax
  20320. .post(this.$store.state.api + "updateWorkNew4", params)
  20321. .then((res) => {
  20322. this.$message.success("设置成功");
  20323. this.getCourseDetail(2);
  20324. this.dialogVisibleGroup2 = false;
  20325. this.groupJson2 = {};
  20326. this.$forceUpdate();
  20327. })
  20328. .catch((err) => {
  20329. this.$message.error("网络不佳");
  20330. console.error(err);
  20331. });
  20332. },
  20333. lockChair() {
  20334. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20335. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20336. this.updateGroupJson();
  20337. },
  20338. selectGroup(index) {
  20339. this.getCourseDetail(2, index);
  20340. },
  20341. joinGroup(index) {
  20342. if (this.groupJson.islock == 2) {
  20343. this.$message.error("位置已被锁定,无法加入");
  20344. return;
  20345. }
  20346. if (
  20347. this.groupStudent[this.toolindex][index].length >
  20348. this.groupJson.number ||
  20349. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20350. ) {
  20351. this.$message.error("位置已满,无法加入");
  20352. return;
  20353. }
  20354. let params = [
  20355. {
  20356. cid: this.id,
  20357. stage: this.courseType,
  20358. task: this.taskCount,
  20359. tool: this.toolindex,
  20360. g: index,
  20361. uid: this.userid,
  20362. },
  20363. ];
  20364. this.ajax
  20365. .post(this.$store.state.api + "joinGroup", params)
  20366. .then((res) => {
  20367. this.$message.success("加入成功");
  20368. this.getCourseDetail(2);
  20369. })
  20370. .catch((err) => {
  20371. this.$message.error("网络不佳");
  20372. console.error(err);
  20373. });
  20374. },
  20375. exitGroup(id) {
  20376. if (this.groupJson.islock == 2) {
  20377. this.$message.error("位置已被锁定,无法退出");
  20378. return;
  20379. }
  20380. let params = [
  20381. {
  20382. gid: id,
  20383. },
  20384. ];
  20385. this.ajax
  20386. .post(this.$store.state.api + "exitGroup", params)
  20387. .then((res) => {
  20388. this.$message.success("退出成功");
  20389. this.getCourseDetail(2);
  20390. })
  20391. .catch((err) => {
  20392. this.$message.error("网络不佳");
  20393. console.error(err);
  20394. });
  20395. },
  20396. groupUpload(index, task, gindex) {
  20397. this.taskCount = task;
  20398. this.toolindex = index;
  20399. this.groupIndex = gindex;
  20400. this.dialogVisibleGroupWork = true;
  20401. },
  20402. updateGroupChair(user) {
  20403. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20404. el.label = index;
  20405. return index != user.group;
  20406. });
  20407. this.updateGroupUser = user;
  20408. this.dialogVisibleUpdateGroup = true;
  20409. },
  20410. updateChair() {
  20411. if (
  20412. this.groupStudent[this.toolindex][this.checkChair].length >
  20413. this.groupJson.number ||
  20414. this.groupStudent[this.toolindex][this.checkChair].length ==
  20415. this.groupJson.number
  20416. ) {
  20417. this.$message.error("位置已满,无法加入");
  20418. return;
  20419. }
  20420. let params = [
  20421. {
  20422. cid: this.id,
  20423. stage: this.courseType,
  20424. task: this.taskCount,
  20425. tool: this.toolindex,
  20426. g: this.checkChair,
  20427. uid: this.updateGroupUser.userid,
  20428. },
  20429. ];
  20430. this.ajax
  20431. .post(this.$store.state.api + "joinGroup", params)
  20432. .then((res) => {
  20433. this.$message.success("修改成功");
  20434. this.updateGroupUser = {};
  20435. this.checkChair = "";
  20436. this.updateGroupArray = {};
  20437. this.dialogVisibleUpdateGroup = false;
  20438. this.getCourseDetail(2);
  20439. })
  20440. .catch((err) => {
  20441. this.$message.error("网络不佳");
  20442. console.error(err);
  20443. });
  20444. },
  20445. deleteGroupChair(gindex) {
  20446. this.checkDeleteGroup = [];
  20447. this.deleteGroupUser = JSON.parse(
  20448. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20449. );
  20450. this.deleteGroupArray = this.groupJson.group[gindex];
  20451. this.groupIndex = gindex;
  20452. this.dialogVisibleDeleteGroup = true;
  20453. },
  20454. async deleteChair() {
  20455. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20456. const gid =
  20457. this.groupStudent[this.toolindex][this.groupIndex][
  20458. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20459. this.checkDeleteGroup[i]
  20460. )
  20461. ];
  20462. let params = [
  20463. {
  20464. gid: gid.id,
  20465. },
  20466. ];
  20467. var a = await this.deleteChairA(params);
  20468. if (i == this.checkDeleteGroup.length - 1) {
  20469. this.$message.success("退出成功");
  20470. this.dialogVisibleDeleteGroup = false;
  20471. this.deleteGroupUser = [];
  20472. this.deleteGroupArray = {};
  20473. this.groupIndex = "";
  20474. this.checkDeleteGroup = [];
  20475. this.getCourseDetail(2);
  20476. }
  20477. }
  20478. },
  20479. deleteChairA(params) {
  20480. return new Promise((resolve, reject) => {
  20481. this.ajax
  20482. .post(this.$store.state.api + "exitGroup", params)
  20483. .then((res) => {
  20484. resolve(1);
  20485. })
  20486. .catch((err) => {
  20487. this.$message.error("网络不佳");
  20488. console.error(err);
  20489. });
  20490. });
  20491. },
  20492. contract(i) {
  20493. if (this.isCloseList[i].isClose == 0) {
  20494. this.isCloseList[i].isClose = 1;
  20495. } else {
  20496. this.isCloseList[i].isClose = 0;
  20497. }
  20498. this.$forceUpdate();
  20499. },
  20500. openWordCloud(toolindex) {
  20501. this.wordCloudData = '';
  20502. let array = [];
  20503. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20504. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20505. array.push({ name: works });
  20506. }
  20507. if (this.isGroup) {
  20508. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20509. let works = this.courseGroup.group[i].works[toolindex];
  20510. for (var j = 0; j < works.length; j++) {
  20511. let answer = JSON.parse(works[j].works)[0].answer;
  20512. array.push({ name: answer });
  20513. }
  20514. }
  20515. }
  20516. let _result = ''
  20517. array.forEach(e=>{
  20518. _result +=e.name+','
  20519. })
  20520. this.wordCloudData = _result;
  20521. this.dialogVisibleWordCloud = true;
  20522. this.wordCloudKey += 1;
  20523. },
  20524. uploadWorks(i) {
  20525. this.$confirm("确定导出作业吗?", "提示", {
  20526. confirmButtonText: "确定",
  20527. cancelButtonText: "取消",
  20528. type: "warning",
  20529. })
  20530. .then(() => {
  20531. const loading = this.$loading.service({
  20532. background: "rgba(255, 255, 255, 0.7)",
  20533. target: document.body,
  20534. text: "文件加载中...",
  20535. });
  20536. const _worksStudent = this.worksStudent;
  20537. let url = [];
  20538. var counts = {};
  20539. for (var l = 0; l < _worksStudent[i].length; l++) {
  20540. var item = _worksStudent[i][l];
  20541. var name = item.sName;
  20542. if (!counts.hasOwnProperty(name)) {
  20543. counts[name] = 0;
  20544. } else {
  20545. counts[name]++;
  20546. }
  20547. if (counts[name] > 0) {
  20548. item.sName += " (" + counts[name] + ")";
  20549. }
  20550. }
  20551. for (var l = 0; l < _worksStudent[i].length; l++) {
  20552. var item = _worksStudent[i][l];
  20553. if (
  20554. item.works.indexOf(
  20555. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20556. ) !== -1 &&
  20557. item.works.indexOf("img") === -1
  20558. ) {
  20559. url.push({ name: item.sName, url: item.works });
  20560. }
  20561. }
  20562. // var toolList = [
  20563. // { name: "电子白板", tool: 1 },
  20564. // { name: "思维导图", tool: 3 },
  20565. // { name: "协同文档", tool: 6 },
  20566. // { name: "思维网格", tool: 7 },
  20567. // { name: "素材库", tool: 8 },
  20568. // { name: "学习资料", tool: 17 },
  20569. // { name: "便签", tool: 2 },
  20570. // { name: "问卷调查", tool: 4 },
  20571. // { name: "选择题", tool: 45 },
  20572. // { name: "倒计时", tool: 10 },
  20573. // { name: "问答", tool: 15 },
  20574. // { name: "课程设计", tool: 26 },
  20575. // { name: "训练服务器", tool: 18 },
  20576. // { name: "作业提交", tool: 16 },
  20577. // { name: "批量上传", tool: 50 },
  20578. // { name: "AIoT Blockly", tool: 21 },
  20579. // { name: "AI Python", tool: 23 },
  20580. // { name: "AI Blockly", tool: 24 },
  20581. // { name: "目标管理", tool: 25 },
  20582. // { name: "数学画板", tool: 31 },
  20583. // { name: "翻译", tool: 28 },
  20584. // { name: "魔盒识字", tool: 37 },
  20585. // { name: "数学画板", tool: 31 },
  20586. // { name: "24点", tool: 38 },
  20587. // { name: "GeoGebra", tool: 39 },
  20588. // { name: "源码编辑", tool: 32 },
  20589. // { name: "个人评价", tool: 40 },
  20590. // { name: "选择匹配", tool: 41 },
  20591. // { name: "汉字宫", tool: 44 },
  20592. // { name: "排序", tool: 47 },
  20593. // { name: "表格", tool: 48 },
  20594. // { name: "文档", tool: 52 },
  20595. // { name: "学生分组", tool: 49 },
  20596. // { name: "CocoPi", tool: 57 },
  20597. // { name: "模拟驾驶", tool: 58 },
  20598. // { name: "路径搜索", tool: 59 },
  20599. // { name: "深度学习", tool: 60 },
  20600. // { name: "全历史", tool: 61 },
  20601. // { name: "交互视频", tool: 62 },
  20602. // { name: "海龟编程", tool: 63 },
  20603. // { name: "挑人", tool: 65 },
  20604. // { name: "公式编辑", tool: 66 },
  20605. // { name: "分子结构", tool: 67 },
  20606. // { name: "时间轴", tool: 68 },
  20607. // ];
  20608. // var toolName = "";
  20609. // for(var w = 0;w<toolList.length;w++){
  20610. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20611. // toolName = toolList[w].name;
  20612. // }
  20613. // }
  20614. console.log(url);
  20615. this.downLoadAll(url, loading);
  20616. })
  20617. .catch(() => {});
  20618. },
  20619. downLoadAll(url, loading) {
  20620. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20621. const zip = new JSZip();
  20622. const cache = {};
  20623. const promises = [];
  20624. data.forEach((item) => {
  20625. const promise = getFile(item.url).then((data) => {
  20626. if (data.data != 1) {
  20627. // 下载文件, 并存成ArrayBuffer对象
  20628. const file_name =
  20629. item.name +
  20630. "." +
  20631. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20632. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20633. cache[file_name] = data.data;
  20634. }
  20635. });
  20636. promises.push(promise);
  20637. });
  20638. Promise.all(promises).then(() => {
  20639. zip.generateAsync({ type: "blob" }).then((content) => {
  20640. // 生成二进制流
  20641. FileSaver.saveAs(
  20642. content,
  20643. this.courseDetail.title + "-" + "作业提交工具.zip"
  20644. ); // 利用file-saver保存文件 自定义文件名
  20645. setTimeout(() => {
  20646. loading.close();
  20647. }, 2000);
  20648. });
  20649. });
  20650. },
  20651. pickStudent(stu) {
  20652. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20653. return;
  20654. }
  20655. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20656. confirmButtonText: "确定",
  20657. cancelButtonText: "取消",
  20658. type: "warning",
  20659. })
  20660. .then(() => {
  20661. let params = [
  20662. {
  20663. uid: stu.userid,
  20664. cid: this.id,
  20665. stage: this.courseType,
  20666. task: this.taskCount,
  20667. tool: this.toolindex,
  20668. },
  20669. ];
  20670. this.ajax
  20671. .post(this.$store.state.api + "updateCoursePick", params)
  20672. .then((res) => {
  20673. this.$message.success("操作成功");
  20674. this.getPick();
  20675. })
  20676. .catch((err) => {
  20677. this.$message.error("网络不佳");
  20678. console.error(err);
  20679. });
  20680. })
  20681. .catch(() => {});
  20682. },
  20683. selectUser(){
  20684. let params = {
  20685. userid: this.userid,
  20686. };
  20687. this.ajax
  20688. .get(this.$store.state.api + "selectUser", params)
  20689. .then((res) => {
  20690. this.userMes = res.data[0];
  20691. })
  20692. .catch((err) => {
  20693. console.error(err);
  20694. });
  20695. },
  20696. setEngText(i){
  20697. this.newEngIndex = i;
  20698. this.$forceUpdate();
  20699. },
  20700. addCorrect(){
  20701. this.$confirm("你确定提交批改嘛?", "提示", {
  20702. confirmButtonText: "确定",
  20703. showCancelButton: false,
  20704. closeOnClickModal: false,
  20705. type: "warning",
  20706. })
  20707. .then(() => {
  20708. let params = {
  20709. cid: this.id,
  20710. s: parseInt(this.courseType),
  20711. t: this.taskCount,
  20712. tool: this.toolindex,
  20713. wid: this.engWid,
  20714. c: this.userid,
  20715. 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) : "",
  20716. };
  20717. this.ajax
  20718. .get(this.$store.state.api + "addEngC", params)
  20719. .then((res) => {
  20720. this.$message.success("提交成功");
  20721. this.engUpdateDialogVisible = false;
  20722. })
  20723. .catch((err) => {
  20724. console.error(err);
  20725. });
  20726. })
  20727. .catch(() => {});
  20728. },
  20729. selectEngC(id,z){
  20730. let params = {
  20731. workid: id,
  20732. };
  20733. this.ajax
  20734. .get(this.$store.state.api + "selectEngC", params)
  20735. .then((res) => {
  20736. if(res.data[0].length == 0){
  20737. this.newEnglishList.engTitle = z.engTitle;
  20738. this.newEnglishList.engText = z.engText;
  20739. }else{
  20740. var a = res.data[0];
  20741. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20742. if(this.userMes[0].type == 2){
  20743. var snum = 0;
  20744. for(var i = 0;i<a.length;i++){
  20745. if(this.userMes[0].userid == a[i].correct){
  20746. this.newEnglishList = JSON.parse(a[i].cWork);
  20747. snum = 1;
  20748. }
  20749. }
  20750. if(snum == 0){
  20751. this.newEnglishList = { engTitle:"",engText:"" };
  20752. this.newEnglishList.engTitle = z.engTitle;
  20753. this.newEnglishList.engText = z.engText;
  20754. }
  20755. }else if(this.userMes[0].type == 1){
  20756. var num = 0;
  20757. for(var w= 0;w<a.length;w++){
  20758. if(this.userMes[0].userid == a[w].correct){
  20759. num = 1;
  20760. }
  20761. }
  20762. if(num == 0){
  20763. this.isNoUserid = true;
  20764. var c = JSON.parse(JSON.stringify(z));
  20765. this.oldEnglishJson1 = c;
  20766. }else{
  20767. this.isNoUserid = false;
  20768. }
  20769. var b = a.sort((item, index) => {
  20770. console.log(item)
  20771. if (item.correct === this.userMes[0].userid) {
  20772. return -1; // 将a移到前面
  20773. } else if (index.correct === this.userMes[0].userid) {
  20774. return 1; // 将b移到前面
  20775. } else {
  20776. return 0; // 保持默认顺序
  20777. }
  20778. });
  20779. for(var p = 0;p<b.length;p++){
  20780. for(var y = 0;y<ppp.length;y++){
  20781. if(b[p].id == ppp[y].id){
  20782. b[p].cWork = JSON.parse(ppp[y].cWork);
  20783. break
  20784. }
  20785. }
  20786. }
  20787. this.newEnglishList1 = b;
  20788. }
  20789. }
  20790. this.greyType = false;
  20791. setTimeout(() => {
  20792. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20793. if(this.newEnglishList1.length > 0){
  20794. if(this.isNoUserid == true){
  20795. this.engListLength = this.newEnglishList1.length + 1;
  20796. this.newEngIndex = -1;
  20797. }else{
  20798. this.engListLength = this.newEnglishList1.length;
  20799. this.newEngIndex = 0;
  20800. }
  20801. }
  20802. if(this.userMes[0].type == 2){
  20803. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20804. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20805. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20806. }else if(this.newEngIndex == -1){
  20807. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20808. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20809. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20810. }
  20811. }, 500);
  20812. this.engUpdateDialogVisible = true;
  20813. this.$forceUpdate();
  20814. })
  20815. .catch((err) => {
  20816. console.error(err);
  20817. });
  20818. },
  20819. getPick() {
  20820. let params = {
  20821. cid: this.id,
  20822. };
  20823. this.ajax
  20824. .get(this.$store.state.api + "getPick", params)
  20825. .then((res) => {
  20826. let array = [];
  20827. for (var i = 0; i < res.data[0].length; i++) {
  20828. array.push(res.data[0][i].userid);
  20829. }
  20830. this.isPickStudent = array;
  20831. if (array.indexOf(this.userid) !== -1) {
  20832. this.$confirm("你被老师选到啦!", "提示", {
  20833. confirmButtonText: "确定",
  20834. showCancelButton: false,
  20835. closeOnClickModal: false,
  20836. type: "warning",
  20837. })
  20838. .then(() => {
  20839. let pa = [
  20840. {
  20841. uid: this.userid,
  20842. cid: this.id,
  20843. },
  20844. ];
  20845. this.ajax
  20846. .post(this.$store.state.api + "deletePick", pa)
  20847. .then((res) => {
  20848. this.getPick();
  20849. })
  20850. .catch((err) => {
  20851. this.$message.error("网络不佳");
  20852. console.error(err);
  20853. });
  20854. })
  20855. .catch(() => {});
  20856. }
  20857. })
  20858. .catch((err) => {
  20859. this.$message.error("网络不佳");
  20860. console.error(err);
  20861. });
  20862. },
  20863. foldEva() {
  20864. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20866. } else {
  20867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20868. setTimeout(() => {
  20869. this.checkEva();
  20870. setTimeout(() => {
  20871. this.checkEva();
  20872. }, 500);
  20873. }, 0);
  20874. }
  20875. this.$forceUpdate();
  20876. },
  20877. panToolHeight(tool) {
  20878. var _tool = document.querySelectorAll('#'+tool)[0]
  20879. var _toolA = _tool ? _tool.offsetHeight : 0
  20880. var _toolC = 0
  20881. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20882. let boolean2 = (_toolA > _toolC) ? true : false
  20883. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20884. this.$forceUpdate();
  20885. },
  20886. async checkLink(url) {
  20887. console.log(url)
  20888. let _url = url
  20889. try {
  20890. const response = await fetch(url);
  20891. if(!response.ok){
  20892. _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]))
  20893. }
  20894. console.log(response.ok)
  20895. } catch (error) {
  20896. console.error('Error checking link:', error);
  20897. // console.log(false)
  20898. _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]))
  20899. }
  20900. // console.log(_url)
  20901. return _url
  20902. },
  20903. getScoreList(){
  20904. let params = {
  20905. cid: this.id,
  20906. };
  20907. this.ajax
  20908. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20909. .then((res) => {
  20910. let result = res.data;
  20911. this.scoreList.datalist = result[0];
  20912. this.scoreList.isScoreList = result[1];
  20913. })
  20914. .catch((err) => {
  20915. console.error(err);
  20916. });
  20917. },
  20918. setClassRoomHelperWidth(width){
  20919. this.classRoomHelperWidth = width
  20920. },
  20921. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20922. this.$refs.choseWorksDetailDialogRef.open({
  20923. toolType:tooc,
  20924. tType: this.tType,
  20925. toolIndex: toolIndex
  20926. });
  20927. this.changeSplitScreenBehavior({
  20928. code: 1,
  20929. form: {
  20930. toolType:tooc,
  20931. toolIndex: toolIndex,
  20932. courseType: this.courseType,
  20933. taskCount: this.taskCount,
  20934. type: 0
  20935. }
  20936. });
  20937. },
  20938. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20939. this.$refs.statisticalAnalysisRef.open({
  20940. worksStudent: this.worksStudent[toolIndex],
  20941. tType: this.tType,
  20942. toolIndex: toolIndex
  20943. });
  20944. this.changeSplitScreenBehavior({
  20945. code: 2,
  20946. form: {
  20947. toolType:4,
  20948. courseType: this.courseType,
  20949. taskCount: this.taskCount,
  20950. toolIndex: toolIndex,
  20951. type: 0
  20952. }
  20953. });
  20954. },
  20955. statisticalAnalysisRefresh(toolIndex) {
  20956. this.$refs.statisticalAnalysisRef.refreshData({
  20957. worksStudent: this.worksStudent[toolIndex],
  20958. tType: this.tType,
  20959. toolIndex: toolIndex
  20960. });
  20961. },
  20962. async splitScreenBehavior(type = 0) {
  20963. // return;
  20964. if (this.splitScreenData.loading)
  20965. return this.$message.info("操作过快,请稍等");
  20966. if (type == 0) {
  20967. //关闭分屏
  20968. this.splitScreenData.isOpen = false;
  20969. // this.splitScreenData.userId = "";
  20970. // this.splitScreenData.uid = "";
  20971. this.splitScreenData.behavior = null;
  20972. await this.updateSplitScreenData(1);
  20973. this.$message.success("已关闭分屏模式");
  20974. this.studentFreePreview(false);
  20975. this.OpenJobPreview(false);
  20976. // this.followingMode(false);
  20977. } else if (type == 1) {
  20978. //开启分屏
  20979. this.splitScreenData.isOpen = true;
  20980. this.splitScreenData.userId = this.userid;
  20981. this.splitScreenData.uid = this.splitScreenData.myUid;
  20982. this.splitScreenData.behavior = null;
  20983. let status = await this.updateSplitScreenData(0);
  20984. this.changeSplitScreenBehavior({form:{}})
  20985. if (status == 1) {
  20986. this.$message.success("已开启分屏");
  20987. this.studentFreePreview(false);
  20988. this.OpenJobPreview(true);
  20989. // this.followingMode(true);
  20990. } else {
  20991. this.splitScreenData.isOpen = false;
  20992. this.splitScreenData.userId = "";
  20993. this.splitScreenData.uid = "";
  20994. this.splitScreenData.behavior = null;
  20995. this.$message.success("分屏开启失败");
  20996. }
  20997. }
  20998. },
  20999. enterFullScreen() {
  21000. let element = document.documentElement;
  21001. if (element.requestFullscreen) {
  21002. element.requestFullscreen();
  21003. } else if (element.mozRequestFullScreen) { /* Firefox */
  21004. element.mozRequestFullScreen();
  21005. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21006. element.webkitRequestFullscreen();
  21007. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21008. element.msRequestFullscreen();
  21009. }
  21010. },
  21011. exitFullScreen() {
  21012. if (document.exitFullscreen) {
  21013. document.exitFullscreen();
  21014. } else if (document.mozCancelFullScreen) { /* Firefox */
  21015. document.mozCancelFullScreen();
  21016. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21017. document.webkitExitFullscreen();
  21018. } else if (document.msExitFullscreen) { /* IE/Edge */
  21019. document.msExitFullscreen();
  21020. }
  21021. },
  21022. confirmOpen(){
  21023. this.splitScreenData.isOpen = true;
  21024. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21025. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21026. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21027. this.confirmOpenDig = false
  21028. if (!document.fullscreenElement) {
  21029. this.enterFullScreen();
  21030. }
  21031. // if (this.timer2) {
  21032. // clearInterval(this.timer2);
  21033. // this.timer2 = null;
  21034. // }
  21035. // this.timer2 = setInterval(()=> {
  21036. // this.getSplitScreenData();//获取分屏数据
  21037. // }, 5000);
  21038. this.$message.success("分屏模式已开启");
  21039. },
  21040. // 获取分屏数据
  21041. getSplitScreenData() {
  21042. // return;
  21043. // if (this.tType != 1) return;
  21044. let params = {
  21045. cid: this.id
  21046. };
  21047. this.ajax
  21048. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21049. .then(async res => {
  21050. let data = res.data[0][0]["splitScreenData"];
  21051. console.log("获取了分屏数:", data);
  21052. if (data) {
  21053. data = JSON.parse(data);
  21054. if (
  21055. !this.splitScreenData.isOpen &&
  21056. data.isOpen &&
  21057. this.splitScreenData.myUid == data.uid
  21058. ) {
  21059. this.splitScreenData.isOpen = false;
  21060. this.splitScreenData.userId = "";
  21061. this.splitScreenData.uid = "";
  21062. this.splitScreenData.behavior = null;
  21063. await this.updateSplitScreenData(1);
  21064. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21065. this.confirmOpenDig = true
  21066. this.confirmOpenDigData = data
  21067. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21068. this.splitScreenData.isOpen = false;
  21069. this.splitScreenData.userId = "";
  21070. this.splitScreenData.uid = "";
  21071. this.splitScreenData.behavior = null;
  21072. this.$message.error("已结束分屏模式");
  21073. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21074. this.splitScreenData.isOpen = true;
  21075. this.splitScreenData.uid = data.uid;
  21076. this.splitScreenData.userId = data.userId;
  21077. this.splitScreenData.behavior = data.behavior;
  21078. }
  21079. this.doSplitScreenBehavior();
  21080. } else {
  21081. if (this.splitScreenData.isOpen) {
  21082. this.splitScreenData.isOpen = false;
  21083. this.splitScreenData.userId = "";
  21084. this.splitScreenData.uid = "";
  21085. this.splitScreenData.behavior = null;
  21086. this.$message.error("已结束分屏模式");
  21087. // if (this.timer2) {
  21088. // clearInterval(this.timer2);
  21089. // this.timer2 = null;
  21090. // }
  21091. // this.timer2 = setInterval(()=> {
  21092. // this.getSplitScreenData();//获取分屏数据
  21093. // }, 5000);
  21094. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21095. confirmButtonText: '确定', //确认按钮的文字
  21096. showCancelButton: false, //是否显示取消按钮
  21097. showClose: false, //是否显示关闭按钮
  21098. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21099. type: "warning",
  21100. })
  21101. .then(() => {
  21102. if (document.fullscreenElement) {
  21103. this.exitFullScreen();
  21104. }
  21105. })
  21106. .catch(() => {});
  21107. }
  21108. }
  21109. })
  21110. .catch(e => {
  21111. console.log("获取分屏数出错:", e);
  21112. });
  21113. },
  21114. // 操作
  21115. doSplitScreenBehavior() {
  21116. if (
  21117. this.splitScreenData.isOpen &&
  21118. this.splitScreenData.uid != this.splitScreenData.myUid
  21119. ) {
  21120. let behavior = this.splitScreenData.behavior;
  21121. if (behavior) {
  21122. // console.log('behavior',behavior);
  21123. // this.toolindex = behavior.form.toolType
  21124. // 初始状态
  21125. if (behavior.code === 99) {
  21126. //初始化
  21127. this.fullDialogVisible = false;
  21128. if(this.$refs.choseWorksDetailDialogRef.show){
  21129. this.$refs.choseWorksDetailDialogRef.close();
  21130. }
  21131. if(this.$refs.statisticalAnalysisRef.show){
  21132. this.$refs.statisticalAnalysisRef.close();
  21133. }
  21134. }
  21135. // 文件列表
  21136. if (behavior.code === 0) {
  21137. //开启内容列表弹窗
  21138. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21139. }else{
  21140. this.fullDialogVisible = false;
  21141. }
  21142. // 打开工具
  21143. if (behavior.code === 1) {
  21144. //关于选择题的作业详细的操作
  21145. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21146. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21147. this.courseType = behavior.form.courseType;
  21148. this.taskCount = behavior.form.taskCount;
  21149. }
  21150. this.$nextTick(() => {
  21151. if (this.$refs.choseWorksDetailDialogRef.show) {
  21152. //已经打开了
  21153. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21154. } else {
  21155. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21156. }
  21157. });
  21158. }else{
  21159. this.$refs.choseWorksDetailDialogRef.close()
  21160. }
  21161. // 问卷调查
  21162. if(behavior.code === 2){
  21163. if(this.$refs.statisticalAnalysisRef.show){
  21164. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21165. }else{
  21166. this.$refs.statisticalAnalysisRef.open({
  21167. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21168. tType: this.tType,
  21169. toolIndex: behavior.form.toolIndex
  21170. });
  21171. }
  21172. }else{
  21173. this.$refs.statisticalAnalysisRef.close();
  21174. }
  21175. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21176. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21177. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21178. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21179. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21180. if (behavior.form.courseType != this.courseType ||
  21181. behavior.form.taskCount != this.taskCount ||
  21182. behavior.form.toolType != this.toolindex
  21183. ) {
  21184. var a = document.scrollingElement;
  21185. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21186. if (target) {
  21187. target.scrollIntoView(true);
  21188. setTimeout(()=>{
  21189. let scrollBody = document.querySelector('.body_student').parentElement
  21190. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21191. }, 0);
  21192. // setTimeout(() => {
  21193. // a.scrollTop = 0
  21194. // }, 0);
  21195. }
  21196. }
  21197. if(this.courseType !=behavior.form.courseType){
  21198. this.courseType = behavior.form.courseType;
  21199. }
  21200. if(this.taskCount !=behavior.form.taskCount){
  21201. this.taskCount = behavior.form.taskCount;
  21202. }
  21203. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21204. this.toolindex = behavior.form.toolType;
  21205. }
  21206. // if(behavior.form.navId){
  21207. // this.navId = behavior.form.navId
  21208. // }
  21209. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21210. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21211. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21212. this.getCourseDetail()
  21213. }
  21214. this.setContent2(false)
  21215. }
  21216. } else {
  21217. }
  21218. }
  21219. },
  21220. // 修改分屏数据
  21221. updateSplitScreenData(empty = 0) {
  21222. return new Promise(resolve => {
  21223. if(this.userid!==this.courseDetail.userid){
  21224. if(!this.courseDetail.userid){
  21225. return setTimeout(()=>{
  21226. this.updateSplitScreenData(empty)
  21227. },2000)
  21228. }
  21229. return;
  21230. };
  21231. if (
  21232. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21233. this.splitScreenData.userId == this.userid
  21234. ) {
  21235. this.splitScreenData.loading = true;
  21236. let params = [
  21237. {
  21238. cid: this.id,
  21239. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21240. }
  21241. ];
  21242. this.ajax
  21243. .post(
  21244. this.$store.state.api + "update_courseSplitScreenData",
  21245. params
  21246. )
  21247. .then(res => {
  21248. this.splitScreenData.loading = false;
  21249. if (res.data == 1) {
  21250. resolve(1);
  21251. console.log("修改分屏数据成功");
  21252. }
  21253. })
  21254. .catch(e => {
  21255. this.splitScreenData.loading = false;
  21256. console.log("修改分屏数据失败", e);
  21257. resoleve(0);
  21258. });
  21259. } else if (empty == 2 && this.tType == 1) {
  21260. console.log("清空清空清空清空")
  21261. let params = [
  21262. {
  21263. cid: this.id,
  21264. nData: ""
  21265. }
  21266. ];
  21267. return this.ajax
  21268. .post(
  21269. this.$store.state.api + "update_courseSplitScreenData",
  21270. params
  21271. )
  21272. .then(_ => resolve(1))
  21273. .catch(_ => resolve(0));
  21274. } else {
  21275. return resolve(0);
  21276. }
  21277. });
  21278. },
  21279. // 修改分屏数据
  21280. changeSplitScreenBehavior(newValue) {
  21281. if (
  21282. this.splitScreenData.isOpen &&
  21283. this.splitScreenData.uid == this.splitScreenData.myUid
  21284. ) {
  21285. let _behavior = null;
  21286. if(!newValue){
  21287. _behavior = {}
  21288. }else{
  21289. _behavior = newValue
  21290. }
  21291. if(_behavior.form){
  21292. _behavior.form.taskCount = this.taskCount;
  21293. _behavior.form.courseType = this.courseType
  21294. }else{
  21295. _behavior.form = {
  21296. taskCount:this.taskCount,
  21297. courseType:this.courseType,
  21298. }
  21299. }
  21300. this.splitScreenData.behavior = _behavior;
  21301. this.updateSplitScreenData(0);
  21302. }
  21303. },
  21304. studentFreePreview(flag) {
  21305. this.IsLookOpen = flag;
  21306. this.updateLookOpen();
  21307. this.followingMode(flag)
  21308. },
  21309. OpenJobPreview(flag) {
  21310. this.sIsOpen = flag;
  21311. this.updateSLook();
  21312. },
  21313. followingMode(flag) {
  21314. this.IsFollow = flag;
  21315. this.updateFollow();
  21316. },
  21317. StulookMode(flag) {
  21318. this.IsStulook = flag;
  21319. this.updateIsStulook();
  21320. },
  21321. },
  21322. directives: {
  21323. // 使用局部注册指令的方式
  21324. resize: {
  21325. // 指令的名称
  21326. bind(el, binding) {
  21327. // el为绑定的元素,binding为绑定给指令的对象
  21328. let width = "",
  21329. height = "";
  21330. function isReize() {
  21331. const style = document.defaultView.getComputedStyle(el);
  21332. if (width !== style.width || height !== style.height) {
  21333. binding.value(); // 关键
  21334. }
  21335. width = style.width;
  21336. height = style.height;
  21337. }
  21338. el.__vueSetInterval__ = setInterval(isReize, 300);
  21339. },
  21340. unbind(el) {
  21341. clearInterval(el.__vueSetInterval__);
  21342. },
  21343. },
  21344. autoHeight: {
  21345. update(el, binding) {
  21346. const { value } = binding
  21347. if (value && typeof value === 'number') {
  21348. el.style.height = `${value}px`
  21349. } else {
  21350. el.style.height = 'auto'
  21351. }
  21352. },
  21353. componentUpdated(el) {
  21354. el.style.height = `${el.scrollHeight}px`
  21355. },
  21356. },
  21357. },
  21358. beforeDestroy() {
  21359. window.onresize = null;
  21360. clearInterval(this.timer);
  21361. this.timer = null;
  21362. clearInterval(this.timer2);
  21363. this.timer2 = null;
  21364. clearInterval(this.opertimer);
  21365. this.opertimer = null;
  21366. this.updateSplitScreenData(1);
  21367. },
  21368. computed: {
  21369. renderedFormula2() {
  21370. return function(val){
  21371. // 处理换行符和HTML实体
  21372. const normalized = val
  21373. .replace(/&amp;/g, '&')
  21374. .replace(/<br\/?>/g, '\n');
  21375. // 匹配行内公式($...$)和块级公式($$...$$)
  21376. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21377. try {
  21378. return katex.renderToString(expr.trim(), {
  21379. displayMode: false,
  21380. throwOnError: false,
  21381. macros: {
  21382. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21383. }
  21384. });
  21385. } catch (e) {
  21386. console.warn('KaTeX渲染失败:', e);
  21387. return `<span style="color:red">${expr}</span>`;
  21388. }
  21389. })
  21390. }
  21391. },
  21392. renderedFormula() {
  21393. return function(val){
  21394. try {
  21395. // 判断是否含有HTML标签,<tag ...>...</tag>
  21396. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21397. if (!hasTag) {
  21398. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21399. // 纯文本,整体渲染
  21400. try {
  21401. return katex.renderToString(val.trim(), {
  21402. throwOnError: false,
  21403. strict: false,
  21404. output: "htmlAndMathml"
  21405. });
  21406. } catch (e) {
  21407. return val; // 渲染失败原样输出
  21408. }
  21409. } else {
  21410. // 有标签,对每个标签内容渲染
  21411. return val.replace(
  21412. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21413. (match, tag, attrs, inner) => {
  21414. let html;
  21415. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21416. try {
  21417. html = katex.renderToString(inner.trim(), {
  21418. throwOnError: false,
  21419. strict: false,
  21420. output: "htmlAndMathml"
  21421. });
  21422. } catch (e) {
  21423. html = inner;
  21424. }
  21425. return `<${tag}${attrs}>${html}</${tag}>`;
  21426. }
  21427. );
  21428. }
  21429. } catch (e) {
  21430. console.error('KaTeX渲染错误:', e);
  21431. return val;
  21432. }
  21433. }
  21434. },
  21435. isAndroid() {
  21436. return /Android/i.test(navigator.userAgent);
  21437. },
  21438. contentConvent() {
  21439. return function (c) {
  21440. return c
  21441. ? c
  21442. .replaceAll(/\r\n/g, "<br/>")
  21443. .replaceAll(/\n/g, "<br/>")
  21444. .replaceAll(/\s/g, "&nbsp")
  21445. : "";
  21446. };
  21447. },
  21448. commentRight(){
  21449. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21450. return "35px";
  21451. }
  21452. return `calc(${this.classRoomHelperWidth} + 5px)`
  21453. // if(this.$refs["classRoomHelperRef"].type==0){
  21454. // return "100px";
  21455. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21456. // return "502px"
  21457. // }else{
  21458. // return "0px"
  21459. // }
  21460. },
  21461. checkUpload() {
  21462. return function () {
  21463. var studentK = [];
  21464. if (this.plworkFile.length > 0) {
  21465. for (var z = 0; z < this.plworkFile.length; z++) {
  21466. studentK.push(this.plworkFile[z].username);
  21467. }
  21468. studentK = studentK.join(",");
  21469. }
  21470. var a = this.uploadStudentJuri.filter((el) => {
  21471. return studentK.indexOf(el.userid) == -1;
  21472. });
  21473. return a;
  21474. };
  21475. },
  21476. getSName() {
  21477. return function (name) {
  21478. var check = name;
  21479. this.uploadStudentJuri.forEach((el) => {
  21480. if (el.userid == check) {
  21481. check = el.name ? el.name : el.username;
  21482. }
  21483. });
  21484. return check;
  21485. };
  21486. },
  21487. getImgList() {
  21488. return function (val) {
  21489. let srcList = []; // 定义一个数组用来接收后面的img地址
  21490. val.replace(
  21491. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21492. function (match, capture) {
  21493. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21494. srcList.push(capture);
  21495. }
  21496. );
  21497. return srcList;
  21498. };
  21499. },
  21500. retrnToolHeight(){
  21501. return function (tool) {
  21502. var _tool = document.querySelectorAll('#'+tool)[0]
  21503. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21504. };
  21505. },
  21506. Correct() {
  21507. return function (c) {
  21508. let w = "";
  21509. let a = this.correctWord;
  21510. for(var k = 0;k<a.length;k++){
  21511. //diffWordsWithSpace
  21512. if(a.length > 1){
  21513. if(a[k].added == true){
  21514. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21515. }else if(a[k].removed == true){
  21516. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21517. }else{
  21518. w += '<span>' + a[k].value + '</span>';
  21519. }
  21520. }else{
  21521. w = c
  21522. }
  21523. //diffChars方法
  21524. // if(a.length > 1){
  21525. // if(w == ""){
  21526. // if(a[k].added == true){
  21527. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21528. // }else if(a[k].removed == true){
  21529. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21530. // }
  21531. // }else{
  21532. // if(k == a.length - 1){
  21533. // if(a[k].added == true){
  21534. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21535. // }else if(a[k].removed == true){
  21536. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21537. // }
  21538. // }else{
  21539. // if(a[k].added == true){
  21540. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21541. // }else if(a[k].removed == true){
  21542. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21543. // }
  21544. // }
  21545. // }
  21546. // }else{
  21547. // w = c
  21548. // }
  21549. }
  21550. c = w;
  21551. return c;
  21552. };
  21553. },
  21554. },
  21555. mounted() {
  21556. if (this.tType == 1) {
  21557. // 开局关闭学生查看内容
  21558. this.StulookMode(false)
  21559. // 开局打开跟随模式
  21560. this.followingMode(true)
  21561. }
  21562. document.body.addEventListener("click", (e) => {
  21563. if (this.isUpdateToolDetail1) {
  21564. this.updateToolDetail(this.toolDetailIndex);
  21565. }
  21566. });
  21567. this.setOperationTime();
  21568. this.selectEva();
  21569. this.getCourseDetail();
  21570. this.selectCount();
  21571. this.getHomeWork();
  21572. this.selectUser();
  21573. this.getAIJ();
  21574. this.updateSplitScreenData(2);
  21575. this.splitScreenData.myUid = uuidv4();
  21576. this.contentDialog = false;
  21577. this.setContent2(true);
  21578. if (this.tType == 4) {
  21579. this.pzDialog = true;
  21580. this.selectPz();
  21581. }
  21582. // 获取评分列表
  21583. this.getScoreList()
  21584. document.scrollingElement.scrollTop = 0;
  21585. window.addEventListener("resize", () => {
  21586. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21587. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21588. if (this.showType == 2 || this.showType == 3) {
  21589. document.getElementsByClassName("navBox")[0].style.height =
  21590. a - 40 + 0+ "px";
  21591. } else {
  21592. document.getElementsByClassName("navBox")[0].style.height =
  21593. a - 40 + "px";
  21594. }
  21595. });
  21596. let _this = this;
  21597. setTimeout(() => {
  21598. // _this.vedioTime = [];
  21599. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21600. // _this.vedioTime[i] = document.getElementsByClassName(
  21601. // "vjs-duration-display"
  21602. // )[i].textContent;
  21603. // }
  21604. }, 1000);
  21605. try{
  21606. if (this.screenType == 2) {
  21607. window.topU.postMessage({ allScreen: 4 }, "*");
  21608. } else if (this.screenType == 3) {
  21609. window.topU.postMessage({ allScreen: 5 }, "*");
  21610. } else if (this.screenType == 1) {
  21611. window.topU.postMessage({ allScreen: 6 }, "*");
  21612. }
  21613. }catch(e){
  21614. console.log(e)
  21615. }
  21616. },
  21617. };
  21618. </script>
  21619. <style scoped>
  21620. @media screen and (max-width: 1280px) {
  21621. /* .courseIndex > div:first-child(2) {
  21622. width: 15% !important;
  21623. } */
  21624. /* .navText {
  21625. width: 120px !important;
  21626. } */
  21627. .evaCss {
  21628. flex-direction: column !important;
  21629. align-items: center !important;
  21630. }
  21631. .elist_input {
  21632. width: 90% !important;
  21633. }
  21634. .dialog_diy1 >>> .el-dialog {
  21635. width: 100% !important;
  21636. }
  21637. .rightWidthCss {
  21638. width: 100% !important;
  21639. }
  21640. .dialog_diy3 >>> .el-dialog {
  21641. width: 100% !important;
  21642. }
  21643. .addToolCss {
  21644. right: 0 !important;
  21645. width: 100% !important;
  21646. min-width: unset !important;
  21647. }
  21648. }
  21649. .evaCssMax {
  21650. flex-direction: column !important;
  21651. align-items: center !important;
  21652. }
  21653. .dialog_diy >>> .el-dialog {
  21654. margin-top: 10vh !important;
  21655. }
  21656. .body_student {
  21657. width: 77%;
  21658. height: 100%;
  21659. position: absolute;
  21660. left: 22%;
  21661. top: 0;
  21662. }
  21663. .student_head {
  21664. width: 100%;
  21665. margin: 20px auto 0;
  21666. padding-bottom: 20px;
  21667. display: flex;
  21668. flex-direction: column;
  21669. flex-wrap: nowrap;
  21670. align-items: flex-start;
  21671. justify-content: flex-start;
  21672. }
  21673. .pb_left {
  21674. width: 15%;
  21675. margin-right: 10px;
  21676. background: rgb(255, 255, 255);
  21677. position: fixed;
  21678. height: calc(100% - 40px);
  21679. border-radius: 20px;
  21680. padding-bottom: 15px;
  21681. box-sizing: border-box;
  21682. }
  21683. .wheel > img,
  21684. .project > img,
  21685. .star > img,
  21686. .evaluate > img,
  21687. .up_photo > img,
  21688. .chapter_add > img,
  21689. .deleteWord > img,
  21690. .question > img,
  21691. .homework > img {
  21692. width: 100%;
  21693. height: 100%;
  21694. }
  21695. .upCover > img {
  21696. width: 131px;
  21697. height: 69px;
  21698. object-fit: cover;
  21699. }
  21700. .upCover {
  21701. width: calc(100% / 3.5);
  21702. position: relative;
  21703. margin: 0 15px 10px 0;
  21704. display: flex;
  21705. flex-direction: column;
  21706. flex-wrap: nowrap;
  21707. justify-content: center;
  21708. align-content: center;
  21709. align-items: center;
  21710. height: fit-content;
  21711. }
  21712. .upCover2 {
  21713. width: 100%;
  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. }
  21723. .upCover2 > img {
  21724. width: 100%;
  21725. height: 90px;
  21726. object-fit: contain;
  21727. }
  21728. .chapter_add {
  21729. width: 120px;
  21730. position: relative;
  21731. text-align: center;
  21732. }
  21733. .isAddThings {
  21734. margin-top: 20px;
  21735. position: relative;
  21736. text-align: center;
  21737. background: #f7f8fa;
  21738. height: 90px;
  21739. width: 90px;
  21740. display: flex;
  21741. flex-direction: column;
  21742. justify-content: center;
  21743. }
  21744. .deleteWord {
  21745. width: 22px;
  21746. height: 22px;
  21747. position: absolute;
  21748. right: -5px;
  21749. top: -5px;
  21750. cursor: pointer;
  21751. }
  21752. .box_course {
  21753. /* width: 60%; */
  21754. width: calc(100% - 300px);
  21755. }
  21756. .wheel {
  21757. width: 100%;
  21758. /* height: 100%; */
  21759. height: 650px;
  21760. }
  21761. .right_box {
  21762. display: flex;
  21763. flex-direction: column;
  21764. margin-left: 30px;
  21765. justify-content: space-around;
  21766. }
  21767. .right_box_title {
  21768. font-size: 23px;
  21769. }
  21770. .people {
  21771. display: flex;
  21772. }
  21773. .student_body {
  21774. width: 100%;
  21775. margin: 0 auto;
  21776. margin-top: 10px;
  21777. padding: 0 0 20px;
  21778. }
  21779. .study_top {
  21780. margin-top: 100px;
  21781. width: 100%;
  21782. height: auto;
  21783. padding-bottom: 20px;
  21784. margin-left: 2px;
  21785. min-height: 90%;
  21786. }
  21787. .study_top .checkbox {
  21788. display: flex;
  21789. align-items: center;
  21790. padding: 15px 0 15px 30px;
  21791. flex: 0 0 auto;
  21792. font-weight: bold;
  21793. border-bottom: 1px solid #eee;
  21794. }
  21795. .study_top .check {
  21796. padding-bottom: 5px;
  21797. text-align: center;
  21798. cursor: pointer;
  21799. height: 30px;
  21800. box-sizing: border-box;
  21801. display: flex;
  21802. }
  21803. .study_top .checked {
  21804. border-bottom: 4px solid #3fc6a0;
  21805. padding-bottom: 5px;
  21806. color: #3fc6a0;
  21807. display: flex;
  21808. height: 35px;
  21809. }
  21810. .study_top .checked > div,
  21811. .study_top .check > div {
  21812. margin-right: 5px;
  21813. }
  21814. .videoTop {
  21815. display: flex;
  21816. flex-direction: row;
  21817. justify-content: space-between;
  21818. background: #fff;
  21819. align-items: center;
  21820. width: 95%;
  21821. padding: 20px;
  21822. }
  21823. .filebox {
  21824. display: flex;
  21825. flex-wrap: wrap;
  21826. flex-direction: column;
  21827. padding: 0 0 5px;
  21828. position: relative;
  21829. }
  21830. .filebox:before {
  21831. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21832. position: absolute;
  21833. top: 20px;
  21834. left: 13px;
  21835. border-left: 2px dotted #cad1dc;
  21836. height: calc(100% - 15px);
  21837. }
  21838. .toolHeng2 > div:last-child::before {
  21839. height: calc(100% - 43px);
  21840. }
  21841. .filebox .tooldetail {
  21842. width: calc(100%);
  21843. margin: 0px 12px;
  21844. padding: 12px;
  21845. line-height: 30px;
  21846. word-break: break-word;
  21847. background: #ffffff;
  21848. border-radius: 8px 8px 8px 8px;
  21849. opacity: 1;
  21850. border: 1px solid #cad1dc;
  21851. overflow:hidden;
  21852. box-sizing:border-box;
  21853. }
  21854. .file {
  21855. display: flex;
  21856. flex-direction: column;
  21857. align-items: center;
  21858. justify-content: center;
  21859. cursor: pointer;
  21860. width: 200px;
  21861. }
  21862. .file div {
  21863. margin-top: 10px;
  21864. width: 150px;
  21865. text-align: center;
  21866. overflow: hidden;
  21867. white-space: nowrap;
  21868. text-overflow: ellipsis;
  21869. }
  21870. .media {
  21871. display: flex;
  21872. flex-direction: column;
  21873. align-items: center;
  21874. justify-content: center;
  21875. margin: 0 20px 20px 0;
  21876. cursor: pointer;
  21877. margin: 12px 0 5px 15px;
  21878. overflow: hidden;
  21879. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21880. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21881. box-sizing: border-box;
  21882. }
  21883. .media img {
  21884. height: 90px;
  21885. width: 160px;
  21886. object-fit: cover;
  21887. }
  21888. .media .title {
  21889. padding: 5px;
  21890. text-align: left;
  21891. width: 100%;
  21892. box-sizing: border-box;
  21893. }
  21894. .media .btn {
  21895. width: 100%;
  21896. height: 35px;
  21897. line-height: 35px;
  21898. color: #fff;
  21899. background: #606060;
  21900. text-align: center;
  21901. overflow: hidden;
  21902. white-space: nowrap;
  21903. text-overflow: ellipsis;
  21904. }
  21905. .detail_content_top {
  21906. width: 100%;
  21907. padding: 25px 0 25px 0;
  21908. }
  21909. .detail_title {
  21910. text-align: center;
  21911. font-size: 24px;
  21912. }
  21913. .detail_time {
  21914. font-size: 13px;
  21915. padding: 15px 0 0 40px;
  21916. }
  21917. .detail_content {
  21918. line-height: 2pc;
  21919. width: 90%;
  21920. margin: 0 auto;
  21921. padding-top: 30px;
  21922. text-indent: 30px;
  21923. overflow: auto;
  21924. height: 200px;
  21925. }
  21926. .score_box >>> .el-rate {
  21927. margin-left: 10px;
  21928. }
  21929. .dialog_change >>> .el-dialog {
  21930. border-radius: 5px;
  21931. }
  21932. .dialog_change >>> .el-dialog__header {
  21933. background: #f2f2f2;
  21934. text-align: center;
  21935. }
  21936. .dialog_change >>> .el-dialog__title {
  21937. line-height: 5px;
  21938. }
  21939. .dialog_change >>> .el-dialog__body {
  21940. background: #fff;
  21941. padding: 10px 20px;
  21942. }
  21943. .score_box {
  21944. display: flex;
  21945. align-items: center;
  21946. margin-bottom: 18px;
  21947. margin-top: 20px;
  21948. }
  21949. .up_photo {
  21950. width: 120px;
  21951. cursor: pointer;
  21952. margin-top: 10px;
  21953. }
  21954. .up_photo2 {
  21955. width: 180px;
  21956. box-sizing: border-box;
  21957. min-width: 180px;
  21958. height: 180px;
  21959. max-height: 180px;
  21960. min-height: 180px;
  21961. cursor: pointer;
  21962. display: flex;
  21963. flex-direction: column;
  21964. align-items: center;
  21965. justify-content: center;
  21966. background: rgb(242, 246, 255);
  21967. /* padding: 25px; */
  21968. margin-bottom: 10px;
  21969. }
  21970. .up_photo2 img {
  21971. width: 50%;
  21972. height: auto;
  21973. }
  21974. .up_photo2 span {
  21975. color: #898989;
  21976. }
  21977. .plworkBox {
  21978. display: flex;
  21979. align-items: center;
  21980. margin-top: 10px;
  21981. flex-wrap: wrap;
  21982. }
  21983. .upload_send {
  21984. margin: 30px auto 30px;
  21985. width: 60%;
  21986. background: #3681fc;
  21987. text-align: center;
  21988. height: 35px;
  21989. line-height: 35px;
  21990. color: #fff;
  21991. border-radius: 5px;
  21992. cursor: pointer;
  21993. }
  21994. .marginT {
  21995. margin-top: 20px;
  21996. }
  21997. .cd_content_steps {
  21998. display: flex;
  21999. width: 90%;
  22000. justify-content: space-around;
  22001. border-top: 1px solid #eeeeee;
  22002. }
  22003. .cd_steps_box {
  22004. display: flex;
  22005. justify-content: center;
  22006. align-items: center;
  22007. flex-direction: column;
  22008. cursor: pointer;
  22009. }
  22010. .first {
  22011. display: flex;
  22012. align-items: center;
  22013. margin: 15px 0 20px 0;
  22014. font-size: 20px;
  22015. }
  22016. .first > div:nth-child(2) {
  22017. font-size: 16px !important;
  22018. padding-left: 10px;
  22019. line-height: 26px;
  22020. box-sizing: border-box;
  22021. }
  22022. .blue_box_one {
  22023. text-align: center;
  22024. color: #fff;
  22025. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22026. border-radius: 7px;
  22027. margin: 10px;
  22028. cursor: pointer;
  22029. width: 95%;
  22030. height: 45px;
  22031. display: flex;
  22032. flex-direction: row;
  22033. justify-content: flex-start;
  22034. align-items: center;
  22035. }
  22036. .blue_box_one > div:nth-child(1) {
  22037. line-height: 30px;
  22038. margin: 0 5px 0 10px;
  22039. width: 30%;
  22040. min-width: 70px;
  22041. border-radius: 4px;
  22042. }
  22043. .blue_box_one > div:nth-child(2) {
  22044. white-space: nowrap;
  22045. text-overflow: ellipsis;
  22046. overflow: hidden;
  22047. word-break: break-all;
  22048. width: 70%;
  22049. text-align: left;
  22050. margin-right: 10px;
  22051. max-width: calc(100% - 85px);
  22052. }
  22053. .blue_box_one > div:nth-child(2):hover {
  22054. overflow: hidden;
  22055. text-overflow: ellipsis;
  22056. white-space: nowrap;
  22057. cursor: pointer;
  22058. }
  22059. .upFile {
  22060. margin: 0 auto;
  22061. width: 120px;
  22062. background: #3681fc;
  22063. color: #fff;
  22064. height: 30px;
  22065. text-align: center;
  22066. line-height: 30px;
  22067. border-radius: 5px;
  22068. font-size: 14px;
  22069. cursor: pointer;
  22070. }
  22071. .courseTitle {
  22072. width: 85%;
  22073. margin: 10px auto 26px auto;
  22074. display: flex;
  22075. flex-direction: row;
  22076. align-items: center;
  22077. justify-content: space-between;
  22078. text-align: center;
  22079. }
  22080. .courseTitle .ctitle {
  22081. font-size: 20px;
  22082. font-weight: bold;
  22083. color: #0e1e33;
  22084. white-space: nowrap;
  22085. overflow: hidden;
  22086. text-overflow: ellipsis;
  22087. }
  22088. .inviteBox {
  22089. font-size: 14px;
  22090. /* margin-top: 5px; */
  22091. color: #00000099;
  22092. text-align: center;
  22093. }
  22094. .courseTitle >>> .el-tooltip {
  22095. width: 100%;
  22096. white-space: nowrap;
  22097. overflow: hidden;
  22098. text-overflow: ellipsis;
  22099. word-break: break-word;
  22100. }
  22101. .ml {
  22102. margin-left: 20px;
  22103. color: #5b7dba;
  22104. border-left: 3px solid #5b7dba;
  22105. padding-left: 5px;
  22106. font-weight: bold;
  22107. }
  22108. .return {
  22109. width: 2rem;
  22110. height: 2rem;
  22111. cursor: pointer;
  22112. }
  22113. .return > img {
  22114. width: 100%;
  22115. height: 100%;
  22116. }
  22117. .returnBtn {
  22118. width: 86px;
  22119. height: 36px;
  22120. background: #3681fc;
  22121. border-radius: 4px;
  22122. color: #fff;
  22123. text-align: center;
  22124. line-height: 36px;
  22125. margin-right: 20px;
  22126. cursor: pointer;
  22127. font-size: 14px;
  22128. font-weight: 400;
  22129. display: flex;
  22130. flex-direction: row;
  22131. flex-wrap: nowrap;
  22132. align-items: center;
  22133. justify-content: center;
  22134. }
  22135. .reBtnIcon,
  22136. .commentIcon,
  22137. .vedioIcon,
  22138. .vedioIcon1 {
  22139. /* width: 36px; */
  22140. height: 36px;
  22141. border-radius: 4px;
  22142. position: relative;
  22143. /* background: #e0eafb; */
  22144. background: #0061ff;
  22145. cursor: pointer;
  22146. margin-right: 12px;
  22147. display: flex;
  22148. align-items: center;
  22149. padding: 0 10px;
  22150. box-sizing: border-box;
  22151. font-size: 14px;
  22152. color: #fff;
  22153. }
  22154. .reBtnIcon::before,
  22155. .commentIcon::before,
  22156. .vedioIcon::before,
  22157. .vedioIcon1::before {
  22158. content: "";
  22159. display: block;
  22160. background-size: 100% 100%;
  22161. background-repeat: no-repeat;
  22162. width: 20px;
  22163. height: 20px;
  22164. margin-right: 5px;
  22165. /* position: absolute; */
  22166. /* top: 8px;
  22167. left: 8px; */
  22168. }
  22169. .vedioIcon1 {
  22170. background: #f63564;
  22171. }
  22172. .reBtnIcon::before {
  22173. background-image: url("../assets/icon/newIcons/refresh.png");
  22174. }
  22175. .commentIcon::before {
  22176. background-image: url("../assets/icon/newIcons/comment.png");
  22177. }
  22178. .vedioIcon::before {
  22179. background-image: url("../assets/icon/newIcons/transcribe.png");
  22180. }
  22181. .vedioIcon1::before {
  22182. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22183. background-image: url("../assets/icon/newIcons/transcribe.png");
  22184. }
  22185. .tool {
  22186. display: flex;
  22187. flex-direction: column;
  22188. flex-wrap: nowrap;
  22189. width: 13%;
  22190. margin: 0 30px;
  22191. align-items: center;
  22192. position: relative;
  22193. padding: 10px 25px;
  22194. cursor: pointer;
  22195. }
  22196. .whiteBIcon {
  22197. width: 150px;
  22198. }
  22199. .whiteBIcon > img {
  22200. width: 100%;
  22201. height: 100%;
  22202. }
  22203. .mask {
  22204. background-color: rgba(0, 0, 0, 0);
  22205. position: fixed;
  22206. top: 0;
  22207. left: 0;
  22208. width: 100%;
  22209. height: 100%;
  22210. z-index: 20000;
  22211. display: flex;
  22212. align-items: center;
  22213. justify-content: center;
  22214. }
  22215. .progressBox {
  22216. width: 500px;
  22217. height: 180px;
  22218. background: #fff;
  22219. border-radius: 10px;
  22220. box-shadow: 0 0 6px 1px #bfbfbf;
  22221. display: flex;
  22222. align-items: center;
  22223. justify-content: center;
  22224. flex-direction: column;
  22225. position: relative;
  22226. color: #6c6c6c;
  22227. }
  22228. .progressBox >>> .el-progress-bar__outer {
  22229. background-color: #d1dfff !important;
  22230. }
  22231. .progressBox .lbox {
  22232. height: 50px;
  22233. font-size: 19px;
  22234. display: flex;
  22235. align-items: center;
  22236. color: #747474;
  22237. }
  22238. .progressBox .lbox img {
  22239. width: 40px;
  22240. margin-right: 20px;
  22241. }
  22242. .closeCss {
  22243. position: absolute;
  22244. top: 8px;
  22245. right: 8px;
  22246. cursor: pointer;
  22247. width: 20px;
  22248. height: 20px;
  22249. }
  22250. .closeCss > img {
  22251. width: 100%;
  22252. height: 100%;
  22253. }
  22254. .uploadVedio {
  22255. display: flex;
  22256. flex-direction: column;
  22257. flex-wrap: nowrap;
  22258. justify-content: center;
  22259. align-items: center;
  22260. margin: 0 15px 10px 0;
  22261. }
  22262. .uploadVedio > img {
  22263. width: 30px;
  22264. height: 30px;
  22265. }
  22266. .uploadVedio > span {
  22267. white-space: nowrap;
  22268. overflow: hidden;
  22269. text-overflow: ellipsis;
  22270. width: 75px;
  22271. margin-top: 7px;
  22272. }
  22273. .picName {
  22274. white-space: nowrap;
  22275. overflow: hidden;
  22276. text-overflow: ellipsis;
  22277. width: 75px;
  22278. margin-top: 7px;
  22279. }
  22280. .new_top {
  22281. display: flex;
  22282. background: #fff;
  22283. flex-direction: row;
  22284. justify-content: flex-start;
  22285. align-items: center;
  22286. height: 60px;
  22287. position: fixed;
  22288. top: 20px;
  22289. left: 22%;
  22290. width: 77%;
  22291. z-index: 999;
  22292. border-radius: 12px 12px 0 0;
  22293. border-bottom: 1px solid #cad1dc;
  22294. padding: 10px 0;
  22295. }
  22296. .new_topFixed {
  22297. width: 100%;
  22298. height: 40px;
  22299. position: fixed;
  22300. top: 0px;
  22301. display: block;
  22302. background: #f2f2f2;
  22303. z-index: 998;
  22304. }
  22305. .before {
  22306. position: absolute;
  22307. background: #c3dad4;
  22308. width: 6px;
  22309. height: 100%;
  22310. }
  22311. .courseIndex {
  22312. display: flex;
  22313. flex-direction: row;
  22314. align-items: center;
  22315. width: calc(100% - 745px);
  22316. }
  22317. .courseIndex > div:nth-child(1) {
  22318. margin: 0 0 0 10px;
  22319. font-size: 20px;
  22320. min-width: 100px;
  22321. font-weight: bold;
  22322. border-left: 4px solid #3363b9;
  22323. height: 32px;
  22324. text-align: center;
  22325. line-height: 35px;
  22326. }
  22327. .courseIndex > div:nth-child(2) {
  22328. font-size: 20px;
  22329. /* width: 300px; */
  22330. max-width: calc(100% - 105px);
  22331. white-space: nowrap;
  22332. overflow: hidden;
  22333. text-overflow: ellipsis;
  22334. }
  22335. .courseIndex > div:nth-child(3) {
  22336. border-bottom: 1px solid #d7d7d7;
  22337. padding-bottom: 5px;
  22338. background: #3681fc;
  22339. width: 55px;
  22340. min-width: 55px;
  22341. border-radius: 5px;
  22342. color: #fff;
  22343. text-align: center;
  22344. height: 20px;
  22345. line-height: 26px;
  22346. font-size: 14px;
  22347. margin: 0 0 0 10px;
  22348. }
  22349. .course_text {
  22350. padding: 20px 0 0 15px;
  22351. text-indent: 30px;
  22352. width: 80%;
  22353. min-height: 20px;
  22354. }
  22355. .vedioList {
  22356. background: #f2f2f2;
  22357. border: 1px solid #ececec;
  22358. /* width: 38.8%; */
  22359. /* width: 300px; */
  22360. width: 100%;
  22361. height: 445px;
  22362. border-radius: 10px;
  22363. overflow: hidden;
  22364. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22365. }
  22366. .vedioNav {
  22367. margin: 10px 0 0 15px;
  22368. border-bottom: 1px solid #d7d7d7;
  22369. padding-bottom: 5px;
  22370. background: #3681fc;
  22371. width: 55px;
  22372. min-width: 55px;
  22373. border-radius: 5px;
  22374. color: #fff;
  22375. text-align: center;
  22376. height: 20px;
  22377. line-height: 26px;
  22378. font-size: 14px;
  22379. }
  22380. .queTop {
  22381. display: flex;
  22382. padding: 20px 0 20px 30px;
  22383. width: 100%;
  22384. flex-direction: row;
  22385. justify-content: flex-start;
  22386. align-items: center;
  22387. box-sizing: border-box;
  22388. }
  22389. .queTopTitle {
  22390. display: flex;
  22391. flex-direction: row;
  22392. flex-wrap: nowrap;
  22393. align-items: center;
  22394. font-weight: bold;
  22395. font-size: 20px;
  22396. color: rgb(14, 30, 51);
  22397. }
  22398. .queTopTitle::before {
  22399. content: "";
  22400. width: 2px;
  22401. height: 22px;
  22402. background: #3681fc;
  22403. border-radius: 3px;
  22404. display: block;
  22405. margin: 2px 6px 0 0;
  22406. }
  22407. .queTopRight {
  22408. display: flex;
  22409. flex-direction: row;
  22410. flex-wrap: nowrap;
  22411. align-items: center;
  22412. }
  22413. .queTopClose {
  22414. margin-right: 20px;
  22415. cursor: pointer;
  22416. position: relative;
  22417. display: flex;
  22418. }
  22419. .closeImg,
  22420. .openImg {
  22421. width: 25px;
  22422. height: 25px;
  22423. position: absolute;
  22424. left: -20px;
  22425. top: -1px;
  22426. }
  22427. .closeImg > img,
  22428. .openImg > img {
  22429. width: 100%;
  22430. height: 100%;
  22431. }
  22432. .question {
  22433. width: 40px;
  22434. margin-right: 10px;
  22435. margin-top: 7px;
  22436. }
  22437. .queTitle {
  22438. margin-left: 5px;
  22439. font-size: 25px;
  22440. display: flex;
  22441. align-items: center;
  22442. }
  22443. .addEditor {
  22444. width: 100px;
  22445. height: 30px;
  22446. background: #42cda6;
  22447. color: #fff;
  22448. border-radius: 5px;
  22449. text-align: center;
  22450. line-height: 30px;
  22451. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22452. cursor: pointer;
  22453. }
  22454. /* .vedioName {
  22455. cursor: pointer;
  22456. margin: 0px 0px 10px 5px;
  22457. white-space: nowrap;
  22458. overflow: hidden;
  22459. text-overflow: ellipsis;
  22460. width: 100%;
  22461. } */
  22462. .vedioTime {
  22463. width: 35px;
  22464. position: absolute;
  22465. color: #fff;
  22466. bottom: 0px;
  22467. right: 0px;
  22468. text-align: center;
  22469. background: #46411f;
  22470. height: 20px;
  22471. font-size: 14px;
  22472. line-height: 20px;
  22473. }
  22474. .homework {
  22475. width: 200px;
  22476. display: flex;
  22477. flex-direction: column;
  22478. flex-wrap: nowrap;
  22479. align-items: center;
  22480. cursor: pointer;
  22481. }
  22482. .homebox {
  22483. display: flex;
  22484. flex-wrap: wrap;
  22485. flex-direction: row;
  22486. justify-content: flex-start;
  22487. align-items: center;
  22488. padding: 15px 0;
  22489. }
  22490. .isChooseActive {
  22491. color: #3681fc !important;
  22492. font-weight: bold !important;
  22493. }
  22494. .chooseWho {
  22495. display: flex;
  22496. width: 100%;
  22497. flex-direction: row;
  22498. flex-wrap: nowrap;
  22499. justify-content: flex-start;
  22500. padding-bottom: 10px;
  22501. }
  22502. .chooseWho > div {
  22503. cursor: pointer;
  22504. padding-bottom: 10px;
  22505. margin: 0 30px 0 0;
  22506. font-weight: 400;
  22507. color: #0e1e33;
  22508. }
  22509. .addPoint > div > img {
  22510. cursor: pointer;
  22511. width: 85px;
  22512. border-radius: 15px;
  22513. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22514. }
  22515. .addPoint > div {
  22516. display: flex;
  22517. flex-direction: column;
  22518. flex-wrap: nowrap;
  22519. align-items: center;
  22520. }
  22521. .isBorder > div {
  22522. margin: 0 0 10px 0;
  22523. align-items: flex-start !important;
  22524. }
  22525. .noiframeBox {
  22526. display: flex;
  22527. flex-wrap: wrap;
  22528. }
  22529. .iframeBox iframe {
  22530. width: 100%;
  22531. height: 800px;
  22532. border: none;
  22533. margin-bottom: 20px;
  22534. border: 1px solid #ccc;
  22535. }
  22536. .upload_toolBtn {
  22537. background: #3681fc;
  22538. color: #fff;
  22539. width: 110px;
  22540. text-align: center;
  22541. height: 35px;
  22542. line-height: 35px;
  22543. font-size: 14px;
  22544. border-radius: 5px;
  22545. cursor: pointer;
  22546. position: absolute;
  22547. right: 10px;
  22548. bottom: 0;
  22549. }
  22550. .binfo_input,
  22551. .pj {
  22552. font: inherit;
  22553. color: currentColor;
  22554. width: 100%;
  22555. margin: 0;
  22556. padding: 15px 14px;
  22557. display: block;
  22558. min-width: 0;
  22559. outline: none;
  22560. box-sizing: content-box;
  22561. background: none;
  22562. -webkit-tap-highlight-color: transparent;
  22563. border: 1px solid rgba(0, 0, 0, 0.23);
  22564. border-radius: 4px;
  22565. box-sizing: border-box;
  22566. resize: none;
  22567. }
  22568. .binfo_input:focus-visible {
  22569. border: 1px solid rgba(61, 103, 188);
  22570. }
  22571. .dialog_diy >>> .el-dialog__header,
  22572. .dialog_diy1 >>> .el-dialog__header {
  22573. background: #454545 !important;
  22574. padding: 15px 20px;
  22575. }
  22576. .dialog_diy >>> .el-dialog__title,
  22577. .dialog_diy1 >>> .el-dialog__title {
  22578. color: #fff;
  22579. }
  22580. .dialog_diy >>> .el-dialog__headerbtn,
  22581. .dialog_diy1 >>> .el-dialog__headerbtn {
  22582. top: 19px;
  22583. }
  22584. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22585. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22586. color: #fff;
  22587. }
  22588. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22589. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22590. color: #fff;
  22591. }
  22592. .dialog_diy1 >>> .el-dialog__body {
  22593. padding: 0;
  22594. }
  22595. .dialog_diy >>> .el-dialog__body,
  22596. .dialog_diy >>> .el-dialog__footer,
  22597. .dialog_diy1 >>> .el-dialog__footer {
  22598. background: #fafafa;
  22599. }
  22600. .a_addBox {
  22601. padding: 0 0 0 15px;
  22602. }
  22603. .a_add_box {
  22604. padding: 10px;
  22605. background: #fff;
  22606. margin-bottom: 10px;
  22607. border-radius: 5px;
  22608. box-shadow: 0 0 5px 0 #d5d5d5;
  22609. }
  22610. .a_add_head {
  22611. display: flex;
  22612. align-items: flex-start;
  22613. /* justify-content: space-between; */
  22614. flex-direction: column;
  22615. /* flex-direction: row; */
  22616. margin: 10px 0 20px 0;
  22617. font-size: 18px;
  22618. width: 100%;
  22619. }
  22620. .askIndex {
  22621. background: #3681fc;
  22622. border-radius: 50%;
  22623. color: #fff;
  22624. width: 25px;
  22625. height: 25px;
  22626. min-width: 25px;
  22627. min-height: 25px;
  22628. text-align: center;
  22629. line-height: 25px;
  22630. margin-right: 5px;
  22631. }
  22632. .a_add_head .a_add_head_input {
  22633. width: 300px;
  22634. }
  22635. .a_add_head .a_add_head_div {
  22636. display: flex;
  22637. align-items: center;
  22638. justify-content: space-between;
  22639. }
  22640. .a_add_body {
  22641. display: flex;
  22642. align-items: center;
  22643. }
  22644. .a_add_input {
  22645. display: flex;
  22646. align-items: center;
  22647. flex-wrap: wrap;
  22648. width: 100%;
  22649. }
  22650. .a_add_input >>> .el-radio-group,
  22651. .a_add_input >>> .el-checkbox-group {
  22652. width: 100%;
  22653. }
  22654. .a_add_input >>> .el-radio,
  22655. .a_add_input >>> .el-checkbox {
  22656. display: flex;
  22657. flex-direction: row;
  22658. flex-wrap: nowrap;
  22659. align-items: center;
  22660. padding: 15px 0;
  22661. }
  22662. .a_add_input >>> .el-radio:not(:last-child),
  22663. .a_add_input >>> .el-checkbox:not(:last-child) {
  22664. width: 100%;
  22665. border-bottom: 1px solid #efefef;
  22666. }
  22667. .redioStyle >>> .el-radio__label {
  22668. font-size: 18px;
  22669. }
  22670. .redioStyle >>> .el-radio__label > span,
  22671. .redioStyle >>> .el-checkbox__label > span {
  22672. word-break: break-all;
  22673. white-space: normal;
  22674. }
  22675. .redioStyle >>> .el-checkbox__label {
  22676. font-size: 18px;
  22677. }
  22678. .toolHeng2 {
  22679. width: 100%;
  22680. padding-left: 15px;
  22681. box-sizing: border-box;
  22682. }
  22683. .workNav {
  22684. font-size: 20px;
  22685. font-weight: bold;
  22686. color: #0e1e33;
  22687. display: flex;
  22688. flex-direction: row;
  22689. flex-wrap: nowrap;
  22690. align-items: center;
  22691. padding: 15px 0 15px 0;
  22692. }
  22693. .workNav::before {
  22694. content: "";
  22695. width: 2px;
  22696. height: 22px;
  22697. background: #3681fc;
  22698. border-radius: 3px;
  22699. display: block;
  22700. margin: 2px 6px 0 0;
  22701. }
  22702. .toolHeng {
  22703. display: flex;
  22704. flex-direction: row;
  22705. flex-wrap: wrap;
  22706. justify-content: flex-start;
  22707. align-items: center;
  22708. width: 100%;
  22709. }
  22710. .toolHeng > div {
  22711. padding-left: 20px;
  22712. }
  22713. .isWidth {
  22714. width: 20%;
  22715. }
  22716. .textTitle {
  22717. display: flex;
  22718. flex-direction: row;
  22719. flex-wrap: nowrap;
  22720. align-items: center;
  22721. width: 95%;
  22722. }
  22723. .textTitle >>> .el-form-item__label {
  22724. font-size: 22px;
  22725. color: #918f8f;
  22726. width: 100px;
  22727. }
  22728. .textTitle >>> .el-form-item__content {
  22729. width: calc(100% - 100px);
  22730. }
  22731. .textCss >>> .el-dialog {
  22732. width: 800px !important;
  22733. height: 400px;
  22734. background: #fafafa;
  22735. }
  22736. .textCss >>> .el-dialog__body {
  22737. margin: 55px 8% 0 8%;
  22738. padding: 0 !important;
  22739. }
  22740. .textCss >>> .el-dialog__footer {
  22741. padding-top: 38px;
  22742. }
  22743. .toolsCss >>> .el-dialog__body {
  22744. padding: 20px;
  22745. }
  22746. .lineCss >>> .el-dialog__body {
  22747. display: flex;
  22748. flex-direction: row;
  22749. align-items: center;
  22750. justify-content: center;
  22751. }
  22752. .newNav {
  22753. display: flex;
  22754. flex-direction: row;
  22755. align-items: baseline;
  22756. justify-content: flex-start;
  22757. }
  22758. .navListItem {
  22759. width: calc(100% - 20px);
  22760. height: 50px;
  22761. margin: 0px auto 10px;
  22762. display: flex;
  22763. flex-direction: row;
  22764. flex-wrap: nowrap;
  22765. align-items: center;
  22766. justify-content: space-between;
  22767. background: #f0f4fa;
  22768. border-radius: 6px 6px 6px 6px;
  22769. }
  22770. .navText {
  22771. cursor: pointer;
  22772. white-space: nowrap;
  22773. overflow: hidden;
  22774. text-overflow: ellipsis;
  22775. width: 220px;
  22776. padding: 0 10px;
  22777. font-weight: 400;
  22778. color: #0e1e33;
  22779. }
  22780. .downIcon {
  22781. width: 20px;
  22782. min-width: 20px;
  22783. height: 20px;
  22784. margin-right: 15px;
  22785. cursor: pointer;
  22786. }
  22787. .downIcon > img {
  22788. width: 100%;
  22789. height: 100%;
  22790. }
  22791. .noVedio {
  22792. display: flex;
  22793. flex-direction: row;
  22794. justify-content: center;
  22795. align-content: center;
  22796. }
  22797. .noNavText {
  22798. cursor: pointer;
  22799. margin: 0px 0px 10px 5px;
  22800. width: 112px;
  22801. }
  22802. .listNoVedio {
  22803. margin: 0 0 0 30px;
  22804. width: 97%;
  22805. }
  22806. .video-player >>> .video-js {
  22807. height: 100%;
  22808. }
  22809. .hangVedioList {
  22810. width: 90% !important;
  22811. height: 150px !important;
  22812. margin: 20px 0 0 30px;
  22813. }
  22814. .hangVedio {
  22815. width: 100%;
  22816. height: 170px !important;
  22817. align-items: flex-start !important;
  22818. }
  22819. .hangHand {
  22820. height: 150px !important;
  22821. }
  22822. .twoChild {
  22823. width: 95%;
  22824. margin: 10px;
  22825. border-radius: 5px;
  22826. background: #f2f2f2;
  22827. display: flex;
  22828. flex-direction: column;
  22829. flex-wrap: nowrap;
  22830. justify-content: flex-start;
  22831. align-items: flex-start;
  22832. transition: all 0.5s;
  22833. overflow: hidden;
  22834. height: 0;
  22835. background: #e7f3ff;
  22836. }
  22837. .twoChild > div:nth-child(1) {
  22838. margin-top: 5px;
  22839. }
  22840. .navChild {
  22841. width: 100%;
  22842. cursor: pointer;
  22843. margin-bottom: 10px;
  22844. position: relative;
  22845. }
  22846. .navChild img {
  22847. position: absolute;
  22848. right: 11px;
  22849. width: 15px;
  22850. top: 50%;
  22851. transform: translateY(-50%);
  22852. }
  22853. .navActive,
  22854. .toolActive {
  22855. height: auto !important;
  22856. overflow: auto !important;
  22857. /* padding-bottom: 16px; */
  22858. }
  22859. .toolActive {
  22860. padding: 0;
  22861. }
  22862. .navTask {
  22863. display: flex;
  22864. flex-direction: row;
  22865. flex-wrap: nowrap;
  22866. align-items: center;
  22867. align-content: flex-start;
  22868. height: 40px;
  22869. justify-content: flex-start;
  22870. padding: 0 10px;
  22871. width: 100%;
  22872. box-sizing: border-box;
  22873. }
  22874. .navTaskname {
  22875. white-space: nowrap;
  22876. text-overflow: ellipsis;
  22877. overflow: hidden;
  22878. word-break: break-all;
  22879. padding-left: 5px;
  22880. }
  22881. .openTaskActive {
  22882. /* background-color: #e0eafb !important;
  22883. color: #0061ff; */
  22884. color:#fff;
  22885. background: rgb(55, 129, 252) !important;
  22886. }
  22887. .iframeName {
  22888. margin: 5px 0;
  22889. border-left: 4px solid #41c4a4;
  22890. padding-left: 4px;
  22891. }
  22892. .toolTitle {
  22893. margin: 0px 0px 20px;
  22894. font-size: 20px;
  22895. font-weight: 500;
  22896. border-left: 4px solid #41c4a4;
  22897. padding-left: 4px;
  22898. }
  22899. .cru_selectBox {
  22900. overflow: auto;
  22901. width: 95%;
  22902. margin: 17px auto 0;
  22903. height: calc(100% - 40px - 21px - 20px - 17px);
  22904. background: #fff;
  22905. border-radius: 8px;
  22906. }
  22907. .cru_selectBox::-webkit-scrollbar,
  22908. .study_top::-webkit-scrollbar,
  22909. .textContent::-webkit-scrollbar {
  22910. /*滚动条整体样式*/
  22911. width: 6px;
  22912. /*高宽分别对应横竖滚动条的尺寸*/
  22913. height: 6px;
  22914. }
  22915. /*定义滚动条轨道 内阴影+圆角*/
  22916. .cru_selectBox::-webkit-scrollbar-track,
  22917. .study_top::-webkit-scrollbar-track,
  22918. .textContent::-webkit-scrollbar {
  22919. border-radius: 10px;
  22920. background-color: #b8bdc9;
  22921. }
  22922. /*定义滑块 内阴影+圆角*/
  22923. .cru_selectBox::-webkit-scrollbar-thumb,
  22924. .study_top::-webkit-scrollbar-thumb,
  22925. .textContent::-webkit-scrollbar-thumb {
  22926. border-radius: 10px;
  22927. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22928. background-color: #2c5ab3;
  22929. }
  22930. .vedioBox {
  22931. border-radius: 0 0 20px 20px;
  22932. background: #fff;
  22933. overflow: auto;
  22934. }
  22935. .taskBox {
  22936. width: 98%;
  22937. background: #f0f4fa;
  22938. margin: 10px auto;
  22939. padding: 0 10px;
  22940. border-radius: 4px;
  22941. box-sizing: border-box;
  22942. }
  22943. .vedioTaskBox {
  22944. width: 100%;
  22945. display: flex;
  22946. flex-direction: row;
  22947. flex-wrap: nowrap;
  22948. align-items: flex-start;
  22949. position: relative;
  22950. }
  22951. .toolBox {
  22952. margin: 15px 0 0 25px;
  22953. display: flex;
  22954. position: relative;
  22955. padding: 18px 20px;
  22956. border-top-left-radius: 5px;
  22957. border-top-right-radius: 5px;
  22958. width: 90%;
  22959. }
  22960. .btnAll {
  22961. position: absolute;
  22962. right: 0;
  22963. display: flex;
  22964. flex-direction: row;
  22965. flex-wrap: nowrap;
  22966. align-items: center;
  22967. }
  22968. .btnLeft,
  22969. .btnRight {
  22970. display: flex;
  22971. flex-direction: row;
  22972. flex-wrap: nowrap;
  22973. align-items: center;
  22974. padding: 5px 0;
  22975. }
  22976. .btnLeft {
  22977. border-right: 1px solid #cad1dc;
  22978. }
  22979. .btnLeft > .custom-tooltip {
  22980. background: #3681fc;
  22981. color: #fff;
  22982. }
  22983. .last:hover {
  22984. background: #3383fa !important;
  22985. color: #fff;
  22986. border: 1px solid #3383fa !important;
  22987. }
  22988. .last,
  22989. .returnBtn1 {
  22990. width: 90px;
  22991. height: 36px;
  22992. background: #ffffff;
  22993. border-radius: 4px;
  22994. border: 1px solid #0061ff;
  22995. color: #0061ff;
  22996. cursor: pointer;
  22997. display: flex;
  22998. flex-direction: row;
  22999. flex-wrap: nowrap;
  23000. align-items: center;
  23001. justify-content: center;
  23002. margin-left: 12px;
  23003. }
  23004. .returnBtn1 {
  23005. background: #f0f4fa;
  23006. border-radius: 4px;
  23007. border: 1px solid #cad1dc;
  23008. margin: 0 12px;
  23009. }
  23010. .lastImg {
  23011. min-width: 15px;
  23012. width: 15px;
  23013. height: 15px;
  23014. display: flex;
  23015. }
  23016. .lastText {
  23017. padding: 0 5px 0 5px;
  23018. box-sizing: border-box;
  23019. font-size: 14px;
  23020. }
  23021. .lastImg > img {
  23022. width: 100%;
  23023. height: 100%;
  23024. }
  23025. /* .vedioTimeBox {
  23026. display: flex;
  23027. flex-direction: row;
  23028. align-items: center;
  23029. flex-wrap: nowrap;
  23030. position: relative;
  23031. } */
  23032. .navBox {
  23033. background: #fff;
  23034. height: calc(100% - 40px);
  23035. overflow-y: auto;
  23036. overflow-x: hidden;
  23037. }
  23038. .worksBox {
  23039. margin: 0 0 10px 25px;
  23040. border-bottom: 1px solid #eeeeee;
  23041. padding: 18px 20px;
  23042. border-radius: 4px;
  23043. width: 90%;
  23044. }
  23045. .worksBTitle {
  23046. font-size: 20px;
  23047. padding-bottom: 15px;
  23048. border-bottom: 1px solid #eeeeee;
  23049. display: flex;
  23050. align-items: center;
  23051. }
  23052. .greenBox {
  23053. width: 5px;
  23054. height: 30px;
  23055. background: #63b6fa;
  23056. margin-right: 5px;
  23057. }
  23058. .worksDetailBox {
  23059. display: flex;
  23060. width: 100%;
  23061. flex-direction: row;
  23062. flex-wrap: wrap;
  23063. align-items: flex-end;
  23064. justify-content: flex-start;
  23065. padding: 15px 5px;
  23066. box-sizing: border-box;
  23067. }
  23068. .works {
  23069. display: flex;
  23070. flex-direction: column;
  23071. flex-wrap: nowrap;
  23072. align-items: flex-start;
  23073. justify-content: flex-start;
  23074. align-content: center;
  23075. max-width: 240px;
  23076. width: calc(100% / 3 - 10px);
  23077. height: auto;
  23078. margin-right: 10px;
  23079. margin-bottom: 10px;
  23080. overflow: hidden;
  23081. height: 140px;
  23082. box-shadow: 0 0 6px 1px #dfdada;
  23083. border-radius: 15px;
  23084. }
  23085. .workImg {
  23086. width: 100%;
  23087. /* height: calc(100% - 40px); */
  23088. height: 105px;
  23089. position: relative;
  23090. }
  23091. .workImg > img {
  23092. width: 100%;
  23093. height: 100%;
  23094. object-fit: contain;
  23095. cursor: pointer;
  23096. }
  23097. .worksName {
  23098. height: 40px;
  23099. line-height: 40px;
  23100. display: flex;
  23101. width: 100%;
  23102. flex-direction: row;
  23103. flex-wrap: nowrap;
  23104. justify-content: space-between;
  23105. align-items: center;
  23106. margin: 0 0 0 10px;
  23107. }
  23108. .worksName > div:nth-child(1) {
  23109. width: 110px;
  23110. white-space: nowrap;
  23111. overflow: hidden;
  23112. text-overflow: ellipsis;
  23113. }
  23114. .worksName > div:nth-child(2) {
  23115. color: #b7b4b5;
  23116. }
  23117. .noWorksS {
  23118. padding: 15px 0;
  23119. display: flex;
  23120. flex-direction: row;
  23121. flex-wrap: wrap;
  23122. align-items: center;
  23123. justify-content: flex-start;
  23124. }
  23125. .noWorksName,
  23126. .isWorksName,
  23127. .isWorksName2 {
  23128. background: #ddebf8;
  23129. color: #000;
  23130. width: 90px;
  23131. height: 25px;
  23132. text-align: center;
  23133. line-height: 25px;
  23134. border-radius: 4px;
  23135. margin: 10px 15px 10px 0;
  23136. white-space: nowrap;
  23137. overflow: hidden;
  23138. padding: 5px;
  23139. text-overflow: ellipsis;
  23140. cursor: pointer;
  23141. border: 1px solid #ddebf8;
  23142. }
  23143. .noWorksName {
  23144. background: #fff;
  23145. color: #0061ff;
  23146. border: 1px solid #0061ff;
  23147. }
  23148. .noWorksName > span{
  23149. max-width: 100%;
  23150. display: block;
  23151. overflow: hidden;
  23152. text-overflow: ellipsis;
  23153. white-space: nowrap;
  23154. }
  23155. .isWorksName2 {
  23156. width: 100px;
  23157. height: 40px;
  23158. line-height: 40px;
  23159. position: relative;
  23160. background: #dae6f9;
  23161. }
  23162. .isWorksName {
  23163. background: #e7ebf1 !important;
  23164. width: 100px;
  23165. height: 40px;
  23166. line-height: 40px;
  23167. position: relative;
  23168. color: #acb4bf;
  23169. border: 1px solid #cad1dc !important;
  23170. }
  23171. .isSelectName,
  23172. .noWorksName:hover {
  23173. background: #3383fa !important;
  23174. color: #fff !important;
  23175. border: 1px solid #3383fa !important;
  23176. }
  23177. .title {
  23178. background: #1e5cc9;
  23179. /* width: 98%; */
  23180. height: 45px;
  23181. color: #fff;
  23182. line-height: 45px;
  23183. padding-left: 20px;
  23184. box-sizing: border-box;
  23185. }
  23186. .textBox {
  23187. font-size: 20px;
  23188. width: 90%;
  23189. display: flex;
  23190. flex-direction: column;
  23191. align-items: center;
  23192. margin: 20px auto 0;
  23193. max-height: calc(100% - 75px);
  23194. overflow: auto;
  23195. }
  23196. .textContent {
  23197. font-size: 18px;
  23198. width: 95%;
  23199. max-width: 95%;
  23200. }
  23201. .answerBg {
  23202. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23203. background-size: 100% 100%;
  23204. width: 100%;
  23205. height: 100%;
  23206. color: #fff;
  23207. text-align: center;
  23208. display: flex;
  23209. flex-direction: column;
  23210. flex-wrap: nowrap;
  23211. align-items: center;
  23212. position: relative;
  23213. justify-content: center;
  23214. }
  23215. /* .answerBg > div:nth-child(1) { */
  23216. /* font-size: 22px;
  23217. padding: 25px 0 10px; */
  23218. /* } */
  23219. .answerContent {
  23220. width: 215px;
  23221. max-height: 60px;
  23222. word-break: break-all;
  23223. text-align: center;
  23224. /* white-space: nowrap; */
  23225. overflow: hidden;
  23226. text-overflow: ellipsis;
  23227. /* padding: 23px 0 0; */
  23228. -webkit-line-clamp: 3;
  23229. -webkit-box-orient: vertical;
  23230. display: -webkit-box;
  23231. font-size: 15px;
  23232. cursor: pointer;
  23233. }
  23234. .elist_input_box {
  23235. display: flex;
  23236. align-items: flex-start;
  23237. flex-wrap: nowrap;
  23238. padding: 10px 0 15px 30px;
  23239. flex-direction: column;
  23240. }
  23241. .elist_input {
  23242. /* width: 40%; */
  23243. width: 45%;
  23244. margin: 20px;
  23245. }
  23246. .elist_input .elist_input_box input {
  23247. font: inherit;
  23248. color: currentColor;
  23249. width: 200px;
  23250. padding: 8px 14px;
  23251. display: block;
  23252. min-width: 0;
  23253. outline: none;
  23254. border: 1px solid rgba(0, 0, 0, 0.23);
  23255. border-radius: 4px;
  23256. box-sizing: border-box;
  23257. background: #fff;
  23258. margin: 0 20px 0 0;
  23259. }
  23260. .elist_input .elist_input_box span {
  23261. height: 36px;
  23262. line-height: 36px;
  23263. color: rgb(82, 82, 82);
  23264. }
  23265. .elist_input .elist_input_box .remove {
  23266. height: 20px;
  23267. width: 20px;
  23268. background-size: 100% 100%;
  23269. background-position: unset;
  23270. margin-left: 5px;
  23271. }
  23272. .elist_input_box >>> .el-rate {
  23273. display: flex;
  23274. height: 36px;
  23275. align-items: center;
  23276. }
  23277. .elist_input_box .elist_inptu_text {
  23278. min-height: 50px;
  23279. /* width: 500px;
  23280. max-height: 150px; */
  23281. width: 100%;
  23282. line-height: 50px;
  23283. color: rgb(82, 82, 82);
  23284. overflow: auto;
  23285. text-indent: 5px;
  23286. background: #f7f6f9;
  23287. border-radius: 10px;
  23288. }
  23289. .elist_input_box .elist_inptu_text input {
  23290. width: 500px;
  23291. }
  23292. .elist_input_box >>> .el-rate__icon {
  23293. font-size: 24px;
  23294. }
  23295. .isClick {
  23296. background: #4d9def;
  23297. }
  23298. .bzBox {
  23299. display: flex;
  23300. flex-direction: row;
  23301. align-items: center;
  23302. }
  23303. .bzBox .yCss {
  23304. width: 7px;
  23305. height: 7px;
  23306. background: #fff;
  23307. margin: 0 16px 0 6px;
  23308. border-radius: 50%;
  23309. border: 5px solid #3681fc;
  23310. z-index: 99;
  23311. }
  23312. .bzBox > div:nth-child(2) {
  23313. font-size: 18px;
  23314. font-weight: bold;
  23315. color: #0e1e33;
  23316. }
  23317. .navTitile {
  23318. padding: 0 0px 0 15px;
  23319. font-size: 16px;
  23320. font-weight: bold;
  23321. color: #0e1e33;
  23322. height: 40px;
  23323. line-height: 40px;
  23324. }
  23325. .isTypeOne {
  23326. width: 240px;
  23327. height: 170px;
  23328. /* border: 1px solid #f8f8f8; */
  23329. border-radius: 10px;
  23330. box-shadow: 0 0 6px 1px #dfdada;
  23331. }
  23332. .e_add_top {
  23333. display: flex;
  23334. justify-content: space-between;
  23335. padding: 10px 20px;
  23336. border-radius: 3px;
  23337. background: #fff;
  23338. }
  23339. .e_add_title2 {
  23340. display: flex;
  23341. align-items: center;
  23342. }
  23343. .e_add_title2 span {
  23344. width: 40px;
  23345. }
  23346. .e_add_title {
  23347. display: flex;
  23348. align-items: center;
  23349. color: #b8b8b8;
  23350. font-size: 18px;
  23351. position: relative;
  23352. height: 40px;
  23353. width: 100%;
  23354. }
  23355. .e_add_title span {
  23356. margin-right: 10px;
  23357. }
  23358. .e_add_title .el_input {
  23359. width: 300px;
  23360. }
  23361. .e_add_title >>> .el-input__inner {
  23362. width: 400px;
  23363. }
  23364. /* .e_add_btn {
  23365. } */
  23366. .e_add_content {
  23367. display: flex;
  23368. width: 100%;
  23369. max-width: 650px;
  23370. height: 550px;
  23371. }
  23372. .e_add_list {
  23373. background: #fff;
  23374. height: 500px;
  23375. width: 210px;
  23376. position: relative;
  23377. margin: 15px 5px 0 0;
  23378. flex-shrink: 0;
  23379. display: flex;
  23380. flex-direction: column;
  23381. }
  23382. .e_add_list_title {
  23383. font-size: 20px;
  23384. width: 100%;
  23385. box-sizing: border-box;
  23386. padding: 15px 40px;
  23387. text-align: center;
  23388. border-bottom: 1px solid #eaeaea;
  23389. position: relative;
  23390. display: flex;
  23391. align-items: center;
  23392. justify-content: center;
  23393. height: 57px;
  23394. background: #f6f6f6;
  23395. }
  23396. .e_add_list_title span {
  23397. overflow: hidden;
  23398. white-space: nowrap;
  23399. text-overflow: ellipsis;
  23400. }
  23401. .e_add_list_title img {
  23402. position: absolute;
  23403. right: 15px;
  23404. width: 25px;
  23405. cursor: pointer;
  23406. top: 50%;
  23407. transform: translateY(-50%);
  23408. }
  23409. .e_add_list_body {
  23410. height: calc(100% - 187px);
  23411. overflow: auto;
  23412. }
  23413. .e_add_list_child {
  23414. width: 100%;
  23415. display: flex;
  23416. align-items: center;
  23417. justify-content: center;
  23418. position: relative;
  23419. box-sizing: border-box;
  23420. padding: 15px 40px;
  23421. text-align: center;
  23422. }
  23423. .e_add_list_child span {
  23424. overflow: hidden;
  23425. white-space: nowrap;
  23426. text-overflow: ellipsis;
  23427. cursor: pointer;
  23428. }
  23429. .e_add_list_child img {
  23430. position: absolute;
  23431. right: 10px;
  23432. width: 21px;
  23433. cursor: pointer;
  23434. top: 50%;
  23435. transform: translateY(-50%);
  23436. }
  23437. .e_add_list_child + .e_add_list_child {
  23438. border-top: 1px solid #eaeaea;
  23439. }
  23440. .e_add_list_child .active {
  23441. color: #409eff;
  23442. }
  23443. .e_add_list_btn {
  23444. position: absolute;
  23445. bottom: 0;
  23446. height: 50px;
  23447. background: rgb(120, 120, 254);
  23448. width: 100%;
  23449. color: #fff;
  23450. font-size: 16px;
  23451. text-align: center;
  23452. line-height: 50px;
  23453. cursor: pointer;
  23454. }
  23455. .e_add_list_detail {
  23456. position: absolute;
  23457. bottom: 0;
  23458. height: 130px;
  23459. background: rgb(120, 120, 254);
  23460. width: 100%;
  23461. color: #fff;
  23462. font-size: 16px;
  23463. display: flex;
  23464. align-items: center;
  23465. justify-content: center;
  23466. }
  23467. .e_add_list_detail textarea {
  23468. height: 90%;
  23469. width: 95%;
  23470. border: none;
  23471. resize: none;
  23472. outline: none;
  23473. padding: 5px;
  23474. box-sizing: border-box;
  23475. }
  23476. .e_add_list_pbox {
  23477. width: 100%;
  23478. max-width: 650px;
  23479. /* height: 600px; */
  23480. }
  23481. .e_add_list_pbox_title {
  23482. height: 50px;
  23483. background: #fff;
  23484. display: flex;
  23485. align-items: center;
  23486. width: 100%;
  23487. box-sizing: border-box;
  23488. padding: 0 20px;
  23489. }
  23490. .type_title {
  23491. font-size: 18px;
  23492. font-weight: 700;
  23493. }
  23494. .type_content {
  23495. font-size: 16px;
  23496. /* margin-left: 30px; */
  23497. }
  23498. .type_content span + span {
  23499. margin-left: 20px;
  23500. }
  23501. .type_content span {
  23502. cursor: pointer;
  23503. padding-bottom: 5px;
  23504. box-sizing: border-box;
  23505. }
  23506. .type_content .active {
  23507. color: #409eff;
  23508. border-bottom: 2px solid #409eff;
  23509. }
  23510. .e_add_list_pbox_content {
  23511. height: calc(100% - 50px);
  23512. display: flex;
  23513. align-items: center;
  23514. width: 100%;
  23515. background: #fff;
  23516. }
  23517. .evaCss {
  23518. display: flex;
  23519. flex-direction: row;
  23520. flex-wrap: nowrap;
  23521. align-items: flex-start;
  23522. padding: 0 0 20px;
  23523. }
  23524. .cru_line {
  23525. position: absolute;
  23526. bottom: 0px;
  23527. transition: all 0.5s;
  23528. left: 0px;
  23529. width: 125px;
  23530. margin-left: -25px;
  23531. }
  23532. .isNoMessage {
  23533. width: 20%;
  23534. margin: 25% auto 0;
  23535. }
  23536. .isNoMessage > img {
  23537. width: 100%;
  23538. height: 100%;
  23539. }
  23540. .fullStyle >>> .el-dialog__body {
  23541. height: 100% !important;
  23542. }
  23543. .fullStyle >>> .el-dialog,
  23544. .fullStyle {
  23545. width: 100% !important;
  23546. max-width: 100% !important;
  23547. height: 100% !important;
  23548. margin: 0 !important;
  23549. }
  23550. .full_diy >>> .el-dialog {
  23551. margin: 0 !important;
  23552. height: 100%;
  23553. padding: 4px;
  23554. }
  23555. .full_diy >>> .el-dialog__body {
  23556. height: calc(100% - 100px);
  23557. }
  23558. .full_diy2 >>> .el-dialog__body {
  23559. height: calc(100% - 50px);
  23560. padding: 0;
  23561. }
  23562. .switchCss {
  23563. /* width: 100%; */
  23564. display: flex;
  23565. flex-direction: row;
  23566. flex-wrap: nowrap;
  23567. align-items: center;
  23568. /* justify-content: center; */
  23569. }
  23570. .isClickNav {
  23571. /* color: #499eef; */
  23572. color: #000;
  23573. }
  23574. .commentImg {
  23575. width: 25px;
  23576. height: 25px;
  23577. cursor: pointer;
  23578. }
  23579. .commentImg > img {
  23580. width: 100%;
  23581. height: 100%;
  23582. }
  23583. .comment {
  23584. background: #f9f9f9;
  23585. border-radius: 0 0 4px 4px;
  23586. display: flex;
  23587. flex-direction: row;
  23588. flex-wrap: nowrap;
  23589. align-items: center;
  23590. justify-content: flex-end;
  23591. height: 35px;
  23592. }
  23593. .commentList {
  23594. display: flex;
  23595. flex-direction: row;
  23596. flex-wrap: nowrap;
  23597. align-items: center;
  23598. justify-content: center;
  23599. align-content: center;
  23600. /* margin-left: 15px; */
  23601. /* margin-left: 8px; */
  23602. }
  23603. .scoreImg {
  23604. width: 17px;
  23605. height: 17px;
  23606. }
  23607. .studentDetail {
  23608. display: flex;
  23609. flex-direction: row;
  23610. flex-wrap: nowrap;
  23611. /* align-items: center; */
  23612. align-items: flex-start;
  23613. }
  23614. .tx {
  23615. width: 50px;
  23616. }
  23617. .tx > img {
  23618. width: 100%;
  23619. height: 100%;
  23620. }
  23621. .nameAndTime {
  23622. display: flex;
  23623. flex-direction: column;
  23624. flex-wrap: nowrap;
  23625. align-items: flex-start;
  23626. margin-left: 10px;
  23627. }
  23628. .worksAnswer {
  23629. color: #4078dd;
  23630. margin: 10px 0;
  23631. font-size: 16px;
  23632. position: relative;
  23633. }
  23634. .worksAnswer > img {
  23635. width: 500px;
  23636. height: 300px;
  23637. object-fit: contain;
  23638. margin: 0 auto;
  23639. display: block;
  23640. }
  23641. .commentTop {
  23642. border-bottom: 1px solid #eaeaea;
  23643. padding-bottom: 10px;
  23644. }
  23645. .commentBox {
  23646. padding-top: 15px;
  23647. }
  23648. .pl {
  23649. font-size: 18px;
  23650. }
  23651. .plPerson {
  23652. width: 100%;
  23653. }
  23654. .plName {
  23655. display: flex;
  23656. flex-direction: row;
  23657. flex-wrap: nowrap;
  23658. align-items: baseline;
  23659. color: #78787a;
  23660. width: 100%;
  23661. }
  23662. .deleteComment {
  23663. cursor: pointer;
  23664. margin-left: auto;
  23665. color: #237ade;
  23666. }
  23667. .plContent {
  23668. margin-top: 5px;
  23669. }
  23670. .evalCss {
  23671. background: #fff;
  23672. font-size: 18px;
  23673. }
  23674. .nav {
  23675. color: #9d9d9d;
  23676. padding: 5px 0 15px 20px;
  23677. }
  23678. .middleBox {
  23679. padding: 5px 0 15px 20px;
  23680. }
  23681. .pfBox {
  23682. padding-bottom: 30px;
  23683. }
  23684. .nameAndrate {
  23685. display: flex;
  23686. flex-direction: row;
  23687. flex-wrap: nowrap;
  23688. align-items: center;
  23689. padding-bottom: 10px;
  23690. height: 30px;
  23691. line-height: 30px;
  23692. }
  23693. .nameAndrate > div {
  23694. margin-left: 10px;
  23695. color: #000;
  23696. height: 30px;
  23697. }
  23698. .nameAndrate >>> .el-rate__icon {
  23699. font-size: 28px !important;
  23700. }
  23701. .pfBox > div:nth-child(2) {
  23702. background: #f7f6f9;
  23703. width: 400px;
  23704. min-height: 45px;
  23705. border-radius: 10px;
  23706. font-size: 16px;
  23707. display: flex;
  23708. flex-wrap: wrap;
  23709. align-items: center;
  23710. padding: 10px 20px;
  23711. box-sizing: border-box;
  23712. color: #000;
  23713. }
  23714. .bz {
  23715. display: flex;
  23716. flex-direction: row;
  23717. flex-wrap: nowrap;
  23718. align-items: flex-start;
  23719. }
  23720. .bz > div {
  23721. padding: 0 10px;
  23722. }
  23723. .select_box2_title {
  23724. background: #fff;
  23725. border-radius: 5px;
  23726. padding: 15px 10px;
  23727. box-sizing: border-box;
  23728. margin-bottom: 10px;
  23729. display: flex;
  23730. flex-direction: row;
  23731. flex-wrap: nowrap;
  23732. align-items: center;
  23733. }
  23734. .select_box2_title > div:nth-child(2) {
  23735. margin-left: 10px;
  23736. color: #c4c4c4;
  23737. }
  23738. .select_box2_box {
  23739. display: flex;
  23740. height: 500px;
  23741. }
  23742. .select_box2_img {
  23743. width: calc(100% - 310px);
  23744. height: 100%;
  23745. overflow: auto;
  23746. background: #fff;
  23747. border-radius: 5px;
  23748. }
  23749. .select_box2_img img {
  23750. width: 100%;
  23751. }
  23752. .select_box2_answer {
  23753. background: #fff;
  23754. margin-left: 10px;
  23755. border-radius: 5px;
  23756. width: 300px;
  23757. overflow: auto;
  23758. height: 90%;
  23759. display: flex;
  23760. flex-direction: column;
  23761. align-items: flex-start;
  23762. padding-top: 10px;
  23763. box-sizing: border-box;
  23764. position: relative;
  23765. }
  23766. .select_answer_title {
  23767. padding: 0 0 15px 20px;
  23768. color: #c4c4c4;
  23769. }
  23770. .select_box2_answer_box {
  23771. margin: 0 0 10px 20px;
  23772. width: 85%;
  23773. display: flex;
  23774. flex-direction: row;
  23775. flex-wrap: nowrap;
  23776. align-items: center;
  23777. }
  23778. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23779. color: #000;
  23780. }
  23781. .upAnswerCss {
  23782. position: absolute;
  23783. bottom: 15px;
  23784. right: 15px;
  23785. }
  23786. .upAnswerCss >>> .el-button {
  23787. width: 95px;
  23788. height: 35px;
  23789. line-height: 35px;
  23790. padding: 0;
  23791. }
  23792. .rightWidthCss {
  23793. width: 60%;
  23794. display: flex;
  23795. flex-direction: row;
  23796. align-items: flex-start;
  23797. }
  23798. .rightAnswer {
  23799. display: flex;
  23800. flex-direction: row;
  23801. flex-wrap: nowrap;
  23802. align-items: center;
  23803. color: red;
  23804. margin-bottom: 31px;
  23805. }
  23806. .rightAnswerCss {
  23807. display: flex;
  23808. flex-direction: column;
  23809. flex-wrap: nowrap;
  23810. padding-top: 60px;
  23811. }
  23812. .blueCss {
  23813. color: #767de1;
  23814. margin-left: 10px;
  23815. }
  23816. .redCss {
  23817. color: red;
  23818. }
  23819. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23820. color: rgb(0 123 255) !important;
  23821. }
  23822. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23823. color: rgb(0 123 255) !important;
  23824. }
  23825. .zuoyeYulan {
  23826. padding-top: 0;
  23827. font-size: 18px;
  23828. display: flex;
  23829. align-items: flex-end;
  23830. }
  23831. .buttonA {
  23832. margin-left: 10px;
  23833. padding: 0;
  23834. }
  23835. .displayBox {
  23836. margin-bottom: 10px;
  23837. display: block;
  23838. border-bottom: 3px solid #eee;
  23839. display: flex;
  23840. align-items: center;
  23841. }
  23842. .easy_comment {
  23843. width: calc(100% - 90px);
  23844. margin-left: 10px;
  23845. display: flex;
  23846. flex-wrap: wrap;
  23847. }
  23848. .easy_comment > div {
  23849. border: 1px solid #4a4a4a;
  23850. color: #666;
  23851. border-radius: 15px;
  23852. padding: 5px 10px;
  23853. font-size: 16px;
  23854. margin-bottom: 10px;
  23855. margin-right: 5px;
  23856. cursor: pointer;
  23857. }
  23858. .easy_comment div:hover {
  23859. border: 1px solid #f7ba2a;
  23860. color: #c69217;
  23861. }
  23862. .xuan_right_box {
  23863. padding: 10px 0;
  23864. background: #f0f4fa;
  23865. margin: 0 15px 0 25px;
  23866. border-bottom-left-radius: 5px;
  23867. border-bottom-right-radius: 5px;
  23868. width: 91.5%;
  23869. }
  23870. .tool_right_box {
  23871. display: flex;
  23872. align-items: center;
  23873. }
  23874. .tool_right_box >>> .katex {
  23875. font-size: 16px;
  23876. }
  23877. .tool_right_box + .tool_right_box {
  23878. margin-top: 10px;
  23879. }
  23880. .right_box_xuan {
  23881. border-radius: 5px;
  23882. padding: 5px;
  23883. margin-left: 10px;
  23884. min-width: 85px;
  23885. background: #fff;
  23886. color: #0061ff;
  23887. border: 1px solid #0061ff;
  23888. font-size: 14px;
  23889. }
  23890. .pButton:hover {
  23891. opacity: 1 !important;
  23892. }
  23893. .pButton {
  23894. position: fixed;
  23895. text-align: center;
  23896. cursor: pointer;
  23897. z-index: 999;
  23898. right: 20px;
  23899. top: 110px;
  23900. width: 50px;
  23901. height: 50px;
  23902. display: flex;
  23903. align-items: center;
  23904. justify-content: center;
  23905. border-radius: 5px;
  23906. }
  23907. .pzClass {
  23908. width: calc(100% - 340px);
  23909. }
  23910. .newDialogCss {
  23911. /* position: fixed;
  23912. right: 5%;
  23913. top: 50%;
  23914. width: 340px;
  23915. transform: translateY(-50%);
  23916. height: 60%;
  23917. box-shadow: 0px 0 8px 0px #555555;
  23918. border-radius: 15px;
  23919. z-index: 999; */
  23920. position: fixed;
  23921. right: 20px;
  23922. top: 101px;
  23923. width: 330px;
  23924. height: calc(100% - 80px);
  23925. z-index: 999;
  23926. background: #fff;
  23927. border-top-right-radius: 0px;
  23928. border-bottom-right-radius: 0px;
  23929. overflow: hidden;
  23930. }
  23931. .newDialogCss>.scoreList{
  23932. width:100%;
  23933. height:100%;
  23934. box-sizing:border-box;
  23935. padding:10px 15px;
  23936. overflow:auto;
  23937. padding-bottom:80px;
  23938. }
  23939. .pzTop {
  23940. color: #fff;
  23941. background: #000;
  23942. display: flex;
  23943. flex-direction: row;
  23944. flex-wrap: nowrap;
  23945. align-items: center;
  23946. justify-content: space-between;
  23947. height: 40px;
  23948. border-radius: 15px 15px 0 0;
  23949. user-select: none;
  23950. }
  23951. .pzTop2 .checkbox {
  23952. display: flex;
  23953. align-items: center;
  23954. padding: 5px 10px;
  23955. flex: 0 0 auto;
  23956. font-weight: bold;
  23957. border-bottom: 1px solid #eee;
  23958. justify-content: space-between;
  23959. }
  23960. .checkbox>.cb-tabList{
  23961. display:flex;
  23962. align-items:center;
  23963. }
  23964. .cb-tabList>div{
  23965. margin-right:20px;
  23966. font-weight:400;
  23967. cursor:pointer;
  23968. }
  23969. .cb-tabList>.cb-tabItem{
  23970. color:#1684FC;
  23971. position:relative;
  23972. }
  23973. .cb-tabItem::after{
  23974. content:"";
  23975. width:100%;
  23976. height:2px;
  23977. background:#1684FC;
  23978. position:absolute;
  23979. bottom:-5px;
  23980. left:0
  23981. }
  23982. .pzTop2 .check {
  23983. text-align: center;
  23984. cursor: pointer;
  23985. box-sizing: border-box;
  23986. display: flex;
  23987. }
  23988. .pzTop2 img {
  23989. width: 25px;
  23990. cursor: pointer;
  23991. }
  23992. .pzTop > div:nth-child(1) {
  23993. padding-left: 10px;
  23994. }
  23995. .pzTop > div:nth-child(2) {
  23996. width: 15px;
  23997. height: 15px;
  23998. padding-right: 10px;
  23999. cursor: pointer;
  24000. }
  24001. .pzTop > div:nth-child(2) > img {
  24002. width: 100%;
  24003. height: 100%;
  24004. }
  24005. .pzBox,
  24006. .noPzBox {
  24007. height: calc(100% - 60px);
  24008. /* background: #ededed; */
  24009. background: #fff;
  24010. /* border-radius: 0 0 15px 15px; */
  24011. }
  24012. .noPzBox {
  24013. display: flex;
  24014. flex-direction: column;
  24015. flex-wrap: nowrap;
  24016. justify-content: center;
  24017. align-items: center;
  24018. }
  24019. .pzList {
  24020. background: #f7f7f7;
  24021. width: 90%;
  24022. margin: 0 auto 15px;
  24023. border-radius: 5px;
  24024. }
  24025. .pzNavTop {
  24026. display: flex;
  24027. flex-direction: row;
  24028. flex-wrap: nowrap;
  24029. padding: 10px 10px 0 10px;
  24030. align-items: center;
  24031. }
  24032. .pzDelete {
  24033. cursor: pointer;
  24034. margin-left: auto;
  24035. font-size: 14px;
  24036. color: #afafaf;
  24037. }
  24038. .pzNavTop > div:nth-child(1) {
  24039. background: #3760af;
  24040. width: 35px;
  24041. height: 35px;
  24042. color: #fff;
  24043. text-align: center;
  24044. line-height: 35px;
  24045. border-radius: 50%;
  24046. font-size: 14px;
  24047. }
  24048. .pzNavTop > div:nth-child(2) {
  24049. font-size: 18px;
  24050. color: #959595;
  24051. margin-left: 5px;
  24052. }
  24053. .pzContent {
  24054. padding: 10px;
  24055. word-break: break-word;
  24056. }
  24057. .pzContent audio {
  24058. width: 100%;
  24059. }
  24060. .pzContent audio::-webkit-media-controls-panel {
  24061. background: #fff;
  24062. }
  24063. .pzContent >>> img {
  24064. max-width: 100%;
  24065. }
  24066. .pzListBox {
  24067. padding-top: 15px;
  24068. height: calc(100% - 110px);
  24069. overflow: auto;
  24070. }
  24071. .addPzButton {
  24072. position: relative;
  24073. margin-top: 3px;
  24074. width: 100%;
  24075. }
  24076. .addPzButton .img1 {
  24077. position: absolute;
  24078. top: 50%;
  24079. right: 25px;
  24080. transform: translateY(-50%);
  24081. height: 100%;
  24082. display: flex;
  24083. align-items: center;
  24084. }
  24085. .addPzButton .img1 div {
  24086. display: flex;
  24087. }
  24088. .addPzButton .img1 div img {
  24089. width: 28px;
  24090. margin-left: 10px;
  24091. cursor: pointer;
  24092. }
  24093. .addPzButton .img1 div span {
  24094. font-size: 14px;
  24095. margin: 4px 0 0 3px;
  24096. color: #afafaf;
  24097. }
  24098. .addPz {
  24099. background: #4b79ce;
  24100. width: 100px;
  24101. color: #fff;
  24102. font-size: 12px;
  24103. height: 30px;
  24104. margin: 0 auto;
  24105. text-align: center;
  24106. line-height: 30px;
  24107. border-radius: 10px;
  24108. cursor: pointer;
  24109. }
  24110. .addDialogCss {
  24111. position: fixed;
  24112. width: 600px;
  24113. height: 70%;
  24114. min-height: 450px;
  24115. box-shadow: 0px 0 8px 0px #555555;
  24116. border-radius: 15px;
  24117. z-index: 999;
  24118. left: 50%;
  24119. top: 50%;
  24120. margin: -18% 0 0 -300px;
  24121. }
  24122. .teacherPz {
  24123. display: flex;
  24124. flex-direction: row;
  24125. align-items: center;
  24126. flex-wrap: nowrap;
  24127. }
  24128. .teacherPzImg {
  24129. width: 30px;
  24130. height: 30px;
  24131. }
  24132. .teacherPzImg > img {
  24133. width: 100%;
  24134. height: 100%;
  24135. }
  24136. .addPzBox {
  24137. height: calc(100% - 40px);
  24138. background: #ededed;
  24139. border-bottom-left-radius: 15px;
  24140. border-bottom-right-radius: 15px;
  24141. }
  24142. .pzAudioClass {
  24143. margin: 15px 14px;
  24144. background: #fff;
  24145. height: 100%;
  24146. display: flex;
  24147. justify-content: center;
  24148. align-items: center;
  24149. }
  24150. .pzConText {
  24151. width: 95%;
  24152. height: 100%;
  24153. margin: 10px auto 0;
  24154. border: none;
  24155. background: #fff;
  24156. border-radius: 0px;
  24157. }
  24158. .pzConText >>> .text {
  24159. height: calc(100% - 82px);
  24160. }
  24161. .addTextCss {
  24162. background: #4b79ce;
  24163. width: 80px;
  24164. height: 30px;
  24165. text-align: center;
  24166. color: #fff;
  24167. line-height: 30px;
  24168. border-radius: 10px;
  24169. margin: 10px auto 0;
  24170. cursor: pointer;
  24171. }
  24172. .pzConText:focus-visible {
  24173. border: none !important;
  24174. }
  24175. .maxWidth {
  24176. width: 1000px;
  24177. }
  24178. .noPz {
  24179. width: 150px;
  24180. margin: 0 auto 20%;
  24181. }
  24182. .noPz > img {
  24183. width: 100%;
  24184. height: 100%;
  24185. }
  24186. .timeAndReply {
  24187. display: flex;
  24188. flex-direction: row;
  24189. flex-wrap: nowrap;
  24190. justify-content: space-between;
  24191. align-items: center;
  24192. font-size: 14px;
  24193. box-sizing: border-box;
  24194. padding: 0 10px 10px 0px;
  24195. }
  24196. .timeAndReply .time {
  24197. color: #bfbfbf;
  24198. padding: 0 0 0 10px;
  24199. box-sizing: border-box;
  24200. }
  24201. .timeAndReply > div:last-child {
  24202. cursor: pointer;
  24203. color: #777;
  24204. }
  24205. /* table 样式 */
  24206. .cont >>> table {
  24207. border-top: 1px solid #ccc;
  24208. border-left: 1px solid #ccc;
  24209. }
  24210. .cont >>> table td,
  24211. .cont >>> table th {
  24212. border-bottom: 1px solid #ccc;
  24213. border-right: 1px solid #ccc;
  24214. /* padding: 20px 5px; */
  24215. padding: 5px 10px;
  24216. max-width: 0px;
  24217. height: 30px;
  24218. vertical-align: baseline;
  24219. box-sizing: border-box;
  24220. }
  24221. .cont >>> table th {
  24222. border-bottom: 2px solid #ccc;
  24223. text-align: center;
  24224. }
  24225. /* blockquote 样式 */
  24226. .cont >>> blockquote {
  24227. display: block;
  24228. border-left: 8px solid #d0e5f2;
  24229. padding: 5px 10px;
  24230. margin: 10px 0;
  24231. line-height: 1.4;
  24232. font-size: 100%;
  24233. background-color: #f1f1f1;
  24234. }
  24235. /* code 样式 */
  24236. .cont >>> code {
  24237. display: inline-block;
  24238. /* *display: inline; */
  24239. zoom: 1;
  24240. background-color: #f1f1f1;
  24241. border-radius: 3px;
  24242. padding: 3px 5px;
  24243. margin: 0 3px;
  24244. }
  24245. .cont >>> pre code {
  24246. display: block;
  24247. }
  24248. /* ul ol 样式 */
  24249. .cont >>> ul,
  24250. ol {
  24251. margin: 10px 0 10px 20px;
  24252. }
  24253. .addPzCheck {
  24254. display: flex;
  24255. flex-direction: row;
  24256. flex-wrap: nowrap;
  24257. padding: 10px 15px 0;
  24258. }
  24259. .addPzCheck span {
  24260. cursor: pointer;
  24261. padding-bottom: 5px;
  24262. font-weight: bold;
  24263. }
  24264. .addPzCheck span + span {
  24265. margin-left: 10px;
  24266. }
  24267. .addPzCheck .isChooseActive {
  24268. color: #3e88f4;
  24269. border-bottom: 2px solid #2f80f3;
  24270. }
  24271. /* code 样式 */
  24272. .cont {
  24273. /* -webkit-user-modify: read-write; */
  24274. overflow-wrap: break-word;
  24275. -webkit-line-break: after-white-space;
  24276. word-break: break-word;
  24277. white-space: pre-line;
  24278. }
  24279. .scoreBox,
  24280. .scoreDetailBox {
  24281. display: flex;
  24282. align-items: center;
  24283. justify-content: flex-start;
  24284. margin-top: 20px;
  24285. font-size: 18px;
  24286. width: 100%;
  24287. }
  24288. .scoreBox .t,
  24289. .scoreDetailBox .t {
  24290. margin-right: 10px;
  24291. width: 100px;
  24292. text-align: right;
  24293. }
  24294. .scoreDetailBox {
  24295. align-items: flex-start;
  24296. }
  24297. .scoreDetailBox >>> .el-textarea {
  24298. width: calc(100% - 200px);
  24299. }
  24300. .scoreBox >>> .el-input {
  24301. width: 130px;
  24302. font-size: 38px;
  24303. }
  24304. .scoreBox >>> .el-input__inner {
  24305. height: 60px;
  24306. }
  24307. .answerScore {
  24308. position: absolute;
  24309. top: 10px;
  24310. right: 10px;
  24311. background: #0000008f;
  24312. border-radius: 5px;
  24313. padding: 3px 5px;
  24314. font-size: 14px;
  24315. color: #fff;
  24316. cursor: pointer;
  24317. }
  24318. .open_box .switch_box {
  24319. width: 100%;
  24320. margin: 0 auto;
  24321. display: flex;
  24322. justify-content: space-between;
  24323. }
  24324. .open_box .switch_box + .switch_box {
  24325. margin-top: 10px;
  24326. }
  24327. .deleteImg,.deleteImg1 {
  24328. width: 25px !important;
  24329. height: 25px !important;
  24330. cursor: pointer;
  24331. position: absolute;
  24332. top: 10px;
  24333. right: 10px;
  24334. }
  24335. .deleteImg2 {
  24336. width: 23px !important;
  24337. height: 23px !important;
  24338. top: 5px;
  24339. right: 5px;
  24340. }
  24341. .deleteImg1{
  24342. width: 23px !important;
  24343. height: 23px !important;
  24344. top: 5px !important;
  24345. right: 30px !important;
  24346. }
  24347. .rightW {
  24348. right: 40px;
  24349. }
  24350. .drawPBox {
  24351. display: flex;
  24352. flex-direction: column;
  24353. position: relative;
  24354. }
  24355. .drawPBox span {
  24356. font-size: 18px;
  24357. color: #606266;
  24358. padding-bottom: 10px;
  24359. margin: 10px 0;
  24360. border-bottom: 1px solid #eaeaea;
  24361. }
  24362. .drawPBox img {
  24363. width: 500px;
  24364. height: 300px;
  24365. object-fit: contain;
  24366. cursor: pointer;
  24367. margin: 0 auto;
  24368. }
  24369. .sentenBox {
  24370. background: #fff;
  24371. height: 450px;
  24372. overflow: auto;
  24373. background-image: url("../assets/icon/conSentences/stuBg.png");
  24374. background-position: 102%;
  24375. background-repeat: no-repeat;
  24376. background-size: 60%;
  24377. }
  24378. .addSen {
  24379. background: #409efe;
  24380. width: 90px;
  24381. color: #fff;
  24382. height: 35px;
  24383. text-align: center;
  24384. line-height: 35px;
  24385. border-radius: 5px;
  24386. float: right;
  24387. margin: 10px 20px 0 0;
  24388. cursor: pointer;
  24389. }
  24390. .sentenTop {
  24391. display: flex;
  24392. flex-direction: row;
  24393. flex-wrap: nowrap;
  24394. align-items: center;
  24395. padding: 55px 0 0 20px;
  24396. box-sizing: border-box;
  24397. }
  24398. .sentenTop > div:nth-child(2) {
  24399. width: 300px;
  24400. margin: 0 15px;
  24401. }
  24402. .sentenTop > div:nth-child(3) {
  24403. background: #409efe;
  24404. color: #fff;
  24405. width: 65px;
  24406. height: 35px;
  24407. text-align: center;
  24408. line-height: 35px;
  24409. border-radius: 5px;
  24410. cursor: pointer;
  24411. }
  24412. .cardList,
  24413. .cardList1 {
  24414. padding: 10px 0 10px 0;
  24415. display: flex;
  24416. flex-direction: row;
  24417. flex-wrap: wrap;
  24418. align-items: center;
  24419. box-sizing: border-box;
  24420. border-bottom: 1px solid #f4f4f4;
  24421. width: 98%;
  24422. margin: 0 auto;
  24423. min-width: 60%;
  24424. max-width: 85%;
  24425. }
  24426. .cardList1 {
  24427. padding: 10px 0 10px 10px !important;
  24428. margin: 0 !important;
  24429. }
  24430. .cardBox {
  24431. display: flex;
  24432. flex-direction: row;
  24433. flex-wrap: wrap;
  24434. align-items: center;
  24435. align-content: center;
  24436. }
  24437. .cardBox > div {
  24438. margin-bottom: 10px;
  24439. }
  24440. .isCard,
  24441. .isChooseCard,
  24442. .noCard,
  24443. .isCard1 {
  24444. min-width: 130px;
  24445. width: auto;
  24446. height: 60px;
  24447. text-align: center;
  24448. line-height: 60px;
  24449. font-size: 20px;
  24450. cursor: pointer;
  24451. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24452. background-size: cover;
  24453. transition: all 2s;
  24454. margin-right: 20px;
  24455. background-size: 100% 100%;
  24456. padding: 0 20px;
  24457. box-sizing: border-box;
  24458. }
  24459. .isCard > div,
  24460. .noCard > div,
  24461. .isCard1 > div {
  24462. white-space: nowrap;
  24463. overflow: hidden;
  24464. text-overflow: ellipsis;
  24465. width: 100%;
  24466. margin: 0 auto;
  24467. }
  24468. .noCard {
  24469. background-image: none;
  24470. }
  24471. .isCard1 {
  24472. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24473. }
  24474. .isChooseCard {
  24475. background-image: none;
  24476. border: 1px dashed #b9b9b9;
  24477. border-radius: 10px;
  24478. }
  24479. .card {
  24480. width: 130px;
  24481. height: 60px;
  24482. }
  24483. .card > img {
  24484. width: 100%;
  24485. height: 100%;
  24486. }
  24487. .rightCardBox {
  24488. margin: 10px 0 0 10px;
  24489. }
  24490. .rightCardBox > div:nth-child(1) {
  24491. margin-bottom: 10px;
  24492. }
  24493. .cardCss {
  24494. display: flex;
  24495. flex-direction: column;
  24496. flex-wrap: nowrap;
  24497. align-items: center;
  24498. border-bottom: 3px solid #b4c3d3;
  24499. padding: 0 0 5px 0;
  24500. margin-right: 10px;
  24501. }
  24502. .cardCss > div:nth-child(2) {
  24503. background: #5b7b9d;
  24504. color: #fff;
  24505. width: 20px;
  24506. height: 20px;
  24507. border-radius: 50%;
  24508. text-align: center;
  24509. line-height: 20px;
  24510. }
  24511. .isWrong {
  24512. display: flex;
  24513. flex-direction: row;
  24514. flex-wrap: nowrap;
  24515. align-content: center;
  24516. align-items: center;
  24517. }
  24518. .answerRight {
  24519. width: 25%;
  24520. }
  24521. .isTj {
  24522. display: flex;
  24523. flex-direction: row;
  24524. flex-wrap: nowrap;
  24525. align-items: center;
  24526. }
  24527. .isTj > div:nth-child(2) {
  24528. color: #727070;
  24529. margin-left: 10px;
  24530. }
  24531. .isTjImg {
  24532. width: 30px;
  24533. height: 30px;
  24534. }
  24535. .isTjImg > img {
  24536. width: 100%;
  24537. height: 100%;
  24538. }
  24539. .cardAnswerBox {
  24540. font-size: 18px;
  24541. width: 97%;
  24542. border: 5px;
  24543. padding: 0;
  24544. border-radius: 5px;
  24545. margin: 10px auto;
  24546. word-break: break-word;
  24547. }
  24548. .w_name {
  24549. margin-bottom: 10px;
  24550. }
  24551. .w_name span {
  24552. font-size: 16px;
  24553. }
  24554. .w_teachert {
  24555. width: 50px !important;
  24556. position: absolute;
  24557. height: auto !important;
  24558. z-index: 10;
  24559. right: 25px;
  24560. top: -25px;
  24561. }
  24562. /* .group_workBox {
  24563. } */
  24564. .group_workBox + .group_workBox {
  24565. margin-top: 20px;
  24566. }
  24567. .group_box {
  24568. padding-bottom: 20px;
  24569. border-bottom: 2px solid #f0f0f0;
  24570. margin-top: 10px;
  24571. }
  24572. .group_title {
  24573. display: flex;
  24574. align-items: center;
  24575. justify-content: space-between;
  24576. width: 95%;
  24577. }
  24578. .group_name {
  24579. background-image: url(../assets/icon/groupN.png);
  24580. width: 220px;
  24581. background-size: 100% 100%;
  24582. height: 67px;
  24583. padding: 0 20px 0 43px;
  24584. box-sizing: border-box;
  24585. line-height: 63px;
  24586. color: #fff;
  24587. overflow: hidden;
  24588. white-space: nowrap;
  24589. text-overflow: ellipsis;
  24590. }
  24591. .group_work {
  24592. width: 100%;
  24593. padding: 0 10px;
  24594. box-sizing: border-box;
  24595. display: flex;
  24596. flex-wrap: wrap;
  24597. }
  24598. .g_d_box {
  24599. display: flex;
  24600. flex-flow: wrap;
  24601. justify-content: space-around;
  24602. }
  24603. .g_d_box .isChair {
  24604. background-image: url(../assets/avatar.png) !important;
  24605. }
  24606. .g_d_group {
  24607. width: 500px;
  24608. margin-bottom: 80px;
  24609. }
  24610. .g_d_group_chair {
  24611. display: flex;
  24612. align-items: center;
  24613. justify-content: center;
  24614. }
  24615. .g_d_group_chair > div + div {
  24616. margin-left: 30px;
  24617. }
  24618. .g_d_group_chair > div,
  24619. .g_d_group_chair2 > div {
  24620. display: flex;
  24621. flex-direction: column;
  24622. align-items: center;
  24623. }
  24624. .g_d_group_chair > div > span:nth-child(1),
  24625. .g_d_group_chair2 > div > span:nth-child(1) {
  24626. background-image: url(../assets/icon/chair.png);
  24627. width: 50px;
  24628. height: 50px;
  24629. display: block;
  24630. background-size: 100% 100%;
  24631. }
  24632. .g_d_group_tableBox {
  24633. display: flex;
  24634. align-items: center;
  24635. justify-content: center;
  24636. }
  24637. .g_d_group_chair2 {
  24638. display: flex;
  24639. flex-direction: column;
  24640. align-items: center;
  24641. justify-content: center;
  24642. }
  24643. .g_d_group_chair2 > div + div {
  24644. margin-top: 10px;
  24645. }
  24646. .g_d_group_table {
  24647. background-image: url(../assets/icon/groupBg.png);
  24648. width: 354px;
  24649. height: 196px;
  24650. background-size: 100% 100%;
  24651. display: flex;
  24652. align-items: center;
  24653. justify-content: center;
  24654. flex-direction: column;
  24655. color: #fff;
  24656. }
  24657. .g_d_group_table > div:nth-child(1) {
  24658. font-size: 24px;
  24659. margin-bottom: 5px;
  24660. }
  24661. .g_d_group_table > div:nth-child(2) div {
  24662. cursor: pointer;
  24663. background: #2e77bf;
  24664. padding: 4px 10px;
  24665. border-radius: 5px;
  24666. }
  24667. /* .groupBox {
  24668. } */
  24669. .groupContent + .groupContent {
  24670. margin-top: 30px;
  24671. }
  24672. .groupTitle {
  24673. font-size: 24px;
  24674. color: rgb(80, 80, 80);
  24675. margin-bottom: 20px;
  24676. }
  24677. .groupName {
  24678. display: flex;
  24679. align-items: center;
  24680. }
  24681. .groupn {
  24682. font-size: 15px;
  24683. margin-right: 10px;
  24684. }
  24685. .groupName + .groupName {
  24686. margin-top: 15px;
  24687. }
  24688. .groupBtn {
  24689. margin-left: 10px;
  24690. }
  24691. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24692. text-align: left;
  24693. }
  24694. .g_d_btnBox {
  24695. display: flex;
  24696. justify-content: flex-end;
  24697. align-items: center;
  24698. margin-bottom: 20px;
  24699. }
  24700. .updateChair {
  24701. position: relative;
  24702. }
  24703. .updateChairBtn {
  24704. position: absolute;
  24705. width: 50px;
  24706. height: 50px;
  24707. overflow: hidden;
  24708. /* display: flex; */
  24709. align-items: center;
  24710. justify-content: center;
  24711. background: #00000087;
  24712. color: #fff;
  24713. border-radius: 50px;
  24714. display: none;
  24715. cursor: pointer;
  24716. }
  24717. .updateChair:hover .updateChairBtn {
  24718. display: flex;
  24719. }
  24720. .group_staic_box {
  24721. display: flex;
  24722. padding: 30px 40px 10px;
  24723. flex-wrap: wrap;
  24724. }
  24725. .group_staic {
  24726. /* width: 50%; */
  24727. margin-bottom: 20px;
  24728. display: flex;
  24729. align-items: center;
  24730. }
  24731. .group_staic span:nth-child(1) {
  24732. width: 150px;
  24733. text-align: right;
  24734. margin-right: 15px;
  24735. }
  24736. .group_staic span:nth-child(2) {
  24737. background: rgb(0 123 255);
  24738. color: #fff;
  24739. border-radius: 5px;
  24740. padding: 5px;
  24741. }
  24742. .codeFileBox {
  24743. height: 300px;
  24744. background: #fff;
  24745. display: flex;
  24746. align-items: center;
  24747. justify-content: center;
  24748. }
  24749. .codeFileBox img {
  24750. width: 200px;
  24751. margin: 0;
  24752. height: auto;
  24753. }
  24754. .codeFileBox div {
  24755. background: rgb(80, 142, 226);
  24756. color: #fff;
  24757. padding: 10px 20px;
  24758. border-radius: 25px;
  24759. cursor: pointer;
  24760. margin-left: 15px;
  24761. }
  24762. .radioBox {
  24763. display: flex;
  24764. flex-direction: column;
  24765. flex-wrap: nowrap;
  24766. align-items: flex-start;
  24767. }
  24768. .radioBox > div {
  24769. margin: 10px 0 0 10px;
  24770. }
  24771. /* .radioBox >>> .el-radio__input,
  24772. .radioBox >>> .el-checkbox__inner {
  24773. margin-left: 10px;
  24774. } */
  24775. .radioBox >>> .el-radio__label,
  24776. .radioBox >>> .el-checkbox__label {
  24777. display: flex;
  24778. align-items: center;
  24779. width: 100%;
  24780. }
  24781. .radioBox >>> .el-radio__label > span {
  24782. width: 100%;
  24783. display: -webkit-box;
  24784. overflow: hidden;
  24785. white-space: normal !important;
  24786. text-overflow: ellipsis;
  24787. word-wrap: break-word;
  24788. }
  24789. .inImg {
  24790. width: 100px;
  24791. cursor: pointer;
  24792. }
  24793. .inImg > img {
  24794. width: 100%;
  24795. height: 100%;
  24796. object-fit: cover;
  24797. }
  24798. .timuImgBox {
  24799. margin: 10px 0;
  24800. display: flex;
  24801. flex-direction: column;
  24802. flex-wrap: wrap;
  24803. align-items: flex-start;
  24804. }
  24805. .timuImg {
  24806. width: 150px;
  24807. margin: 5px 0;
  24808. cursor: pointer;
  24809. }
  24810. .timuImg > img {
  24811. width: 100%;
  24812. height: 100%;
  24813. object-fit: cover;
  24814. }
  24815. .worksTop {
  24816. display: flex;
  24817. flex-direction: row;
  24818. align-items: flex-end;
  24819. }
  24820. .worksTitle{
  24821. display: flex;
  24822. flex-direction: row;
  24823. flex-wrap: nowrap;
  24824. align-items: center;
  24825. }
  24826. .worksTitle::before,.worksTop::before{
  24827. content: '';
  24828. display: block;
  24829. width: 3px;
  24830. height: 20px;
  24831. background: #0061FF;
  24832. border-radius: 3px;
  24833. margin: 0 5px 0 0;
  24834. }
  24835. .corOpen {
  24836. margin: 0 0 0 10px;
  24837. font-size: 14px;
  24838. cursor: pointer;
  24839. color: #505050;
  24840. }
  24841. .corOpen:hover {
  24842. color: #499eef;
  24843. }
  24844. .navCorOpenBox {
  24845. display: flex;
  24846. flex-direction: row;
  24847. align-items: center;
  24848. justify-content: space-between;
  24849. height: 55px;
  24850. background: #ffffff;
  24851. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24852. border-radius: 8px 8px 0px 0px;
  24853. z-index: 9;
  24854. position: relative;
  24855. }
  24856. .navCorOpen {
  24857. padding-right: 15px;
  24858. cursor: pointer;
  24859. width: 45px;
  24860. display: flex;
  24861. }
  24862. .navCorOpen > img {
  24863. width: 100%;
  24864. height: 100%;
  24865. }
  24866. .mlImg {
  24867. width: 40px !important;
  24868. min-width: 40px;
  24869. cursor: pointer;
  24870. transform: rotate(180deg);
  24871. }
  24872. .mlImg > img {
  24873. width: 100%;
  24874. height: 100%;
  24875. }
  24876. .navLeftCss {
  24877. width: 100% !important;
  24878. left: 0 !important;
  24879. }
  24880. .isContentCss {
  24881. width: 100% !important;
  24882. }
  24883. .isAllWidth {
  24884. width: 100% !important;
  24885. }
  24886. .group_switch {
  24887. margin-right: 10px;
  24888. height: 30px;
  24889. display: flex;
  24890. align-items: center;
  24891. }
  24892. .group_switch > span {
  24893. margin-right: 5px;
  24894. }
  24895. .fileC_box {
  24896. padding-top: 15px;
  24897. }
  24898. .fileC_box > .fileC_title {
  24899. padding: 10px 5px 14px 10px;
  24900. border-top: 1px solid #cad1dc;
  24901. font-size: 14px;
  24902. font-weight: 400;
  24903. color: #cad1dc;
  24904. width: calc(100% - 20px);
  24905. margin: 0 auto;
  24906. box-sizing: border-box;
  24907. }
  24908. .pl_select_box {
  24909. height: 40px;
  24910. line-height: 40px;
  24911. width: 100%;
  24912. cursor: pointer;
  24913. padding: 0 20px;
  24914. box-sizing: border-box;
  24915. border-radius: 5px;
  24916. border: 1px solid #d6d6d6;
  24917. white-space: nowrap;
  24918. overflow: hidden;
  24919. text-overflow: ellipsis;
  24920. background: #fff;
  24921. text-align: left;
  24922. }
  24923. .newButton {
  24924. width: 102px;
  24925. height: 36px;
  24926. background: #e7ebf1;
  24927. border-radius: 4px;
  24928. color: #0e1e33;
  24929. font-weight: 400;
  24930. font-size: 14px;
  24931. border: none;
  24932. float: right;
  24933. margin-left: 10px;
  24934. }
  24935. .el-table >>> .even_row {
  24936. background-color: #f0f4fa;
  24937. }
  24938. .stageBoxCss,
  24939. .stageBoxIsCss {
  24940. display: flex;
  24941. flex-direction: row;
  24942. flex-wrap: nowrap;
  24943. align-items: center;
  24944. height: 50px;
  24945. border-bottom: 1px solid #e2f5fc;
  24946. cursor: pointer;
  24947. width: 100%;
  24948. }
  24949. .stageBoxIsCss {
  24950. background: #0061ff;
  24951. color: #fff;
  24952. border-radius: 8px;
  24953. }
  24954. .stageItemTitle {
  24955. display: flex;
  24956. flex-direction: row;
  24957. flex-wrap: nowrap;
  24958. align-items: center;
  24959. margin-left: 15px;
  24960. width: calc(100% - 50px);
  24961. }
  24962. /* .stageNav{ */
  24963. /* font-weight: bold; */
  24964. /* } */
  24965. .stageItemTitle > div:first-child {
  24966. min-width: 55px;
  24967. }
  24968. .stageItemTitle > div:last-child {
  24969. max-width: 242px;
  24970. white-space: nowrap;
  24971. overflow: hidden;
  24972. text-overflow: ellipsis;
  24973. word-break: break-word;
  24974. width: calc(100% - 55px);
  24975. }
  24976. .closeTri,
  24977. .closeTri1 {
  24978. min-width: 15px;
  24979. width: 15px;
  24980. height: 15px;
  24981. transition: all .5s;
  24982. }
  24983. .closeTri1 {
  24984. padding-left: 10px;
  24985. cursor: pointer;
  24986. }
  24987. .closeTri > img,
  24988. .closeTri1 > img {
  24989. width: 100%;
  24990. height: 100%;
  24991. /* transition: all .5s; */
  24992. }
  24993. .noToolBlue {
  24994. min-width: 10px;
  24995. width: 10px;
  24996. height: 10px;
  24997. background: #0061ff;
  24998. border-radius: 50%;
  24999. margin-left: 13px;
  25000. }
  25001. .stageChild,
  25002. .toolChild {
  25003. height: 0;
  25004. overflow: hidden;
  25005. transition: all 0.5s;
  25006. }
  25007. /* .toolChild { */
  25008. /* margin: 0 0 0 17px;
  25009. padding: 0 0 0 20px;
  25010. border-left: 1px solid #d7d7d7; */
  25011. /* } */
  25012. .toolChild > div + div{
  25013. margin-top:5px;
  25014. }
  25015. .gjCss {
  25016. display: flex;
  25017. flex-direction: row;
  25018. flex-wrap: nowrap;
  25019. align-items: center;
  25020. padding: 10px 0 10px 40px;
  25021. box-sizing: border-box;
  25022. font-size: 14px;
  25023. cursor: pointer;
  25024. border-radius:5px;
  25025. }
  25026. .toolChild > div {
  25027. position: relative;
  25028. width:100%;
  25029. }
  25030. /* .toolChild > div::before { */
  25031. /* content: "";
  25032. width: 15px;
  25033. height: 1px;
  25034. background: #cad1dc;
  25035. position: absolute;
  25036. top: 24px;
  25037. left: -20px;
  25038. display: block; */
  25039. /* } */
  25040. .isGjCss {
  25041. /* color: #0061ff; */
  25042. color:#fff;
  25043. background: rgb(55, 129, 252);
  25044. /* background-color: #e0eafb !important;
  25045. color: #0061ff !important; */
  25046. }
  25047. .navItem {
  25048. background: #ffffff;
  25049. border-radius: 4px;
  25050. width: 100%;
  25051. margin: 10px auto;
  25052. position: relative;
  25053. height: 40px;
  25054. display: flex;
  25055. flex-direction: row;
  25056. flex-wrap: nowrap;
  25057. align-items: center;
  25058. }
  25059. .navItemList {
  25060. display: flex;
  25061. flex-direction: row;
  25062. flex-wrap: nowrap;
  25063. align-items: center;
  25064. padding: 0 13px;
  25065. cursor: pointer;
  25066. width: calc(100% - 60px);
  25067. height: 100%;
  25068. }
  25069. .navItemList > div:first-child {
  25070. /* min-width: 60px; */
  25071. min-width:fit-content;
  25072. }
  25073. .navItemList > div:last-child {
  25074. width: calc(100% - 80px);
  25075. white-space: nowrap;
  25076. overflow: hidden;
  25077. text-overflow: ellipsis;
  25078. word-break: break-word;
  25079. }
  25080. /* .isItemList > div {
  25081. color: #fff !important;
  25082. } */
  25083. .tool_work_box {
  25084. width: 100%;
  25085. padding: 0 37px 0;
  25086. box-sizing: border-box;
  25087. }
  25088. .tool_box {
  25089. width: 100%;
  25090. padding: 0 0 0 20px;
  25091. }
  25092. .tool_type_box {
  25093. display: flex;
  25094. flex-direction: row;
  25095. align-items: baseline;
  25096. flex-wrap: nowrap;
  25097. justify-content: flex-start;
  25098. position: relative;
  25099. }
  25100. .toolSort {
  25101. display: flex;
  25102. flex-direction: row;
  25103. flex-wrap: wrap;
  25104. justify-content: flex-start;
  25105. align-items: flex-start;
  25106. padding: 0 0 15px 0;
  25107. }
  25108. .toolSort > div {
  25109. margin: 0 10px 0 0;
  25110. width: 135px;
  25111. box-sizing: border-box;
  25112. border: 2px solid transparent;
  25113. }
  25114. .tools {
  25115. width: 100%;
  25116. display: flex;
  25117. flex-direction: column;
  25118. flex-wrap: nowrap;
  25119. align-items: flex-start;
  25120. }
  25121. .whiteBIcon {
  25122. width: fit-content;
  25123. cursor: pointer;
  25124. display: flex;
  25125. flex-direction: column;
  25126. flex-wrap: nowrap;
  25127. align-items: center;
  25128. font-size: 14px;
  25129. }
  25130. .tool:hover {
  25131. border: 2px solid #a5c7ff;
  25132. border-radius: 5px;
  25133. }
  25134. .whiteBIcon > img {
  25135. width: 65px;
  25136. height: 100%;
  25137. }
  25138. .whiteBIcon > img {
  25139. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25140. border-radius: 15px;
  25141. }
  25142. .check {
  25143. /* width: 20px;
  25144. height: 20px; */
  25145. cursor: pointer;
  25146. margin: 10px 0;
  25147. position: absolute;
  25148. right: 2px;
  25149. top: -5px;
  25150. }
  25151. .noChoose,
  25152. .isChoose {
  25153. width: 15px;
  25154. height: 15px;
  25155. border-radius: 50%;
  25156. border: 1px solid #adadad;
  25157. }
  25158. .isChoose {
  25159. border: 4px solid #0363ff !important;
  25160. width: 10px;
  25161. height: 10px;
  25162. }
  25163. .isToolChoose {
  25164. border: 2px solid #5394ff !important;
  25165. border-radius: 5px;
  25166. box-shadow: 0 0 6px 0px #5394ff;
  25167. }
  25168. .checkDiv {
  25169. display: flex;
  25170. align-items: center;
  25171. }
  25172. .checkDiv span {
  25173. margin-left: 5px;
  25174. color: #858585;
  25175. }
  25176. .check img {
  25177. width: 20px;
  25178. height: 20px;
  25179. }
  25180. .lockTaskIcon {
  25181. width: 20px;
  25182. height: 20px;
  25183. position: absolute;
  25184. right: 10px;
  25185. top: 5px;
  25186. }
  25187. .lockTaskIcon > img {
  25188. width: 100%;
  25189. height: 100%;
  25190. }
  25191. .pick_box {
  25192. display: flex;
  25193. align-items: flex-start;
  25194. flex-wrap: wrap;
  25195. }
  25196. .selectBox {
  25197. width: 110px;
  25198. margin-left: 10px;
  25199. margin: 0 10px 0 auto;
  25200. }
  25201. .selectBox >>> .el-input__inner {
  25202. height: 30px;
  25203. line-height: 30px;
  25204. }
  25205. .selectBox >>> .el-input__icon {
  25206. line-height: 30px;
  25207. }
  25208. .sentenceTitle {
  25209. display: flex;
  25210. flex-direction: row;
  25211. flex-wrap: nowrap;
  25212. align-items: center;
  25213. }
  25214. .sentenceTitle::before {
  25215. content: attr(index);
  25216. background: #3681fc;
  25217. border-radius: 50%;
  25218. color: #fff;
  25219. width: 25px;
  25220. height: 25px;
  25221. min-width: 25px;
  25222. min-height: 25px;
  25223. text-align: center;
  25224. line-height: 25px;
  25225. margin-right: 5px;
  25226. }
  25227. .hfBox {
  25228. padding: 10px;
  25229. box-sizing: border-box;
  25230. }
  25231. .whoReplyWho {
  25232. display: flex;
  25233. flex-direction: row;
  25234. flex-wrap: nowrap;
  25235. align-items: baseline;
  25236. justify-content: flex-start;
  25237. }
  25238. .hfBottom {
  25239. display: flex;
  25240. flex-direction: row;
  25241. flex-wrap: nowrap;
  25242. align-items: center;
  25243. justify-content: space-between;
  25244. font-size: 14px;
  25245. }
  25246. .deleteHfItem {
  25247. cursor: pointer;
  25248. width: 20px;
  25249. height: 20px;
  25250. }
  25251. .deleteHfItem > img {
  25252. width: 100%;
  25253. height: 100%;
  25254. }
  25255. .whoReplyWho > .hfImg {
  25256. width: 12px;
  25257. height: 12px;
  25258. margin: 0 5px;
  25259. }
  25260. .whoReplyWho > .hfImg > img {
  25261. width: 100%;
  25262. height: 100%;
  25263. }
  25264. .hfContent {
  25265. padding-top: 10px;
  25266. box-sizing: border-box;
  25267. display: -webkit-box;
  25268. overflow: hidden;
  25269. white-space: normal !important;
  25270. text-overflow: ellipsis;
  25271. word-wrap: break-word;
  25272. -webkit-box-orient: vertical;
  25273. }
  25274. .hfTime {
  25275. text-align: left;
  25276. box-sizing: border-box;
  25277. padding: 10px 0 10px 0px;
  25278. color: #bfbfbf;
  25279. font-size: 14px;
  25280. }
  25281. .btnAllNT {
  25282. position: fixed;
  25283. bottom: 100px;
  25284. right: 40px;
  25285. z-index: 999;
  25286. display: flex;
  25287. flex-direction: row;
  25288. }
  25289. .btnAllNT > img {
  25290. cursor: pointer;
  25291. width: 80px;
  25292. }
  25293. .toolMask {
  25294. position: fixed;
  25295. width: 100%;
  25296. height: 100%;
  25297. background: #3f3c3c;
  25298. opacity: 0.5;
  25299. top: 0;
  25300. left: 0;
  25301. z-index: 999;
  25302. }
  25303. .addToolCss {
  25304. position: fixed;
  25305. z-index: 999;
  25306. background: #fff;
  25307. right: 5%;
  25308. bottom: 18%;
  25309. min-width: 1035px;
  25310. min-height: 300px;
  25311. border-radius: 10px;
  25312. box-shadow: 0 0 8px 1px #b2b2b2;
  25313. }
  25314. .toolTop {
  25315. display: flex;
  25316. flex-direction: row;
  25317. flex-wrap: nowrap;
  25318. justify-content: space-between;
  25319. align-items: center;
  25320. padding: 20px;
  25321. }
  25322. .toolTop > div:nth-child(2) {
  25323. width: 15px;
  25324. height: 15px;
  25325. padding-right: 10px;
  25326. cursor: pointer;
  25327. }
  25328. .toolTop > div:nth-child(2) > img {
  25329. width: 100%;
  25330. height: 100%;
  25331. }
  25332. .fullStyle>>>.el-dialog__body {
  25333. height: calc(100% - 125px) !important;
  25334. box-sizing: border-box;
  25335. padding: 30px 0 !important;
  25336. background: #fff !important;
  25337. }
  25338. .fullStyle>>>.el-dialog {
  25339. width: 100% !important;
  25340. max-width: 100% !important;
  25341. height: 100% !important;
  25342. margin: 0 !important;
  25343. }
  25344. .fullStyle {
  25345. width: 100% !important;
  25346. max-width: 100% !important;
  25347. height: 100% !important;
  25348. margin: 0 auto !important;
  25349. }
  25350. .fullStyle>>>.el-dialog__footer{
  25351. background: #fff !important;
  25352. }
  25353. .engUpBox {
  25354. width: 100%;
  25355. height: 100%;
  25356. }
  25357. .engTitle,
  25358. .engText {
  25359. display: flex;
  25360. flex-direction: row;
  25361. flex-wrap: nowrap;
  25362. align-items: flex-start;
  25363. padding: 0 20px 20px 20px;
  25364. box-sizing: border-box;
  25365. }
  25366. .engTitle > .div:first-child,
  25367. .engText > div:first-child {
  25368. min-width: 75px;
  25369. }
  25370. .correctBox{
  25371. width: 100%;
  25372. display: flex;
  25373. flex-direction: row;
  25374. flex-wrap: nowrap;
  25375. align-items: flex-start;
  25376. }
  25377. .oldBox{
  25378. width: 50%;
  25379. height: 100%;
  25380. display: flex;
  25381. flex-direction: column;
  25382. flex-wrap: nowrap;
  25383. align-items: center;
  25384. border-top: 1px solid #d9d9d9;
  25385. border-left: 1px solid #d9d9d9;
  25386. border-right: 1px solid #d9d9d9;
  25387. }
  25388. .oldBox>div:first-child{
  25389. width: 100%;
  25390. text-align: center;
  25391. background: #d9d9d9;
  25392. height: 35px;
  25393. line-height: 35px;
  25394. font-weight: bold;
  25395. }
  25396. .oldText{
  25397. width: 100%;
  25398. height: calc(100% - 35px);
  25399. overflow: auto;
  25400. margin: 10px 0;
  25401. display: flex;
  25402. flex-direction: column;
  25403. flex-wrap: nowrap;
  25404. align-content: center;
  25405. align-items: center;
  25406. }
  25407. .detailBox{
  25408. width: 50%;
  25409. padding: 10px;
  25410. background: #f6f6f6;
  25411. border-radius: 5px;
  25412. }
  25413. .oldDetail,.oldDetail1{
  25414. padding-bottom: 30px;
  25415. }
  25416. .oldImg{
  25417. width:30px;
  25418. height: 30px;
  25419. }
  25420. .oldImg>img{
  25421. width: 100%;
  25422. height: 100%;
  25423. }
  25424. .allName{
  25425. min-width: 200px;
  25426. white-space: nowrap;
  25427. overflow: hidden;
  25428. text-overflow: ellipsis;
  25429. word-break: break-word;
  25430. cursor: pointer;
  25431. text-align: center;
  25432. border: 1px solid #bcc2cc;
  25433. box-sizing: border-box;
  25434. }
  25435. .engUpTop{
  25436. max-height: 300px;
  25437. overflow: auto;
  25438. }
  25439. .isUpdateToolDetailClass{
  25440. padding: 0 !important;
  25441. }
  25442. .isUpdateToolDetailClass textarea{
  25443. padding:12px;
  25444. font-size: 16px;
  25445. min-height:100%;
  25446. width: 100%;
  25447. box-sizing:border-box;
  25448. outline: none;
  25449. border:none;
  25450. line-height: 30px;
  25451. resize: none;
  25452. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25453. color: #838383;
  25454. }
  25455. .show_taskD {
  25456. min-width: fit-content;
  25457. margin-left: 10px;
  25458. display: flex;
  25459. align-items: center;
  25460. font-size: 14px;
  25461. cursor: pointer;
  25462. color: #717c8d;
  25463. }
  25464. .show_taskD > img {
  25465. width: 15px;
  25466. margin-right: 5px;
  25467. transition: 0.2s all;
  25468. transform: rotate(-90deg);
  25469. }
  25470. .show_taskD.show > img {
  25471. transform: rotate(0deg);
  25472. }
  25473. .correctCss{
  25474. position: absolute;
  25475. bottom: -70px;
  25476. background: #409eff;
  25477. color: #fff;
  25478. }
  25479. .dialog_diyCopy >>> .el-dialog__header {
  25480. display: none !important;
  25481. }
  25482. .dialog_diyCopy >>> .el-dialog__body {
  25483. padding: 0 !important;
  25484. height: 100% !important;
  25485. }
  25486. .confirmOpenDigCss > div{
  25487. font-size: 14px;
  25488. color: rgba(0, 0, 0, 0.6);
  25489. }
  25490. .confirmOpenDigCss >>> .el-dialog{
  25491. border-radius: 6px;
  25492. }
  25493. .confirmOpenDigCss >>> .el-dialog__body{
  25494. padding: 25px !important;
  25495. }
  25496. .confirmOpenDigCss > span{
  25497. font-size: 16px;
  25498. font-weight: 600;
  25499. color: rgba(0, 0, 0, 0.8);
  25500. }
  25501. div::-webkit-scrollbar {
  25502. width: 10px;
  25503. height: 6px;
  25504. }
  25505. .Ovh{
  25506. margin: 5px 0;
  25507. width: 4em;
  25508. -webkit-line-clamp: 2;
  25509. display: -webkit-box;
  25510. -webkit-box-orient: vertical;
  25511. overflow: hidden;
  25512. text-overflow: ellipsis;
  25513. }
  25514. .pb_content >>> .katex {
  25515. font-size: 16px;
  25516. width: 100%;
  25517. white-space: normal;
  25518. }
  25519. .pb_content >>> .katex .base{
  25520. display: inline !important;
  25521. display: contents !important;
  25522. }
  25523. .pb_content >>> .katex .base .cjk_fallback{
  25524. white-space: normal !important;
  25525. display: inline !important;
  25526. }
  25527. </style>