studyStudent.vue 880 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? renderedFormula(chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail)
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. :key="diffKey"
  622. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  623. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  624. :src="pptImgUrl1"
  625. ></iframe>
  626. <iframe
  627. style="width: 100%; height: 100%; border: none"
  628. security="restricted"
  629. v-else
  630. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  631. :src="pptImgUrl1"
  632. ></iframe>
  633. </div>
  634. <div
  635. class="wheel"
  636. v-if="showType === 16"
  637. style="width: 95%; margin: 0 auto"
  638. >
  639. <iframe
  640. style="width: 100%; height: 100%; border: none"
  641. :src="pptImgUrl1"
  642. ></iframe>
  643. </div>
  644. <div
  645. class="wheel"
  646. v-if="showType == 3"
  647. style="width: 95%; margin: 0 auto"
  648. >
  649. <pdf
  650. :pdfUrl="pptImgUrl1"
  651. style="width: 100%; height: 100%; overflow: auto"
  652. ></pdf>
  653. </div>
  654. <div
  655. class="wheel"
  656. v-if="showType == 4"
  657. style="width: 95%; margin: 0 auto"
  658. >
  659. <el-image
  660. :src="pptImgUrl1"
  661. fit="contain"
  662. style="width: 100%; height: 100%; cursor: pointer"
  663. @click="previewImg(pptImgUrl1)"
  664. ></el-image>
  665. </div>
  666. </div>
  667. <div
  668. class="pButton"
  669. style="position: absolute; right: 20px; top: 0; z-index: 998"
  670. v-if="!contentDialog"
  671. @click="setContent(true)"
  672. >
  673. <!-- 批 -->
  674. <img
  675. src="../../assets/icon/newIcons/isLeft.png"
  676. style="width: 45px"
  677. alt=""
  678. />
  679. </div>
  680. <div
  681. v-if="contentDialog == true"
  682. :style="{
  683. width:
  684. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  685. showType === ''
  686. ? 'calc(100%)'
  687. : '300px',
  688. margin:
  689. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  690. showType === ''
  691. ? '0 15px'
  692. : '0 15px 0 0',
  693. }"
  694. >
  695. <div
  696. class="vedioList"
  697. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  698. style="height: 650px"
  699. >
  700. <div class="navCorOpenBox">
  701. <div class="navTitile">内容列表:</div>
  702. <div class="navCorOpen" @click="setContent(false)">
  703. <img
  704. src="../../assets/icon/newIcons/isRight.png"
  705. alt=""
  706. />
  707. </div>
  708. </div>
  709. <div class="navBox">
  710. <div
  711. v-show="
  712. vChapterData[0].length > 0 || fileC[0].length > 0
  713. "
  714. style="padding: 10px 0 25px 0"
  715. >
  716. <div
  717. class="vedioTimeBox"
  718. v-for="(vitem, vindex) in vChapterData[0]"
  719. :key="vindex + '1'"
  720. >
  721. <div class="navListItem" v-if="vitem.type == 2">
  722. <div
  723. @click="lookVedio(vitem.url, vindex)"
  724. class="navText"
  725. :class="isClickNav == vindex ? 'isClickNav' : ''"
  726. >
  727. <span v-if="vitem.text">{{ vitem.text }}-</span
  728. >{{ vitem.name }}
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 6">
  738. <div
  739. @click="lookText(0, vindex)"
  740. class="navText"
  741. :class="isClickNav == vindex ? 'isClickNav' : ''"
  742. >
  743. {{ vitem.name }}.doc
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div
  756. class="navListItem"
  757. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  758. >
  759. <div
  760. @click="doUrl(vitem.url, vindex)"
  761. class="navText"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.title ? vitem.title : vitem.url }}
  765. </div>
  766. <div
  767. class="downIcon"
  768. @click="checkFileFull1(vitem.type, vitem)"
  769. >
  770. <img
  771. src="../../assets/icon/newIcon/allScreen.png"
  772. alt
  773. />
  774. </div>
  775. </div>
  776. <div class="navListItem" v-if="vitem.type == 3">
  777. <div
  778. @click="downFile(vitem, vindex)"
  779. class="navText"
  780. :class="isClickNav == vindex ? 'isClickNav' : ''"
  781. >
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="checkFileFull1(vitem.type, vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/allScreen.png"
  791. alt
  792. />
  793. </div>
  794. <div class="downIcon" @click="downloadFile2(vitem)">
  795. <img
  796. src="../../assets/icon/newIcon/down.png"
  797. alt
  798. />
  799. </div>
  800. </div>
  801. <div class="navListItem" v-if="vitem.type == 12">
  802. <div class="navText" @click="downloadFile2(vitem)">
  803. <span v-if="vitem.text">{{ vitem.text }}-</span
  804. >{{ vitem.name }}
  805. </div>
  806. <div
  807. class="downIcon"
  808. @click="checkFileFull1(vitem.type, vitem)"
  809. >
  810. <img
  811. src="../../assets/icon/newIcon/allScreen.png"
  812. alt
  813. />
  814. </div>
  815. <div class="downIcon" @click="downloadFile2(vitem)">
  816. <img
  817. src="../../assets/icon/newIcon/down.png"
  818. alt
  819. />
  820. </div>
  821. </div>
  822. <div class="navListItem" v-if="vitem.type == 13">
  823. <div
  824. class="navText"
  825. @click="checkPhoto(vitem, vindex)"
  826. :class="isClickNav == vindex ? 'isClickNav' : ''"
  827. >
  828. {{ vitem.name }}
  829. </div>
  830. <div class="downIcon" @click="downloadFile2(vitem)">
  831. <img
  832. src="../../assets/icon/newIcon/down.png"
  833. alt
  834. />
  835. </div>
  836. </div>
  837. <div class="navListItem" v-if="vitem.type == 16">
  838. <div
  839. class="navText"
  840. @click="checkHtml(vitem, vindex)"
  841. :class="isClickNav == vindex ? 'isClickNav' : ''"
  842. >
  843. {{ vitem.name }}
  844. </div>
  845. <div
  846. class="downIcon"
  847. @click="checkFileFull1(vitem.type, vitem)"
  848. >
  849. <img
  850. src="../../assets/icon/newIcon/allScreen.png"
  851. alt
  852. />
  853. </div>
  854. </div>
  855. </div>
  856. <div class="fileC_box" v-if="fileC[0].length > 0">
  857. <div class="fileC_title">以下文件不支持预览</div>
  858. <div
  859. class="vedioTimeBox"
  860. v-for="(vitem, vindex) in fileC[0]"
  861. :key="vindex + '1'"
  862. >
  863. <div class="navListItem" v-if="vitem.type == 12">
  864. <div class="navText" style="color: #acb4bf">
  865. <span v-if="vitem.text">{{ vitem.text }}-</span
  866. >{{ vitem.name }}
  867. </div>
  868. <div
  869. class="downIcon"
  870. @click="downloadFile2(vitem)"
  871. >
  872. <img
  873. src="../../assets/icon/newIcon/down.png"
  874. alt
  875. />
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <div style="width: calc(100% - 315px)">
  886. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  887. <!-- <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, pptImgUrl1)"
  891. >全屏查看</el-button
  892. >
  893. <el-button
  894. type="primary"
  895. class="newButton"
  896. @click="downloadFile(pptImgUrl1)"
  897. v-if="showType != 2"
  898. >文件下载</el-button
  899. > -->
  900. <el-button
  901. v-if="
  902. showType == 2 &&
  903. pptImgUrl1.indexOf(
  904. 'https://view.officeapps.live.com/op/view.aspx?src='
  905. ) == -1
  906. "
  907. type="primary"
  908. class="newButton"
  909. @click="openLine(pptImgUrl1)"
  910. >打开链接
  911. </el-button>
  912. </div>
  913. <!-- <div
  914. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  915. v-if="showType == 1"
  916. >
  917. <el-button
  918. type="primary"
  919. class="newButton"
  920. @click="checkFileFull(showType, text)"
  921. >全屏查看</el-button
  922. >
  923. </div> -->
  924. </div>
  925. </div>
  926. </div>
  927. <div class="student_body" v-resize="resize">
  928. <div
  929. class="vedioBox"
  930. :style="{
  931. borderRadius:
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .taskDetail == '' &&
  934. vChapterData[taskCount].length == 0 &&
  935. fileC[taskCount].length == 0
  936. ? '0 0 20px 20px'
  937. : '20px',
  938. }"
  939. v-if="
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .toolChoose[0].tool &&
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .toolChoose[0].tool.length > 0
  944. "
  945. >
  946. <div
  947. class="toolHeng2"
  948. style="position: relative"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length &&
  954. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  955. .toolChoose[0].tool.length > 0
  956. "
  957. >
  958. <div class="workNav">工作区</div>
  959. <div
  960. class="filebox"
  961. style="flex-wrap: nowrap"
  962. v-for="(tool, toolIndex) in chapInfoList[courseType]
  963. .chapterInfo[0].taskJson[taskCount].toolChoose"
  964. :key="toolIndex"
  965. >
  966. <div class="bzBox">
  967. <div class="yCss"></div>
  968. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  969. 工具{{ toolIndex + 1 }}
  970. </div>
  971. <div
  972. v-if="timeWorkList[toolIndex].length > 0"
  973. style="margin: 0 0 0 10px"
  974. >
  975. {{
  976. timeWorkList[toolIndex][0].time
  977. ? "时间:" + timeWorkList[toolIndex][0].time
  978. : ""
  979. }}
  980. </div>
  981. </div>
  982. <div class="toolBox">
  983. <div>
  984. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  985. :key="indexTool"-->
  986. <!-- <div class="iframeBox">
  987. <div
  988. class="addPoint isBorder"
  989. v-for="(tooC, toolCIndex) in tool.tool"
  990. :key="toolCIndex"
  991. >
  992. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  993. <div
  994. class="iframeName"
  995. >
  996. 电子白板
  997. </div>
  998. <iframe
  999. src="https://iwb.cocorobo.cn/"
  1000. ref="whiteBoard"
  1001. ></iframe>
  1002. </div>
  1003. </div>
  1004. </div>-->
  1005. <div class="noiframeBox">
  1006. <div
  1007. class="addPoint"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1">
  1012. <img
  1013. src="../../assets/icon/secondToolList/whiteBoard.png"
  1014. alt
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. />
  1017. <div style="margin: 5px 0">电子白板</div>
  1018. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1019. style="position: absolute;right: 33px;top: -30px;">
  1020. 分析
  1021. </div>
  1022. </div>
  1023. <div v-if="tooC == 3">
  1024. <img
  1025. src="../../assets/icon/secondToolList/mindMapping.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维导图</div>
  1030. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 6">
  1036. <img
  1037. src="../../assets/icon/secondToolList/doc.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">协同文档</div>
  1042. </div>
  1043. <div v-if="tooC == 7">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindNetwork.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维网格</div>
  1050. <!-- && worksStudent[toolIndex].length>0 -->
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 8">
  1057. <img
  1058. src="../../assets/icon/secondToolList/library.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">素材库</div>
  1063. </div>
  1064. <div v-if="tooC == 17">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">学习资料</div>
  1071. </div>
  1072. <div v-if="tooC == 2">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div v-if="tooC == 4">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/ask.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">问卷调查</div>
  1087. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1088. style="position: absolute;right: 153px;top: -30px;">
  1089. 分析
  1090. </div>
  1091. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1092. style="position: absolute;right: 33px;top: -30px;">
  1093. 统计分析
  1094. </div>
  1095. </div>
  1096. <div v-if="tooC == 45">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/thirdToolList/choose.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">选择题</div>
  1103. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1104. style="position: absolute;right: 33px;top: -30px;">
  1105. 分析
  1106. </div>
  1107. </div>
  1108. <!-- <div v-if="tooC == 5">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/thirdToolList/score.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">量规评分</div>
  1115. </div> -->
  1116. <div v-if="tooC == 10">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/thirdToolList/time.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">倒计时</div>
  1123. </div>
  1124. <div v-if="tooC == 15">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/thirdToolList/answer.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">问答</div>
  1131. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1132. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1133. 分析
  1134. </div>
  1135. </div>
  1136. <div v-if="tooC == 26">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/courseDesign.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">课程设计</div>
  1143. </div>
  1144. <div v-if="tooC == 18">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">训练服务器</div>
  1151. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1152. style="position: absolute;right: 33px;top: -30px;">
  1153. 分析
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 16">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/work.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">作业提交</div>
  1163. </div>
  1164. <div v-if="tooC == 50">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/plwork.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">批量上传</div>
  1171. </div>
  1172. <div v-if="tooC == 21">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/fourthToolList/program.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">AIoT Blockly</div>
  1179. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1180. style="position: absolute;right: 33px;top: -30px;">
  1181. 分析
  1182. </div>
  1183. </div>
  1184. <!-- <div v-if="tooC == 22">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/fourthToolList/program.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">AI体验</div>
  1191. </div> -->
  1192. <div v-if="tooC == 23">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">AI Python</div>
  1199. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 分析
  1202. </div>
  1203. </div>
  1204. <div v-if="tooC == 24">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/AIprogram.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI Blockly</div>
  1211. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1212. style="position: absolute;right: 33px;top: -30px;">
  1213. 分析
  1214. </div>
  1215. </div>
  1216. <div v-if="tooC == 25">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../../assets/icon/thirdToolList/evalua.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">目标管理</div>
  1223. </div>
  1224. <div v-if="tooC == 31">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/secondToolList/networkPanel.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">数学画板</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 28">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/secondToolList/translation.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">翻译</div>
  1243. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1244. style="position: absolute;right: 33px;top: -30px;">
  1245. 分析
  1246. </div>
  1247. </div>
  1248. <div v-if="tooC == 37">
  1249. <img
  1250. @click="addTools(tooC, toolIndex, taskCount)"
  1251. src="../../assets/icon/secondToolList/mohe.png"
  1252. alt
  1253. />
  1254. <div style="margin: 5px 0">魔盒识字</div>
  1255. </div>
  1256. <div v-if="tooC == 38">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/secondToolList/24game.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">24点</div>
  1263. </div>
  1264. <div v-if="tooC == 39">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/secondToolList/GeoGebra.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">GeoGebra</div>
  1271. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. 分析
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 32">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/thirdToolList/code.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">源码编辑</div>
  1283. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1284. style="position: absolute;right: 153px;top: -42px;">
  1285. 分析
  1286. </div>
  1287. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1288. style="position: absolute;left: 110px;bottom: 30px;">
  1289. 上传文件
  1290. <input type="file" accept="*" style="display: none"
  1291. @change="beforeUpload1($event, 7, toolIndex)" />
  1292. </div> -->
  1293. </div>
  1294. <div v-if="tooC == 40">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/secondToolList/eval.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">个人评价</div>
  1301. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1302. style="position: absolute;right: 33px;top: -30px;">
  1303. 分析
  1304. </div>
  1305. </div>
  1306. <div v-if="tooC == 41">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/thirdToolList/select.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">选择匹配</div>
  1313. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1314. style="position: absolute;right: 33px;top: -30px;">
  1315. 分析
  1316. </div>
  1317. </div>
  1318. <div v-if="tooC == 44">
  1319. <img
  1320. @click="addTools(tooC, toolIndex, taskCount)"
  1321. src="../../assets/icon/thirdToolList/hanClass.png"
  1322. alt
  1323. />
  1324. <div style="margin: 5px 0">汉字宫</div>
  1325. </div>
  1326. <div v-if="tooC == 47">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/fourthToolList/conSentences.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">排序</div>
  1333. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 分析
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 48">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/fourthToolList/table.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">表格</div>
  1345. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1346. style="position: absolute;right: 33px;top: -30px;">
  1347. 分析
  1348. </div>
  1349. </div>
  1350. <div v-if="tooC == 52">
  1351. <img
  1352. @click="addTools(tooC, toolIndex, taskCount)"
  1353. src="../../assets/icon/fourthToolList/text.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">文档</div>
  1357. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1358. style="position: absolute;right: 33px;top: -30px;">
  1359. 分析
  1360. </div>
  1361. </div>
  1362. <div v-if="tooC == 49">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../../assets/icon/fourthToolList/group.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">学生分组</div>
  1369. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1370. style="position: absolute;right: 33px;top: -30px;">
  1371. 分析
  1372. </div>
  1373. </div>
  1374. <div v-if="tooC == 57">
  1375. <img
  1376. @click="addTools(tooC, toolIndex, taskCount)"
  1377. src="../../assets/icon/fourthToolList/cocopi.png"
  1378. alt
  1379. />
  1380. <div style="margin: 5px 0">CocoPi</div>
  1381. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1382. style="position: absolute;right: 33px;top: -30px;">
  1383. 分析
  1384. </div>
  1385. </div>
  1386. <div v-if="tooC == 58">
  1387. <img
  1388. @click="addTools(tooC, toolIndex, taskCount)"
  1389. src="../../assets/icon/fourthToolList/car.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">模拟驾驶</div>
  1393. </div>
  1394. <div v-if="tooC == 59">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/lineSearch.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">路径搜索</div>
  1401. </div>
  1402. <div v-if="tooC == 60">
  1403. <img
  1404. @click="addTools(tooC, toolIndex, taskCount)"
  1405. src="../../assets/icon/fourthToolList/deepLearning.png"
  1406. alt
  1407. />
  1408. <div style="margin: 5px 0">深度学习</div>
  1409. </div>
  1410. <div v-if="tooC == 61">
  1411. <img
  1412. @click="addTools(tooC, toolIndex, taskCount)"
  1413. src="../../assets/icon/fourthToolList/allHistory.png"
  1414. alt
  1415. />
  1416. <div style="margin: 5px 0">全历史</div>
  1417. </div>
  1418. <div v-if="tooC == 62">
  1419. <img
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../../assets/icon/fourthToolList/interVideo.png"
  1422. alt
  1423. />
  1424. <div style="margin: 5px 0">交互视频</div>
  1425. </div>
  1426. <div v-if="tooC == 63">
  1427. <img
  1428. @click="addTools(tooC, toolIndex, taskCount)"
  1429. src="../../assets/icon/fourthToolList/Wood.png"
  1430. alt
  1431. />
  1432. <div style="margin: 5px 0">海龟编程</div>
  1433. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1434. style="position: absolute;right: 33px;top: -30px;">
  1435. 分析
  1436. </div>
  1437. </div>
  1438. <div v-if="tooC == 71">
  1439. <img
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../../assets/icon/fourthToolList/chatgpt.png"
  1442. alt
  1443. />
  1444. <div style="margin: 5px 0">AI智能体</div>
  1445. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1446. style="position: absolute;right: 33px;top: -30px;">
  1447. 分析
  1448. </div>
  1449. </div>
  1450. <div v-if="tooC == 72">
  1451. <img
  1452. style="height: 85px;object-fit: cover;"
  1453. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1454. @click="addTools(tooC, toolIndex, taskCount)"
  1455. :src="tool.appJson.json.icon"
  1456. alt
  1457. />
  1458. <img
  1459. v-else
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/firstToolList/appStore.png"
  1462. alt
  1463. />
  1464. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1465. <!-- content to trigger tooltip here -->
  1466. <div class="Ovh">
  1467. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1468. </div>
  1469. </el-tooltip>
  1470. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div>
  1474. </div>
  1475. <div v-if="tooC == 65">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/firstToolList/pickPeople.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">挑人</div>
  1482. </div>
  1483. <div v-if="tooC == 66">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../../assets/icon/secondToolList/formulaEdi.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">公式编辑</div>
  1490. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div>
  1494. </div>
  1495. <div v-if="tooC == 67">
  1496. <img
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../../assets/icon/secondToolList/molStr.png"
  1499. alt
  1500. />
  1501. <div style="margin: 5px 0">分子结构</div>
  1502. </div>
  1503. <div v-if="tooC == 68">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/secondToolList/timeAxis.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">时间轴</div>
  1510. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1511. style="position: absolute;right: 33px;top: -30px;">
  1512. 分析
  1513. </div> -->
  1514. </div>
  1515. <div v-if="tooC == 69">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../../assets/icon/secondToolList/english.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">英语写作</div>
  1522. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1523. style="position: absolute;right: 33px;top: -30px;">
  1524. 分析
  1525. </div>
  1526. </div>
  1527. <div v-if="tooC == 70">
  1528. <img
  1529. @click="addTools(tooC, toolIndex, taskCount)"
  1530. src="../../assets/icon/thirdToolList/englishVoice.png"
  1531. alt
  1532. />
  1533. <div style="margin: 5px 0">英语口语</div>
  1534. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1535. style="position: absolute;right: 33px;top: -30px;">
  1536. 分析
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. </div>
  1542. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1543. <!-- <div class="toolTitle">工具描述</div> -->
  1544. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1545. <div style="height:100%;"
  1546. v-html="renderedFormula(tool.toolDetail)"
  1547. v-if="toolDetailIndex != toolIndex"
  1548. ></div>
  1549. <div v-else @click.stop="" style="height:100%;">
  1550. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1551. </div>
  1552. </div>
  1553. <el-button
  1554. type="primary"
  1555. v-if="tool.tool[0] == 32"
  1556. style="position: absolute; right: 30px; top: -45px"
  1557. @click="addImg($event)"
  1558. >上传作业<input
  1559. type="file"
  1560. accept="*"
  1561. style="display: none"
  1562. @change="beforeUpload1($event, 7, toolIndex)"
  1563. /></el-button>
  1564. <el-button
  1565. type="primary"
  1566. v-if="tool.tool[0] == 15"
  1567. style="position: absolute; right: 30px; top: -45px"
  1568. @click="openWordCloud(toolIndex)"
  1569. >生成词云</el-button
  1570. >
  1571. <el-button
  1572. type="primary"
  1573. v-if="
  1574. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1575. "
  1576. style="position: absolute; right: 30px; top: -45px"
  1577. @click="uploadWorks(toolIndex)"
  1578. >导出作业</el-button
  1579. >
  1580. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1581. position: absolute;
  1582. right: 30px;
  1583. transform: translateY(-130%);
  1584. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1585. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1586. </div>
  1587. <div
  1588. v-if="
  1589. tType &&
  1590. tType == 2 &&
  1591. !sIsOpen &&
  1592. tool.tool.indexOf(16) != -1
  1593. "
  1594. class="worksBox"
  1595. >
  1596. <div
  1597. class="zuoyeYulan"
  1598. v-if="workStudent[toolIndex].length > 0"
  1599. >
  1600. <span class="worksTitle">作业预览</span>
  1601. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1602. </div>
  1603. <div
  1604. class="worksDetailBox"
  1605. v-if="workStudent[toolIndex].length > 0"
  1606. >
  1607. <div
  1608. class="works"
  1609. style="
  1610. width: 200px;
  1611. height: 140px;
  1612. margin: 10px 10px 10px 0;
  1613. box-shadow: 0 0 6px 1px #dfdada;
  1614. "
  1615. v-for="(w, wIndex) in workStudent[toolIndex]"
  1616. :key="wIndex"
  1617. >
  1618. <div class="workImg" v-if="w.type == 0">
  1619. <img
  1620. :src="w.works"
  1621. @click="previewImg(w.works,w)"
  1622. alt
  1623. />
  1624. <div
  1625. class="answerScore"
  1626. v-if="w.score"
  1627. @click.stop="openScore(w)"
  1628. :class="{
  1629. rightW:
  1630. w.userid == userid || tType == 1 || tType == 4,
  1631. }"
  1632. >
  1633. {{ JSON.parse(w.score).wScore }}分
  1634. </div>
  1635. <div
  1636. class="answerScore"
  1637. @click.stop="openScore(w)"
  1638. v-else-if="courseDetail.userid == userid"
  1639. :class="{
  1640. rightW:
  1641. w.userid == userid || tType == 1 || tType == 4,
  1642. }"
  1643. >
  1644. 评分
  1645. </div>
  1646. <img
  1647. class="deleteImg"
  1648. src="../../assets/deleteworks.png"
  1649. v-if="
  1650. w.userid == userid || tType == 1 || tType == 4
  1651. "
  1652. @click.stop="deleteWorks(w.wid)"
  1653. alt
  1654. />
  1655. </div>
  1656. <div class="workImg" v-if="w.type == 1">
  1657. <img :src="word" @click="openFile(w.works)" alt />
  1658. <div
  1659. class="answerScore"
  1660. v-if="w.score"
  1661. @click.stop="openScore(w)"
  1662. :class="{
  1663. rightW:
  1664. w.userid == userid || tType == 1 || tType == 4,
  1665. }"
  1666. >
  1667. {{ JSON.parse(w.score).wScore }}分
  1668. </div>
  1669. <div
  1670. class="answerScore"
  1671. @click.stop="openScore(w)"
  1672. v-else-if="courseDetail.userid == userid"
  1673. :class="{
  1674. rightW:
  1675. w.userid == userid || tType == 1 || tType == 4,
  1676. }"
  1677. >
  1678. 评分
  1679. </div>
  1680. <img
  1681. class="deleteImg"
  1682. src="../../assets/deleteworks.png"
  1683. v-if="
  1684. w.userid == userid || tType == 1 || tType == 4
  1685. "
  1686. @click.stop="deleteWorks(w.wid)"
  1687. alt
  1688. />
  1689. </div>
  1690. <div class="workImg" v-if="w.type == 3">
  1691. <img
  1692. style="cursor: pointer"
  1693. :src="video"
  1694. @click="openVideo(w)"
  1695. alt
  1696. />
  1697. <div
  1698. class="answerScore"
  1699. v-if="w.score"
  1700. @click.stop="openScore(w)"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4,
  1704. }"
  1705. >
  1706. {{ JSON.parse(w.score).wScore }}分
  1707. </div>
  1708. <div
  1709. class="answerScore"
  1710. @click.stop="openScore(w)"
  1711. v-else-if="courseDetail.userid == userid"
  1712. :class="{
  1713. rightW:
  1714. w.userid == userid || tType == 1 || tType == 4,
  1715. }"
  1716. >
  1717. 评分
  1718. </div>
  1719. <img
  1720. class="deleteImg"
  1721. src="../../assets/deleteworks.png"
  1722. v-if="
  1723. w.userid == userid || tType == 1 || tType == 4
  1724. "
  1725. @click.stop="deleteWorks(w.wid)"
  1726. alt
  1727. />
  1728. </div>
  1729. <div class="workImg" v-if="w.type == 12">
  1730. <img
  1731. style="cursor: pointer"
  1732. :src="word2"
  1733. @click="downloadFile(w.works,w.userid)"
  1734. alt
  1735. />
  1736. <div
  1737. class="answerScore"
  1738. v-if="w.score"
  1739. @click.stop="openScore(w)"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. {{ JSON.parse(w.score).wScore }}分
  1746. </div>
  1747. <div
  1748. class="answerScore"
  1749. @click.stop="openScore(w)"
  1750. v-else-if="courseDetail.userid == userid"
  1751. :class="{
  1752. rightW:
  1753. w.userid == userid || tType == 1 || tType == 4,
  1754. }"
  1755. >
  1756. 评分
  1757. </div>
  1758. <img
  1759. class="deleteImg"
  1760. src="../../assets/deleteworks.png"
  1761. v-if="
  1762. w.userid == userid || tType == 1 || tType == 4
  1763. "
  1764. @click.stop="deleteWorks(w.wid)"
  1765. alt
  1766. />
  1767. </div>
  1768. <div class="worksName">
  1769. <div>{{ w.sName }}</div>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. <div
  1775. v-if="
  1776. tType &&
  1777. tType == 2 &&
  1778. !sIsOpen &&
  1779. tool.tool.indexOf(32) != -1
  1780. "
  1781. class="worksBox"
  1782. >
  1783. <div
  1784. class="zuoyeYulan"
  1785. v-if="workStudent[toolIndex].length > 0"
  1786. >
  1787. <span class="worksTitle">作业预览</span>
  1788. </div>
  1789. <div
  1790. class="worksDetailBox"
  1791. v-if="workStudent[toolIndex].length > 0"
  1792. >
  1793. <div
  1794. class="works"
  1795. style="
  1796. width: 200px;
  1797. height: 140px;
  1798. margin: 10px 10px 10px 0;
  1799. box-shadow: 0 0 6px 1px #dfdada;
  1800. "
  1801. v-for="(w, wIndex) in workStudent[toolIndex]"
  1802. :key="wIndex"
  1803. >
  1804. <div class="workImg">
  1805. <img
  1806. :src="word2"
  1807. @click="downloadFile(w.works,w.userid)"
  1808. alt
  1809. />
  1810. <div
  1811. class="answerScore"
  1812. v-if="w.score"
  1813. @click.stop="openScore(w)"
  1814. :class="{
  1815. rightW:
  1816. w.userid == userid || tType == 1 || tType == 4,
  1817. }"
  1818. >
  1819. {{ JSON.parse(w.score).wScore }}分
  1820. </div>
  1821. <div
  1822. class="answerScore"
  1823. @click.stop="openScore(w)"
  1824. v-else-if="courseDetail.userid == userid"
  1825. :class="{
  1826. rightW:
  1827. w.userid == userid || tType == 1 || tType == 4,
  1828. }"
  1829. >
  1830. 评分
  1831. </div>
  1832. <img
  1833. class="deleteImg"
  1834. src="../../assets/deleteworks.png"
  1835. v-if="
  1836. w.userid == userid || tType == 1 || tType == 4
  1837. "
  1838. @click.stop="deleteWorks(w.wid)"
  1839. alt
  1840. />
  1841. </div>
  1842. <div class="worksName">
  1843. <div>{{ w.sName }}</div>
  1844. </div>
  1845. </div>
  1846. </div>
  1847. </div>
  1848. <div
  1849. v-if="
  1850. tType &&
  1851. tType == 2 &&
  1852. !sIsOpen &&
  1853. tool.tool.indexOf(57) != -1
  1854. "
  1855. class="worksBox"
  1856. >
  1857. <div
  1858. class="zuoyeYulan"
  1859. v-if="workStudent[toolIndex].length > 0"
  1860. >
  1861. <span class="worksTitle">作业预览</span>
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. style="
  1870. width: 200px;
  1871. height: 140px;
  1872. margin: 10px 10px 10px 0;
  1873. box-shadow: 0 0 6px 1px #dfdada;
  1874. "
  1875. v-for="(w, wIndex) in workStudent[toolIndex]"
  1876. :key="wIndex"
  1877. >
  1878. <div class="workImg">
  1879. <img
  1880. :src="word2"
  1881. @click="downloadFile(w.works,w.userid)"
  1882. v-if="w.type == 12"
  1883. alt
  1884. />
  1885. <img
  1886. :src="word2"
  1887. @click="
  1888. openCocoPi(57, toolIndex, w.userid, w.sName)
  1889. "
  1890. v-else-if="w.type == 15"
  1891. alt
  1892. />
  1893. <div
  1894. class="answerScore"
  1895. v-if="w.score"
  1896. @click.stop="openScore(w)"
  1897. :class="{
  1898. rightW:
  1899. w.userid == userid || tType == 1 || tType == 4,
  1900. }"
  1901. >
  1902. {{ JSON.parse(w.score).wScore }}分
  1903. </div>
  1904. <div
  1905. class="answerScore"
  1906. @click.stop="openScore(w)"
  1907. v-else-if="courseDetail.userid == userid"
  1908. :class="{
  1909. rightW:
  1910. w.userid == userid || tType == 1 || tType == 4,
  1911. }"
  1912. >
  1913. 评分
  1914. </div>
  1915. <img
  1916. class="deleteImg"
  1917. src="../../assets/deleteworks.png"
  1918. v-if="
  1919. w.userid == userid || tType == 1 || tType == 4
  1920. "
  1921. @click.stop="deleteWorks(w.wid)"
  1922. alt
  1923. />
  1924. </div>
  1925. <div class="worksName">
  1926. <div>{{ w.sName }}</div>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div
  1932. v-if="
  1933. tType &&
  1934. tType == 2 &&
  1935. !sIsOpen &&
  1936. tool.tool.indexOf(4) != -1
  1937. "
  1938. class="worksBox"
  1939. >
  1940. <div
  1941. class="zuoyeYulan"
  1942. v-if="workStudent[toolIndex].length > 0"
  1943. >
  1944. <span class="worksTitle">作业预览</span>
  1945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1946. </div>
  1947. <div
  1948. class="worksDetailBox"
  1949. v-if="workStudent[toolIndex].length > 0"
  1950. >
  1951. <div
  1952. class="isWorksName2"
  1953. v-for="(w, wIndex) in workStudent[toolIndex]"
  1954. :key="wIndex"
  1955. @click="
  1956. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1957. "
  1958. >
  1959. {{ w.sName }}
  1960. <img
  1961. class="deleteImg deleteImg2"
  1962. src="../../assets/deleteworks.png"
  1963. v-if="w.userid == userid || tType == 1 || tType == 4"
  1964. @click.stop="deleteWorks(w.wid)"
  1965. alt
  1966. />
  1967. </div>
  1968. <!-- <div
  1969. class="works"
  1970. style="
  1971. width: 200px;
  1972. height: 140px;
  1973. border-radius: 10px;
  1974. box-shadow: 0 0 6px 1px #dfdada;
  1975. overflow: hidden;
  1976. "
  1977. v-for="(w, wIndex) in workStudent[toolIndex]"
  1978. :key="wIndex"
  1979. >
  1980. <div class="workImg">
  1981. <img
  1982. src="../../assets/icon/works/noImg.png"
  1983. @click="
  1984. openTools(
  1985. 4,
  1986. toolIndex,
  1987. taskCount,
  1988. w.works,
  1989. w.sName
  1990. )
  1991. "
  1992. alt
  1993. />
  1994. </div>
  1995. <div class="worksName">
  1996. <div>{{ w.sName }}</div>
  1997. <div>{{ w.time }}</div>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. </div>
  2002. <div
  2003. v-if="
  2004. tType &&
  2005. ((tType == 2 && sIsOpen == true) ||
  2006. tType == 1 ||
  2007. tType == 4) &&
  2008. tool.tool.indexOf(62) != -1
  2009. "
  2010. class="worksBox"
  2011. >
  2012. <div
  2013. class="zuoyeYulan"
  2014. v-if="
  2015. worksStudent.length &&
  2016. worksStudent[toolIndex].length > 0
  2017. "
  2018. >
  2019. <div class="worksTop">
  2020. <div>作业预览</div>
  2021. <div
  2022. class="corOpen"
  2023. @click="contract(toolIndex)"
  2024. v-if="
  2025. (isCloseList[toolIndex].isCloseBoolean) &&
  2026. isCloseList[toolIndex].isClose == 0
  2027. "
  2028. >
  2029. 折叠
  2030. </div>
  2031. <div
  2032. class="corOpen"
  2033. @click="contract(toolIndex)"
  2034. v-if="isCloseList[toolIndex].isClose == 1"
  2035. >
  2036. 展开
  2037. </div>
  2038. </div>
  2039. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2040. </div>
  2041. <div>
  2042. <div
  2043. :id="'tool-' + toolIndex"
  2044. :style="{
  2045. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2046. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2047. }"
  2048. class="worksDetailBox"
  2049. v-if="
  2050. worksStudent.length &&
  2051. worksStudent[toolIndex].length > 0
  2052. "
  2053. >
  2054. <div
  2055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2056. :key="wIndex"
  2057. class="isWorksName2"
  2058. @click="
  2059. openTools(
  2060. 62,
  2061. toolIndex,
  2062. taskCount,
  2063. w.works,
  2064. w.sName
  2065. )
  2066. "
  2067. >
  2068. {{ w.sName }}
  2069. <img
  2070. class="deleteImg deleteImg2"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2082. 未提交
  2083. </div>
  2084. <div
  2085. class="noWorksS"
  2086. v-if="noWorksS && noWorksS[toolIndex].length"
  2087. >
  2088. <div
  2089. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2090. :key="sIndex"
  2091. class="noWorksName"
  2092. >
  2093. <el-tooltip effect="dark" :content="s.student" placement="top">
  2094. <span>{{ s.student }}</span>
  2095. </el-tooltip>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div
  2100. v-if="
  2101. tType &&
  2102. tType == 2 &&
  2103. !sIsOpen &&
  2104. tool.tool.indexOf(62) != -1
  2105. "
  2106. class="worksBox"
  2107. >
  2108. <div
  2109. class="zuoyeYulan"
  2110. v-if="workStudent[toolIndex].length > 0"
  2111. >
  2112. <span class="worksTitle">作业预览</span>
  2113. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2114. </div>
  2115. <div
  2116. class="worksDetailBox"
  2117. v-if="workStudent[toolIndex].length > 0"
  2118. >
  2119. <div
  2120. class="isWorksName2"
  2121. v-for="(w, wIndex) in workStudent[toolIndex]"
  2122. :key="wIndex"
  2123. @click="
  2124. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2125. "
  2126. >
  2127. {{ w.sName }}
  2128. <img
  2129. class="deleteImg deleteImg2"
  2130. src="../../assets/deleteworks.png"
  2131. v-if="w.userid == userid || tType == 1 || tType == 4"
  2132. @click.stop="deleteWorks(w.wid)"
  2133. alt
  2134. />
  2135. </div>
  2136. </div>
  2137. </div>
  2138. <div
  2139. v-if="
  2140. tType &&
  2141. tType == 2 &&
  2142. !sIsOpen &&
  2143. tool.tool.indexOf(45) != -1
  2144. "
  2145. class="worksBox"
  2146. >
  2147. <div
  2148. class="zuoyeYulan"
  2149. v-if="workStudent[toolIndex].length > 0"
  2150. >
  2151. <span class="worksTitle">作业预览</span>
  2152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2153. </div>
  2154. <div
  2155. class="worksDetailBox"
  2156. v-if="workStudent[toolIndex].length > 0"
  2157. >
  2158. <div
  2159. class="isWorksName2"
  2160. v-for="(w, wIndex) in workStudent[toolIndex]"
  2161. :key="wIndex"
  2162. @click="
  2163. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2164. "
  2165. >
  2166. {{ w.sName }}
  2167. <img
  2168. class="deleteImg deleteImg2"
  2169. src="../../assets/deleteworks.png"
  2170. v-if="w.userid == userid || tType == 1 || tType == 4"
  2171. @click.stop="deleteWorks(w.wid)"
  2172. alt
  2173. />
  2174. </div>
  2175. </div>
  2176. </div>
  2177. <div
  2178. v-if="
  2179. tType &&
  2180. tType == 2 &&
  2181. !sIsOpen &&
  2182. tool.tool.indexOf(69) != -1
  2183. "
  2184. class="worksBox"
  2185. >
  2186. <div
  2187. class="zuoyeYulan"
  2188. v-if="workStudent[toolIndex].length > 0"
  2189. >
  2190. <span class="worksTitle">作业预览</span>
  2191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2192. </div>
  2193. <div
  2194. class="worksDetailBox"
  2195. v-if="workStudent[toolIndex].length > 0"
  2196. >
  2197. <div
  2198. class="isWorksName2"
  2199. v-for="(w, wIndex) in workStudent[toolIndex]"
  2200. :key="wIndex"
  2201. @click="
  2202. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2203. "
  2204. >
  2205. {{ w.sName }}
  2206. <img
  2207. class="deleteImg deleteImg2"
  2208. src="../../assets/deleteworks.png"
  2209. v-if="w.userid == userid || tType == 1 || tType == 4"
  2210. @click.stop="deleteWorks(w.wid)"
  2211. alt
  2212. />
  2213. </div>
  2214. </div>
  2215. </div>
  2216. <div
  2217. v-if="
  2218. tType &&
  2219. tType == 2 &&
  2220. !sIsOpen &&
  2221. tool.tool.indexOf(15) != -1
  2222. "
  2223. class="worksBox"
  2224. >
  2225. <div
  2226. class="zuoyeYulan"
  2227. v-if="workStudent[toolIndex].length > 0"
  2228. >
  2229. <span class="worksTitle">作业预览</span>
  2230. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2231. </div>
  2232. <div
  2233. class="worksDetailBox"
  2234. v-if="workStudent[toolIndex].length > 0"
  2235. >
  2236. <div
  2237. class="works"
  2238. v-for="(w, wIndex) in workStudent[toolIndex]"
  2239. :key="wIndex"
  2240. >
  2241. <div class="workImg">
  2242. <!-- <img
  2243. src="../../assets/icon/works/noImg.png"
  2244. @click="openTools(15, toolIndex, taskCount, w.works)"
  2245. alt=""
  2246. />-->
  2247. <div class="answerBg">
  2248. <!-- <div>{{ w.sName }}</div> -->
  2249. <el-tooltip
  2250. class="item"
  2251. effect="light"
  2252. :content="JSON.parse(w.works)[0].answer"
  2253. placement="top"
  2254. >
  2255. <div class="answerContent">
  2256. {{ JSON.parse(w.works)[0].answer }}
  2257. </div>
  2258. </el-tooltip>
  2259. <div
  2260. class="answerScore"
  2261. v-if="w.score"
  2262. @click.stop="openScore(w)"
  2263. :class="{
  2264. rightW:
  2265. w.userid == userid ||
  2266. tType == 1 ||
  2267. tType == 4,
  2268. }"
  2269. >
  2270. {{ JSON.parse(w.score).wScore }}分
  2271. </div>
  2272. <div
  2273. class="answerScore"
  2274. @click.stop="openScore(w)"
  2275. v-else-if="courseDetail.userid == userid"
  2276. :class="{
  2277. rightW:
  2278. w.userid == userid ||
  2279. tType == 1 ||
  2280. tType == 4,
  2281. }"
  2282. >
  2283. 评分
  2284. </div>
  2285. <img
  2286. class="deleteImg"
  2287. src="../../assets/deleteworks.png"
  2288. v-if="
  2289. w.userid == userid || tType == 1 || tType == 4
  2290. "
  2291. @click.stop="deleteWorks(w.wid)"
  2292. alt
  2293. />
  2294. </div>
  2295. <div class="comment">
  2296. <div class="worksName">
  2297. <div>{{ w.sName }}</div>
  2298. </div>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. <div
  2305. v-if="
  2306. tType &&
  2307. tType == 2 &&
  2308. !sIsOpen &&
  2309. tool.tool.indexOf(1) != -1
  2310. "
  2311. class="worksBox"
  2312. >
  2313. <div
  2314. class="zuoyeYulan"
  2315. v-if="workStudent[toolIndex].length > 0"
  2316. >
  2317. <span class="worksTitle">作业预览</span>
  2318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2319. </div>
  2320. <div
  2321. class="worksDetailBox"
  2322. v-if="workStudent[toolIndex].length > 0"
  2323. >
  2324. <div
  2325. class="works"
  2326. style="
  2327. width: 200px;
  2328. height: 140px;
  2329. margin: 10px 10px 10px 0;
  2330. box-shadow: 0 0 6px 1px #dfdada;
  2331. "
  2332. v-for="(w, wIndex) in workStudent[toolIndex]"
  2333. :key="wIndex"
  2334. >
  2335. <div class="workImg">
  2336. <img
  2337. :src="w.works"
  2338. @click="previewImg(w.works,w)"
  2339. alt
  2340. />
  2341. <div
  2342. class="answerScore"
  2343. v-if="w.score"
  2344. @click.stop="openScore(w)"
  2345. :class="{
  2346. rightW:
  2347. w.userid == userid || tType == 1 || tType == 4,
  2348. }"
  2349. >
  2350. {{ JSON.parse(w.score).wScore }}分
  2351. </div>
  2352. <div
  2353. class="answerScore"
  2354. @click.stop="openScore(w)"
  2355. v-else-if="courseDetail.userid == userid"
  2356. :class="{
  2357. rightW:
  2358. w.userid == userid || tType == 1 || tType == 4,
  2359. }"
  2360. >
  2361. 评分
  2362. </div>
  2363. <img
  2364. class="deleteImg"
  2365. src="../../assets/deleteworks.png"
  2366. v-if="
  2367. w.userid == userid || tType == 1 || tType == 4
  2368. "
  2369. @click.stop="deleteWorks(w.wid)"
  2370. alt
  2371. />
  2372. </div>
  2373. <div class="worksName">
  2374. <div>{{ w.sName }}</div>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <div
  2380. v-if="
  2381. tType &&
  2382. tType == 2 &&
  2383. !sIsOpen &&
  2384. tool.tool.indexOf(3) != -1
  2385. "
  2386. class="worksBox"
  2387. >
  2388. <div
  2389. class="zuoyeYulan"
  2390. v-if="workStudent[toolIndex].length > 0"
  2391. >
  2392. <span class="worksTitle">作业预览</span>
  2393. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2394. </div>
  2395. <div
  2396. class="worksDetailBox"
  2397. v-if="workStudent[toolIndex].length > 0"
  2398. >
  2399. <div
  2400. class="works"
  2401. style="
  2402. width: 200px;
  2403. height: 140px;
  2404. margin: 10px 10px 10px 0;
  2405. box-shadow: 0 0 6px 1px #dfdada;
  2406. "
  2407. v-for="(w, wIndex) in workStudent[toolIndex]"
  2408. :key="wIndex"
  2409. >
  2410. <div class="workImg">
  2411. <img
  2412. :src="w.works"
  2413. @click="previewImg(w.works,w)"
  2414. alt
  2415. />
  2416. <div
  2417. class="answerScore"
  2418. v-if="w.score"
  2419. @click.stop="openScore(w)"
  2420. :class="{
  2421. rightW:
  2422. w.userid == userid || tType == 1 || tType == 4,
  2423. }"
  2424. >
  2425. {{ JSON.parse(w.score).wScore }}分
  2426. </div>
  2427. <div
  2428. class="answerScore"
  2429. @click.stop="openScore(w)"
  2430. v-else-if="courseDetail.userid == userid"
  2431. :class="{
  2432. rightW:
  2433. w.userid == userid || tType == 1 || tType == 4,
  2434. }"
  2435. >
  2436. 评分
  2437. </div>
  2438. <img
  2439. class="deleteImg"
  2440. src="../../assets/deleteworks.png"
  2441. v-if="
  2442. w.userid == userid || tType == 1 || tType == 4
  2443. "
  2444. @click.stop="deleteWorks(w.wid)"
  2445. alt
  2446. />
  2447. </div>
  2448. <div class="worksName">
  2449. <div>{{ w.sName }}</div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. </div>
  2454. <div
  2455. v-if="
  2456. tType &&
  2457. tType == 2 &&
  2458. !sIsOpen &&
  2459. tool.tool.indexOf(6) != -1
  2460. "
  2461. class="worksBox"
  2462. >
  2463. <div
  2464. class="zuoyeYulan"
  2465. v-if="workStudent[toolIndex].length > 0"
  2466. >
  2467. <span class="worksTitle">作业预览</span>
  2468. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2469. </div>
  2470. <div
  2471. class="worksDetailBox"
  2472. v-if="workStudent[toolIndex].length > 0"
  2473. >
  2474. <div
  2475. class="works"
  2476. style="
  2477. width: 200px;
  2478. height: 140px;
  2479. margin: 10px 10px 10px 0;
  2480. box-shadow: 0 0 6px 1px #dfdada;
  2481. "
  2482. v-for="(w, wIndex) in workStudent[toolIndex]"
  2483. :key="wIndex"
  2484. >
  2485. <div class="workImg">
  2486. <img
  2487. :src="w.works"
  2488. @click="previewImg(w.works,w)"
  2489. alt
  2490. />
  2491. <div
  2492. class="answerScore"
  2493. v-if="w.score"
  2494. @click.stop="openScore(w)"
  2495. :class="{
  2496. rightW:
  2497. w.userid == userid || tType == 1 || tType == 4,
  2498. }"
  2499. >
  2500. {{ JSON.parse(w.score).wScore }}分
  2501. </div>
  2502. <div
  2503. class="answerScore"
  2504. @click.stop="openScore(w)"
  2505. v-else-if="courseDetail.userid == userid"
  2506. :class="{
  2507. rightW:
  2508. w.userid == userid || tType == 1 || tType == 4,
  2509. }"
  2510. >
  2511. 评分
  2512. </div>
  2513. <img
  2514. class="deleteImg"
  2515. src="../../assets/deleteworks.png"
  2516. v-if="
  2517. w.userid == userid || tType == 1 || tType == 4
  2518. "
  2519. @click.stop="deleteWorks(w.wid)"
  2520. alt
  2521. />
  2522. </div>
  2523. <div class="worksName">
  2524. <div>{{ w.sName }}</div>
  2525. </div>
  2526. </div>
  2527. </div>
  2528. </div>
  2529. <div
  2530. v-if="
  2531. tType &&
  2532. tType == 2 &&
  2533. !sIsOpen &&
  2534. tool.tool.indexOf(7) != -1
  2535. "
  2536. class="worksBox"
  2537. >
  2538. <div
  2539. class="zuoyeYulan"
  2540. v-if="workStudent[toolIndex].length > 0"
  2541. >
  2542. <span class="worksTitle">作业预览</span>
  2543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2544. </div>
  2545. <div
  2546. class="worksDetailBox"
  2547. v-if="workStudent[toolIndex].length > 0"
  2548. >
  2549. <div
  2550. class="works"
  2551. style="
  2552. width: 200px;
  2553. height: 140px;
  2554. margin: 10px 10px 10px 0;
  2555. box-shadow: 0 0 6px 1px #dfdada;
  2556. "
  2557. v-for="(w, wIndex) in workStudent[toolIndex]"
  2558. :key="wIndex"
  2559. >
  2560. <div class="workImg">
  2561. <img
  2562. :src="w.works"
  2563. @click="previewImg(w.works,w)"
  2564. alt
  2565. />
  2566. <div
  2567. class="answerScore"
  2568. v-if="w.score"
  2569. @click.stop="openScore(w)"
  2570. :class="{
  2571. rightW:
  2572. w.userid == userid || tType == 1 || tType == 4,
  2573. }"
  2574. >
  2575. {{ JSON.parse(w.score).wScore }}分
  2576. </div>
  2577. <div
  2578. class="answerScore"
  2579. @click.stop="openScore(w)"
  2580. v-else-if="courseDetail.userid == userid"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid || tType == 1 || tType == 4,
  2584. }"
  2585. >
  2586. 评分
  2587. </div>
  2588. <img
  2589. class="deleteImg"
  2590. src="../../assets/deleteworks.png"
  2591. v-if="
  2592. w.userid == userid || tType == 1 || tType == 4
  2593. "
  2594. @click.stop="deleteWorks(w.wid)"
  2595. alt
  2596. />
  2597. </div>
  2598. <div class="worksName">
  2599. <div>{{ w.sName }}</div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. </div>
  2604. <div
  2605. v-if="
  2606. tType &&
  2607. tType == 2 &&
  2608. !sIsOpen &&
  2609. tool.tool.indexOf(26) != -1
  2610. "
  2611. class="worksBox"
  2612. >
  2613. <div
  2614. class="zuoyeYulan"
  2615. v-if="workStudent[toolIndex].length > 0"
  2616. >
  2617. <span class="worksTitle">作业预览</span>
  2618. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2619. </div>
  2620. <div
  2621. class="worksDetailBox"
  2622. v-if="workStudent[toolIndex].length > 0"
  2623. >
  2624. <div
  2625. class="works"
  2626. style="
  2627. width: 200px;
  2628. height: 140px;
  2629. margin: 10px 10px 10px 0;
  2630. box-shadow: 0 0 6px 1px #dfdada;
  2631. "
  2632. v-for="(w, wIndex) in workStudent[toolIndex]"
  2633. :key="wIndex"
  2634. >
  2635. <div class="workImg">
  2636. <img
  2637. :src="w.works"
  2638. @click="previewImg(w.works,w)"
  2639. alt
  2640. />
  2641. <img
  2642. class="deleteImg"
  2643. src="../../assets/deleteworks.png"
  2644. v-if="
  2645. w.userid == userid || tType == 1 || tType == 4
  2646. "
  2647. @click.stop="deleteWorks(w.wid)"
  2648. alt
  2649. />
  2650. </div>
  2651. <div class="worksName">
  2652. <div>{{ w.sName }}</div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. <div
  2658. v-if="
  2659. tType &&
  2660. ((tType == 2 && sIsOpen == true) ||
  2661. tType == 1 ||
  2662. tType == 4) &&
  2663. tool.tool.indexOf(16) != -1
  2664. "
  2665. class="worksBox"
  2666. >
  2667. <div
  2668. class="zuoyeYulan"
  2669. v-if="
  2670. (worksStudent.length &&
  2671. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2672. "
  2673. >
  2674. <div class="worksTop">
  2675. <div>作业预览</div>
  2676. <div
  2677. class="corOpen"
  2678. @click="contract(toolIndex)"
  2679. v-if="
  2680. (isCloseList[toolIndex].isCloseBoolean) &&
  2681. isCloseList[toolIndex].isClose == 0
  2682. "
  2683. >
  2684. 折叠
  2685. </div>
  2686. <div
  2687. class="corOpen"
  2688. @click="contract(toolIndex)"
  2689. v-if="isCloseList[toolIndex].isClose == 1"
  2690. >
  2691. 展开
  2692. </div>
  2693. </div>
  2694. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2695. </div>
  2696. <div
  2697. class="group_workBox"
  2698. v-for="(g, gindex) in courseGroup.group"
  2699. :key="gindex"
  2700. >
  2701. <div class="group_box">
  2702. <div class="group_title">
  2703. <el-tooltip
  2704. class="item"
  2705. effect="light"
  2706. :content="g.name"
  2707. placement="top"
  2708. >
  2709. <div class="group_name">{{ g.name }}</div>
  2710. </el-tooltip>
  2711. </div>
  2712. <div
  2713. class="group_work"
  2714. v-if="
  2715. g.works &&
  2716. g.works.length &&
  2717. g.works[toolIndex].length
  2718. "
  2719. >
  2720. <div
  2721. class="works"
  2722. style="
  2723. width: 200px;
  2724. height: 140px;
  2725. margin: 10px 10px 10px 0;
  2726. border-radius: 15px;
  2727. box-shadow: 0 0 6px 1px #dfdada;
  2728. "
  2729. v-for="(w, wIndex) in g.works[toolIndex]"
  2730. :key="wIndex"
  2731. :class="w.type == 1 ? 'isTypeOne' : ''"
  2732. >
  2733. <div class="workImg" v-if="w.type == 0">
  2734. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2735. <img
  2736. :src="w.works"
  2737. @click="previewImg(w.works,w)"
  2738. alt
  2739. />
  2740. <div
  2741. class="answerScore"
  2742. v-if="w.score"
  2743. @click.stop="openScore(w)"
  2744. :class="{
  2745. rightW:
  2746. w.userid == userid ||
  2747. tType == 1 ||
  2748. tType == 4 ||
  2749. w.ateacher == userid,
  2750. }"
  2751. >
  2752. {{ JSON.parse(w.score).wScore }}分
  2753. </div>
  2754. <div
  2755. class="answerScore"
  2756. @click.stop="openScore(w)"
  2757. v-else-if="courseDetail.userid == userid"
  2758. :class="{
  2759. rightW:
  2760. w.userid == userid ||
  2761. tType == 1 ||
  2762. tType == 4 ||
  2763. w.ateacher == userid,
  2764. }"
  2765. >
  2766. 评分
  2767. </div>
  2768. <img
  2769. class="deleteImg"
  2770. src="../../assets/deleteworks.png"
  2771. v-if="
  2772. w.userid == userid || tType == 1 || tType == 4
  2773. "
  2774. @click.stop="deleteWorks(w.wid)"
  2775. alt
  2776. />
  2777. </div>
  2778. <div class="workImg" v-if="w.type == 1">
  2779. <img :src="word" @click="openFile(w.works)" alt />
  2780. <!-- @click="openFile(w.works)" -->
  2781. <div
  2782. class="answerScore"
  2783. v-if="w.score"
  2784. @click.stop="openScore(w)"
  2785. :class="{
  2786. rightW:
  2787. w.userid == userid ||
  2788. tType == 1 ||
  2789. tType == 4 ||
  2790. w.ateacher == userid,
  2791. }"
  2792. >
  2793. {{ JSON.parse(w.score).wScore }}分
  2794. </div>
  2795. <div
  2796. class="answerScore"
  2797. @click.stop="openScore(w)"
  2798. v-else-if="courseDetail.userid == userid"
  2799. :class="{
  2800. rightW:
  2801. w.userid == userid ||
  2802. tType == 1 ||
  2803. tType == 4 ||
  2804. w.ateacher == userid,
  2805. }"
  2806. >
  2807. 评分
  2808. </div>
  2809. <img
  2810. class="deleteImg"
  2811. src="../../assets/deleteworks.png"
  2812. v-if="
  2813. w.userid == userid || tType == 1 || tType == 4
  2814. "
  2815. @click.stop="deleteWorks(w.wid)"
  2816. alt
  2817. />
  2818. </div>
  2819. <div class="workImg" v-if="w.type == 3">
  2820. <img
  2821. style="cursor: pointer"
  2822. :src="video"
  2823. @click="openVideo(w)"
  2824. alt
  2825. />
  2826. <!-- @click="openVideo(w.works)" -->
  2827. <div
  2828. class="answerScore"
  2829. v-if="w.score"
  2830. @click.stop="openScore(w)"
  2831. :class="{
  2832. rightW:
  2833. w.userid == userid ||
  2834. tType == 1 ||
  2835. tType == 4 ||
  2836. w.ateacher == userid,
  2837. }"
  2838. >
  2839. {{ JSON.parse(w.score).wScore }}分
  2840. </div>
  2841. <div
  2842. class="answerScore"
  2843. @click.stop="openScore(w)"
  2844. v-else-if="courseDetail.userid == userid"
  2845. :class="{
  2846. rightW:
  2847. w.userid == userid ||
  2848. tType == 1 ||
  2849. tType == 4 ||
  2850. w.ateacher == userid,
  2851. }"
  2852. >
  2853. 评分
  2854. </div>
  2855. <img
  2856. class="deleteImg"
  2857. src="../../assets/deleteworks.png"
  2858. v-if="
  2859. w.userid == userid || tType == 1 || tType == 4
  2860. "
  2861. @click.stop="deleteWorks(w.wid)"
  2862. alt
  2863. />
  2864. </div>
  2865. <div class="workImg" v-if="w.type == 12">
  2866. <img
  2867. style="cursor: pointer"
  2868. :src="word2"
  2869. @click="downloadFile(w.works,w.userid)"
  2870. alt
  2871. />
  2872. <!-- @click="openVideo(w.works)" -->
  2873. <div
  2874. class="answerScore"
  2875. v-if="w.score"
  2876. @click.stop="openScore(w)"
  2877. :class="{
  2878. rightW:
  2879. w.userid == userid ||
  2880. tType == 1 ||
  2881. tType == 4 ||
  2882. w.ateacher == userid,
  2883. }"
  2884. >
  2885. {{ JSON.parse(w.score).wScore }}分
  2886. </div>
  2887. <div
  2888. class="answerScore"
  2889. @click.stop="openScore(w)"
  2890. v-else-if="courseDetail.userid == userid"
  2891. :class="{
  2892. rightW:
  2893. w.userid == userid ||
  2894. tType == 1 ||
  2895. tType == 4 ||
  2896. w.ateacher == userid,
  2897. }"
  2898. >
  2899. 评分
  2900. </div>
  2901. <img
  2902. class="deleteImg"
  2903. src="../../assets/deleteworks.png"
  2904. v-if="
  2905. w.userid == userid || tType == 1 || tType == 4
  2906. "
  2907. @click.stop="deleteWorks(w.wid)"
  2908. alt
  2909. />
  2910. </div>
  2911. <div class="comment" style="min-width: 200px">
  2912. <div class="worksName">
  2913. <div>{{ w.sName }}</div>
  2914. </div>
  2915. <div class="commentList">
  2916. <div class="commentList">
  2917. <div
  2918. class="commentImg"
  2919. @click="
  2920. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2921. "
  2922. >
  2923. <img
  2924. :src="w.isLikes == true ? likes : noLikes"
  2925. alt=""
  2926. />
  2927. </div>
  2928. <div>{{ w.likesCount }}</div>
  2929. </div>
  2930. <div
  2931. class="commentList"
  2932. style="margin-right: 15px"
  2933. >
  2934. <div
  2935. class="commentImg"
  2936. @click="
  2937. commentOther(
  2938. w,
  2939. toolIndex,
  2940. wIndex,
  2941. null,
  2942. g.id
  2943. )
  2944. "
  2945. >
  2946. <img
  2947. src="../../assets/icon/comment/comment.png"
  2948. alt=""
  2949. />
  2950. </div>
  2951. <div>{{ w.commentCount }}</div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>
  2957. <div class="group_work" v-else>暂无提交作业</div>
  2958. </div>
  2959. </div>
  2960. <div
  2961. :id="'tool-' + toolIndex"
  2962. :style="{
  2963. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2964. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2965. }"
  2966. class="worksDetailBox"
  2967. v-if="
  2968. worksStudent.length &&
  2969. worksStudent[toolIndex].length > 0
  2970. "
  2971. >
  2972. <div
  2973. class="works"
  2974. style="
  2975. width: 200px;
  2976. height: 140px;
  2977. margin: 10px 10px 10px 0;
  2978. border-radius: 15px;
  2979. box-shadow: 0 0 6px 1px #dfdada;
  2980. "
  2981. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2982. :key="wIndex"
  2983. :class="w.type == 1 ? 'isTypeOne' : ''"
  2984. >
  2985. <div class="workImg" v-if="w.type == 0">
  2986. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2987. <img
  2988. :src="w.works"
  2989. @click="previewImg(w.works,w)"
  2990. alt
  2991. />
  2992. <div
  2993. class="answerScore"
  2994. v-if="w.score"
  2995. @click.stop="openScore(w)"
  2996. :class="{
  2997. rightW:
  2998. w.userid == userid ||
  2999. tType == 1 ||
  3000. tType == 4 ||
  3001. w.ateacher == userid,
  3002. }"
  3003. >
  3004. {{ JSON.parse(w.score).wScore }}分
  3005. </div>
  3006. <div
  3007. class="answerScore"
  3008. @click.stop="openScore(w)"
  3009. v-else-if="courseDetail.userid == userid"
  3010. :class="{
  3011. rightW:
  3012. w.userid == userid ||
  3013. tType == 1 ||
  3014. tType == 4 ||
  3015. w.ateacher == userid,
  3016. }"
  3017. >
  3018. 评分
  3019. </div>
  3020. <img
  3021. class="deleteImg"
  3022. src="../../assets/deleteworks.png"
  3023. v-if="
  3024. w.userid == userid || tType == 1 || tType == 4
  3025. "
  3026. @click.stop="deleteWorks(w.wid)"
  3027. alt
  3028. />
  3029. </div>
  3030. <div class="workImg" v-if="w.type == 1">
  3031. <img :src="word" @click="openFile(w.works)" alt />
  3032. <!-- @click="openFile(w.works)" -->
  3033. <div
  3034. class="answerScore"
  3035. v-if="w.score"
  3036. @click.stop="openScore(w)"
  3037. :class="{
  3038. rightW:
  3039. w.userid == userid ||
  3040. tType == 1 ||
  3041. tType == 4 ||
  3042. w.ateacher == userid,
  3043. }"
  3044. >
  3045. {{ JSON.parse(w.score).wScore }}分
  3046. </div>
  3047. <div
  3048. class="answerScore"
  3049. @click.stop="openScore(w)"
  3050. v-else-if="courseDetail.userid == userid"
  3051. :class="{
  3052. rightW:
  3053. w.userid == userid ||
  3054. tType == 1 ||
  3055. tType == 4 ||
  3056. w.ateacher == userid,
  3057. }"
  3058. >
  3059. 评分
  3060. </div>
  3061. <img
  3062. class="deleteImg"
  3063. src="../../assets/deleteworks.png"
  3064. v-if="
  3065. w.userid == userid || tType == 1 || tType == 4
  3066. "
  3067. @click.stop="deleteWorks(w.wid)"
  3068. alt
  3069. />
  3070. </div>
  3071. <div class="workImg" v-if="w.type == 3">
  3072. <img
  3073. style="cursor: pointer"
  3074. :src="video"
  3075. @click="openVideo(w)"
  3076. alt
  3077. />
  3078. <!-- @click="openVideo(w.works)" -->
  3079. <div
  3080. class="answerScore"
  3081. v-if="w.score"
  3082. @click.stop="openScore(w)"
  3083. :class="{
  3084. rightW:
  3085. w.userid == userid ||
  3086. tType == 1 ||
  3087. tType == 4 ||
  3088. w.ateacher == userid,
  3089. }"
  3090. >
  3091. {{ JSON.parse(w.score).wScore }}分
  3092. </div>
  3093. <div
  3094. class="answerScore"
  3095. @click.stop="openScore(w)"
  3096. v-else-if="courseDetail.userid == userid"
  3097. :class="{
  3098. rightW:
  3099. w.userid == userid ||
  3100. tType == 1 ||
  3101. tType == 4 ||
  3102. w.ateacher == userid,
  3103. }"
  3104. >
  3105. 评分
  3106. </div>
  3107. <img
  3108. class="deleteImg"
  3109. src="../../assets/deleteworks.png"
  3110. v-if="
  3111. w.userid == userid || tType == 1 || tType == 4
  3112. "
  3113. @click.stop="deleteWorks(w.wid)"
  3114. alt
  3115. />
  3116. </div>
  3117. <div class="workImg" v-if="w.type == 12">
  3118. <img
  3119. style="cursor: pointer"
  3120. :src="word2"
  3121. @click="downloadFile(w.works,w.userid)"
  3122. alt
  3123. />
  3124. <!-- @click="openVideo(w.works)" -->
  3125. <div
  3126. class="answerScore"
  3127. v-if="w.score"
  3128. @click.stop="openScore(w)"
  3129. :class="{
  3130. rightW:
  3131. w.userid == userid ||
  3132. tType == 1 ||
  3133. tType == 4 ||
  3134. w.ateacher == userid,
  3135. }"
  3136. >
  3137. {{ JSON.parse(w.score).wScore }}分
  3138. </div>
  3139. <div
  3140. class="answerScore"
  3141. @click.stop="openScore(w)"
  3142. v-else-if="courseDetail.userid == userid"
  3143. :class="{
  3144. rightW:
  3145. w.userid == userid ||
  3146. tType == 1 ||
  3147. tType == 4 ||
  3148. w.ateacher == userid,
  3149. }"
  3150. >
  3151. 评分
  3152. </div>
  3153. <img
  3154. class="deleteImg"
  3155. src="../../assets/deleteworks.png"
  3156. v-if="
  3157. w.userid == userid || tType == 1 || tType == 4
  3158. "
  3159. @click.stop="deleteWorks(w.wid)"
  3160. alt
  3161. />
  3162. </div>
  3163. <div class="comment" style="min-width: 200px">
  3164. <div class="worksName">
  3165. <div>{{ w.sName }}</div>
  3166. </div>
  3167. <div class="commentList">
  3168. <div class="commentList">
  3169. <div
  3170. class="commentImg"
  3171. @click="
  3172. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3173. "
  3174. >
  3175. <img
  3176. :src="w.isLikes == true ? likes : noLikes"
  3177. alt=""
  3178. />
  3179. </div>
  3180. <div>{{ w.likesCount }}</div>
  3181. </div>
  3182. <div class="commentList" style="margin-right: 15px">
  3183. <div
  3184. class="commentImg"
  3185. @click="commentOther(w, toolIndex, wIndex)"
  3186. >
  3187. <img
  3188. src="../../assets/icon/comment/comment.png"
  3189. alt=""
  3190. />
  3191. </div>
  3192. <div>{{ w.commentCount }}</div>
  3193. </div>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3199. 未提交
  3200. </div>
  3201. <div
  3202. class="noWorksS"
  3203. v-if="noWorksS && noWorksS[toolIndex].length"
  3204. >
  3205. <div
  3206. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3207. :key="sIndex"
  3208. class="noWorksName"
  3209. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3210. >
  3211. <el-tooltip effect="dark" :content="s.student" placement="top">
  3212. <span>{{ s.student }}</span>
  3213. </el-tooltip>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. <div
  3218. v-if="
  3219. tType &&
  3220. ((tType == 2 && sIsOpen == true) ||
  3221. tType == 1 ||
  3222. tType == 4) &&
  3223. tool.tool.indexOf(70) != -1
  3224. "
  3225. class="worksBox"
  3226. >
  3227. <div
  3228. class="zuoyeYulan"
  3229. v-if="
  3230. (worksStudent.length &&
  3231. worksStudent[toolIndex].length > 0)
  3232. "
  3233. >
  3234. <div class="worksTop">
  3235. <div>作业预览</div>
  3236. <div
  3237. class="corOpen"
  3238. @click="contract(toolIndex)"
  3239. v-if="
  3240. (isCloseList[toolIndex].isCloseBoolean) &&
  3241. isCloseList[toolIndex].isClose == 0
  3242. "
  3243. >
  3244. 折叠
  3245. </div>
  3246. <div
  3247. class="corOpen"
  3248. @click="contract(toolIndex)"
  3249. v-if="isCloseList[toolIndex].isClose == 1"
  3250. >
  3251. 展开
  3252. </div>
  3253. </div>
  3254. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3255. </div>
  3256. <div
  3257. :id="'tool-' + toolIndex"
  3258. :style="{
  3259. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3260. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3261. }"
  3262. class="worksDetailBox"
  3263. v-if="
  3264. worksStudent.length &&
  3265. worksStudent[toolIndex].length > 0
  3266. "
  3267. >
  3268. <div
  3269. class="works"
  3270. style="
  3271. width: 200px;
  3272. height: 140px;
  3273. margin: 10px 10px 10px 0;
  3274. border-radius: 15px;
  3275. box-shadow: 0 0 6px 1px #dfdada;
  3276. "
  3277. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3278. :key="wIndex"
  3279. :class="w.type == 1 ? 'isTypeOne' : ''"
  3280. >
  3281. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3282. <img :src="word" alt />
  3283. <img
  3284. class="deleteImg"
  3285. src="../../assets/deleteworks.png"
  3286. v-if="
  3287. w.userid == userid || tType == 1 || tType == 4
  3288. "
  3289. @click.stop="deleteWorks(w.wid)"
  3290. alt
  3291. />
  3292. </div>
  3293. <div class="comment" style="min-width: 200px">
  3294. <div class="worksName">
  3295. <div>{{ w.sName }}</div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3301. 未提交
  3302. </div>
  3303. <div
  3304. class="noWorksS"
  3305. v-if="noWorksS && noWorksS[toolIndex].length"
  3306. >
  3307. <div
  3308. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3309. :key="sIndex"
  3310. class="noWorksName"
  3311. >
  3312. <el-tooltip effect="dark" :content="s.student" placement="top">
  3313. <span>{{ s.student }}</span>
  3314. </el-tooltip>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. <div
  3319. v-if="
  3320. tType &&
  3321. tType == 2 &&
  3322. !sIsOpen &&
  3323. tool.tool.indexOf(70) != -1
  3324. "
  3325. class="worksBox"
  3326. >
  3327. <div
  3328. class="zuoyeYulan"
  3329. v-if="workStudent[toolIndex].length > 0"
  3330. >
  3331. <span class="worksTitle">作业预览</span>
  3332. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3333. </div>
  3334. <div
  3335. class="worksDetailBox"
  3336. v-if="workStudent[toolIndex].length > 0"
  3337. >
  3338. <div
  3339. class="works"
  3340. style="
  3341. width: 200px;
  3342. height: 140px;
  3343. margin: 10px 10px 10px 0;
  3344. box-shadow: 0 0 6px 1px #dfdada;
  3345. "
  3346. v-for="(w, wIndex) in workStudent[toolIndex]"
  3347. :key="wIndex"
  3348. >
  3349. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3350. <img :src="word" alt />
  3351. <img
  3352. class="deleteImg"
  3353. src="../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="worksName">
  3362. <div>{{ w.sName }}</div>
  3363. </div>
  3364. </div>
  3365. </div>
  3366. </div>
  3367. <div
  3368. v-if="
  3369. tType &&
  3370. ((tType == 2 && sIsOpen == true) ||
  3371. tType == 1 ||
  3372. tType == 4) &&
  3373. tool.tool.indexOf(32) != -1
  3374. "
  3375. class="worksBox"
  3376. >
  3377. <div
  3378. class="zuoyeYulan"
  3379. v-if="
  3380. worksStudent.length &&
  3381. worksStudent[toolIndex].length > 0
  3382. "
  3383. >
  3384. <div class="worksTop">
  3385. <div>作业预览</div>
  3386. <div
  3387. class="corOpen"
  3388. @click="contract(toolIndex)"
  3389. v-if="
  3390. (isCloseList[toolIndex].isCloseBoolean) &&
  3391. isCloseList[toolIndex].isClose == 0
  3392. "
  3393. >
  3394. 折叠
  3395. </div>
  3396. <div
  3397. class="corOpen"
  3398. @click="contract(toolIndex)"
  3399. v-if="isCloseList[toolIndex].isClose == 1"
  3400. >
  3401. 展开
  3402. </div>
  3403. </div>
  3404. </div>
  3405. <div
  3406. :id="'tool-' + toolIndex"
  3407. :style="{
  3408. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3409. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3410. }"
  3411. class="worksDetailBox"
  3412. v-if="
  3413. worksStudent.length &&
  3414. worksStudent[toolIndex].length > 0
  3415. "
  3416. >
  3417. <div
  3418. class="works"
  3419. style="
  3420. width: 200px;
  3421. height: 140px;
  3422. margin: 10px 10px 10px 0;
  3423. border-radius: 15px;
  3424. box-shadow: 0 0 6px 1px #dfdada;
  3425. "
  3426. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3427. :key="wIndex"
  3428. :class="w.type == 1 ? 'isTypeOne' : ''"
  3429. >
  3430. <div class="workImg">
  3431. <img
  3432. :src="word2"
  3433. @click="downloadFile(w.works,w.userid)"
  3434. alt
  3435. />
  3436. <div
  3437. class="answerScore"
  3438. v-if="w.score"
  3439. @click.stop="openScore(w)"
  3440. :class="{
  3441. rightW:
  3442. w.userid == userid ||
  3443. tType == 1 ||
  3444. tType == 4 ||
  3445. w.ateacher == userid,
  3446. }"
  3447. >
  3448. {{ JSON.parse(w.score).wScore }}分
  3449. </div>
  3450. <div
  3451. class="answerScore"
  3452. @click.stop="openScore(w)"
  3453. v-else-if="courseDetail.userid == userid"
  3454. :class="{
  3455. rightW:
  3456. w.userid == userid ||
  3457. tType == 1 ||
  3458. tType == 4 ||
  3459. w.ateacher == userid,
  3460. }"
  3461. >
  3462. 评分
  3463. </div>
  3464. <img
  3465. class="deleteImg"
  3466. src="../../assets/deleteworks.png"
  3467. v-if="
  3468. w.userid == userid || tType == 1 || tType == 4
  3469. "
  3470. @click.stop="deleteWorks(w.wid)"
  3471. alt
  3472. />
  3473. </div>
  3474. <div class="comment" style="min-width: 200px">
  3475. <div class="worksName">
  3476. <div>{{ w.sName }}</div>
  3477. </div>
  3478. <div class="commentList">
  3479. <div class="commentList">
  3480. <div
  3481. class="commentImg"
  3482. @click="
  3483. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3484. "
  3485. >
  3486. <img
  3487. :src="w.isLikes == true ? likes : noLikes"
  3488. alt=""
  3489. />
  3490. </div>
  3491. <div>{{ w.likesCount }}</div>
  3492. </div>
  3493. <div class="commentList" style="margin-right: 15px">
  3494. <div
  3495. class="commentImg"
  3496. @click="commentOther(w, toolIndex, wIndex)"
  3497. >
  3498. <img
  3499. src="../../assets/icon/comment/comment.png"
  3500. alt=""
  3501. />
  3502. </div>
  3503. <div>{{ w.commentCount }}</div>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3510. 未提交
  3511. </div>
  3512. <div
  3513. class="noWorksS"
  3514. v-if="noWorksS && noWorksS[toolIndex].length"
  3515. >
  3516. <div
  3517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3518. :key="sIndex"
  3519. class="noWorksName"
  3520. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3521. >
  3522. <el-tooltip effect="dark" :content="s.student" placement="top">
  3523. <span>{{ s.student }}</span>
  3524. </el-tooltip>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. <div
  3529. v-if="
  3530. tType &&
  3531. ((tType == 2 && sIsOpen == true) ||
  3532. tType == 1 ||
  3533. tType == 4) &&
  3534. tool.tool.indexOf(57) != -1
  3535. "
  3536. class="worksBox"
  3537. >
  3538. <div
  3539. class="zuoyeYulan"
  3540. v-if="
  3541. worksStudent.length &&
  3542. worksStudent[toolIndex].length > 0
  3543. "
  3544. >
  3545. <div class="worksTop">
  3546. <div>作业预览</div>
  3547. <div
  3548. class="corOpen"
  3549. @click="contract(toolIndex)"
  3550. v-if="
  3551. (isCloseList[toolIndex].isCloseBoolean) &&
  3552. isCloseList[toolIndex].isClose == 0
  3553. "
  3554. >
  3555. 折叠
  3556. </div>
  3557. <div
  3558. class="corOpen"
  3559. @click="contract(toolIndex)"
  3560. v-if="isCloseList[toolIndex].isClose == 1"
  3561. >
  3562. 展开
  3563. </div>
  3564. </div>
  3565. </div>
  3566. <div
  3567. :id="'tool-' + toolIndex"
  3568. :style="{
  3569. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3570. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3571. }"
  3572. class="worksDetailBox"
  3573. v-if="
  3574. worksStudent.length &&
  3575. worksStudent[toolIndex].length > 0
  3576. "
  3577. >
  3578. <div
  3579. class="works"
  3580. style="
  3581. width: 200px;
  3582. height: 140px;
  3583. margin: 10px 10px 10px 0;
  3584. border-radius: 15px;
  3585. box-shadow: 0 0 6px 1px #dfdada;
  3586. "
  3587. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3588. :key="wIndex"
  3589. :class="w.type == 1 ? 'isTypeOne' : ''"
  3590. >
  3591. <div class="workImg">
  3592. <img
  3593. :src="word2"
  3594. @click="downloadFile(w.works,w.userid)"
  3595. v-if="w.type == 12"
  3596. alt
  3597. />
  3598. <img
  3599. :src="word2"
  3600. @click="
  3601. openCocoPi(57, toolIndex, w.userid, w.sName)
  3602. "
  3603. v-else-if="w.type == 15"
  3604. alt
  3605. />
  3606. <div
  3607. class="answerScore"
  3608. v-if="w.score"
  3609. @click.stop="openScore(w)"
  3610. :class="{
  3611. rightW:
  3612. w.userid == userid ||
  3613. tType == 1 ||
  3614. tType == 4 ||
  3615. w.ateacher == userid,
  3616. }"
  3617. >
  3618. {{ JSON.parse(w.score).wScore }}分
  3619. </div>
  3620. <div
  3621. class="answerScore"
  3622. @click.stop="openScore(w)"
  3623. v-else-if="courseDetail.userid == userid"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. 评分
  3633. </div>
  3634. <img
  3635. class="deleteImg"
  3636. src="../../assets/deleteworks.png"
  3637. v-if="
  3638. w.userid == userid || tType == 1 || tType == 4
  3639. "
  3640. @click.stop="deleteWorks(w.wid)"
  3641. alt
  3642. />
  3643. </div>
  3644. <div class="comment" style="min-width: 200px">
  3645. <div class="worksName">
  3646. <div>{{ w.sName }}</div>
  3647. </div>
  3648. <div class="commentList">
  3649. <div class="commentList">
  3650. <div
  3651. class="commentImg"
  3652. @click="
  3653. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3654. "
  3655. >
  3656. <img
  3657. :src="w.isLikes == true ? likes : noLikes"
  3658. alt=""
  3659. />
  3660. </div>
  3661. <div>{{ w.likesCount }}</div>
  3662. </div>
  3663. <div class="commentList" style="margin-right: 15px">
  3664. <div
  3665. class="commentImg"
  3666. @click="commentOther(w, toolIndex, wIndex)"
  3667. >
  3668. <img
  3669. src="../../assets/icon/comment/comment.png"
  3670. alt=""
  3671. />
  3672. </div>
  3673. <div>{{ w.commentCount }}</div>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3680. 未提交
  3681. </div>
  3682. <div
  3683. class="noWorksS"
  3684. v-if="noWorksS && noWorksS[toolIndex].length"
  3685. >
  3686. <div
  3687. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3688. :key="sIndex"
  3689. class="noWorksName"
  3690. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3691. >
  3692. <el-tooltip effect="dark" :content="s.student" placement="top">
  3693. <span>{{ s.student }}</span>
  3694. </el-tooltip>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <div
  3699. v-if="
  3700. tType &&
  3701. ((tType == 2 && sIsOpen == true) ||
  3702. tType == 1 ||
  3703. tType == 4) &&
  3704. tool.tool.indexOf(72) != -1
  3705. "
  3706. class="worksBox"
  3707. >
  3708. <div
  3709. class="zuoyeYulan"
  3710. v-if="
  3711. worksStudent.length &&
  3712. worksStudent[toolIndex].length > 0
  3713. "
  3714. >
  3715. <div class="worksTop">
  3716. <div>作业预览</div>
  3717. <div
  3718. class="corOpen"
  3719. @click="contract(toolIndex)"
  3720. v-if="
  3721. isCloseList[toolIndex].isCloseBoolean &&
  3722. isCloseList[toolIndex].isClose == 0
  3723. "
  3724. >
  3725. 折叠
  3726. </div>
  3727. <div
  3728. class="corOpen"
  3729. @click="contract(toolIndex)"
  3730. v-if="isCloseList[toolIndex].isClose == 1"
  3731. >
  3732. 展开
  3733. </div>
  3734. </div>
  3735. </div>
  3736. <div
  3737. :id="'tool-' + toolIndex"
  3738. :style="{
  3739. height:
  3740. isCloseList[toolIndex].isClose == 1
  3741. ? retrnToolHeight('tool-' + toolIndex)
  3742. : 'auto',
  3743. overflow:
  3744. isCloseList[toolIndex].isClose == 1
  3745. ? 'hidden'
  3746. : 'unset'
  3747. }"
  3748. class="worksDetailBox"
  3749. v-if="
  3750. worksStudent.length &&
  3751. worksStudent[toolIndex].length > 0
  3752. "
  3753. >
  3754. <div
  3755. class="works"
  3756. style="
  3757. width: 200px;
  3758. height: 140px;
  3759. margin: 10px 10px 10px 0;
  3760. border-radius: 15px;
  3761. box-shadow: 0 0 6px 1px #dfdada;
  3762. "
  3763. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3764. :key="wIndex"
  3765. :class="w.type == 1 ? 'isTypeOne' : ''"
  3766. >
  3767. <div class="workImg">
  3768. <!-- <img
  3769. :src="word2"
  3770. @click="downloadFile(w.works)"
  3771. v-if="w.type == 12"
  3772. alt
  3773. /> -->
  3774. <img
  3775. :src="word2"
  3776. @click="
  3777. openCocoFlow(w)
  3778. "
  3779. alt
  3780. />
  3781. <div
  3782. class="answerScore"
  3783. v-if="w.score"
  3784. @click.stop="openScore(w)"
  3785. :class="{
  3786. rightW:
  3787. w.userid == userid ||
  3788. tType == 1 ||
  3789. tType == 4 ||
  3790. w.ateacher == userid
  3791. }"
  3792. >
  3793. {{ JSON.parse(w.score).wScore }}分
  3794. </div>
  3795. <div
  3796. class="answerScore"
  3797. @click.stop="openScore(w)"
  3798. v-else-if="
  3799. courseDetail.userid == userid &&
  3800. courseDetail.state != 5 &&
  3801. chapInfoList[courseType].chapterInfo[0]
  3802. .taskJson[taskCount].eList &&
  3803. chapInfoList[courseType].chapterInfo[0]
  3804. .taskJson[taskCount].eList.length
  3805. "
  3806. :class="{
  3807. rightW:
  3808. w.userid == userid ||
  3809. tType == 1 ||
  3810. tType == 4 ||
  3811. w.ateacher == userid
  3812. }"
  3813. >
  3814. 评分
  3815. </div>
  3816. <img
  3817. class="deleteImg"
  3818. src="../../assets/deleteworks.png"
  3819. v-if="
  3820. w.userid == userid || tType == 1 || tType == 4
  3821. "
  3822. @click.stop="deleteWorks(w.wid)"
  3823. alt
  3824. />
  3825. </div>
  3826. <div class="comment" style="min-width: 200px">
  3827. <div class="worksName">
  3828. <div>{{ w.sName }}</div>
  3829. </div>
  3830. <div class="commentList">
  3831. <div class="commentList">
  3832. <div
  3833. class="commentImg"
  3834. @click="
  3835. isLikes(
  3836. w.wid,
  3837. userid,
  3838. 1,
  3839. null,
  3840. w.isLikes,
  3841. w.sName
  3842. )
  3843. "
  3844. >
  3845. <img
  3846. :src="w.isLikes == true ? likes : noLikes"
  3847. alt=""
  3848. />
  3849. </div>
  3850. <div>{{ w.likesCount }}</div>
  3851. </div>
  3852. <div class="commentList" style="margin-right: 15px">
  3853. <div
  3854. class="commentImg"
  3855. @click="commentOther(w, toolIndex, wIndex)"
  3856. >
  3857. <img
  3858. src="../../assets/icon/comment/comment.png"
  3859. alt=""
  3860. />
  3861. </div>
  3862. <div>{{ w.commentCount }}</div>
  3863. </div>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. </div>
  3868. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3869. 未提交
  3870. </div>
  3871. <div
  3872. class="noWorksS"
  3873. v-if="noWorksS && noWorksS[toolIndex].length"
  3874. >
  3875. <div
  3876. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3877. :key="sIndex"
  3878. class="noWorksName"
  3879. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3880. >
  3881. <el-tooltip
  3882. effect="dark"
  3883. :content="s.student"
  3884. placement="top"
  3885. >
  3886. <span>{{ s.student }}</span>
  3887. </el-tooltip>
  3888. </div>
  3889. </div>
  3890. </div>
  3891. <div
  3892. v-if="
  3893. tType &&
  3894. tType == 2 &&
  3895. !sIsOpen &&
  3896. tool.tool.indexOf(72) != -1
  3897. "
  3898. class="worksBox"
  3899. >
  3900. <div
  3901. class="zuoyeYulan"
  3902. v-if="workStudent[toolIndex].length > 0"
  3903. >
  3904. <span class="worksTitle">作业预览</span>
  3905. </div>
  3906. <div
  3907. class="worksDetailBox"
  3908. v-if="workStudent[toolIndex].length > 0"
  3909. >
  3910. <div
  3911. class="works"
  3912. style="
  3913. width: 200px;
  3914. height: 140px;
  3915. margin: 10px 10px 10px 0;
  3916. box-shadow: 0 0 6px 1px #dfdada;
  3917. "
  3918. v-for="(w, wIndex) in workStudent[toolIndex]"
  3919. :key="wIndex"
  3920. >
  3921. <div class="workImg">
  3922. <!-- <img
  3923. :src="word2"
  3924. @click="downloadFile(w.works)"
  3925. v-if="w.type == 12"
  3926. alt
  3927. /> -->
  3928. <img
  3929. :src="word2"
  3930. @click="
  3931. openCocoFlow(w)
  3932. "
  3933. alt
  3934. />
  3935. <div
  3936. class="answerScore"
  3937. v-if="w.score"
  3938. @click.stop="openScore(w)"
  3939. :class="{
  3940. rightW:
  3941. w.userid == userid || tType == 1 || tType == 4
  3942. }"
  3943. >
  3944. {{ JSON.parse(w.score).wScore }}分
  3945. </div>
  3946. <div
  3947. class="answerScore"
  3948. @click.stop="openScore(w)"
  3949. v-else-if="courseDetail.userid == userid"
  3950. :class="{
  3951. rightW:
  3952. w.userid == userid || tType == 1 || tType == 4
  3953. }"
  3954. >
  3955. 评分
  3956. </div>
  3957. <img
  3958. class="deleteImg"
  3959. src="../../assets/deleteworks.png"
  3960. v-if="
  3961. w.userid == userid || tType == 1 || tType == 4
  3962. "
  3963. @click.stop="deleteWorks(w.wid)"
  3964. alt
  3965. />
  3966. </div>
  3967. <div class="worksName">
  3968. <div>{{ w.sName }}</div>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. </div>
  3973. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3974. <div
  3975. class="zuoyeYulan"
  3976. v-if="
  3977. worksStudent.length &&
  3978. worksStudent[toolIndex].length > 0
  3979. "
  3980. >
  3981. <span class="worksTitle">作业预览</span>
  3982. <div
  3983. class="corOpen"
  3984. @click="contract(toolIndex)"
  3985. v-if="
  3986. (isCloseList[toolIndex].isCloseBoolean) &&
  3987. isCloseList[toolIndex].isClose == 0
  3988. "
  3989. >
  3990. 折叠
  3991. </div>
  3992. <div
  3993. class="corOpen"
  3994. @click="contract(toolIndex)"
  3995. v-if="isCloseList[toolIndex].isClose == 1"
  3996. >
  3997. 展开
  3998. </div>
  3999. </div>
  4000. <div
  4001. :id="'tool-' + toolIndex"
  4002. :style="{
  4003. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4004. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4005. }"
  4006. class="worksDetailBox"
  4007. v-if="
  4008. worksStudent.length &&
  4009. worksStudent[toolIndex].length > 0
  4010. "
  4011. >
  4012. <div
  4013. class="works"
  4014. style="
  4015. width: 200px;
  4016. height: 140px;
  4017. margin: 10px 10px 10px 0;
  4018. border-radius: 15px;
  4019. box-shadow: 0 0 6px 1px #dfdada;
  4020. "
  4021. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4022. :key="wIndex"
  4023. :class="w.type == 1 ? 'isTypeOne' : ''"
  4024. >
  4025. <div class="workImg" v-if="w.type == 0">
  4026. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4027. <img
  4028. :src="w.works"
  4029. @click="previewImg(w.works,w)"
  4030. alt
  4031. />
  4032. <div
  4033. class="answerScore"
  4034. v-if="w.score"
  4035. @click.stop="openScore(w)"
  4036. :class="{
  4037. rightW:
  4038. w.userid == userid ||
  4039. tType == 1 ||
  4040. tType == 4 ||
  4041. w.ateacher == userid,
  4042. }"
  4043. >
  4044. {{ JSON.parse(w.score).wScore }}分
  4045. </div>
  4046. <div
  4047. class="answerScore"
  4048. @click.stop="openScore(w)"
  4049. v-else-if="courseDetail.userid == userid"
  4050. :class="{
  4051. rightW:
  4052. w.userid == userid ||
  4053. tType == 1 ||
  4054. tType == 4 ||
  4055. w.ateacher == userid,
  4056. }"
  4057. >
  4058. 评分
  4059. </div>
  4060. <img
  4061. class="deleteImg"
  4062. src="../../assets/deleteworks.png"
  4063. v-if="
  4064. w.userid == userid || tType == 1 || tType == 4
  4065. "
  4066. @click.stop="deleteWorks(w.wid)"
  4067. alt
  4068. />
  4069. </div>
  4070. <div
  4071. class="workImg"
  4072. style="cursor: pointer"
  4073. v-if="w.type == 1"
  4074. >
  4075. <img :src="word" @click="openFile(w.works)" alt />
  4076. <!-- @click="openFile(w.works)" -->
  4077. <div
  4078. class="answerScore"
  4079. v-if="w.score"
  4080. @click.stop="openScore(w)"
  4081. :class="{
  4082. rightW:
  4083. w.userid == userid ||
  4084. tType == 1 ||
  4085. tType == 4 ||
  4086. w.ateacher == userid,
  4087. }"
  4088. >
  4089. {{ JSON.parse(w.score).wScore }}分
  4090. </div>
  4091. <div
  4092. class="answerScore"
  4093. @click.stop="openScore(w)"
  4094. v-else-if="courseDetail.userid == userid"
  4095. :class="{
  4096. rightW:
  4097. w.userid == userid ||
  4098. tType == 1 ||
  4099. tType == 4 ||
  4100. w.ateacher == userid,
  4101. }"
  4102. >
  4103. 评分
  4104. </div>
  4105. <img
  4106. class="deleteImg"
  4107. src="../../assets/deleteworks.png"
  4108. v-if="
  4109. w.userid == userid || tType == 1 || tType == 4
  4110. "
  4111. @click.stop="deleteWorks(w.wid)"
  4112. alt
  4113. />
  4114. </div>
  4115. <div class="workImg" v-if="w.type == 3">
  4116. <img
  4117. style="cursor: pointer"
  4118. :src="video"
  4119. @click="openVideo(w)"
  4120. alt
  4121. />
  4122. <!-- @click="openVideo(w.works)" -->
  4123. <div
  4124. class="answerScore"
  4125. v-if="w.score"
  4126. @click.stop="openScore(w)"
  4127. :class="{
  4128. rightW:
  4129. w.userid == userid ||
  4130. tType == 1 ||
  4131. tType == 4 ||
  4132. w.ateacher == userid,
  4133. }"
  4134. >
  4135. {{ JSON.parse(w.score).wScore }}分
  4136. </div>
  4137. <div
  4138. class="answerScore"
  4139. @click.stop="openScore(w)"
  4140. v-else-if="courseDetail.userid == userid"
  4141. :class="{
  4142. rightW:
  4143. w.userid == userid ||
  4144. tType == 1 ||
  4145. tType == 4 ||
  4146. w.ateacher == userid,
  4147. }"
  4148. >
  4149. 评分
  4150. </div>
  4151. <img
  4152. class="deleteImg"
  4153. src="../../assets/deleteworks.png"
  4154. v-if="
  4155. w.userid == userid || tType == 1 || tType == 4
  4156. "
  4157. @click.stop="deleteWorks(w.wid)"
  4158. alt
  4159. />
  4160. </div>
  4161. <div class="comment" style="min-width: 200px">
  4162. <div class="worksName">
  4163. <div
  4164. style="cursor: pointer"
  4165. @click="
  4166. openSname(w.sName, w.wid, toolIndex, w.userid)
  4167. "
  4168. >
  4169. {{ w.sName }}
  4170. </div>
  4171. </div>
  4172. <div class="commentList">
  4173. <div class="commentList">
  4174. <div
  4175. class="commentImg"
  4176. @click="
  4177. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4178. "
  4179. >
  4180. <img
  4181. :src="w.isLikes == true ? likes : noLikes"
  4182. alt=""
  4183. />
  4184. </div>
  4185. <div>{{ w.likesCount }}</div>
  4186. </div>
  4187. <div class="commentList" style="margin-right: 15px">
  4188. <div
  4189. class="commentImg"
  4190. @click="commentOther(w, toolIndex, wIndex)"
  4191. >
  4192. <img
  4193. src="../../assets/icon/comment/comment.png"
  4194. alt=""
  4195. />
  4196. </div>
  4197. <div>{{ w.commentCount }}</div>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4204. 未提交
  4205. </div>
  4206. <div
  4207. class="noWorksS"
  4208. v-if="noWorksS && noWorksS[toolIndex].length"
  4209. >
  4210. <div
  4211. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4212. :key="sIndex"
  4213. class="noWorksName"
  4214. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4215. >
  4216. <el-tooltip effect="dark" :content="s.student" placement="top">
  4217. <span>{{ s.student }}</span>
  4218. </el-tooltip>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(4) != -1 &&
  4229. (tool.askJson[0].answer ||
  4230. tool.askJson[0].answer === 0) &&
  4231. checkJson[toolIndex].length
  4232. "
  4233. class="xuan_right_box"
  4234. >
  4235. <div
  4236. class="tool_right_box"
  4237. v-for="(item, index) in tool.askJson"
  4238. :key="index"
  4239. >
  4240. <div style="width: calc(100% - 30px);">
  4241. <el-tooltip
  4242. effect="light"
  4243. :content="index + 1 + '、' + item.askstitle"
  4244. placement="top"
  4245. popper-class="text_tooltip"
  4246. >
  4247. <div
  4248. style="
  4249. width: calc(100% - 130px);
  4250. display: block;
  4251. white-space: nowrap;
  4252. overflow: hidden;
  4253. text-overflow: ellipsis;
  4254. word-break: break-word;
  4255. cursor: pointer;
  4256. "
  4257. >
  4258. {{ index + 1 + "、" + item.askstitle }}
  4259. </div>
  4260. </el-tooltip>
  4261. </div>
  4262. <div class="right_box_xuan">
  4263. <span>正确率</span>
  4264. <span>{{
  4265. (checkJson[toolIndex][index].right
  4266. ? checkJson[toolIndex][index].right
  4267. : 0) + "%"
  4268. }}</span>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div
  4273. class="xuan_right_box"
  4274. style="background: unset; padding: 0 10px"
  4275. v-if="
  4276. tType &&
  4277. ((tType == 2 && sIsOpen == true) ||
  4278. tType == 1 ||
  4279. tType == 4) &&
  4280. tool.tool.indexOf(4) != -1
  4281. "
  4282. >
  4283. <AskStatic
  4284. v-if="
  4285. worksStudent.length &&
  4286. worksStudent[toolIndex].length > 0
  4287. "
  4288. :askJSON="tool"
  4289. :checkJson="checkJson[toolIndex]"
  4290. ></AskStatic>
  4291. </div>
  4292. <div
  4293. v-if="
  4294. tType &&
  4295. ((tType == 2 && sIsOpen == true) ||
  4296. tType == 1 ||
  4297. tType == 4) &&
  4298. tool.tool.indexOf(4) != -1
  4299. "
  4300. class="worksBox"
  4301. >
  4302. <div
  4303. class="zuoyeYulan"
  4304. v-if="
  4305. worksStudent.length &&
  4306. worksStudent[toolIndex].length > 0
  4307. "
  4308. >
  4309. <div class="worksTop">
  4310. <div>作业预览</div>
  4311. <div
  4312. class="corOpen"
  4313. @click="contract(toolIndex)"
  4314. v-if="
  4315. (isCloseList[toolIndex].isCloseBoolean) &&
  4316. isCloseList[toolIndex].isClose == 0
  4317. "
  4318. >
  4319. 折叠
  4320. </div>
  4321. <div
  4322. class="corOpen"
  4323. @click="contract(toolIndex)"
  4324. v-if="isCloseList[toolIndex].isClose == 1"
  4325. >
  4326. 展开
  4327. </div>
  4328. </div>
  4329. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4330. </div>
  4331. <div>
  4332. <div
  4333. :id="'tool-' + toolIndex"
  4334. :style="{
  4335. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4336. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4337. }"
  4338. class="worksDetailBox"
  4339. v-if="
  4340. worksStudent.length &&
  4341. worksStudent[toolIndex].length > 0
  4342. "
  4343. >
  4344. <div
  4345. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4346. :key="wIndex"
  4347. class="isWorksName2"
  4348. @click="
  4349. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4350. "
  4351. >
  4352. {{ w.sName }}
  4353. <img
  4354. class="deleteImg deleteImg2"
  4355. src="../../assets/deleteworks.png"
  4356. v-if="
  4357. w.userid == userid || tType == 1 || tType == 4
  4358. "
  4359. @click.stop="deleteWorks(w.wid)"
  4360. alt
  4361. />
  4362. </div>
  4363. <!-- <div class="works" style="
  4364. width: 200px;
  4365. height: 140px;
  4366. border-radius: 10px;
  4367. box-shadow: 0 0 6px 1px #dfdada;
  4368. overflow: hidden;
  4369. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4370. <div class="workImg">
  4371. <img src="../../assets/icon/works/noImg.png" @click="
  4372. openTools(
  4373. 4,
  4374. toolIndex,
  4375. taskCount,
  4376. w.works,
  4377. w.sName
  4378. )
  4379. " alt />
  4380. </div>
  4381. <div class="worksName">
  4382. <div>{{ w.sName }}</div>
  4383. <div>{{ w.time }}</div>
  4384. </div>
  4385. </div> -->
  4386. </div>
  4387. </div>
  4388. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4389. 未提交
  4390. </div>
  4391. <div
  4392. class="noWorksS"
  4393. v-if="noWorksS && noWorksS[toolIndex].length"
  4394. >
  4395. <div
  4396. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4397. :key="sIndex"
  4398. class="noWorksName"
  4399. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4400. >
  4401. <el-tooltip effect="dark" :content="s.student" placement="top">
  4402. <span>{{ s.student }}</span>
  4403. </el-tooltip>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. <div
  4408. v-if="
  4409. tType &&
  4410. ((tType == 2 && sIsOpen == true) ||
  4411. tType == 1 ||
  4412. tType == 4) &&
  4413. tool.tool.indexOf(45) != -1 &&
  4414. (tool.testJson.testJson[0].answer ||
  4415. tool.testJson.testJson[0].answer === 0) &&
  4416. checkJson[toolIndex].length
  4417. "
  4418. class="xuan_right_box"
  4419. >
  4420. <div
  4421. class="tool_right_box"
  4422. v-for="(item, index) in tool.testJson.testJson"
  4423. :key="index"
  4424. >
  4425. <div class="right_box_xuan" style="margin-right: 10px">
  4426. <span>正确率</span>
  4427. <span>{{
  4428. (checkJson[toolIndex][index].right
  4429. ? checkJson[toolIndex][index].right
  4430. : 0) + "%"
  4431. }}</span>
  4432. </div>
  4433. <div style="width: calc(100% - 30px);">
  4434. <el-tooltip
  4435. effect="light"
  4436. :content="index + 1 + '、' + item.teststitle"
  4437. placement="top"
  4438. popper-class="text_tooltip"
  4439. >
  4440. <div
  4441. style="
  4442. width: calc(100% - 130px);
  4443. display: block;
  4444. white-space: nowrap;
  4445. overflow: hidden;
  4446. text-overflow: ellipsis;
  4447. word-break: break-word;
  4448. cursor: pointer;
  4449. "
  4450. >
  4451. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4452. </div>
  4453. </el-tooltip>
  4454. </div>
  4455. </div>
  4456. </div>
  4457. <div
  4458. class="xuan_right_box"
  4459. style="background: unset; padding: 0 10px; width: 91.5%"
  4460. v-if="
  4461. tType &&
  4462. ((tType == 2 && sIsOpen == true) ||
  4463. tType == 1 ||
  4464. tType == 4) &&
  4465. tool.tool.indexOf(45) != -1
  4466. "
  4467. >
  4468. <AskStatic2
  4469. v-if="
  4470. worksStudent.length &&
  4471. worksStudent[toolIndex].length > 0
  4472. "
  4473. :askJSON="tool"
  4474. :checkJson="checkJson[toolIndex]"
  4475. ></AskStatic2>
  4476. </div>
  4477. <div
  4478. v-if="
  4479. tType &&
  4480. ((tType == 2 && sIsOpen == true) ||
  4481. tType == 1 ||
  4482. tType == 4) &&
  4483. tool.tool.indexOf(45) != -1
  4484. "
  4485. class="worksBox"
  4486. >
  4487. <div
  4488. class="zuoyeYulan"
  4489. v-if="
  4490. worksStudent.length &&
  4491. worksStudent[toolIndex].length > 0
  4492. "
  4493. >
  4494. <div class="worksTop">
  4495. <div>作业预览</div>
  4496. <div
  4497. class="corOpen"
  4498. @click="contract(toolIndex)"
  4499. v-if="
  4500. (isCloseList[toolIndex].isCloseBoolean) &&
  4501. isCloseList[toolIndex].isClose == 0
  4502. "
  4503. >
  4504. 折叠
  4505. </div>
  4506. <div
  4507. class="corOpen"
  4508. @click="contract(toolIndex)"
  4509. v-if="isCloseList[toolIndex].isClose == 1"
  4510. >
  4511. 展开
  4512. </div>
  4513. </div>
  4514. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4515. </div>
  4516. <div>
  4517. <div
  4518. :id="'tool-' + toolIndex"
  4519. :style="{
  4520. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4521. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4522. }"
  4523. class="worksDetailBox"
  4524. v-if="
  4525. worksStudent.length &&
  4526. worksStudent[toolIndex].length > 0
  4527. "
  4528. >
  4529. <div
  4530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4531. :key="wIndex"
  4532. class="isWorksName2"
  4533. @click="
  4534. openTools(
  4535. 45,
  4536. toolIndex,
  4537. taskCount,
  4538. w.works,
  4539. w.sName
  4540. )
  4541. "
  4542. >
  4543. {{ w.sName }}
  4544. <img
  4545. class="deleteImg deleteImg2"
  4546. src="../../assets/deleteworks.png"
  4547. v-if="
  4548. w.userid == userid || tType == 1 || tType == 4
  4549. "
  4550. @click.stop="deleteWorks(w.wid)"
  4551. alt
  4552. />
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4557. 未提交
  4558. </div>
  4559. <div
  4560. class="noWorksS"
  4561. v-if="noWorksS && noWorksS[toolIndex].length"
  4562. >
  4563. <div
  4564. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4565. :key="sIndex"
  4566. class="noWorksName"
  4567. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4568. >
  4569. <el-tooltip effect="dark" :content="s.student" placement="top">
  4570. <span>{{ s.student }}</span>
  4571. </el-tooltip>
  4572. </div>
  4573. </div>
  4574. </div>
  4575. <div
  4576. v-if="
  4577. tType &&
  4578. ((tType == 2 && sIsOpen == true) ||
  4579. tType == 1 ||
  4580. tType == 4) &&
  4581. tool.tool.indexOf(69) != -1
  4582. "
  4583. class="worksBox"
  4584. >
  4585. <div
  4586. class="zuoyeYulan"
  4587. v-if="
  4588. worksStudent.length &&
  4589. worksStudent[toolIndex].length > 0
  4590. "
  4591. >
  4592. <div class="worksTop">
  4593. <div>作业预览</div>
  4594. <div
  4595. class="corOpen"
  4596. @click="contract(toolIndex)"
  4597. v-if="
  4598. (isCloseList[toolIndex].isCloseBoolean) &&
  4599. isCloseList[toolIndex].isClose == 0
  4600. "
  4601. >
  4602. 折叠
  4603. </div>
  4604. <div
  4605. class="corOpen"
  4606. @click="contract(toolIndex)"
  4607. v-if="isCloseList[toolIndex].isClose == 1"
  4608. >
  4609. 展开
  4610. </div>
  4611. </div>
  4612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4613. </div>
  4614. <div>
  4615. <div
  4616. :id="'tool-' + toolIndex"
  4617. :style="{
  4618. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4619. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4620. }"
  4621. class="worksDetailBox"
  4622. v-if="
  4623. worksStudent.length &&
  4624. worksStudent[toolIndex].length > 0
  4625. "
  4626. >
  4627. <div
  4628. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4629. :key="wIndex"
  4630. class="isWorksName2"
  4631. style="width: 160px;height: 65px;line-height: 65px;"
  4632. @click="
  4633. openTools(
  4634. 69,
  4635. toolIndex,
  4636. taskCount,
  4637. w.works,
  4638. w.sName,
  4639. w.wid
  4640. )
  4641. "
  4642. >
  4643. {{ w.sName }}
  4644. <img
  4645. class="deleteImg1"
  4646. src="../../assets/evaEnglish.png"
  4647. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4648. alt
  4649. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4650. />
  4651. <img
  4652. class="deleteImg deleteImg2"
  4653. src="../../assets/deleteworks.png"
  4654. v-if="
  4655. w.userid == userid || tType == 1 || tType == 4
  4656. "
  4657. @click.stop="deleteWorks(w.wid)"
  4658. alt
  4659. />
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4664. 未提交
  4665. </div>
  4666. <div
  4667. class="noWorksS"
  4668. v-if="noWorksS && noWorksS[toolIndex].length"
  4669. >
  4670. <div
  4671. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4672. :key="sIndex"
  4673. class="noWorksName"
  4674. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4675. >
  4676. <el-tooltip effect="dark" :content="s.student" placement="top">
  4677. <span>{{ s.student }}</span>
  4678. </el-tooltip>
  4679. </div>
  4680. </div>
  4681. </div>
  4682. <div
  4683. v-if="
  4684. tType &&
  4685. ((tType == 2 && sIsOpen == true) ||
  4686. tType == 1 ||
  4687. tType == 4) &&
  4688. tool.tool.indexOf(15) != -1
  4689. "
  4690. class="worksBox"
  4691. >
  4692. <div
  4693. class="zuoyeYulan"
  4694. v-if="
  4695. (worksStudent.length &&
  4696. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4697. "
  4698. >
  4699. <div class="worksTop">
  4700. <div>作业预览</div>
  4701. <div
  4702. class="corOpen"
  4703. @click="contract(toolIndex)"
  4704. v-if="
  4705. (isCloseList[toolIndex].isCloseBoolean) &&
  4706. isCloseList[toolIndex].isClose == 0
  4707. "
  4708. >
  4709. 折叠
  4710. </div>
  4711. <div
  4712. class="corOpen"
  4713. @click="contract(toolIndex)"
  4714. v-if="isCloseList[toolIndex].isClose == 1"
  4715. >
  4716. 展开
  4717. </div>
  4718. </div>
  4719. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4720. </div>
  4721. <div
  4722. class="group_workBox"
  4723. v-for="(g, gindex) in courseGroup.group"
  4724. :key="gindex"
  4725. >
  4726. <div class="group_box">
  4727. <div class="group_title">
  4728. <el-tooltip
  4729. class="item"
  4730. effect="light"
  4731. :content="g.name"
  4732. placement="top"
  4733. >
  4734. <div class="group_name">{{ g.name }}</div>
  4735. </el-tooltip>
  4736. </div>
  4737. <div
  4738. class="group_work"
  4739. v-if="
  4740. g.works &&
  4741. g.works.length &&
  4742. g.works[toolIndex].length
  4743. "
  4744. >
  4745. <div
  4746. class="works"
  4747. v-for="(w, wIndex) in g.works[toolIndex]"
  4748. :key="wIndex"
  4749. >
  4750. <div
  4751. class="workImg"
  4752. style="
  4753. border-radius: 15px;
  4754. box-shadow: 0px 0px 5px 5px #eee;
  4755. "
  4756. >
  4757. <div
  4758. class="answerBg"
  4759. style="border-radius: 15px 15px 0 0"
  4760. @click="
  4761. commentOther(w, toolIndex, wIndex, null, g.id)
  4762. "
  4763. >
  4764. <div class="answerContent">
  4765. {{ JSON.parse(w.works)[0].answer }}
  4766. </div>
  4767. <div
  4768. class="answerScore"
  4769. v-if="w.score"
  4770. @click.stop="openScore(w)"
  4771. :class="{
  4772. rightW:
  4773. w.userid == userid ||
  4774. tType == 1 ||
  4775. tType == 4,
  4776. }"
  4777. >
  4778. {{ JSON.parse(w.score).wScore }}分
  4779. </div>
  4780. <div
  4781. class="answerScore"
  4782. @click.stop="openScore(w)"
  4783. v-else-if="courseDetail.userid == userid"
  4784. :class="{
  4785. rightW:
  4786. w.userid == userid ||
  4787. tType == 1 ||
  4788. tType == 4,
  4789. }"
  4790. >
  4791. 评分
  4792. </div>
  4793. <img
  4794. class="deleteImg"
  4795. src="../../assets/deleteworks.png"
  4796. v-if="
  4797. w.userid == userid ||
  4798. tType == 1 ||
  4799. tType == 4
  4800. "
  4801. @click.stop="deleteWorks(w.wid)"
  4802. alt
  4803. />
  4804. </div>
  4805. <div class="comment">
  4806. <div class="worksName">
  4807. <div>{{ w.sName }}</div>
  4808. </div>
  4809. <div class="commentList">
  4810. <div
  4811. class="commentImg"
  4812. @click="
  4813. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4814. "
  4815. >
  4816. <img
  4817. :src="w.isLikes == true ? likes : noLikes"
  4818. alt=""
  4819. />
  4820. </div>
  4821. <div>{{ w.likesCount }}</div>
  4822. </div>
  4823. <div
  4824. class="commentList"
  4825. style="margin-right: 15px"
  4826. >
  4827. <div
  4828. class="commentImg"
  4829. @click="
  4830. commentOther(
  4831. w,
  4832. toolIndex,
  4833. wIndex,
  4834. null,
  4835. g.id
  4836. )
  4837. "
  4838. >
  4839. <img
  4840. src="../../assets/icon/comment/comment.png"
  4841. alt=""
  4842. />
  4843. </div>
  4844. <div>{{ w.commentCount }}</div>
  4845. </div>
  4846. </div>
  4847. </div>
  4848. </div>
  4849. </div>
  4850. <div class="group_work" v-else>暂无提交作业</div>
  4851. </div>
  4852. </div>
  4853. <div
  4854. :id="'tool-' + toolIndex"
  4855. :style="{
  4856. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4857. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4858. }"
  4859. class="worksDetailBox"
  4860. v-if="
  4861. worksStudent.length &&
  4862. worksStudent[toolIndex].length > 0
  4863. "
  4864. >
  4865. <div
  4866. class="works"
  4867. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4868. :key="wIndex"
  4869. >
  4870. <div
  4871. class="workImg"
  4872. style="
  4873. border-radius: 15px;
  4874. box-shadow: 0px 0px 5px 5px #eee;
  4875. "
  4876. >
  4877. <!-- <img
  4878. src="../../assets/icon/works/noImg.png"
  4879. @click="openTools(15, toolIndex, taskCount, w.works)"
  4880. alt=""
  4881. />-->
  4882. <div
  4883. class="answerBg"
  4884. style="border-radius: 15px 15px 0 0"
  4885. @click="commentOther(w, toolIndex, wIndex)"
  4886. >
  4887. <!-- <div>{{ w.sName }}</div> -->
  4888. <div class="answerContent">
  4889. {{ JSON.parse(w.works)[0].answer }}
  4890. </div>
  4891. <div
  4892. class="answerScore"
  4893. v-if="w.score"
  4894. @click.stop="openScore(w)"
  4895. :class="{
  4896. rightW:
  4897. w.userid == userid ||
  4898. tType == 1 ||
  4899. tType == 4,
  4900. }"
  4901. >
  4902. {{ JSON.parse(w.score).wScore }}分
  4903. </div>
  4904. <div
  4905. class="answerScore"
  4906. @click.stop="openScore(w)"
  4907. v-else-if="courseDetail.userid == userid"
  4908. :class="{
  4909. rightW:
  4910. w.userid == userid ||
  4911. tType == 1 ||
  4912. tType == 4,
  4913. }"
  4914. >
  4915. 评分
  4916. </div>
  4917. <img
  4918. class="deleteImg"
  4919. src="../../assets/deleteworks.png"
  4920. v-if="
  4921. w.userid == userid || tType == 1 || tType == 4
  4922. "
  4923. @click.stop="deleteWorks(w.wid)"
  4924. alt
  4925. />
  4926. </div>
  4927. <div class="comment">
  4928. <div class="worksName">
  4929. <div>{{ w.sName }}</div>
  4930. </div>
  4931. <div class="commentList">
  4932. <div
  4933. class="commentImg"
  4934. @click="
  4935. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4936. "
  4937. >
  4938. <img
  4939. :src="w.isLikes == true ? likes : noLikes"
  4940. alt=""
  4941. />
  4942. </div>
  4943. <div>{{ w.likesCount }}</div>
  4944. </div>
  4945. <div class="commentList" style="margin-right: 15px">
  4946. <div
  4947. class="commentImg"
  4948. @click="commentOther(w, toolIndex, wIndex)"
  4949. >
  4950. <img
  4951. src="../../assets/icon/comment/comment.png"
  4952. alt=""
  4953. />
  4954. </div>
  4955. <div>{{ w.commentCount }}</div>
  4956. </div>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. </div>
  4961. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4962. 未提交
  4963. </div>
  4964. <div
  4965. class="noWorksS"
  4966. v-if="noWorksS && noWorksS[toolIndex].length"
  4967. >
  4968. <div
  4969. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4970. :key="sIndex"
  4971. class="noWorksName"
  4972. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4973. >
  4974. <el-tooltip effect="dark" :content="s.student" placement="top">
  4975. <span>{{ s.student }}</span>
  4976. </el-tooltip>
  4977. </div>
  4978. </div>
  4979. </div>
  4980. <div
  4981. v-if="
  4982. tType &&
  4983. ((tType == 2 && sIsOpen == true) ||
  4984. tType == 1 ||
  4985. tType == 4) &&
  4986. tool.tool.indexOf(1) != -1
  4987. "
  4988. class="worksBox"
  4989. >
  4990. <div
  4991. class="zuoyeYulan"
  4992. v-if="
  4993. (worksStudent.length &&
  4994. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4995. "
  4996. >
  4997. <div class="worksTop">
  4998. <div>作业预览</div>
  4999. <div
  5000. class="corOpen"
  5001. @click="contract(toolIndex)"
  5002. v-if="
  5003. (isCloseList[toolIndex].isCloseBoolean) &&
  5004. isCloseList[toolIndex].isClose == 0
  5005. "
  5006. >
  5007. 折叠
  5008. </div>
  5009. <div
  5010. class="corOpen"
  5011. @click="contract(toolIndex)"
  5012. v-if="isCloseList[toolIndex].isClose == 1"
  5013. >
  5014. 展开
  5015. </div>
  5016. </div>
  5017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5018. </div>
  5019. <div
  5020. class="group_workBox"
  5021. v-for="(g, gindex) in courseGroup.group"
  5022. :key="gindex"
  5023. >
  5024. <div class="group_box">
  5025. <div class="group_title">
  5026. <el-tooltip
  5027. class="item"
  5028. effect="light"
  5029. :content="g.name"
  5030. placement="top"
  5031. >
  5032. <div class="group_name">{{ g.name }}</div>
  5033. </el-tooltip>
  5034. </div>
  5035. <div
  5036. class="group_work"
  5037. v-if="
  5038. g.works &&
  5039. g.works.length &&
  5040. g.works[toolIndex].length
  5041. "
  5042. >
  5043. <div
  5044. class="works"
  5045. style="
  5046. width: 200px;
  5047. height: 140px;
  5048. margin: 10px 10px 10px 0;
  5049. border-radius: 15px;
  5050. box-shadow: 0 0 6px 1px #dfdada;
  5051. "
  5052. v-for="(w, wIndex) in g.works[toolIndex]"
  5053. :key="wIndex"
  5054. :class="w.type == 1 ? 'isTypeOne' : ''"
  5055. >
  5056. <div class="workImg">
  5057. <img
  5058. :src="w.works"
  5059. @click="previewImg(w.works,w)"
  5060. alt
  5061. />
  5062. <div
  5063. class="answerScore"
  5064. v-if="w.score"
  5065. @click.stop="openScore(w)"
  5066. :class="{
  5067. rightW:
  5068. w.userid == userid ||
  5069. tType == 1 ||
  5070. tType == 4,
  5071. }"
  5072. >
  5073. {{ JSON.parse(w.score).wScore }}分
  5074. </div>
  5075. <div
  5076. class="answerScore"
  5077. @click.stop="openScore(w)"
  5078. v-else-if="courseDetail.userid == userid"
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid ||
  5082. tType == 1 ||
  5083. tType == 4,
  5084. }"
  5085. >
  5086. 评分
  5087. </div>
  5088. <img
  5089. class="deleteImg"
  5090. src="../../assets/deleteworks.png"
  5091. v-if="
  5092. w.userid == userid || tType == 1 || tType == 4
  5093. "
  5094. @click.stop="deleteWorks(w.wid)"
  5095. alt
  5096. />
  5097. </div>
  5098. <div class="comment" style="min-width: 200px">
  5099. <div class="worksName">
  5100. <div>{{ w.sName }}</div>
  5101. </div>
  5102. <div class="commentList">
  5103. <div class="commentList">
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5108. "
  5109. >
  5110. <img
  5111. :src="w.isLikes == true ? likes : noLikes"
  5112. alt=""
  5113. />
  5114. </div>
  5115. <div>{{ w.likesCount }}</div>
  5116. </div>
  5117. <div
  5118. class="commentList"
  5119. style="margin-right: 15px"
  5120. >
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. commentOther(
  5125. w,
  5126. toolIndex,
  5127. wIndex,
  5128. null,
  5129. g.id
  5130. )
  5131. "
  5132. >
  5133. <img
  5134. src="../../assets/icon/comment/comment.png"
  5135. alt=""
  5136. />
  5137. </div>
  5138. <div>{{ w.commentCount }}</div>
  5139. </div>
  5140. </div>
  5141. </div>
  5142. </div>
  5143. </div>
  5144. <div class="group_work" v-else>暂无提交作业</div>
  5145. </div>
  5146. </div>
  5147. <div
  5148. :id="'tool-' + toolIndex"
  5149. :style="{
  5150. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5151. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5152. }"
  5153. class="worksDetailBox"
  5154. v-if="
  5155. worksStudent.length &&
  5156. worksStudent[toolIndex].length > 0
  5157. "
  5158. >
  5159. <div
  5160. class="works"
  5161. style="
  5162. width: 200px;
  5163. height: 140px;
  5164. margin: 10px 10px 10px 0;
  5165. border-radius: 15px;
  5166. box-shadow: 0 0 6px 1px #dfdada;
  5167. "
  5168. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5169. :key="wIndex"
  5170. >
  5171. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5172. <div class="workImg">
  5173. <img
  5174. :src="w.works"
  5175. @click="previewImg(w.works,w)"
  5176. alt
  5177. />
  5178. <div
  5179. class="answerScore"
  5180. v-if="w.score"
  5181. @click.stop="openScore(w)"
  5182. :class="{
  5183. rightW:
  5184. w.userid == userid || tType == 1 || tType == 4,
  5185. }"
  5186. >
  5187. {{ JSON.parse(w.score).wScore }}分
  5188. </div>
  5189. <div
  5190. class="answerScore"
  5191. @click.stop="openScore(w)"
  5192. v-else-if="courseDetail.userid == userid"
  5193. :class="{
  5194. rightW:
  5195. w.userid == userid || tType == 1 || tType == 4,
  5196. }"
  5197. >
  5198. 评分
  5199. </div>
  5200. <img
  5201. class="deleteImg"
  5202. src="../../assets/deleteworks.png"
  5203. v-if="
  5204. w.userid == userid || tType == 1 || tType == 4
  5205. "
  5206. @click.stop="deleteWorks(w.wid)"
  5207. alt
  5208. />
  5209. </div>
  5210. <div class="comment" style="min-width: 200px">
  5211. <div class="worksName">
  5212. <div>{{ w.sName }}</div>
  5213. </div>
  5214. <div class="commentList">
  5215. <div class="commentList">
  5216. <div
  5217. class="commentImg"
  5218. @click="
  5219. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5220. "
  5221. >
  5222. <img
  5223. :src="w.isLikes == true ? likes : noLikes"
  5224. alt=""
  5225. />
  5226. </div>
  5227. <div>{{ w.likesCount }}</div>
  5228. </div>
  5229. <div class="commentList" style="margin-right: 15px">
  5230. <div
  5231. class="commentImg"
  5232. @click="commentOther(w, toolIndex, wIndex)"
  5233. >
  5234. <img
  5235. src="../../assets/icon/comment/comment.png"
  5236. alt=""
  5237. />
  5238. </div>
  5239. <div>{{ w.commentCount }}</div>
  5240. </div>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. </div>
  5245. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5246. 未提交
  5247. </div>
  5248. <div
  5249. class="noWorksS"
  5250. v-if="noWorksS && noWorksS[toolIndex].length"
  5251. >
  5252. <div
  5253. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5254. :key="sIndex"
  5255. class="noWorksName"
  5256. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5257. >
  5258. <el-tooltip effect="dark" :content="s.student" placement="top">
  5259. <span>{{ s.student }}</span>
  5260. </el-tooltip>
  5261. </div>
  5262. </div>
  5263. </div>
  5264. <div
  5265. v-if="
  5266. tType &&
  5267. ((tType == 2 && sIsOpen == true) ||
  5268. tType == 1 ||
  5269. tType == 4) &&
  5270. tool.tool.indexOf(3) != -1
  5271. "
  5272. class="worksBox"
  5273. >
  5274. <div
  5275. class="zuoyeYulan"
  5276. v-if="
  5277. (worksStudent.length &&
  5278. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5279. "
  5280. >
  5281. <div class="worksTop">
  5282. <div>作业预览</div>
  5283. <div
  5284. class="corOpen"
  5285. @click="contract(toolIndex)"
  5286. v-if="
  5287. (isCloseList[toolIndex].isCloseBoolean) &&
  5288. isCloseList[toolIndex].isClose == 0
  5289. "
  5290. >
  5291. 折叠
  5292. </div>
  5293. <div
  5294. class="corOpen"
  5295. @click="contract(toolIndex)"
  5296. v-if="isCloseList[toolIndex].isClose == 1"
  5297. >
  5298. 展开
  5299. </div>
  5300. </div>
  5301. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5302. </div>
  5303. <div
  5304. class="group_workBox"
  5305. v-for="(g, gindex) in courseGroup.group"
  5306. :key="gindex"
  5307. >
  5308. <div class="group_box">
  5309. <div class="group_title">
  5310. <el-tooltip
  5311. class="item"
  5312. effect="light"
  5313. :content="g.name"
  5314. placement="top"
  5315. >
  5316. <div class="group_name">{{ g.name }}</div>
  5317. </el-tooltip>
  5318. </div>
  5319. <div
  5320. class="group_work"
  5321. v-if="
  5322. g.works &&
  5323. g.works.length &&
  5324. g.works[toolIndex].length
  5325. "
  5326. >
  5327. <div
  5328. class="works"
  5329. style="
  5330. width: 200px;
  5331. height: 140px;
  5332. margin: 10px 10px 10px 0;
  5333. border-radius: 15px;
  5334. box-shadow: 0 0 6px 1px #dfdada;
  5335. "
  5336. v-for="(w, wIndex) in g.works[toolIndex]"
  5337. :key="wIndex"
  5338. :class="w.type == 1 ? 'isTypeOne' : ''"
  5339. >
  5340. <div class="workImg">
  5341. <img
  5342. :src="w.works"
  5343. @click="previewImg(w.works,w)"
  5344. alt
  5345. />
  5346. <div
  5347. class="answerScore"
  5348. v-if="w.score"
  5349. @click.stop="openScore(w)"
  5350. :class="{
  5351. rightW:
  5352. w.userid == userid ||
  5353. tType == 1 ||
  5354. tType == 4,
  5355. }"
  5356. >
  5357. {{ JSON.parse(w.score).wScore }}分
  5358. </div>
  5359. <div
  5360. class="answerScore"
  5361. @click.stop="openScore(w)"
  5362. v-else-if="courseDetail.userid == userid"
  5363. :class="{
  5364. rightW:
  5365. w.userid == userid ||
  5366. tType == 1 ||
  5367. tType == 4,
  5368. }"
  5369. >
  5370. 评分
  5371. </div>
  5372. <img
  5373. class="deleteImg"
  5374. src="../../assets/deleteworks.png"
  5375. v-if="
  5376. w.userid == userid || tType == 1 || tType == 4
  5377. "
  5378. @click.stop="deleteWorks(w.wid)"
  5379. alt
  5380. />
  5381. </div>
  5382. <div class="comment" style="min-width: 200px">
  5383. <div class="worksName">
  5384. <div>{{ w.sName }}</div>
  5385. </div>
  5386. <div class="commentList">
  5387. <div class="commentList">
  5388. <div
  5389. class="commentImg"
  5390. @click="
  5391. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5392. "
  5393. >
  5394. <img
  5395. :src="w.isLikes == true ? likes : noLikes"
  5396. alt=""
  5397. />
  5398. </div>
  5399. <div>{{ w.likesCount }}</div>
  5400. </div>
  5401. <div
  5402. class="commentList"
  5403. style="margin-right: 15px"
  5404. >
  5405. <div
  5406. class="commentImg"
  5407. @click="
  5408. commentOther(
  5409. w,
  5410. toolIndex,
  5411. wIndex,
  5412. null,
  5413. g.id
  5414. )
  5415. "
  5416. >
  5417. <img
  5418. src="../../assets/icon/comment/comment.png"
  5419. alt=""
  5420. />
  5421. </div>
  5422. <div>{{ w.commentCount }}</div>
  5423. </div>
  5424. </div>
  5425. </div>
  5426. </div>
  5427. </div>
  5428. <div class="group_work" v-else>暂无提交作业</div>
  5429. </div>
  5430. </div>
  5431. <div
  5432. :id="'tool-' + toolIndex"
  5433. :style="{
  5434. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5435. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5436. }"
  5437. class="worksDetailBox"
  5438. v-if="
  5439. worksStudent.length &&
  5440. worksStudent[toolIndex].length > 0
  5441. "
  5442. >
  5443. <div
  5444. class="works"
  5445. style="
  5446. width: 200px;
  5447. height: 140px;
  5448. margin: 10px 10px 10px 0;
  5449. border-radius: 15px;
  5450. box-shadow: 0 0 6px 1px #dfdada;
  5451. "
  5452. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5453. :key="wIndex"
  5454. >
  5455. <!-- @click="previewImg(w.works)" -->
  5456. <div class="workImg">
  5457. <img
  5458. :src="w.works"
  5459. @click="previewImg(w.works,w)"
  5460. alt
  5461. />
  5462. <div
  5463. class="answerScore"
  5464. v-if="w.score"
  5465. @click.stop="openScore(w)"
  5466. :class="{
  5467. rightW:
  5468. w.userid == userid || tType == 1 || tType == 4,
  5469. }"
  5470. >
  5471. {{ JSON.parse(w.score).wScore }}分
  5472. </div>
  5473. <div
  5474. class="answerScore"
  5475. @click.stop="openScore(w)"
  5476. v-else-if="courseDetail.userid == userid"
  5477. :class="{
  5478. rightW:
  5479. w.userid == userid || tType == 1 || tType == 4,
  5480. }"
  5481. >
  5482. 评分
  5483. </div>
  5484. <img
  5485. class="deleteImg"
  5486. src="../../assets/deleteworks.png"
  5487. v-if="
  5488. w.userid == userid || tType == 1 || tType == 4
  5489. "
  5490. @click.stop="deleteWorks(w.wid)"
  5491. alt
  5492. />
  5493. </div>
  5494. <div class="comment" style="min-width: 200px">
  5495. <div class="worksName">
  5496. <div>{{ w.sName }}</div>
  5497. </div>
  5498. <div class="commentList">
  5499. <div class="commentList">
  5500. <div
  5501. class="commentImg"
  5502. @click="
  5503. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5504. "
  5505. >
  5506. <img
  5507. :src="w.isLikes == true ? likes : noLikes"
  5508. alt=""
  5509. />
  5510. </div>
  5511. <div>{{ w.likesCount }}</div>
  5512. </div>
  5513. <div class="commentList" style="margin-right: 15px">
  5514. <div
  5515. class="commentImg"
  5516. @click="commentOther(w, toolIndex, wIndex)"
  5517. >
  5518. <img
  5519. src="../../assets/icon/comment/comment.png"
  5520. alt=""
  5521. />
  5522. </div>
  5523. <div>{{ w.commentCount }}</div>
  5524. </div>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. </div>
  5529. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5530. 未提交
  5531. </div>
  5532. <div
  5533. class="noWorksS"
  5534. v-if="noWorksS && noWorksS[toolIndex].length"
  5535. >
  5536. <div
  5537. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5538. :key="sIndex"
  5539. class="noWorksName"
  5540. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5541. >
  5542. <el-tooltip effect="dark" :content="s.student" placement="top">
  5543. <span>{{ s.student }}</span>
  5544. </el-tooltip>
  5545. </div>
  5546. </div>
  5547. </div>
  5548. <div
  5549. v-if="
  5550. tType &&
  5551. ((tType == 2 && sIsOpen == true) ||
  5552. tType == 1 ||
  5553. tType == 4) &&
  5554. tool.tool.indexOf(6) != -1
  5555. "
  5556. class="worksBox"
  5557. >
  5558. <div
  5559. class="zuoyeYulan"
  5560. v-if="
  5561. (worksStudent.length &&
  5562. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5563. "
  5564. >
  5565. <div class="worksTop">
  5566. <div>作业预览</div>
  5567. <div
  5568. class="corOpen"
  5569. @click="contract(toolIndex)"
  5570. v-if="
  5571. (isCloseList[toolIndex].isCloseBoolean) &&
  5572. isCloseList[toolIndex].isClose == 0
  5573. "
  5574. >
  5575. 折叠
  5576. </div>
  5577. <div
  5578. class="corOpen"
  5579. @click="contract(toolIndex)"
  5580. v-if="isCloseList[toolIndex].isClose == 1"
  5581. >
  5582. 展开
  5583. </div>
  5584. </div>
  5585. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5586. </div>
  5587. <div
  5588. class="group_workBox"
  5589. v-for="(g, gindex) in courseGroup.group"
  5590. :key="gindex"
  5591. >
  5592. <div class="group_box">
  5593. <div class="group_title">
  5594. <el-tooltip
  5595. class="item"
  5596. effect="light"
  5597. :content="g.name"
  5598. placement="top"
  5599. >
  5600. <div class="group_name">{{ g.name }}</div>
  5601. </el-tooltip>
  5602. </div>
  5603. <div
  5604. class="group_work"
  5605. v-if="
  5606. g.works &&
  5607. g.works.length &&
  5608. g.works[toolIndex].length
  5609. "
  5610. >
  5611. <div
  5612. class="works"
  5613. style="
  5614. width: 200px;
  5615. height: 140px;
  5616. margin: 10px 10px 10px 0;
  5617. border-radius: 15px;
  5618. box-shadow: 0 0 6px 1px #dfdada;
  5619. "
  5620. v-for="(w, wIndex) in g.works[toolIndex]"
  5621. :key="wIndex"
  5622. :class="w.type == 1 ? 'isTypeOne' : ''"
  5623. >
  5624. <div class="workImg">
  5625. <img
  5626. :src="w.works"
  5627. @click="previewImg(w.works,w)"
  5628. alt
  5629. />
  5630. <div
  5631. class="answerScore"
  5632. v-if="w.score"
  5633. @click.stop="openScore(w)"
  5634. :class="{
  5635. rightW:
  5636. w.userid == userid ||
  5637. tType == 1 ||
  5638. tType == 4,
  5639. }"
  5640. >
  5641. {{ JSON.parse(w.score).wScore }}分
  5642. </div>
  5643. <div
  5644. class="answerScore"
  5645. @click.stop="openScore(w)"
  5646. v-else-if="courseDetail.userid == userid"
  5647. :class="{
  5648. rightW:
  5649. w.userid == userid ||
  5650. tType == 1 ||
  5651. tType == 4,
  5652. }"
  5653. >
  5654. 评分
  5655. </div>
  5656. <img
  5657. class="deleteImg"
  5658. src="../../assets/deleteworks.png"
  5659. v-if="
  5660. w.userid == userid || tType == 1 || tType == 4
  5661. "
  5662. @click.stop="deleteWorks(w.wid)"
  5663. alt
  5664. />
  5665. </div>
  5666. <div class="comment" style="min-width: 200px">
  5667. <div class="worksName">
  5668. <div>{{ w.sName }}</div>
  5669. </div>
  5670. <div class="commentList">
  5671. <div class="commentList">
  5672. <div
  5673. class="commentImg"
  5674. @click="
  5675. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5676. "
  5677. >
  5678. <img
  5679. :src="w.isLikes == true ? likes : noLikes"
  5680. alt=""
  5681. />
  5682. </div>
  5683. <div>{{ w.likesCount }}</div>
  5684. </div>
  5685. <div
  5686. class="commentList"
  5687. style="margin-right: 15px"
  5688. >
  5689. <div
  5690. class="commentImg"
  5691. @click="
  5692. commentOther(
  5693. w,
  5694. toolIndex,
  5695. wIndex,
  5696. null,
  5697. g.id
  5698. )
  5699. "
  5700. >
  5701. <img
  5702. src="../../assets/icon/comment/comment.png"
  5703. alt=""
  5704. />
  5705. </div>
  5706. <div>{{ w.commentCount }}</div>
  5707. </div>
  5708. </div>
  5709. </div>
  5710. </div>
  5711. </div>
  5712. <div class="group_work" v-else>暂无提交作业</div>
  5713. </div>
  5714. </div>
  5715. <div
  5716. :id="'tool-' + toolIndex"
  5717. :style="{
  5718. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5719. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5720. }"
  5721. class="worksDetailBox"
  5722. v-if="
  5723. worksStudent.length &&
  5724. worksStudent[toolIndex].length > 0
  5725. "
  5726. >
  5727. <div
  5728. class="works"
  5729. style="
  5730. width: 200px;
  5731. height: 140px;
  5732. margin: 10px 10px 10px 0;
  5733. border-radius: 15px;
  5734. box-shadow: 0 0 6px 1px #dfdada;
  5735. "
  5736. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5737. :key="wIndex"
  5738. >
  5739. <!-- @click="previewImg(w.works)" -->
  5740. <div class="workImg">
  5741. <img
  5742. :src="w.works"
  5743. @click="previewImg(w.works,w)"
  5744. alt
  5745. />
  5746. <div
  5747. class="answerScore"
  5748. v-if="w.score"
  5749. @click.stop="openScore(w)"
  5750. :class="{
  5751. rightW:
  5752. w.userid == userid || tType == 1 || tType == 4,
  5753. }"
  5754. >
  5755. {{ JSON.parse(w.score).wScore }}分
  5756. </div>
  5757. <div
  5758. class="answerScore"
  5759. @click.stop="openScore(w)"
  5760. v-else-if="courseDetail.userid == userid"
  5761. :class="{
  5762. rightW:
  5763. w.userid == userid || tType == 1 || tType == 4,
  5764. }"
  5765. >
  5766. 评分
  5767. </div>
  5768. <img
  5769. class="deleteImg"
  5770. src="../../assets/deleteworks.png"
  5771. v-if="
  5772. w.userid == userid || tType == 1 || tType == 4
  5773. "
  5774. @click.stop="deleteWorks(w.wid)"
  5775. alt
  5776. />
  5777. </div>
  5778. <div class="comment" style="min-width: 200px">
  5779. <div class="worksName">
  5780. <div>{{ w.sName }}</div>
  5781. </div>
  5782. <div class="commentList">
  5783. <div class="commentList">
  5784. <div
  5785. class="commentImg"
  5786. @click="
  5787. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5788. "
  5789. >
  5790. <img
  5791. :src="w.isLikes == true ? likes : noLikes"
  5792. alt=""
  5793. />
  5794. </div>
  5795. <div>{{ w.likesCount }}</div>
  5796. </div>
  5797. <div class="commentList" style="margin-right: 15px">
  5798. <div
  5799. class="commentImg"
  5800. @click="commentOther(w, toolIndex, wIndex)"
  5801. >
  5802. <img
  5803. src="../../assets/icon/comment/comment.png"
  5804. alt=""
  5805. />
  5806. </div>
  5807. <div>{{ w.commentCount }}</div>
  5808. </div>
  5809. </div>
  5810. </div>
  5811. </div>
  5812. </div>
  5813. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5814. 未提交
  5815. </div>
  5816. <div
  5817. class="noWorksS"
  5818. v-if="noWorksS && noWorksS[toolIndex].length"
  5819. >
  5820. <div
  5821. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5822. :key="sIndex"
  5823. class="noWorksName"
  5824. >
  5825. <el-tooltip effect="dark" :content="s.student" placement="top">
  5826. <span>{{ s.student }}</span>
  5827. </el-tooltip>
  5828. </div>
  5829. </div>
  5830. </div>
  5831. <div
  5832. v-if="
  5833. tType &&
  5834. ((tType == 2 && sIsOpen == true) ||
  5835. tType == 1 ||
  5836. tType == 4) &&
  5837. tool.tool.indexOf(7) != -1
  5838. "
  5839. class="worksBox"
  5840. >
  5841. <div
  5842. class="zuoyeYulan"
  5843. v-if="
  5844. (worksStudent.length &&
  5845. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5846. "
  5847. >
  5848. <div class="worksTop">
  5849. <div>作业预览</div>
  5850. <div
  5851. class="corOpen"
  5852. @click="contract(toolIndex)"
  5853. v-if="
  5854. (isCloseList[toolIndex].isCloseBoolean) &&
  5855. isCloseList[toolIndex].isClose == 0
  5856. "
  5857. >
  5858. 折叠
  5859. </div>
  5860. <div
  5861. class="corOpen"
  5862. @click="contract(toolIndex)"
  5863. v-if="isCloseList[toolIndex].isClose == 1"
  5864. >
  5865. 展开
  5866. </div>
  5867. </div>
  5868. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5869. </div>
  5870. <div
  5871. class="group_workBox"
  5872. v-for="(g, gindex) in courseGroup.group"
  5873. :key="gindex"
  5874. >
  5875. <div class="group_box">
  5876. <div class="group_title">
  5877. <el-tooltip
  5878. class="item"
  5879. effect="light"
  5880. :content="g.name"
  5881. placement="top"
  5882. >
  5883. <div class="group_name">{{ g.name }}</div>
  5884. </el-tooltip>
  5885. </div>
  5886. <div
  5887. class="group_work"
  5888. v-if="
  5889. g.works &&
  5890. g.works.length &&
  5891. g.works[toolIndex].length
  5892. "
  5893. >
  5894. <div
  5895. class="works"
  5896. style="
  5897. width: 200px;
  5898. height: 140px;
  5899. margin: 10px 10px 10px 0;
  5900. border-radius: 15px;
  5901. box-shadow: 0 0 6px 1px #dfdada;
  5902. "
  5903. v-for="(w, wIndex) in g.works[toolIndex]"
  5904. :key="wIndex"
  5905. :class="w.type == 1 ? 'isTypeOne' : ''"
  5906. >
  5907. <div class="workImg">
  5908. <img
  5909. :src="w.works"
  5910. @click="previewImg(w.works,w)"
  5911. alt
  5912. />
  5913. <div
  5914. class="answerScore"
  5915. v-if="w.score"
  5916. @click.stop="openScore(w)"
  5917. :class="{
  5918. rightW:
  5919. w.userid == userid ||
  5920. tType == 1 ||
  5921. tType == 4,
  5922. }"
  5923. >
  5924. {{ JSON.parse(w.score).wScore }}分
  5925. </div>
  5926. <div
  5927. class="answerScore"
  5928. @click.stop="openScore(w)"
  5929. v-else-if="courseDetail.userid == userid"
  5930. :class="{
  5931. rightW:
  5932. w.userid == userid ||
  5933. tType == 1 ||
  5934. tType == 4,
  5935. }"
  5936. >
  5937. 评分
  5938. </div>
  5939. <img
  5940. class="deleteImg"
  5941. src="../../assets/deleteworks.png"
  5942. v-if="
  5943. w.userid == userid || tType == 1 || tType == 4
  5944. "
  5945. @click.stop="deleteWorks(w.wid)"
  5946. alt
  5947. />
  5948. </div>
  5949. <div class="comment" style="min-width: 200px">
  5950. <div class="worksName">
  5951. <div>{{ w.sName }}</div>
  5952. </div>
  5953. <div class="commentList">
  5954. <div class="commentList">
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5959. "
  5960. >
  5961. <img
  5962. :src="w.isLikes == true ? likes : noLikes"
  5963. alt=""
  5964. />
  5965. </div>
  5966. <div>{{ w.likesCount }}</div>
  5967. </div>
  5968. <div
  5969. class="commentList"
  5970. style="margin-right: 15px"
  5971. >
  5972. <div
  5973. class="commentImg"
  5974. @click="
  5975. commentOther(
  5976. w,
  5977. toolIndex,
  5978. wIndex,
  5979. null,
  5980. g.id
  5981. )
  5982. "
  5983. >
  5984. <img
  5985. src="../../assets/icon/comment/comment.png"
  5986. alt=""
  5987. />
  5988. </div>
  5989. <div>{{ w.commentCount }}</div>
  5990. </div>
  5991. </div>
  5992. </div>
  5993. </div>
  5994. </div>
  5995. <div class="group_work" v-else>暂无提交作业</div>
  5996. </div>
  5997. </div>
  5998. <div
  5999. :id="'tool-' + toolIndex"
  6000. :style="{
  6001. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6002. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6003. }"
  6004. class="worksDetailBox"
  6005. v-if="
  6006. worksStudent.length &&
  6007. worksStudent[toolIndex].length > 0
  6008. "
  6009. >
  6010. <div
  6011. class="works"
  6012. style="
  6013. width: 200px;
  6014. height: 140px;
  6015. margin: 10px 10px 10px 0;
  6016. border-radius: 15px;
  6017. box-shadow: 0 0 6px 1px #dfdada;
  6018. "
  6019. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6020. :key="wIndex"
  6021. >
  6022. <!-- @click="previewImg(w.works)" -->
  6023. <div class="workImg">
  6024. <img
  6025. :src="w.works"
  6026. @click="previewImg(w.works,w)"
  6027. alt
  6028. />
  6029. <div
  6030. class="answerScore"
  6031. v-if="w.score"
  6032. @click.stop="openScore(w)"
  6033. :class="{
  6034. rightW:
  6035. w.userid == userid || tType == 1 || tType == 4,
  6036. }"
  6037. >
  6038. {{ JSON.parse(w.score).wScore }}分
  6039. </div>
  6040. <div
  6041. class="answerScore"
  6042. @click.stop="openScore(w)"
  6043. v-else-if="courseDetail.userid == userid"
  6044. :class="{
  6045. rightW:
  6046. w.userid == userid || tType == 1 || tType == 4,
  6047. }"
  6048. >
  6049. 评分
  6050. </div>
  6051. <img
  6052. class="deleteImg"
  6053. src="../../assets/deleteworks.png"
  6054. v-if="
  6055. w.userid == userid || tType == 1 || tType == 4
  6056. "
  6057. @click.stop="deleteWorks(w.wid)"
  6058. alt
  6059. />
  6060. </div>
  6061. <div class="comment" style="min-width: 200px">
  6062. <div class="worksName">
  6063. <div>{{ w.sName }}</div>
  6064. </div>
  6065. <div class="commentList">
  6066. <div class="commentList">
  6067. <div
  6068. class="commentImg"
  6069. @click="
  6070. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6071. "
  6072. >
  6073. <img
  6074. :src="w.isLikes == true ? likes : noLikes"
  6075. alt=""
  6076. />
  6077. </div>
  6078. <div>{{ w.likesCount }}</div>
  6079. </div>
  6080. <div class="commentList" style="margin-right: 15px">
  6081. <div
  6082. class="commentImg"
  6083. @click="commentOther(w, toolIndex, wIndex)"
  6084. >
  6085. <img
  6086. src="../../assets/icon/comment/comment.png"
  6087. alt=""
  6088. />
  6089. </div>
  6090. <div>{{ w.commentCount }}</div>
  6091. </div>
  6092. </div>
  6093. </div>
  6094. </div>
  6095. </div>
  6096. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6097. 未提交
  6098. </div>
  6099. <div
  6100. class="noWorksS"
  6101. v-if="noWorksS && noWorksS[toolIndex].length"
  6102. >
  6103. <div
  6104. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6105. :key="sIndex"
  6106. class="noWorksName"
  6107. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6108. >
  6109. <el-tooltip effect="dark" :content="s.student" placement="top">
  6110. <span>{{ s.student }}</span>
  6111. </el-tooltip>
  6112. </div>
  6113. </div>
  6114. </div>
  6115. <div
  6116. v-if="
  6117. tType &&
  6118. ((tType == 2 && sIsOpen == true) ||
  6119. tType == 1 ||
  6120. tType == 4) &&
  6121. tool.tool.indexOf(26) != -1
  6122. "
  6123. class="worksBox"
  6124. >
  6125. <div
  6126. class="zuoyeYulan"
  6127. v-if="
  6128. worksStudent.length &&
  6129. worksStudent[toolIndex].length > 0
  6130. "
  6131. >
  6132. <div class="worksTop">
  6133. <div>作业预览</div>
  6134. <div
  6135. class="corOpen"
  6136. @click="contract(toolIndex)"
  6137. v-if="
  6138. (isCloseList[toolIndex].isCloseBoolean) &&
  6139. isCloseList[toolIndex].isClose == 0
  6140. "
  6141. >
  6142. 折叠
  6143. </div>
  6144. <div
  6145. class="corOpen"
  6146. @click="contract(toolIndex)"
  6147. v-if="isCloseList[toolIndex].isClose == 1"
  6148. >
  6149. 展开
  6150. </div>
  6151. </div>
  6152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6153. </div>
  6154. <div
  6155. :id="'tool-' + toolIndex"
  6156. :style="{
  6157. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6158. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6159. }"
  6160. class="worksDetailBox"
  6161. v-if="
  6162. worksStudent.length &&
  6163. worksStudent[toolIndex].length > 0
  6164. "
  6165. >
  6166. <div
  6167. class="works"
  6168. style="width: 240px; height: 140px; overflow: hidden"
  6169. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6170. :key="wIndex"
  6171. :class="w.type == 1 ? 'isTypeOne' : ''"
  6172. >
  6173. <div class="workImg" v-if="w.type == 0">
  6174. <img
  6175. :src="w.works"
  6176. @click="previewImg(w.works,w)"
  6177. alt
  6178. />
  6179. <img
  6180. class="deleteImg"
  6181. src="../../assets/deleteworks.png"
  6182. v-if="
  6183. w.userid == userid || tType == 1 || tType == 4
  6184. "
  6185. @click.stop="deleteWorks(w.wid)"
  6186. alt
  6187. />
  6188. </div>
  6189. <div class="workImg" v-if="w.type == 1">
  6190. <img :src="word" @click="openFile(w.works)" alt />
  6191. <img
  6192. class="deleteImg"
  6193. src="../../assets/deleteworks.png"
  6194. v-if="
  6195. w.userid == userid || tType == 1 || tType == 4
  6196. "
  6197. @click.stop="deleteWorks(w.wid)"
  6198. alt
  6199. />
  6200. </div>
  6201. <div class="worksName">
  6202. <div>{{ w.sName }}</div>
  6203. </div>
  6204. </div>
  6205. </div>
  6206. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6207. 未提交
  6208. </div>
  6209. <div
  6210. class="noWorksS"
  6211. v-if="noWorksS && noWorksS[toolIndex].length"
  6212. >
  6213. <div
  6214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6215. :key="sIndex"
  6216. class="noWorksName"
  6217. >
  6218. <el-tooltip effect="dark" :content="s.student" placement="top">
  6219. <span>{{ s.student }}</span>
  6220. </el-tooltip>
  6221. </div>
  6222. </div>
  6223. </div>
  6224. <div
  6225. v-if="
  6226. tType &&
  6227. ((tType == 2 && sIsOpen == true) ||
  6228. tType == 1 ||
  6229. tType == 4) &&
  6230. tool.tool.indexOf(40) != -1
  6231. "
  6232. class="worksBox"
  6233. >
  6234. <div
  6235. class="zuoyeYulan"
  6236. v-if="
  6237. worksStudent.length &&
  6238. worksStudent[toolIndex].length > 0
  6239. "
  6240. >
  6241. <div class="worksTop">
  6242. <div>作业预览</div>
  6243. <div
  6244. class="corOpen"
  6245. @click="contract(toolIndex)"
  6246. v-if="
  6247. (isCloseList[toolIndex].isCloseBoolean) &&
  6248. isCloseList[toolIndex].isClose == 0
  6249. "
  6250. >
  6251. 折叠
  6252. </div>
  6253. <div
  6254. class="corOpen"
  6255. @click="contract(toolIndex)"
  6256. v-if="isCloseList[toolIndex].isClose == 1"
  6257. >
  6258. 展开
  6259. </div>
  6260. </div>
  6261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6262. </div>
  6263. <div
  6264. :id="'tool-' + toolIndex"
  6265. :style="{
  6266. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6267. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6268. }"
  6269. class="worksDetailBox"
  6270. v-if="
  6271. worksStudent.length &&
  6272. worksStudent[toolIndex].length > 0
  6273. "
  6274. >
  6275. <div
  6276. class="works"
  6277. style="
  6278. width: 200px;
  6279. height: 140px;
  6280. margin: 10px 10px 10px 0;
  6281. border-radius: 15px;
  6282. box-shadow: 0 0 6px 1px #dfdada;
  6283. "
  6284. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6285. :key="wIndex"
  6286. :class="w.type == 1 ? 'isTypeOne' : ''"
  6287. >
  6288. <div class="workImg">
  6289. <img
  6290. src="../../assets/icon/works/noImg.png"
  6291. @click="openPj(w.works, toolIndex)"
  6292. alt
  6293. />
  6294. <img
  6295. class="deleteImg"
  6296. src="../../assets/deleteworks.png"
  6297. v-if="
  6298. w.userid == userid || tType == 1 || tType == 4
  6299. "
  6300. @click.stop="deleteWorks(w.wid)"
  6301. alt
  6302. />
  6303. </div>
  6304. <div class="comment" style="min-width: 200px">
  6305. <div class="worksName">
  6306. <div>{{ w.sName }}</div>
  6307. </div>
  6308. <div class="commentList">
  6309. <div class="commentList">
  6310. <div
  6311. class="commentImg"
  6312. @click="
  6313. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6314. "
  6315. >
  6316. <img
  6317. :src="w.isLikes == true ? likes : noLikes"
  6318. alt=""
  6319. />
  6320. </div>
  6321. <div>{{ w.likesCount }}</div>
  6322. </div>
  6323. <div class="commentList" style="margin-right: 15px">
  6324. <div
  6325. class="commentImg"
  6326. @click="commentOther(w, toolIndex, wIndex)"
  6327. >
  6328. <img
  6329. src="../../assets/icon/comment/comment.png"
  6330. alt=""
  6331. />
  6332. </div>
  6333. <div>{{ w.commentCount }}</div>
  6334. </div>
  6335. </div>
  6336. </div>
  6337. </div>
  6338. </div>
  6339. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6340. 未提交
  6341. </div>
  6342. <div
  6343. class="noWorksS"
  6344. v-if="noWorksS && noWorksS[toolIndex].length"
  6345. >
  6346. <div
  6347. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6348. :key="sIndex"
  6349. class="noWorksName"
  6350. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6351. >
  6352. <el-tooltip effect="dark" :content="s.student" placement="top">
  6353. <span>{{ s.student }}</span>
  6354. </el-tooltip>
  6355. </div>
  6356. </div>
  6357. </div>
  6358. <div
  6359. v-if="
  6360. tType &&
  6361. tType == 2 &&
  6362. !sIsOpen &&
  6363. tool.tool.indexOf(40) != -1
  6364. "
  6365. class="worksBox"
  6366. >
  6367. <div
  6368. class="zuoyeYulan"
  6369. v-if="workStudent[toolIndex].length > 0"
  6370. >
  6371. <span class="worksTitle">作业预览</span>
  6372. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6373. </div>
  6374. <div
  6375. class="worksDetailBox"
  6376. v-if="workStudent[toolIndex].length > 0"
  6377. >
  6378. <div
  6379. class="works"
  6380. style="
  6381. width: 200px;
  6382. height: 140px;
  6383. margin: 10px 10px 10px 0;
  6384. "
  6385. v-for="(w, wIndex) in workStudent[toolIndex]"
  6386. :key="wIndex"
  6387. >
  6388. <div class="workImg">
  6389. <img
  6390. src="../../assets/icon/works/noImg.png"
  6391. @click="openPj(w.works, toolIndex)"
  6392. alt
  6393. />
  6394. <img
  6395. class="deleteImg"
  6396. src="../../assets/deleteworks.png"
  6397. v-if="
  6398. w.userid == userid || tType == 1 || tType == 4
  6399. "
  6400. @click.stop="deleteWorks(w.wid)"
  6401. alt
  6402. />
  6403. </div>
  6404. <div class="worksName">
  6405. <div>{{ w.sName }}</div>
  6406. </div>
  6407. </div>
  6408. </div>
  6409. </div>
  6410. <div
  6411. v-if="
  6412. tType &&
  6413. ((tType == 2 && sIsOpen == true) ||
  6414. tType == 1 ||
  6415. tType == 4) &&
  6416. tool.tool.indexOf(41) != -1
  6417. "
  6418. >
  6419. <AnswerData2
  6420. v-if="
  6421. worksStudent.length &&
  6422. worksStudent[toolIndex].length > 0
  6423. "
  6424. :problemJson="tool.selectJson.answer"
  6425. :people="worksStudent[toolIndex]"
  6426. ></AnswerData2>
  6427. </div>
  6428. <div
  6429. v-if="
  6430. tType &&
  6431. ((tType == 2 && sIsOpen == true) ||
  6432. tType == 1 ||
  6433. tType == 4) &&
  6434. tool.tool.indexOf(41) != -1
  6435. "
  6436. class="worksBox"
  6437. >
  6438. <div
  6439. class="zuoyeYulan"
  6440. v-if="
  6441. worksStudent.length &&
  6442. worksStudent[toolIndex].length > 0
  6443. "
  6444. >
  6445. <div class="worksTop">
  6446. <div>作业预览</div>
  6447. <div
  6448. class="corOpen"
  6449. @click="contract(toolIndex)"
  6450. v-if="
  6451. (isCloseList[toolIndex].isCloseBoolean) &&
  6452. isCloseList[toolIndex].isClose == 0
  6453. "
  6454. >
  6455. 折叠
  6456. </div>
  6457. <div
  6458. class="corOpen"
  6459. @click="contract(toolIndex)"
  6460. v-if="isCloseList[toolIndex].isClose == 1"
  6461. >
  6462. 展开
  6463. </div>
  6464. </div>
  6465. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6466. </div>
  6467. <div
  6468. :id="'tool-' + toolIndex"
  6469. :style="{
  6470. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6471. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6472. }"
  6473. class="worksDetailBox"
  6474. v-if="
  6475. worksStudent.length &&
  6476. worksStudent[toolIndex].length > 0
  6477. "
  6478. >
  6479. <div
  6480. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6481. :key="wIndex"
  6482. class="isWorksName2"
  6483. @click="openXz(w, toolIndex)"
  6484. >
  6485. {{ w.sName }}
  6486. <img
  6487. class="deleteImg deleteImg2"
  6488. src="../../assets/deleteworks.png"
  6489. v-if="w.userid == userid || tType == 1 || tType == 4"
  6490. @click.stop="deleteWorks(w.wid)"
  6491. alt
  6492. />
  6493. </div>
  6494. <!-- <div
  6495. class="works"
  6496. style="
  6497. width: 200px;
  6498. height: 140px;
  6499. margin: 10px 10px 10px 0;
  6500. border-radius: 15px;
  6501. box-shadow: 0 0 6px 1px #dfdada;
  6502. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6503. :class="w.type == 5 ? 'isTypeOne' : ''">
  6504. <div class="workImg">
  6505. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6506. </div>
  6507. <div class="worksName">
  6508. <div>{{ w.sName }}</div>
  6509. </div>
  6510. </div> -->
  6511. </div>
  6512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6513. 未提交
  6514. </div>
  6515. <div
  6516. class="noWorksS"
  6517. v-if="noWorksS && noWorksS[toolIndex].length"
  6518. >
  6519. <div
  6520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6521. :key="sIndex"
  6522. class="noWorksName"
  6523. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6524. >
  6525. <el-tooltip effect="dark" :content="s.student" placement="top">
  6526. <span>{{ s.student }}</span>
  6527. </el-tooltip>
  6528. </div>
  6529. </div>
  6530. </div>
  6531. <div
  6532. v-if="
  6533. tType &&
  6534. tType == 2 &&
  6535. !sIsOpen &&
  6536. tool.tool.indexOf(41) != -1
  6537. "
  6538. class="worksBox"
  6539. >
  6540. <div
  6541. class="zuoyeYulan"
  6542. v-if="workStudent[toolIndex].length > 0"
  6543. >
  6544. <span class="worksTitle">作业预览</span>
  6545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6546. </div>
  6547. <div
  6548. class="worksDetailBox"
  6549. v-if="workStudent[toolIndex].length > 0"
  6550. >
  6551. <div
  6552. class="works"
  6553. style="
  6554. width: 200px;
  6555. height: 140px;
  6556. margin: 10px 10px 10px 0;
  6557. "
  6558. v-for="(w, wIndex) in workStudent[toolIndex]"
  6559. :key="wIndex"
  6560. >
  6561. <div class="workImg">
  6562. <img
  6563. src="../../assets/icon/works/noImg.png"
  6564. @click="openXz(w, toolIndex)"
  6565. alt
  6566. />
  6567. <img
  6568. class="deleteImg"
  6569. src="../../assets/deleteworks.png"
  6570. v-if="
  6571. w.userid == userid || tType == 1 || tType == 4
  6572. "
  6573. @click.stop="deleteWorks(w.wid)"
  6574. alt
  6575. />
  6576. </div>
  6577. <div class="worksName">
  6578. <div>{{ w.sName }}</div>
  6579. </div>
  6580. </div>
  6581. </div>
  6582. </div>
  6583. <div v-if="false" class="xuan_right_box">
  6584. <div
  6585. class="tool_right_box"
  6586. v-for="(item, index) in tool.sentenceList"
  6587. :key="index"
  6588. >
  6589. <div>
  6590. <span
  6591. style="word-break: break-all; white-space: normal"
  6592. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6593. >
  6594. </div>
  6595. <div class="right_box_xuan">
  6596. <span>正确率</span>
  6597. <span>{{
  6598. (checkJson[toolIndex][index].right
  6599. ? checkJson[toolIndex][index].right
  6600. : 0) + "%"
  6601. }}</span>
  6602. </div>
  6603. <div class="right_box_xuan">
  6604. <span>答对人数</span>
  6605. <span>{{
  6606. checkJson[toolIndex][index].rightPerson.length
  6607. }}</span>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. <div
  6612. v-if="
  6613. tType &&
  6614. ((tType == 2 && sIsOpen == true) ||
  6615. tType == 1 ||
  6616. tType == 4) &&
  6617. tool.tool.indexOf(47) != -1
  6618. "
  6619. >
  6620. <AnswerData
  6621. v-if="
  6622. checkJson[toolIndex].length &&
  6623. (tool.sentenceList || tool.sentenceList.length > 0)
  6624. "
  6625. :people="checkJson[toolIndex]"
  6626. ></AnswerData>
  6627. </div>
  6628. <div
  6629. v-if="
  6630. tType &&
  6631. tType == 2 &&
  6632. !sIsOpen &&
  6633. tool.tool.indexOf(47) != -1
  6634. "
  6635. class="worksBox"
  6636. >
  6637. <div
  6638. class="zuoyeYulan"
  6639. v-if="workStudent[toolIndex].length > 0"
  6640. >
  6641. <span class="worksTitle">作业预览</span>
  6642. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6643. </div>
  6644. <div
  6645. class="worksDetailBox"
  6646. v-if="workStudent[toolIndex].length > 0"
  6647. >
  6648. <div
  6649. class="works"
  6650. style="
  6651. width: 200px;
  6652. height: 140px;
  6653. margin: 10px 10px 10px 0;
  6654. "
  6655. v-for="(w, wIndex) in workStudent[toolIndex]"
  6656. :key="wIndex"
  6657. >
  6658. <!-- @click="openXz(w, toolIndex)" -->
  6659. <div class="workImg" @click="openSen(w, toolIndex)">
  6660. <img src="../../assets/icon/works/noImg.png" alt />
  6661. <img
  6662. class="deleteImg"
  6663. src="../../assets/deleteworks.png"
  6664. v-if="
  6665. w.userid == userid || tType == 1 || tType == 4
  6666. "
  6667. @click.stop="deleteWorks(w.wid)"
  6668. alt
  6669. />
  6670. </div>
  6671. <div class="worksName">
  6672. <div>
  6673. {{ w.sName }}
  6674. </div>
  6675. </div>
  6676. </div>
  6677. </div>
  6678. </div>
  6679. <div
  6680. v-if="
  6681. tType &&
  6682. ((tType == 2 && sIsOpen == true) ||
  6683. tType == 1 ||
  6684. tType == 4) &&
  6685. tool.tool.indexOf(47) != -1
  6686. "
  6687. class="worksBox"
  6688. >
  6689. <div
  6690. class="zuoyeYulan"
  6691. v-if="
  6692. worksStudent.length &&
  6693. worksStudent[toolIndex].length > 0
  6694. "
  6695. >
  6696. <div class="worksTop">
  6697. <div>作业预览</div>
  6698. <div
  6699. class="corOpen"
  6700. @click="contract(toolIndex)"
  6701. v-if="
  6702. (isCloseList[toolIndex].isCloseBoolean) &&
  6703. isCloseList[toolIndex].isClose == 0
  6704. "
  6705. >
  6706. 折叠
  6707. </div>
  6708. <div
  6709. class="corOpen"
  6710. @click="contract(toolIndex)"
  6711. v-if="isCloseList[toolIndex].isClose == 1"
  6712. >
  6713. 展开
  6714. </div>
  6715. </div>
  6716. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6717. </div>
  6718. <div
  6719. :id="'tool-' + toolIndex"
  6720. :style="{
  6721. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6722. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6723. }"
  6724. class="worksDetailBox"
  6725. v-if="
  6726. worksStudent.length &&
  6727. worksStudent[toolIndex].length > 0
  6728. "
  6729. >
  6730. <!-- @click="openXz(w, toolIndex)" -->
  6731. <div
  6732. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6733. :key="wIndex"
  6734. class="isWorksName2"
  6735. @click="openSen(w, toolIndex)"
  6736. >
  6737. {{ w.sName }}
  6738. <img
  6739. class="deleteImg deleteImg2"
  6740. src="../../assets/deleteworks.png"
  6741. v-if="w.userid == userid || tType == 1 || tType == 4"
  6742. @click.stop="deleteWorks(w.wid)"
  6743. alt
  6744. />
  6745. </div>
  6746. </div>
  6747. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6748. 未提交
  6749. </div>
  6750. <div
  6751. class="noWorksS"
  6752. v-if="noWorksS && noWorksS[toolIndex].length"
  6753. >
  6754. <div
  6755. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6756. :key="sIndex"
  6757. class="noWorksName"
  6758. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6759. >
  6760. <el-tooltip effect="dark" :content="s.student" placement="top">
  6761. <span>{{ s.student }}</span>
  6762. </el-tooltip>
  6763. </div>
  6764. </div>
  6765. </div>
  6766. <div
  6767. v-if="
  6768. tType &&
  6769. ((tType == 2 && sIsOpen == true) ||
  6770. tType == 1 ||
  6771. tType == 4) &&
  6772. tool.tool.indexOf(48) != -1
  6773. "
  6774. class="worksBox"
  6775. >
  6776. <div
  6777. class="zuoyeYulan"
  6778. v-if="
  6779. worksStudent.length &&
  6780. worksStudent[toolIndex].length > 0
  6781. "
  6782. >
  6783. <div class="worksTop">
  6784. <div>作业预览</div>
  6785. <div
  6786. class="corOpen"
  6787. @click="contract(toolIndex)"
  6788. v-if="
  6789. (isCloseList[toolIndex].isCloseBoolean) &&
  6790. isCloseList[toolIndex].isClose == 0
  6791. "
  6792. >
  6793. 折叠
  6794. </div>
  6795. <div
  6796. class="corOpen"
  6797. @click="contract(toolIndex)"
  6798. v-if="isCloseList[toolIndex].isClose == 1"
  6799. >
  6800. 展开
  6801. </div>
  6802. </div>
  6803. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6804. </div>
  6805. <div
  6806. :id="'tool-' + toolIndex"
  6807. :style="{
  6808. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6809. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6810. }"
  6811. class="worksDetailBox"
  6812. v-if="
  6813. worksStudent.length &&
  6814. worksStudent[toolIndex].length > 0
  6815. "
  6816. >
  6817. <div
  6818. class="works"
  6819. style="
  6820. width: 200px;
  6821. height: 140px;
  6822. margin: 10px 10px 10px 0;
  6823. border-radius: 15px;
  6824. box-shadow: 0 0 6px 1px #dfdada;
  6825. "
  6826. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6827. :key="wIndex"
  6828. :class="w.type == 1 ? 'isTypeOne' : ''"
  6829. >
  6830. <div class="workImg">
  6831. <img :src="word" @click="openTable(w)" alt />
  6832. <!-- @click="openFile(w.works)" -->
  6833. <div
  6834. class="answerScore"
  6835. v-if="w.score"
  6836. @click.stop="openScore(w)"
  6837. :class="{
  6838. rightW:
  6839. w.userid == userid ||
  6840. tType == 1 ||
  6841. tType == 4 ||
  6842. w.ateacher == userid,
  6843. }"
  6844. >
  6845. {{ JSON.parse(w.score).wScore }}分
  6846. </div>
  6847. <div
  6848. class="answerScore"
  6849. @click.stop="openScore(w)"
  6850. v-else-if="courseDetail.userid == userid"
  6851. :class="{
  6852. rightW:
  6853. w.userid == userid ||
  6854. tType == 1 ||
  6855. tType == 4 ||
  6856. w.ateacher == userid,
  6857. }"
  6858. >
  6859. 评分
  6860. </div>
  6861. <img
  6862. class="deleteImg"
  6863. src="../../assets/deleteworks.png"
  6864. v-if="
  6865. w.userid == userid || tType == 1 || tType == 4
  6866. "
  6867. @click.stop="deleteWorks(w.wid)"
  6868. alt
  6869. />
  6870. </div>
  6871. <div class="comment" style="min-width: 200px">
  6872. <div class="worksName">
  6873. <div>{{ w.sName }}</div>
  6874. </div>
  6875. <div class="commentList">
  6876. <div class="commentList">
  6877. <div
  6878. class="commentImg"
  6879. @click="
  6880. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6881. "
  6882. >
  6883. <img
  6884. :src="w.isLikes == true ? likes : noLikes"
  6885. alt=""
  6886. />
  6887. </div>
  6888. <div>{{ w.likesCount }}</div>
  6889. </div>
  6890. <div class="commentList" style="margin-right: 15px">
  6891. <div
  6892. class="commentImg"
  6893. @click="commentOther(w, toolIndex, wIndex)"
  6894. >
  6895. <img
  6896. src="../../assets/icon/comment/comment.png"
  6897. alt=""
  6898. />
  6899. </div>
  6900. <div>{{ w.commentCount }}</div>
  6901. </div>
  6902. </div>
  6903. </div>
  6904. </div>
  6905. </div>
  6906. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6907. 未提交
  6908. </div>
  6909. <div
  6910. class="noWorksS"
  6911. v-if="noWorksS && noWorksS[toolIndex].length"
  6912. >
  6913. <div
  6914. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6915. :key="sIndex"
  6916. class="noWorksName"
  6917. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6918. >
  6919. <el-tooltip effect="dark" :content="s.student" placement="top">
  6920. <span>{{ s.student }}</span>
  6921. </el-tooltip>
  6922. </div>
  6923. </div>
  6924. </div>
  6925. <div
  6926. v-if="
  6927. tType &&
  6928. tType == 2 &&
  6929. !sIsOpen &&
  6930. tool.tool.indexOf(48) != -1
  6931. "
  6932. class="worksBox"
  6933. >
  6934. <div
  6935. class="zuoyeYulan"
  6936. v-if="workStudent[toolIndex].length > 0"
  6937. >
  6938. <span class="worksTitle">作业预览</span>
  6939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6940. </div>
  6941. <div
  6942. class="worksDetailBox"
  6943. v-if="workStudent[toolIndex].length > 0"
  6944. >
  6945. <div
  6946. class="works"
  6947. style="
  6948. width: 200px;
  6949. height: 140px;
  6950. margin: 10px 10px 10px 0;
  6951. box-shadow: 0 0 6px 1px #dfdada;
  6952. "
  6953. v-for="(w, wIndex) in workStudent[toolIndex]"
  6954. :key="wIndex"
  6955. >
  6956. <div class="workImg">
  6957. <img :src="word" @click="openTable(w)" alt />
  6958. <div
  6959. class="answerScore"
  6960. v-if="w.score"
  6961. @click.stop="openScore(w)"
  6962. :class="{
  6963. rightW:
  6964. w.userid == userid || tType == 1 || tType == 4,
  6965. }"
  6966. >
  6967. {{ JSON.parse(w.score).wScore }}分
  6968. </div>
  6969. <div
  6970. class="answerScore"
  6971. @click.stop="openScore(w)"
  6972. v-else-if="courseDetail.userid == userid"
  6973. :class="{
  6974. rightW:
  6975. w.userid == userid || tType == 1 || tType == 4,
  6976. }"
  6977. >
  6978. 评分
  6979. </div>
  6980. <img
  6981. class="deleteImg"
  6982. src="../../assets/deleteworks.png"
  6983. v-if="
  6984. w.userid == userid || tType == 1 || tType == 4
  6985. "
  6986. @click.stop="deleteWorks(w.wid)"
  6987. alt
  6988. />
  6989. </div>
  6990. <div class="worksName">
  6991. <div>{{ w.sName }}</div>
  6992. </div>
  6993. </div>
  6994. </div>
  6995. </div>
  6996. <div
  6997. v-if="
  6998. tType &&
  6999. ((tType == 2 && sIsOpen == true) ||
  7000. tType == 1 ||
  7001. tType == 4) &&
  7002. tool.tool.indexOf(52) != -1
  7003. "
  7004. class="worksBox"
  7005. >
  7006. <div
  7007. class="zuoyeYulan"
  7008. v-if="
  7009. worksStudent.length &&
  7010. worksStudent[toolIndex].length > 0
  7011. "
  7012. >
  7013. <div class="worksTop">
  7014. <div>作业预览</div>
  7015. <div
  7016. class="corOpen"
  7017. @click="contract(toolIndex)"
  7018. v-if="
  7019. (isCloseList[toolIndex].isCloseBoolean) &&
  7020. isCloseList[toolIndex].isClose == 0
  7021. "
  7022. >
  7023. 折叠
  7024. </div>
  7025. <div
  7026. class="corOpen"
  7027. @click="contract(toolIndex)"
  7028. v-if="isCloseList[toolIndex].isClose == 1"
  7029. >
  7030. 展开
  7031. </div>
  7032. </div>
  7033. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7034. </div>
  7035. <div
  7036. :id="'tool-' + toolIndex"
  7037. :style="{
  7038. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7039. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7040. }"
  7041. class="worksDetailBox"
  7042. v-if="
  7043. worksStudent.length &&
  7044. worksStudent[toolIndex].length > 0
  7045. "
  7046. >
  7047. <div
  7048. class="works"
  7049. style="
  7050. width: 200px;
  7051. height: 140px;
  7052. margin: 10px 10px 10px 0;
  7053. border-radius: 15px;
  7054. box-shadow: 0 0 6px 1px #dfdada;
  7055. "
  7056. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7057. :key="wIndex"
  7058. :class="w.type == 1 ? 'isTypeOne' : ''"
  7059. >
  7060. <div class="workImg">
  7061. <img :src="word" @click="openWord(w)" alt />
  7062. <!-- @click="openFile(w.works)" -->
  7063. <div
  7064. class="answerScore"
  7065. v-if="w.score"
  7066. @click.stop="openScore(w)"
  7067. :class="{
  7068. rightW:
  7069. w.userid == userid ||
  7070. tType == 1 ||
  7071. tType == 4 ||
  7072. w.ateacher == userid,
  7073. }"
  7074. >
  7075. {{ JSON.parse(w.score).wScore }}分
  7076. </div>
  7077. <div
  7078. class="answerScore"
  7079. @click.stop="openScore(w)"
  7080. v-else-if="courseDetail.userid == userid"
  7081. :class="{
  7082. rightW:
  7083. w.userid == userid ||
  7084. tType == 1 ||
  7085. tType == 4 ||
  7086. w.ateacher == userid,
  7087. }"
  7088. >
  7089. 评分
  7090. </div>
  7091. <img
  7092. class="deleteImg"
  7093. src="../../assets/deleteworks.png"
  7094. v-if="
  7095. w.userid == userid || tType == 1 || tType == 4
  7096. "
  7097. @click.stop="deleteWorks(w.wid)"
  7098. alt
  7099. />
  7100. </div>
  7101. <div class="comment" style="min-width: 200px">
  7102. <div class="worksName">
  7103. <div>{{ w.sName }}</div>
  7104. </div>
  7105. <div class="commentList">
  7106. <div class="commentList">
  7107. <div
  7108. class="commentImg"
  7109. @click="
  7110. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7111. "
  7112. >
  7113. <img
  7114. :src="w.isLikes == true ? likes : noLikes"
  7115. alt=""
  7116. />
  7117. </div>
  7118. <div>{{ w.likesCount }}</div>
  7119. </div>
  7120. <div class="commentList" style="margin-right: 15px">
  7121. <div
  7122. class="commentImg"
  7123. @click="commentOther(w, toolIndex, wIndex)"
  7124. >
  7125. <img
  7126. src="../../assets/icon/comment/comment.png"
  7127. alt=""
  7128. />
  7129. </div>
  7130. <div>{{ w.commentCount }}</div>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7137. 未提交
  7138. </div>
  7139. <div
  7140. class="noWorksS"
  7141. v-if="noWorksS && noWorksS[toolIndex].length"
  7142. >
  7143. <div
  7144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7145. :key="sIndex"
  7146. class="noWorksName"
  7147. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7148. >
  7149. <el-tooltip effect="dark" :content="s.student" placement="top">
  7150. <span>{{ s.student }}</span>
  7151. </el-tooltip>
  7152. </div>
  7153. </div>
  7154. </div>
  7155. <div
  7156. v-if="
  7157. tType &&
  7158. tType == 2 &&
  7159. !sIsOpen &&
  7160. tool.tool.indexOf(52) != -1
  7161. "
  7162. class="worksBox"
  7163. >
  7164. <div
  7165. class="zuoyeYulan"
  7166. v-if="workStudent[toolIndex].length > 0"
  7167. >
  7168. <span class="worksTitle">作业预览</span>
  7169. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7170. </div>
  7171. <div
  7172. class="worksDetailBox"
  7173. v-if="workStudent[toolIndex].length > 0"
  7174. >
  7175. <div
  7176. class="works"
  7177. style="
  7178. width: 200px;
  7179. height: 140px;
  7180. margin: 10px 10px 10px 0;
  7181. box-shadow: 0 0 6px 1px #dfdada;
  7182. "
  7183. v-for="(w, wIndex) in workStudent[toolIndex]"
  7184. :key="wIndex"
  7185. >
  7186. <div class="workImg">
  7187. <img :src="word" @click="openWord(w)" alt />
  7188. <div
  7189. class="answerScore"
  7190. v-if="w.score"
  7191. @click.stop="openScore(w)"
  7192. :class="{
  7193. rightW:
  7194. w.userid == userid || tType == 1 || tType == 4,
  7195. }"
  7196. >
  7197. {{ JSON.parse(w.score).wScore }}分
  7198. </div>
  7199. <div
  7200. class="answerScore"
  7201. @click.stop="openScore(w)"
  7202. v-else-if="courseDetail.userid == userid"
  7203. :class="{
  7204. rightW:
  7205. w.userid == userid || tType == 1 || tType == 4,
  7206. }"
  7207. >
  7208. 评分
  7209. </div>
  7210. <img
  7211. class="deleteImg"
  7212. src="../../assets/deleteworks.png"
  7213. v-if="
  7214. w.userid == userid || tType == 1 || tType == 4
  7215. "
  7216. @click.stop="deleteWorks(w.wid)"
  7217. alt
  7218. />
  7219. </div>
  7220. <div class="worksName">
  7221. <div>{{ w.sName }}</div>
  7222. </div>
  7223. </div>
  7224. </div>
  7225. </div>
  7226. <div
  7227. v-if="tool.tool.indexOf(49) != -1"
  7228. class="xuan_right_box"
  7229. style="margin: 0 15px 0 25px; width: 93%"
  7230. >
  7231. <div
  7232. v-if="courseDetail.userid == userid"
  7233. style="
  7234. display: flex;
  7235. justify-content: flex-end;
  7236. margin-right: 10px;
  7237. "
  7238. >
  7239. <el-button
  7240. type="primary"
  7241. size="small"
  7242. @click="addTools(49, toolIndex, taskCount)"
  7243. >分组设置</el-button
  7244. >
  7245. </div>
  7246. <div
  7247. v-if="groupStudentUid[toolIndex]"
  7248. class="group_staic_box"
  7249. >
  7250. <div
  7251. v-for="(gp, gd) in tool.groupJson.group"
  7252. :key="gd"
  7253. class="group_staic"
  7254. >
  7255. <span> {{ gp.name }}</span>
  7256. <span>
  7257. 目前人数{{
  7258. groupStudentUid[toolIndex][gd].length
  7259. }}人</span
  7260. >
  7261. </div>
  7262. </div>
  7263. </div>
  7264. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7265. <div
  7266. class="zuoyeYulan"
  7267. v-if="
  7268. worksStudent.length &&
  7269. worksStudent[toolIndex].length > 0
  7270. "
  7271. >
  7272. <span class="worksTitle">作业预览</span>
  7273. </div>
  7274. <div>
  7275. <div
  7276. class="group_workBox"
  7277. v-for="(g, gindex) in tool.groupJson.group"
  7278. :key="gindex"
  7279. >
  7280. <div
  7281. class="group_box"
  7282. v-if="
  7283. groupStudentUid[toolIndex] &&
  7284. worksStudent[toolIndex] &&
  7285. (worksStudent[toolIndex][gindex].length ||
  7286. groupStudentUid[toolIndex][gindex].indexOf(
  7287. userid
  7288. ) != -1)
  7289. "
  7290. >
  7291. <div class="group_title">
  7292. <el-tooltip
  7293. class="item"
  7294. effect="light"
  7295. :content="g.name"
  7296. placement="top"
  7297. >
  7298. <div class="group_name">{{ g.name }}</div>
  7299. </el-tooltip>
  7300. <el-button
  7301. type="primary"
  7302. v-if="
  7303. groupStudentUid[toolIndex][gindex].indexOf(
  7304. userid
  7305. ) != -1
  7306. "
  7307. @click="groupUpload(toolIndex, taskCount, gindex)"
  7308. >上传作业</el-button
  7309. >
  7310. </div>
  7311. <div class="group_work">
  7312. <div
  7313. class="works"
  7314. style="
  7315. width: 200px;
  7316. height: 140px;
  7317. margin: 10px 10px 10px 0;
  7318. border-radius: 15px;
  7319. box-shadow: 0 0 6px 1px #dfdada;
  7320. "
  7321. v-for="(w, wIndex) in worksStudent[toolIndex][
  7322. gindex
  7323. ]"
  7324. :key="wIndex"
  7325. :class="w.type == 1 ? 'isTypeOne' : ''"
  7326. >
  7327. <div class="workImg" v-if="w.type == 0">
  7328. <img
  7329. :src="w.works"
  7330. @click="previewImg(w.works,w)"
  7331. alt
  7332. />
  7333. <div
  7334. class="answerScore"
  7335. v-if="w.score"
  7336. @click.stop="openScore(w)"
  7337. :class="{
  7338. rightW:
  7339. w.userid == userid ||
  7340. tType == 1 ||
  7341. tType == 4 ||
  7342. w.ateacher == userid,
  7343. }"
  7344. >
  7345. {{ JSON.parse(w.score).wScore }}分
  7346. </div>
  7347. <div
  7348. class="answerScore"
  7349. @click.stop="openScore(w)"
  7350. v-else-if="courseDetail.userid == userid"
  7351. :class="{
  7352. rightW:
  7353. w.userid == userid ||
  7354. tType == 1 ||
  7355. tType == 4 ||
  7356. w.ateacher == userid,
  7357. }"
  7358. >
  7359. 评分
  7360. </div>
  7361. <img
  7362. class="deleteImg"
  7363. src="../../assets/deleteworks.png"
  7364. v-if="
  7365. w.userid == userid ||
  7366. tType == 1 ||
  7367. tType == 4
  7368. "
  7369. @click.stop="deleteWorks(w.wid)"
  7370. alt
  7371. />
  7372. </div>
  7373. <div class="workImg" v-if="w.type == 1">
  7374. <img
  7375. :src="word"
  7376. @click="openFile(w.works)"
  7377. alt
  7378. />
  7379. <!-- @click="openFile(w.works)" -->
  7380. <div
  7381. class="answerScore"
  7382. v-if="w.score"
  7383. @click.stop="openScore(w)"
  7384. :class="{
  7385. rightW:
  7386. w.userid == userid ||
  7387. tType == 1 ||
  7388. tType == 4 ||
  7389. w.ateacher == userid,
  7390. }"
  7391. >
  7392. {{ JSON.parse(w.score).wScore }}分
  7393. </div>
  7394. <div
  7395. class="answerScore"
  7396. @click.stop="openScore(w)"
  7397. v-else-if="courseDetail.userid == userid"
  7398. :class="{
  7399. rightW:
  7400. w.userid == userid ||
  7401. tType == 1 ||
  7402. tType == 4 ||
  7403. w.ateacher == userid,
  7404. }"
  7405. >
  7406. 评分
  7407. </div>
  7408. <img
  7409. class="deleteImg"
  7410. src="../../assets/deleteworks.png"
  7411. v-if="
  7412. w.userid == userid ||
  7413. tType == 1 ||
  7414. tType == 4
  7415. "
  7416. @click.stop="deleteWorks(w.wid)"
  7417. alt
  7418. />
  7419. </div>
  7420. <div class="workImg" v-if="w.type == 3">
  7421. <img
  7422. style="cursor: pointer"
  7423. :src="video"
  7424. @click="openVideo(w)"
  7425. alt
  7426. />
  7427. <!-- @click="openVideo(w.works)" -->
  7428. <div
  7429. class="answerScore"
  7430. v-if="w.score"
  7431. @click.stop="openScore(w)"
  7432. :class="{
  7433. rightW:
  7434. w.userid == userid ||
  7435. tType == 1 ||
  7436. tType == 4 ||
  7437. w.ateacher == userid,
  7438. }"
  7439. >
  7440. {{ JSON.parse(w.score).wScore }}分
  7441. </div>
  7442. <div
  7443. class="answerScore"
  7444. @click.stop="openScore(w)"
  7445. v-else-if="courseDetail.userid == userid"
  7446. :class="{
  7447. rightW:
  7448. w.userid == userid ||
  7449. tType == 1 ||
  7450. tType == 4 ||
  7451. w.ateacher == userid,
  7452. }"
  7453. >
  7454. 评分
  7455. </div>
  7456. <img
  7457. class="deleteImg"
  7458. src="../../assets/deleteworks.png"
  7459. v-if="
  7460. w.userid == userid ||
  7461. tType == 1 ||
  7462. tType == 4
  7463. "
  7464. @click.stop="deleteWorks(w.wid)"
  7465. alt
  7466. />
  7467. </div>
  7468. <div class="workImg" v-if="w.type == 12">
  7469. <img
  7470. style="cursor: pointer"
  7471. :src="word2"
  7472. @click="downloadFile(w.works,w.userid)"
  7473. alt
  7474. />
  7475. <!-- @click="openVideo(w.works)" -->
  7476. <div
  7477. class="answerScore"
  7478. v-if="w.score"
  7479. @click.stop="openScore(w)"
  7480. :class="{
  7481. rightW:
  7482. w.userid == userid ||
  7483. tType == 1 ||
  7484. tType == 4 ||
  7485. w.ateacher == userid,
  7486. }"
  7487. >
  7488. {{ JSON.parse(w.score).wScore }}分
  7489. </div>
  7490. <div
  7491. class="answerScore"
  7492. @click.stop="openScore(w)"
  7493. v-else-if="courseDetail.userid == userid"
  7494. :class="{
  7495. rightW:
  7496. w.userid == userid ||
  7497. tType == 1 ||
  7498. tType == 4 ||
  7499. w.ateacher == userid,
  7500. }"
  7501. >
  7502. 评分
  7503. </div>
  7504. <img
  7505. class="deleteImg"
  7506. src="../../assets/deleteworks.png"
  7507. v-if="
  7508. w.userid == userid ||
  7509. tType == 1 ||
  7510. tType == 4
  7511. "
  7512. @click.stop="deleteWorks(w.wid)"
  7513. alt
  7514. />
  7515. </div>
  7516. <div class="comment" style="min-width: 200px">
  7517. <div class="worksName">
  7518. <div>{{ w.sName }}</div>
  7519. </div>
  7520. <div class="commentList">
  7521. <div class="commentList">
  7522. <div
  7523. class="commentImg"
  7524. @click="
  7525. isLikes(
  7526. w.wid,
  7527. userid,
  7528. 1,
  7529. null,
  7530. w.isLikes,
  7531. w.sName
  7532. )
  7533. "
  7534. >
  7535. <img
  7536. :src="
  7537. w.isLikes == true ? likes : noLikes
  7538. "
  7539. alt=""
  7540. />
  7541. </div>
  7542. <div>{{ w.likesCount }}</div>
  7543. </div>
  7544. <div
  7545. class="commentList"
  7546. style="margin-right: 15px"
  7547. >
  7548. <div
  7549. class="commentImg"
  7550. @click="
  7551. commentOther(
  7552. w,
  7553. toolIndex,
  7554. wIndex,
  7555. gindex
  7556. )
  7557. "
  7558. >
  7559. <img
  7560. src="../../assets/icon/comment/comment.png"
  7561. alt=""
  7562. />
  7563. </div>
  7564. <div>{{ w.commentCount }}</div>
  7565. </div>
  7566. </div>
  7567. </div>
  7568. </div>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. </div>
  7575. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7576. 上传文件
  7577. <input
  7578. type="file"
  7579. accept="image/png, image/gif, image/jpeg"
  7580. style="display: none"
  7581. @change="beforeUpload1($event, 2, index)"
  7582. />
  7583. </div>-->
  7584. </div>
  7585. </div>
  7586. <!-- <div
  7587. class="vedioBox"
  7588. style="margin-top: 10px"
  7589. v-if="
  7590. courseDetail.userid == userid ||
  7591. (courseDetail.course_teacher &&
  7592. courseDetail.course_teacher.indexOf(userid) != -1)
  7593. "
  7594. :style="{
  7595. borderRadius:
  7596. !(
  7597. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7598. .toolChoose[0].tool &&
  7599. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7600. .toolChoose[0].tool.length > 0
  7601. ) &&
  7602. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7603. .taskDetail == '' &&
  7604. vChapterData[taskCount].length == 0 &&
  7605. fileC[taskCount].length == 0
  7606. ? '0 0 20px 20px'
  7607. : '20px',
  7608. }"
  7609. >
  7610. <div
  7611. class="queTop"
  7612. @click="isClose = !isClose"
  7613. style="
  7614. padding: 15px 0 15px 37px;
  7615. justify-content: space-between;
  7616. "
  7617. >
  7618. <div class="queTopTitle">新增工具</div>
  7619. <div class="queTopRight">
  7620. <div class="queTopClose" v-if="isClose == 0">
  7621. 展开
  7622. <div class="closeImg">
  7623. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7624. </div>
  7625. </div>
  7626. <div class="queTopClose" v-if="isClose == 1">
  7627. 折叠
  7628. <div class="openImg">
  7629. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7630. </div>
  7631. </div>
  7632. <el-button
  7633. style="margin: 0 30px 0 auto"
  7634. type="primary"
  7635. size="small"
  7636. v-if="isClose == 1 && checktoolArray.length > 0"
  7637. @click.stop="addToolChoose"
  7638. >确定</el-button
  7639. >
  7640. </div>
  7641. </div>
  7642. <div
  7643. class="tool_work_box"
  7644. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7645. >
  7646. <div class="tool_box">
  7647. <div class="tool_type_box">
  7648. <div class="chooseWho">
  7649. <div
  7650. :class="toolType == 0 ? 'isChooseActive' : ''"
  7651. @click="(toolType = 0), $forceUpdate()"
  7652. >
  7653. 互动类
  7654. </div>
  7655. <div
  7656. :class="toolType == 1 ? 'isChooseActive' : ''"
  7657. @click="(toolType = 1), $forceUpdate()"
  7658. >
  7659. 思维类
  7660. </div>
  7661. <div
  7662. :class="toolType == 2 ? 'isChooseActive' : ''"
  7663. @click="(toolType = 2), $forceUpdate()"
  7664. >
  7665. 测评类
  7666. </div>
  7667. <div
  7668. :class="toolType == 3 ? 'isChooseActive' : ''"
  7669. @click="(toolType = 3), $forceUpdate()"
  7670. >
  7671. 编程类
  7672. </div>
  7673. <div
  7674. :class="toolType == 5 ? 'isChooseActive' : ''"
  7675. @click="(toolType = 5), $forceUpdate()"
  7676. >
  7677. 学科类
  7678. </div>
  7679. </div>
  7680. </div>
  7681. <div>
  7682. <div class="toolSort" v-if="toolType == 0">
  7683. <div class="tool">
  7684. <div class="whiteBIcon" @click="addTools2(10)">
  7685. <img
  7686. src="../../assets/icon/thirdToolList/time.png"
  7687. alt
  7688. />
  7689. <div style="margin: 5px 0">倒计时</div>
  7690. </div>
  7691. <div class="check" @click="addTools2(10)">
  7692. <img
  7693. src="../../assets/icon/checkNo.png"
  7694. alt
  7695. v-if="checktoolArray.indexOf(10) == -1"
  7696. />
  7697. <div class="checkDiv" v-else>
  7698. <img src="../../assets/icon/checkedIs.png" alt /><span
  7699. >已选择</span
  7700. >
  7701. </div>
  7702. </div>
  7703. </div>
  7704. <div class="tool">
  7705. <div class="whiteBIcon" @click="addTools2(65)">
  7706. <img
  7707. src="../../assets/icon/firstToolList/pickPeople.png"
  7708. alt
  7709. />
  7710. <div style="margin: 5px 0">挑人</div>
  7711. </div>
  7712. <div class="check" @click="addTools2(65)">
  7713. <img
  7714. src="../../assets/icon/checkNo.png"
  7715. alt
  7716. v-if="checktoolArray.indexOf(65) == -1"
  7717. />
  7718. <div class="checkDiv" v-else>
  7719. <img src="../../assets/icon/checkedIs.png" alt /><span
  7720. >已选择</span
  7721. >
  7722. </div>
  7723. </div>
  7724. </div>
  7725. </div>
  7726. <div class="toolSort" v-if="toolType == 1">
  7727. <div class="tool">
  7728. <div class="whiteBIcon" @click="addTools2(7)">
  7729. <img
  7730. src="../../assets/icon/secondToolList/mindNetwork.png"
  7731. alt
  7732. />
  7733. <div style="margin: 5px 0">思维网格</div>
  7734. </div>
  7735. <div class="check" @click="addTools2(7)">
  7736. <img
  7737. src="../../assets/icon/checkNo.png"
  7738. alt
  7739. v-if="checktoolArray.indexOf(7) == -1"
  7740. />
  7741. <div class="checkDiv" v-else>
  7742. <img src="../../assets/icon/checkedIs.png" alt /><span
  7743. >已选择</span
  7744. >
  7745. </div>
  7746. </div>
  7747. </div>
  7748. <div class="tool">
  7749. <div class="whiteBIcon" @click="addTools2(1)">
  7750. <img
  7751. src="../../assets/icon/secondToolList/whiteBoard.png"
  7752. alt
  7753. />
  7754. <div style="margin: 5px 0">电子白板</div>
  7755. </div>
  7756. <div class="check" @click="addTools2(1)">
  7757. <img
  7758. src="../../assets/icon/checkNo.png"
  7759. alt
  7760. v-if="checktoolArray.indexOf(1) == -1"
  7761. />
  7762. <div class="checkDiv" v-else>
  7763. <img src="../../assets/icon/checkedIs.png" alt /><span
  7764. >已选择</span
  7765. >
  7766. </div>
  7767. </div>
  7768. </div>
  7769. <div class="tool">
  7770. <div class="whiteBIcon" @click="addTools2(52)">
  7771. <img
  7772. src="../../assets/icon/fourthToolList/text.png"
  7773. alt
  7774. />
  7775. <div style="margin: 5px 0">文档</div>
  7776. </div>
  7777. <div class="check" @click="addTools2(52)">
  7778. <img
  7779. src="../../assets/icon/checkNo.png"
  7780. alt
  7781. v-if="checktoolArray.indexOf(52) == -1"
  7782. />
  7783. <div class="checkDiv" v-else>
  7784. <img src="../../assets/icon/checkedIs.png" alt /><span
  7785. >已选择</span
  7786. >
  7787. </div>
  7788. </div>
  7789. </div>
  7790. <div class="tool">
  7791. <div class="whiteBIcon" @click="addTools2(3)">
  7792. <img
  7793. src="../../assets/icon/secondToolList/mindMapping.png"
  7794. alt
  7795. />
  7796. <div style="margin: 5px 0">思维导图</div>
  7797. </div>
  7798. <div class="check" @click="addTools2(3)">
  7799. <img
  7800. src="../../assets/icon/checkNo.png"
  7801. alt
  7802. v-if="checktoolArray.indexOf(3) == -1"
  7803. />
  7804. <div class="checkDiv" v-else>
  7805. <img src="../../assets/icon/checkedIs.png" alt /><span
  7806. >已选择</span
  7807. >
  7808. </div>
  7809. </div>
  7810. </div>
  7811. <div class="tool">
  7812. <div class="whiteBIcon" @click="addTools2(48)">
  7813. <img
  7814. src="../../assets/icon/fourthToolList/table.png"
  7815. alt
  7816. />
  7817. <div style="margin: 5px 0">表格</div>
  7818. </div>
  7819. <div class="check" @click="addTools2(48)">
  7820. <img
  7821. src="../../assets/icon/checkNo.png"
  7822. alt
  7823. v-if="checktoolArray.indexOf(48) == -1"
  7824. />
  7825. <div class="checkDiv" v-else>
  7826. <img src="../../assets/icon/checkedIs.png" alt /><span
  7827. >已选择</span
  7828. >
  7829. </div>
  7830. </div>
  7831. </div>
  7832. </div>
  7833. <div class="toolSort" v-if="toolType == 6">
  7834. <div v-show="tooC == 49">
  7835. <img
  7836. @click="addTools(tooC, toolIndex, taskCount)"
  7837. src="../../assets/icon/fourthToolList/group.png"
  7838. alt
  7839. />
  7840. <div style="margin: 5px 0">学生分组</div>
  7841. </div>
  7842. </div>
  7843. <div class="toolSort" v-if="toolType == 2">
  7844. <div class="tool">
  7845. <div class="whiteBIcon" @click="addTools2(16)">
  7846. <img
  7847. src="../../assets/icon/thirdToolList/work.png"
  7848. alt
  7849. />
  7850. <div style="margin: 5px 0">作业提交</div>
  7851. </div>
  7852. <div class="check" @click="addTools2(16)">
  7853. <img
  7854. src="../../assets/icon/checkNo.png"
  7855. alt
  7856. v-if="checktoolArray.indexOf(16) == -1"
  7857. />
  7858. <div class="checkDiv" v-else>
  7859. <img src="../../assets/icon/checkedIs.png" alt /><span
  7860. >已选择</span
  7861. >
  7862. </div>
  7863. </div>
  7864. </div>
  7865. <div class="tool">
  7866. <div class="whiteBIcon" @click="addTools2(50)">
  7867. <img
  7868. src="../../assets/icon/thirdToolList/plwork.png"
  7869. alt
  7870. />
  7871. <div style="margin: 5px 0">批量上传</div>
  7872. </div>
  7873. <div class="check" @click="addTools2(50)">
  7874. <img
  7875. src="../../assets/icon/checkNo.png"
  7876. alt
  7877. v-if="checktoolArray.indexOf(50) == -1"
  7878. />
  7879. <div class="checkDiv" v-else>
  7880. <img src="../../assets/icon/checkedIs.png" alt /><span
  7881. >已选择</span
  7882. >
  7883. </div>
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div class="toolSort" v-if="toolType == 3">
  7888. <div class="tool">
  7889. <div class="whiteBIcon" @click="addTools2(18)">
  7890. <img
  7891. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7892. alt
  7893. />
  7894. <div style="margin: 5px 0">训练平台</div>
  7895. </div>
  7896. <div class="check" @click="addTools2(18)">
  7897. <img
  7898. src="../../assets/icon/checkNo.png"
  7899. alt
  7900. v-if="checktoolArray.indexOf(18) == -1"
  7901. />
  7902. <div class="checkDiv" v-else>
  7903. <img src="../../assets/icon/checkedIs.png" alt /><span
  7904. >已选择</span
  7905. >
  7906. </div>
  7907. </div>
  7908. </div>
  7909. <div class="tool">
  7910. <div class="whiteBIcon" @click="addTools2(21)">
  7911. <img
  7912. src="../../assets/icon/fourthToolList/program.png"
  7913. alt
  7914. />
  7915. <div style="margin: 5px 0">AIoT Blockly</div>
  7916. </div>
  7917. <div class="check" @click="addTools2(21)">
  7918. <img
  7919. src="../../assets/icon/checkNo.png"
  7920. alt
  7921. v-if="checktoolArray.indexOf(21) == -1"
  7922. />
  7923. <div class="checkDiv" v-else>
  7924. <img src="../../assets/icon/checkedIs.png" alt /><span
  7925. >已选择</span
  7926. >
  7927. </div>
  7928. </div>
  7929. </div>
  7930. <div class="tool">
  7931. <div class="whiteBIcon" @click="addTools2(23)">
  7932. <img
  7933. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7934. alt
  7935. />
  7936. <div style="margin: 5px 0">AI Python</div>
  7937. </div>
  7938. <div class="check" @click="addTools2(23)">
  7939. <img
  7940. src="../../assets/icon/checkNo.png"
  7941. alt
  7942. v-if="checktoolArray.indexOf(23) == -1"
  7943. />
  7944. <div class="checkDiv" v-else>
  7945. <img src="../../assets/icon/checkedIs.png" alt /><span
  7946. >已选择</span
  7947. >
  7948. </div>
  7949. </div>
  7950. </div>
  7951. <div class="tool">
  7952. <div class="whiteBIcon" @click="addTools2(24)">
  7953. <img
  7954. src="../../assets/icon/fourthToolList/AIprogram.png"
  7955. alt
  7956. />
  7957. <div style="margin: 5px 0">AI Blockly</div>
  7958. </div>
  7959. <div class="check" @click="addTools2(24)">
  7960. <img
  7961. src="../../assets/icon/checkNo.png"
  7962. alt
  7963. v-if="checktoolArray.indexOf(24) == -1"
  7964. />
  7965. <div class="checkDiv" v-else>
  7966. <img src="../../assets/icon/checkedIs.png" alt /><span
  7967. >已选择</span
  7968. >
  7969. </div>
  7970. </div>
  7971. </div>
  7972. <div class="tool">
  7973. <div class="whiteBIcon" @click="addTools2(32)">
  7974. <img
  7975. src="../../assets/icon/thirdToolList/code.png"
  7976. alt
  7977. />
  7978. <div style="margin: 5px 0">源码编辑</div>
  7979. </div>
  7980. <div class="check" @click="addTools2(32)">
  7981. <img
  7982. src="../../assets/icon/checkNo.png"
  7983. alt
  7984. v-if="checktoolArray.indexOf(32) == -1"
  7985. />
  7986. <div class="checkDiv" v-else>
  7987. <img src="../../assets/icon/checkedIs.png" alt /><span
  7988. >已选择</span
  7989. >
  7990. </div>
  7991. </div>
  7992. </div>
  7993. <div class="tool">
  7994. <div class="whiteBIcon" @click="addTools2(57)">
  7995. <img
  7996. src="../../assets/icon/fourthToolList/cocopi.png"
  7997. alt
  7998. />
  7999. <div style="margin: 5px 0">CocoPi</div>
  8000. </div>
  8001. <div class="check" @click="addTools2(57)">
  8002. <img
  8003. src="../../assets/icon/checkNo.png"
  8004. alt
  8005. v-if="checktoolArray.indexOf(57) == -1"
  8006. />
  8007. <div class="checkDiv" v-else>
  8008. <img src="../../assets/icon/checkedIs.png" alt /><span
  8009. >已选择</span
  8010. >
  8011. </div>
  8012. </div>
  8013. </div>
  8014. <div class="tool">
  8015. <div class="whiteBIcon" @click="addTools2(63)">
  8016. <img
  8017. src="../../assets/icon/fourthToolList/Wood.png"
  8018. alt
  8019. />
  8020. <div style="margin: 5px 0">海龟编程</div>
  8021. </div>
  8022. <div class="check" @click="addTools2(63)">
  8023. <img
  8024. src="../../assets/icon/checkNo.png"
  8025. alt
  8026. v-if="checktoolArray.indexOf(63) == -1"
  8027. />
  8028. <div class="checkDiv" v-else>
  8029. <img src="../../assets/icon/checkedIs.png" alt /><span
  8030. >已选择</span
  8031. >
  8032. </div>
  8033. </div>
  8034. </div>
  8035. </div>
  8036. <div class="toolSort" v-if="toolType == 5">
  8037. <div class="tool">
  8038. <div class="whiteBIcon" @click="addTools2(28)">
  8039. <img
  8040. src="../../assets/icon/secondToolList/translation.png"
  8041. alt
  8042. />
  8043. <div style="margin: 5px 0">翻译</div>
  8044. </div>
  8045. <div class="check" @click="addTools2(28)">
  8046. <img
  8047. src="../../assets/icon/checkNo.png"
  8048. alt
  8049. v-if="checktoolArray.indexOf(28) == -1"
  8050. />
  8051. <div class="checkDiv" v-else>
  8052. <img src="../../assets/icon/checkedIs.png" alt /><span
  8053. >已选择</span
  8054. >
  8055. </div>
  8056. </div>
  8057. </div>
  8058. <div class="tool">
  8059. <div class="whiteBIcon" @click="addTools2(31)">
  8060. <img
  8061. src="../../assets/icon/secondToolList/networkPanel.png"
  8062. alt
  8063. />
  8064. <div style="margin: 5px 0">数字画板</div>
  8065. </div>
  8066. <div class="check" @click="addTools2(31)">
  8067. <img
  8068. src="../../assets/icon/checkNo.png"
  8069. alt
  8070. v-if="checktoolArray.indexOf(31) == -1"
  8071. />
  8072. <div class="checkDiv" v-else>
  8073. <img src="../../assets/icon/checkedIs.png" alt /><span
  8074. >已选择</span
  8075. >
  8076. </div>
  8077. </div>
  8078. </div>
  8079. <div class="tool">
  8080. <div class="whiteBIcon" @click="addTools2(39)">
  8081. <img
  8082. src="../../assets/icon/secondToolList/GeoGebra.png"
  8083. alt
  8084. />
  8085. <div style="margin: 5px 0">GeoGebra</div>
  8086. </div>
  8087. <div class="check" @click="addTools2(39)">
  8088. <img
  8089. src="../../assets/icon/checkNo.png"
  8090. alt
  8091. v-if="checktoolArray.indexOf(39) == -1"
  8092. />
  8093. <div class="checkDiv" v-else>
  8094. <img src="../../assets/icon/checkedIs.png" alt /><span
  8095. >已选择</span
  8096. >
  8097. </div>
  8098. </div>
  8099. </div>
  8100. <div class="tool">
  8101. <div class="whiteBIcon" @click="addTools2(66)">
  8102. <img
  8103. src="../../assets/icon/secondToolList/formulaEdi.png"
  8104. alt
  8105. />
  8106. <div style="margin: 5px 0">公式编辑</div>
  8107. </div>
  8108. <div class="check" @click="addTools2(66)">
  8109. <img
  8110. src="../../assets/icon/checkNo.png"
  8111. alt
  8112. v-if="checktoolArray.indexOf(66) == -1"
  8113. />
  8114. <div class="checkDiv" v-else>
  8115. <img src="../../assets/icon/checkedIs.png" alt /><span
  8116. >已选择</span
  8117. >
  8118. </div>
  8119. </div>
  8120. </div>
  8121. <div class="tool">
  8122. <div class="whiteBIcon" @click="addTools2(67)">
  8123. <img
  8124. src="../../assets/icon/secondToolList/molStr.png"
  8125. alt
  8126. />
  8127. <div style="margin: 5px 0">分子结构</div>
  8128. </div>
  8129. <div class="check" @click="addTools2(67)">
  8130. <img
  8131. src="../../assets/icon/checkNo.png"
  8132. alt
  8133. v-if="checktoolArray.indexOf(67) == -1"
  8134. />
  8135. <div class="checkDiv" v-else>
  8136. <img src="../../assets/icon/checkedIs.png" alt /><span
  8137. >已选择</span
  8138. >
  8139. </div>
  8140. </div>
  8141. </div>
  8142. <div class="tool">
  8143. <div class="whiteBIcon" @click="addTools2(68)">
  8144. <img
  8145. src="../../assets/icon/secondToolList/timeAxis.png"
  8146. alt
  8147. />
  8148. <div style="margin: 5px 0">时间轴</div>
  8149. </div>
  8150. <div class="check" @click="addTools2(68)">
  8151. <img
  8152. src="../../assets/icon/checkNo.png"
  8153. alt
  8154. v-if="checktoolArray.indexOf(68) == -1"
  8155. />
  8156. <div class="checkDiv" v-else>
  8157. <img src="../../assets/icon/checkedIs.png" alt /><span
  8158. >已选择</span
  8159. >
  8160. </div>
  8161. </div>
  8162. </div>
  8163. </div>
  8164. <div class="toolSort" v-if="toolType == 7">
  8165. <div class="tool">
  8166. <div class="whiteBIcon" @click="addTools2(40)">
  8167. <img
  8168. src="../../assets/icon/secondToolList/eval.png"
  8169. alt
  8170. />
  8171. <div style="margin: 5px 0">个人评价</div>
  8172. </div>
  8173. <div class="check" @click="addTools2(40)">
  8174. <img
  8175. src="../../assets/icon/checkNo.png"
  8176. alt
  8177. v-if="checktoolArray.indexOf(40) == -1"
  8178. />
  8179. <div class="checkDiv" v-else>
  8180. <img src="../../assets/icon/checkedIs.png" alt /><span
  8181. >已选择</span
  8182. >
  8183. </div>
  8184. </div>
  8185. </div>
  8186. </div>
  8187. <div class="toolSort" v-if="toolType == 4">
  8188. <div class="tool">
  8189. <div class="whiteBIcon" @click="addTools2(26)">
  8190. <img
  8191. src="../../assets/icon/thirdToolList/courseDesign.png"
  8192. alt
  8193. />
  8194. <div style="margin: 5px 0">课程设计</div>
  8195. </div>
  8196. <div class="check" @click="addTools2(26)">
  8197. <img
  8198. src="../../assets/icon/checkNo.png"
  8199. alt
  8200. v-if="checktoolArray.indexOf(26) == -1"
  8201. />
  8202. <div class="checkDiv" v-else>
  8203. <img src="../../assets/icon/checkedIs.png" alt /><span
  8204. >已选择</span
  8205. >
  8206. </div>
  8207. </div>
  8208. </div>
  8209. <div class="tool">
  8210. <div class="whiteBIcon" @click="addTools2(25)">
  8211. <img
  8212. src="../../assets/icon/thirdToolList/evalua.png"
  8213. alt
  8214. />
  8215. <div style="margin: 5px 0">目标管理</div>
  8216. </div>
  8217. <div class="check" @click="addTools2(25)">
  8218. <img
  8219. src="../../assets/icon/checkNo.png"
  8220. alt
  8221. v-if="checktoolArray.indexOf(25) == -1"
  8222. />
  8223. <div class="checkDiv" v-else>
  8224. <img src="../../assets/icon/checkedIs.png" alt /><span
  8225. >已选择</span
  8226. >
  8227. </div>
  8228. </div>
  8229. </div>
  8230. </div>
  8231. </div>
  8232. </div>
  8233. </div>
  8234. </div> -->
  8235. <div
  8236. class="vedioBox"
  8237. style="margin-top: 10px; border-radius: 20px"
  8238. v-if="
  8239. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8240. .eList &&
  8241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8242. .eList.length &&
  8243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8244. .eList.length > 0 &&
  8245. tType != 2
  8246. "
  8247. >
  8248. <div
  8249. class="queTop"
  8250. style="
  8251. font-size: 20px;
  8252. padding: 15px 0 15px 37px;
  8253. font-weight: bold;
  8254. "
  8255. >
  8256. <!-- <div class="question" style="width: 30px">
  8257. <img src="../assets/icon/toolIcon.png" alt />
  8258. </div>
  8259. <div class="queTitle">
  8260. <div>工具</div>
  8261. </div>-->
  8262. 评一评
  8263. </div>
  8264. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8265. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8266. <el-table
  8267. :data="
  8268. chapInfoList[courseType].chapterInfo[0].taskJson[
  8269. taskCount
  8270. ].eList
  8271. "
  8272. :header-cell-style="{ background: '#F0F4FA' }"
  8273. :row-class-name="tableRowClassName"
  8274. border
  8275. stripe
  8276. style="width: 100%"
  8277. >
  8278. <el-table-column
  8279. label="评价名称"
  8280. align="center"
  8281. >
  8282. <template slot-scope="scope"
  8283. ><div>{{ scope.row.value }}</div></template
  8284. >
  8285. </el-table-column>
  8286. <el-table-column
  8287. label="评价描述"
  8288. align="center"
  8289. >
  8290. <template slot-scope="scope"
  8291. ><div>
  8292. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8293. </div></template
  8294. >
  8295. </el-table-column>
  8296. <el-table-column label="目标" align="center">
  8297. <template slot-scope="scope"
  8298. ><div>
  8299. {{
  8300. scope.row.target
  8301. ? scope.row.target[scope.row.target.length - 1]
  8302. : "-"
  8303. }}
  8304. </div></template
  8305. ></el-table-column
  8306. >
  8307. </el-table>
  8308. <!-- <div
  8309. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8310. .chapterInfo[0].taskJson[taskCount].eList"
  8311. :key="eIndex"
  8312. class="elist_input_box"
  8313. >
  8314. <div style="width: 95%">
  8315. <div
  8316. style="
  8317. display: flex;
  8318. flex-direction: row;
  8319. flex-wrap: nowrap;
  8320. align-items: center;
  8321. "
  8322. >
  8323. <div style="max-width: calc(100% - 285px)">
  8324. <span>{{ eItem.value }}</span>
  8325. </div>
  8326. <div
  8327. style="
  8328. padding-left: 25px;
  8329. display: flex;
  8330. flex-direction: row;
  8331. align-items: center;
  8332. "
  8333. >
  8334. <el-rate
  8335. v-model="eItem.score"
  8336. :colors="colors"
  8337. disabled
  8338. ></el-rate>
  8339. </div>
  8340. </div>
  8341. <div class="elist_inptu_text" style="padding-left: 10px">
  8342. <span v-if="eItem.detail != ''">{{
  8343. eItem.detail
  8344. }}</span>
  8345. <span v-else style="color: #b2b1b3; font-size: 14px"
  8346. >暂无描述...</span
  8347. >
  8348. </div>
  8349. </div>
  8350. </div> -->
  8351. </div>
  8352. <div
  8353. v-if="evalua"
  8354. style="
  8355. border: 1px solid #e5e5e5;
  8356. max-width: 650px;
  8357. width: 100%;
  8358. margin-top: 20px;
  8359. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8360. "
  8361. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8362. >
  8363. <div class="e_add_top">
  8364. <div class="e_add_title" style="width: 100%">
  8365. <!-- <span>目标管理名称</span> -->
  8366. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8367. <img
  8368. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8369. src="../../assets/line.png"
  8370. class="cru_line"
  8371. style="
  8372. width: 125px;
  8373. height: 20px;
  8374. bottom: -10px;
  8375. left: 5px;
  8376. "
  8377. />
  8378. <!-- <el-input
  8379. v-model="eTitle"
  8380. placeholder="请输入名称"
  8381. @change="setMindData"
  8382. ></el-input>-->
  8383. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  8384. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  8385. </div>
  8386. </div>
  8387. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8388. <div class="e_add_list_pbox">
  8389. <div class="e_add_list_pbox_title">
  8390. <!-- <span class="type_title">切换模式</span> -->
  8391. <div class="type_content">
  8392. <span
  8393. :class="{ active: typeMode == 1 }"
  8394. @click="typeMode = 1"
  8395. >目标树</span
  8396. >
  8397. <span
  8398. :class="{ active: typeMode == 2 }"
  8399. @click="typeMode = 2"
  8400. >目标罗盘</span
  8401. >
  8402. <!-- <span
  8403. :class="{ active: typeMode == 3 }"
  8404. @click="typeMode = 3"
  8405. >目标看板</span
  8406. > -->
  8407. </div>
  8408. </div>
  8409. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8410. <Mind
  8411. :showBar="false"
  8412. :mindData="data"
  8413. style="width: 100%"
  8414. v-show="typeMode == 1"
  8415. ></Mind>
  8416. <Sunburst
  8417. :Josn="eJson"
  8418. :num="eJSONNum"
  8419. style="width: 100%"
  8420. v-if="typeMode == 2"
  8421. ></Sunburst>
  8422. <SeeBoard
  8423. :Josn="eJson"
  8424. :num="eJSONNum"
  8425. :ename="eTitle"
  8426. style="width: 100%"
  8427. v-if="typeMode == 3"
  8428. >
  8429. </SeeBoard>
  8430. </div>
  8431. </div>
  8432. </div>
  8433. </div>
  8434. </div>
  8435. </div>
  8436. <!-- <div
  8437. class="project_box"
  8438. style="margin-top: 15px; padding-bottom: 30px"
  8439. >
  8440. <div
  8441. style="
  8442. display: flex;
  8443. flex-wrap: nowrap;
  8444. flex-direction: column;
  8445. position: relative;
  8446. "
  8447. >
  8448. <div class="queTop">
  8449. <div class="question">
  8450. <img src="../../assets/icon/homeWork.png" alt="" />
  8451. </div>
  8452. <div class="queTitle">
  8453. <div>作业提交<span>(提交图文视频等)</span></div>
  8454. <div>:任务:{{ task.task }}</div>
  8455. </div>
  8456. </div>
  8457. <div class="ediBottom">
  8458. <div
  8459. class="addEditor"
  8460. style="margin-top: 23px"
  8461. @click="openAddWork"
  8462. v-if="!isNoHomeWork"
  8463. >
  8464. 选择文件
  8465. </div>
  8466. <div
  8467. class="addEditor"
  8468. style="margin-top: 23px"
  8469. @click="openAddWork"
  8470. v-else
  8471. >
  8472. 已提交
  8473. </div>
  8474. </div>
  8475. </div>
  8476. </div>-->
  8477. </div>
  8478. </div>
  8479. <el-dialog
  8480. title="作业提交"
  8481. :visible.sync="dialogVisible"
  8482. :append-to-body="true"
  8483. width="500px"
  8484. :before-close="handleClose"
  8485. class="dialog_change"
  8486. >
  8487. <div class="marginT">
  8488. <div>上传文件</div>
  8489. <div style="display: flex; gap: 10px">
  8490. <div
  8491. class="chapter_add"
  8492. @click="addImg($event)"
  8493. v-if="studyJuri[0].cover.length == 0"
  8494. >
  8495. <div class="up_photo">
  8496. <img src="../../assets/icon/uploadImg.png" alt />
  8497. </div>
  8498. <!-- <input
  8499. type="file"
  8500. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8501. style="display: none"
  8502. @change="beforeUpload1($event, 1)"
  8503. /> -->
  8504. <input
  8505. type="file"
  8506. accept="*"
  8507. style="display: none"
  8508. @change="beforeUpload1($event, 1)"
  8509. />
  8510. <!-- <input
  8511. type="file"
  8512. accept="image/*"
  8513. capture="camera"
  8514. style="display: none"
  8515. @change="beforeUpload1($event, 1)"
  8516. /> -->
  8517. </div>
  8518. <div
  8519. class="chapter_add"
  8520. @click="addImg($event)"
  8521. v-if="studyJuri[0].cover.length == 0"
  8522. >
  8523. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8524. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8525. </div>
  8526. <input
  8527. type="file"
  8528. accept="image/*"
  8529. capture="camera"
  8530. style="display: none"
  8531. @change="beforeUpload1($event, 1)"
  8532. />
  8533. </div>
  8534. </div>
  8535. <div
  8536. class="chapter_add"
  8537. style="
  8538. display: flex;
  8539. width: 100%;
  8540. flex-direction: row;
  8541. flex-wrap: wrap;
  8542. justify-content: flex-start;
  8543. padding: 15px 0;
  8544. "
  8545. v-if="studyJuri[0].cover.length > 0"
  8546. >
  8547. <div class="upCover">
  8548. <img
  8549. :src="studyJuri[0].cover[0].url"
  8550. alt
  8551. v-if="fileType == 0"
  8552. />
  8553. <img :src="word" alt v-else-if="fileType == 1" />
  8554. <img :src="video" alt v-else-if="fileType == 2" />
  8555. <img :src="word2" alt v-else-if="fileType == 3" />
  8556. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8557. <div class="deleteWord" @click="clean(1)">
  8558. <img src="../../assets/icon/deleteWorks.png" alt />
  8559. </div>
  8560. </div>
  8561. </div>
  8562. </div>
  8563. <div
  8564. class="upload_send"
  8565. @click="addCourseWorks(taskCount)"
  8566. v-if="!proVisible"
  8567. >
  8568. 提交
  8569. </div>
  8570. </el-dialog>
  8571. </div>
  8572. </div>
  8573. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8574. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8575. '/courseDetail?userid=' +
  8576. userid +
  8577. '&oid=' +
  8578. oid +
  8579. '&org=' +
  8580. org +
  8581. '&cid=' +
  8582. classId +
  8583. '&courseId=' +
  8584. id +
  8585. '&tType=' +
  8586. tType +
  8587. '&screenType=' +
  8588. screenType
  8589. )"></classRoomHelper>
  8590. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8591. '/courseDetail?userid=' +
  8592. userid +
  8593. '&oid=' +
  8594. oid +
  8595. '&org=' +
  8596. org +
  8597. '&cid=' +
  8598. classId +
  8599. '&courseId=' +
  8600. id +
  8601. '&tType=' +
  8602. tType +
  8603. '&screenType=' +
  8604. screenType
  8605. )"></studentClassRoomHelper>
  8606. <div
  8607. class="pButton"
  8608. @click="(pzDialog = true), selectPz()"
  8609. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8610. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8611. >
  8612. <!-- 批 -->
  8613. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8614. </div>
  8615. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8616. <div class="pzTop2">
  8617. <!-- <div>评论</div>
  8618. <div @click="pzDialog = false">
  8619. <img src="../../assets/close1.png" alt="" />
  8620. </div> -->
  8621. <div class="checkbox">
  8622. <!-- <div class="check" style="font-size: 25px; position: unset">
  8623. 评论
  8624. </div> -->
  8625. <div class="cb-tabList">
  8626. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8627. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8628. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8629. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8630. </div>
  8631. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8632. <el-option label="时间降序" :value="1"></el-option>
  8633. <el-option label="时间升序" :value="2"></el-option>
  8634. <el-option label="我的评课" :value="3"></el-option>
  8635. </el-select>
  8636. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8637. </div>
  8638. </div>
  8639. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8640. <div class="pzListBox" v-if="pzList && pzList.length">
  8641. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8642. <div class="pzNavTop">
  8643. <div>评</div>
  8644. <div>
  8645. {{
  8646. pz.username && pz.username.length > 5
  8647. ? pz.username.substring(0, 5) + "..."
  8648. : pz.username
  8649. }}的评论
  8650. </div>
  8651. <div
  8652. class="pzDelete"
  8653. v-if="pz.userid == userid"
  8654. @click="deletePz(pz.id)"
  8655. >
  8656. 删除
  8657. </div>
  8658. </div>
  8659. <div
  8660. @click="checkImg(getImgList(pz.content))"
  8661. class="pzContent cont"
  8662. v-html="pz.content"
  8663. v-if="pz.type == '1'"
  8664. ></div>
  8665. <div class="pzContent" v-if="pz.type == '2'">
  8666. <audio :src="pz.content" controls="controls" ref="audio">
  8667. Your browser does not support the audio element.
  8668. </audio>
  8669. </div>
  8670. <div class="pzContent" v-if="pz.type == '3'">
  8671. <img
  8672. :src="pz.content"
  8673. style="width: 90%; margin: 0 auto; display: block"
  8674. @click="previewImg(pz.content)"
  8675. />
  8676. </div>
  8677. <div class="timeAndReply">
  8678. <div class="time">
  8679. {{ pz.time }}
  8680. </div>
  8681. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8682. </div>
  8683. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8684. <div
  8685. v-for="(h, hIndex) in pz.hfList"
  8686. :key="hIndex"
  8687. class="hfItem"
  8688. >
  8689. <div class="whoReplyWho">
  8690. <div class="hfName">{{ h.username }}</div>
  8691. <div class="hfImg">
  8692. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8693. </div>
  8694. <div class="hfName">{{ pz.username }}</div>
  8695. </div>
  8696. <div class="hfContent" v-html="h.content"></div>
  8697. <div class="hfBottom">
  8698. <div class="hfTime">{{ h.time }}</div>
  8699. <div
  8700. class="deleteHfItem"
  8701. @click="deleteReply(h.id)"
  8702. v-if="userid == h.userid"
  8703. >
  8704. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8705. </div>
  8706. </div>
  8707. </div>
  8708. </div>
  8709. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8710. <div class="replyInput">
  8711. <el-input v-model="reply[pzIndex]"></el-input>
  8712. </div>
  8713. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8714. </div> -->
  8715. </div>
  8716. </div>
  8717. <div class="noPz" v-else>
  8718. <img src="../../assets/icon/noPz.png" alt="" />
  8719. </div>
  8720. <div class="addPzButton">
  8721. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8722. 添加评论
  8723. </div>
  8724. <!-- <div class="img1">
  8725. <div @click="(addPzDialog = true), (pzType = 2)">
  8726. <img src="../../assets/audio.png" /><span>音频</span>
  8727. </div>
  8728. </div> -->
  8729. </div>
  8730. </div>
  8731. <div class="scoreList" v-if="commentTagShow==1">
  8732. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8733. </div>
  8734. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8735. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8736. </div>
  8737. </div>
  8738. <div
  8739. v-if="toolDialogVisible == true"
  8740. class="toolMask"
  8741. @click="toolDialogVisible = false"
  8742. ></div>
  8743. <div v-if="toolDialogVisible == true" class="addToolCss">
  8744. <div class="toolTop">
  8745. <div style="font-weight: bold">新增工具</div>
  8746. <div @click="toolDialogVisible = false">
  8747. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8748. </div>
  8749. </div>
  8750. <div class="tool_box">
  8751. <div class="tool_type_box">
  8752. <div class="chooseWho">
  8753. <div
  8754. :class="toolType == 0 ? 'isChooseActive' : ''"
  8755. @click="(toolType = 0), $forceUpdate()"
  8756. >
  8757. 互动类
  8758. </div>
  8759. <div
  8760. :class="toolType == 1 ? 'isChooseActive' : ''"
  8761. @click="(toolType = 1), $forceUpdate()"
  8762. >
  8763. 思维类
  8764. </div>
  8765. <div
  8766. :class="toolType == 2 ? 'isChooseActive' : ''"
  8767. @click="(toolType = 2), $forceUpdate()"
  8768. >
  8769. 测评类
  8770. </div>
  8771. <div
  8772. :class="toolType == 3 ? 'isChooseActive' : ''"
  8773. @click="(toolType = 3), $forceUpdate()"
  8774. >
  8775. 编程类
  8776. </div>
  8777. <div
  8778. :class="toolType == 5 ? 'isChooseActive' : ''"
  8779. @click="(toolType = 5), $forceUpdate()"
  8780. >
  8781. 学科类
  8782. </div>
  8783. </div>
  8784. </div>
  8785. <div>
  8786. <div class="toolSort" v-if="toolType == 0">
  8787. <div
  8788. class="tool"
  8789. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8790. @click="addTools2(10)"
  8791. >
  8792. <div class="whiteBIcon">
  8793. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8794. <div style="margin: 5px 0">倒计时</div>
  8795. </div>
  8796. <div class="check">
  8797. <div
  8798. v-if="checktoolArray.indexOf(10) == -1"
  8799. class="noChoose"
  8800. ></div>
  8801. <div v-else class="isChoose"></div>
  8802. </div>
  8803. </div>
  8804. <div
  8805. class="tool"
  8806. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8807. @click="addTools2(65)"
  8808. >
  8809. <div class="whiteBIcon">
  8810. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8811. <div style="margin: 5px 0">挑人</div>
  8812. </div>
  8813. <div class="check">
  8814. <div
  8815. v-if="checktoolArray.indexOf(65) == -1"
  8816. class="noChoose"
  8817. ></div>
  8818. <div v-else class="isChoose"></div>
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <div class="toolSort" v-if="toolType == 1">
  8823. <div
  8824. class="tool"
  8825. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8826. @click="addTools2(7)"
  8827. >
  8828. <div class="whiteBIcon">
  8829. <img
  8830. src="../../assets/icon/secondToolList/mindNetwork.png"
  8831. alt
  8832. />
  8833. <div style="margin: 5px 0">思维网格</div>
  8834. </div>
  8835. <div class="check">
  8836. <div
  8837. v-if="checktoolArray.indexOf(7) == -1"
  8838. class="noChoose"
  8839. ></div>
  8840. <div v-else class="isChoose"></div>
  8841. </div>
  8842. </div>
  8843. <div
  8844. class="tool"
  8845. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8846. @click="addTools2(1)"
  8847. >
  8848. <div class="whiteBIcon">
  8849. <img
  8850. src="../../assets/icon/secondToolList/whiteBoard.png"
  8851. alt
  8852. />
  8853. <div style="margin: 5px 0">电子白板</div>
  8854. </div>
  8855. <div class="check">
  8856. <div
  8857. v-if="checktoolArray.indexOf(1) == -1"
  8858. class="noChoose"
  8859. ></div>
  8860. <div v-else class="isChoose"></div>
  8861. </div>
  8862. </div>
  8863. <div
  8864. class="tool"
  8865. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8866. @click="addTools2(52)"
  8867. >
  8868. <div class="whiteBIcon">
  8869. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8870. <div style="margin: 5px 0">文档</div>
  8871. </div>
  8872. <div class="check">
  8873. <div
  8874. v-if="checktoolArray.indexOf(52) == -1"
  8875. class="noChoose"
  8876. ></div>
  8877. <div v-else class="isChoose"></div>
  8878. </div>
  8879. </div>
  8880. <div
  8881. class="tool"
  8882. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8883. @click="addTools2(3)"
  8884. >
  8885. <div class="whiteBIcon">
  8886. <img
  8887. src="../../assets/icon/secondToolList/mindMapping.png"
  8888. alt
  8889. />
  8890. <div style="margin: 5px 0">思维导图</div>
  8891. </div>
  8892. <div class="check">
  8893. <div
  8894. v-if="checktoolArray.indexOf(3) == -1"
  8895. class="noChoose"
  8896. ></div>
  8897. <div v-else class="isChoose"></div>
  8898. </div>
  8899. </div>
  8900. <div
  8901. class="tool"
  8902. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8903. @click="addTools2(48)"
  8904. >
  8905. <div class="whiteBIcon">
  8906. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8907. <div style="margin: 5px 0">表格</div>
  8908. </div>
  8909. <div class="check">
  8910. <div
  8911. v-if="checktoolArray.indexOf(48) == -1"
  8912. class="noChoose"
  8913. ></div>
  8914. <div v-else class="isChoose"></div>
  8915. </div>
  8916. </div>
  8917. </div>
  8918. <div class="toolSort" v-if="toolType == 6">
  8919. <div v-show="tooC == 49">
  8920. <img
  8921. @click="addTools(tooC, toolIndex, taskCount)"
  8922. src="../../assets/icon/fourthToolList/group.png"
  8923. alt
  8924. />
  8925. <div style="margin: 5px 0">学生分组</div>
  8926. </div>
  8927. </div>
  8928. <div class="toolSort" v-if="toolType == 2">
  8929. <div
  8930. class="tool"
  8931. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8932. @click="addTools2(16)"
  8933. >
  8934. <div class="whiteBIcon">
  8935. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8936. <div style="margin: 5px 0">作业提交</div>
  8937. </div>
  8938. <div class="check">
  8939. <div
  8940. v-if="checktoolArray.indexOf(16) == -1"
  8941. class="noChoose"
  8942. ></div>
  8943. <div v-else class="isChoose"></div>
  8944. </div>
  8945. </div>
  8946. <div
  8947. class="tool"
  8948. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8949. @click="addTools2(50)"
  8950. >
  8951. <div class="whiteBIcon">
  8952. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8953. <div style="margin: 5px 0">批量上传</div>
  8954. </div>
  8955. <div class="check">
  8956. <div
  8957. v-if="checktoolArray.indexOf(50) == -1"
  8958. class="noChoose"
  8959. ></div>
  8960. <div v-else class="isChoose"></div>
  8961. </div>
  8962. </div>
  8963. </div>
  8964. <div class="toolSort" v-if="toolType == 3">
  8965. <div
  8966. class="tool"
  8967. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8968. @click="addTools2(18)"
  8969. >
  8970. <div class="whiteBIcon">
  8971. <img
  8972. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8973. alt
  8974. />
  8975. <div style="margin: 5px 0">训练平台</div>
  8976. </div>
  8977. <div class="check">
  8978. <div
  8979. v-if="checktoolArray.indexOf(18) == -1"
  8980. class="noChoose"
  8981. ></div>
  8982. <div v-else class="isChoose"></div>
  8983. </div>
  8984. </div>
  8985. <div
  8986. class="tool"
  8987. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8988. @click="addTools2(21)"
  8989. >
  8990. <div class="whiteBIcon">
  8991. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8992. <div style="margin: 5px 0">AIoT Blockly</div>
  8993. </div>
  8994. <div class="check">
  8995. <div
  8996. v-if="checktoolArray.indexOf(21) == -1"
  8997. class="noChoose"
  8998. ></div>
  8999. <div v-else class="isChoose"></div>
  9000. </div>
  9001. </div>
  9002. <div
  9003. class="tool"
  9004. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9005. @click="addTools2(23)"
  9006. >
  9007. <div class="whiteBIcon">
  9008. <img
  9009. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9010. alt
  9011. />
  9012. <div style="margin: 5px 0">AI Python</div>
  9013. </div>
  9014. <div class="check">
  9015. <div
  9016. v-if="checktoolArray.indexOf(23) == -1"
  9017. class="noChoose"
  9018. ></div>
  9019. <div v-else class="isChoose"></div>
  9020. </div>
  9021. </div>
  9022. <div
  9023. class="tool"
  9024. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9025. @click="addTools2(24)"
  9026. >
  9027. <div class="whiteBIcon">
  9028. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9029. <div style="margin: 5px 0">AI Blockly</div>
  9030. </div>
  9031. <div class="check">
  9032. <div
  9033. v-if="checktoolArray.indexOf(24) == -1"
  9034. class="noChoose"
  9035. ></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div
  9040. class="tool"
  9041. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9042. @click="addTools2(32)"
  9043. >
  9044. <div class="whiteBIcon">
  9045. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9046. <div style="margin: 5px 0">源码编辑</div>
  9047. </div>
  9048. <div class="check">
  9049. <div
  9050. v-if="checktoolArray.indexOf(32) == -1"
  9051. class="noChoose"
  9052. ></div>
  9053. <div v-else class="isChoose"></div>
  9054. </div>
  9055. </div>
  9056. <div
  9057. class="tool"
  9058. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9059. @click="addTools2(57)"
  9060. >
  9061. <div class="whiteBIcon">
  9062. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9063. <div style="margin: 5px 0">CocoPi</div>
  9064. </div>
  9065. <div class="check">
  9066. <div
  9067. v-if="checktoolArray.indexOf(57) == -1"
  9068. class="noChoose"
  9069. ></div>
  9070. <div v-else class="isChoose"></div>
  9071. </div>
  9072. </div>
  9073. <div
  9074. class="tool"
  9075. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9076. @click="addTools2(63)"
  9077. >
  9078. <div class="whiteBIcon">
  9079. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9080. <div style="margin: 5px 0">海龟编程</div>
  9081. </div>
  9082. <div class="check">
  9083. <div
  9084. v-if="checktoolArray.indexOf(63) == -1"
  9085. class="noChoose"
  9086. ></div>
  9087. <div v-else class="isChoose"></div>
  9088. </div>
  9089. </div>
  9090. <div
  9091. class="tool"
  9092. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9093. @click="addTools2(71)"
  9094. >
  9095. <div class="whiteBIcon">
  9096. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9097. <div style="margin: 5px 0">AI智能体</div>
  9098. </div>
  9099. <div class="check">
  9100. <div
  9101. v-if="checktoolArray.indexOf(71) == -1"
  9102. class="noChoose"
  9103. ></div>
  9104. <div v-else class="isChoose"></div>
  9105. </div>
  9106. </div>
  9107. </div>
  9108. <div class="toolSort" v-if="toolType == 7">
  9109. <div
  9110. class="tool"
  9111. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9112. @click="addTools2(40)"
  9113. >
  9114. <div class="whiteBIcon">
  9115. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9116. <div style="margin: 5px 0">个人评价</div>
  9117. </div>
  9118. <div class="check">
  9119. <div
  9120. v-if="checktoolArray.indexOf(40) == -1"
  9121. class="noChoose"
  9122. ></div>
  9123. <div v-else class="isChoose"></div>
  9124. </div>
  9125. </div>
  9126. </div>
  9127. <div class="toolSort" v-if="toolType == 5">
  9128. <div
  9129. class="tool"
  9130. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9131. @click="addTools2(28)"
  9132. >
  9133. <div class="whiteBIcon">
  9134. <img
  9135. src="../../assets/icon/secondToolList/translation.png"
  9136. alt
  9137. />
  9138. <div style="margin: 5px 0">翻译</div>
  9139. </div>
  9140. <div class="check">
  9141. <div
  9142. v-if="checktoolArray.indexOf(28) == -1"
  9143. class="noChoose"
  9144. ></div>
  9145. <div v-else class="isChoose"></div>
  9146. </div>
  9147. </div>
  9148. <div
  9149. class="tool"
  9150. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9151. @click="addTools2(31)"
  9152. >
  9153. <div class="whiteBIcon">
  9154. <img
  9155. src="../../assets/icon/secondToolList/networkPanel.png"
  9156. alt
  9157. />
  9158. <div style="margin: 5px 0">数字画板</div>
  9159. </div>
  9160. <div class="check">
  9161. <div
  9162. v-if="checktoolArray.indexOf(31) == -1"
  9163. class="noChoose"
  9164. ></div>
  9165. <div v-else class="isChoose"></div>
  9166. </div>
  9167. </div>
  9168. <div
  9169. class="tool"
  9170. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9171. @click="addTools2(39)"
  9172. >
  9173. <div class="whiteBIcon">
  9174. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9175. <div style="margin: 5px 0">GeoGebra</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(39) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div>
  9185. <div
  9186. class="tool"
  9187. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9188. @click="addTools2(66)"
  9189. >
  9190. <div class="whiteBIcon">
  9191. <img
  9192. src="../../assets/icon/secondToolList/formulaEdi.png"
  9193. alt
  9194. />
  9195. <div style="margin: 5px 0">公式编辑</div>
  9196. </div>
  9197. <div class="check">
  9198. <div
  9199. v-if="checktoolArray.indexOf(66) == -1"
  9200. class="noChoose"
  9201. ></div>
  9202. <div v-else class="isChoose"></div>
  9203. </div>
  9204. </div>
  9205. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9206. <div class="whiteBIcon" @click="addTools2(67)">
  9207. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9208. <div style="margin: 5px 0">分子结构</div>
  9209. </div>
  9210. <div class="check" @click="addTools2(67)">
  9211. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9212. <div v-else class="isChoose"></div>
  9213. </div>
  9214. </div> -->
  9215. <div
  9216. class="tool"
  9217. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9218. @click="addTools2(68)"
  9219. >
  9220. <div class="whiteBIcon">
  9221. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9222. <div style="margin: 5px 0">时间轴</div>
  9223. </div>
  9224. <div class="check">
  9225. <div
  9226. v-if="checktoolArray.indexOf(68) == -1"
  9227. class="noChoose"
  9228. ></div>
  9229. <div v-else class="isChoose"></div>
  9230. </div>
  9231. </div>
  9232. <!-- <div
  9233. class="tool"
  9234. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9235. @click="addTools2(69)"
  9236. >
  9237. <div class="whiteBIcon">
  9238. <img src="../../assets/icon/secondToolList/english.png" alt />
  9239. <div style="margin: 5px 0">英语写作</div>
  9240. </div>
  9241. <div class="check">
  9242. <div
  9243. v-if="checktoolArray.indexOf(69) == -1"
  9244. class="noChoose"
  9245. ></div>
  9246. <div v-else class="isChoose"></div>
  9247. </div>
  9248. </div> -->
  9249. </div>
  9250. <div class="toolSort" v-if="toolType == 4">
  9251. <div
  9252. class="tool"
  9253. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9254. @click="addTools2(26)"
  9255. >
  9256. <div class="whiteBIcon">
  9257. <img
  9258. src="../../assets/icon/thirdToolList/courseDesign.png"
  9259. alt
  9260. />
  9261. <div style="margin: 5px 0">课程设计</div>
  9262. </div>
  9263. <div class="check">
  9264. <div
  9265. v-if="checktoolArray.indexOf(26) == -1"
  9266. class="noChoose"
  9267. ></div>
  9268. <div v-else class="isChoose"></div>
  9269. </div>
  9270. </div>
  9271. <div
  9272. class="tool"
  9273. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9274. @click="addTools2(25)"
  9275. >
  9276. <div class="whiteBIcon">
  9277. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9278. <div style="margin: 5px 0">目标管理</div>
  9279. </div>
  9280. <div class="check">
  9281. <div
  9282. v-if="checktoolArray.indexOf(25) == -1"
  9283. class="noChoose"
  9284. ></div>
  9285. <div v-else class="isChoose"></div>
  9286. </div>
  9287. </div>
  9288. </div>
  9289. </div>
  9290. </div>
  9291. <span
  9292. slot="footer"
  9293. class="dialog-footer"
  9294. style="display: block; text-align: center; padding: 0 0 10px 0"
  9295. >
  9296. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9297. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9298. </span>
  9299. </div>
  9300. <div
  9301. v-if="replyDialogVisible == true"
  9302. class="addDialogCss"
  9303. v-el-drag-dialog
  9304. >
  9305. <div class="pzTop">
  9306. <div class="teacherPz">
  9307. <div class="teacherPzImg">
  9308. <img src="../../assets/icon/teacherPz.png" alt="" />
  9309. </div>
  9310. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9311. </div>
  9312. <div @click="replyDialogVisible = false">
  9313. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9314. </div>
  9315. </div>
  9316. <div class="addPzBox">
  9317. <!-- <div class="addPzCheck">
  9318. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9319. >文本</span
  9320. >
  9321. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9322. >音频</span
  9323. >
  9324. </div> -->
  9325. <div style="height: calc(100% - 50px)">
  9326. <editor-bar
  9327. class="binfo_input pzConText"
  9328. style="width: 100% !important; margin: 0 auto"
  9329. placeholder="请输入回复描述"
  9330. v-model="reply"
  9331. @change="change"
  9332. ></editor-bar>
  9333. </div>
  9334. <div class="addTextCss" @click="addHf">确定</div>
  9335. </div>
  9336. </div>
  9337. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9338. <div class="pzTop">
  9339. <div class="teacherPz">
  9340. <div class="teacherPzImg">
  9341. <img src="../../assets/icon/teacherPz.png" alt="" />
  9342. </div>
  9343. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9344. </div>
  9345. <div @click="addPzDialog = false">
  9346. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9347. </div>
  9348. </div>
  9349. <div class="addPzBox">
  9350. <div class="addPzCheck">
  9351. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9352. >文本</span
  9353. >
  9354. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9355. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9356. >音频</span
  9357. >
  9358. </div>
  9359. <div style="height: calc(100% - 95px)">
  9360. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9361. v-if="pzType == 1"></textarea> -->
  9362. <editor-bar
  9363. class="binfo_input pzConText"
  9364. style="width: 100% !important"
  9365. placeholder="请输入任务描述"
  9366. v-model="pzConText"
  9367. @change="change"
  9368. v-if="pzType == 1"
  9369. ></editor-bar>
  9370. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9371. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9372. <div @click="addImg($event)">
  9373. <el-button type="primary">上传图片</el-button>
  9374. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9375. @change="beforeUpload1($event, 4)" />
  9376. </div>
  9377. </div> -->
  9378. </div>
  9379. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9380. 确定
  9381. </div>
  9382. </div>
  9383. </div>
  9384. <div v-if="proVisible" class="mask">
  9385. <div class="progressBox">
  9386. <!-- <div id="closePro" class="closeCss">
  9387. <img src="../../assets/icon/close.png" alt />
  9388. </div> -->
  9389. <div class="lbox">
  9390. <img src="../../assets/loading.gif" />上传中,请稍后
  9391. </div>
  9392. <div style="margin-bottom: 10px">
  9393. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9394. </div>
  9395. <el-progress
  9396. :text-inside="true"
  9397. :stroke-width="20"
  9398. :percentage="progress"
  9399. style="width: 80%"
  9400. ></el-progress>
  9401. </div>
  9402. </div>
  9403. <div v-if="proVisible2" class="mask">
  9404. <div class="progressBox">
  9405. <div class="lbox">
  9406. <img src="../../assets/loading.gif" />上传中,请稍后
  9407. </div>
  9408. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9409. </div>
  9410. </div>
  9411. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9412. <img width="100%" :src="dialogImageUrl" alt />
  9413. </el-dialog>
  9414. <el-dialog
  9415. :title="noteName != '' ? noteName : '查看问卷'"
  9416. :visible.sync="dialogVisible5"
  9417. :append-to-body="true"
  9418. width="1000px"
  9419. :before-close="handleClose"
  9420. class="dialog_diy dialog_diy3"
  9421. >
  9422. <div>
  9423. <div
  9424. class="a_add_title"
  9425. style="
  9426. display: flex;
  9427. flex-direction: row;
  9428. align-items: center;
  9429. justify-content: center;
  9430. "
  9431. >
  9432. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9433. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9434. </div>
  9435. <div class="a_addBox">
  9436. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9437. 题目内容
  9438. </div>
  9439. <div
  9440. class="a_add_box"
  9441. v-for="(item1, index1) in askJson.askCount"
  9442. :key="index1"
  9443. >
  9444. <div class="a_add_head">
  9445. <div style="display: flex">
  9446. <span class="askIndex"> {{ index1 + 1 }}</span>
  9447. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9448. </div>
  9449. <img
  9450. v-if="askJson.askJson[index1].img"
  9451. :src="askJson.askJson[index1].img"
  9452. style="height: 300px; margin-top: 10px; max-width: 100%"
  9453. />
  9454. </div>
  9455. <div class="a_add_body">
  9456. <div class="a_add_input">
  9457. <el-radio-group
  9458. v-model="radio[index1]"
  9459. v-if="
  9460. askJson.askJson[index1].type == '1' ||
  9461. !askJson.askJson[index1].type
  9462. "
  9463. >
  9464. <el-radio
  9465. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9466. .checkList"
  9467. :key="checkIndex"
  9468. :label="checkIndex"
  9469. :disabled="isAnswer"
  9470. class="redioStyle"
  9471. ><span v-html="item2"></span
  9472. ></el-radio>
  9473. </el-radio-group>
  9474. <el-checkbox-group
  9475. v-model="radio[index1]"
  9476. v-if="askJson.askJson[index1].type == '2'"
  9477. >
  9478. <el-checkbox
  9479. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9480. .checkList"
  9481. :key="checkIndex1"
  9482. :label="checkIndex1"
  9483. :disabled="isAnswer"
  9484. class="redioStyle"
  9485. ><span v-html="item2"></span>
  9486. </el-checkbox>
  9487. </el-checkbox-group>
  9488. </div>
  9489. </div>
  9490. </div>
  9491. </div>
  9492. </div>
  9493. <span slot="footer" class="dialog-footer">
  9494. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9495. >取 消</el-button
  9496. >
  9497. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9498. >确 定</el-button
  9499. >
  9500. </span>
  9501. </el-dialog>
  9502. <el-dialog
  9503. :title="noteName != '' ? noteName : '查看问卷'"
  9504. :visible.sync="dialogVisible5Teacher"
  9505. :append-to-body="true"
  9506. width="1000px"
  9507. :before-close="handleClose"
  9508. class="dialog_diy dialog_diy3"
  9509. >
  9510. <div>
  9511. <div class="w_name">
  9512. 学生姓名:<span>{{ sStudent.student }}</span>
  9513. </div>
  9514. <div
  9515. class="a_add_title"
  9516. style="
  9517. display: flex;
  9518. flex-direction: row;
  9519. align-items: center;
  9520. justify-content: center;
  9521. "
  9522. >
  9523. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9524. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9525. </div>
  9526. <div class="a_addBox">
  9527. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9528. 题目内容
  9529. </div>
  9530. <div
  9531. class="a_add_box"
  9532. v-for="(item1, index1) in askJson.askCount"
  9533. :key="index1"
  9534. >
  9535. <div class="a_add_head">
  9536. <div style="display: flex">
  9537. <span class="askIndex">{{ index1 + 1 }}</span>
  9538. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9539. </div>
  9540. <img
  9541. v-if="askJson.askJson[index1].img"
  9542. :src="askJson.askJson[index1].img"
  9543. style="height: 300px; margin-top: 10px; max-width: 100%"
  9544. />
  9545. </div>
  9546. <div class="a_add_body">
  9547. <div class="a_add_input">
  9548. <el-radio-group
  9549. v-model="radio[index1]"
  9550. v-if="
  9551. askJson.askJson[index1].type == '1' ||
  9552. !askJson.askJson[index1].type
  9553. "
  9554. >
  9555. <el-radio
  9556. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9557. .checkList"
  9558. :key="checkIndex"
  9559. :label="checkIndex"
  9560. :disabled="isAnswer"
  9561. class="redioStyle"
  9562. ><span v-html="item2"></span
  9563. ></el-radio>
  9564. </el-radio-group>
  9565. <el-checkbox-group
  9566. v-model="radio[index1]"
  9567. v-if="askJson.askJson[index1].type == '2'"
  9568. >
  9569. <el-checkbox
  9570. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9571. .checkList"
  9572. :key="checkIndex1"
  9573. :label="checkIndex1"
  9574. :disabled="isAnswer"
  9575. class="redioStyle"
  9576. ><span v-html="item2"></span>
  9577. </el-checkbox>
  9578. </el-checkbox-group>
  9579. </div>
  9580. </div>
  9581. </div>
  9582. </div>
  9583. </div>
  9584. <span slot="footer" class="dialog-footer">
  9585. <el-button
  9586. @click="dialogVisible5Teacher = false"
  9587. v-show="noteName == ''"
  9588. >取 消</el-button
  9589. >
  9590. <el-button
  9591. type="primary"
  9592. @click="addStudentAskTeacher"
  9593. v-show="noteName == ''"
  9594. >确 定</el-button
  9595. >
  9596. </span>
  9597. </el-dialog>
  9598. <el-dialog
  9599. :title="noteName != '' ? noteName : '查看选择题'"
  9600. :visible.sync="dialogVisibleChoice"
  9601. :append-to-body="true"
  9602. width="1000px"
  9603. :before-close="handleClose"
  9604. class="dialog_diy dialog_diy3"
  9605. >
  9606. <div>
  9607. <!-- <div class="a_add_title" style="
  9608. display: flex;
  9609. flex-direction: row;
  9610. align-items: center;
  9611. justify-content: center;
  9612. ">
  9613. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9614. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9615. </div> -->
  9616. <div class="a_addBox">
  9617. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9618. 题目内容
  9619. </div>
  9620. <div
  9621. class="a_add_box"
  9622. v-for="(item1, index1) in testJson.testCount"
  9623. :key="index1"
  9624. >
  9625. <div class="a_add_head">
  9626. <div style="display: flex">
  9627. <span class="askIndex">{{ index1 + 1 }}</span>
  9628. <div
  9629. v-if="testJson.testJson[index1].type == '1'"
  9630. style="margin-right: 5px; min-width: 70px"
  9631. >
  9632. (单选题)
  9633. </div>
  9634. <div
  9635. v-if="testJson.testJson[index1].type == '2'"
  9636. style="margin-right: 5px; min-width: 70px"
  9637. >
  9638. (多选题)
  9639. </div>
  9640. <div>题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9641. </div>
  9642. <img
  9643. v-if="testJson.testJson[index1].img"
  9644. :src="testJson.testJson[index1].img"
  9645. style="height: 300px; margin-top: 10px; max-width: 100%"
  9646. />
  9647. </div>
  9648. <div
  9649. class="timuImgBox"
  9650. v-if="
  9651. testJson.testJson[index1].timuList &&
  9652. testJson.testJson[index1].timuList.length
  9653. "
  9654. >
  9655. <div
  9656. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9657. :key="tIndex"
  9658. class="timuImg"
  9659. @click.stop="previewImg(timg.src)"
  9660. >
  9661. <img :src="timg.src" alt="" />
  9662. </div>
  9663. </div>
  9664. <div class="a_add_body">
  9665. <div class="a_add_input">
  9666. <el-radio-group
  9667. v-model="radio[index1]"
  9668. v-if="testJson.testJson[index1].type == '1'"
  9669. >
  9670. <div class="radioBox">
  9671. <el-radio
  9672. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9673. .checkList"
  9674. :key="checkIndex"
  9675. :label="checkIndex"
  9676. :disabled="isAnswer"
  9677. class="redioStyle"
  9678. >
  9679. <div
  9680. style="margin-right: 10px"
  9681. v-if="item2 && item2.imgType && item2.imgType == 1"
  9682. >
  9683. <div class="inImg" @click.stop="previewImg(item2.src)">
  9684. <img :src="item2.src" alt="" />
  9685. </div>
  9686. </div>
  9687. <span v-else v-html="item2"></span>
  9688. </el-radio>
  9689. </div>
  9690. </el-radio-group>
  9691. <el-checkbox-group
  9692. v-model="radio[index1]"
  9693. v-if="testJson.testJson[index1].type == '2'"
  9694. >
  9695. <div class="radioBox">
  9696. <el-checkbox
  9697. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9698. .checkList"
  9699. :key="checkIndex"
  9700. :label="checkIndex"
  9701. :disabled="isAnswer"
  9702. class="redioStyle"
  9703. >
  9704. <div
  9705. style="margin-right: 10px"
  9706. v-if="item2 && item2.imgType && item2.imgType == 1"
  9707. >
  9708. <div class="inImg" @click.stop="previewImg(item2.src)">
  9709. <img :src="item2.src" alt="" />
  9710. </div>
  9711. </div>
  9712. <span v-else v-html="item2"></span>
  9713. </el-checkbox>
  9714. </div>
  9715. </el-checkbox-group>
  9716. </div>
  9717. </div>
  9718. </div>
  9719. </div>
  9720. </div>
  9721. <span slot="footer" class="dialog-footer">
  9722. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9723. >取 消</el-button
  9724. >
  9725. <el-button
  9726. type="primary"
  9727. @click="addStudentTest"
  9728. v-show="noteName == ''"
  9729. >确 定</el-button
  9730. >
  9731. </span>
  9732. </el-dialog>
  9733. <el-dialog
  9734. :title="noteName != '' ? noteName : '查看选择题'"
  9735. :visible.sync="dialogVisibleChoiceTeacher"
  9736. :append-to-body="true"
  9737. width="1000px"
  9738. :before-close="handleClose"
  9739. class="dialog_diy dialog_diy3"
  9740. >
  9741. <div>
  9742. <div class="w_name">
  9743. 学生姓名:<span>{{ sStudent.student }}</span>
  9744. </div>
  9745. <div class="a_addBox">
  9746. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9747. 题目内容
  9748. </div>
  9749. <div
  9750. class="a_add_box"
  9751. v-for="(item1, index1) in testJson.testCount"
  9752. :key="index1"
  9753. >
  9754. <div class="a_add_head">
  9755. <div style="display: flex">
  9756. <span class="askIndex">{{ index1 + 1 }}</span>
  9757. <div
  9758. v-if="testJson.testJson[index1].type == '1'"
  9759. style="margin-right: 5px; min-width: 70px"
  9760. >
  9761. (单选题)
  9762. </div>
  9763. <div
  9764. v-if="testJson.testJson[index1].type == '2'"
  9765. style="margin-right: 5px; min-width: 70px"
  9766. >
  9767. (多选题)
  9768. </div>
  9769. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9770. </div>
  9771. <img
  9772. v-if="testJson.testJson[index1].img"
  9773. :src="testJson.testJson[index1].img"
  9774. style="height: 300px; margin-top: 10px; max-width: 100%"
  9775. />
  9776. </div>
  9777. <div
  9778. class="timuImgBox"
  9779. v-if="
  9780. testJson.testJson[index1].timuList &&
  9781. testJson.testJson[index1].timuList.length
  9782. "
  9783. >
  9784. <div
  9785. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9786. :key="tIndex"
  9787. class="timuImg"
  9788. @click.stop="previewImg(timg.src)"
  9789. >
  9790. <img :src="timg.src" alt="" />
  9791. </div>
  9792. </div>
  9793. <div class="a_add_body">
  9794. <div class="a_add_input">
  9795. <el-radio-group
  9796. v-model="radio[index1]"
  9797. v-if="testJson.testJson[index1].type == '1'"
  9798. >
  9799. <div class="radioBox">
  9800. <el-radio
  9801. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9802. .checkList"
  9803. :key="checkIndex"
  9804. :label="checkIndex"
  9805. :disabled="isAnswer"
  9806. class="redioStyle"
  9807. >
  9808. <div
  9809. style="margin-right: 10px"
  9810. v-if="item2 && item2.imgType && item2.imgType == 1"
  9811. >
  9812. <div class="inImg" @click.stop="previewImg(item2.src)">
  9813. <img :src="item2.src" alt="" />
  9814. </div>
  9815. </div>
  9816. <span v-else v-html="item2"></span>
  9817. </el-radio>
  9818. </div>
  9819. </el-radio-group>
  9820. <el-checkbox-group
  9821. v-model="radio[index1]"
  9822. v-if="testJson.testJson[index1].type == '2'"
  9823. >
  9824. <div class="radioBox">
  9825. <el-checkbox
  9826. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9827. .checkList"
  9828. :key="checkIndex"
  9829. :label="checkIndex"
  9830. :disabled="isAnswer"
  9831. class="redioStyle"
  9832. >
  9833. <div
  9834. style="margin-right: 10px"
  9835. v-if="item2 && item2.imgType && item2.imgType == 1"
  9836. >
  9837. <div class="inImg" @click.stop="previewImg(item2.src)">
  9838. <img :src="item2.src" alt="" />
  9839. </div>
  9840. </div>
  9841. <span v-else v-html="item2"></span>
  9842. </el-checkbox>
  9843. </div>
  9844. </el-checkbox-group>
  9845. </div>
  9846. </div>
  9847. </div>
  9848. </div>
  9849. </div>
  9850. <span slot="footer" class="dialog-footer">
  9851. <el-button
  9852. @click="dialogVisibleChoiceTeacher = false"
  9853. v-show="noteName == ''"
  9854. >取 消</el-button
  9855. >
  9856. <el-button
  9857. type="primary"
  9858. @click="addStudentTestTeacher"
  9859. v-show="noteName == ''"
  9860. >确 定</el-button
  9861. >
  9862. </span>
  9863. </el-dialog>
  9864. <el-dialog
  9865. title="查看富文本"
  9866. :visible.sync="dialogVisible1"
  9867. :append-to-body="true"
  9868. width="500px"
  9869. :before-close="handleClose"
  9870. class="dialog_diy textCss"
  9871. >
  9872. <el-form style="font-size: 20px">
  9873. <el-form-item label="文本标题" class="textTitle">
  9874. <div style="font-size: 20px">{{ text.name }}</div>
  9875. </el-form-item>
  9876. <div>富文本内容</div>
  9877. <div
  9878. v-html="text.url"
  9879. style="font-size: 18px; padding: 40px 0 0 0"
  9880. ></div>
  9881. </el-form>
  9882. <span slot="footer" class="dialog-footer">
  9883. <el-button type="primary" @click="dialogVisible1 = false"
  9884. >确定</el-button
  9885. >
  9886. </span>
  9887. </el-dialog>
  9888. <el-dialog
  9889. title="文件预览"
  9890. :visible.sync="dialogVisible3"
  9891. width="50%"
  9892. :before-close="handleClose"
  9893. class="dialog_diy"
  9894. :class="{ fullStyle: full }"
  9895. >
  9896. <div slot="title" class="header-title">
  9897. <div style="color: #fff">文件预览</div>
  9898. <div style="position: absolute; top: 19px; right: 50px">
  9899. <img
  9900. src="../../assets/full.png"
  9901. style="height: 16px; cursor: pointer"
  9902. alt=""
  9903. @click="fullTools"
  9904. />
  9905. </div>
  9906. </div>
  9907. <pdf
  9908. v-if="showPDF"
  9909. :pdfUrl="pptImgUrl"
  9910. style="width: 100%; height: 520px; overflow: auto"
  9911. :class="{ fullStyle: full }"
  9912. ></pdf>
  9913. <iframe
  9914. v-else
  9915. :src="pptImgUrl"
  9916. frameborder="0"
  9917. width="100%"
  9918. height="600"
  9919. :class="{ fullStyle: full }"
  9920. ></iframe>
  9921. </el-dialog>
  9922. <el-dialog
  9923. title="文件预览"
  9924. :visible.sync="dialogVisible6"
  9925. width="50%"
  9926. :before-close="handleClose"
  9927. class="dialog_diy"
  9928. >
  9929. <iframe
  9930. :src="pptImgUrl1"
  9931. frameborder="0"
  9932. width="100%"
  9933. height="600"
  9934. ></iframe>
  9935. </el-dialog>
  9936. <el-dialog
  9937. title="提示"
  9938. :visible.sync="dialogVisible4"
  9939. :append-to-body="true"
  9940. width="800px"
  9941. :before-close="handleClose"
  9942. class="dialog_diy notice"
  9943. >
  9944. <div>此功能暂未开放!</div>
  9945. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9946. </el-dialog>
  9947. <el-dialog
  9948. title="问答"
  9949. :visible.sync="answerDialogVisible"
  9950. :append-to-body="true"
  9951. width="800px"
  9952. :before-close="handleClose"
  9953. class="dialog_diy"
  9954. >
  9955. <div>
  9956. <div
  9957. style="
  9958. display: flex;
  9959. flex-wrap: nowrap;
  9960. flex-direction: column;
  9961. position: relative;
  9962. "
  9963. >
  9964. <div class="queTop" style="padding: 20px 0 20px 0">
  9965. <div class="question">
  9966. <img src="../../assets/icon/question.png" alt />
  9967. </div>
  9968. <div class="queTitle">
  9969. <div style="width: 90px; min-width: 90px">提问:</div>
  9970. <div>{{ answerQ }}</div>
  9971. </div>
  9972. </div>
  9973. <div class="ediBottom">
  9974. <textarea
  9975. rows="6"
  9976. class="binfo_input"
  9977. cols
  9978. style="width: 95%; height: 120px"
  9979. v-model="questionAnswer"
  9980. ></textarea>
  9981. </div>
  9982. </div>
  9983. </div>
  9984. <div slot="footer">
  9985. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9986. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9987. </div>
  9988. </el-dialog>
  9989. <el-dialog
  9990. title="问答"
  9991. :visible.sync="answerDialogVisibleTeacher"
  9992. :append-to-body="true"
  9993. width="800px"
  9994. :before-close="handleClose"
  9995. class="dialog_diy"
  9996. >
  9997. <div>
  9998. <div class="w_name">
  9999. 学生姓名:<span>{{ sStudent.student }}</span>
  10000. </div>
  10001. <div
  10002. style="
  10003. display: flex;
  10004. flex-wrap: nowrap;
  10005. flex-direction: column;
  10006. position: relative;
  10007. "
  10008. >
  10009. <div class="queTop" style="padding: 20px 0 20px 0">
  10010. <div class="question">
  10011. <img src="../../assets/icon/question.png" alt />
  10012. </div>
  10013. <div class="queTitle">
  10014. <div style="width: 90px; min-width: 90px">提问:</div>
  10015. <div>{{ answerQ }}</div>
  10016. </div>
  10017. </div>
  10018. <div class="ediBottom">
  10019. <textarea
  10020. rows="6"
  10021. class="binfo_input"
  10022. cols
  10023. style="width: 95%; height: 120px"
  10024. v-model="questionAnswer"
  10025. ></textarea>
  10026. </div>
  10027. </div>
  10028. </div>
  10029. <div slot="footer">
  10030. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10031. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10032. </div>
  10033. </el-dialog>
  10034. <el-dialog
  10035. title="倒计时"
  10036. :visible.sync="timeDialogVisible"
  10037. :append-to-body="true"
  10038. width="800px"
  10039. :before-close="handleClose"
  10040. class="dialog_diy"
  10041. >
  10042. <div>
  10043. <div style="margin-bottom: 20px; color: #999">
  10044. 提示:点击“+”或“-”修改倒计时时长。
  10045. </div>
  10046. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10047. </div>
  10048. <div slot="footer">
  10049. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10050. </div>
  10051. </el-dialog>
  10052. <el-dialog
  10053. title="权限设置"
  10054. :visible.sync="juriVisible"
  10055. :append-to-body="true"
  10056. width="400px"
  10057. :before-close="handleClose"
  10058. class="dialog_diy"
  10059. >
  10060. <div>
  10061. <div class="open_box">
  10062. <div class="switch_box">
  10063. <span>允许学生查看所有作业</span>
  10064. <el-switch
  10065. v-model="sIsOpen"
  10066. active-text=""
  10067. class="switchCss"
  10068. @change="updateSLook"
  10069. ></el-switch>
  10070. </div>
  10071. <div
  10072. class="switch_box"
  10073. v-if="
  10074. (courseDetail.userid == userid ||
  10075. (courseDetail.course_teacher &&
  10076. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10077. "
  10078. >
  10079. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10080. <span>禁止学生查看阶段</span>
  10081. <el-switch
  10082. v-model="IsLookOpen"
  10083. active-text=""
  10084. class="switchCss"
  10085. @change="updateLookOpen"
  10086. ></el-switch>
  10087. </div>
  10088. <div class="switch_box" v-if="courseDetail.userid == userid">
  10089. <span>开启跟随模式</span>
  10090. <el-switch
  10091. v-model="IsFollow"
  10092. active-text=""
  10093. class="switchCss"
  10094. @change="updateFollow"
  10095. ></el-switch>
  10096. </div>
  10097. </div>
  10098. </div>
  10099. <div slot="footer">
  10100. <el-button
  10101. style="background: #409efe; color: #fff"
  10102. @click="juriVisible = false"
  10103. >关 闭</el-button
  10104. >
  10105. </div>
  10106. </el-dialog>
  10107. <el-dialog
  10108. title="查看视频"
  10109. :visible.sync="videoVisible"
  10110. :append-to-body="true"
  10111. width="1000px"
  10112. :before-close="handleClose"
  10113. class="dialog_diy1"
  10114. >
  10115. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10116. <video-player
  10117. class="video-player vjs-custom-skin"
  10118. :playsinline="true"
  10119. :options="videoDetail"
  10120. @play="onPlayerPlay($event)"
  10121. style="width: 100%; height: 100%"
  10122. ></video-player>
  10123. </div>
  10124. <div slot="footer">
  10125. <el-button
  10126. style="background: #409efe; color: #fff"
  10127. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10128. >
  10129. 关 闭</el-button
  10130. >
  10131. </div>
  10132. </el-dialog>
  10133. <el-dialog
  10134. title="查看详情"
  10135. :visible.sync="commentDialogVisible"
  10136. :append-to-body="true"
  10137. width="800px"
  10138. :before-close="handleClose"
  10139. class="dialog_diy"
  10140. >
  10141. <div class="commentTop">
  10142. <div class="studentDetail">
  10143. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10144. <div class="nameAndTime">
  10145. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10146. <div>{{ commentDetail.time }}</div>
  10147. </div>
  10148. <div
  10149. class="returnBtn"
  10150. style="margin-left: auto; width: 80px"
  10151. v-if="
  10152. commentDetail.works &&
  10153. commentDetail.type == 0 &&
  10154. (tType == 1 || tType == 4)
  10155. "
  10156. @click="
  10157. showPicturePaint(
  10158. commentDetail.img ? commentDetail.img : commentDetail.works
  10159. )
  10160. "
  10161. >
  10162. 教师批注
  10163. </div>
  10164. </div>
  10165. <div
  10166. class="worksAnswer"
  10167. v-if="commentDetail.works && commentDetail.type == 2"
  10168. >
  10169. {{ JSON.parse(commentDetail.works)[0].answer }}
  10170. </div>
  10171. <div
  10172. class="worksAnswer"
  10173. v-if="commentDetail.works && commentDetail.type == 1"
  10174. >
  10175. <img
  10176. src="../../assets/teacherWork.png"
  10177. v-if="commentDetail.ateacher"
  10178. class="w_teachert"
  10179. />
  10180. <pdf
  10181. v-if="showPDF"
  10182. :pdfUrl="pptImgUrl"
  10183. style="width: 100%; height: 520px; overflow: auto"
  10184. :class="{ fullStyle: full }"
  10185. ></pdf>
  10186. <iframe
  10187. v-else
  10188. :src="pptImgUrl"
  10189. frameborder="0"
  10190. width="100%"
  10191. height="600"
  10192. :class="{ fullStyle: full }"
  10193. ></iframe>
  10194. </div>
  10195. <div
  10196. class="worksAnswer"
  10197. v-if="commentDetail.works && commentDetail.type == 0"
  10198. >
  10199. <img
  10200. src="../../assets/teacherWork.png"
  10201. v-if="commentDetail.ateacher"
  10202. class="w_teachert"
  10203. style="right: 105px"
  10204. />
  10205. <img
  10206. :src="commentDetail.works"
  10207. alt=""
  10208. @click="previewImg(commentDetail.works)"
  10209. />
  10210. </div>
  10211. <div
  10212. class="worksAnswer"
  10213. v-if="commentDetail.works && commentDetail.type == 3"
  10214. >
  10215. <img
  10216. src="../../assets/teacherWork.png"
  10217. v-if="commentDetail.ateacher"
  10218. class="w_teachert"
  10219. />
  10220. <video-player
  10221. class="video-player vjs-custom-skin"
  10222. :playsinline="true"
  10223. :options="videoDetail"
  10224. @play="onPlayerPlay($event)"
  10225. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10226. ></video-player>
  10227. </div>
  10228. <div
  10229. class="worksAnswer"
  10230. v-if="commentDetail.works && commentDetail.type == 10"
  10231. >
  10232. <div class="cont" v-html="commentDetail.works.text"></div>
  10233. </div>
  10234. <div
  10235. class="worksAnswer codeFileBox"
  10236. v-if="commentDetail.works && commentDetail.type == 12"
  10237. @click="downloadFile(commentDetail.works)"
  10238. >
  10239. <img src="../../assets/icon/codeFile.png" />
  10240. <div>点击下载文件</div>
  10241. </div>
  10242. <div
  10243. class="worksAnswer codeFileBox"
  10244. v-if="commentDetail.works && commentDetail.type == 15"
  10245. @click="
  10246. openCocoPi(
  10247. 57,
  10248. commentIndexJson.toolIndex,
  10249. commentDetail.userid,
  10250. commentDetail.sName
  10251. )
  10252. "
  10253. >
  10254. <img src="../../assets/icon/codeFile.png" />
  10255. <div>点击打开CocoPi</div>
  10256. </div>
  10257. <div
  10258. class="worksAnswer"
  10259. v-if="commentDetail.works && commentDetail.type == 13"
  10260. >
  10261. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10262. </div>
  10263. <div
  10264. class="worksAnswer"
  10265. v-if="commentDetail.works && commentDetail.type == 4"
  10266. >
  10267. <div class="evalCss">
  10268. <div class="nav">请选择星星进行评分</div>
  10269. <div class="middleBox" v-if="eScore.eStar">
  10270. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10271. <div class="nameAndrate">
  10272. <div>{{ e.value }}</div>
  10273. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10274. </div>
  10275. <div v-if="e.detail">{{ e.detail }}</div>
  10276. </div>
  10277. <div class="bz">
  10278. <textarea
  10279. disabled
  10280. rows="4"
  10281. class="pj"
  10282. style="
  10283. padding: 10px 5px;
  10284. width: 70%;
  10285. background: #f7f6f9;
  10286. font-size: 14px;
  10287. text-indent: 10px;
  10288. color: #000;
  10289. "
  10290. cols
  10291. v-model="eScore.eBzText"
  10292. placeholder="请输入评价内容..."
  10293. ></textarea>
  10294. </div>
  10295. </div>
  10296. </div>
  10297. </div>
  10298. <div class="comment">
  10299. <div class="commentList">
  10300. <div class="commentImg">
  10301. <img
  10302. @click="
  10303. isLikes(
  10304. commentDetail.wid,
  10305. userid,
  10306. 1,
  10307. null,
  10308. commentDetail.isLikes,
  10309. commentDetail.sName
  10310. )
  10311. "
  10312. :src="commentDetail.isLikes == true ? likes : noLikes"
  10313. alt=""
  10314. />
  10315. </div>
  10316. <div>{{ commentDetail.likesCount }}</div>
  10317. </div>
  10318. <div class="commentList">
  10319. <div class="commentImg">
  10320. <img src="../../assets/icon/comment/comment.png" alt="" />
  10321. </div>
  10322. <div>{{ commentDetail.commentCount }}</div>
  10323. </div>
  10324. </div>
  10325. <div class="drawPBox" v-if="commentDetail.img">
  10326. <span>教师批注</span>
  10327. <img
  10328. :src="commentDetail.img"
  10329. alt=""
  10330. @click="previewImg(commentDetail.img)"
  10331. />
  10332. <span
  10333. class="deleteImg"
  10334. v-if="tType == 1 || tType == 4"
  10335. @click.stop="deletePicturePaint(commentDetail.wid)"
  10336. style="
  10337. font-size: 14px;
  10338. width: auto !important;
  10339. color: #b4b4b4;
  10340. top: unset;
  10341. bottom: 0;
  10342. border: none;
  10343. padding: 0;
  10344. height: auto !important;
  10345. margin: 0;
  10346. "
  10347. >删除</span
  10348. >
  10349. </div>
  10350. </div>
  10351. <div class="commentBox">
  10352. <div class="pl">评论:</div>
  10353. <div style="max-height: 200px; overflow: auto">
  10354. <div
  10355. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10356. style="padding: 10px 0 0 0"
  10357. >
  10358. <div
  10359. class="studentDetail"
  10360. style="padding-top: 10px"
  10361. v-for="(co, coIndex) in commentDetail.commentJson"
  10362. :key="coIndex"
  10363. >
  10364. <div class="tx" style="min-width: 50px">
  10365. <img src="../../assets/avatar.png" alt="" />
  10366. </div>
  10367. <div class="plPerson">
  10368. <div class="plName">
  10369. <div>{{ co.commentPeople }}</div>
  10370. <div style="margin-left: 5px">
  10371. {{ co.commentTime }}
  10372. </div>
  10373. <div
  10374. class="deleteComment"
  10375. v-if="userid == co.userid"
  10376. @click="deleteComment(co.wid)"
  10377. >
  10378. 删除
  10379. </div>
  10380. </div>
  10381. <div class="plContent">{{ co.commentText }}</div>
  10382. </div>
  10383. </div>
  10384. </div>
  10385. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10386. </div>
  10387. </div>
  10388. <div style="margin-top: 10px">
  10389. <div class="displayBox">
  10390. <div
  10391. style="
  10392. color: #556db4;
  10393. font-size: 14px;
  10394. font-weight: bold;
  10395. padding-bottom: 10px;
  10396. "
  10397. >
  10398. 评价
  10399. </div>
  10400. <div class="easy_comment" v-if="false">
  10401. <div
  10402. v-for="(p, pIndex) in PlTextList"
  10403. :key="pIndex"
  10404. @click="fastText(p, 1)"
  10405. >
  10406. {{ p }}
  10407. </div>
  10408. </div>
  10409. </div>
  10410. <div>
  10411. <textarea
  10412. rows="3"
  10413. class="pj"
  10414. style="padding: 10px 5px"
  10415. cols
  10416. v-model="commentText"
  10417. placeholder="请输入评论"
  10418. ></textarea>
  10419. </div>
  10420. </div>
  10421. <div slot="footer">
  10422. <el-button
  10423. @click="
  10424. (commentDialogVisible = false),
  10425. (commentIndexJson = {}),
  10426. videoDetail.sources && videoDetail.sources[0]
  10427. ? (videoDetail.sources[0].src = '')
  10428. : ''
  10429. "
  10430. >取 消</el-button
  10431. >
  10432. <el-button
  10433. type="primary"
  10434. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10435. >确 定</el-button
  10436. >
  10437. </div>
  10438. </el-dialog>
  10439. <el-dialog
  10440. title="查看文档"
  10441. :visible.sync="fullDialogVisible"
  10442. :append-to-body="true"
  10443. width="100%"
  10444. :before-close="handleClose"
  10445. :show-close="false"
  10446. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10447. >
  10448. <div slot="title" class="header-title">
  10449. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10450. <div v-else style="color: #fff">查看文档</div>
  10451. <div
  10452. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10453. style="
  10454. cursor: pointer;
  10455. position: absolute;
  10456. top: 20px;
  10457. right: 20px;
  10458. color: #fff;
  10459. "
  10460. >
  10461. 退出全屏
  10462. </div>
  10463. </div>
  10464. <div style="height: 100%;position: relative;">
  10465. <el-button
  10466. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10467. size="medium"
  10468. type="primary"
  10469. @click="
  10470. () => {
  10471. (fullDialogVisible = false),
  10472. changeSplitScreenBehavior({ code: 99 });
  10473. }
  10474. "
  10475. style="
  10476. cursor: pointer;
  10477. position: absolute;
  10478. top: 10px;
  10479. right: 20px;
  10480. color: #fff;
  10481. "
  10482. >
  10483. 退出全屏
  10484. </el-button>
  10485. <div
  10486. class="wheel"
  10487. v-if="fulltype == 1"
  10488. style="
  10489. box-shadow: 0 0 6px 1px #f2f2f2;
  10490. height:100%;
  10491. width: 100%;
  10492. background: #f1f1f1;
  10493. "
  10494. >
  10495. <div class="title" style="width: 100%; box-sizing: border-box">
  10496. 查看文档
  10497. </div>
  10498. <el-form class="textBox" style="height: 90%">
  10499. <el-form-item class="textTitle">
  10500. <div style="font-size: 22px">
  10501. {{ fullUrl.name }}
  10502. </div>
  10503. </el-form-item>
  10504. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10505. <div
  10506. v-html="fullUrl.url"
  10507. class="textContent"
  10508. style="height: auto"
  10509. ></div>
  10510. </el-form>
  10511. </div>
  10512. <div
  10513. class="wheel"
  10514. v-else-if="
  10515. (fulltype == 2 || fulltype == 4) &&
  10516. fullUrl.indexOf(
  10517. 'https://view.officeapps.live.com/op/view.aspx?src='
  10518. ) != -1
  10519. "
  10520. style="width: 100%;height:100%; margin: 0 auto"
  10521. >
  10522. <iframe
  10523. style="width: 100%; height: 100%; border: none"
  10524. :src="fullUrl"
  10525. ></iframe>
  10526. </div>
  10527. <iframe
  10528. style="width: 100%; height: 100%; border: none"
  10529. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10530. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10531. :src="fullUrl"
  10532. ></iframe>
  10533. <iframe
  10534. style="width: 100%; height: 100%; border: none"
  10535. security="restricted"
  10536. v-else-if="(fulltype == 2 || fulltype == 4)"
  10537. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10538. :src="fullUrl"
  10539. ></iframe>
  10540. <pdf
  10541. v-else-if="fulltype == 3"
  10542. :pdfUrl="fullUrl"
  10543. style="width: 100%; height: 100%; overflow: auto"
  10544. ></pdf>
  10545. <iframe
  10546. style="width: 100%; height: 100%; border: none"
  10547. security="restricted"
  10548. v-if="(fulltype == 16)"
  10549. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10550. :src="fullUrl"
  10551. ></iframe>
  10552. </div>
  10553. <!-- <div slot="footer">
  10554. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10555. </div> -->
  10556. </el-dialog>
  10557. <el-dialog
  10558. title="个人评价"
  10559. :visible.sync="studentEvalDialogVisible"
  10560. :append-to-body="true"
  10561. width="800px"
  10562. :before-close="handleClose"
  10563. class="dialog_diy"
  10564. >
  10565. <div class="evalCss">
  10566. <div class="nav">请选择星星进行评分</div>
  10567. <div class="middleBox" v-if="eScore.eStar">
  10568. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10569. <div class="nameAndrate">
  10570. <div>{{ e.value }}</div>
  10571. <el-rate
  10572. v-model="eScore.eStar[eIndex]"
  10573. :disabled="isStar"
  10574. ></el-rate>
  10575. </div>
  10576. <div v-if="e.detail">{{ e.detail }}</div>
  10577. </div>
  10578. <div class="easy_comment" v-if="false">
  10579. <div
  10580. v-for="(p, pIndex) in PlTextList"
  10581. :key="pIndex"
  10582. @click="fastText(p, 2)"
  10583. >
  10584. {{ p }}
  10585. </div>
  10586. </div>
  10587. <div class="bz">
  10588. <textarea
  10589. :disabled="isStar"
  10590. rows="4"
  10591. class="pj"
  10592. style="
  10593. padding: 10px 5px;
  10594. width: 70%;
  10595. background: #f7f6f9;
  10596. font-size: 14px;
  10597. text-indent: 10px;
  10598. "
  10599. cols
  10600. v-model="eScore.eBzText"
  10601. placeholder="请输入评价内容..."
  10602. ></textarea>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. <div slot="footer">
  10607. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10608. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10609. >确 定</el-button
  10610. >
  10611. </div>
  10612. </el-dialog>
  10613. <el-dialog
  10614. title="个人评价"
  10615. :visible.sync="studentEvalDialogVisibleTeacher"
  10616. :append-to-body="true"
  10617. width="800px"
  10618. :before-close="handleClose"
  10619. class="dialog_diy"
  10620. >
  10621. <div class="w_name">
  10622. 学生姓名:<span>{{ sStudent.student }}</span>
  10623. </div>
  10624. <div class="evalCss">
  10625. <div class="nav">请选择星星进行评分</div>
  10626. <div class="middleBox" v-if="eScore.eStar">
  10627. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10628. <div class="nameAndrate">
  10629. <div>{{ e.value }}</div>
  10630. <el-rate
  10631. v-model="eScore.eStar[eIndex]"
  10632. :disabled="isStar"
  10633. ></el-rate>
  10634. </div>
  10635. <div v-if="e.detail">{{ e.detail }}</div>
  10636. </div>
  10637. <div class="easy_comment" v-if="false">
  10638. <div
  10639. v-for="(p, pIndex) in PlTextList"
  10640. :key="pIndex"
  10641. @click="fastText(p, 2)"
  10642. >
  10643. {{ p }}
  10644. </div>
  10645. </div>
  10646. <div class="bz">
  10647. <textarea
  10648. :disabled="isStar"
  10649. rows="4"
  10650. class="pj"
  10651. style="
  10652. padding: 10px 5px;
  10653. width: 70%;
  10654. background: #f7f6f9;
  10655. font-size: 14px;
  10656. text-indent: 10px;
  10657. "
  10658. cols
  10659. v-model="eScore.eBzText"
  10660. placeholder="请输入评价内容..."
  10661. ></textarea>
  10662. </div>
  10663. </div>
  10664. </div>
  10665. <div slot="footer">
  10666. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10667. >取 消</el-button
  10668. >
  10669. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10670. >确 定</el-button
  10671. >
  10672. </div>
  10673. </el-dialog>
  10674. <el-dialog
  10675. title="选择匹配"
  10676. :visible.sync="dialogVisibleSelect"
  10677. :append-to-body="true"
  10678. width="90%"
  10679. :before-close="handleClose"
  10680. class="dialog_diy dialog_diy3"
  10681. >
  10682. <div v-if="selectJson">
  10683. <div class="select_box2">
  10684. <div class="select_box2_title">
  10685. <div>选择匹配</div>
  10686. <div>请选择对应的答案进行答题!</div>
  10687. </div>
  10688. <div class="select_box2_box">
  10689. <div class="select_box2_img">
  10690. <img
  10691. :src="selectJson.url"
  10692. @click="previewImg(selectJson.url)"
  10693. alt=""
  10694. />
  10695. </div>
  10696. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10697. <div style="padding-top: 15px">
  10698. <div class="select_answer_title" v-if="isSelect">
  10699. {{ selectAnswer.stu }}
  10700. </div>
  10701. <div class="select_answer_title" v-else>
  10702. 根据题目选择对应答案
  10703. </div>
  10704. <div
  10705. class="select_box2_answer_box"
  10706. v-for="(item2, checkIndex) in selectJson.select"
  10707. :key="checkIndex"
  10708. >
  10709. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10710. <el-select
  10711. :disabled="isSelect"
  10712. v-model="selectAnswer.answer[checkIndex]"
  10713. placeholder="请选择正确答案"
  10714. >
  10715. <el-option
  10716. v-for="(e, eIndex) in selectJson.select"
  10717. :key="eIndex"
  10718. :label="e"
  10719. :value="eIndex"
  10720. >
  10721. </el-option>
  10722. </el-select>
  10723. </div>
  10724. </div>
  10725. <div
  10726. class="rightAnswerCss"
  10727. v-if="isSelect && (tType == 1 || tType == 4)"
  10728. >
  10729. <div
  10730. v-for="(a, aIndex) in selectJson.answer"
  10731. :key="aIndex"
  10732. class="rightAnswer"
  10733. >
  10734. <div
  10735. v-if="selectAnswer.answer[aIndex] === a"
  10736. style="color: #767de1"
  10737. >
  10738. 回答正确
  10739. </div>
  10740. <div v-else>回答错误</div>
  10741. <div
  10742. style="margin-left: 10px"
  10743. v-if="selectAnswer.answer[aIndex] !== a"
  10744. >
  10745. 正确答案:
  10746. </div>
  10747. <div
  10748. :class="
  10749. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10750. "
  10751. >
  10752. {{ selectJson.select[a] }}
  10753. </div>
  10754. </div>
  10755. </div>
  10756. </div>
  10757. <div class="upAnswerCss">
  10758. <el-button
  10759. type="primary"
  10760. @click="addSelectAnswer"
  10761. v-if="!isSelect"
  10762. >提交答案</el-button
  10763. >
  10764. </div>
  10765. </div>
  10766. </div>
  10767. </div>
  10768. </el-dialog>
  10769. <el-dialog
  10770. title="选择匹配"
  10771. :visible.sync="dialogVisibleSelectTeacher"
  10772. :append-to-body="true"
  10773. width="90%"
  10774. :before-close="handleClose"
  10775. class="dialog_diy dialog_diy3"
  10776. >
  10777. <div v-if="selectJson">
  10778. <div class="w_name">
  10779. 学生姓名:<span>{{ sStudent.student }}</span>
  10780. </div>
  10781. <div class="select_box2">
  10782. <div class="select_box2_title">
  10783. <div>选择匹配</div>
  10784. <div>请选择对应的答案进行答题!</div>
  10785. </div>
  10786. <div class="select_box2_box">
  10787. <div class="select_box2_img">
  10788. <img
  10789. :src="selectJson.url"
  10790. @click="previewImg(selectJson.url)"
  10791. alt=""
  10792. />
  10793. </div>
  10794. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10795. <div style="padding-top: 15px">
  10796. <div class="select_answer_title" v-if="isSelect">
  10797. {{ selectAnswer.stu }}
  10798. </div>
  10799. <div class="select_answer_title" v-else>
  10800. 根据题目选择对应答案
  10801. </div>
  10802. <div
  10803. class="select_box2_answer_box"
  10804. v-for="(item2, checkIndex) in selectJson.select"
  10805. :key="checkIndex"
  10806. >
  10807. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10808. <el-select
  10809. :disabled="isSelect"
  10810. v-model="selectAnswer.answer[checkIndex]"
  10811. placeholder="请选择正确答案"
  10812. >
  10813. <el-option
  10814. v-for="(e, eIndex) in selectJson.select"
  10815. :key="eIndex"
  10816. :label="e"
  10817. :value="eIndex"
  10818. >
  10819. </el-option>
  10820. </el-select>
  10821. </div>
  10822. </div>
  10823. <div
  10824. class="rightAnswerCss"
  10825. v-if="isSelect && (tType == 1 || tType == 4)"
  10826. >
  10827. <div
  10828. v-for="(a, aIndex) in selectJson.answer"
  10829. :key="aIndex"
  10830. class="rightAnswer"
  10831. >
  10832. <div
  10833. v-if="selectAnswer.answer[aIndex] === a"
  10834. style="color: #767de1"
  10835. >
  10836. 回答正确
  10837. </div>
  10838. <div v-else>回答错误</div>
  10839. <div
  10840. style="margin-left: 10px"
  10841. v-if="selectAnswer.answer[aIndex] !== a"
  10842. >
  10843. 正确答案:
  10844. </div>
  10845. <div
  10846. :class="
  10847. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10848. "
  10849. >
  10850. {{ selectJson.select[a] }}
  10851. </div>
  10852. </div>
  10853. </div>
  10854. </div>
  10855. <div class="upAnswerCss">
  10856. <el-button
  10857. type="primary"
  10858. @click="addSelectAnswerTeacher"
  10859. v-if="!isSelect"
  10860. >提交答案</el-button
  10861. >
  10862. </div>
  10863. </div>
  10864. </div>
  10865. </div>
  10866. </el-dialog>
  10867. <el-dialog
  10868. title="教师评分"
  10869. :visible.sync="dialogVisibleScore"
  10870. :append-to-body="true"
  10871. width="800px"
  10872. :before-close="handleClose"
  10873. class="dialog_diy"
  10874. >
  10875. <div>
  10876. <div class="studentDetail">
  10877. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10878. <div class="nameAndTime">
  10879. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10880. <div>{{ commentDetail.time }}</div>
  10881. </div>
  10882. </div>
  10883. <div
  10884. class="worksAnswer"
  10885. v-if="commentDetail.works && commentDetail.type == 2"
  10886. >
  10887. {{ JSON.parse(commentDetail.works)[0].answer }}
  10888. </div>
  10889. <div
  10890. class="worksAnswer"
  10891. v-if="commentDetail.works && commentDetail.type == 1"
  10892. >
  10893. <pdf
  10894. v-if="showPDF"
  10895. :pdfUrl="pptImgUrl"
  10896. style="width: 100%; height: 520px; overflow: auto"
  10897. :class="{ fullStyle: full }"
  10898. ></pdf>
  10899. <iframe
  10900. v-else
  10901. :src="pptImgUrl"
  10902. frameborder="0"
  10903. width="100%"
  10904. height="600"
  10905. :class="{ fullStyle: full }"
  10906. ></iframe>
  10907. </div>
  10908. <div
  10909. class="worksAnswer"
  10910. v-if="commentDetail.works && commentDetail.type == 0"
  10911. >
  10912. <img
  10913. :src="commentDetail.works"
  10914. alt=""
  10915. @click="previewImg(commentDetail.works)"
  10916. />
  10917. </div>
  10918. <div
  10919. class="worksAnswer"
  10920. v-if="commentDetail.works && commentDetail.type == 3"
  10921. >
  10922. <video-player
  10923. class="video-player vjs-custom-skin"
  10924. :playsinline="true"
  10925. :options="videoDetail"
  10926. @play="onPlayerPlay($event)"
  10927. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10928. ></video-player>
  10929. </div>
  10930. <div
  10931. class="worksAnswer codeFileBox"
  10932. v-if="commentDetail.works && commentDetail.type == 12"
  10933. @click="downloadFile(commentDetail.works)"
  10934. >
  10935. <img src="../../assets/icon/codeFile.png" />
  10936. <div>点击下载文件</div>
  10937. </div>
  10938. <div
  10939. class="worksAnswer codeFileBox"
  10940. v-if="commentDetail.works && commentDetail.type == 15"
  10941. @click="
  10942. openCocoPi(
  10943. 57,
  10944. commentIndexJson.toolIndex,
  10945. commentDetail.userid,
  10946. commentDetail.sName
  10947. )
  10948. "
  10949. >
  10950. <img src="../../assets/icon/codeFile.png" />
  10951. <div>点击打开CocoPi</div>
  10952. </div>
  10953. <div
  10954. class="worksAnswer"
  10955. v-if="commentDetail.works && commentDetail.type == 13"
  10956. >
  10957. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10958. </div>
  10959. <div class="scoreBox">
  10960. <span class="t">请输入分数</span>
  10961. <el-input-number
  10962. :disabled="courseDetail.userid != userid"
  10963. v-model="wScore"
  10964. :controls="false"
  10965. :min="0"
  10966. :max="100"
  10967. ></el-input-number>
  10968. </div>
  10969. <div class="scoreDetailBox">
  10970. <span class="t">评分评论</span>
  10971. <el-input
  10972. type="textarea"
  10973. :rows="5"
  10974. :disabled="courseDetail.userid != userid"
  10975. resize="none"
  10976. v-model="scoreDetail"
  10977. placeholder="请输入对学生的评价"
  10978. >
  10979. </el-input>
  10980. </div>
  10981. </div>
  10982. <span slot="footer" class="dialog-footer">
  10983. <el-button
  10984. @click="
  10985. (dialogVisibleScore = false),
  10986. (commentIndexJson = {}),
  10987. videoDetail.sources && videoDetail.sources[0]
  10988. ? (videoDetail.sources[0].src = '')
  10989. : ''
  10990. "
  10991. >取 消</el-button
  10992. >
  10993. <el-button
  10994. type="primary"
  10995. v-if="courseDetail.userid == userid"
  10996. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10997. >确 定
  10998. </el-button>
  10999. </span>
  11000. </el-dialog>
  11001. <el-dialog
  11002. title="排序"
  11003. :visible.sync="dialogVisibleSentence"
  11004. :append-to-body="true"
  11005. width="1000px"
  11006. :before-close="handleClose"
  11007. class="dialog_diy dialog_diy3"
  11008. >
  11009. <div>
  11010. <div class="sentenBox">
  11011. <div
  11012. v-for="(st, stIndex) in sentenceList"
  11013. :key="stIndex"
  11014. style="padding-bottom: 20px"
  11015. >
  11016. <div
  11017. style="padding: 15px 0 10px 20px"
  11018. class="sentenceTitle"
  11019. :index="stIndex + 1"
  11020. >
  11021. 题目{{ stIndex + 1 }}:请选择正确顺序
  11022. </div>
  11023. <div class="cardList" v-if="st.chooseSenList">
  11024. <div class="cardBox">
  11025. <div
  11026. v-for="(r, rIndex) in st.chooseSenList"
  11027. :key="rIndex"
  11028. @click="returnCard(r, stIndex, rIndex)"
  11029. >
  11030. <el-tooltip
  11031. class="item"
  11032. effect="light"
  11033. :content="r"
  11034. placement="top"
  11035. v-if="r != '' && r != undefined"
  11036. >
  11037. <div
  11038. :class="{
  11039. isCard: r,
  11040. isChooseCard: r == '' || r == undefined,
  11041. }"
  11042. >
  11043. <div>{{ r }}</div>
  11044. </div>
  11045. </el-tooltip>
  11046. <div
  11047. :class="{
  11048. isCard: r,
  11049. isChooseCard: r == '' || r == undefined,
  11050. }"
  11051. v-else
  11052. >
  11053. <div>{{ r }}</div>
  11054. </div>
  11055. </div>
  11056. </div>
  11057. </div>
  11058. <div class="cardList" v-if="st.addChangeSen">
  11059. <div class="cardBox">
  11060. <div
  11061. v-for="(s, sIndex) in st.addChangeSen"
  11062. :key="sIndex"
  11063. @click="setRightAnswer(s, stIndex, sIndex)"
  11064. >
  11065. <el-tooltip
  11066. class="item"
  11067. effect="light"
  11068. :content="s"
  11069. placement="top"
  11070. v-if="s != '' && s != undefined"
  11071. >
  11072. <div
  11073. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11074. >
  11075. <div>{{ s }}</div>
  11076. </div>
  11077. </el-tooltip>
  11078. <div
  11079. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11080. v-else
  11081. >
  11082. <div>{{ s }}</div>
  11083. </div>
  11084. </div>
  11085. </div>
  11086. </div>
  11087. </div>
  11088. </div>
  11089. </div>
  11090. <span slot="footer" class="dialog-footer">
  11091. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11092. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11093. </span>
  11094. </el-dialog>
  11095. <el-dialog
  11096. title="排序"
  11097. :visible.sync="dialogVisibleSentenceTeacher"
  11098. :append-to-body="true"
  11099. width="1000px"
  11100. :before-close="handleClose"
  11101. class="dialog_diy dialog_diy3"
  11102. >
  11103. <div>
  11104. <div class="w_name">
  11105. 学生姓名:<span>{{ sStudent.student }}</span>
  11106. </div>
  11107. <div class="sentenBox">
  11108. <div
  11109. v-for="(st, stIndex) in sentenceList"
  11110. :key="stIndex"
  11111. style="padding-bottom: 20px"
  11112. >
  11113. <div
  11114. style="padding: 15px 0 10px 20px"
  11115. class="sentenceTitle"
  11116. :index="stIndex + 1"
  11117. >
  11118. 题目{{ stIndex + 1 }}:请选择正确顺序
  11119. </div>
  11120. <div class="cardList" v-if="st.chooseSenList">
  11121. <div class="cardBox">
  11122. <div
  11123. v-for="(r, rIndex) in st.chooseSenList"
  11124. :key="rIndex"
  11125. @click="returnCard(r, stIndex, rIndex)"
  11126. >
  11127. <el-tooltip
  11128. class="item"
  11129. effect="light"
  11130. :content="r"
  11131. placement="top"
  11132. v-if="r != '' && r != undefined"
  11133. >
  11134. <div
  11135. :class="{
  11136. isCard: r,
  11137. isChooseCard: r == '' || r == undefined,
  11138. }"
  11139. >
  11140. <div>{{ r }}</div>
  11141. </div>
  11142. </el-tooltip>
  11143. <div
  11144. :class="{
  11145. isCard: r,
  11146. isChooseCard: r == '' || r == undefined,
  11147. }"
  11148. v-else
  11149. >
  11150. <div>{{ r }}</div>
  11151. </div>
  11152. </div>
  11153. </div>
  11154. </div>
  11155. <div class="cardList" v-if="st.addChangeSen">
  11156. <div class="cardBox">
  11157. <div
  11158. v-for="(s, sIndex) in st.addChangeSen"
  11159. :key="sIndex"
  11160. @click="setRightAnswer(s, stIndex, sIndex)"
  11161. >
  11162. <el-tooltip
  11163. class="item"
  11164. effect="light"
  11165. :content="s"
  11166. placement="top"
  11167. v-if="s != '' && s != undefined"
  11168. >
  11169. <div
  11170. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11171. >
  11172. <div>{{ s }}</div>
  11173. </div>
  11174. </el-tooltip>
  11175. <div
  11176. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11177. v-else
  11178. >
  11179. <div>{{ s }}</div>
  11180. </div>
  11181. </div>
  11182. </div>
  11183. </div>
  11184. </div>
  11185. </div>
  11186. </div>
  11187. <span slot="footer" class="dialog-footer">
  11188. <el-button @click="dialogVisibleSentenceTeacher = false"
  11189. >取 消</el-button
  11190. >
  11191. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11192. </span>
  11193. </el-dialog>
  11194. <el-dialog
  11195. title="排序"
  11196. :visible.sync="dialogVisibleSentence1"
  11197. :append-to-body="true"
  11198. width="1000px"
  11199. :before-close="handleClose"
  11200. class="dialog_diy dialog_diy3"
  11201. >
  11202. <div>
  11203. <div class="sentenBox">
  11204. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11205. {{ sentenceList1.stuName }}的作业
  11206. </div>
  11207. <div
  11208. v-for="(st, stIndex) in sentenceList1"
  11209. :key="stIndex"
  11210. style="padding-bottom: 20px"
  11211. >
  11212. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11213. 第{{ stIndex + 1 }}题
  11214. </div>
  11215. <div class="isWrong">
  11216. <div class="cardList1" v-if="st.chooseSenList">
  11217. <div class="cardBox">
  11218. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11219. <el-tooltip
  11220. class="item"
  11221. effect="light"
  11222. :content="s"
  11223. placement="top"
  11224. >
  11225. <div class="isCard">
  11226. <div>{{ s }}</div>
  11227. </div>
  11228. </el-tooltip>
  11229. </div>
  11230. </div>
  11231. <div class="cardAnswerBox">
  11232. 组成句子:{{ st.chooseSenList.join(" ") }}
  11233. </div>
  11234. </div>
  11235. <div v-if="tType == 2" class="isTj">
  11236. <div class="isTjImg">
  11237. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11238. </div>
  11239. <div>已提交</div>
  11240. </div>
  11241. <div
  11242. class="answerRight isTj"
  11243. v-if="
  11244. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11245. (tType == 1 || tType == 4)
  11246. "
  11247. >
  11248. <div class="isTjImg">
  11249. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11250. </div>
  11251. <div>回答正确</div>
  11252. </div>
  11253. <div
  11254. class="answerRight isTj"
  11255. v-if="
  11256. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11257. (tType == 1 || tType == 4)
  11258. "
  11259. >
  11260. <div class="isTjImg">
  11261. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11262. </div>
  11263. <div>回答错误</div>
  11264. </div>
  11265. </div>
  11266. <div
  11267. v-if="
  11268. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11269. (tType == 1 || tType == 4)
  11270. "
  11271. >
  11272. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11273. <div
  11274. class="cardList"
  11275. v-if="st.rightAnswer"
  11276. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11277. >
  11278. <div class="cardBox">
  11279. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11280. <el-tooltip
  11281. class="item"
  11282. effect="light"
  11283. :content="r"
  11284. placement="top"
  11285. >
  11286. <div class="isCard1">
  11287. <div>{{ r }}</div>
  11288. </div>
  11289. </el-tooltip>
  11290. </div>
  11291. </div>
  11292. <div class="cardAnswerBox">
  11293. 组成句子:{{ st.rightAnswer.join(" ") }}
  11294. </div>
  11295. </div>
  11296. </div>
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <span slot="footer" class="dialog-footer">
  11301. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11302. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11303. >确 定</el-button
  11304. >
  11305. </span>
  11306. </el-dialog>
  11307. <el-dialog
  11308. title="教师提交作业"
  11309. :visible.sync="dialogVisibleWorks"
  11310. :append-to-body="true"
  11311. width="500px"
  11312. :before-close="handleClose"
  11313. class="dialog_change"
  11314. >
  11315. <div class="marginT">
  11316. <div class="w_name">
  11317. 学生姓名:<span>{{ sStudent.student }}</span>
  11318. </div>
  11319. <div>上传文件</div>
  11320. <div style="display: flex; gap: 10px">
  11321. <div
  11322. class="chapter_add"
  11323. @click="addImg($event)"
  11324. v-if="studyJuri[0].cover.length == 0"
  11325. >
  11326. <div class="up_photo">
  11327. <img src="../../assets/icon/uploadImg.png" alt />
  11328. </div>
  11329. <!-- <input
  11330. type="file"
  11331. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11332. style="display: none"
  11333. @change="beforeUpload1($event, 1)"
  11334. /> -->
  11335. <input
  11336. type="file"
  11337. accept="*"
  11338. style="display: none"
  11339. @change="beforeUpload1($event, 1)"
  11340. />
  11341. <!-- <input
  11342. type="file"
  11343. accept="image/*"
  11344. capture="camera"
  11345. style="display: none"
  11346. @change="beforeUpload1($event, 1)"
  11347. /> -->
  11348. </div>
  11349. <div
  11350. class="chapter_add"
  11351. @click="addImg($event)"
  11352. v-if="studyJuri[0].cover.length == 0"
  11353. >
  11354. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11355. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11356. </div>
  11357. <input
  11358. type="file"
  11359. accept="image/*"
  11360. capture="camera"
  11361. style="display: none"
  11362. @change="beforeUpload1($event, 1)"
  11363. />
  11364. </div>
  11365. </div>
  11366. <!-- capture="camera" -->
  11367. <div
  11368. class="chapter_add"
  11369. style="
  11370. display: flex;
  11371. width: 100%;
  11372. flex-direction: row;
  11373. flex-wrap: wrap;
  11374. justify-content: flex-start;
  11375. padding: 15px 0;
  11376. "
  11377. v-if="studyJuri[0].cover.length > 0"
  11378. >
  11379. <div class="upCover">
  11380. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11381. <img :src="word" alt v-else-if="fileType == 1" />
  11382. <img :src="video" alt v-else-if="fileType == 2" />
  11383. <img :src="word2" alt v-else-if="fileType == 3" />
  11384. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11385. <div class="deleteWord" @click="clean(1)">
  11386. <img src="../../assets/icon/deleteWorks.png" alt />
  11387. </div>
  11388. </div>
  11389. </div>
  11390. </div>
  11391. <div
  11392. class="upload_send"
  11393. @click="addCourseWorksTeacher(taskCount)"
  11394. v-if="!proVisible"
  11395. >
  11396. 提交
  11397. </div>
  11398. </el-dialog>
  11399. <ImgDraw
  11400. :drawShow="drawShow"
  11401. @closeDraw="closeDraw"
  11402. @addImgDraw="addImgDraw"
  11403. :bg="bg"
  11404. ></ImgDraw>
  11405. <el-dialog
  11406. title="表格"
  11407. :visible.sync="dialogVisibleTable"
  11408. :append-to-body="true"
  11409. width="95%"
  11410. :before-close="handleClose"
  11411. class="dialog_diy"
  11412. >
  11413. <el-form>
  11414. <div
  11415. style="
  11416. display: flex;
  11417. align-items: center;
  11418. justify-content: space-between;
  11419. "
  11420. >
  11421. <span>表格内容</span>
  11422. <el-button type="primary" size="small" @click="returnTableText"
  11423. >还原模板</el-button
  11424. >
  11425. </div>
  11426. <Table
  11427. v-model="tableJson.text"
  11428. @change="change"
  11429. v-if="dialogVisibleTable"
  11430. ></Table>
  11431. </el-form>
  11432. <span slot="footer" class="dialog-footer">
  11433. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11434. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11435. </span>
  11436. </el-dialog>
  11437. <el-dialog
  11438. title="表格"
  11439. :visible.sync="dialogVisibleTableTeacher"
  11440. :append-to-body="true"
  11441. width="95%"
  11442. :before-close="handleClose"
  11443. class="dialog_diy"
  11444. >
  11445. <el-form>
  11446. <div class="w_name">
  11447. 学生姓名:<span>{{ sStudent.student }}</span>
  11448. </div>
  11449. <div>表格内容</div>
  11450. <Table
  11451. v-model="tableJson.text"
  11452. @change="change"
  11453. v-if="dialogVisibleTableTeacher"
  11454. ></Table>
  11455. </el-form>
  11456. <span slot="footer" class="dialog-footer">
  11457. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11458. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11459. </span>
  11460. </el-dialog>
  11461. <el-dialog
  11462. title="文档"
  11463. :visible.sync="dialogVisibleWord"
  11464. :append-to-body="true"
  11465. width="95%"
  11466. :before-close="handleClose"
  11467. class="dialog_diy"
  11468. >
  11469. <el-form>
  11470. <div
  11471. style="
  11472. display: flex;
  11473. align-items: center;
  11474. justify-content: space-between;
  11475. "
  11476. >
  11477. <span>文档内容</span>
  11478. <el-button type="primary" size="small" @click="returnWordText"
  11479. >还原模板</el-button
  11480. >
  11481. </div>
  11482. <editor-bar
  11483. v-model="wordJson.text"
  11484. v-if="dialogVisibleWord"
  11485. ></editor-bar>
  11486. </el-form>
  11487. <span slot="footer" class="dialog-footer">
  11488. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11489. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11490. </span>
  11491. </el-dialog>
  11492. <el-dialog
  11493. title="文档"
  11494. :visible.sync="dialogVisibleWordTeacher"
  11495. :append-to-body="true"
  11496. width="95%"
  11497. :before-close="handleClose"
  11498. class="dialog_diy"
  11499. >
  11500. <el-form>
  11501. <div class="w_name">
  11502. 学生姓名:<span>{{ sStudent.student }}</span>
  11503. </div>
  11504. <div>文档内容</div>
  11505. <editor-bar
  11506. v-model="wordJson.text"
  11507. v-if="dialogVisibleWordTeacher"
  11508. ></editor-bar>
  11509. </el-form>
  11510. <span slot="footer" class="dialog-footer">
  11511. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11512. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11513. </span>
  11514. </el-dialog>
  11515. <el-dialog
  11516. title="表格"
  11517. :visible.sync="dialogVisibleTable2"
  11518. :append-to-body="true"
  11519. width="95%"
  11520. :before-close="handleClose"
  11521. class="dialog_diy"
  11522. >
  11523. <el-form>
  11524. <div class="cont" v-html="tableJson.text"></div>
  11525. </el-form>
  11526. <span slot="footer" class="dialog-footer">
  11527. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11528. </span>
  11529. </el-dialog>
  11530. <el-dialog
  11531. title="文档"
  11532. :visible.sync="dialogVisibleTable3"
  11533. :append-to-body="true"
  11534. width="95%"
  11535. :before-close="handleClose"
  11536. class="dialog_diy"
  11537. >
  11538. <el-form>
  11539. <div class="cont" v-html="tableJson.text"></div>
  11540. </el-form>
  11541. <span slot="footer" class="dialog-footer">
  11542. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11543. </span>
  11544. </el-dialog>
  11545. <el-dialog
  11546. title="分组设置"
  11547. :visible.sync="dialogVisibleGroup"
  11548. :append-to-body="true"
  11549. width="95%"
  11550. :before-close="handleClose"
  11551. class="dialog_diy"
  11552. >
  11553. <div v-if="dialogVisibleGroup">
  11554. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11555. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11556. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11557. </div>
  11558. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11559. @click="lockChair">
  11560. 锁定位置
  11561. </div>
  11562. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11563. 解锁位置
  11564. </div> -->
  11565. <div class="group_switch">
  11566. <span>开放选座</span>
  11567. <el-switch
  11568. v-model="islock"
  11569. active-text=""
  11570. class="switchCss"
  11571. @change="lockChair"
  11572. ></el-switch>
  11573. </div>
  11574. <div
  11575. type="primary"
  11576. @click="updateGroup"
  11577. class="returnBtn"
  11578. style="background-color: #225bc7"
  11579. >
  11580. 分组设置
  11581. </div>
  11582. </div>
  11583. <div>
  11584. <div
  11585. class="g_d_box"
  11586. v-if="groupJson.group && groupStudent[toolindex]"
  11587. >
  11588. <div
  11589. class="g_d_group"
  11590. v-for="(g, gindex) in groupJson.group"
  11591. :key="gindex"
  11592. >
  11593. <div class="g_d_group_chair">
  11594. <div v-if="groupJson.number > 1">
  11595. <span
  11596. :class="{
  11597. isChair:
  11598. groupStudent[toolindex][gindex] &&
  11599. groupStudent[toolindex][gindex][0],
  11600. updateChair:
  11601. courseDetail.userid == userid &&
  11602. groupStudent[toolindex][gindex] &&
  11603. groupStudent[toolindex][gindex][0] &&
  11604. groupJson.islock == 2,
  11605. }"
  11606. ><span
  11607. class="updateChairBtn"
  11608. @click="
  11609. updateGroupChair(
  11610. groupStudent[toolindex][gindex] &&
  11611. groupStudent[toolindex][gindex][0]
  11612. )
  11613. "
  11614. >修改</span
  11615. ></span
  11616. ><span>{{
  11617. groupStudent[toolindex][gindex] &&
  11618. groupStudent[toolindex][gindex][0]
  11619. ? groupStudent[toolindex][gindex] &&
  11620. groupStudent[toolindex][gindex][0].name
  11621. : "空位置"
  11622. }}</span>
  11623. </div>
  11624. <div v-if="groupJson.number > 4">
  11625. <span
  11626. :class="{
  11627. isChair:
  11628. groupStudent[toolindex][gindex] &&
  11629. groupStudent[toolindex][gindex][4],
  11630. updateChair:
  11631. courseDetail.userid == userid &&
  11632. groupStudent[toolindex][gindex] &&
  11633. groupStudent[toolindex][gindex][4] &&
  11634. groupJson.islock == 2,
  11635. }"
  11636. ><span
  11637. class="updateChairBtn"
  11638. @click="
  11639. updateGroupChair(
  11640. groupStudent[toolindex][gindex] &&
  11641. groupStudent[toolindex][gindex][4]
  11642. )
  11643. "
  11644. >修改</span
  11645. ></span
  11646. ><span>{{
  11647. groupStudent[toolindex][gindex] &&
  11648. groupStudent[toolindex][gindex][4]
  11649. ? groupStudent[toolindex][gindex] &&
  11650. groupStudent[toolindex][gindex][4].name
  11651. : "空位置"
  11652. }}</span>
  11653. </div>
  11654. <div v-if="groupJson.number > 8">
  11655. <span
  11656. :class="{
  11657. isChair:
  11658. groupStudent[toolindex][gindex] &&
  11659. groupStudent[toolindex][gindex][8],
  11660. updateChair:
  11661. courseDetail.userid == userid &&
  11662. groupStudent[toolindex][gindex] &&
  11663. groupStudent[toolindex][gindex][8] &&
  11664. groupJson.islock == 2,
  11665. }"
  11666. ><span
  11667. class="updateChairBtn"
  11668. @click="
  11669. updateGroupChair(
  11670. groupStudent[toolindex][gindex] &&
  11671. groupStudent[toolindex][gindex][8]
  11672. )
  11673. "
  11674. >修改</span
  11675. ></span
  11676. ><span>{{
  11677. groupStudent[toolindex][gindex] &&
  11678. groupStudent[toolindex][gindex][8]
  11679. ? groupStudent[toolindex][gindex] &&
  11680. groupStudent[toolindex][gindex][8].name
  11681. : "空位置"
  11682. }}</span>
  11683. </div>
  11684. </div>
  11685. <div class="g_d_group_tableBox">
  11686. <div class="g_d_group_chair2">
  11687. <div v-if="groupJson.number > 2">
  11688. <span
  11689. :class="{
  11690. isChair:
  11691. groupStudent[toolindex][gindex] &&
  11692. groupStudent[toolindex][gindex][2],
  11693. updateChair:
  11694. courseDetail.userid == userid &&
  11695. groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][2] &&
  11697. groupJson.islock == 2,
  11698. }"
  11699. ><span
  11700. class="updateChairBtn"
  11701. @click="
  11702. updateGroupChair(
  11703. groupStudent[toolindex][gindex] &&
  11704. groupStudent[toolindex][gindex][2]
  11705. )
  11706. "
  11707. >修改</span
  11708. ></span
  11709. ><span>{{
  11710. groupStudent[toolindex][gindex] &&
  11711. groupStudent[toolindex][gindex][2]
  11712. ? groupStudent[toolindex][gindex] &&
  11713. groupStudent[toolindex][gindex][2].name
  11714. : "空位置"
  11715. }}</span>
  11716. </div>
  11717. <div v-if="groupJson.number > 6">
  11718. <span
  11719. :class="{
  11720. isChair:
  11721. groupStudent[toolindex][gindex] &&
  11722. groupStudent[toolindex][gindex][6],
  11723. updateChair:
  11724. courseDetail.userid == userid &&
  11725. groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][6] &&
  11727. groupJson.islock == 2,
  11728. }"
  11729. ><span
  11730. class="updateChairBtn"
  11731. @click="
  11732. updateGroupChair(
  11733. groupStudent[toolindex][gindex] &&
  11734. groupStudent[toolindex][gindex][6]
  11735. )
  11736. "
  11737. >修改</span
  11738. ></span
  11739. ><span>{{
  11740. groupStudent[toolindex][gindex] &&
  11741. groupStudent[toolindex][gindex][6]
  11742. ? groupStudent[toolindex][gindex] &&
  11743. groupStudent[toolindex][gindex][6].name
  11744. : "空位置"
  11745. }}</span>
  11746. </div>
  11747. </div>
  11748. <div class="g_d_group_table">
  11749. <div>
  11750. {{ g.name }}
  11751. </div>
  11752. <div>
  11753. <div
  11754. v-if="
  11755. courseDetail.userid == userid && groupJson.islock == 2
  11756. "
  11757. @click="deleteGroupChair(gindex)"
  11758. >
  11759. 移除组员
  11760. </div>
  11761. <div
  11762. @click="selectGroup(gindex)"
  11763. v-else-if="
  11764. groupStudentUid[toolindex] &&
  11765. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11766. "
  11767. >
  11768. 加入分组
  11769. </div>
  11770. <div
  11771. @click="
  11772. exitGroup(
  11773. groupStudent[toolindex][gindex] &&
  11774. groupStudent[toolindex][gindex][
  11775. groupStudentUid[toolindex][gindex].indexOf(userid)
  11776. ].id
  11777. )
  11778. "
  11779. v-else-if="
  11780. groupStudentUid[toolindex] &&
  11781. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11782. "
  11783. >
  11784. 退出分组
  11785. </div>
  11786. </div>
  11787. </div>
  11788. <div class="g_d_group_chair2">
  11789. <div v-if="groupJson.number > 3">
  11790. <span
  11791. :class="{
  11792. isChair:
  11793. groupStudent[toolindex][gindex] &&
  11794. groupStudent[toolindex][gindex][3],
  11795. updateChair:
  11796. courseDetail.userid == userid &&
  11797. groupStudent[toolindex][gindex] &&
  11798. groupStudent[toolindex][gindex][3] &&
  11799. groupJson.islock == 2,
  11800. }"
  11801. ><span
  11802. class="updateChairBtn"
  11803. @click="
  11804. updateGroupChair(
  11805. groupStudent[toolindex][gindex] &&
  11806. groupStudent[toolindex][gindex][3]
  11807. )
  11808. "
  11809. >修改</span
  11810. ></span
  11811. ><span>{{
  11812. groupStudent[toolindex][gindex] &&
  11813. groupStudent[toolindex][gindex][3]
  11814. ? groupStudent[toolindex][gindex] &&
  11815. groupStudent[toolindex][gindex][3].name
  11816. : "空位置"
  11817. }}</span>
  11818. </div>
  11819. <div v-if="groupJson.number > 7">
  11820. <span
  11821. :class="{
  11822. isChair:
  11823. groupStudent[toolindex][gindex] &&
  11824. groupStudent[toolindex][gindex][7],
  11825. updateChair:
  11826. courseDetail.userid == userid &&
  11827. groupStudent[toolindex][gindex] &&
  11828. groupStudent[toolindex][gindex][7] &&
  11829. groupJson.islock == 2,
  11830. }"
  11831. ><span
  11832. class="updateChairBtn"
  11833. @click="
  11834. updateGroupChair(
  11835. groupStudent[toolindex][gindex] &&
  11836. groupStudent[toolindex][gindex][7]
  11837. )
  11838. "
  11839. >修改</span
  11840. ></span
  11841. ><span>{{
  11842. groupStudent[toolindex][gindex] &&
  11843. groupStudent[toolindex][gindex][7]
  11844. ? groupStudent[toolindex][gindex] &&
  11845. groupStudent[toolindex][gindex][7].name
  11846. : "空位置"
  11847. }}</span>
  11848. </div>
  11849. </div>
  11850. </div>
  11851. <div class="g_d_group_chair">
  11852. <div v-if="groupJson.number > 1">
  11853. <span
  11854. :class="{
  11855. isChair:
  11856. groupStudent[toolindex][gindex] &&
  11857. groupStudent[toolindex][gindex][1],
  11858. updateChair:
  11859. courseDetail.userid == userid &&
  11860. groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][1] &&
  11862. groupJson.islock == 2,
  11863. }"
  11864. ><span
  11865. class="updateChairBtn"
  11866. @click="
  11867. updateGroupChair(
  11868. groupStudent[toolindex][gindex] &&
  11869. groupStudent[toolindex][gindex][1]
  11870. )
  11871. "
  11872. >修改</span
  11873. ></span
  11874. ><span>{{
  11875. groupStudent[toolindex][gindex] &&
  11876. groupStudent[toolindex][gindex][1]
  11877. ? groupStudent[toolindex][gindex] &&
  11878. groupStudent[toolindex][gindex][1].name
  11879. : "空位置"
  11880. }}</span>
  11881. </div>
  11882. <div v-if="groupJson.number > 5">
  11883. <span
  11884. :class="{
  11885. isChair:
  11886. groupStudent[toolindex][gindex] &&
  11887. groupStudent[toolindex][gindex][5],
  11888. updateChair:
  11889. courseDetail.userid == userid &&
  11890. groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][5] &&
  11892. groupJson.islock == 2,
  11893. }"
  11894. ><span
  11895. class="updateChairBtn"
  11896. @click="
  11897. updateGroupChair(
  11898. groupStudent[toolindex][gindex] &&
  11899. groupStudent[toolindex][gindex][5]
  11900. )
  11901. "
  11902. >修改</span
  11903. ></span
  11904. ><span>{{
  11905. groupStudent[toolindex][gindex] &&
  11906. groupStudent[toolindex][gindex][5]
  11907. ? groupStudent[toolindex][gindex] &&
  11908. groupStudent[toolindex][gindex][5].name
  11909. : "空位置"
  11910. }}</span>
  11911. </div>
  11912. <div v-if="groupJson.number > 9">
  11913. <span
  11914. :class="{
  11915. isChair:
  11916. groupStudent[toolindex][gindex] &&
  11917. groupStudent[toolindex][gindex][9],
  11918. updateChair:
  11919. courseDetail.userid == userid &&
  11920. groupStudent[toolindex][gindex] &&
  11921. groupStudent[toolindex][gindex][9] &&
  11922. groupJson.islock == 2,
  11923. }"
  11924. ><span
  11925. class="updateChairBtn"
  11926. @click="
  11927. updateGroupChair(
  11928. groupStudent[toolindex][gindex] &&
  11929. groupStudent[toolindex][gindex][9]
  11930. )
  11931. "
  11932. >修改</span
  11933. ></span
  11934. ><span>{{
  11935. groupStudent[toolindex][gindex] &&
  11936. groupStudent[toolindex][gindex][9]
  11937. ? groupStudent[toolindex][gindex] &&
  11938. groupStudent[toolindex][gindex][9].name
  11939. : "空位置"
  11940. }}</span>
  11941. </div>
  11942. </div>
  11943. </div>
  11944. </div>
  11945. </div>
  11946. </div>
  11947. <span slot="footer" class="dialog-footer">
  11948. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11949. </span>
  11950. </el-dialog>
  11951. <el-dialog
  11952. title="分组设置"
  11953. :visible.sync="dialogVisibleGroup2"
  11954. :append-to-body="true"
  11955. width="650px"
  11956. :before-close="handleClose"
  11957. class="dialog_diy"
  11958. >
  11959. <div class="groupBox">
  11960. <div v-if="groupJson2.group" class="groupContent">
  11961. <div class="groupTitle">请设置小组数量及名称</div>
  11962. <div
  11963. v-for="(item, index) in groupJson2.group"
  11964. :key="index"
  11965. class="groupName"
  11966. >
  11967. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11968. <el-input
  11969. v-model="item.name"
  11970. placeholder="请输入名称..."
  11971. style="width: 250px"
  11972. ></el-input>
  11973. <!-- <div class="groupBtn">
  11974. <el-button type="primary" size="small" @click="addGroup(index)">
  11975. 添加</el-button>
  11976. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11977. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11978. </div> -->
  11979. </div>
  11980. </div>
  11981. <div class="groupContent">
  11982. <div class="groupTitle">请设置每组人数</div>
  11983. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11984. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11985. <el-input
  11986. v-model="groupJson2.number"
  11987. style="width: 150px"
  11988. placeholder="请输入2-10的数字"
  11989. @change="numberPan"
  11990. ></el-input>
  11991. </div>
  11992. </div>
  11993. <span slot="footer" class="dialog-footer">
  11994. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11995. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11996. </span>
  11997. </el-dialog>
  11998. <el-dialog
  11999. title="作业提交"
  12000. :visible.sync="dialogVisibleGroupWork"
  12001. :append-to-body="true"
  12002. width="500px"
  12003. :before-close="handleClose"
  12004. class="dialog_change"
  12005. >
  12006. <div class="marginT">
  12007. <div>上传文件</div>
  12008. <div
  12009. class="chapter_add"
  12010. @click="addImg($event)"
  12011. v-if="studyJuri[0].cover.length == 0"
  12012. >
  12013. <div class="up_photo">
  12014. <img src="../../assets/icon/uploadImg.png" alt />
  12015. </div>
  12016. <!-- <input
  12017. type="file"
  12018. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12019. style="display: none"
  12020. @change="beforeUpload1($event, 1)"
  12021. /> -->
  12022. <input
  12023. type="file"
  12024. accept="*"
  12025. style="display: none"
  12026. @change="beforeUpload1($event, 1)"
  12027. />
  12028. </div>
  12029. <!-- capture="camera" -->
  12030. <div
  12031. class="chapter_add"
  12032. style="
  12033. display: flex;
  12034. width: 100%;
  12035. flex-direction: row;
  12036. flex-wrap: wrap;
  12037. justify-content: flex-start;
  12038. padding: 15px 0;
  12039. "
  12040. v-if="studyJuri[0].cover.length > 0"
  12041. >
  12042. <div class="upCover">
  12043. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12044. <img :src="word" alt v-else-if="fileType == 1" />
  12045. <img :src="video" alt v-else-if="fileType == 2" />
  12046. <img :src="word2" alt v-else-if="fileType == 3" />
  12047. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12048. <div class="deleteWord" @click="clean(1)">
  12049. <img src="../../assets/icon/deleteWorks.png" alt />
  12050. </div>
  12051. </div>
  12052. </div>
  12053. </div>
  12054. <div
  12055. class="upload_send"
  12056. @click="addCourseWorks2(taskCount)"
  12057. v-if="!proVisible"
  12058. >
  12059. 提交
  12060. </div>
  12061. </el-dialog>
  12062. <el-dialog
  12063. title="修改分组"
  12064. :visible.sync="dialogVisibleUpdateGroup"
  12065. :append-to-body="true"
  12066. width="350px"
  12067. :before-close="handleClose"
  12068. class="dialog_diy"
  12069. >
  12070. <div>
  12071. <h2>
  12072. {{ this.updateGroupUser.name }}
  12073. </h2>
  12074. <div style="color: rgb(171 171 171); margin-top: 10px">
  12075. 请选择要进入的分组
  12076. </div>
  12077. <el-radio-group v-model="checkChair">
  12078. <el-radio
  12079. style="display: block; margin-top: 20px"
  12080. v-for="(item, index) in updateGroupArray"
  12081. :label="item.label"
  12082. :key="index"
  12083. >{{ item.name }}</el-radio
  12084. >
  12085. </el-radio-group>
  12086. </div>
  12087. <span slot="footer" class="dialog-footer">
  12088. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12089. <el-button type="primary" @click="updateChair">确定</el-button>
  12090. </span>
  12091. </el-dialog>
  12092. <el-dialog
  12093. title="移除组员"
  12094. :visible.sync="dialogVisibleDeleteGroup"
  12095. :append-to-body="true"
  12096. width="350px"
  12097. :before-close="handleClose"
  12098. class="dialog_diy"
  12099. >
  12100. <div>
  12101. <h2>
  12102. {{ this.deleteGroupArray.name }}
  12103. </h2>
  12104. <div style="color: rgb(171 171 171); margin-top: 10px">
  12105. 请选择要删除的组员
  12106. </div>
  12107. <el-checkbox-group v-model="checkDeleteGroup">
  12108. <el-checkbox
  12109. style="display: flex; margin-top: 20px"
  12110. v-for="(item, index) in deleteGroupUser"
  12111. :label="item.userid"
  12112. :key="index"
  12113. >{{ item.name }}</el-checkbox
  12114. >
  12115. </el-checkbox-group>
  12116. </div>
  12117. <span slot="footer" class="dialog-footer">
  12118. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12119. <el-button type="primary" @click="deleteChair">确定</el-button>
  12120. </span>
  12121. </el-dialog>
  12122. <el-dialog
  12123. title="批量上传"
  12124. :visible.sync="dialogVisiblePl"
  12125. :append-to-body="true"
  12126. width="700px"
  12127. :before-close="handleClose"
  12128. class="dialog_change"
  12129. >
  12130. <div class="marginT">
  12131. <div class="plworkBox">
  12132. <div
  12133. class="chapter_add"
  12134. style="
  12135. display: flex;
  12136. width: 150px;
  12137. flex-direction: row;
  12138. flex-wrap: wrap;
  12139. justify-content: flex-start;
  12140. margin: 0 10px 10px 0;
  12141. "
  12142. v-for="(item, index) in plworkFile"
  12143. :key="index"
  12144. >
  12145. <div class="upCover2">
  12146. <img
  12147. :src="item.url"
  12148. alt
  12149. v-if="item.fileType == 1"
  12150. @click="previewImg(item.url)"
  12151. />
  12152. <img :src="word" alt v-else-if="item.fileType == 4" />
  12153. <img :src="video" alt v-else />
  12154. <!-- <span class="picName">{{ item.name }}</span> -->
  12155. <!-- <el-input
  12156. v-model="item.username"
  12157. placeholder="请输入学生名字"
  12158. style="margin-top: 10px"
  12159. ></el-input> -->
  12160. <div
  12161. class="pl_select_box"
  12162. @click="
  12163. getUpdateMore(true, checkUpload(), item.username, index)
  12164. "
  12165. >
  12166. {{ getSName(item.username) }}
  12167. </div>
  12168. <!-- <el-select
  12169. style="margin-top: 10px"
  12170. v-model="item.username"
  12171. filterable
  12172. allow-create
  12173. placeholder="请选择学生"
  12174. >
  12175. <el-option
  12176. v-for="item1 in checkUpload()"
  12177. :key="item1.userid"
  12178. :label="item1.name ? item1.name : item1.username"
  12179. :value="item1.userid"
  12180. >
  12181. </el-option>
  12182. </el-select> -->
  12183. <div class="deleteWord" @click="clean2(index)">
  12184. <img src="../../assets/icon/deleteWorks.png" alt />
  12185. </div>
  12186. </div>
  12187. </div>
  12188. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12189. <div class="up_photo2">
  12190. <img src="../../assets/icon/plwork.png" alt />
  12191. <span>点击上传文件</span>
  12192. </div>
  12193. <input
  12194. type="file"
  12195. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12196. multiple="multiple"
  12197. style="display: none"
  12198. @change="beforeUpload3($event, 6)"
  12199. />
  12200. </div>
  12201. </div>
  12202. </div>
  12203. <!-- capture="camera" -->
  12204. <div
  12205. class="upload_send"
  12206. @click="addCourseWorksPl(taskCount)"
  12207. v-if="!proVisible2"
  12208. >
  12209. 提交
  12210. </div>
  12211. </el-dialog>
  12212. <el-dialog
  12213. title="修改名称"
  12214. :visible.sync="dialogVisibleSname"
  12215. width="500px"
  12216. :before-close="handleClose"
  12217. class="dialog_diy"
  12218. center
  12219. >
  12220. <div
  12221. style="
  12222. text-align: center;
  12223. display: flex;
  12224. align-items: center;
  12225. justify-content: center;
  12226. "
  12227. >
  12228. <span class="tian1">名称</span>
  12229. <div
  12230. class="pl_select_box"
  12231. style="margin-left: 10px; width: 200px"
  12232. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12233. >
  12234. {{ getSName(worksSName) }}
  12235. </div>
  12236. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12237. placeholder="请选择学生">
  12238. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12239. :value="item.userid">
  12240. </el-option>
  12241. </el-select> -->
  12242. <!-- <el-input
  12243. v-model="worksSName"
  12244. style="width: 250px; margin: 15px 0px"
  12245. ></el-input> -->
  12246. </div>
  12247. <span slot="footer" class="dialog-footer">
  12248. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12249. <el-button type="primary" @click="updateName">确 定</el-button>
  12250. </span>
  12251. </el-dialog>
  12252. <el-dialog
  12253. title="英语写作"
  12254. :visible.sync="engDialogVisible"
  12255. :append-to-body="true"
  12256. width="800px"
  12257. :before-close="handleClose"
  12258. class="dialog_diy"
  12259. >
  12260. <onlineWrite
  12261. v-if="engDialogVisible"
  12262. :englishList="englishList"
  12263. :myAnswerList1="myAnswerList1"
  12264. ref="engJson"
  12265. ></onlineWrite>
  12266. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12267. <el-button @click="engDialogVisible = false">取 消</el-button>
  12268. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12269. </span>
  12270. </el-dialog>
  12271. <el-dialog
  12272. title="英语写作"
  12273. :visible.sync="engUpdateDialogVisible"
  12274. :append-to-body="true"
  12275. width="800px"
  12276. :before-close="handleClose"
  12277. class="dialog_diy fullStyle"
  12278. >
  12279. <div class="engUpBox">
  12280. <div class="engUpTop">
  12281. <div class="engTitle">
  12282. <div>作文题目:</div>
  12283. <div>{{ englishList1.engTitle }}</div>
  12284. </div>
  12285. <div class="engText">
  12286. <div>作文内容:</div>
  12287. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12288. </div>
  12289. </div>
  12290. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12291. <div class="oldBox">
  12292. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12293. <div class="oldText">
  12294. <div class="detailBox">
  12295. <div class="oldDetail">
  12296. <div>标题:</div>
  12297. <div>{{ oldEnglishJson.engTitle }} </div>
  12298. </div>
  12299. <div class="oldDetail1">
  12300. <div>正文:</div>
  12301. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12302. </div>
  12303. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12304. <div>图片:</div>
  12305. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12306. </div>
  12307. </div>
  12308. </div>
  12309. </div>
  12310. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12311. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12312. <div class="oldText">
  12313. <div class="detailBox" style="position: relative;">
  12314. <div class="oldDetail">
  12315. <div>标题:</div>
  12316. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12317. <div v-else v-html="newEnglishList.engTitle"></div>
  12318. </div>
  12319. <div class="oldDetail">
  12320. <div>正文:</div>
  12321. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12322. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12323. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12324. </div>
  12325. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12326. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12327. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12328. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12329. </div>
  12330. </div>
  12331. </div>
  12332. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12333. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  12334. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12335. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  12336. </div>
  12337. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12338. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12339. <div class="detailBox" style="position: relative;">
  12340. <div class="oldDetail">
  12341. <div>标题:</div>
  12342. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12343. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12344. </div>
  12345. <div class="oldDetail">
  12346. <div>正文:</div>
  12347. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12348. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12349. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12350. </div>
  12351. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12352. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12353. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12354. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12355. </div>
  12356. </div>
  12357. <div class="oldText" v-else-if="newEngIndex == -1">
  12358. <div class="detailBox" style="position: relative;">
  12359. <div class="oldDetail">
  12360. <div>标题:</div>
  12361. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12362. <div v-else v-html="newEnglishList.engTitle"></div>
  12363. </div>
  12364. <div class="oldDetail">
  12365. <div>正文:</div>
  12366. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12367. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12368. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12369. </div>
  12370. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12371. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12372. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12373. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12374. </div>
  12375. </div>
  12376. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12377. <div class="detailBox" style="position: relative;">
  12378. <div class="oldDetail">
  12379. <div>标题:</div>
  12380. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12381. <div v-else>
  12382. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12383. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12384. </div>
  12385. </div>
  12386. <div class="oldDetail">
  12387. <div>正文:</div>
  12388. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12389. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12390. <div v-else>
  12391. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12392. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12393. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12394. </div>
  12395. </div>
  12396. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12397. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12398. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  12399. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12400. </div>
  12401. </div>
  12402. </div>
  12403. </div>
  12404. </div>
  12405. <span slot="footer" class="dialog-footer">
  12406. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12407. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12408. </span>
  12409. </el-dialog>
  12410. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12411. <interVideo
  12412. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12413. :videoJson="videoJson"
  12414. :userid="userid"
  12415. :id="id"
  12416. :courseType="courseType"
  12417. :taskCount="taskCount"
  12418. :toolindex="toolindex"
  12419. :videoType="videoType"
  12420. ></interVideo>
  12421. <UpdateMore
  12422. :dialogVisibleMember.sync="dialogVisibleMember"
  12423. :cList="uploadStudentJuri"
  12424. :userid="userid"
  12425. :searchTN="worksSName2"
  12426. @setPlname="setPlname"
  12427. ></UpdateMore>
  12428. <!-- <wordCloud
  12429. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12430. :data="wordCloudData"
  12431. ></wordCloud> -->
  12432. <el-dialog
  12433. title="词云"
  12434. :visible.sync="dialogVisibleWordCloud"
  12435. width="30%"
  12436. class="dialog_diy"
  12437. :before-close="handleClose">
  12438. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12439. </el-dialog>
  12440. <el-dialog
  12441. title="挑人"
  12442. :visible.sync="dialogVisiblePickPeople"
  12443. width="650px"
  12444. :before-close="handleClose"
  12445. class="dialog_diy"
  12446. center
  12447. >
  12448. <div class="pick_box">
  12449. <div
  12450. class="noWorksName"
  12451. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12452. v-for="(item, index) in uploadStudentJuri"
  12453. :key="index"
  12454. @click="pickStudent(item)"
  12455. >
  12456. {{ item.name }}
  12457. </div>
  12458. </div>
  12459. </el-dialog>
  12460. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12461. :englishVoiceJson='englishVoiceJson'
  12462. :userid="userid"
  12463. :id="id"
  12464. :courseType="courseType"
  12465. :taskCount="taskCount"
  12466. :toolindex="toolindex"
  12467. @selectSWorks="selectSWorks"
  12468. @selectStudent="selectStudent"
  12469. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12470. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12471. :userid="userid"
  12472. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12473. :commentDetail="commentDetail"
  12474. :courseDetail="courseDetail"
  12475. :wScore="wScore"
  12476. :scoreDetail="scoreDetail"
  12477. @selectSWorks="selectSWorks"
  12478. @selectStudent="selectStudent"></checkEnglishVoice>
  12479. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12480. <choseWorksDetailDialog
  12481. ref="choseWorksDetailDialogRef"
  12482. :worksStudentData="worksStudent"
  12483. :noWorksSData="noWorksS"
  12484. :chapInfoListData="chapInfoList"
  12485. :courseType="courseType"
  12486. :taskCount="taskCount"
  12487. :tType="tType"
  12488. :sIsOpen="sIsOpen"
  12489. :courseDetail="courseDetail"
  12490. :groupStudent2="groupStudent"
  12491. :groupStudentUid2="groupStudentUid"
  12492. :oid="oid"
  12493. :org="org"
  12494. @getCourseDetail="getCourseDetail"
  12495. @selectSLook="selectSLook"
  12496. @selectSWorks="selectSWorks"
  12497. @selectStudent="selectStudent"
  12498. @deleteWorks="deleteWorks"
  12499. @openTools="openTools"
  12500. @openWord="openWord"
  12501. @openScore="openScore"
  12502. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12503. />
  12504. <el-dialog
  12505. :visible.sync="confirmOpenDig"
  12506. width="500px"
  12507. :modal="false"
  12508. class="confirmOpenDigCss dialog_diyCopy"
  12509. :before-close="handleClose">
  12510. <div style="display: flex;align-items: center;">
  12511. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12512. <span>“{{ courseDetail.title }}”开课啦</span>
  12513. </div>
  12514. <div style="margin: 20px 0 35px;">
  12515. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12516. <div>要认真听讲哦~</div>
  12517. </div>
  12518. <div style="text-align: center;">
  12519. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12520. </div>
  12521. </el-dialog>
  12522. <appStoreC ref="appStoreC"
  12523. :sStudent="sStudent"
  12524. :courseType="courseType"
  12525. :taskCount="taskCount"
  12526. :toolindex="toolindex"
  12527. @selectSWorks="selectSWorks"
  12528. @selectStudent="selectStudent"
  12529. ></appStoreC>
  12530. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12531. </div>
  12532. </template>
  12533. <script>
  12534. import "../../common/aws-sdk-2.235.1.min.js";
  12535. // import pdf from "../components/pdf3";
  12536. import pdf from "../components/vpdf";
  12537. import AskStatic from "../components/askStatic";
  12538. import AskStatic2 from "../components/askStatic2";
  12539. import AnswerData2 from "../components/answerData2";
  12540. import AnswerData from "../components/answerData";
  12541. import EditorBar from "../tools/wangEnduit.vue";
  12542. import Table from "../tools/table.vue";
  12543. import Time from "../tools/time.vue";
  12544. import Mind from "../tools/jsmind.vue";
  12545. import Sunburst from "../tools/sunburst";
  12546. import SeeBoard from "../tools/seeBoard";
  12547. import * as imageConversion from "image-conversion";
  12548. import Audio from "../components/audio.vue";
  12549. import ImgDraw from "../tools/imgDraw/imgDraw";
  12550. import { Empty } from "element-ui";
  12551. import RecordRTC from "recordrtc";
  12552. import interVideo from "../interVideo/index.vue";
  12553. import UpdateMore from "../updateMore/updateMore.vue";
  12554. import wordCloud from "../wordCloud/index.vue";
  12555. import axios from "axios";
  12556. import JSZip from "jszip";
  12557. import FileSaver from "file-saver";
  12558. import onlineWrite from "./commpont/onlineWrite";
  12559. import englishEva from "../components/englishEva";
  12560. import * as Diff from 'diff'
  12561. import EnglishVoice from '../EnglishVoice2/index.vue'
  12562. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12563. import correctText from '../components/correctText.vue'
  12564. import scoreItem from '../scoreList/scoreItem.vue'
  12565. import scoreZong from '../scoreZong/index.vue'
  12566. import classRoomHelper from '../classRoomHelper/index.vue'
  12567. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12568. import MarkdownIt from "markdown-it";
  12569. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12570. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12571. import { v4 as uuidv4 } from "uuid";
  12572. var OpenCC = require("opencc-js");
  12573. import choseWordCloud from '../components/choseWordCloud.vue'
  12574. import appStoreC from "../components/appStoreC.vue";
  12575. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12576. import { myMixin } from "@/mixins/mixin.js"
  12577. import { tools as toolsList } from "@/common/tools2.js";
  12578. import katex from 'katex'
  12579. import 'katex/dist/katex.min.css'
  12580. let converter = OpenCC.Converter({
  12581. from: "hk",
  12582. to: "cn"
  12583. });
  12584. const getFile = (url) => {
  12585. return new Promise((resolve, reject) => {
  12586. var credentials = {
  12587. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12588. secretAccessKey: "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",
  12589. }; //秘钥形式的登录上传
  12590. window.AWS.config.update(credentials);
  12591. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12592. let url2 = url;
  12593. let _url2 = "";
  12594. if (
  12595. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12596. ) {
  12597. _url2 = url2.split(
  12598. "https://view.officeapps.live.com/op/view.aspx?src="
  12599. )[1];
  12600. } else {
  12601. _url2 = url2;
  12602. }
  12603. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12604. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12605. var params = {
  12606. Bucket: "ccrb",
  12607. Key: name
  12608. };
  12609. s3.getObject(params, function (err, data) {
  12610. if (err) {
  12611. console.log(err, err.stack)
  12612. resolve({ data: 1 });
  12613. }else {
  12614. resolve({ data: data.Body });
  12615. console.log(data);
  12616. } // sxuccessful response
  12617. });
  12618. // axios({
  12619. // method: "get",
  12620. // url,
  12621. // responseType: "blob",
  12622. // })
  12623. // .then((data) => {
  12624. // resolve({ data: data.data });
  12625. // })
  12626. // .catch((error) => {
  12627. // resolve({ data: 1 });
  12628. // // reject(error.toString());
  12629. // });
  12630. });
  12631. };
  12632. export default {
  12633. mixins: [ myMixin ],
  12634. components: {
  12635. choseWordCloud,
  12636. EditorBar,
  12637. Time,
  12638. pdf,
  12639. AskStatic,
  12640. AskStatic2,
  12641. Mind,
  12642. Sunburst,
  12643. SeeBoard,
  12644. AnswerData2,
  12645. AnswerData,
  12646. Audio,
  12647. ImgDraw,
  12648. Table,
  12649. interVideo,
  12650. UpdateMore,
  12651. wordCloud,
  12652. onlineWrite,
  12653. englishEva,
  12654. EnglishVoice,
  12655. checkEnglishVoice,
  12656. correctText,
  12657. scoreItem,
  12658. classRoomHelper,
  12659. scoreZong,
  12660. statisticalAnalysis,
  12661. choseWorksDetailDialog,
  12662. appStoreC,
  12663. cocoFlowDia,
  12664. studentClassRoomHelper
  12665. },
  12666. data() {
  12667. return {
  12668. homeWorkLoading:false,
  12669. toolsList: toolsList,
  12670. wordCloudKey: 0,
  12671. bg: null,
  12672. drawShow: false,
  12673. dialogVisible: false,
  12674. dialogVisiblePl: false,
  12675. commentDialogVisible: false,
  12676. dialogVisibleMember: false,
  12677. dialogVisibleWordCloud: false,
  12678. videoVisible: false,
  12679. isStar: false,
  12680. studentEvalDialogVisible: false,
  12681. studentEvalDialogVisibleTeacher: false,
  12682. dialogVisibleSelect: false,
  12683. dialogVisibleSelectTeacher: false,
  12684. dialogVisibleScore: false,
  12685. dialogVisibleENScore: false,
  12686. dialogVisibleSentence: false,
  12687. dialogVisibleSentenceTeacher: false,
  12688. dialogVisibleSentence1: false,
  12689. dialogVisibleWorks: false,
  12690. dialogVisibleTable: false,
  12691. dialogVisibleTableTeacher: false,
  12692. dialogVisibleWord: false,
  12693. dialogVisibleWordTeacher: false,
  12694. dialogVisibleTable2: false,
  12695. dialogVisibleTable3: false,
  12696. dialogVisibleGroupWork: false,
  12697. dialogVisibleUpdateGroup: false,
  12698. dialogVisibleDeleteGroup: false,
  12699. dialogVisibleSname: false,
  12700. dialogVisibleVideo: false,
  12701. dialogVisiblePickPeople: false,
  12702. worksSName: "",
  12703. classJuri: [],
  12704. uploadStudentJuri: [],
  12705. uploadCid: "",
  12706. snameWid: "",
  12707. sStudent: {},
  12708. sTool: "",
  12709. bzText: "",
  12710. commentDetail: [],
  12711. selectAnswer: [],
  12712. videoDetail: {},
  12713. selectJson: {},
  12714. eScore: { eBzText: "", eStar: [] },
  12715. id: this.$route.query.courseId,
  12716. userid: this.$route.query.userid,
  12717. classId: this.$route.query.cid,
  12718. // courseTypeLine: this.$route.query.type,
  12719. oid: this.$route.query.oid,
  12720. org: this.$route.query.org,
  12721. tType: this.$route.query.tType,
  12722. courseType: this.$route.query.type,
  12723. screenType: this.$route.query.screenType,
  12724. tcid2: this.$route.query.tcid,
  12725. tcid: "",
  12726. pptImgUrl: "",
  12727. pptImgUrl1: "",
  12728. commentText: "",
  12729. full: false,
  12730. sIsOpen: false,
  12731. IsLookOpen: false,
  12732. IsFollow: false,
  12733. pzDialog: false,
  12734. contentDialog: false,
  12735. mlDialog: false,
  12736. type: 1,
  12737. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12738. sentenceList1: [],
  12739. tableJson: [],
  12740. tableJsonO: [],
  12741. wordJson: [],
  12742. wordJsonO: [],
  12743. vedio: [],
  12744. text: [],
  12745. textList: [],
  12746. line: [],
  12747. lineList: [],
  12748. chapTools: [],
  12749. chapToolList: [],
  12750. file: [],
  12751. fileC: [],
  12752. vedioTime: [],
  12753. upToolImg: "",
  12754. preTime: 0,
  12755. rateList: {
  12756. ca: 0,
  12757. },
  12758. rateParams: [],
  12759. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12760. studyJuri: [
  12761. {
  12762. content: "",
  12763. cover: [],
  12764. upVedio: [],
  12765. upFile: [],
  12766. },
  12767. ],
  12768. isClose: 0,
  12769. plworkFile: [],
  12770. mr: require("../../assets/vedioPic.png"),
  12771. word: require("../../assets/icon/isWord.png"),
  12772. word2: require("../../assets/icon/word2.png"),
  12773. video: require("../../assets/icon/isVideo.png"),
  12774. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12775. likes: require("../../assets/icon/comment/likes.png"),
  12776. scoreImg: require("../../assets/score.png"),
  12777. courseDetail: {},
  12778. reply: "",
  12779. isSelect: false,
  12780. chapInfo: [],
  12781. chapInfoList: [],
  12782. taskCount: 0,
  12783. imgList: [],
  12784. noImgList: [],
  12785. pzList: [],
  12786. timeWorkList: [],
  12787. PlTextList: [
  12788. "Excellent!",
  12789. "nice!",
  12790. "很有创意!",
  12791. "还不错哦~",
  12792. "继续努力哦~",
  12793. ],
  12794. isClickNav: "",
  12795. navId: "",
  12796. playerOptions: {
  12797. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12798. autoplay: false, //如果true,浏览器准备好时开始回放。
  12799. muted: false, // 默认情况下将会消除任何音频。
  12800. loop: false, // 导致视频一结束就重新开始。
  12801. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12802. language: "zh-CN",
  12803. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12804. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12805. sources: [
  12806. {
  12807. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12808. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12809. },
  12810. ],
  12811. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12812. // poster: dataRes.imgUrl, //你的封面地址
  12813. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12814. controlBar: {
  12815. timeDivider: true, //当前时间和持续时间的分隔符
  12816. durationDisplay: true, //显示持续时间
  12817. remainingTimeDisplay: false, //是否显示剩余时间功能
  12818. fullscreenToggle: true, //全屏按钮
  12819. },
  12820. },
  12821. playerOptions1: {
  12822. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12823. autoplay: false, //如果true,浏览器准备好时开始回放。
  12824. muted: false, // 默认情况下将会消除任何音频。
  12825. loop: false, // 导致视频一结束就重新开始。
  12826. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12827. language: "zh-CN",
  12828. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12829. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12830. sources: [
  12831. {
  12832. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12833. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12834. },
  12835. ],
  12836. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12837. // poster: dataRes.imgUrl, //你的封面地址
  12838. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12839. controlBar: {
  12840. timeDivider: true, //当前时间和持续时间的分隔符
  12841. durationDisplay: true, //显示持续时间
  12842. remainingTimeDisplay: false, //是否显示剩余时间功能
  12843. fullscreenToggle: true, //全屏按钮
  12844. },
  12845. },
  12846. playerO: {},
  12847. noneBtnImg: false,
  12848. proVisible: false,
  12849. proVisible2: false,
  12850. progress: 0,
  12851. isFinishSize: 0,
  12852. isAllSize: 0,
  12853. questionAnswer: "",
  12854. answerQ: "", //问答标题
  12855. rateJson: [],
  12856. wbCount: 0,
  12857. wordCount: 0,
  12858. mindCount: 0,
  12859. askCount: 0,
  12860. noteCount: 0,
  12861. mindNetWorkCount: 0,
  12862. libraryCount: 0,
  12863. workCount: 0,
  12864. timeCount: 0,
  12865. answerCount: 0,
  12866. trainCount: 0,
  12867. evalCount: 0,
  12868. dialogImageUrl: "",
  12869. pictureDialog: false,
  12870. toolTypeList: [],
  12871. dialogVisible1: false,
  12872. dialogVisible2: false,
  12873. dialogVisible3: false,
  12874. dialogVisible6: false,
  12875. dialogVisible4: false,
  12876. isNoHomeWork: false,
  12877. dialogVisible5: false,
  12878. dialogVisible5Teacher: false,
  12879. dialogVisibleChoice: false,
  12880. dialogVisibleChoiceTeacher: false,
  12881. answerDialogVisible: false,
  12882. answerDialogVisibleTeacher: false,
  12883. juriVisible: false,
  12884. timeDialogVisible: false,
  12885. replyDialogVisible: false,
  12886. toolDialogVisible: false,
  12887. engDialogVisible: false,
  12888. engUpdateDialogVisible:false,
  12889. engEvaDialogVisible: false,
  12890. evaEngJson: {
  12891. teacherJson: {},
  12892. studentJson: {},
  12893. message: {},
  12894. },
  12895. isNoUserid:false,
  12896. engListLength:0,
  12897. engWid:"",
  12898. newEnglishList:{
  12899. engTitle:"",
  12900. engText:"",
  12901. },
  12902. newEnglishList1:[],
  12903. oldEnglishJson:{},
  12904. oldEnglishJson1:{},
  12905. englishList1:{},
  12906. englishList:{},
  12907. myAnswerList1:{},
  12908. topHeight:0,
  12909. newEngIndex:-1,
  12910. englishToolIndex:0,
  12911. userMes:{},
  12912. englishToolIndex:0,
  12913. replyIndex: 0,
  12914. replyPid: "",
  12915. radio: [],
  12916. isAsk: false,
  12917. askJson: {
  12918. askCount: 1,
  12919. askTitle: "",
  12920. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12921. },
  12922. testJson: {},
  12923. englishList: {},
  12924. topHeight:0,
  12925. checkJson: [],
  12926. askList: [],
  12927. answerList: [],
  12928. navList: [],
  12929. addPzDialog: false,
  12930. pzConText: "",
  12931. worksStudent: [],
  12932. isCloseList: [],
  12933. workStudent: [],
  12934. groupStudent: [],
  12935. groupStudentUid: [],
  12936. noWorksS: [],
  12937. isWorksS: [],
  12938. noWorksStudent: [],
  12939. toolindex: 0,
  12940. toolDetailIndex: null,
  12941. groupIndex: 0,
  12942. workTypeB: false,
  12943. workTypeC: false,
  12944. isAnswer: false,
  12945. isHovered: false,
  12946. isHovered1: false,
  12947. isHovered2: false,
  12948. commentTagShow:0,
  12949. timer: null,
  12950. timer2: null,
  12951. opertimer: null,
  12952. showType: '',
  12953. fileType: 0,
  12954. showPDF: false,
  12955. noteName: "",
  12956. evaJuri: [],
  12957. evalua: "",
  12958. eTitle: "",
  12959. eName: "",
  12960. eJson: {},
  12961. fid: "", //一级
  12962. sid: "", //二级
  12963. tid: "", //二级
  12964. typeMode: 1,
  12965. eJSONNum: 0,
  12966. Etype: 1,
  12967. data: {
  12968. meta: {
  12969. name: "example",
  12970. author: "dd@163.com",
  12971. version: "0.2",
  12972. },
  12973. format: "node_array",
  12974. data: [{ id: "root", isroot: true, topic: "" }],
  12975. },
  12976. fullDialogVisible: false,
  12977. fulltype: "",
  12978. fullUrl: "",
  12979. commentIndexJson: {},
  12980. Stbodywidth: 0,
  12981. ispzType: 0,
  12982. pzType: 1,
  12983. wScore: 0,
  12984. scoreDetail: "",
  12985. videoStart: false,
  12986. recorder: null,
  12987. groupJson: {},
  12988. islock: false,
  12989. groupJson2: {},
  12990. dialogVisibleGroup: false,
  12991. dialogVisibleGroup2: false,
  12992. updateGroupArray: [],
  12993. updateGroupUser: {},
  12994. deleteGroupUser: [],
  12995. deleteGroupArray: {},
  12996. checkChair: "",
  12997. checkDeleteGroup: [],
  12998. inviteCode: "",
  12999. courseGroupStudent: [],
  13000. courseGroupStudentUid: [],
  13001. courseGroup: {},
  13002. isGroup: false,
  13003. toolIndex: null,
  13004. tool: {},
  13005. isWorkTool: [
  13006. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13007. ], //, 40
  13008. videoJson: {},
  13009. videoType:0,
  13010. toolType: 0,
  13011. checktoolArray: [],
  13012. vChapterData: [],
  13013. isUpdateToolDetail: false,
  13014. isUpdateToolDetail1: false,
  13015. updateToolDetailInner: "",
  13016. checkboxList: [],
  13017. plIndex: "",
  13018. worksSName2: "",
  13019. worksSid: "",
  13020. wordCloudData: [],
  13021. isPickStudent: [],
  13022. pzStype: 1,
  13023. myAnList: {},
  13024. downLoading: false,
  13025. greyType: false,
  13026. correctWord: [],
  13027. EnglishVoiceDialog: false,
  13028. englishVoiceJson: {},
  13029. englishVoiceJsonWork:[],
  13030. scoreList:{
  13031. listdata:[],
  13032. isScoreList:[],
  13033. },
  13034. classRoomHelperWidth: '85px',
  13035. orgArray:[],
  13036. oidArray:[],
  13037. splitScreenData:{
  13038. isOpen:false,
  13039. userId:"",
  13040. uid:"",
  13041. myUid:"",
  13042. loading:false,
  13043. behavior:null,
  13044. },
  13045. confirmOpenDig:false,
  13046. confirmOpenDigData:'',
  13047. diffKey:"1"
  13048. };
  13049. },
  13050. methods: {
  13051. //查看应用中心作业
  13052. openCocoFlow(w){
  13053. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13054. },
  13055. getAIJ(){
  13056. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13057. let oid = res.data[0];
  13058. let org = res.data[1];
  13059. let oidArray = [];
  13060. let orgArray = [];
  13061. oid.forEach(i=>oidArray.push(i.oid))
  13062. org.forEach(i=>orgArray.push(i.oid))
  13063. this.orgArray = orgArray;
  13064. this.oidArray = oidArray;
  13065. })
  13066. },
  13067. insertMemorandum(_html){//保存行为操作
  13068. //variable
  13069. //btn
  13070. let params = [{
  13071. uid:this.userid,
  13072. courseId:this.id+(this.tcid2?this.tcid2:''),
  13073. content:_html
  13074. }]
  13075. console.log(params)
  13076. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13077. if(res.data==1){
  13078. console.log('保存操作成功')
  13079. }else{
  13080. console.log('保存操作失败')
  13081. }
  13082. }).catch(e=>{
  13083. console.log('保存操作失败')
  13084. console.log(e)
  13085. })
  13086. },
  13087. gx(){
  13088. this.$forceUpdate();
  13089. },
  13090. isUpdateCorrect(t,p){
  13091. if(this.greyType == false){
  13092. this.isUpdateText = t;
  13093. this.greyType = true;
  13094. }else{
  13095. if(p == 1){
  13096. this.newEnglishList.engText = this.isUpdateText;
  13097. }else if(p == 2){
  13098. this.oldEnglishJson1.engText = this.isUpdateText;
  13099. }else if(p == 3){
  13100. this.newEnglishList.engText = this.isUpdateText;
  13101. }else{
  13102. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13103. }
  13104. this.greyType = false
  13105. }
  13106. },
  13107. aiCorrect(t,p){
  13108. let aiText = "";
  13109. const loading = this.$loading.service({
  13110. background: "rgba(255, 255, 255)",
  13111. target: document.querySelectorAll(".loadingText")[0],
  13112. });
  13113. let param = {
  13114. model: "gpt-3.5-turbo",
  13115. temperature: 0,
  13116. max_tokens: 2048,
  13117. top_p: 1,
  13118. frequency_penalty: 0,
  13119. presence_penalty: 0,
  13120. messages: [
  13121. {
  13122. role: "user",
  13123. content:
  13124.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13125. },
  13126. ],
  13127. uid: this.userid,
  13128. stream: false,
  13129. };
  13130. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13131. (res) => {
  13132. if (
  13133. res.data.FunctionResponse &&
  13134. res.data.FunctionResponse.result &&
  13135. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13136. ) {
  13137. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13138. return;
  13139. }
  13140. aiText =
  13141. res.data.FunctionResponse.choices[0].message.content;
  13142. aiText = aiText.replace(/%/g,"%25");
  13143. // let w = "";
  13144. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13145. // for(var k = 0;k<a.length;k++){
  13146. // //diffWordsWithSpace
  13147. // if(a.length > 1){
  13148. // if(a[k].added == true){
  13149. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13150. // }else if(a[k].removed == true){
  13151. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13152. // }else{
  13153. // w += '<span>' + a[k].value + '</span>';
  13154. // }
  13155. // }else{
  13156. // if(p == 1){
  13157. // w = this.newEnglishList.engText;
  13158. // }else if(p == 2){
  13159. // w = this.oldEnglishJson1.engText;
  13160. // }else if(p == 3){
  13161. // w = this.newEnglishList.engText;
  13162. // }else{
  13163. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13164. // }
  13165. // }
  13166. // }
  13167. if(p == 1){
  13168. this.newEnglishList.engText = aiText;
  13169. }else if(p == 2){
  13170. this.oldEnglishJson1.engText = aiText;
  13171. }else if(p == 3){
  13172. this.newEnglishList.engText = aiText;
  13173. }else{
  13174. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13175. }
  13176. loading.close();
  13177. },
  13178. (err) => {
  13179. console.log(err);
  13180. loading.close();
  13181. }
  13182. );
  13183. },
  13184. addToolChoose() {
  13185. if (!this.checktoolArray.length) {
  13186. this.$message.error("请选择要添加的任务");
  13187. return;
  13188. }
  13189. if (
  13190. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13191. this.taskCount
  13192. ].toolChoose[0].tool.length
  13193. ) {
  13194. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13195. this.taskCount
  13196. ].toolChoose[0].tool = this.checktoolArray;
  13197. } else {
  13198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13199. this.taskCount
  13200. ].toolChoose.push({
  13201. tool: this.checktoolArray,
  13202. toolDetail: "",
  13203. toolType: 0,
  13204. askCount: 1,
  13205. askTitle: "",
  13206. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13207. });
  13208. }
  13209. let params = [
  13210. {
  13211. cid: this.id,
  13212. chapters: JSON.stringify(this.chapInfoList),
  13213. uid: this.userid,
  13214. unitIndex: this.courseType,
  13215. },
  13216. ];
  13217. this.ajax
  13218. .post(this.$store.state.api + "updateWorkNew4", params)
  13219. .then((res) => {
  13220. this.$message({
  13221. message: "添加成功",
  13222. type: "success",
  13223. });
  13224. this.checktoolArray = [];
  13225. this.getCourseDetail(2);
  13226. this.checkBz(
  13227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13228. this.taskCount
  13229. ].toolChoose.length - 1
  13230. );
  13231. this.toolDialogVisible = false;
  13232. this.refreshCourse();
  13233. this.$forceUpdate();
  13234. })
  13235. .catch((err) => {
  13236. console.error(err);
  13237. });
  13238. },
  13239. checkBz(index) {
  13240. this.isUpdateToolDetail = false;
  13241. this.$forceUpdate();
  13242. setTimeout(() => {
  13243. document.scrollingElement.scrollTop =
  13244. document.querySelectorAll(".filebox")[index].offsetTop +
  13245. document.querySelector(".student_body").offsetTop;
  13246. }, 500);
  13247. },
  13248. updateToolDetail(i, type) {
  13249. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13250. this.toolDetailIndex = i
  13251. this.isUpdateToolDetail1 = true;
  13252. setTimeout(() => {
  13253. this.updateToolDetailInner = JSON.parse(
  13254. JSON.stringify(
  13255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13256. this.taskCount
  13257. ].toolChoose[i].toolDetail
  13258. )
  13259. );
  13260. document.querySelector(".checkTextArea").focus();
  13261. }, 0);
  13262. } else if((this.isUpdateToolDetail1 && type != 2)){
  13263. // this.toolDetailIndex = i;
  13264. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13265. this.taskCount
  13266. ].toolChoose[i].toolDetail = JSON.parse(
  13267. JSON.stringify(this.updateToolDetailInner)
  13268. );
  13269. let params = [
  13270. {
  13271. cid: this.id,
  13272. chapters: JSON.stringify(this.chapInfoList),
  13273. uid: this.userid,
  13274. unitIndex: this.courseType,
  13275. },
  13276. ];
  13277. this.ajax
  13278. .post(this.$store.state.api + "updateWorkNew4", params)
  13279. .then((res) => {
  13280. this.isUpdateToolDetail1 = false;
  13281. this.$message({
  13282. message: "修改成功",
  13283. type: "success",
  13284. });
  13285. this.toolDetailIndex = null;
  13286. this.updateToolDetailInner = "";
  13287. this.getCourseDetail(2);
  13288. this.$forceUpdate();
  13289. })
  13290. .catch((err) => {
  13291. console.error(err);
  13292. });
  13293. } else if((this.isUpdateToolDetail1 && type == 2)){
  13294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13295. this.taskCount
  13296. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13297. JSON.stringify(this.updateToolDetailInner)
  13298. );
  13299. let params = [
  13300. {
  13301. cid: this.id,
  13302. chapters: JSON.stringify(this.chapInfoList),
  13303. uid: this.userid,
  13304. unitIndex: this.courseType,
  13305. },
  13306. ];
  13307. this.ajax
  13308. .post(this.$store.state.api + "updateWorkNew4", params)
  13309. .then((res) => {
  13310. this.$message({
  13311. message: "修改成功",
  13312. type: "success",
  13313. });
  13314. this.toolDetailIndex = i;
  13315. this.isUpdateToolDetail1 = true;
  13316. setTimeout(() => {
  13317. this.updateToolDetailInner = JSON.parse(
  13318. JSON.stringify(
  13319. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13320. this.taskCount
  13321. ].toolChoose[i].toolDetail
  13322. )
  13323. );
  13324. document.querySelector(".checkTextArea").focus();
  13325. }, 0);
  13326. this.getCourseDetail(2);
  13327. this.$forceUpdate();
  13328. })
  13329. .catch((err) => {
  13330. console.error(err);
  13331. });
  13332. }
  13333. },
  13334. jumpGj(i, j, k, l) {
  13335. for (var z = 0; z < this.navList.length; z++) {
  13336. for (var q = 0; q < this.navList[z].task.length; q++) {
  13337. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13338. this.navList[z].task[q].tool[w].isTool = false;
  13339. }
  13340. }
  13341. }
  13342. console.log(this.navList);
  13343. this.navList[i].task[j].tool[k].isTool =
  13344. !this.navList[i].task[j].tool[k].isTool;
  13345. var a = document.scrollingElement;
  13346. let target = document.querySelector(`#gj${k}`);
  13347. if (target) {
  13348. // target.scrollIntoView(true);
  13349. // setTimeout(() => {
  13350. // a.scrollTop = a.scrollTop - 150;
  13351. // }, 0);
  13352. target.scrollIntoView();
  13353. setTimeout(()=>{
  13354. let scrollBody = document.querySelector('.body_student').parentElement
  13355. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13356. }, 0);
  13357. }
  13358. this.navId = ""
  13359. let flag = this.courseType == i;
  13360. let flag2 = this.taskCount == j
  13361. if (l) {
  13362. this.courseType = i;
  13363. // this.navId = l;
  13364. this.taskCount = j;
  13365. this.selectPz();
  13366. this.getHomeWork();
  13367. this.getCourseDetail(2);
  13368. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13369. if(flag){
  13370. if(flag2){
  13371. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13372. }else{
  13373. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13374. }
  13375. }else{
  13376. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13377. }
  13378. }
  13379. // var b = this.$refs["bz" + k][0];
  13380. // a.scrollTop = b.offsetTop;
  13381. },
  13382. addTools2(i) {
  13383. if (i == 4) {
  13384. // this.openTools2(4);
  13385. this.$message.error("暂未开放");
  13386. return;
  13387. }
  13388. if (i == 45) {
  13389. // this.openTools2(45);
  13390. this.$message.error("暂未开放");
  13391. return;
  13392. }
  13393. if (i == 47) {
  13394. // this.openTools2(47);
  13395. this.$message.error("暂未开放");
  13396. return;
  13397. }
  13398. if (i == 49) {
  13399. // this.openTools2(49);
  13400. this.$message.error("暂未开放");
  13401. return;
  13402. }
  13403. if (i == 62) {
  13404. // this.openTools(itemTaskIndex, 62, toolIndex);
  13405. this.$message.error("暂未开放");
  13406. return;
  13407. }
  13408. if (i == 15) {
  13409. // this.openTools(itemTaskIndex, 15, toolIndex);
  13410. this.$message.error("暂未开放");
  13411. return;
  13412. }
  13413. if (i == 40) {
  13414. // this.openTools(itemTaskIndex, 40, toolIndex);
  13415. this.$message.error("暂未开放");
  13416. return;
  13417. }
  13418. if (i == 41) {
  13419. // this.openTools(itemTaskIndex, 41, toolIndex);
  13420. this.$message.error("暂未开放");
  13421. return;
  13422. }
  13423. if (i == 42) {
  13424. // this.openTools(itemTaskIndex, 42, toolIndex);
  13425. this.$message.error("暂未开放");
  13426. return;
  13427. }
  13428. if (this.checktoolArray.length > 0) {
  13429. if (this.checktoolArray.indexOf(i) != -1) {
  13430. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13431. } else {
  13432. this.checktoolArray = [];
  13433. this.checktoolArray.push(i);
  13434. }
  13435. } else {
  13436. this.checktoolArray.push(i);
  13437. }
  13438. this.$forceUpdate();
  13439. },
  13440. jump() {
  13441. window.topU.postMessage({ tools: "43" }, "*");
  13442. },
  13443. getUpdateMore(f, checkboxList, searchTN, index) {
  13444. this.dialogVisibleMember = f;
  13445. this.checkboxList = checkboxList;
  13446. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13447. this.plIndex = index;
  13448. },
  13449. setPlname(a) {
  13450. if (this.plworkFile.length) {
  13451. this.plworkFile[this.plIndex].username = a;
  13452. } else {
  13453. this.worksSName = a;
  13454. }
  13455. this.dialogVisibleMember = false;
  13456. },
  13457. previewImg(url,w) {
  13458. this.$hevueImgPreview(url);
  13459. if(w){
  13460. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13461. }
  13462. },
  13463. checkImg(list) {
  13464. if (!list.length) {
  13465. return;
  13466. }
  13467. this.$hevueImgPreview({
  13468. multiple: true, // 开启多图预览模式
  13469. imgList: list, // 需要预览的多图数组
  13470. });
  13471. },
  13472. change(val) {
  13473. console.log(val);
  13474. },
  13475. goTo(path) {
  13476. this.$router.push(path);
  13477. },
  13478. handlePictureCardPreview(url) {
  13479. this.dialogImageUrl = url;
  13480. this.pictureDialog = true;
  13481. },
  13482. clean(type) {
  13483. if (type == 1) {
  13484. this.studyJuri[0].cover.splice(0, 1);
  13485. } else if (type == 2) {
  13486. this.studyJuri[0].upVedio.splice(0, 1);
  13487. } else {
  13488. this.studyJuri[0].upFile.splice(0, 1);
  13489. }
  13490. },
  13491. clean2(index) {
  13492. this.plworkFile.splice(index, 1);
  13493. },
  13494. handleClose(done) {
  13495. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13496. this.videoDetail.sources[0].src = "";
  13497. }
  13498. this.commentIndexJson = {};
  13499. this.changeSplitScreenBehavior({code:99})
  13500. done();
  13501. },
  13502. fullTools() {
  13503. this.full = !this.full;
  13504. },
  13505. imgChange(file, fileList, type) {
  13506. if (type == 1) {
  13507. var _tmp = this.studyJuri[0].cover;
  13508. } else if (type == 2) {
  13509. var _tmp = this.studyJuri[0].upVedio;
  13510. } else {
  13511. var _tmp = this.studyJuri[0].upFile;
  13512. }
  13513. this.noneBtnImg = _tmp.length >= 1;
  13514. },
  13515. setContent(bool) {
  13516. this.contentDialog = bool;
  13517. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13518. document.querySelector(".workd_media").style.height = "650px";
  13519. } else if (document.querySelector(".workd_media")) {
  13520. document.querySelector(".workd_media").style.height = "auto";
  13521. }
  13522. },
  13523. setContent2(bool) {
  13524. this.mlDialog = bool;
  13525. if (
  13526. bool &&
  13527. this.contentDialog &&
  13528. document.querySelector(".workd_media")
  13529. ) {
  13530. document.querySelector(".workd_media").style.height = "650px";
  13531. } else if (document.querySelector(".workd_media")) {
  13532. document.querySelector(".workd_media").style.height = "auto";
  13533. }
  13534. },
  13535. openToolAll() {
  13536. this.toolDialogVisible = true;
  13537. },
  13538. addImg(e) {
  13539. var el = e.currentTarget;
  13540. // this.$message.success('触发上传')
  13541. el.getElementsByTagName("input")[0].click();
  13542. e.target.value = "";
  13543. },
  13544. addSelectAnswer() {
  13545. let params = [
  13546. {
  13547. uid: this.userid,
  13548. cid: this.id,
  13549. stage: this.courseType,
  13550. task: this.taskCount,
  13551. tool: this.toolindex,
  13552. content: this.selectAnswer.answer,
  13553. type: 7,
  13554. },
  13555. ];
  13556. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13557. this.homeWorkLoading = true
  13558. this.ajax
  13559. .post(this.$store.state.api + "addCourseWorks", params)
  13560. .then((res) => {
  13561. this.$message({
  13562. message: "提交成功",
  13563. type: "success",
  13564. });
  13565. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13566. setTimeout(() => {
  13567. this.homeWorkLoading = false
  13568. }, 500);
  13569. this.dialogVisibleSelect = false;
  13570. // this.selectAnswer = {};
  13571. this.selectSWorks();
  13572. this.selectStudent();
  13573. })
  13574. .catch((err) => {
  13575. this.$message.error("提交失败");
  13576. console.error(err);
  13577. setTimeout(() => {
  13578. this.homeWorkLoading = false
  13579. }, 500);
  13580. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13581. });
  13582. },
  13583. addSelectAnswerTeacher() {
  13584. let params = [
  13585. {
  13586. uid: this.sStudent.userid,
  13587. cid: this.id,
  13588. stage: this.courseType,
  13589. task: this.taskCount,
  13590. tool: this.toolindex,
  13591. content: this.selectAnswer.answer,
  13592. type: 7,
  13593. },
  13594. ];
  13595. this.ajax
  13596. .post(this.$store.state.api + "addCourseWorks", params)
  13597. .then((res) => {
  13598. this.$message({
  13599. message: "提交成功",
  13600. type: "success",
  13601. });
  13602. this.dialogVisibleSelectTeacher = false;
  13603. // this.selectAnswer = {};
  13604. this.selectSWorks();
  13605. this.selectStudent();
  13606. })
  13607. .catch((err) => {
  13608. this.$message.error("提交失败");
  13609. console.error(err);
  13610. });
  13611. },
  13612. addSenWorks() {
  13613. for (var i = 0; i < this.sentenceList.length; i++) {
  13614. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13615. if (
  13616. this.sentenceList[i].chooseSenList[j] == undefined ||
  13617. this.sentenceList[i].chooseSenList[j] == ""
  13618. ) {
  13619. this.$message.error("请将答案填写完整!");
  13620. return;
  13621. }
  13622. }
  13623. }
  13624. let params = [
  13625. {
  13626. uid: this.userid,
  13627. cid: this.id,
  13628. stage: this.courseType,
  13629. task: this.taskCount,
  13630. tool: this.toolindex,
  13631. content: JSON.stringify(this.sentenceList),
  13632. type: 9,
  13633. },
  13634. ];
  13635. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13636. this.homeWorkLoading = true
  13637. this.ajax
  13638. .post(this.$store.state.api + "addCourseWorks", params)
  13639. .then((res) => {
  13640. this.$message({
  13641. message: "提交成功",
  13642. type: "success",
  13643. });
  13644. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13645. setTimeout(() => {
  13646. this.homeWorkLoading = false
  13647. }, 500);
  13648. this.dialogVisibleSentence = false;
  13649. // this.selectAnswer = {};
  13650. this.selectSWorks();
  13651. this.selectStudent();
  13652. })
  13653. .catch((err) => {
  13654. this.$message.error("提交失败");
  13655. console.error(err);
  13656. setTimeout(() => {
  13657. this.homeWorkLoading = false
  13658. }, 500);
  13659. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13660. });
  13661. },
  13662. addSenWorksTeacher() {
  13663. for (var i = 0; i < this.sentenceList.length; i++) {
  13664. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13665. if (
  13666. this.sentenceList[i].chooseSenList[j] == undefined ||
  13667. this.sentenceList[i].chooseSenList[j] == ""
  13668. ) {
  13669. this.$message.error("请将答案填写完整!");
  13670. return;
  13671. }
  13672. }
  13673. }
  13674. let params = [
  13675. {
  13676. uid: this.sStudent.userid,
  13677. cid: this.id,
  13678. stage: this.courseType,
  13679. task: this.taskCount,
  13680. tool: this.toolindex,
  13681. content: JSON.stringify(this.sentenceList),
  13682. type: 9,
  13683. },
  13684. ];
  13685. this.ajax
  13686. .post(this.$store.state.api + "addCourseWorks", params)
  13687. .then((res) => {
  13688. this.$message({
  13689. message: "提交成功",
  13690. type: "success",
  13691. });
  13692. this.dialogVisibleSentenceTeacher = false;
  13693. // this.selectAnswer = {};
  13694. this.selectSWorks();
  13695. this.selectStudent();
  13696. })
  13697. .catch((err) => {
  13698. this.$message.error("提交失败");
  13699. console.error(err);
  13700. });
  13701. },
  13702. returnTableText() {
  13703. this.$confirm("确定还原此模板吗?", "提示", {
  13704. confirmButtonText: "确定",
  13705. cancelButtonText: "取消",
  13706. type: "warning",
  13707. })
  13708. .then(() => {
  13709. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13710. })
  13711. .catch(() => {});
  13712. },
  13713. addTableWorks() {
  13714. let params = [
  13715. {
  13716. uid: this.userid,
  13717. cid: this.id,
  13718. stage: this.courseType,
  13719. task: this.taskCount,
  13720. tool: this.toolindex,
  13721. content: JSON.stringify(this.tableJson),
  13722. type: 10,
  13723. },
  13724. ];
  13725. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13726. this.homeWorkLoading = true
  13727. this.ajax
  13728. .post(this.$store.state.api + "addCourseWorks", params)
  13729. .then((res) => {
  13730. this.$message({
  13731. message: "提交成功",
  13732. type: "success",
  13733. });
  13734. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13735. setTimeout(() => {
  13736. this.homeWorkLoading = false
  13737. }, 500);
  13738. this.dialogVisibleTable = false;
  13739. // this.selectAnswer = {};
  13740. this.selectSWorks();
  13741. this.selectStudent();
  13742. })
  13743. .catch((err) => {
  13744. this.$message.error("提交失败");
  13745. console.error(err);
  13746. setTimeout(() => {
  13747. this.homeWorkLoading = false
  13748. }, 500);
  13749. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13750. });
  13751. },
  13752. tableRowClassName({ row, rowIndex }) {
  13753. if ((rowIndex + 1) % 2 === 0) {
  13754. return "even_row";
  13755. } else {
  13756. return "";
  13757. }
  13758. },
  13759. addTableWorksTeacher() {
  13760. let params = [
  13761. {
  13762. uid: this.sStudent.userid,
  13763. cid: this.id,
  13764. stage: this.courseType,
  13765. task: this.taskCount,
  13766. tool: this.toolindex,
  13767. content: JSON.stringify(this.tableJson),
  13768. type: 10,
  13769. },
  13770. ];
  13771. this.ajax
  13772. .post(this.$store.state.api + "addCourseWorks", params)
  13773. .then((res) => {
  13774. this.$message({
  13775. message: "提交成功",
  13776. type: "success",
  13777. });
  13778. this.dialogVisibleTableTeacher = false;
  13779. // this.selectAnswer = {};
  13780. this.selectSWorks();
  13781. this.selectStudent();
  13782. })
  13783. .catch((err) => {
  13784. this.$message.error("提交失败");
  13785. console.error(err);
  13786. });
  13787. },
  13788. returnWordText() {
  13789. this.$confirm("确定还原此模板吗?", "提示", {
  13790. confirmButtonText: "确定",
  13791. cancelButtonText: "取消",
  13792. type: "warning",
  13793. })
  13794. .then(() => {
  13795. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13796. })
  13797. .catch(() => {});
  13798. },
  13799. addWordWorks() {
  13800. let params = [
  13801. {
  13802. uid: this.userid,
  13803. cid: this.id,
  13804. stage: this.courseType,
  13805. task: this.taskCount,
  13806. tool: this.toolindex,
  13807. content: JSON.stringify(this.wordJson),
  13808. type: 13,
  13809. atool: 52,
  13810. },
  13811. ];
  13812. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13813. this.homeWorkLoading = true
  13814. this.ajax
  13815. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13816. .then((res) => {
  13817. this.$message({
  13818. message: "提交成功",
  13819. type: "success",
  13820. });
  13821. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13822. setTimeout(() => {
  13823. this.homeWorkLoading = false
  13824. }, 500);
  13825. this.dialogVisibleWord = false;
  13826. // this.selectAnswer = {};
  13827. this.selectSWorks();
  13828. this.selectStudent();
  13829. })
  13830. .catch((err) => {
  13831. this.$message.error("提交失败");
  13832. console.error(err);
  13833. setTimeout(() => {
  13834. this.homeWorkLoading = false
  13835. }, 500);
  13836. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13837. });
  13838. },
  13839. addWordWorksTeacher() {
  13840. let params = [
  13841. {
  13842. uid: this.sStudent.userid,
  13843. cid: this.id,
  13844. stage: this.courseType,
  13845. task: this.taskCount,
  13846. tool: this.toolindex,
  13847. content: JSON.stringify(this.wordJson),
  13848. type: 13,
  13849. atool: 52,
  13850. },
  13851. ];
  13852. this.ajax
  13853. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13854. .then((res) => {
  13855. this.$message({
  13856. message: "提交成功",
  13857. type: "success",
  13858. });
  13859. this.dialogVisibleWordTeacher = false;
  13860. // this.selectAnswer = {};
  13861. this.selectSWorks();
  13862. this.selectStudent();
  13863. })
  13864. .catch((err) => {
  13865. this.$message.error("提交失败");
  13866. console.error(err);
  13867. });
  13868. },
  13869. addCourseWorks(i) {
  13870. var typesql;
  13871. if (this.fileType === 0) {
  13872. typesql = 1;
  13873. } else if (this.fileType === 1) {
  13874. typesql = 4;
  13875. } else if (this.fileType === 2) {
  13876. typesql = 5;
  13877. } else if (this.fileType === 3) {
  13878. typesql = 12;
  13879. }
  13880. if (!this.studyJuri[0].cover[0].url) {
  13881. this.$message.error("请上传文件");
  13882. return;
  13883. }
  13884. let params = [
  13885. {
  13886. uid: this.userid,
  13887. cid: this.id,
  13888. stage: this.courseType,
  13889. task: i,
  13890. tool: this.toolindex,
  13891. content: this.studyJuri[0].cover[0].url,
  13892. type: typesql,
  13893. },
  13894. ];
  13895. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13896. this.homeWorkLoading = true
  13897. this.ajax
  13898. .post(this.$store.state.api + "addCourseWorksR", params)
  13899. .then((res) => {
  13900. this.$message({
  13901. message: "提交成功",
  13902. type: "success",
  13903. });
  13904. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13905. setTimeout(() => {
  13906. this.homeWorkLoading = false
  13907. }, 500);
  13908. this.studyJuri[0].cover = [];
  13909. this.dialogVisible = false;
  13910. this.getCourseDetail(2);
  13911. })
  13912. .catch((err) => {
  13913. this.$message.error("提交失败");
  13914. console.error(err);
  13915. setTimeout(() => {
  13916. this.homeWorkLoading = false
  13917. }, 500);
  13918. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13919. });
  13920. },
  13921. addCourseWorksPl(i) {
  13922. let _files = this.plworkFile;
  13923. var c = 1;
  13924. for (var k = 0; k < _files.length; k++) {
  13925. if (!_files[k].username) {
  13926. c = 2;
  13927. }
  13928. }
  13929. if (c == 2) {
  13930. this.$message.error("请填写学生姓名");
  13931. return;
  13932. }
  13933. let params = [
  13934. {
  13935. ateacher: this.userid,
  13936. cid: this.id,
  13937. stage: this.courseType,
  13938. task: i,
  13939. tool: this.toolindex,
  13940. content: JSON.stringify(_files),
  13941. },
  13942. ];
  13943. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13944. this.homeWorkLoading = true
  13945. this.ajax
  13946. .post(this.$store.state.api + "addCourseWorksPl", params)
  13947. .then((res) => {
  13948. this.$message({
  13949. message: "提交成功",
  13950. type: "success",
  13951. });
  13952. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13953. setTimeout(() => {
  13954. this.homeWorkLoading = false
  13955. }, 500);
  13956. this.plworkFile = [];
  13957. this.dialogVisiblePl = false;
  13958. this.getCourseDetail(2);
  13959. })
  13960. .catch((err) => {
  13961. this.$message.error("提交失败");
  13962. console.error(err);
  13963. setTimeout(() => {
  13964. this.homeWorkLoading = false
  13965. }, 500);
  13966. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13967. });
  13968. },
  13969. addCourseWorks2(i) {
  13970. var typesql;
  13971. if (this.fileType === 0) {
  13972. typesql = 0;
  13973. } else if (this.fileType === 1) {
  13974. typesql = 1;
  13975. } else if (this.fileType === 2) {
  13976. typesql = 3;
  13977. } else if (this.fileType === 3) {
  13978. typesql = 12;
  13979. }
  13980. if (!this.studyJuri[0].cover[0].url) {
  13981. this.$message.error("请上传文件");
  13982. return;
  13983. }
  13984. let params = [
  13985. {
  13986. uid: this.userid,
  13987. cid: this.id,
  13988. stage: this.courseType,
  13989. task: i,
  13990. tool: this.toolindex,
  13991. content: JSON.stringify({
  13992. type: typesql,
  13993. groupIndex: this.groupIndex,
  13994. url: this.studyJuri[0].cover[0].url,
  13995. }),
  13996. type: 11,
  13997. atool: 49,
  13998. text: "",
  13999. },
  14000. ];
  14001. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14002. this.homeWorkLoading = true
  14003. this.ajax
  14004. .post(this.$store.state.api + "addCourseWorks5", params)
  14005. .then((res) => {
  14006. this.$message({
  14007. message: "提交成功",
  14008. type: "success",
  14009. });
  14010. setTimeout(() => {
  14011. this.homeWorkLoading = false
  14012. }, 500);
  14013. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14014. type: typesql,
  14015. groupIndex: this.groupIndex,
  14016. url: this.studyJuri[0].cover[0].url,
  14017. }),type: "course_tool_sub" }, "success")
  14018. this.studyJuri[0].cover = [];
  14019. this.dialogVisibleGroupWork = false;
  14020. this.getCourseDetail(2);
  14021. })
  14022. .catch((err) => {
  14023. this.$message.error("提交失败");
  14024. console.error(err);
  14025. setTimeout(() => {
  14026. this.homeWorkLoading = false
  14027. }, 500);
  14028. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14029. type: typesql,
  14030. groupIndex: this.groupIndex,
  14031. url: this.studyJuri[0].cover[0].url,
  14032. }),type: "course_tool_sub" }, err)
  14033. });
  14034. },
  14035. addEnglishWork() {
  14036. this.myAnList = this.$refs['engJson'].myAnswerList;
  14037. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14038. this.$message.error("请输入作文标题和正文!");
  14039. return;
  14040. }
  14041. let params = [
  14042. {
  14043. uid: this.userid,
  14044. cid: this.id,
  14045. stage: this.courseType,
  14046. task: this.taskCount,
  14047. tool: this.englishToolIndex,
  14048. content: JSON.stringify(this.myAnList),
  14049. type: 16,
  14050. atool: 69,
  14051. text: "",
  14052. },
  14053. ];
  14054. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14055. this.homeWorkLoading = true
  14056. this.ajax
  14057. .post(this.$store.state.api + "addCourseWorks5", params)
  14058. .then((res) => {
  14059. this.$message({
  14060. message: "提交成功",
  14061. type: "success",
  14062. });
  14063. setTimeout(() => {
  14064. this.homeWorkLoading = false
  14065. }, 500);
  14066. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14067. data: JSON.stringify(this.myAnList),
  14068. type: "course_tool_sub" }, "success")
  14069. this.myAnList = {};
  14070. this.englishList = {};
  14071. this.englishToolIndex = 0;
  14072. this.engDialogVisible = false;
  14073. this.selectSWorks();
  14074. this.selectStudent();
  14075. })
  14076. .catch((err) => {
  14077. this.$message.error("提交失败");
  14078. console.error(err);
  14079. setTimeout(() => {
  14080. this.homeWorkLoading = false
  14081. }, 500);
  14082. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14083. data: JSON.stringify(this.myAnList),
  14084. type: "course_tool_sub" }, err)
  14085. });
  14086. },
  14087. addCourseWorksGong(i, data, tool) {
  14088. let params = [
  14089. {
  14090. uid: this.userid,
  14091. cid: this.id,
  14092. stage: this.courseType,
  14093. task: this.taskCount,
  14094. tool: i,
  14095. content: data,
  14096. type: 12,
  14097. atool: tool,
  14098. text: "",
  14099. },
  14100. ];
  14101. this.ajax
  14102. .post(this.$store.state.api + "addCourseWorks5", params)
  14103. .then((res) => {
  14104. this.$message({
  14105. message: "提交成功",
  14106. type: "success",
  14107. });
  14108. this.studyJuri[0].cover = [];
  14109. this.selectSWorks();
  14110. this.selectStudent();
  14111. })
  14112. .catch((err) => {
  14113. this.$message.error("提交失败");
  14114. console.error(err);
  14115. });
  14116. },
  14117. addCourseWorksGongTeacher(i, data, tool) {
  14118. let params = [
  14119. {
  14120. uid: this.sStudent.userid,
  14121. cid: this.id,
  14122. stage: this.courseType,
  14123. task: this.taskCount,
  14124. tool: i,
  14125. content: data,
  14126. type: 12,
  14127. atool: tool,
  14128. text: "",
  14129. },
  14130. ];
  14131. this.ajax
  14132. .post(this.$store.state.api + "addCourseWorks5", params)
  14133. .then((res) => {
  14134. this.$message({
  14135. message: "提交成功",
  14136. type: "success",
  14137. });
  14138. this.studyJuri[0].cover = [];
  14139. this.dialogVisibleWorks = false;
  14140. this.selectSWorks();
  14141. this.selectStudent();
  14142. })
  14143. .catch((err) => {
  14144. this.$message.error("提交失败");
  14145. console.error(err);
  14146. });
  14147. },
  14148. addCourseWorksGongPl(i, data, tool, type) {
  14149. let params = [
  14150. {
  14151. uid: this.sStudent.userid,
  14152. cid: this.id,
  14153. stage: this.courseType,
  14154. task: this.taskCount,
  14155. tool: i,
  14156. content: data,
  14157. type: type,
  14158. atool: tool,
  14159. text: "",
  14160. },
  14161. ];
  14162. this.ajax
  14163. .post(this.$store.state.api + "addCourseWorks5", params)
  14164. .then((res) => {
  14165. this.$message({
  14166. message: "提交成功",
  14167. type: "success",
  14168. });
  14169. this.studyJuri[0].cover = [];
  14170. this.dialogVisibleWorks = false;
  14171. this.selectSWorks();
  14172. this.selectStudent();
  14173. })
  14174. .catch((err) => {
  14175. this.$message.error("提交失败");
  14176. console.error(err);
  14177. });
  14178. },
  14179. addCourseWorksTeacher(i) {
  14180. var typesql;
  14181. if (this.sTool == 32) {
  14182. this.addCourseWorksGongTeacher(
  14183. this.toolindex,
  14184. this.studyJuri[0].cover[0].url,
  14185. this.sTool
  14186. );
  14187. return;
  14188. }
  14189. if (this.fileType === 0) {
  14190. typesql = 1;
  14191. } else if (this.fileType === 1) {
  14192. typesql = 4;
  14193. } else if (this.fileType === 2) {
  14194. typesql = 5;
  14195. } else if (this.fileType === 3) {
  14196. typesql = 12;
  14197. }
  14198. if (this.sTool == 50) {
  14199. this.addCourseWorksGongPl(
  14200. this.toolindex,
  14201. this.studyJuri[0].cover[0].url,
  14202. this.sTool,
  14203. typesql
  14204. );
  14205. return;
  14206. }
  14207. if (!this.studyJuri[0].cover[0].url) {
  14208. this.$message.error("请上传文件");
  14209. return;
  14210. }
  14211. let params = [
  14212. {
  14213. uid: this.sStudent.userid,
  14214. cid: this.id,
  14215. stage: this.courseType,
  14216. task: i,
  14217. tool: this.toolindex,
  14218. content: this.studyJuri[0].cover[0].url,
  14219. type: typesql,
  14220. ateacher: this.userid,
  14221. },
  14222. ];
  14223. this.ajax
  14224. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14225. .then((res) => {
  14226. this.$message({
  14227. message: "提交成功",
  14228. type: "success",
  14229. });
  14230. this.studyJuri[0].cover = [];
  14231. this.dialogVisibleWorks = false;
  14232. this.getCourseDetail(2);
  14233. })
  14234. .catch((err) => {
  14235. this.$message.error("提交失败");
  14236. console.error(err);
  14237. });
  14238. },
  14239. selectUploadStudent(type) {
  14240. const loading = this.$loading.service({
  14241. background: "rgba(255, 255, 255, 0.7)",
  14242. target: document.body,
  14243. });
  14244. let params = {
  14245. cid: this.uploadCid,
  14246. oid: this.oid,
  14247. cn: "",
  14248. };
  14249. this.ajax
  14250. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14251. .then((res) => {
  14252. loading.close();
  14253. var studentK = [];
  14254. if (this.isWorksS[this.toolindex].length > 0) {
  14255. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14256. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14257. }
  14258. studentK = studentK.join(",");
  14259. }
  14260. this.uploadStudentJuri = res.data[0].filter((el) => {
  14261. return studentK.indexOf(el.userid) == -1;
  14262. });
  14263. if (this.worksSName && this.worksSid) {
  14264. this.uploadStudentJuri.push({
  14265. userid: this.worksSid,
  14266. name: this.worksSName,
  14267. });
  14268. }
  14269. if (type == 1) {
  14270. this.plworkFile = [];
  14271. this.dialogVisibleSname = true;
  14272. } else if (type == 2) {
  14273. this.dialogVisiblePl = true;
  14274. }
  14275. })
  14276. .catch((err) => {
  14277. loading.close();
  14278. console.error(err);
  14279. });
  14280. },
  14281. selectPickStudent() {
  14282. const loading = this.$loading.service({
  14283. background: "rgba(255, 255, 255, 0.7)",
  14284. target: document.body,
  14285. });
  14286. let params = {
  14287. cid: this.uploadCid,
  14288. oid: this.oid,
  14289. cn: "",
  14290. };
  14291. this.ajax
  14292. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14293. .then((res) => {
  14294. loading.close();
  14295. this.uploadStudentJuri = res.data[0];
  14296. this.dialogVisiblePickPeople = true;
  14297. })
  14298. .catch((err) => {
  14299. loading.close();
  14300. console.error(err);
  14301. });
  14302. },
  14303. arrayToArray(arrayo, arrayt) {
  14304. let array1 = arrayo;
  14305. let array2 = arrayt;
  14306. let commonElements = [];
  14307. for (let i = 0; i < array1.length; i++) {
  14308. for (let j = 0; j < array2.length; j++) {
  14309. if (array1[i] === array2[j]) {
  14310. commonElements.push(array1[i]);
  14311. }
  14312. }
  14313. }
  14314. return commonElements;
  14315. },
  14316. selectWorksStudent() {
  14317. let params = {
  14318. oid: this.oid,
  14319. cid: this.courseDetail.juri,
  14320. };
  14321. this.ajax
  14322. .get(this.$store.state.api + "selectWorksStudent", params)
  14323. .then((res) => {
  14324. var a = res.data[0];
  14325. for (var i = 0; i < this.isWorksS.length; i++) {
  14326. this.noWorksS[i] = [];
  14327. var studentK = [];
  14328. if (this.isWorksS[i].length > 0) {
  14329. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14330. studentK.push(this.isWorksS[i][z].uid);
  14331. }
  14332. studentK = studentK.join(",");
  14333. for (var j = 0; j < a.length; j++) {
  14334. if (studentK.indexOf(a[j].userid) == -1) {
  14335. if (this.tcid) {
  14336. // a[j].classid.indexOf(this.tcid) != -1
  14337. if (
  14338. this.arrayToArray(
  14339. a[j].classid.split(","),
  14340. this.tcid.split(",")
  14341. ).length
  14342. ) {
  14343. this.noWorksS[i].push({
  14344. student: a[j].name,
  14345. userid: a[j].userid,
  14346. });
  14347. }
  14348. } else {
  14349. this.noWorksS[i].push({
  14350. student: a[j].name,
  14351. userid: a[j].userid,
  14352. });
  14353. }
  14354. }
  14355. }
  14356. } else {
  14357. for (var k = 0; k < a.length; k++) {
  14358. if (this.tcid) {
  14359. if (
  14360. this.arrayToArray(
  14361. a[k].classid.split(","),
  14362. this.tcid.split(",")
  14363. ).length
  14364. ) {
  14365. this.noWorksS[i].push({
  14366. student: a[k].name,
  14367. userid: a[k].userid,
  14368. });
  14369. }
  14370. } else {
  14371. this.noWorksS[i].push({
  14372. student: a[k].name,
  14373. userid: a[k].userid,
  14374. });
  14375. }
  14376. }
  14377. }
  14378. }
  14379. this.$forceUpdate();
  14380. if (
  14381. Object.keys(this.commentDetail).length &&
  14382. Object.keys(this.commentIndexJson).length &&
  14383. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14384. ) {
  14385. let a = 1;
  14386. let c = this.commentIndexJson;
  14387. if (
  14388. this.commentIndexJson.gindex ||
  14389. this.commentIndexJson.gindex === 0
  14390. ) {
  14391. for (
  14392. var i = 0;
  14393. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14394. i++
  14395. ) {
  14396. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14397. groupA: for (var k = 0; k < _el.length; k++) {
  14398. let el = _el[k];
  14399. if (el.wid == this.commentDetail.wid) {
  14400. a = 2;
  14401. this.commentOther(
  14402. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14403. this.commentIndexJson.toolIndex,
  14404. k,
  14405. this.commentIndexJson.gindex
  14406. );
  14407. break groupA;
  14408. }
  14409. }
  14410. }
  14411. if (a === 1) {
  14412. this.commentDetail = [];
  14413. this.commentIndexJson = {};
  14414. this.commentDialogVisible = false;
  14415. this.$message("此作业已被删除");
  14416. }
  14417. } else {
  14418. if (this.isGroup && this.commentIndexJson.gid) {
  14419. groupA: for (
  14420. var i = 0;
  14421. i < this.courseGroup.group.length;
  14422. i++
  14423. ) {
  14424. let _group = this.courseGroup.group[i];
  14425. if (_group.id == this.commentIndexJson.gid) {
  14426. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14427. for (var k = 0; k < _el2.length; k++) {
  14428. let el2 = _el2[k];
  14429. if (el2.wid == this.commentDetail.wid) {
  14430. a = 2;
  14431. this.commentOther(
  14432. _el2[k],
  14433. this.commentIndexJson.toolIndex,
  14434. k,
  14435. null,
  14436. this.commentIndexJson.gid
  14437. );
  14438. break groupA;
  14439. }
  14440. }
  14441. }
  14442. }
  14443. }
  14444. if (a == 1) {
  14445. for (
  14446. var i = 0;
  14447. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14448. i++
  14449. ) {
  14450. let el =
  14451. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14452. if (el.wid == this.commentDetail.wid) {
  14453. a = 2;
  14454. this.commentOther(
  14455. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14456. this.commentIndexJson.toolIndex,
  14457. i
  14458. );
  14459. break;
  14460. }
  14461. }
  14462. }
  14463. if (a === 1) {
  14464. this.commentDetail = [];
  14465. this.commentIndexJson = {};
  14466. this.commentDialogVisible = false;
  14467. this.$message("此作业已被删除");
  14468. }
  14469. }
  14470. }
  14471. })
  14472. .catch((err) => {
  14473. console.error(err);
  14474. });
  14475. },
  14476. selectStudent() {
  14477. //学生查看自己作业
  14478. let params = {
  14479. uid: this.userid,
  14480. cid: this.id,
  14481. s: this.courseType,
  14482. t: this.taskCount,
  14483. };
  14484. this.ajax
  14485. .get(this.$store.state.api + "selectStudentWorks", params)
  14486. .then((res) => {
  14487. var a =
  14488. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14489. this.taskCount
  14490. ].toolChoose;
  14491. var b = res.data[0];
  14492. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14493. var y = [
  14494. "AVI",
  14495. "NAVI",
  14496. "MPEG",
  14497. "ASF",
  14498. "MOV",
  14499. "WMV",
  14500. "3GP",
  14501. "RM",
  14502. "RMVB",
  14503. "FLV",
  14504. "F4V",
  14505. "H.264",
  14506. "H.265",
  14507. "REAL VIDEO",
  14508. "MKV",
  14509. "WebM",
  14510. "HDDVD",
  14511. "MP4",
  14512. "MPG",
  14513. "M4V",
  14514. "MGV",
  14515. "OGV",
  14516. "QTM",
  14517. "STR",
  14518. "AMC",
  14519. "DVX",
  14520. "EVO",
  14521. "DAT",
  14522. "OGG",
  14523. "OGM",
  14524. ];
  14525. for (var i = 0; i < a.length; i++) {
  14526. this.workStudent[i] = [];
  14527. for (var j = 0; j < b.length; j++) {
  14528. if (i == b[j].tool) {
  14529. if (
  14530. (b[j].type == 1 ||
  14531. b[j].type == 4 ||
  14532. b[j].type == 5 ||
  14533. b[j].type == 6 ||
  14534. b[j].type == 12 ||
  14535. b[j].type == 7) &&
  14536. a[i].tool[0] != 15 &&
  14537. a[i].tool[0] != 4 &&
  14538. a[i].tool[0] != 45 &&
  14539. a[i].tool[0] != 50 &&
  14540. a[i].tool[0] != 32 &&
  14541. a[i].tool[0] != 57 &&
  14542. a[i].tool[0] != 52 &&
  14543. a[i].tool[0] != 69
  14544. ) {
  14545. if (
  14546. c.indexOf(
  14547. b[j].content
  14548. .split(".")
  14549. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14550. ) != -1 &&
  14551. a[i].tool[0] == 16 &&
  14552. b[j].atool != 50
  14553. ) {
  14554. this.workStudent[i].push({
  14555. works: b[j].content,
  14556. sName: b[j].name,
  14557. score: b[j].score,
  14558. img: b[j].img,
  14559. type: 1,
  14560. time: b[j].time,
  14561. userid: b[j].userid,
  14562. wid: b[j].id,
  14563. });
  14564. } else if (
  14565. y.indexOf(
  14566. b[j].content
  14567. .split(".")
  14568. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14569. ) != -1 &&
  14570. a[i].tool[0] == 16 &&
  14571. b[j].atool != 50
  14572. ) {
  14573. this.workStudent[i].push({
  14574. userid: b[j].userid,
  14575. wid: b[j].id,
  14576. works: b[j].content,
  14577. sName: b[j].name,
  14578. score: b[j].score,
  14579. img: b[j].img,
  14580. type: 3,
  14581. time: b[j].time,
  14582. });
  14583. } else if (b[j].type == 6 && b[j].atool != 50) {
  14584. this.workStudent[i].push({
  14585. userid: b[j].userid,
  14586. wid: b[j].id,
  14587. works: b[j].content,
  14588. sName: b[j].name,
  14589. score: b[j].score,
  14590. img: b[j].img,
  14591. type: 4,
  14592. time: b[j].time,
  14593. });
  14594. } else if (b[j].type == 7 && b[j].atool != 50) {
  14595. this.workStudent[i].push({
  14596. userid: b[j].userid,
  14597. wid: b[j].id,
  14598. works: b[j].content,
  14599. sName: b[j].name,
  14600. score: b[j].score,
  14601. img: b[j].img,
  14602. type: 5,
  14603. time: b[j].time,
  14604. });
  14605. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14606. this.workStudent[i].push({
  14607. works: b[j].content,
  14608. sName: b[j].name,
  14609. score: b[j].score,
  14610. img: b[j].img,
  14611. type: 12,
  14612. time: b[j].time,
  14613. userid: b[j].userid,
  14614. wid: b[j].id,
  14615. });
  14616. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14617. this.workStudent[i].push({
  14618. works: b[j].content,
  14619. sName: b[j].name,
  14620. score: b[j].score,
  14621. img: b[j].img,
  14622. type: 0,
  14623. time: b[j].time,
  14624. userid: b[j].userid,
  14625. wid: b[j].id,
  14626. });
  14627. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14628. this.workStudent[i].push({
  14629. works: b[j].content,
  14630. sName: b[j].name,
  14631. score: b[j].score,
  14632. img: b[j].img,
  14633. type: 0,
  14634. time: b[j].time,
  14635. userid: b[j].userid,
  14636. wid: b[j].id,
  14637. });
  14638. }
  14639. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14640. this.workStudent[i].push({
  14641. works: b[j].content,
  14642. sName: b[j].name,
  14643. score: b[j].score,
  14644. img: b[j].img,
  14645. type: 2,
  14646. time: b[j].time,
  14647. userid: b[j].userid,
  14648. wid: b[j].id,
  14649. });
  14650. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14651. this.workStudent[i].push({
  14652. works: b[j].content,
  14653. sName: b[j].name,
  14654. score: b[j].score,
  14655. img: b[j].img,
  14656. type: 20,
  14657. time: b[j].time,
  14658. userid: b[j].userid,
  14659. wid: b[j].id,
  14660. });
  14661. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14662. //问卷
  14663. this.workStudent[i].push({
  14664. works: b[j].content,
  14665. sName: b[j].name,
  14666. score: b[j].score,
  14667. img: b[j].img,
  14668. type: 2,
  14669. time: b[j].time,
  14670. userid: b[j].userid,
  14671. wid: b[j].id,
  14672. });
  14673. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14674. //选择题
  14675. this.workStudent[i].push({
  14676. works: b[j].content,
  14677. sName: b[j].name,
  14678. score: b[j].score,
  14679. img: b[j].img,
  14680. type: 8,
  14681. time: b[j].time,
  14682. userid: b[j].userid,
  14683. wid: b[j].id,
  14684. });
  14685. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14686. //选择题
  14687. this.workStudent[i].push({
  14688. works: b[j].content,
  14689. sName: b[j].name,
  14690. score: b[j].score,
  14691. img: b[j].img,
  14692. type: 9,
  14693. time: b[j].time,
  14694. userid: b[j].userid,
  14695. wid: b[j].id,
  14696. });
  14697. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14698. //选择题
  14699. this.workStudent[i].push({
  14700. works: b[j].content,
  14701. sName: b[j].name,
  14702. score: b[j].score,
  14703. img: b[j].img,
  14704. type: 10,
  14705. time: b[j].time,
  14706. userid: b[j].userid,
  14707. wid: b[j].id,
  14708. });
  14709. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14710. //选择题
  14711. this.workStudent[i].push({
  14712. works: b[j].content,
  14713. sName: b[j].name,
  14714. score: b[j].score,
  14715. img: b[j].img,
  14716. type: 13,
  14717. time: b[j].time,
  14718. userid: b[j].userid,
  14719. wid: b[j].id,
  14720. });
  14721. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14722. //选择题
  14723. this.workStudent[i].push({
  14724. works: b[j].content,
  14725. sName: b[j].name,
  14726. score: b[j].score,
  14727. img: b[j].img,
  14728. type: 12,
  14729. time: b[j].time,
  14730. userid: b[j].userid,
  14731. wid: b[j].id,
  14732. });
  14733. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14734. //选择题
  14735. this.workStudent[i].push({
  14736. works: b[j].content,
  14737. sName: b[j].name,
  14738. score: b[j].score,
  14739. img: b[j].img,
  14740. type: 12,
  14741. time: b[j].time,
  14742. userid: b[j].userid,
  14743. wid: b[j].id,
  14744. });
  14745. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14746. //选择题
  14747. this.workStudent[i].push({
  14748. works: b[j].content,
  14749. sName: b[j].name,
  14750. score: b[j].score,
  14751. img: b[j].img,
  14752. type: 15,
  14753. time: b[j].time,
  14754. userid: b[j].userid,
  14755. wid: b[j].id,
  14756. });
  14757. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14758. //英语写作
  14759. this.workStudent[i].push({
  14760. works: b[j].content,
  14761. sName: b[j].name,
  14762. score: b[j].score,
  14763. img: b[j].img,
  14764. type: 16,
  14765. time: b[j].time,
  14766. userid: b[j].userid,
  14767. wid: b[j].id,
  14768. aiCode: b[j].aiCode,
  14769. teacherCode: b[j].teacherCode
  14770. });
  14771. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14772. //英语口语
  14773. this.workStudent[i].push({
  14774. works: b[j].content,
  14775. sName: b[j].name,
  14776. score: b[j].score,
  14777. img: b[j].img,
  14778. type: 17,
  14779. time: b[j].time,
  14780. userid: b[j].userid,
  14781. wid: b[j].id,
  14782. });
  14783. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14784. //交互视频
  14785. this.workStudent[i].push({
  14786. works: b[j].content,
  14787. sName: b[j].name,
  14788. score: b[j].score,
  14789. img: b[j].img,
  14790. type: 14,
  14791. time: b[j].time,
  14792. userid: b[j].userid,
  14793. wid: b[j].id,
  14794. });
  14795. }
  14796. }
  14797. }
  14798. }
  14799. })
  14800. .catch((err) => {
  14801. console.error(err);
  14802. });
  14803. },
  14804. openVideo(w) {
  14805. this.videoDetail = {};
  14806. this.playerOptions1.sources[0].src = w.works;
  14807. this.videoDetail = this.playerOptions1;
  14808. this.videoVisible = true;
  14809. },
  14810. isLikes(wid, uid, t, c, isLikes,sName) {
  14811. if (isLikes == false) {
  14812. let params = [
  14813. {
  14814. wid: wid,
  14815. lid: uid,
  14816. t: t,
  14817. c: c,
  14818. },
  14819. ];
  14820. this.ajax
  14821. .post(this.$store.state.api + "insertComment", params)
  14822. .then((res) => {
  14823. this.$message({
  14824. message: "点赞成功",
  14825. type: "success",
  14826. });
  14827. this.selectSWorks();
  14828. this.selectStudent();
  14829. if(this.tType!=2){
  14830. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14831. }
  14832. })
  14833. .catch((err) => {
  14834. this.$message.error("点赞失败");
  14835. console.error(err);
  14836. });
  14837. } else {
  14838. let params = {
  14839. wid: wid,
  14840. lid: uid,
  14841. type: t,
  14842. };
  14843. this.ajax
  14844. .get(this.$store.state.api + "deleteComment", params)
  14845. .then((res) => {
  14846. this.$message({
  14847. message: "取消点赞成功",
  14848. type: "success",
  14849. });
  14850. this.selectSWorks();
  14851. this.selectStudent();
  14852. })
  14853. .catch((err) => {
  14854. console.error(err);
  14855. });
  14856. }
  14857. },
  14858. deleteComment(wid) {
  14859. this.$confirm("确定删除此评论吗?", "提示", {
  14860. confirmButtonText: "确定",
  14861. cancelButtonText: "取消",
  14862. type: "warning",
  14863. })
  14864. .then(() => {
  14865. let params = {
  14866. id: wid,
  14867. };
  14868. this.ajax
  14869. .get(this.$store.state.api + "deleteComment2", params)
  14870. .then((res) => {
  14871. this.$message({
  14872. message: "删除评论成功",
  14873. type: "success",
  14874. });
  14875. this.selectSWorks();
  14876. this.selectStudent();
  14877. })
  14878. .catch((err) => {
  14879. console.error(err);
  14880. });
  14881. })
  14882. .catch(() => {});
  14883. },
  14884. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14885. this.commentIndexJson = {
  14886. toolIndex: toolIndex,
  14887. wIndex: wIndex,
  14888. gindex: gindex,
  14889. gid: gid,
  14890. };
  14891. this.commentDetail = [];
  14892. this.commentDialogVisible = true;
  14893. this.commentDetail = w;
  14894. if (w.works && w.type == 1) {
  14895. // this.pptImgUrl = "";
  14896. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14897. if (
  14898. a.indexOf(
  14899. w.works
  14900. .split(".")
  14901. [w.works.split(".").length - 1].toLocaleUpperCase()
  14902. ) != -1
  14903. ) {
  14904. let _uuurl = await this.checkLink(w.works);
  14905. console.log(_uuurl)
  14906. this.pptImgUrl =
  14907. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14908. this.showPDF = false;
  14909. } else if (
  14910. w.works
  14911. .split(".")
  14912. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14913. ) {
  14914. this.pptImgUrl = w.works;
  14915. this.showPDF = true;
  14916. }
  14917. } else if (w.works && w.type == 3) {
  14918. this.videoDetail = {};
  14919. this.playerOptions1.sources[0].src = w.works;
  14920. this.videoDetail = this.playerOptions1;
  14921. // this.videoVisible = true;
  14922. } else if (w.works && w.type == 4) {
  14923. this.eScore = JSON.parse(w.works);
  14924. this.rateJson =
  14925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14926. this.taskCount
  14927. ].toolChoose[toolIndex].rateJson;
  14928. } else if (w.works && w.type == 10) {
  14929. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14930. } else if (w.works && w.type == 13) {
  14931. this.wordJson =
  14932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14933. this.taskCount
  14934. ].toolChoose[toolIndex].wordJson;
  14935. }
  14936. },
  14937. async openScore(w, index) {
  14938. this.wScore = 0;
  14939. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14940. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14941. this.commentDetail = [];
  14942. if(w.type == 17){
  14943. this.dialogVisibleENScore = true;
  14944. }else{
  14945. this.dialogVisibleScore = true;
  14946. }
  14947. this.commentDetail = w;
  14948. if (w.works && w.type == 1) {
  14949. this.pptImgUrl = "";
  14950. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14951. if (
  14952. a.indexOf(
  14953. w.works
  14954. .split(".")
  14955. [w.works.split(".").length - 1].toLocaleUpperCase()
  14956. ) != -1
  14957. ) {
  14958. let _uuurl = await this.checkLink(w.works);
  14959. console.log(_uuurl)
  14960. this.pptImgUrl =
  14961. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14962. this.showPDF = false;
  14963. } else if (
  14964. w.works
  14965. .split(".")
  14966. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14967. ) {
  14968. this.pptImgUrl = w.works;
  14969. this.showPDF = true;
  14970. }
  14971. } else if (w.works && w.type == 3) {
  14972. this.videoDetail = {};
  14973. this.playerOptions1.sources[0].src = w.works;
  14974. this.videoDetail = this.playerOptions1;
  14975. }else if(w.type == 17){
  14976. let englishVoiceJson = {}
  14977. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14978. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14979. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14980. .toolChoose[index].englishVoiceJson
  14981. : {};
  14982. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14983. }
  14984. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14985. },
  14986. addComment(wid, uid, t,detail) {
  14987. if (this.commentText == "") {
  14988. this.$message.error("请输入评论");
  14989. return;
  14990. }
  14991. let params2 = [
  14992. {
  14993. wid: wid,
  14994. lid: uid,
  14995. t: t,
  14996. },
  14997. ];
  14998. this.ajax
  14999. .post(this.$store.state.api + "getComment", params2)
  15000. .then((res) => {
  15001. if (res.data[0].length > 0) {
  15002. this.$message.error("一个作业只能评论一条");
  15003. } else {
  15004. let params = [
  15005. {
  15006. wid: wid,
  15007. lid: uid,
  15008. t: t,
  15009. c: this.commentText,
  15010. },
  15011. ];
  15012. this.ajax
  15013. .post(this.$store.state.api + "insertComment", params)
  15014. .then((res) => {
  15015. this.$message({
  15016. message: "评论成功",
  15017. type: "success",
  15018. });
  15019. this.commentText = "";
  15020. this.selectSWorks();
  15021. this.selectStudent();
  15022. if(this.tType!=2){
  15023. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15024. }
  15025. })
  15026. .catch((err) => {
  15027. this.$message.error("评论失败");
  15028. console.error(err);
  15029. });
  15030. }
  15031. })
  15032. .catch((err) => {
  15033. // this.$message.error("评论失败");
  15034. console.error(err);
  15035. });
  15036. },
  15037. scoreWork(wid,sName) {
  15038. if (this.wScore == 0) {
  15039. this.$message.error("请评分");
  15040. return;
  15041. }
  15042. let params = [
  15043. {
  15044. wid: wid,
  15045. score: JSON.stringify({
  15046. wScore: this.wScore,
  15047. detail: this.scoreDetail,
  15048. }),
  15049. },
  15050. ];
  15051. this.ajax
  15052. .post(this.$store.state.api + "scoreWork", params)
  15053. .then((res) => {
  15054. this.$message({
  15055. message: "评分成功",
  15056. type: "success",
  15057. });
  15058. this.wScore = 0;
  15059. this.scoreDetail = "";
  15060. this.dialogVisibleScore = false;
  15061. this.selectSWorks();
  15062. this.selectStudent();
  15063. if(this.tType!=2){
  15064. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15065. }
  15066. })
  15067. .catch((err) => {
  15068. this.$message.error("评分失败");
  15069. console.error(err);
  15070. });
  15071. },
  15072. openXz(w, i) {
  15073. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15074. .taskJson[this.taskCount].toolChoose[i].selectJson
  15075. ? JSON.parse(
  15076. JSON.stringify(
  15077. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15078. this.taskCount
  15079. ].toolChoose[i].selectJson
  15080. )
  15081. )
  15082. : { url: "", select: [], answer: [] };
  15083. var a = w.works.split(",");
  15084. for (var k = 0; k < a.length; k++) {
  15085. a[k] = parseInt(a[k]);
  15086. }
  15087. this.selectAnswer = { answer: a, stu: w.sName };
  15088. this.isSelect = true;
  15089. this.dialogVisibleSelect = true;
  15090. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15091. },
  15092. openSen(w, i) {
  15093. this.sentenceList1 = JSON.parse(w.works);
  15094. this.sentenceList1.stuName = w.sName;
  15095. this.dialogVisibleSentence1 = true;
  15096. },
  15097. openPj(w, toolindex) {
  15098. this.isStar = true;
  15099. this.eScore = JSON.parse(w);
  15100. this.rateJson =
  15101. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15102. this.taskCount
  15103. ].toolChoose[toolindex].rateJson;
  15104. this.studentEvalDialogVisible = true;
  15105. },
  15106. openEnglishEva(id,i){
  15107. let params = {
  15108. wid: id
  15109. };
  15110. this.ajax
  15111. .get(this.$store.state.api + "selectEngWork", params)
  15112. .then((res) => {
  15113. this.evaEngJson.message = res.data[0][0];
  15114. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15115. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15116. .toolChoose[i].englishList;
  15117. this.engEvaDialogVisible = true;
  15118. })
  15119. .catch((err) => {
  15120. console.error(err);
  15121. });
  15122. },
  15123. deleteWorks(id) {
  15124. this.$confirm("确定删除此作业吗?", "提示", {
  15125. confirmButtonText: "确定",
  15126. cancelButtonText: "取消",
  15127. type: "warning",
  15128. })
  15129. .then(() => {
  15130. let params = [
  15131. {
  15132. id: id,
  15133. },
  15134. ];
  15135. this.ajax
  15136. .post(this.$store.state.api + "deleteCourseWork", params)
  15137. .then((res) => {
  15138. this.$message({
  15139. message: "删除成功",
  15140. type: "success",
  15141. });
  15142. this.selectStudent();
  15143. this.selectSWorks();
  15144. this.selectSLook();
  15145. })
  15146. .catch((err) => {
  15147. this.$message.error("网络异常");
  15148. console.error(err);
  15149. });
  15150. })
  15151. .catch(() => {});
  15152. },
  15153. selectSWorks(gindex) {
  15154. //教师查看全部作业
  15155. let params = {
  15156. cid: this.id,
  15157. s: this.courseType,
  15158. t: this.taskCount,
  15159. };
  15160. this.ajax
  15161. .get(this.$store.state.api + "selectSWorks", params)
  15162. .then((res) => {
  15163. var a =
  15164. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15165. this.taskCount
  15166. ].toolChoose;
  15167. var b = res.data[0];
  15168. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15169. var y = [
  15170. "AVI",
  15171. "NAVI",
  15172. "MPEG",
  15173. "ASF",
  15174. "MOV",
  15175. "WMV",
  15176. "3GP",
  15177. "RM",
  15178. "RMVB",
  15179. "FLV",
  15180. "F4V",
  15181. "H.264",
  15182. "H.265",
  15183. "REAL VIDEO",
  15184. "MKV",
  15185. "WebM",
  15186. "HDDVD",
  15187. "MP4",
  15188. "MPG",
  15189. "M4V",
  15190. "MGV",
  15191. "OGV",
  15192. "QTM",
  15193. "STR",
  15194. "AMC",
  15195. "DVX",
  15196. "EVO",
  15197. "DAT",
  15198. "OGG",
  15199. "OGM",
  15200. ];
  15201. var d = res.data[1];
  15202. var e = res.data[2];
  15203. var f = res.data[3];
  15204. let _worksStudent = [];
  15205. var _worksStudent2 = [];
  15206. for (var i = 0; i < a.length; i++) {
  15207. _worksStudent[i] = [];
  15208. _worksStudent2[i] = [];
  15209. if (
  15210. !this.isCloseList[i] ||
  15211. this.isCloseList[i].isClose == undefined
  15212. ) {
  15213. this.isCloseList[i] = { isClose: 0 };
  15214. }
  15215. this.groupStudent[i] = [];
  15216. this.groupStudentUid[i] = [];
  15217. if (this.isGroup) {
  15218. for (
  15219. var groupI = 0;
  15220. groupI < this.courseGroup.group.length;
  15221. groupI++
  15222. ) {
  15223. this.courseGroup.group[groupI].works[i] = [];
  15224. }
  15225. }
  15226. this.isWorksS[i] = [];
  15227. this.checkJson[i] = [];
  15228. if (a[i].tool[0] == 49) {
  15229. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15230. this.groupStudent[i][gA] = [];
  15231. this.groupStudentUid[i][gA] = [];
  15232. _worksStudent[i][gA] = [];
  15233. _worksStudent2[i][gA] = [];
  15234. this.isCloseList[i][gA] = [];
  15235. for (var g = 0; g < f.length; g++) {
  15236. if (
  15237. f[g].ttype == 2 &&
  15238. this.tcid &&
  15239. this.arrayToArray(
  15240. (f[g].classid ? f[g].classid.split(",") : []),
  15241. this.tcid.split(",")
  15242. ).length == 0
  15243. ) {
  15244. continue;
  15245. }
  15246. let _classId = this.arrayToArray(
  15247. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15248. this.classId ? this.classId.split(",") : []
  15249. )
  15250. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15251. (f[g].classid ? f[g].classid.split(",") : []),
  15252. this.tcid.split(",")
  15253. ).length !== 0 || this.arrayToArray(
  15254. (f[g].classid ? f[g].classid.split(",") : []),
  15255. _classId
  15256. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15257. this.groupStudent[i][gA].push(f[g]);
  15258. this.groupStudentUid[i][gA].push(f[g].userid);
  15259. }
  15260. }
  15261. }
  15262. this.$forceUpdate();
  15263. }
  15264. for (var j = 0; j < b.length; j++) {
  15265. if (
  15266. b[j].ttype == 2 &&
  15267. this.tcid &&
  15268. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15269. .length == 0
  15270. ) {
  15271. continue;
  15272. }
  15273. var likesCount = 0;
  15274. var commentCount = 0;
  15275. var isLikes = false;
  15276. var commentJson = [];
  15277. var likeJson = [];
  15278. var data = b[j];
  15279. if (i == b[j].tool) {
  15280. if (data.type == 2 && a[i].tool[0] == 4) {
  15281. // if(JSON.parse(data.content)[0].anwer){
  15282. var checkL =
  15283. JSON.parse(data.content)[0].anwer instanceof Array
  15284. ? JSON.parse(data.content)[0].anwer
  15285. : JSON.parse(data.content)[0].anwer.split(",");
  15286. for (var z = 0; z < checkL.length; z++) {
  15287. if (!this.checkJson[i][z]) {
  15288. this.checkJson[i].push({
  15289. checkCount: [],
  15290. checkPerson: [],
  15291. rightPerson: [],
  15292. });
  15293. }
  15294. if (!this.checkJson[i][z].checkCount.length) {
  15295. this.checkJson[i][z].checkCount = [];
  15296. let _askItemCount = JSON.parse(data.content)[0].askJson
  15297. .askJson[z].askItem;
  15298. for (var aic = 0; aic < _askItemCount; aic++) {
  15299. this.checkJson[i][z].checkCount.push(0);
  15300. }
  15301. }
  15302. if (checkL[z] instanceof Array) {
  15303. if (
  15304. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15305. checkL[z].sort().join(",")
  15306. ) {
  15307. this.checkJson[i][z].rightPerson.push(data.name);
  15308. }
  15309. for (var q = 0; q < checkL[z].length; q++) {
  15310. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15311. ? this.checkJson[i][z].checkPerson[
  15312. parseInt(checkL[z][q])
  15313. ].push(data.name)
  15314. : (this.checkJson[i][z].checkPerson[
  15315. parseInt(checkL[z][q])
  15316. ] = [data.name]);
  15317. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15318. ? this.checkJson[i][z].checkCount[
  15319. parseInt(checkL[z][q])
  15320. ]++
  15321. : (this.checkJson[i][z].checkCount[
  15322. parseInt(checkL[z][q])
  15323. ] = 1);
  15324. }
  15325. } else {
  15326. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15327. this.checkJson[i][z].rightPerson.push(data.name);
  15328. }
  15329. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15330. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15331. ? this.checkJson[i][z].checkPerson[
  15332. parseInt(checkL[z])
  15333. ].push(data.name)
  15334. : (this.checkJson[i][z].checkPerson[
  15335. parseInt(checkL[z])
  15336. ] = [data.name]);
  15337. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15338. ? this.checkJson[i][z].checkCount[
  15339. parseInt(checkL[z])
  15340. ]++
  15341. : (this.checkJson[i][z].checkCount[
  15342. parseInt(checkL[z])
  15343. ] = 1);
  15344. }
  15345. }
  15346. }
  15347. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15348. var checkL = JSON.parse(data.content)[0].anwer;
  15349. for (var z = 0; z < checkL.length; z++) {
  15350. if (!this.checkJson[i][z]) {
  15351. this.checkJson[i].push({
  15352. checkCount: [],
  15353. checkPerson: [],
  15354. rightPerson: [],
  15355. });
  15356. }
  15357. if (!this.checkJson[i][z].checkCount.length) {
  15358. this.checkJson[i][z].checkCount = [];
  15359. let _askItemCount = JSON.parse(data.content)[0].testJson
  15360. .testJson[z].testItem;
  15361. for (var aic = 0; aic < _askItemCount; aic++) {
  15362. this.checkJson[i][z].checkCount.push(0);
  15363. }
  15364. }
  15365. if (checkL[z] instanceof Array) {
  15366. if (
  15367. JSON.parse(data.content)[0]
  15368. .testJson.testJson[z].answer.sort()
  15369. .join(",") == checkL[z].sort().join(",")
  15370. ) {
  15371. this.checkJson[i][z].rightPerson.push(data.name);
  15372. }
  15373. for (var q = 0; q < checkL[z].length; q++) {
  15374. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15375. ? this.checkJson[i][z].checkPerson[
  15376. parseInt(checkL[z][q])
  15377. ].push(data.name)
  15378. : (this.checkJson[i][z].checkPerson[
  15379. parseInt(checkL[z][q])
  15380. ] = [data.name]);
  15381. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15382. ? this.checkJson[i][z].checkCount[
  15383. parseInt(checkL[z][q])
  15384. ]++
  15385. : (this.checkJson[i][z].checkCount[
  15386. parseInt(checkL[z][q])
  15387. ] = 1);
  15388. }
  15389. } else {
  15390. if (
  15391. JSON.parse(data.content)[0].testJson.testJson[z]
  15392. .answer == checkL[z]
  15393. ) {
  15394. this.checkJson[i][z].rightPerson.push(data.name);
  15395. }
  15396. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15397. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15398. ? this.checkJson[i][z].checkPerson[
  15399. parseInt(checkL[z])
  15400. ].push(data.name)
  15401. : (this.checkJson[i][z].checkPerson[
  15402. parseInt(checkL[z])
  15403. ] = [data.name]);
  15404. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15405. ? this.checkJson[i][z].checkCount[
  15406. parseInt(checkL[z])
  15407. ]++
  15408. : (this.checkJson[i][z].checkCount[
  15409. parseInt(checkL[z])
  15410. ] = 1);
  15411. }
  15412. }
  15413. }
  15414. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15415. var checkL = JSON.parse(data.content);
  15416. for (var z = 0; z < checkL.length; z++) {
  15417. if (!this.checkJson[i][z]) {
  15418. this.checkJson[i].push({
  15419. checkCount: [],
  15420. checkPerson: [],
  15421. rightPerson: [],
  15422. });
  15423. }
  15424. this.checkJson[i][z].checkPerson.push(data.name);
  15425. if (
  15426. checkL[z].chooseSenList.toString() ==
  15427. checkL[z].rightAnswer.toString()
  15428. ) {
  15429. this.checkJson[i][z].rightPerson.push(data.name);
  15430. }
  15431. }
  15432. }
  15433. for (var k = 0; k < d.length; k++) {
  15434. //点赞
  15435. if (d[k].workId == b[j].id) {
  15436. likesCount++;
  15437. likeJson.push(d[k])
  15438. if (d[k].likesId == this.userid) {
  15439. isLikes = true;
  15440. }
  15441. }
  15442. }
  15443. for (var l = 0; l < e.length; l++) {
  15444. //评论
  15445. if (e[l].workId == b[j].id) {
  15446. if (e[l].comment != "") {
  15447. commentCount++;
  15448. commentJson.push({
  15449. commentText: e[l].comment,
  15450. commentTime: e[l].commentTime,
  15451. commentPeople: e[l].commentPeople,
  15452. userid: e[l].userid,
  15453. wid: e[l].id,
  15454. });
  15455. }
  15456. }
  15457. }
  15458. if (
  15459. (b[j].type == 1 ||
  15460. b[j].type == 4 ||
  15461. b[j].type == 5 ||
  15462. b[j].type == 6 ||
  15463. b[j].type == 12 ||
  15464. b[j].type == 7) &&
  15465. a[i].tool[0] != 15 &&
  15466. a[i].tool[0] != 4 &&
  15467. a[i].tool[0] != 45 &&
  15468. a[i].tool[0] != 50 &&
  15469. a[i].tool[0] != 32 &&
  15470. a[i].tool[0] != 57 &&
  15471. a[i].tool[0] != 52
  15472. ) {
  15473. if (
  15474. c.indexOf(
  15475. b[j].content
  15476. .split(".")
  15477. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15478. ) != -1 &&
  15479. a[i].tool[0] == 16 &&
  15480. b[j].atool != 50
  15481. ) {
  15482. let _works = {
  15483. userid: b[j].userid,
  15484. ateacher: b[j].ateacher,
  15485. wid: b[j].id,
  15486. works: b[j].content,
  15487. sName: b[j].name,
  15488. type: 1,
  15489. ttype:b[j].ttype,
  15490. time: b[j].time,
  15491. score: b[j].score,
  15492. img: b[j].img,
  15493. likesCount: likesCount,
  15494. commentCount: commentCount,
  15495. isLikes: isLikes,
  15496. commentJson: commentJson,
  15497. likeJson:likeJson
  15498. };
  15499. if (this.isGroup) {
  15500. let isGw = 1;
  15501. for (
  15502. var groupI = 0;
  15503. groupI < this.courseGroup.group.length;
  15504. groupI++
  15505. ) {
  15506. let gid = this.courseGroup.group[groupI].id;
  15507. if (
  15508. this.courseGroupStudentUid[gid].indexOf(
  15509. b[j].userid
  15510. ) != -1
  15511. ) {
  15512. isGw = 2;
  15513. this.courseGroup.group[groupI].works[i].push(_works);
  15514. break;
  15515. }
  15516. }
  15517. if (isGw == 1) {
  15518. _worksStudent[i].push(_works);
  15519. }
  15520. } else {
  15521. _worksStudent[i].push(_works);
  15522. }
  15523. _worksStudent2[i].push(_works);
  15524. this.isWorksS[i].push({
  15525. uid: b[j].userid,
  15526. sName: b[j].name,
  15527. });
  15528. } else if (
  15529. y.indexOf(
  15530. b[j].content
  15531. .split(".")
  15532. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15533. ) != -1 &&
  15534. a[i].tool[0] == 16 &&
  15535. b[j].atool != 50
  15536. ) {
  15537. let _works = {
  15538. userid: b[j].userid,
  15539. ateacher: b[j].ateacher,
  15540. wid: b[j].id,
  15541. works: b[j].content,
  15542. sName: b[j].name,
  15543. type: 3,
  15544. ttype:b[j].ttype,
  15545. time: b[j].time,
  15546. score: b[j].score,
  15547. img: b[j].img,
  15548. likesCount: likesCount,
  15549. commentCount: commentCount,
  15550. isLikes: isLikes,
  15551. commentJson: commentJson,
  15552. likeJson:likeJson
  15553. };
  15554. if (this.isGroup) {
  15555. let isGw = 1;
  15556. for (
  15557. var groupI = 0;
  15558. groupI < this.courseGroup.group.length;
  15559. groupI++
  15560. ) {
  15561. let gid = this.courseGroup.group[groupI].id;
  15562. if (
  15563. this.courseGroupStudentUid[gid].indexOf(
  15564. b[j].userid
  15565. ) != -1
  15566. ) {
  15567. isGw = 2;
  15568. this.courseGroup.group[groupI].works[i].push(_works);
  15569. break;
  15570. }
  15571. }
  15572. if (isGw == 1) {
  15573. _worksStudent[i].push(_works);
  15574. }
  15575. } else {
  15576. _worksStudent[i].push(_works);
  15577. }
  15578. _worksStudent2[i].push(_works);
  15579. this.isWorksS[i].push({
  15580. uid: b[j].userid,
  15581. sName: b[j].name,
  15582. });
  15583. } else if (b[j].type == 6 && b[j].atool != 50) {
  15584. let _works = {
  15585. userid: b[j].userid,
  15586. ateacher: b[j].ateacher,
  15587. wid: b[j].id,
  15588. works: b[j].content,
  15589. sName: b[j].name,
  15590. type: 4,
  15591. ttype:b[j].ttype,
  15592. time: b[j].time,
  15593. score: b[j].score,
  15594. img: b[j].img,
  15595. likesCount: likesCount,
  15596. commentCount: commentCount,
  15597. isLikes: isLikes,
  15598. commentJson: commentJson,
  15599. likeJson:likeJson
  15600. };
  15601. _worksStudent[i].push(_works);
  15602. _worksStudent2[i].push(_works);
  15603. this.isWorksS[i].push({
  15604. uid: b[j].userid,
  15605. sName: b[j].name,
  15606. });
  15607. } else if (b[j].type == 7 && b[j].atool != 50) {
  15608. let _work = {
  15609. userid: b[j].userid,
  15610. ateacher: b[j].ateacher,
  15611. wid: b[j].id,
  15612. works: b[j].content,
  15613. sName: b[j].name,
  15614. type: 5,
  15615. ttype:b[j].ttype,
  15616. time: b[j].time,
  15617. score: b[j].score,
  15618. img: b[j].img,
  15619. likesCount: likesCount,
  15620. commentCount: commentCount,
  15621. isLikes: isLikes,
  15622. commentJson: commentJson,
  15623. likeJson:likeJson
  15624. };
  15625. _worksStudent[i].push(_work);
  15626. _worksStudent2[i].push(_work);
  15627. this.isWorksS[i].push({
  15628. uid: b[j].userid,
  15629. sName: b[j].name,
  15630. });
  15631. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15632. let _works = {
  15633. userid: b[j].userid,
  15634. ateacher: b[j].ateacher,
  15635. wid: b[j].id,
  15636. works: b[j].content,
  15637. sName: b[j].name,
  15638. type: 12,
  15639. ttype:b[j].ttype,
  15640. time: b[j].time,
  15641. score: b[j].score,
  15642. img: b[j].img,
  15643. likesCount: likesCount,
  15644. commentCount: commentCount,
  15645. isLikes: isLikes,
  15646. commentJson: commentJson,
  15647. likeJson:likeJson
  15648. };
  15649. if (this.isGroup) {
  15650. let isGw = 1;
  15651. for (
  15652. var groupI = 0;
  15653. groupI < this.courseGroup.group.length;
  15654. groupI++
  15655. ) {
  15656. let gid = this.courseGroup.group[groupI].id;
  15657. if (
  15658. this.courseGroupStudentUid[gid].indexOf(
  15659. b[j].userid
  15660. ) != -1
  15661. ) {
  15662. isGw = 2;
  15663. this.courseGroup.group[groupI].works[i].push(_works);
  15664. break;
  15665. }
  15666. }
  15667. if (isGw == 1) {
  15668. _worksStudent[i].push(_works);
  15669. }
  15670. } else {
  15671. _worksStudent[i].push(_works);
  15672. }
  15673. _worksStudent2[i].push(_works);
  15674. this.isWorksS[i].push({
  15675. uid: b[j].userid,
  15676. sName: b[j].name,
  15677. });
  15678. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15679. let _works = {
  15680. userid: b[j].userid,
  15681. ateacher: b[j].ateacher,
  15682. wid: b[j].id,
  15683. works: b[j].content,
  15684. sName: b[j].name,
  15685. type: 0,
  15686. ttype:b[j].ttype,
  15687. time: b[j].time,
  15688. score: b[j].score,
  15689. img: b[j].img,
  15690. likesCount: likesCount,
  15691. commentCount: commentCount,
  15692. isLikes: isLikes,
  15693. commentJson: commentJson,
  15694. likeJson:likeJson
  15695. };
  15696. if (this.isGroup) {
  15697. let isGw = 1;
  15698. for (
  15699. var groupI = 0;
  15700. groupI < this.courseGroup.group.length;
  15701. groupI++
  15702. ) {
  15703. let gid = this.courseGroup.group[groupI].id;
  15704. if (
  15705. this.courseGroupStudentUid[gid].indexOf(
  15706. b[j].userid
  15707. ) != -1
  15708. ) {
  15709. isGw = 2;
  15710. this.courseGroup.group[groupI].works[i].push(_works);
  15711. break;
  15712. }
  15713. }
  15714. if (isGw == 1) {
  15715. _worksStudent[i].push(_works);
  15716. }
  15717. } else {
  15718. _worksStudent[i].push(_works);
  15719. }
  15720. _worksStudent2[i].push(_works);
  15721. this.isWorksS[i].push({
  15722. uid: b[j].userid,
  15723. sName: b[j].name,
  15724. });
  15725. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15726. let _works = {
  15727. userid: b[j].userid,
  15728. ateacher: b[j].ateacher,
  15729. wid: b[j].id,
  15730. works: b[j].content,
  15731. sName: b[j].name,
  15732. type: 0,
  15733. ttype:b[j].ttype,
  15734. time: b[j].time,
  15735. score: b[j].score,
  15736. img: b[j].img,
  15737. likesCount: likesCount,
  15738. commentCount: commentCount,
  15739. isLikes: isLikes,
  15740. commentJson: commentJson,
  15741. likeJson:likeJson
  15742. };
  15743. if (this.isGroup) {
  15744. let isGw = 1;
  15745. for (
  15746. var groupI = 0;
  15747. groupI < this.courseGroup.group.length;
  15748. groupI++
  15749. ) {
  15750. let gid = this.courseGroup.group[groupI].id;
  15751. if (
  15752. this.courseGroupStudentUid[gid].indexOf(
  15753. b[j].userid
  15754. ) != -1
  15755. ) {
  15756. isGw = 2;
  15757. this.courseGroup.group[groupI].works[i].push(_works);
  15758. break;
  15759. }
  15760. }
  15761. if (isGw == 1) {
  15762. _worksStudent[i].push(_works);
  15763. }
  15764. } else {
  15765. _worksStudent[i].push(_works);
  15766. }
  15767. _worksStudent2[i].push(_works);
  15768. this.isWorksS[i].push({
  15769. uid: b[j].userid,
  15770. sName: b[j].name,
  15771. });
  15772. }
  15773. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15774. let _works = {
  15775. userid: b[j].userid,
  15776. ateacher: b[j].ateacher,
  15777. wid: b[j].id,
  15778. works: b[j].content,
  15779. sName: b[j].name,
  15780. type: 2,
  15781. ttype:b[j].ttype,
  15782. time: b[j].time,
  15783. score: b[j].score,
  15784. img: b[j].img,
  15785. likesCount: likesCount,
  15786. commentCount: commentCount,
  15787. isLikes: isLikes,
  15788. commentJson: commentJson,
  15789. likeJson:likeJson
  15790. };
  15791. if (this.isGroup) {
  15792. let isGw = 1;
  15793. for (
  15794. var groupI = 0;
  15795. groupI < this.courseGroup.group.length;
  15796. groupI++
  15797. ) {
  15798. let gid = this.courseGroup.group[groupI].id;
  15799. if (
  15800. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15801. -1
  15802. ) {
  15803. isGw = 2;
  15804. this.courseGroup.group[groupI].works[i].push(_works);
  15805. break;
  15806. }
  15807. }
  15808. if (isGw == 1) {
  15809. _worksStudent[i].push(_works);
  15810. }
  15811. } else {
  15812. _worksStudent[i].push(_works);
  15813. }
  15814. _worksStudent2[i].push(_works);
  15815. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15816. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15817. let _works = {
  15818. userid: b[j].userid,
  15819. ateacher: b[j].ateacher,
  15820. wid: b[j].id,
  15821. works: b[j].content,
  15822. sName: b[j].name,
  15823. type: 20,
  15824. ttype:b[j].ttype,
  15825. time: b[j].time,
  15826. score: b[j].score,
  15827. img: b[j].img,
  15828. likesCount: likesCount,
  15829. commentCount: commentCount,
  15830. isLikes: isLikes,
  15831. commentJson: commentJson,
  15832. likeJson:likeJson
  15833. };
  15834. if (this.isGroup) {
  15835. let isGw = 1;
  15836. for (
  15837. var groupI = 0;
  15838. groupI < this.courseGroup.group.length;
  15839. groupI++
  15840. ) {
  15841. let gid = this.courseGroup.group[groupI].id;
  15842. if (
  15843. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15844. -1
  15845. ) {
  15846. isGw = 2;
  15847. this.courseGroup.group[groupI].works[i].push(_works);
  15848. break;
  15849. }
  15850. }
  15851. if (isGw == 1) {
  15852. _worksStudent[i].push(_works);
  15853. }
  15854. } else {
  15855. _worksStudent[i].push(_works);
  15856. }
  15857. _worksStudent2[i].push(_works);
  15858. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15859. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15860. //问卷
  15861. let _work = {
  15862. userid: b[j].userid,
  15863. ateacher: b[j].ateacher,
  15864. wid: b[j].id,
  15865. works: b[j].content,
  15866. sName: b[j].name,
  15867. type: 2,
  15868. ttype:b[j].ttype,
  15869. time: b[j].time,
  15870. score: b[j].score,
  15871. img: b[j].img,
  15872. likesCount: likesCount,
  15873. commentCount: commentCount,
  15874. isLikes: isLikes,
  15875. commentJson: commentJson,
  15876. likeJson:likeJson
  15877. };
  15878. _worksStudent[i].push(_work);
  15879. _worksStudent2[i].push(_work);
  15880. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15881. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15882. //选择题
  15883. let _work = {
  15884. userid: b[j].userid,
  15885. ateacher: b[j].ateacher,
  15886. wid: b[j].id,
  15887. works: b[j].content,
  15888. sName: b[j].name,
  15889. type: 8,
  15890. ttype:b[j].ttype,
  15891. time: b[j].time,
  15892. score: b[j].score,
  15893. img: b[j].img,
  15894. likesCount: likesCount,
  15895. commentCount: commentCount,
  15896. isLikes: isLikes,
  15897. commentJson: commentJson,
  15898. likeJson:likeJson
  15899. };
  15900. _worksStudent[i].push(_work);
  15901. _worksStudent2[i].push(_work);
  15902. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15903. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15904. //选择题
  15905. let _work = {
  15906. userid: b[j].userid,
  15907. ateacher: b[j].ateacher,
  15908. wid: b[j].id,
  15909. works: b[j].content,
  15910. sName: b[j].name,
  15911. type: 9,
  15912. ttype:b[j].ttype,
  15913. time: b[j].time,
  15914. score: b[j].score,
  15915. img: b[j].img,
  15916. likesCount: likesCount,
  15917. commentCount: commentCount,
  15918. isLikes: isLikes,
  15919. commentJson: commentJson,
  15920. likeJson:likeJson
  15921. };
  15922. _worksStudent[i].push(_work);
  15923. _worksStudent2[i].push(_work);
  15924. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15925. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15926. //选择题
  15927. let _work = {
  15928. userid: b[j].userid,
  15929. ateacher: b[j].ateacher,
  15930. wid: b[j].id,
  15931. works: b[j].content,
  15932. sName: b[j].name,
  15933. type: 10,
  15934. ttype:b[j].ttype,
  15935. time: b[j].time,
  15936. score: b[j].score,
  15937. img: b[j].img,
  15938. likesCount: likesCount,
  15939. commentCount: commentCount,
  15940. isLikes: isLikes,
  15941. commentJson: commentJson,
  15942. likeJson:likeJson
  15943. };
  15944. _worksStudent[i].push(_work);
  15945. _worksStudent2[i].push(_work);
  15946. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15947. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15948. //选择题
  15949. let _work = {
  15950. userid: b[j].userid,
  15951. ateacher: b[j].ateacher,
  15952. wid: b[j].id,
  15953. works: b[j].content,
  15954. sName: b[j].name,
  15955. type: 13,
  15956. ttype:b[j].ttype,
  15957. time: b[j].time,
  15958. score: b[j].score,
  15959. img: b[j].img,
  15960. likesCount: likesCount,
  15961. commentCount: commentCount,
  15962. isLikes: isLikes,
  15963. commentJson: commentJson,
  15964. likeJson:likeJson
  15965. };
  15966. _worksStudent[i].push(_work);
  15967. _worksStudent2[i].push(_work);
  15968. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15969. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15970. //选择题
  15971. let _work = {
  15972. userid: b[j].userid,
  15973. ateacher: b[j].ateacher,
  15974. wid: b[j].id,
  15975. works: b[j].content,
  15976. sName: b[j].name,
  15977. type: 16,
  15978. ttype:b[j].ttype,
  15979. time: b[j].time,
  15980. score: b[j].score,
  15981. img: b[j].img,
  15982. likesCount: likesCount,
  15983. commentCount: commentCount,
  15984. isLikes: isLikes,
  15985. commentJson: commentJson,
  15986. aiCode: b[j].aiCode,
  15987. teacherCode: b[j].teacherCode,
  15988. likeJson:likeJson
  15989. };
  15990. _worksStudent[i].push(_work);
  15991. _worksStudent2[i].push(_work);
  15992. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15993. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15994. //英语口语
  15995. let _work = {
  15996. userid: b[j].userid,
  15997. ateacher: b[j].ateacher,
  15998. wid: b[j].id,
  15999. works: b[j].content,
  16000. sName: b[j].name,
  16001. type: 17,
  16002. ttype:b[j].ttype,
  16003. time: b[j].time,
  16004. score: b[j].score,
  16005. img: b[j].img,
  16006. likesCount: likesCount,
  16007. commentCount: commentCount,
  16008. isLikes: isLikes,
  16009. commentJson: commentJson,
  16010. likeJson:likeJson
  16011. };
  16012. _worksStudent[i].push(_work);
  16013. _worksStudent2[i].push(_work);
  16014. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16015. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16016. //交互视频
  16017. let _work = {
  16018. userid: b[j].userid,
  16019. ateacher: b[j].ateacher,
  16020. wid: b[j].id,
  16021. works: b[j].content,
  16022. sName: b[j].name,
  16023. type: 14,
  16024. ttype:b[j].ttype,
  16025. time: b[j].time,
  16026. score: b[j].score,
  16027. img: b[j].img,
  16028. likesCount: likesCount,
  16029. commentCount: commentCount,
  16030. isLikes: isLikes,
  16031. commentJson: commentJson,
  16032. likeJson:likeJson
  16033. };
  16034. _worksStudent[i].push(_work);
  16035. _worksStudent2[i].push(_work);
  16036. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16037. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16038. let _gindex = JSON.parse(b[j].content);
  16039. if (
  16040. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16041. b[j].userid
  16042. ) != -1
  16043. ) {
  16044. let _work = {
  16045. userid: b[j].userid,
  16046. ateacher: b[j].ateacher,
  16047. wid: b[j].id,
  16048. works: _gindex.url,
  16049. sName: b[j].name,
  16050. type: _gindex.type,
  16051. ttype:b[j].ttype,
  16052. time: b[j].time,
  16053. score: b[j].score,
  16054. img: b[j].img,
  16055. likesCount: likesCount,
  16056. commentCount: commentCount,
  16057. isLikes: isLikes,
  16058. commentJson: commentJson,
  16059. likeJson:likeJson
  16060. };
  16061. _worksStudent[i][_gindex.groupIndex].push(_work);
  16062. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16063. }
  16064. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16065. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16066. let _work = {
  16067. userid: b[j].userid,
  16068. ateacher: b[j].ateacher,
  16069. wid: b[j].id,
  16070. works: b[j].content,
  16071. sName: b[j].name ? b[j].name : b[j].userid,
  16072. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16073. ttype:b[j].ttype,
  16074. time: b[j].time,
  16075. score: b[j].score,
  16076. img: b[j].img,
  16077. likesCount: likesCount,
  16078. commentCount: commentCount,
  16079. isLikes: isLikes,
  16080. commentJson: commentJson,
  16081. likeJson:likeJson
  16082. };
  16083. _worksStudent[i].push(_work);
  16084. _worksStudent2[i].push(_work);
  16085. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16086. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16087. let _work = {
  16088. userid: b[j].userid,
  16089. ateacher: b[j].ateacher,
  16090. wid: b[j].id,
  16091. works: b[j].content,
  16092. sName: b[j].name ? b[j].name : b[j].userid,
  16093. type: 12,
  16094. ttype:b[j].ttype,
  16095. time: b[j].time,
  16096. score: b[j].score,
  16097. img: b[j].img,
  16098. likesCount: likesCount,
  16099. commentCount: commentCount,
  16100. isLikes: isLikes,
  16101. commentJson: commentJson,
  16102. likeJson:likeJson
  16103. };
  16104. _worksStudent[i].push(_work);
  16105. _worksStudent2[i].push(_work);
  16106. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16107. } else if (
  16108. a[i].tool[0] == 57 &&
  16109. b[j].atool == 57 &&
  16110. b[j].type == 12
  16111. ) {
  16112. let _work = {
  16113. userid: b[j].userid,
  16114. ateacher: b[j].ateacher,
  16115. wid: b[j].id,
  16116. works: b[j].content,
  16117. sName: b[j].name ? b[j].name : b[j].userid,
  16118. type: 12,
  16119. ttype:b[j].ttype,
  16120. time: b[j].time,
  16121. score: b[j].score,
  16122. img: b[j].img,
  16123. likesCount: likesCount,
  16124. commentCount: commentCount,
  16125. isLikes: isLikes,
  16126. commentJson: commentJson,
  16127. likeJson:likeJson
  16128. };
  16129. _worksStudent[i].push(_work);
  16130. _worksStudent2[i].push(_work);
  16131. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16132. } else if (
  16133. a[i].tool[0] == 57 &&
  16134. b[j].atool == 57 &&
  16135. b[j].type == 15
  16136. ) {
  16137. let _work = {
  16138. userid: b[j].userid,
  16139. ateacher: b[j].ateacher,
  16140. wid: b[j].id,
  16141. works: b[j].content,
  16142. sName: b[j].name ? b[j].name : b[j].userid,
  16143. type: 15,
  16144. ttype:b[j].ttype,
  16145. time: b[j].time,
  16146. score: b[j].score,
  16147. img: b[j].img,
  16148. likesCount: likesCount,
  16149. commentCount: commentCount,
  16150. isLikes: isLikes,
  16151. commentJson: commentJson,
  16152. likeJson:likeJson
  16153. };
  16154. _worksStudent[i].push(_work);
  16155. _worksStudent2[i].push(_work);
  16156. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16157. }
  16158. }
  16159. }
  16160. if (_worksStudent[i] && _worksStudent[i].length) {
  16161. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16162. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16163. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16164. var scoreA = parseFloat(jscoreA);
  16165. var scoreB = parseFloat(jscoreB);
  16166. if (scoreA == scoreB) {
  16167. return b.likesCount - a.likesCount;
  16168. }
  16169. return scoreB - scoreA;
  16170. });
  16171. if (this.isGroup) {
  16172. for (
  16173. var groupI = 0;
  16174. groupI < this.courseGroup.group.length;
  16175. groupI++
  16176. ) {
  16177. this.courseGroup.group[groupI].works[i] =
  16178. this.courseGroup.group[groupI].works[i].sort(function (
  16179. a,
  16180. b
  16181. ) {
  16182. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16183. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16184. var scoreA = parseFloat(jscoreA);
  16185. var scoreB = parseFloat(jscoreB);
  16186. if (scoreA == scoreB) {
  16187. return b.likesCount - a.likesCount;
  16188. }
  16189. return scoreB - scoreA;
  16190. });
  16191. }
  16192. }
  16193. }
  16194. }
  16195. this.timeWorkList = _worksStudent2;
  16196. for (var i = 0; i < a.length; i++) {
  16197. for (var j = 0; j < b.length; j++) {
  16198. var data = b[j];
  16199. if (i == b[j].tool) {
  16200. if (data.type == 2 || data.type == 8) {
  16201. for (var z = 0; z < this.checkJson[i].length; z++) {
  16202. this.checkJson[i][z].checkPerent = [];
  16203. this.checkJson[i][z].right = Math.round(
  16204. (this.checkJson[i][z].rightPerson.length /
  16205. parseInt(_worksStudent[i].length)) *
  16206. 100
  16207. );
  16208. let aaaa = this.checkJson[i][z];
  16209. for (
  16210. var k = 0;
  16211. k < this.checkJson[i][z].checkCount.length;
  16212. k++
  16213. ) {
  16214. this.checkJson[i][z].checkPerent.push(
  16215. Math.round(
  16216. (this.checkJson[i][z].checkCount[k] /
  16217. parseInt(_worksStudent[i].length)) *
  16218. 100
  16219. )
  16220. );
  16221. }
  16222. }
  16223. } else if (data.type == 9) {
  16224. for (var z = 0; z < this.checkJson[i].length; z++) {
  16225. this.checkJson[i][z].checkPerent = [];
  16226. this.checkJson[i][z].right = Math.round(
  16227. (this.checkJson[i][z].rightPerson.length /
  16228. this.checkJson[i][z].checkPerson.length) *
  16229. 100
  16230. );
  16231. }
  16232. }
  16233. }
  16234. }
  16235. }
  16236. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16237. this.joinGroup(gindex);
  16238. }
  16239. this.worksStudent = _worksStudent;
  16240. this.selectWorksStudent();
  16241. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16242. this.$nextTick(()=>{
  16243. setTimeout(()=>{
  16244. setTimeout(()=>{
  16245. this.panToolHeight('tool-'+ci);
  16246. }, 500)
  16247. }, 0)
  16248. })
  16249. }
  16250. })
  16251. .catch((err) => {
  16252. console.error(err);
  16253. });
  16254. },
  16255. pngToWhiteBg(file) {
  16256. const _file = file;
  16257. let read = new FileReader();
  16258. read.readAsDataURL(file); // 文件转base64
  16259. return new Promise((resolve, reject) => {
  16260. read.onload = (e) => {
  16261. let img = new Image();
  16262. img.src = e.target.result;
  16263. img.onload = async () => {
  16264. // 生成canvas
  16265. let canvas = document.createElement("canvas");
  16266. let context = canvas.getContext("2d");
  16267. // 绘制图片到canvas上
  16268. canvas.width = img.width;
  16269. canvas.height = img.height;
  16270. // 在canvas绘制前填充白色背景
  16271. context.fillStyle = "#fff";
  16272. context.fillRect(0, 0, canvas.width, canvas.height);
  16273. context.drawImage(img, 0, 0);
  16274. let base64 = canvas.toDataURL(file["type"], 1);
  16275. let newFile = this.dataUrlToFile(base64, _file);
  16276. resolve(newFile);
  16277. };
  16278. };
  16279. });
  16280. },
  16281. dataUrlToFile(dataurl, file) {
  16282. let arr = dataurl.split(","),
  16283. mime = arr[0].match(/:(.*?);/)[1],
  16284. bstr = atob(arr[1]),
  16285. n = bstr.length,
  16286. u8arr = new Uint8Array(n);
  16287. while (n--) {
  16288. u8arr[n] = bstr.charCodeAt(n);
  16289. }
  16290. // return new Blob([u8arr], { type: mime });
  16291. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16292. type: mime,
  16293. });
  16294. },
  16295. async beforeUpload1(event, type, i) {
  16296. // this.$message.success('进入上传')
  16297. var file = "";
  16298. if (type == 5) {
  16299. file = event;
  16300. } else {
  16301. file = event.target.files[0];
  16302. }
  16303. var credentials = {
  16304. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16305. secretAccessKey: "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",
  16306. }; //秘钥形式的登录上传
  16307. window.AWS.config.update(credentials);
  16308. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16309. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16310. var _this = this;
  16311. _this.progress = 0;
  16312. _this.proVisible = true;
  16313. _this.isFinishSize = 0;
  16314. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16315. var b = [
  16316. "DOC",
  16317. "DOCX",
  16318. "DOCM",
  16319. "DOTM",
  16320. "DOTX",
  16321. "PPTX",
  16322. "PPSX",
  16323. "PPT",
  16324. "PPS",
  16325. "PPTM",
  16326. "POTM",
  16327. "PPAM",
  16328. "POTX",
  16329. "PPSM",
  16330. ];
  16331. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16332. var photoA = [
  16333. "BMP",
  16334. "GIF",
  16335. "PNG",
  16336. "JPEG",
  16337. "JPEG",
  16338. "JPG",
  16339. "TIF",
  16340. "PCX",
  16341. "TGA",
  16342. "EXIF",
  16343. "FPX",
  16344. "SVG",
  16345. "APNG",
  16346. ];
  16347. // if (
  16348. // b.indexOf(
  16349. // file.name
  16350. // .split(".")
  16351. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16352. // ) != -1
  16353. // ) {
  16354. // if (file.size / 1024 / 1024 > 10) {
  16355. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16356. // return;
  16357. // }
  16358. // } else if (
  16359. // excelA.indexOf(
  16360. // file.name
  16361. // .split(".")
  16362. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16363. // ) != "-1"
  16364. // ) {
  16365. // if (file.size / 1024 / 1024 > 5) {
  16366. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16367. // return;
  16368. // }
  16369. // }
  16370. if (
  16371. photoA.indexOf(
  16372. file.name
  16373. .split(".")
  16374. [file.name.split(".").length - 1].toLocaleUpperCase()
  16375. ) != -1 &&
  16376. type != 4
  16377. ) {
  16378. // const blob = await imageConversion.compress(file, 0.8)
  16379. file = await this.pngToWhiteBg(file);
  16380. const blob = await imageConversion.compressAccurately(file, 256);
  16381. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16382. file = new File([blob], file.name, { type: file.type });
  16383. }
  16384. if (file) {
  16385. var params = {
  16386. Key:
  16387. file.name.split(".")[0] +
  16388. new Date().getTime() +
  16389. "." +
  16390. file.name.split(".")[file.name.split(".").length - 1],
  16391. ContentType: file.type,
  16392. Body: file,
  16393. "Access-Control-Allow-Credentials": "*",
  16394. ACL: "public-read",
  16395. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16396. var options = {
  16397. // partSize: 2048 * 1024 * 1024,
  16398. partSize: 1024 * 1024 * 1024,
  16399. queueSize: 2,
  16400. leavePartsOnError: true,
  16401. };
  16402. bucket
  16403. .upload(params, options)
  16404. .on("httpUploadProgress", function (evt) {
  16405. //这里可以写进度条
  16406. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16407. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16408. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16409. })
  16410. .send(function (err, data) {
  16411. _this.progress = 100;
  16412. _this.isFinishSize = _this.isAllSize;
  16413. setTimeout(() => {
  16414. _this.proVisible = false;
  16415. }, 1000);
  16416. if (err) {
  16417. var a = _this.$refs.upload1.uploadFiles;
  16418. a.splice(a.length - 1, a.length);
  16419. _this.$message.error("上传失败");
  16420. } else {
  16421. // _this.$message.success('上传成功')
  16422. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16423. var c = [
  16424. "AVI",
  16425. "NAVI",
  16426. "MPEG",
  16427. "ASF",
  16428. "MOV",
  16429. "WMV",
  16430. "3GP",
  16431. "RM",
  16432. "RMVB",
  16433. "FLV",
  16434. "F4V",
  16435. "H.264",
  16436. "H.265",
  16437. "REAL VIDEO",
  16438. "MKV",
  16439. "WebM",
  16440. "HDDVD",
  16441. "MP4",
  16442. "MPG",
  16443. "M4V",
  16444. "MGV",
  16445. "OGV",
  16446. "QTM",
  16447. "STR",
  16448. "AMC",
  16449. "DVX",
  16450. "EVO",
  16451. "DAT",
  16452. "OGG",
  16453. "OGM",
  16454. ];
  16455. if (type == 1) {
  16456. _this.studyJuri[0].cover.push({
  16457. name: file.name,
  16458. url: data.Location,
  16459. uid: file.uid,
  16460. });
  16461. if (
  16462. c.indexOf(
  16463. _this.studyJuri[0].cover[0].url
  16464. .split(".")
  16465. [
  16466. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16467. ].toLocaleUpperCase()
  16468. ) != -1
  16469. ) {
  16470. _this.fileType = 2;
  16471. } else if (
  16472. b.indexOf(
  16473. _this.studyJuri[0].cover[0].url
  16474. .split(".")
  16475. [
  16476. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16477. ].toLocaleUpperCase()
  16478. ) != -1
  16479. ) {
  16480. _this.fileType = 1;
  16481. } else if (
  16482. photoA.indexOf(
  16483. _this.studyJuri[0].cover[0].url
  16484. .split(".")
  16485. [
  16486. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16487. ].toLocaleUpperCase()
  16488. ) != -1
  16489. ) {
  16490. _this.fileType = 0;
  16491. } else {
  16492. _this.fileType = 3;
  16493. }
  16494. _this.imgChange(null, null, type);
  16495. } else if (type == 2) {
  16496. _this.upToolImg = data.Location;
  16497. _this.imgChange(null, null, type);
  16498. _this.addCourseWorks(i);
  16499. } else if (type == 4) {
  16500. _this.addPz("3", data.Location);
  16501. } else if (type == 5) {
  16502. _this.addImgDrawImG(data.Location);
  16503. } else if (type == 6) {
  16504. var _ftype = 1;
  16505. if (
  16506. c.indexOf(
  16507. data.Location.split(".")[
  16508. data.Location.split(".").length - 1
  16509. ].toLocaleUpperCase()
  16510. ) != -1
  16511. ) {
  16512. _ftype = 5;
  16513. } else if (
  16514. b.indexOf(
  16515. data.Location.split(".")[
  16516. data.Location.split(".").length - 1
  16517. ].toLocaleUpperCase()
  16518. ) != -1
  16519. ) {
  16520. _ftype = 4;
  16521. } else {
  16522. _ftype = 1;
  16523. }
  16524. _this.plworkFile.push({
  16525. name: file.name,
  16526. url: data.Location,
  16527. uid: file.uid,
  16528. fileType: _ftype,
  16529. username:
  16530. _this.plworkFile.length > 10
  16531. ? _this.plworkFile.length + 1
  16532. : "0" + (_this.plworkFile.length + 1),
  16533. });
  16534. } else if (type == 7) {
  16535. _this.addCourseWorksGong(i, data.Location, 32);
  16536. } else if (type == 8) {
  16537. _this.addCourseWorksGong(i, data.Location, 57);
  16538. }
  16539. _this.imgChange(null, null, type);
  16540. console.log(data.Location);
  16541. // _this.$message.success('上传成功'+data.Location)
  16542. }
  16543. });
  16544. }
  16545. },
  16546. async beforeUpload3(event, type, i) {
  16547. // this.$message.success('进入上传')
  16548. let file = "";
  16549. let cfindex2 = 0;
  16550. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16551. file = event.target.files[cfindex];
  16552. var credentials = {
  16553. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16554. secretAccessKey: "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",
  16555. }; //秘钥形式的登录上传
  16556. window.AWS.config.update(credentials);
  16557. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16558. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16559. var _this = this;
  16560. // _this.progress = 0;
  16561. _this.proVisible2 = true;
  16562. var b = [
  16563. "DOC",
  16564. "DOCX",
  16565. "DOCM",
  16566. "DOTM",
  16567. "DOTX",
  16568. "PPTX",
  16569. "PPSX",
  16570. "PPT",
  16571. "PPS",
  16572. "PPTM",
  16573. "POTM",
  16574. "PPAM",
  16575. "POTX",
  16576. "PPSM",
  16577. ];
  16578. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16579. var photoA = [
  16580. "BMP",
  16581. "GIF",
  16582. "PNG",
  16583. "JPEG",
  16584. "JPG",
  16585. "TIF",
  16586. "PCX",
  16587. "TGA",
  16588. "EXIF",
  16589. "FPX",
  16590. "SVG",
  16591. "APNG",
  16592. ];
  16593. if (
  16594. photoA.indexOf(
  16595. file.name
  16596. .split(".")
  16597. [file.name.split(".").length - 1].toLocaleUpperCase()
  16598. ) != -1 &&
  16599. type != 4
  16600. ) {
  16601. // const blob = await imageConversion.compress(file, 0.8)
  16602. file = await this.pngToWhiteBg(file);
  16603. const blob = await imageConversion.compressAccurately(file, 256);
  16604. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16605. file = new File([blob], file.name, { type: file.type });
  16606. }
  16607. if (file) {
  16608. var params = {
  16609. Key:
  16610. file.name.split(".")[0] +
  16611. new Date().getTime() +
  16612. "." +
  16613. file.name.split(".")[file.name.split(".").length - 1],
  16614. ContentType: file.type,
  16615. Body: file,
  16616. "Access-Control-Allow-Credentials": "*",
  16617. ACL: "public-read",
  16618. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16619. var options = {
  16620. // partSize: 2048 * 1024 * 1024,
  16621. partSize: 1024 * 1024 * 1024,
  16622. queueSize: 2,
  16623. leavePartsOnError: true,
  16624. };
  16625. bucket
  16626. .upload(params, options)
  16627. .on("httpUploadProgress", function (evt) {
  16628. //这里可以写进度条
  16629. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16630. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16631. })
  16632. .send(function (err, data) {
  16633. // _this.progress = 100;
  16634. cfindex2++;
  16635. setTimeout(() => {
  16636. if (
  16637. cfindex2 == event.target.files.length - 1 ||
  16638. cfindex2 > event.target.files.length - 1
  16639. ) {
  16640. _this.proVisible2 = false;
  16641. }
  16642. }, 1000);
  16643. if (err) {
  16644. var a = _this.$refs.upload1.uploadFiles;
  16645. a.splice(a.length - 1, a.length);
  16646. _this.$message.error("上传失败");
  16647. } else {
  16648. // _this.$message.success('上传成功')
  16649. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16650. var c = [
  16651. "AVI",
  16652. "NAVI",
  16653. "MPEG",
  16654. "ASF",
  16655. "MOV",
  16656. "WMV",
  16657. "3GP",
  16658. "RM",
  16659. "RMVB",
  16660. "FLV",
  16661. "F4V",
  16662. "H.264",
  16663. "H.265",
  16664. "REAL VIDEO",
  16665. "MKV",
  16666. "WebM",
  16667. "HDDVD",
  16668. "MP4",
  16669. "MPG",
  16670. "M4V",
  16671. "MGV",
  16672. "OGV",
  16673. "QTM",
  16674. "STR",
  16675. "AMC",
  16676. "DVX",
  16677. "EVO",
  16678. "DAT",
  16679. "OGG",
  16680. "OGM",
  16681. ];
  16682. if (type == 1) {
  16683. _this.studyJuri[0].cover.push({
  16684. name: file.name,
  16685. url: data.Location,
  16686. uid: file.uid,
  16687. });
  16688. if (
  16689. c.indexOf(
  16690. _this.studyJuri[0].cover[0].url
  16691. .split(".")
  16692. [
  16693. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16694. ].toLocaleUpperCase()
  16695. ) != -1
  16696. ) {
  16697. _this.fileType = 2;
  16698. } else if (
  16699. b.indexOf(
  16700. _this.studyJuri[0].cover[0].url
  16701. .split(".")
  16702. [
  16703. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16704. ].toLocaleUpperCase()
  16705. ) != -1
  16706. ) {
  16707. _this.fileType = 1;
  16708. } else {
  16709. _this.fileType = 0;
  16710. }
  16711. _this.imgChange(null, null, type);
  16712. } else if (type == 2) {
  16713. _this.upToolImg = data.Location;
  16714. _this.imgChange(null, null, type);
  16715. _this.addCourseWorks(i);
  16716. } else if (type == 4) {
  16717. _this.addPz("3", data.Location);
  16718. } else if (type == 5) {
  16719. _this.addImgDrawImG(data.Location);
  16720. } else if (type == 6) {
  16721. var _ftype = 1;
  16722. if (
  16723. c.indexOf(
  16724. data.Location.split(".")[
  16725. data.Location.split(".").length - 1
  16726. ].toLocaleUpperCase()
  16727. ) != -1
  16728. ) {
  16729. _ftype = 5;
  16730. } else if (
  16731. b.indexOf(
  16732. data.Location.split(".")[
  16733. data.Location.split(".").length - 1
  16734. ].toLocaleUpperCase()
  16735. ) != -1
  16736. ) {
  16737. _ftype = 4;
  16738. } else {
  16739. _ftype = 1;
  16740. }
  16741. _this.plworkFile.push({
  16742. name: file.name,
  16743. url: data.Location,
  16744. uid: file.uid,
  16745. fileType: _ftype,
  16746. username:
  16747. _this.plworkFile.length + 1 > 9
  16748. ? _this.plworkFile.length + 1
  16749. : "0" + (_this.plworkFile.length + 1),
  16750. });
  16751. }
  16752. _this.imgChange(null, null, type);
  16753. console.log(data.Location);
  16754. // _this.$message.success('上传成功'+data.Location)
  16755. }
  16756. });
  16757. }
  16758. }
  16759. },
  16760. beforeUpload2(event, type) {
  16761. var file = event.target.files[0];
  16762. var credentials = {
  16763. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16764. secretAccessKey: "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",
  16765. }; //秘钥形式的登录上传
  16766. window.AWS.config.update(credentials);
  16767. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16768. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16769. var _this = this;
  16770. _this.progress = 0;
  16771. _this.proVisible = true;
  16772. if (file) {
  16773. var params = {
  16774. Key:
  16775. file.name.split(".")[0] +
  16776. new Date().getTime() +
  16777. "." +
  16778. file.name.split(".")[file.name.split(".").length - 1],
  16779. ContentType: file.type,
  16780. Body: file,
  16781. "Access-Control-Allow-Credentials": "*",
  16782. ACL: "public-read",
  16783. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16784. var options = {
  16785. partSize: 2048 * 1024 * 1024,
  16786. queueSize: 2,
  16787. leavePartsOnError: true,
  16788. };
  16789. bucket
  16790. .upload(params, options)
  16791. .on("httpUploadProgress", function (evt) {
  16792. //这里可以写进度条
  16793. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16794. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16795. })
  16796. .send(function (err, data) {
  16797. _this.progress = 100;
  16798. setTimeout(() => {
  16799. _this.proVisible = false;
  16800. }, 1000);
  16801. if (err) {
  16802. var a = _this.$refs.upload1.uploadFiles;
  16803. a.splice(a.length - 1, a.length);
  16804. _this.$message.error("上传失败");
  16805. } else {
  16806. if (type == 2) {
  16807. _this.studyJuri[0].upVedio.push({
  16808. name: file.name,
  16809. url: data.Location,
  16810. uid: file.uid,
  16811. });
  16812. _this.imgChange(null, null, type);
  16813. } else if (type == 3) {
  16814. _this.studyJuri[0].upFile.push({
  16815. name: file.name,
  16816. url: data.Location,
  16817. uid: file.uid,
  16818. });
  16819. _this.imgChange(null, null, type);
  16820. }
  16821. console.log(data.Location);
  16822. }
  16823. });
  16824. }
  16825. },
  16826. allScrell() {
  16827. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16828. },
  16829. nextOrpreSteps(t) {
  16830. if (this.IsFollow && this.tType == 2) {
  16831. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16832. return;
  16833. }
  16834. var b = this.chapInfoList.length - 1;
  16835. if (t == 0) {
  16836. if (this.courseType == 0) {
  16837. if (this.taskCount == 0) {
  16838. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16839. if (this.IsLookOpen) {
  16840. if (
  16841. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16842. ) {
  16843. if (
  16844. this.courseDetail.userid != this.userid &&
  16845. (!this.courseDetail.course_teacher ||
  16846. (this.courseDetail.course_teacher &&
  16847. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16848. ) {
  16849. this.$message.error("任务未解锁");
  16850. } else {
  16851. this.$message.error("上一任务未解锁");
  16852. }
  16853. return;
  16854. }
  16855. }
  16856. this.navList[this.courseType].isOpen = false;
  16857. this.courseType = b;
  16858. this.taskCount =
  16859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16860. .length - 1;
  16861. this.navList[this.courseType].isOpen = true;
  16862. } else {
  16863. this.taskCount--;
  16864. }
  16865. } else {
  16866. if (this.taskCount == 0) {
  16867. this.navList[this.courseType].isOpen = false;
  16868. this.courseType--;
  16869. this.taskCount =
  16870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16871. .length - 1;
  16872. this.navList[this.courseType].isOpen = true;
  16873. } else {
  16874. this.taskCount--;
  16875. }
  16876. }
  16877. } else {
  16878. if (this.courseType == b) {
  16879. if (
  16880. this.taskCount ==
  16881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16882. 1
  16883. ) {
  16884. this.navList[this.courseType].isOpen = false;
  16885. this.courseType = 0;
  16886. this.taskCount = 0;
  16887. this.navList[this.courseType].isOpen = true;
  16888. } else {
  16889. var bbb = parseInt(this.taskCount) + 1;
  16890. if (
  16891. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16892. .isLook &&
  16893. this.courseDetail.userid != this.userid &&
  16894. (!this.courseDetail.course_teacher ||
  16895. (this.courseDetail.course_teacher &&
  16896. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16897. this.IsLookOpen
  16898. ) {
  16899. this.$message.error("任务未解锁");
  16900. return;
  16901. }
  16902. this.taskCount++;
  16903. if (this.IsLookOpen) {
  16904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16905. this.taskCount
  16906. ].isLook = true;
  16907. this.addCourseState(3);
  16908. }
  16909. }
  16910. } else {
  16911. if (
  16912. this.taskCount ==
  16913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16914. 1
  16915. ) {
  16916. var bbb = parseInt(this.courseType) + 1;
  16917. if (
  16918. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16919. this.courseDetail.userid != this.userid &&
  16920. (!this.courseDetail.course_teacher ||
  16921. (this.courseDetail.course_teacher &&
  16922. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16923. this.IsLookOpen
  16924. ) {
  16925. this.$message.error("任务未解锁");
  16926. return;
  16927. }
  16928. this.navList[this.courseType].isOpen = false;
  16929. this.courseType++;
  16930. this.taskCount = 0;
  16931. this.navList[this.courseType].isOpen = true;
  16932. } else {
  16933. var bbb = parseInt(this.taskCount) + 1;
  16934. if (
  16935. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16936. .isLook &&
  16937. this.courseDetail.userid != this.userid &&
  16938. (!this.courseDetail.course_teacher ||
  16939. (this.courseDetail.course_teacher &&
  16940. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16941. this.IsLookOpen
  16942. ) {
  16943. this.$message.error("任务未解锁");
  16944. return;
  16945. }
  16946. this.taskCount++;
  16947. }
  16948. if (this.IsLookOpen) {
  16949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16950. this.taskCount
  16951. ].isLook = true;
  16952. this.addCourseState(3);
  16953. }
  16954. }
  16955. // if (
  16956. // this.taskCount ==
  16957. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16958. // ) {
  16959. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16960. // } else {
  16961. // this.taskCount++;
  16962. // }
  16963. }
  16964. document.scrollingElement.scrollTop = 0;
  16965. // this.showType = 7;
  16966. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16967. // if (this.vedio[this.taskCount].length > 0) {
  16968. // var a =
  16969. // document.getElementsByClassName("box_course")[this.taskCount]
  16970. // .offsetHeight;
  16971. // document.getElementsByClassName("vedioList")[
  16972. // this.taskCount
  16973. // ].style.height = a + "px";
  16974. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16975. // a - 40 + "px";
  16976. // }
  16977. this.isNoHomeWork = false;
  16978. (this.studyJuri = [
  16979. {
  16980. content: "",
  16981. cover: [],
  16982. upVedio: [],
  16983. upFile: [],
  16984. },
  16985. ]),
  16986. (this.radio = []);
  16987. this.isClickNav = "";
  16988. this.selectPz();
  16989. this.getHomeWork();
  16990. this.getCourseDetail(2);
  16991. this.$forceUpdate();
  16992. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16993. this.setCTask();
  16994. }
  16995. },
  16996. openTask(s, n, i) {
  16997. if (this.IsFollow && this.tType == 2) {
  16998. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16999. return;
  17000. }
  17001. if (this.IsLookOpen &&
  17002. this.courseDetail.userid != this.userid &&
  17003. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17004. if (
  17005. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17006. this.courseDetail.userid != this.userid &&
  17007. (!this.courseDetail.course_teacher ||
  17008. (this.courseDetail.course_teacher &&
  17009. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17010. ) {
  17011. this.$message.error("任务未解锁");
  17012. return;
  17013. }
  17014. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17015. if (
  17016. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17017. .isLook
  17018. ) {
  17019. this.$message.error("上一任务未解锁");
  17020. return;
  17021. }
  17022. } else if (s > this.courseType) {
  17023. if (n > 0) {
  17024. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17025. this.$message.error("上一任务未解锁");
  17026. return;
  17027. }
  17028. } else {
  17029. if (
  17030. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17031. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17032. ].isLook
  17033. ) {
  17034. this.$message.error("上一任务未解锁");
  17035. return;
  17036. }
  17037. }
  17038. }
  17039. }
  17040. if (this.navList[s].task[n].isOpen == true) {
  17041. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17042. return;
  17043. }
  17044. let flag = this.courseType==s;
  17045. this.courseType = s;
  17046. this.navId = i;
  17047. this.taskCount = n;
  17048. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17049. this.navList[this.courseType].task[this.taskCount].isOpen =
  17050. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17051. if (this.IsLookOpen) {
  17052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17053. this.taskCount
  17054. ].isLook = true;
  17055. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17056. this.addCourseState(3,yym);
  17057. }
  17058. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17059. this.isCloseList[ci].isClose = 0;
  17060. this.isCloseList[ci].isCloseBoolean = false;
  17061. this.$nextTick(()=>{
  17062. setTimeout(()=>{
  17063. setTimeout(()=>{
  17064. this.panToolHeight('tool-'+ci);
  17065. }, 0)
  17066. }, 0)
  17067. })
  17068. }
  17069. // this.showType = 7;
  17070. this.isNoHomeWork = false;
  17071. (this.studyJuri = [
  17072. {
  17073. content: "",
  17074. cover: [],
  17075. upVedio: [],
  17076. upFile: [],
  17077. },
  17078. ]),
  17079. (this.radio = []);
  17080. document.scrollingElement.scrollTop = 0;
  17081. // setTimeout(() => {
  17082. // let a = document.getElementById(i);
  17083. // if (a.offsetTop - 110 == 0) {
  17084. // window.scrollTo(0, 0);
  17085. // } else {
  17086. // window.scrollTo(0, a.offsetTop);
  17087. // }
  17088. // }, 0);
  17089. for (var z = 0; z < this.navList.length; z++) {
  17090. for (var q = 0; q < this.navList[z].task.length; q++) {
  17091. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17092. this.navList[z].task[q].tool[w].isTool = false;
  17093. }
  17094. }
  17095. }
  17096. this.selectPz();
  17097. this.getHomeWork();
  17098. this.getCourseDetail(2);
  17099. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17100. this.setCTask();
  17101. }
  17102. if(flag){
  17103. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17104. }else{
  17105. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17106. }
  17107. },
  17108. get(i) {
  17109. if (this.IsFollow && this.tType == 2) {
  17110. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17111. return;
  17112. }
  17113. // for(var k=0;k<this.navList.length;k++){
  17114. // this.navList[k].isOpen = false;
  17115. // }
  17116. // this.navList[i].isOpen = true;
  17117. this.navList[i].isOpen = !this.navList[i].isOpen;
  17118. if (this.navList[i].isOpen) {
  17119. this.openTask(i, 0, i + "-0");
  17120. }
  17121. },
  17122. addQuestion() {
  17123. this.answerList.push({
  17124. answerTitle: this.answerQ,
  17125. answer: this.questionAnswer,
  17126. });
  17127. let params = [
  17128. {
  17129. uid: this.userid,
  17130. cid: this.id,
  17131. stage: this.courseType,
  17132. task: this.taskCount,
  17133. tool: this.toolindex,
  17134. content: JSON.stringify(this.answerList),
  17135. type: 3,
  17136. },
  17137. ];
  17138. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17139. this.homeWorkLoading = true
  17140. this.ajax
  17141. .post(this.$store.state.api + "addCourseWorks", params)
  17142. .then((res) => {
  17143. this.$message({
  17144. message: "提交成功",
  17145. type: "success",
  17146. });
  17147. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17148. setTimeout(() => {
  17149. this.homeWorkLoading = false
  17150. }, 500);
  17151. this.answerList = [];
  17152. this.answerDialogVisible = false;
  17153. this.selectStudent();
  17154. this.selectSWorks();
  17155. this.selectSLook();
  17156. })
  17157. .catch((err) => {
  17158. this.$message.error("提交失败");
  17159. console.error(err);
  17160. setTimeout(() => {
  17161. this.homeWorkLoading = false
  17162. }, 500);
  17163. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17164. });
  17165. },
  17166. addQuestionTeacher() {
  17167. this.answerList.push({
  17168. answerTitle: this.answerQ,
  17169. answer: this.questionAnswer,
  17170. });
  17171. let params = [
  17172. {
  17173. uid: this.sStudent.userid,
  17174. cid: this.id,
  17175. stage: this.courseType,
  17176. task: this.taskCount,
  17177. tool: this.toolindex,
  17178. content: JSON.stringify(this.answerList),
  17179. type: 3,
  17180. ateacher: this.userid,
  17181. },
  17182. ];
  17183. this.ajax
  17184. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17185. .then((res) => {
  17186. this.$message({
  17187. message: "提交成功",
  17188. type: "success",
  17189. });
  17190. this.answerList = [];
  17191. this.questionAnswer = "";
  17192. this.answerDialogVisibleTeacher = false;
  17193. this.selectStudent();
  17194. this.selectSWorks();
  17195. this.selectSLook();
  17196. })
  17197. .catch((err) => {
  17198. this.$message.error("提交失败");
  17199. console.error(err);
  17200. });
  17201. },
  17202. refreshCourse() {
  17203. // window.location.reload();
  17204. this.navList = [];
  17205. this.getCourseDetail(1);
  17206. },
  17207. getCourseDetail(type, gindex) {
  17208. let loading;
  17209. if (type != 2) {
  17210. loading = this.$loading.service({
  17211. background: "rgba(255, 255, 255, 0.7)",
  17212. target: document.querySelector(".student_table"),
  17213. });
  17214. }
  17215. this.downLoading = false
  17216. // this.navList[0].isOpen = false;
  17217. // this.navList[this.courseType].isOpen = true;
  17218. // this.courseType = this.courseTypeLine;
  17219. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17220. let params = {
  17221. courseId: this.id,
  17222. };
  17223. this.ajax
  17224. .get(this.$store.state.api + "selectCourseDetail3", params)
  17225. .then((res) => {
  17226. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17227. if (type != 2) {
  17228. loading.close();
  17229. if (
  17230. this.courseType >
  17231. JSON.parse(res.data[0][0].chapters).length - 1
  17232. ) {
  17233. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17234. }
  17235. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17236. .chapterInfo[0].taskJson;
  17237. var b = [
  17238. "AVI",
  17239. "NAVI",
  17240. "MPEG",
  17241. "ASF",
  17242. "MOV",
  17243. "WMV",
  17244. "3GP",
  17245. "RM",
  17246. "RMVB",
  17247. "FLV",
  17248. "F4V",
  17249. "H.264",
  17250. "H.265",
  17251. "REAL VIDEO",
  17252. "MKV",
  17253. "WebM",
  17254. "HDDVD",
  17255. "MP4",
  17256. "MPG",
  17257. "M4V",
  17258. "MGV",
  17259. "OGV",
  17260. "QTM",
  17261. "STR",
  17262. "AMC",
  17263. "DVX",
  17264. "EVO",
  17265. "DAT",
  17266. "OGG",
  17267. "OGM",
  17268. "MP3",
  17269. ];
  17270. let _chapterData = [];
  17271. for (var i = 0; i < a.length; i++) {
  17272. var c = a[i].chapterData;
  17273. this.vedio[i] = [];
  17274. this.textList[i] = [];
  17275. this.lineList[i] = [];
  17276. this.chapToolList[i] = [];
  17277. this.file[i] = [];
  17278. this.fileC[i] = [];
  17279. _chapterData[i] = c.filter((el) => {
  17280. return el.type != 12;
  17281. });
  17282. this.fileC[i] = c.filter((el) => {
  17283. return el.type == 12;
  17284. });
  17285. if (this.tType == 2) {
  17286. if (this.fileC[i].length) {
  17287. let yym1 = this.fileC[i].filter(e=>{
  17288. if(!converter(e.name).includes(converter("教案"))){
  17289. return e
  17290. }
  17291. })
  17292. this.fileC[i] = yym1
  17293. }
  17294. }
  17295. // else if (c[j].type == 12) {
  17296. // this.fileC[i].push(c[j]);
  17297. // }
  17298. for (var j = 0; j < c.length; j++) {
  17299. if (c[j].type == 7) {
  17300. this.chapToolList[i].push(c[j]);
  17301. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17302. this.lineList[i].push(c[j]);
  17303. } else if (c[j].type == 6) {
  17304. this.textList[i].push(c[j]);
  17305. } else {
  17306. if (
  17307. b.indexOf(
  17308. c[j].url
  17309. .split(".")
  17310. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17311. ) != -1
  17312. ) {
  17313. this.vedio[i].push(c[j]);
  17314. } else {
  17315. this.file[i].push(c[j]);
  17316. }
  17317. }
  17318. }
  17319. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17320. d.sources[0].src =
  17321. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17322. this.playerO[i] = d;
  17323. }
  17324. this.courseDetail = res.data[0][0];
  17325. if(this.tType == 2){
  17326. this.tcid = this.arrayToArray(
  17327. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17328. this.classId ? this.classId.split(",") : []
  17329. ).join(",");
  17330. }else{
  17331. this.tcid = this.arrayToArray(
  17332. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17333. this.tcid2 ? this.tcid2.split(",") : []
  17334. ).join(",");
  17335. }
  17336. this.evalua = res.data[0][0].evaId;
  17337. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17338. this.courseType
  17339. ];
  17340. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17341. if (this.tcid && res.data[1].length) {
  17342. let _inviteA = [];
  17343. for (var ik = 0; ik < res.data[1].length; ik++) {
  17344. _inviteA.push({
  17345. cid: res.data[1][ik].classid,
  17346. ic: res.data[1][ik].code,
  17347. });
  17348. }
  17349. for (var ik = 0; ik < _inviteA.length; ik++) {
  17350. if (
  17351. this.arrayToArray(
  17352. _inviteA[ik].cid.split(","),
  17353. this.tcid.split(",")
  17354. ).length
  17355. ) {
  17356. this.inviteCode = _inviteA[ik].ic;
  17357. break;
  17358. }
  17359. }
  17360. }
  17361. for (var l = 0; l < this.chapInfoList.length; l++) {
  17362. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17363. for (var m = 0; m < w.length; m++) {
  17364. w[m].id = l + "-" + m;
  17365. }
  17366. }
  17367. let taskCount = 0;
  17368. if (
  17369. _chapterData[taskCount].length &&
  17370. _chapterData[taskCount][0].type == 2
  17371. ) {
  17372. this.showType = 0;
  17373. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17374. } else {
  17375. if (_chapterData[taskCount].length > 0) {
  17376. let _url = _chapterData[taskCount][0].url;
  17377. if (
  17378. _chapterData[taskCount][0].type == 8 ||
  17379. _chapterData[taskCount][0].type == 14 ||
  17380. _chapterData[taskCount][0].type == 15
  17381. ) {
  17382. this.showType = 2;
  17383. if (
  17384. _url.indexOf("https://") == -1 &&
  17385. _url.indexOf("http://") == -1
  17386. ) {
  17387. _url = "https://" + _url;
  17388. }
  17389. this.pptImgUrl1 = _url;
  17390. } else if (_chapterData[taskCount][0].type == 3) {
  17391. if (
  17392. _url
  17393. .split(".")
  17394. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17395. ) {
  17396. this.showType = 3;
  17397. this.pptImgUrl1 = _url;
  17398. } else if (
  17399. this.isAssetTypeAnImage(
  17400. _url
  17401. .split(".")
  17402. [_url.split(".").length - 1].toLocaleLowerCase()
  17403. )
  17404. ) {
  17405. this.showType = 4;
  17406. this.pptImgUrl1 = _url;
  17407. } else {
  17408. this.showType = 2;
  17409. this.pptImgUrl1 =
  17410. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17411. encodeURIComponent(_url);
  17412. }
  17413. } else if (_chapterData[taskCount][0].type == 13) {
  17414. this.showType = 4;
  17415. this.pptImgUrl1 = _url;
  17416. } else if (_chapterData[taskCount][0].type == 6) {
  17417. this.showType = 1;
  17418. this.text = this.textList[taskCount][0];
  17419. }
  17420. }
  17421. }
  17422. this.isClickNav = 0;
  17423. if (
  17424. !_chapterData[taskCount].length ||
  17425. _chapterData[taskCount][0].type == 12
  17426. ) {
  17427. this.isClickNav = "";
  17428. this.showType = "";
  17429. }
  17430. if (this.tType == 2) {
  17431. _chapterData.forEach((e,i)=>{
  17432. if (e.length) {
  17433. let yym = e.filter(k=>{
  17434. if(!converter(k.name).includes(converter("教案"))){
  17435. return k
  17436. }
  17437. })
  17438. _chapterData[i] = yym
  17439. }
  17440. })
  17441. }
  17442. this.vChapterData = _chapterData;
  17443. } else {
  17444. // this.showType = 0;
  17445. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17446. .chapterInfo[0].taskJson;
  17447. var b = [
  17448. "AVI",
  17449. "NAVI",
  17450. "MPEG",
  17451. "ASF",
  17452. "MOV",
  17453. "WMV",
  17454. "3GP",
  17455. "RM",
  17456. "RMVB",
  17457. "FLV",
  17458. "F4V",
  17459. "H.264",
  17460. "H.265",
  17461. "REAL VIDEO",
  17462. "MKV",
  17463. "WebM",
  17464. "HDDVD",
  17465. "MP4",
  17466. "MPG",
  17467. "M4V",
  17468. "MGV",
  17469. "OGV",
  17470. "QTM",
  17471. "STR",
  17472. "AMC",
  17473. "DVX",
  17474. "EVO",
  17475. "DAT",
  17476. "OGG",
  17477. "OGM",
  17478. "MP3",
  17479. ];
  17480. let _chapterData = [];
  17481. for (var i = 0; i < a.length; i++) {
  17482. var c = a[i].chapterData;
  17483. this.vedio[i] = [];
  17484. this.textList[i] = [];
  17485. this.lineList[i] = [];
  17486. this.chapToolList[i] = [];
  17487. this.file[i] = [];
  17488. this.fileC[i] = [];
  17489. _chapterData[i] = c.filter((el) => {
  17490. return el.type != 12;
  17491. });
  17492. this.fileC[i] = c.filter((el) => {
  17493. return el.type == 12;
  17494. });
  17495. if (this.tType == 2) {
  17496. if (this.fileC[i].length) {
  17497. let yym1 = this.fileC[i].filter(e=>{
  17498. if(!converter(e.name).includes(converter("教案"))){
  17499. return e
  17500. }
  17501. })
  17502. this.fileC[i] = yym1
  17503. }
  17504. }
  17505. for (var j = 0; j < c.length; j++) {
  17506. if (c[j].type == 7) {
  17507. this.chapToolList[i].push(c[j]);
  17508. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17509. this.lineList[i].push(c[j]);
  17510. } else if (c[j].type == 6) {
  17511. this.textList[i].push(c[j]);
  17512. } else {
  17513. if (
  17514. b.indexOf(
  17515. c[j].url
  17516. .split(".")
  17517. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17518. ) != -1
  17519. ) {
  17520. this.vedio[i].push(c[j]);
  17521. } else {
  17522. this.file[i].push(c[j]);
  17523. }
  17524. }
  17525. }
  17526. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17527. d.sources[0].src =
  17528. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17529. this.playerO[i] = d;
  17530. }
  17531. let taskCount = 0;
  17532. if (
  17533. _chapterData[taskCount].length &&
  17534. _chapterData[taskCount][0].type == 2
  17535. ) {
  17536. // this.showType = 0;
  17537. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17538. } else {
  17539. if (_chapterData[taskCount].length > 0) {
  17540. let _url = _chapterData[taskCount][0].url;
  17541. if (
  17542. _chapterData[taskCount][0].type == 8 ||
  17543. _chapterData[taskCount][0].type == 14||
  17544. _chapterData[taskCount][0].type == 15
  17545. ) {
  17546. // this.showType = 2;
  17547. if (
  17548. _url.indexOf("https://") == -1 &&
  17549. _url.indexOf("http://") == -1
  17550. ) {
  17551. _url = "https://" + _url;
  17552. }
  17553. // this.pptImgUrl1 = _url;
  17554. } else if (_chapterData[taskCount][0].type == 3) {
  17555. if (
  17556. _url
  17557. .split(".")
  17558. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17559. ) {
  17560. // this.showType = 3;
  17561. // this.pptImgUrl1 = _url;
  17562. } else if (
  17563. this.isAssetTypeAnImage(
  17564. _url
  17565. .split(".")
  17566. [_url.split(".").length - 1].toLocaleLowerCase()
  17567. )
  17568. ) {
  17569. // this.showType = 4;
  17570. // this.pptImgUrl1 = _url;
  17571. } else {
  17572. // this.showType = 2;
  17573. // this.pptImgUrl1 =
  17574. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17575. // encodeURIComponent(_url);
  17576. }
  17577. } else if (_chapterData[taskCount][0].type == 13) {
  17578. // this.showType = 4;
  17579. // this.pptImgUrl1 = _url;
  17580. } else if (_chapterData[taskCount][0].type == 6) {
  17581. this.showType = 1;
  17582. this.text = this.textList[taskCount][0];
  17583. }
  17584. }
  17585. }
  17586. this.isClickNav = 0;
  17587. if (
  17588. !_chapterData[taskCount].length ||
  17589. _chapterData[taskCount][0].type == 12
  17590. ) {
  17591. this.isClickNav = "";
  17592. // this.showType = "";
  17593. }
  17594. if (this.tType == 2) {
  17595. _chapterData.forEach((e,i)=>{
  17596. if (e.length) {
  17597. let yym = e.filter(k=>{
  17598. if(!converter(k.name).includes(converter("教案"))){
  17599. return k
  17600. }
  17601. })
  17602. _chapterData[i] = yym
  17603. }
  17604. })
  17605. }
  17606. this.vChapterData = _chapterData;
  17607. this.$forceUpdate();
  17608. }
  17609. // else {
  17610. // this.courseDetail = res.data[0][0];
  17611. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17612. // }
  17613. let _this = this;
  17614. if (_this.timer) {
  17615. clearInterval(_this.timer);
  17616. _this.timer = null;
  17617. }
  17618. if (_this.tcid) {
  17619. _this.getCourseGroup(gindex);
  17620. } else {
  17621. _this.selectSWorks(gindex);
  17622. }
  17623. _this.selectStudent();
  17624. _this.selectSLook();
  17625. _this.getPick();
  17626. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17627. // _this.setCTask();
  17628. // }
  17629. if (_this.dialogVisibleGroup) {
  17630. _this.groupJson =
  17631. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17632. _this.taskCount
  17633. ].toolChoose[_this.toolindex].groupJson;
  17634. }
  17635. _this.$nextTick(() => {
  17636. setTimeout(() => {
  17637. _this.checkEva();
  17638. }, 1000);
  17639. });
  17640. _this.timer = setInterval(function () {
  17641. // _this.getCourseDetail(2);
  17642. if (_this.tcid) {
  17643. _this.getCourseGroup();
  17644. } else {
  17645. _this.selectSWorks();
  17646. }
  17647. _this.selectStudent();
  17648. _this.selectSLook();
  17649. _this.getPick();
  17650. // _this.getSplitScreenData();//获取分屏数据
  17651. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17652. // _this.setCTask();
  17653. // }
  17654. if (_this.dialogVisibleGroup) {
  17655. _this.groupJson =
  17656. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17657. _this.taskCount
  17658. ].toolChoose[_this.toolindex].groupJson;
  17659. }
  17660. if (_this.tType == 4 || _this.ispzType == 4) {
  17661. _this.selectPz();
  17662. }
  17663. }, 5000);
  17664. if (_this.timer2 == null) {
  17665. _this.timer2 = setInterval(()=> {
  17666. _this.getSplitScreenData();//获取分屏数据
  17667. }, 5000);
  17668. }
  17669. _this.$nextTick(function () {
  17670. setTimeout(() => {
  17671. // var a =
  17672. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17673. // document.getElementsByClassName("vedioList")[0].style.height =
  17674. // a + "px";
  17675. // document.getElementsByClassName("navBox")[0].style.height =
  17676. // a - 40 + "px";
  17677. // if (_this.vedio[_this.taskCount].length > 0) {
  17678. // _this.vedioTime = [];
  17679. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17680. // _this.vedioTime[i] = document.getElementsByClassName(
  17681. // "vjs-duration-display"
  17682. // )[i].textContent;
  17683. // }
  17684. // }
  17685. }, 1000);
  17686. });
  17687. })
  17688. .catch((err) => {
  17689. loading.close();
  17690. console.error(err);
  17691. });
  17692. },
  17693. getCourseGroup(gindex) {
  17694. let params = {
  17695. cid: this.id,
  17696. classid: this.tcid ? this.tcid : "1",
  17697. };
  17698. this.ajax
  17699. .get(this.$store.state.api + "getCourseGroup", params)
  17700. .then((res) => {
  17701. if (res.data && res.data[0].length) {
  17702. if (!this.isGroup) {
  17703. let courseGroup = JSON.parse(res.data[0][0].group);
  17704. courseGroup.group = courseGroup.group.filter((el) => {
  17705. el.works = [];
  17706. return el;
  17707. });
  17708. if (courseGroup.isopen == 2) {
  17709. this.isGroup = false;
  17710. this.selectSWorks(gindex);
  17711. return;
  17712. }
  17713. this.courseGroup = courseGroup;
  17714. let groupPerson = res.data[1];
  17715. let group = JSON.parse(res.data[0][0].group).group;
  17716. let courseGroupStudent = {};
  17717. let courseGroupStudentUid = {};
  17718. for (var i = 0; i < group.length; i++) {
  17719. courseGroupStudent[group[i].id] = [];
  17720. courseGroupStudentUid[group[i].id] = [];
  17721. for (var j = 0; j < groupPerson.length; j++) {
  17722. if (groupPerson[j].groupCid == group[i].id) {
  17723. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17724. courseGroupStudentUid[group[i].id].push(
  17725. groupPerson[j].userid
  17726. );
  17727. }
  17728. }
  17729. }
  17730. this.courseGroupStudent = courseGroupStudent;
  17731. this.courseGroupStudentUid = courseGroupStudentUid;
  17732. }
  17733. if (this.courseGroup.isopen == 2) {
  17734. this.isGroup = false;
  17735. } else {
  17736. this.isGroup = true;
  17737. }
  17738. this.selectSWorks(gindex);
  17739. } else {
  17740. this.selectSWorks(gindex);
  17741. this.isGroup = false;
  17742. }
  17743. })
  17744. .catch((err) => {
  17745. // this.$message.error("网络不佳");
  17746. console.error(err);
  17747. });
  17748. },
  17749. setOperationTime() {
  17750. let _this = this;
  17751. if (_this.opertimer) {
  17752. clearInterval(_this.opertimer);
  17753. _this.opertimer = null;
  17754. }
  17755. _this.opertimer = setInterval(() => {
  17756. _this.setoTime("600");
  17757. }, 600000);
  17758. },
  17759. setoTime(time) {
  17760. let params = [
  17761. {
  17762. uid: this.userid,
  17763. cid: this.id,
  17764. type: "2",
  17765. time: time,
  17766. },
  17767. ];
  17768. this.ajax
  17769. .post(this.$store.state.api + "addOperationTimeT2", params)
  17770. .then((res) => {})
  17771. .catch((err) => {
  17772. console.error(err);
  17773. });
  17774. },
  17775. addPz(type, content) {
  17776. if (type == "1" && this.pzConText == "") {
  17777. this.$message.error("评论不能为空!");
  17778. return;
  17779. }
  17780. let params = [
  17781. {
  17782. cid: this.id,
  17783. uid: this.userid,
  17784. s: this.courseType,
  17785. t: this.taskCount,
  17786. c: type == "1" ? this.pzConText : content,
  17787. type: type,
  17788. },
  17789. ];
  17790. this.ajax
  17791. .post(this.$store.state.api + "addPz2", params)
  17792. .then((res) => {
  17793. this.$message({
  17794. message: "添加成功",
  17795. type: "success",
  17796. });
  17797. this.pzConText = "";
  17798. this.addPzDialog = false;
  17799. this.selectPz();
  17800. if(this.tType!=2){
  17801. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17802. }
  17803. })
  17804. .catch((err) => {
  17805. this.$message.error("添加失败");
  17806. console.error(err);
  17807. });
  17808. },
  17809. setReplyIndex(id, i) {
  17810. this.replyIndex = i;
  17811. this.replyPid = id;
  17812. this.replyDialogVisible = true;
  17813. },
  17814. addHf() {
  17815. if (this.reply == "") {
  17816. this.$message.error("回复不能为空!");
  17817. return;
  17818. }
  17819. let params = [
  17820. {
  17821. cid: this.id,
  17822. uid: this.userid,
  17823. s: this.courseType,
  17824. t: this.taskCount,
  17825. type: "1",
  17826. ct: 2,
  17827. pid: this.replyPid,
  17828. c: this.reply,
  17829. },
  17830. ];
  17831. this.ajax
  17832. .post(this.$store.state.api + "addHf", params)
  17833. .then((res) => {
  17834. this.reply = "";
  17835. this.$message({
  17836. message: "回复成功",
  17837. type: "success",
  17838. });
  17839. this.replyDialogVisible = false;
  17840. this.selectPz();
  17841. })
  17842. .catch((err) => {
  17843. this.$message.error("回复失败");
  17844. console.error(err);
  17845. });
  17846. },
  17847. deletePz(id) {
  17848. this.$confirm("确定删除此评论吗?", "提示", {
  17849. confirmButtonText: "确定",
  17850. cancelButtonText: "取消",
  17851. type: "warning",
  17852. })
  17853. .then(() => {
  17854. let params = [
  17855. {
  17856. id: id,
  17857. },
  17858. ];
  17859. this.ajax
  17860. .post(this.$store.state.api + "deletePz", params)
  17861. .then((res) => {
  17862. this.$message({
  17863. message: "删除成功",
  17864. type: "success",
  17865. });
  17866. this.selectPz();
  17867. })
  17868. .catch((err) => {
  17869. this.$message.error("网络异常");
  17870. console.error(err);
  17871. });
  17872. })
  17873. .catch(() => {});
  17874. },
  17875. deleteReply(id) {
  17876. this.$confirm("确定删除此回复吗?", "提示", {
  17877. confirmButtonText: "确定",
  17878. cancelButtonText: "取消",
  17879. type: "warning",
  17880. })
  17881. .then(() => {
  17882. let params = [
  17883. {
  17884. id: id,
  17885. },
  17886. ];
  17887. this.ajax
  17888. .post(this.$store.state.api + "deleteReply", params)
  17889. .then((res) => {
  17890. this.$message({
  17891. message: "删除成功",
  17892. type: "success",
  17893. });
  17894. this.selectPz();
  17895. })
  17896. .catch((err) => {
  17897. this.$message.error("网络异常");
  17898. console.error(err);
  17899. });
  17900. })
  17901. .catch(() => {});
  17902. },
  17903. setPz() {
  17904. if (this.ispzType == 4) {
  17905. this.ispzType = 0;
  17906. this.pzDialog = false;
  17907. return;
  17908. }
  17909. this.ispzType = 4;
  17910. this.pzDialog = true;
  17911. this.selectPz();
  17912. },
  17913. selectPz() {
  17914. let params = {
  17915. cid: this.id,
  17916. s: this.courseType,
  17917. t: this.taskCount,
  17918. type: this.pzStype,
  17919. uid: this.userid,
  17920. };
  17921. this.ajax
  17922. .get(this.$store.state.api + "selectPzListType", params)
  17923. .then((res) => {
  17924. this.pzList = res.data[0];
  17925. var a = res.data[1];
  17926. for (var i = 0; i < a.length; i++) {
  17927. for (var j = 0; j < this.pzList.length; j++) {
  17928. if (!this.pzList[j].hfList) {
  17929. this.pzList[j].hfList = [];
  17930. }
  17931. if (a[i].pid == this.pzList[j].id) {
  17932. this.pzList[j].hfList.push(a[i]);
  17933. }
  17934. }
  17935. }
  17936. })
  17937. .catch((err) => {
  17938. console.error(err);
  17939. });
  17940. },
  17941. // selectHf() {
  17942. // let params = {
  17943. // cid: this.id,
  17944. // s: this.courseType,
  17945. // t: this.taskCount,
  17946. // };
  17947. // this.ajax
  17948. // .get(this.$store.state.api + "selectHfList", params)
  17949. // .then((res) => {
  17950. // var a = res.data[0];
  17951. // for (var i = 0; i < a.length; i++) {
  17952. // for (var j = 0; j < this.pzList.length; j++) {
  17953. // if (!this.pzList[i].hfList) {
  17954. // this.pzList[i].hfList = [];
  17955. // }
  17956. // if (a[i].pid == this.pzList[j].id) {
  17957. // this.pzList[i].hfList.push(a[i]);
  17958. // }
  17959. // }
  17960. // }
  17961. // })
  17962. // .catch((err) => {
  17963. // console.error(err);
  17964. // });
  17965. // },
  17966. updateSLook() {
  17967. let params = {
  17968. sopen: this.sIsOpen == false ? 1 : 2,
  17969. cid: this.id,
  17970. };
  17971. this.ajax
  17972. .get(this.$store.state.api + "updateCourseSLook", params)
  17973. .then((res) => {
  17974. if (this.sIsOpen == true) {
  17975. this.$message({
  17976. message: "权限设置成功",
  17977. type: "success",
  17978. });
  17979. } else {
  17980. this.$message({
  17981. message: "权限关闭成功",
  17982. type: "success",
  17983. });
  17984. }
  17985. })
  17986. .catch((err) => {
  17987. console.error(err);
  17988. });
  17989. },
  17990. updateFollow() {
  17991. let params = [
  17992. {
  17993. sopen: this.IsFollow == false ? 1 : 2,
  17994. cid: this.id,
  17995. },
  17996. ];
  17997. this.ajax
  17998. .post(this.$store.state.api + "updateCourseFollow", params)
  17999. .then((res) => {
  18000. if (this.IsFollow == true) {
  18001. this.$message({
  18002. message: "开启成功",
  18003. type: "success",
  18004. });
  18005. } else {
  18006. this.$message({
  18007. message: "关闭成功",
  18008. type: "success",
  18009. });
  18010. }
  18011. this.setCTask();
  18012. })
  18013. .catch((err) => {
  18014. console.error(err);
  18015. });
  18016. },
  18017. setCTask() {
  18018. let params = [
  18019. {
  18020. sopen: this.courseType + "-" + this.taskCount,
  18021. cid: this.id,
  18022. },
  18023. ];
  18024. this.ajax
  18025. .post(this.$store.state.api + "updateCourseFollowC", params)
  18026. .then((res) => {})
  18027. .catch((err) => {
  18028. console.error(err);
  18029. });
  18030. },
  18031. updateLookOpen() {
  18032. let params = [
  18033. {
  18034. sopen: this.IsLookOpen == false ? 1 : 2,
  18035. cid: this.id,
  18036. },
  18037. ];
  18038. this.ajax
  18039. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18040. .then((res) => {
  18041. if (this.IsLookOpen == true) {
  18042. // if (this.courseType != 0 && this.taskCount != 0) {
  18043. // this.openTask(0, 0, "0-0");
  18044. // }
  18045. this.$message({
  18046. message: "权限设置成功",
  18047. type: "success",
  18048. });
  18049. } else {
  18050. this.$message({
  18051. message: "权限关闭成功",
  18052. type: "success",
  18053. });
  18054. }
  18055. this.getCourseState(2);
  18056. })
  18057. .catch((err) => {
  18058. console.error(err);
  18059. });
  18060. },
  18061. selectSLook() {
  18062. let params = {
  18063. cid: this.id,
  18064. };
  18065. this.ajax
  18066. .get(this.$store.state.api + "selectCourseSLook", params)
  18067. .then((res) => {
  18068. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18069. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18070. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18071. if (!this.IsLookOpen) {
  18072. this.setNavList();
  18073. }
  18074. this.getCourseState(1);
  18075. if ((this.IsFollow && this.tType == 2)) {
  18076. this.setContent2(false);
  18077. let _followC = res.data[0][0].followC.split("-");
  18078. if (
  18079. this.courseType != _followC[0] ||
  18080. this.taskCount != _followC[1]
  18081. ) {
  18082. this.navList[this.courseType].isOpen = false;
  18083. this.courseType = _followC[0];
  18084. this.navList[this.courseType].isOpen = true;
  18085. this.taskCount = parseInt(_followC[1]);
  18086. this.navId = res.data[0][0].followC;
  18087. document.scrollingElement.scrollTop = 0;
  18088. this.getCourseDetail(2);
  18089. }
  18090. }
  18091. })
  18092. .catch((err) => {
  18093. console.error(err);
  18094. });
  18095. },
  18096. setNavList() {
  18097. if (this.navList.length == 0) {
  18098. this.navList = [];
  18099. var copyList = [];
  18100. for (var l = 0; l < this.chapInfoList.length; l++) {
  18101. var q = this.chapInfoList[l].dyName;
  18102. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18103. var e;
  18104. copyList.push({
  18105. dyName: q,
  18106. isOpen: l === 0 ? true : false,
  18107. task: [],
  18108. });
  18109. for (var r = 0; r < w.length; r++) {
  18110. e = w[r].task;
  18111. if (this.chapInfoList[l].easy == 1) {
  18112. copyList[l].task.push({
  18113. taskName: q,
  18114. id: l + "-" + r,
  18115. isLook: w[r].isLook,
  18116. isOpen: r === 0 ? true : false,
  18117. tool: [],
  18118. });
  18119. } else {
  18120. copyList[l].task.push({
  18121. taskName: e,
  18122. id: l + "-" + r,
  18123. isLook: w[r].isLook,
  18124. isOpen: r === 0 ? true : false,
  18125. tool: [],
  18126. });
  18127. }
  18128. var t = w[r].toolChoose;
  18129. for (var k = 0; k < t.length; k++) {
  18130. var tool = t[k].tool[0];
  18131. copyList[l].task[r].tool.push({
  18132. tool: tool,
  18133. isTool: false,
  18134. });
  18135. }
  18136. // this.navId = this.navId ? this.navId : l + "-" + r;
  18137. // this.navId = l + "-" + r;
  18138. }
  18139. }
  18140. this.navList = copyList;
  18141. this.navList[0].isOpen = false;
  18142. this.navList[this.courseType].isOpen = true;
  18143. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18144. } else {
  18145. this.setNavList2();
  18146. }
  18147. },
  18148. setNavList2() {
  18149. for (var l = 0; l < this.chapInfoList.length; l++) {
  18150. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18151. for (var r = 0; r < w.length; r++) {
  18152. this.navList[l].task[r].isLook = w[r].isLook;
  18153. }
  18154. }
  18155. if (
  18156. this.IsLookOpen &&
  18157. !this.navList[this.courseType].task[this.taskCount].isLook
  18158. ) {
  18159. this.openTask(0, 0, "0-0");
  18160. }
  18161. this.$forceUpdate();
  18162. },
  18163. getCourseState(type) {
  18164. let params = {
  18165. cid: this.id,
  18166. };
  18167. this.ajax
  18168. .get(this.$store.state.api + "getCourseState", params)
  18169. .then((res) => {
  18170. // if (res.data[0].length > 0) {
  18171. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18172. // }
  18173. if (res.data[0].length > 0 && type == 1) {
  18174. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18175. this.setNavList();
  18176. this.$forceUpdate();
  18177. } else if (res.data[0].length > 0 && type == 2) {
  18178. this.addCourseState(2);
  18179. } else {
  18180. // this.addCourseState(1);
  18181. }
  18182. })
  18183. .catch((err) => {
  18184. console.error(err);
  18185. });
  18186. },
  18187. addCourseState(type,val = '') {
  18188. let _state = val ? val : this.chapInfoList;
  18189. // this.courseType this.taskCount
  18190. if (type == 1 || type == 2) {
  18191. for (var i = 0; i < _state.length; i++) {
  18192. let el = _state[i].chapterInfo[0].taskJson;
  18193. for (var j = 0; j < el.length; j++) {
  18194. // if (i == 0 && j == 0) {
  18195. // el[j].isLook = true;
  18196. // } else {
  18197. // el[j].isLook = false;
  18198. // }
  18199. if (
  18200. this.courseType > i ||
  18201. (this.courseType == i && this.taskCount + 1 > j)
  18202. ) {
  18203. el[j].isLook = true;
  18204. } else {
  18205. el[j].isLook = false;
  18206. }
  18207. }
  18208. }
  18209. }
  18210. let params = [
  18211. {
  18212. cid: this.id,
  18213. state: JSON.stringify(_state),
  18214. },
  18215. ];
  18216. this.ajax
  18217. .post(
  18218. this.$store.state.api +
  18219. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18220. params
  18221. )
  18222. .then((res) => {
  18223. if (this.IsLookOpen) {
  18224. this.setNavList();
  18225. }
  18226. if (type == 3 && type == 2) {
  18227. this.getCourseState(1);
  18228. }
  18229. })
  18230. .catch((err) => {
  18231. console.error(err);
  18232. });
  18233. },
  18234. getHomeWork() {
  18235. let params = {
  18236. cid: this.id,
  18237. stage: this.courseType,
  18238. task: this.taskCount,
  18239. uid: this.userid,
  18240. };
  18241. this.ajax
  18242. .get(this.$store.state.api + "selectWork", params)
  18243. .then((res) => {
  18244. if (res.data[0].length > 0) {
  18245. this.studyJuri = JSON.parse(res.data[0][0].content);
  18246. this.isNoHomeWork = true;
  18247. }
  18248. })
  18249. .catch((err) => {
  18250. console.error(err);
  18251. });
  18252. },
  18253. isAssetTypeAnImage(ext) {
  18254. return (
  18255. [
  18256. "png",
  18257. "jpg",
  18258. "jpeg",
  18259. "bmp",
  18260. "gif",
  18261. "webp",
  18262. "psd",
  18263. "svg",
  18264. "tiff",
  18265. ].indexOf(ext) !== -1
  18266. );
  18267. },
  18268. switchVideo(media) {
  18269. this.playerO = {};
  18270. this.playerOptions.poster = "";
  18271. this.playerOptions.sources[0].src = media;
  18272. this.playerO = this.playerOptions;
  18273. },
  18274. onPlayerPlay() {},
  18275. onPlayerTimeupdate(player) {
  18276. let gklog = player.cache_.currentTime; //当前播放的秒数
  18277. let a = player.cache_.duration; //视频的总时长
  18278. let gklog2 = parseInt(gklog);
  18279. // if(gklog2 == '3'){
  18280. // player.pause()
  18281. // setTimeout(()=>{
  18282. // player.currentTime(gklog2+1)
  18283. // player.play()
  18284. // },1000)
  18285. // }
  18286. console.log(" onPlayerTimeupdate!", gklog);
  18287. console.log(" onPlayerTimeupdate!", gklog2);
  18288. },
  18289. lookVedio(u, i) {
  18290. this.isClickNav = "";
  18291. // this.playerOptions.sources[0].src = u;
  18292. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18293. d.sources[0].src = u;
  18294. this.playerO[0] = d;
  18295. this.showType = 0;
  18296. // this.isClickNav = "video" + i;
  18297. this.isClickNav = i;
  18298. this.$forceUpdate();
  18299. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18300. },
  18301. lookText(i, t) {
  18302. this.isClickNav = "";
  18303. // this.text = this.textList[i][t];
  18304. this.text = this.vChapterData[i][t];
  18305. // this.dialogVisible1 = true;
  18306. this.showType = 1;
  18307. // this.isClickNav = "text" + t;
  18308. this.isClickNav = t;
  18309. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18310. },
  18311. lookTools(i, t) {
  18312. this.chapTools = this.chapToolList[i][t];
  18313. this.dialogVisible2 = true;
  18314. },
  18315. async openFile(f) {
  18316. this.pptImgUrl = "";
  18317. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18318. if (
  18319. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18320. -1
  18321. ) {
  18322. let _uuurl = await this.checkLink(f);
  18323. console.log(_uuurl)
  18324. this.pptImgUrl =
  18325. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18326. this.showPDF = false;
  18327. this.dialogVisible3 = true;
  18328. } else if (
  18329. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18330. ) {
  18331. this.pptImgUrl = f;
  18332. this.showPDF = true;
  18333. this.dialogVisible3 = true;
  18334. }
  18335. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18336. },
  18337. openTable(f) {
  18338. this.tableJson = JSON.parse(f.works);
  18339. this.dialogVisibleTable2 = true;
  18340. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18341. },
  18342. openWord(f) {
  18343. this.tableJson = JSON.parse(f.works);
  18344. this.dialogVisibleTable3 = true;
  18345. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18346. },
  18347. doUrl(url, i) {
  18348. this.isClickNav = "";
  18349. this.pptImgUrl1 = "";
  18350. this.showType = 2;
  18351. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18352. url = "https://" + url;
  18353. }
  18354. this.pptImgUrl1 = "";
  18355. this.diffKey = new Date().getTime();
  18356. setTimeout(() => {
  18357. this.pptImgUrl1 = url;
  18358. }, 500);
  18359. // this.isClickNav = "line" + i;
  18360. this.isClickNav = i;
  18361. this.$forceUpdate();
  18362. },
  18363. checkPhoto(f, i) {
  18364. this.showType = 4;
  18365. this.pptImgUrl1 = f.url;
  18366. this.isClickNav = i;
  18367. this.$forceUpdate();
  18368. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18369. },
  18370. checkHtml(f, i){
  18371. this.showType = 16;
  18372. this.pptImgUrl1 = f.url;
  18373. this.isClickNav = i;
  18374. this.$forceUpdate();
  18375. },
  18376. async downFile(f, i) {
  18377. this.isClickNav = "";
  18378. this.pptImgUrl1 = "";
  18379. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18380. if (
  18381. a.indexOf(
  18382. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18383. ) != -1
  18384. ) {
  18385. let _uuurl = await this.checkLink(f.url);
  18386. console.log(_uuurl)
  18387. this.pptImgUrl1 =
  18388. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18389. // this.dialogVisible3 = true;
  18390. this.showType = 2;
  18391. } else if (
  18392. this.isAssetTypeAnImage(
  18393. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18394. )
  18395. ) {
  18396. this.showType = 4;
  18397. this.pptImgUrl1 = f.url;
  18398. } else if (
  18399. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18400. "PDF"
  18401. ) {
  18402. this.pptImgUrl1 = f.url;
  18403. // this.dialogVisible3 = true;
  18404. this.showType = 3;
  18405. } else {
  18406. window.open(this.file[i].url);
  18407. }
  18408. // this.isClickNav = "word" + i;
  18409. this.isClickNav = i;
  18410. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18411. },
  18412. downFileList(i) {
  18413. window.open(this.noImgList[i].url);
  18414. },
  18415. openAddWork() {
  18416. this.dialogVisible = true;
  18417. },
  18418. addBzWorks() {
  18419. let params = [
  18420. {
  18421. uid: this.userid,
  18422. cid: this.id,
  18423. stage: this.courseType,
  18424. task: this.taskCount,
  18425. tool: this.toolindex,
  18426. content: JSON.stringify(this.eScore),
  18427. type: 6,
  18428. },
  18429. ];
  18430. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18431. this.homeWorkLoading = true
  18432. this.ajax
  18433. .post(this.$store.state.api + "addCourseWorks", params)
  18434. .then((res) => {
  18435. this.$message({
  18436. message: "提交成功",
  18437. type: "success",
  18438. });
  18439. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18440. setTimeout(() => {
  18441. this.homeWorkLoading = false
  18442. }, 500);
  18443. this.eScore = { eBzText: "", eStar: [] };
  18444. this.studentEvalDialogVisible = false;
  18445. this.selectSWorks();
  18446. })
  18447. .catch((err) => {
  18448. this.$message.error("提交失败");
  18449. console.error(err);
  18450. setTimeout(() => {
  18451. this.homeWorkLoading = false
  18452. }, 500);
  18453. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18454. });
  18455. },
  18456. addBzWorksTeacher() {
  18457. let params = [
  18458. {
  18459. uid: this.sStudent.userid,
  18460. cid: this.id,
  18461. stage: this.courseType,
  18462. task: this.taskCount,
  18463. tool: this.toolindex,
  18464. content: JSON.stringify(this.eScore),
  18465. type: 6,
  18466. },
  18467. ];
  18468. this.ajax
  18469. .post(this.$store.state.api + "addCourseWorks", params)
  18470. .then((res) => {
  18471. this.$message({
  18472. message: "提交成功",
  18473. type: "success",
  18474. });
  18475. this.eScore = { eBzText: "", eStar: [] };
  18476. this.studentEvalDialogVisibleTeacher = false;
  18477. this.selectSWorks();
  18478. })
  18479. .catch((err) => {
  18480. this.$message.error("提交失败");
  18481. console.error(err);
  18482. });
  18483. },
  18484. addStudentAsk() {
  18485. if (!this.radio.length) {
  18486. this.$message.error("请选择选项");
  18487. return;
  18488. }
  18489. for (var i = 0; i < this.askJson.askCount; i++) {
  18490. if (
  18491. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18492. (this.radio[i] !== 0 && !this.radio[i])
  18493. ) {
  18494. this.$message.error("请选择选项");
  18495. return;
  18496. }
  18497. }
  18498. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18499. let params = [
  18500. {
  18501. uid: this.userid,
  18502. cid: this.id,
  18503. stage: this.courseType,
  18504. task: this.taskCount,
  18505. tool: this.toolindex,
  18506. content: JSON.stringify(this.askList),
  18507. type: 2,
  18508. },
  18509. ];
  18510. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18511. this.homeWorkLoading = true
  18512. this.ajax
  18513. .post(this.$store.state.api + "addCourseWorks", params)
  18514. .then((res) => {
  18515. this.$message({
  18516. message: "提交成功",
  18517. type: "success",
  18518. });
  18519. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18520. setTimeout(() => {
  18521. this.homeWorkLoading = false
  18522. }, 500);
  18523. this.askList = [];
  18524. this.dialogVisible5 = false;
  18525. this.selectStudent();
  18526. this.selectSWorks();
  18527. this.selectSLook();
  18528. })
  18529. .catch((err) => {
  18530. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18531. setTimeout(() => {
  18532. this.homeWorkLoading = false
  18533. }, 500);
  18534. this.$message.error("提交失败");
  18535. console.error(err);
  18536. });
  18537. },
  18538. addStudentAskTeacher() {
  18539. if (!this.radio.length) {
  18540. this.$message.error("请选择选项");
  18541. return;
  18542. }
  18543. for (var i = 0; i < this.askJson.askCount; i++) {
  18544. if (
  18545. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18546. (this.radio[i] !== 0 && !this.radio[i])
  18547. ) {
  18548. this.$message.error("请选择选项");
  18549. return;
  18550. }
  18551. }
  18552. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18553. let params = [
  18554. {
  18555. uid: this.sStudent.userid,
  18556. cid: this.id,
  18557. stage: this.courseType,
  18558. task: this.taskCount,
  18559. tool: this.toolindex,
  18560. content: JSON.stringify(this.askList),
  18561. type: 2,
  18562. },
  18563. ];
  18564. this.ajax
  18565. .post(this.$store.state.api + "addCourseWorks", params)
  18566. .then((res) => {
  18567. this.$message({
  18568. message: "提交成功",
  18569. type: "success",
  18570. });
  18571. this.askList = [];
  18572. this.dialogVisible5Teacher = false;
  18573. this.selectStudent();
  18574. this.selectSWorks();
  18575. this.selectSLook();
  18576. })
  18577. .catch((err) => {
  18578. this.$message.error("提交失败");
  18579. console.error(err);
  18580. });
  18581. },
  18582. addStudentTest() {
  18583. if (!this.radio.length) {
  18584. this.$message.error("请选择选项");
  18585. return;
  18586. }
  18587. for (var i = 0; i < this.testJson.testCount; i++) {
  18588. if (
  18589. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18590. (this.radio[i] !== 0 && !this.radio[i])
  18591. ) {
  18592. this.$message.error("请选择选项");
  18593. return;
  18594. }
  18595. }
  18596. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18597. let params = [
  18598. {
  18599. uid: this.userid,
  18600. cid: this.id,
  18601. stage: this.courseType,
  18602. task: this.taskCount,
  18603. tool: this.toolindex,
  18604. content: JSON.stringify(this.askList),
  18605. type: 8,
  18606. },
  18607. ];
  18608. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18609. this.homeWorkLoading = true
  18610. this.ajax
  18611. .post(this.$store.state.api + "addCourseWorks", params)
  18612. .then((res) => {
  18613. this.$message({
  18614. message: "提交成功",
  18615. type: "success",
  18616. });
  18617. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18618. setTimeout(() => {
  18619. this.homeWorkLoading = false
  18620. }, 500);
  18621. this.askList = [];
  18622. this.dialogVisibleChoice = false;
  18623. this.selectStudent();
  18624. this.selectSWorks();
  18625. this.selectSLook();
  18626. })
  18627. .catch((err) => {
  18628. this.$message.error("提交失败");
  18629. console.error(err);
  18630. setTimeout(() => {
  18631. this.homeWorkLoading = false
  18632. }, 500);
  18633. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18634. });
  18635. },
  18636. addStudentTestTeacher() {
  18637. if (!this.radio.length) {
  18638. this.$message.error("请选择选项");
  18639. return;
  18640. }
  18641. for (var i = 0; i < this.testJson.testCount; i++) {
  18642. if (
  18643. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18644. (this.radio[i] !== 0 && !this.radio[i])
  18645. ) {
  18646. this.$message.error("请选择选项");
  18647. return;
  18648. }
  18649. }
  18650. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18651. let params = [
  18652. {
  18653. uid: this.sStudent.userid,
  18654. cid: this.id,
  18655. stage: this.courseType,
  18656. task: this.taskCount,
  18657. tool: this.toolindex,
  18658. content: JSON.stringify(this.askList),
  18659. type: 8,
  18660. },
  18661. ];
  18662. this.ajax
  18663. .post(this.$store.state.api + "addCourseWorks", params)
  18664. .then((res) => {
  18665. this.$message({
  18666. message: "提交成功",
  18667. type: "success",
  18668. });
  18669. this.askList = [];
  18670. this.dialogVisibleChoiceTeacher = false;
  18671. this.selectStudent();
  18672. this.selectSWorks();
  18673. this.selectSLook();
  18674. })
  18675. .catch((err) => {
  18676. this.$message.error("提交失败");
  18677. console.error(err);
  18678. });
  18679. },
  18680. addWork() {
  18681. if (this.studyJuri[0].content == "") {
  18682. this.$message.error("请将信息填写完整");
  18683. return;
  18684. } else if (this.studyJuri[0].cover.length == 0) {
  18685. this.$message.error("请将信息填写完整");
  18686. return;
  18687. } else if (this.studyJuri[0].upVedio.length == 0) {
  18688. this.$message.error("请将信息填写完整");
  18689. return;
  18690. }
  18691. if (this.isNoHomeWork) {
  18692. this.$confirm(
  18693. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18694. "提示",
  18695. {
  18696. confirmButtonText: "确定",
  18697. cancelButtonText: "取消",
  18698. type: "warning",
  18699. }
  18700. )
  18701. .then(() => {
  18702. let params = [
  18703. {
  18704. uid: this.userid,
  18705. cid: this.id,
  18706. stage: this.courseType,
  18707. task: this.taskCount,
  18708. content: JSON.stringify(this.studyJuri),
  18709. },
  18710. ];
  18711. this.ajax
  18712. .post(this.$store.state.api + "addWorks", params)
  18713. .then((res) => {
  18714. this.$message({
  18715. message: "提交成功",
  18716. type: "success",
  18717. });
  18718. this.isNoHomeWork = true;
  18719. this.dialogVisible = false;
  18720. })
  18721. .catch((err) => {
  18722. this.$message.error("提交失败");
  18723. console.error(err);
  18724. });
  18725. })
  18726. .catch(() => {});
  18727. } else {
  18728. let params = [
  18729. {
  18730. uid: this.userid,
  18731. cid: this.id,
  18732. stage: this.courseType,
  18733. task: this.taskCount,
  18734. content: JSON.stringify(this.studyJuri),
  18735. },
  18736. ];
  18737. this.ajax
  18738. .post(this.$store.state.api + "addWorks", params)
  18739. .then((res) => {
  18740. this.$message({
  18741. message: "提交成功",
  18742. type: "success",
  18743. });
  18744. this.isNoHomeWork = true;
  18745. this.dialogVisible = false;
  18746. })
  18747. .catch((err) => {
  18748. this.$message.error("提交失败");
  18749. console.error(err);
  18750. });
  18751. }
  18752. },
  18753. selectCount() {
  18754. let params = {
  18755. cid: this.id,
  18756. chid: this.courseType,
  18757. uid: this.userid,
  18758. };
  18759. this.ajax
  18760. .get(this.$store.state.api + "selectToolsCount", params)
  18761. .then((res) => {
  18762. for (var i = 0; i < res.data[0].length; i++) {
  18763. if (res.data[0][i].tools == 1) {
  18764. this.wbCount = res.data[0][i].count;
  18765. } else if (res.data[0][i].tools == 2) {
  18766. this.wordCount = res.data[0][i].count;
  18767. } else if (res.data[0][i].tools == 3) {
  18768. this.mindCount = res.data[0][i].count;
  18769. } else if (res.data[0][i].tools == 4) {
  18770. this.askCount = res.data[0][i].count;
  18771. } else if (res.data[0][i].tools == 6) {
  18772. this.noteCount = res.data[0][i].count;
  18773. } else if (res.data[0][i].tools == 7) {
  18774. this.mindNetWorkCount = res.data[0][i].count;
  18775. } else if (res.data[0][i].tools == 8) {
  18776. this.libraryCount = res.data[0][i].count;
  18777. } else if (res.data[0][i].tools == 16) {
  18778. this.workCount = res.data[0][i].count;
  18779. } else if (res.data[0][i].tools == 10) {
  18780. this.timeCount = res.data[0][i].count;
  18781. } else if (res.data[0][i].tools == 15) {
  18782. this.answerCount = res.data[0][i].count;
  18783. } else if (res.data[0][i].tools == 18) {
  18784. this.trainCount = res.data[0][i].count;
  18785. }
  18786. }
  18787. })
  18788. .catch((err) => {
  18789. console.error(err);
  18790. });
  18791. },
  18792. openTools(t, i, index, c, sName,id) {
  18793. var z = JSON.parse(c);
  18794. this.noteName = sName;
  18795. if (t == 4) {
  18796. this.radio = [];
  18797. this.isAnswer = false;
  18798. let b = z[0].anwer;
  18799. this.radio = b;
  18800. this.askJson = z[0].askJson;
  18801. this.isAnswer = true;
  18802. this.dialogVisible5 = true;
  18803. } else if (t == 45) {
  18804. this.radio = [];
  18805. this.isAnswer = false;
  18806. let b = z[0].anwer;
  18807. this.radio = b;
  18808. this.testJson = z[0].testJson;
  18809. this.isAnswer = true;
  18810. this.dialogVisibleChoice = true;
  18811. }else if(t == 69){
  18812. this.oldEnglishJson1 = {}
  18813. this.oldEnglishJson = {}
  18814. this.englishList1 = {}
  18815. this.newEngIndex = -1;
  18816. this.isNoUserid = false;
  18817. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18818. .toolChoose[i].englishList;
  18819. this.oldEnglishJson = z;
  18820. this.engWid = id;
  18821. this.newEnglishList = { engTitle:"",engText:"" }
  18822. this.newEnglishList1 = []
  18823. this.selectEngC(id,z);
  18824. }else if(t == 62){
  18825. this.videoType = 1;
  18826. this.videoJson = {};
  18827. this.videoJson = JSON.parse(c);
  18828. // this.videoJson =
  18829. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18830. // index
  18831. // ].toolChoose[i].videoJson;
  18832. this.dialogVisibleVideo = true;
  18833. }
  18834. // else if (t == 15) {
  18835. // this.answerQ = "";
  18836. // this.questionAnswer = "";
  18837. // this.answerQ = z[0].answerTitle;
  18838. // this.questionAnswer = z[0].answer;
  18839. // this.answerDialogVisible = true;
  18840. // }
  18841. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18842. },
  18843. fastText(p, t) {
  18844. if (t == 1) {
  18845. this.commentText += p;
  18846. } else {
  18847. this.eScore.eBzText += p;
  18848. }
  18849. },
  18850. addTools(t, i, index) {
  18851. var a = 0;
  18852. // this.taskCount = index;
  18853. this.toolindex = i;
  18854. if (t == 1) {
  18855. if (this.wbCount > 0) {
  18856. this.updateCount(this.wbCount, t);
  18857. } else {
  18858. this.wbCount++;
  18859. a = this.wbCount;
  18860. this.toolsCount(a, t);
  18861. }
  18862. window.topU.postMessage(
  18863. {
  18864. tools: "1",
  18865. cid: this.id,
  18866. stage: this.courseType,
  18867. task: this.taskCount,
  18868. tool: i,
  18869. },
  18870. "*"
  18871. );
  18872. } else if (t == 2) {
  18873. if (this.wordCount > 0) {
  18874. this.updateCount(this.wordCount, t);
  18875. } else {
  18876. this.wordCount++;
  18877. a = this.wordCount;
  18878. this.toolsCount(a, t);
  18879. }
  18880. window.topU.postMessage({ tools: "2" }, "*");
  18881. } else if (t == 3) {
  18882. if (this.mindCount > 0) {
  18883. this.updateCount(this.mindCount, t);
  18884. } else {
  18885. this.mindCount++;
  18886. a = this.mindCount;
  18887. this.toolsCount(a, t);
  18888. }
  18889. window.topU.postMessage(
  18890. {
  18891. tools: "3",
  18892. cid: this.id,
  18893. stage: this.courseType,
  18894. task: this.taskCount,
  18895. tool: i,
  18896. },
  18897. "*"
  18898. );
  18899. } else if (t == 4) {
  18900. this.radio = [];
  18901. this.noteName = "";
  18902. this.isAnswer = false;
  18903. if (this.askCount > 0) {
  18904. this.updateCount(this.askCount, t);
  18905. } else {
  18906. this.askCount++;
  18907. a = this.askCount;
  18908. this.toolsCount(a, t);
  18909. }
  18910. if (!this.dialogVisible2) {
  18911. this.askJson.askJson =
  18912. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18913. index
  18914. ].toolChoose[i].askJson;
  18915. this.askJson.askTitle =
  18916. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18917. index
  18918. ].toolChoose[i].askTitle;
  18919. this.askJson.askCount =
  18920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18921. index
  18922. ].toolChoose[i].askCount;
  18923. } else {
  18924. this.askJson.askJson = this.chapTools.askJson.askJson;
  18925. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18926. this.askJson.askCount = this.chapTools.askJson.askCount;
  18927. }
  18928. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18929. if (this.askJson.askJson[k].type == "2") {
  18930. this.radio.push([]);
  18931. } else {
  18932. this.radio.push("");
  18933. }
  18934. }
  18935. this.dialogVisible5 = true;
  18936. // window.topU.postMessage({ tools: "4" }, "*");
  18937. } else if (t == 45) {
  18938. this.noteName = "";
  18939. this.radio = [];
  18940. this.isAnswer = false;
  18941. if (this.askCount > 0) {
  18942. this.updateCount(this.askCount, t);
  18943. } else {
  18944. this.askCount++;
  18945. a = this.askCount;
  18946. this.toolsCount(a, t);
  18947. }
  18948. this.testJson =
  18949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18950. index
  18951. ].toolChoose[i].testJson;
  18952. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18953. if (this.testJson.testJson[k].type == "2") {
  18954. this.radio.push([]);
  18955. } else {
  18956. this.radio.push("");
  18957. }
  18958. }
  18959. this.dialogVisibleChoice = true;
  18960. // window.topU.postMessage({ tools: "4" }, "*");
  18961. } else if (t == 5) {
  18962. if (this.scoreCount > 0) {
  18963. this.updateCount(this.scoreCount, t);
  18964. } else {
  18965. this.scoreCount++;
  18966. a = this.scoreCount;
  18967. this.toolsCount(a, t);
  18968. }
  18969. this.dialogVisible4 = true;
  18970. // window.topU.postMessage({ tools: "5" }, "*");
  18971. } else if (t == 6) {
  18972. if (this.noteCount > 0) {
  18973. this.updateCount(this.noteCount, t);
  18974. } else {
  18975. this.noteCount++;
  18976. a = this.noteCount;
  18977. this.toolsCount(a, t);
  18978. }
  18979. window.topU.postMessage(
  18980. {
  18981. tools: "6",
  18982. cid: this.id,
  18983. stage: this.courseType,
  18984. task: this.taskCount,
  18985. tool: i,
  18986. },
  18987. "*"
  18988. );
  18989. } else if (t == 7) {
  18990. if (this.mindNetWorkCount > 0) {
  18991. this.updateCount(this.mindNetWorkCount, t);
  18992. } else {
  18993. this.mindNetWorkCount++;
  18994. a = this.mindNetWorkCount;
  18995. this.toolsCount(a, t);
  18996. }
  18997. window.topU.postMessage(
  18998. {
  18999. tools: "7",
  19000. cid: this.id,
  19001. stage: this.courseType,
  19002. task: this.taskCount,
  19003. tool: i,
  19004. },
  19005. "*"
  19006. );
  19007. } else if (t == 16) {
  19008. if (this.workCount > 0) {
  19009. this.updateCount(this.workCount, t);
  19010. } else {
  19011. this.workCount++;
  19012. a = this.workCount;
  19013. this.toolsCount(a, t);
  19014. }
  19015. this.dialogVisible = true;
  19016. } else if (t == 50) {
  19017. if (this.tType == 2) {
  19018. this.$message.error("不支持学生使用");
  19019. return;
  19020. }
  19021. this.plworkFile = [];
  19022. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19023. if (!this.uploadCid) {
  19024. this.$message.error(
  19025. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19026. );
  19027. return;
  19028. }
  19029. // this.uploadCid =
  19030. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19031. // index
  19032. // ].toolChoose[i].uploadJson[0];
  19033. this.selectUploadStudent(2);
  19034. } else if (t == 8) {
  19035. if (this.libraryCount > 0) {
  19036. this.updateCount(this.libraryCount, t);
  19037. } else {
  19038. this.libraryCount++;
  19039. a = this.libraryCount;
  19040. this.toolsCount(a, t);
  19041. }
  19042. window.topU.postMessage({ tools: "8" }, "*");
  19043. } else if (t == 17) {
  19044. if (this.libraryCount > 0) {
  19045. this.updateCount(this.libraryCount, t);
  19046. } else {
  19047. this.libraryCount++;
  19048. a = this.libraryCount;
  19049. this.toolsCount(a, t);
  19050. }
  19051. window.topU.postMessage({ tools: "17" }, "*");
  19052. } else if (t == 18) {
  19053. if (this.trainCount > 0) {
  19054. this.updateCount(this.trainCount, t);
  19055. } else {
  19056. this.trainCount++;
  19057. a = this.trainCount;
  19058. this.toolsCount(a, t);
  19059. }
  19060. window.topU.postMessage({ tools: "18" }, "*");
  19061. } else if (t == 10) {
  19062. if (this.timeCount > 0) {
  19063. this.updateCount(this.timeCount, t);
  19064. } else {
  19065. this.timeCount++;
  19066. a = this.timeCount;
  19067. this.toolsCount(a, t);
  19068. }
  19069. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19070. .taskJson[index].toolChoose[i].preTime
  19071. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19072. .toolChoose[i].preTime
  19073. : "";
  19074. this.timeDialogVisible = true;
  19075. } else if (t == 15) {
  19076. this.answerQ = "";
  19077. this.questionAnswer = "";
  19078. if (this.answerCount > 0) {
  19079. this.updateCount(this.answerCount, t);
  19080. } else {
  19081. this.answerCount++;
  19082. a = this.answerCount;
  19083. this.toolsCount(a, t);
  19084. }
  19085. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19086. .taskJson[index].toolChoose[i].answerQ
  19087. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19088. .toolChoose[i].answerQ
  19089. : "";
  19090. this.answerDialogVisible = true;
  19091. } else if (t == 21) {
  19092. window.topU.postMessage({ tools: "21" }, "*");
  19093. } else if (t == 22) {
  19094. window.topU.postMessage({ tools: "22" }, "*");
  19095. } else if (t == 23) {
  19096. window.topU.postMessage({ tools: "23" }, "*");
  19097. } else if (t == 24) {
  19098. window.topU.postMessage({ tools: "24" }, "*");
  19099. } else if (t == 25) {
  19100. window.topU.postMessage({ tools: "25" }, "*");
  19101. } else if (t == 31) {
  19102. window.topU.postMessage({ tools: "31" }, "*");
  19103. } else if (t == 28) {
  19104. window.topU.postMessage({ tools: "28" }, "*");
  19105. } else if (t == 37) {
  19106. window.topU.postMessage({ tools: "37" }, "*");
  19107. } else if (t == 38) {
  19108. window.topU.postMessage({ tools: "38" }, "*");
  19109. } else if (t == 39) {
  19110. window.topU.postMessage({ tools: "39" }, "*");
  19111. } else if (t == 32) {
  19112. window.topU.postMessage({ tools: "32" }, "*");
  19113. } else if (t == 66) {
  19114. window.topU.postMessage({ tools: "66" }, "*");
  19115. } else if (t == 67) {
  19116. window.topU.postMessage({ tools: "67" }, "*");
  19117. } else if (t == 68) {
  19118. window.topU.postMessage({ tools: "68" }, "*");
  19119. } else if (t == 57) {
  19120. // window.topU.postMessage({ tools: "57" }, "*");
  19121. window.topU.postMessage(
  19122. {
  19123. tools: "57u",
  19124. cid: this.id,
  19125. stage: this.courseType,
  19126. task: this.taskCount,
  19127. tool: i,
  19128. },
  19129. "*"
  19130. );
  19131. } else if (t == 58) {
  19132. window.topU.postMessage({ tools: "58" }, "*");
  19133. } else if (t == 59) {
  19134. window.topU.postMessage({ tools: "59" }, "*");
  19135. } else if (t == 60) {
  19136. window.topU.postMessage({ tools: "60" }, "*");
  19137. } else if (t == 61) {
  19138. window.topU.postMessage({ tools: "61" }, "*");
  19139. } else if (t == 63) {
  19140. window.topU.postMessage({ tools: "63" }, "*");
  19141. } else if (t == 71) {
  19142. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19143. // this.$message.error("该工具不可使用");
  19144. // return
  19145. // }
  19146. window.topU.postMessage({ tools: "71" }, "*");
  19147. } else if (t == 72) {
  19148. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19149. .taskJson[index].toolChoose[i].appJson
  19150. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19151. .toolChoose[i].appJson
  19152. : "";
  19153. if(!item || !item.url){
  19154. this.$message.error("应用连接为空, 请到课程管理中添加");
  19155. return;
  19156. }
  19157. if (!document.fullscreenElement) {
  19158. this.enterFullScreen();
  19159. }
  19160. this.$refs.appStoreC.getData(item.url,this.userid)
  19161. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19162. // window.open(item.url, "_blank");
  19163. } else if (t == 69) {
  19164. if (this.worksStudent[i].length) {
  19165. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19166. if (this.userid == this.worksStudent[i][k].userid) {
  19167. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19168. break;
  19169. } else {
  19170. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19171. }
  19172. }
  19173. } else {
  19174. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19175. }
  19176. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19177. .taskJson[index].toolChoose[i].englishList
  19178. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19179. .toolChoose[i].englishList
  19180. : {};
  19181. this.englishToolIndex = i;
  19182. this.myAnList = this.myAnswerList1;
  19183. this.engDialogVisible = true;
  19184. } else if (t == 70) {
  19185. if (this.worksStudent[i].length) {
  19186. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19187. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19188. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19189. break;
  19190. } else {
  19191. this.englishVoiceJsonWork = [];
  19192. }
  19193. }
  19194. } else {
  19195. this.englishVoiceJsonWork = [];
  19196. }
  19197. let englishVoiceJson = {}
  19198. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19199. .taskJson[index].toolChoose[i].englishVoiceJson
  19200. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19201. .toolChoose[i].englishVoiceJson
  19202. : {};
  19203. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19204. this.EnglishVoiceDialog = true;
  19205. } else if (t == 65) {
  19206. if (this.tType == 2) {
  19207. this.$message.error("不支持学生使用");
  19208. return;
  19209. }
  19210. this.uploadCid = this.tcid;
  19211. if (!this.uploadCid) {
  19212. this.$message.error(
  19213. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19214. );
  19215. return;
  19216. }
  19217. this.selectPickStudent();
  19218. } else if (t == 26) {
  19219. window.topU.postMessage(
  19220. {
  19221. tools: "26",
  19222. cid: this.id,
  19223. stage: this.courseType,
  19224. task: this.taskCount,
  19225. tool: i,
  19226. },
  19227. "*"
  19228. );
  19229. } else if (t == 40) {
  19230. if (this.evalCount > 0) {
  19231. this.updateCount(this.evalCount, t);
  19232. } else {
  19233. this.evalCount++;
  19234. a = this.evalCount;
  19235. this.toolsCount(a, t);
  19236. }
  19237. this.eScore = { eBzText: "", eStar: [] };
  19238. if (this.worksStudent[i].length) {
  19239. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19240. if (this.userid == this.worksStudent[i][k].userid) {
  19241. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19242. this.rateJson =
  19243. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19244. index
  19245. ].toolChoose[i].rateJson;
  19246. break;
  19247. } else {
  19248. this.rateJson =
  19249. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19250. index
  19251. ].toolChoose[i].rateJson;
  19252. }
  19253. }
  19254. } else {
  19255. this.rateJson =
  19256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19257. index
  19258. ].toolChoose[i].rateJson;
  19259. }
  19260. this.isStar = false;
  19261. this.studentEvalDialogVisible = true;
  19262. } else if (t == 41) {
  19263. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19264. .taskJson[index].toolChoose[i].selectJson
  19265. ? JSON.parse(
  19266. JSON.stringify(
  19267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19268. index
  19269. ].toolChoose[i].selectJson
  19270. )
  19271. )
  19272. : { url: "", select: [], answer: [] };
  19273. if (this.worksStudent[i].length) {
  19274. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19275. if (this.userid == this.worksStudent[i][k].userid) {
  19276. var a = this.worksStudent[i][k].works.split(",");
  19277. for (var ki = 0; ki < a.length; ki++) {
  19278. a[ki] = parseInt(a[ki]);
  19279. }
  19280. this.selectAnswer = {
  19281. answer: a,
  19282. stu: this.worksStudent[i][k].sName,
  19283. };
  19284. break;
  19285. } else {
  19286. this.selectAnswer = { answer: [], stu: "" };
  19287. }
  19288. }
  19289. } else {
  19290. this.selectAnswer = { answer: [], stu: "" };
  19291. }
  19292. this.isSelect = false;
  19293. this.dialogVisibleSelect = true;
  19294. } else if (t == 44) {
  19295. window.topU.postMessage({ tools: "44" }, "*");
  19296. } else if (t == 47) {
  19297. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19298. .taskJson[index].toolChoose[i].sentenceList
  19299. ? JSON.parse(
  19300. JSON.stringify(
  19301. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19302. index
  19303. ].toolChoose[i].sentenceList
  19304. )
  19305. )
  19306. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19307. for (var q = 0; q < this.sentenceList.length; q++) {
  19308. this.sentenceList[q].chooseSenList = [];
  19309. this.sentenceList[q].addChangeSen = [];
  19310. this.sentenceList[q].addChangeSen = JSON.parse(
  19311. JSON.stringify(this.sentenceList[q].addSentence)
  19312. );
  19313. this.sentenceList[q].chooseSenList.length =
  19314. this.sentenceList[q].rightAnswer.length;
  19315. }
  19316. this.dialogVisibleSentence = true;
  19317. } else if (t == 48) {
  19318. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19319. .taskJson[index].toolChoose[i].tableJson
  19320. ? JSON.parse(
  19321. JSON.stringify(
  19322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19323. index
  19324. ].toolChoose[i].tableJson
  19325. )
  19326. )
  19327. : { text: "" };
  19328. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19329. if (this.worksStudent[i].length) {
  19330. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19331. if (this.userid == this.worksStudent[i][k].userid) {
  19332. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19333. break;
  19334. }
  19335. }
  19336. }
  19337. this.dialogVisibleTable = true;
  19338. } else if (t == 52) {
  19339. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19340. .taskJson[index].toolChoose[i].wordJson
  19341. ? JSON.parse(
  19342. JSON.stringify(
  19343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19344. index
  19345. ].toolChoose[i].wordJson
  19346. )
  19347. )
  19348. : { text: "" };
  19349. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19350. if (this.worksStudent[i].length) {
  19351. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19352. if (this.userid == this.worksStudent[i][k].userid) {
  19353. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19354. break;
  19355. }
  19356. }
  19357. }
  19358. this.dialogVisibleWord = true;
  19359. } else if (t == 49) {
  19360. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19361. return
  19362. }
  19363. this.groupJson =
  19364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19365. index
  19366. ].toolChoose[i].groupJson;
  19367. this.islock = this.groupJson.islock == 1 ? true : false;
  19368. this.dialogVisibleGroup = true;
  19369. } else if (t == 62) {
  19370. this.videoType = 0;
  19371. this.videoJson = {};
  19372. this.videoJson =
  19373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19374. index
  19375. ].toolChoose[i].videoJson;
  19376. this.dialogVisibleVideo = true;
  19377. }
  19378. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19379. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19380. },
  19381. teacherWorkSubmit(t, i, index, s) {
  19382. this.sStudent = s;
  19383. this.toolindex = i;
  19384. this.sTool = t;
  19385. if (this.tType !== "1" && this.tType !== "4") {
  19386. return;
  19387. }
  19388. if (t == 16 || t == 32 || t == 50) {
  19389. this.dialogVisibleWorks = true;
  19390. } else if (t == 15) {
  19391. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19392. .taskJson[index].toolChoose[i].answerQ
  19393. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19394. .toolChoose[i].answerQ
  19395. : "";
  19396. this.questionAnswer = "";
  19397. this.answerDialogVisibleTeacher = true; //问答
  19398. } else if (t == 52) {
  19399. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19400. .taskJson[index].toolChoose[i].wordJson
  19401. ? JSON.parse(
  19402. JSON.stringify(
  19403. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19404. index
  19405. ].toolChoose[i].wordJson
  19406. )
  19407. )
  19408. : { text: "" };
  19409. if (this.worksStudent[i].length) {
  19410. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19411. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19412. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19413. break;
  19414. }
  19415. }
  19416. }
  19417. this.dialogVisibleWordTeacher = true; //文档
  19418. } else if (t == 4) {
  19419. this.radio = [];
  19420. this.noteName = "";
  19421. this.isAnswer = false;
  19422. if (this.askCount > 0) {
  19423. this.updateCount(this.askCount, t);
  19424. } else {
  19425. this.askCount++;
  19426. a = this.askCount;
  19427. this.toolsCount(a, t);
  19428. }
  19429. if (!this.dialogVisible2) {
  19430. this.askJson.askJson =
  19431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19432. index
  19433. ].toolChoose[i].askJson;
  19434. this.askJson.askTitle =
  19435. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19436. index
  19437. ].toolChoose[i].askTitle;
  19438. this.askJson.askCount =
  19439. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19440. index
  19441. ].toolChoose[i].askCount;
  19442. } else {
  19443. this.askJson.askJson = this.chapTools.askJson.askJson;
  19444. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19445. this.askJson.askCount = this.chapTools.askJson.askCount;
  19446. }
  19447. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19448. if (this.askJson.askJson[k].type == "2") {
  19449. this.radio.push([]);
  19450. } else {
  19451. this.radio.push("");
  19452. }
  19453. }
  19454. this.dialogVisible5Teacher = true;
  19455. } else if (t == 45) {
  19456. this.noteName = "";
  19457. this.radio = [];
  19458. this.isAnswer = false;
  19459. if (this.askCount > 0) {
  19460. this.updateCount(this.askCount, t);
  19461. } else {
  19462. this.askCount++;
  19463. a = this.askCount;
  19464. this.toolsCount(a, t);
  19465. }
  19466. this.testJson =
  19467. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19468. index
  19469. ].toolChoose[i].testJson;
  19470. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19471. if (this.testJson.testJson[k].type == "2") {
  19472. this.radio.push([]);
  19473. } else {
  19474. this.radio.push("");
  19475. }
  19476. }
  19477. this.dialogVisibleChoiceTeacher = true;
  19478. } else if (t == 41) {
  19479. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19480. .taskJson[index].toolChoose[i].selectJson
  19481. ? JSON.parse(
  19482. JSON.stringify(
  19483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19484. index
  19485. ].toolChoose[i].selectJson
  19486. )
  19487. )
  19488. : { url: "", select: [], answer: [] };
  19489. if (this.worksStudent[i].length) {
  19490. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19491. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19492. var a = this.worksStudent[i][k].works.split(",");
  19493. for (var ki = 0; ki < a.length; ki++) {
  19494. a[ki] = parseInt(a[ki]);
  19495. }
  19496. this.selectAnswer = {
  19497. answer: a,
  19498. stu: this.worksStudent[i][k].sName,
  19499. };
  19500. break;
  19501. } else {
  19502. this.selectAnswer = { answer: [], stu: "" };
  19503. }
  19504. }
  19505. } else {
  19506. this.selectAnswer = { answer: [], stu: "" };
  19507. }
  19508. this.isSelect = false;
  19509. this.dialogVisibleSelectTeacher = true;
  19510. } else if (t == 47) {
  19511. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19512. .taskJson[index].toolChoose[i].sentenceList
  19513. ? JSON.parse(
  19514. JSON.stringify(
  19515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19516. index
  19517. ].toolChoose[i].sentenceList
  19518. )
  19519. )
  19520. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19521. for (var q = 0; q < this.sentenceList.length; q++) {
  19522. this.sentenceList[q].chooseSenList = [];
  19523. this.sentenceList[q].addChangeSen = [];
  19524. this.sentenceList[q].addChangeSen = JSON.parse(
  19525. JSON.stringify(this.sentenceList[q].addSentence)
  19526. );
  19527. this.sentenceList[q].chooseSenList.length =
  19528. this.sentenceList[q].rightAnswer.length;
  19529. }
  19530. this.dialogVisibleSentenceTeacher = true;
  19531. } else if (t == 48) {
  19532. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19533. .taskJson[index].toolChoose[i].tableJson
  19534. ? JSON.parse(
  19535. JSON.stringify(
  19536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19537. index
  19538. ].toolChoose[i].tableJson
  19539. )
  19540. )
  19541. : { text: "" };
  19542. if (this.worksStudent[i].length) {
  19543. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19544. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19545. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19546. break;
  19547. }
  19548. }
  19549. }
  19550. this.dialogVisibleTableTeacher = true;
  19551. } else if (t == 40) {
  19552. if (this.evalCount > 0) {
  19553. this.updateCount(this.evalCount, t);
  19554. } else {
  19555. this.evalCount++;
  19556. a = this.evalCount;
  19557. this.toolsCount(a, t);
  19558. }
  19559. this.eScore = { eBzText: "", eStar: [] };
  19560. if (this.worksStudent[i].length) {
  19561. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19562. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19563. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19564. this.rateJson =
  19565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19566. index
  19567. ].toolChoose[i].rateJson;
  19568. break;
  19569. } else {
  19570. this.rateJson =
  19571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19572. index
  19573. ].toolChoose[i].rateJson;
  19574. }
  19575. }
  19576. } else {
  19577. this.rateJson =
  19578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19579. index
  19580. ].toolChoose[i].rateJson;
  19581. }
  19582. this.isStar = false;
  19583. this.studentEvalDialogVisibleTeacher = true;
  19584. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19585. window.topU.postMessage(
  19586. {
  19587. tools: t + "teacher",
  19588. cid: this.id,
  19589. stage: this.courseType,
  19590. task: this.taskCount,
  19591. tool: i,
  19592. student: this.sStudent,
  19593. },
  19594. "*"
  19595. );
  19596. }else if (t == 72) {
  19597. if (!document.fullscreenElement) {
  19598. this.enterFullScreen();
  19599. }
  19600. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19601. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19602. }
  19603. },
  19604. openCocoPi(tool, i, uid, uname) {
  19605. let student = {
  19606. userid: uid,
  19607. student: uname,
  19608. };
  19609. if (tool == 57) {
  19610. window.topU.postMessage(
  19611. {
  19612. tools: tool + "teacher",
  19613. cid: this.id,
  19614. stage: this.courseType,
  19615. task: this.taskCount,
  19616. tool: i,
  19617. student: student,
  19618. },
  19619. "*"
  19620. );
  19621. }
  19622. },
  19623. setRightAnswer(s, i, j) {
  19624. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19625. if (
  19626. this.sentenceList[i].chooseSenList[q] == undefined ||
  19627. this.sentenceList[i].chooseSenList[q] == ""
  19628. ) {
  19629. this.sentenceList[i].chooseSenList[q] = s;
  19630. this.sentenceList[i].addChangeSen[j] = "";
  19631. break;
  19632. }
  19633. }
  19634. this.$forceUpdate();
  19635. },
  19636. returnCard(r, i, j) {
  19637. var a = this.sentenceList[i].addSentence.indexOf(r);
  19638. this.sentenceList[i].chooseSenList[j] = "";
  19639. this.sentenceList[i].addChangeSen[a] = r;
  19640. this.$forceUpdate();
  19641. },
  19642. // addSentenceTool() {
  19643. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19644. // this.taskCount
  19645. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19646. // this.sentenceList = [
  19647. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19648. // ];
  19649. // this.dialogVisibleSentence = false;
  19650. // },
  19651. toolsCount(a, t) {
  19652. let params = {
  19653. cid: this.id,
  19654. chid: this.courseType,
  19655. uid: this.userid,
  19656. tid: t,
  19657. count: a,
  19658. };
  19659. this.ajax
  19660. .get(this.$store.state.api + "insertToolsCount", params)
  19661. .then((res) => {
  19662. this.selectCount();
  19663. })
  19664. .catch((err) => {
  19665. console.error(err);
  19666. });
  19667. },
  19668. updateCount(c, t) {
  19669. c++;
  19670. let params = {
  19671. cid: this.id,
  19672. chid: this.courseType,
  19673. uid: this.userid,
  19674. tid: t,
  19675. count: c,
  19676. };
  19677. this.ajax
  19678. .get(this.$store.state.api + "updateToolsCount", params)
  19679. .then((res) => {
  19680. this.selectCount();
  19681. })
  19682. .catch((err) => {
  19683. console.error(err);
  19684. });
  19685. },
  19686. checkEva() {
  19687. if (this.evalua != "") {
  19688. for (var i = 0; i < this.evaJuri.length; i++) {
  19689. if (this.evalua == this.evaJuri[i].id) {
  19690. this.eTitle = this.evaJuri[i].title;
  19691. this.eJson = JSON.parse(this.evaJuri[i].content);
  19692. }
  19693. }
  19694. this.$forceUpdate();
  19695. setTimeout(() => {
  19696. this.setMindData();
  19697. }, 0);
  19698. }
  19699. },
  19700. selectEva() {
  19701. let params = {
  19702. oid: this.oid,
  19703. };
  19704. this.ajax
  19705. .get(this.$store.state.api + "selectAllEvaluation", params)
  19706. .then((res) => {
  19707. this.evaJuri = res.data[0];
  19708. })
  19709. .catch((err) => {
  19710. console.error(err);
  19711. });
  19712. },
  19713. setMindData() {
  19714. this.data.data = [];
  19715. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19716. let _eJson = Object.keys(this.eJson);
  19717. let _e = this.eJson;
  19718. for (let i = 0; i < _eJson.length; i++) {
  19719. let element = _e[_eJson[i]];
  19720. this.data.data.push({
  19721. id: element.id,
  19722. parentid: "root",
  19723. topic: element.name,
  19724. });
  19725. let _eJsonc = Object.keys(element.child);
  19726. let _e2 = element.child;
  19727. for (let j = 0; j < _eJsonc.length; j++) {
  19728. let _ec = _e2[_eJsonc[j]];
  19729. this.data.data.push({
  19730. id: _ec.id,
  19731. parentid: element.id,
  19732. topic: _ec.name,
  19733. });
  19734. let _eJsonz = Object.keys(_ec.child);
  19735. let _e3 = _ec.child;
  19736. for (let z = 0; z < _eJsonz.length; z++) {
  19737. let _ez = _e3[_eJsonz[z]];
  19738. this.data.data.push({
  19739. id: _ez.id,
  19740. parentid: _ec.id,
  19741. topic: _ez.name,
  19742. });
  19743. }
  19744. }
  19745. }
  19746. this.$forceUpdate();
  19747. },
  19748. checkFileFull(type, url) {
  19749. this.fullDialogVisible = true;
  19750. this.fulltype = type;
  19751. this.fullUrl = url;
  19752. },
  19753. async checkFileFull1(t, f) {
  19754. this.fullDialogVisible = true;
  19755. if (t == 6) {
  19756. this.fulltype = 1;
  19757. console.log('checkFileFull1',f);
  19758. this.fullUrl = JSON.parse(JSON.stringify(f));
  19759. } else if (t == 8) {
  19760. this.fulltype = 2;
  19761. this.fullUrl = f.url;
  19762. } else if (t == 16) {
  19763. this.fulltype = 16;
  19764. this.fullUrl = f.url;
  19765. } else if (t == 15) {
  19766. this.fulltype = 4;
  19767. this.fullUrl = f.url;
  19768. } else if (
  19769. t == 3 &&
  19770. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19771. "PDF"
  19772. ) {
  19773. this.fulltype = 3;
  19774. this.fullUrl = f.url;
  19775. } else if (t == 3) {
  19776. this.fulltype = 2;
  19777. let _uuurl = await this.checkLink(f.url);
  19778. console.log(_uuurl)
  19779. this.fullUrl =
  19780. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19781. }
  19782. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19783. },
  19784. openSname(n, id, i, uid) {
  19785. this.snameWid = id;
  19786. this.worksSName = n;
  19787. this.worksSid = uid == n ? "" : uid;
  19788. this.toolindex = i;
  19789. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19790. if (!this.uploadCid) {
  19791. this.$message.error(
  19792. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19793. );
  19794. return;
  19795. }
  19796. this.selectUploadStudent(1);
  19797. },
  19798. updateName() {
  19799. let params = {
  19800. n: this.worksSName,
  19801. cid: this.snameWid,
  19802. };
  19803. this.ajax
  19804. .get(this.$store.state.api + "updateCourseWorksName", params)
  19805. .then((res) => {
  19806. this.$message({
  19807. message: "修改成功",
  19808. type: "success",
  19809. });
  19810. this.dialogVisibleSname = false;
  19811. this.getCourseDetail(2);
  19812. this.snameWid = "";
  19813. this.worksSName = "";
  19814. })
  19815. .catch((err) => {
  19816. console.error(err);
  19817. });
  19818. },
  19819. downloadFile2(f) {
  19820. // const loading = this.$loading.service({
  19821. // background: "rgba(255, 255, 255, 0.7)",
  19822. // target: document.body,
  19823. // text: "文件加载中...",
  19824. // });
  19825. // let url2 = f.url;
  19826. // let _url2 = "";
  19827. // if (
  19828. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19829. // ) {
  19830. // _url2 = url2.split(
  19831. // "https://view.officeapps.live.com/op/view.aspx?src="
  19832. // )[1];
  19833. // } else {
  19834. // _url2 = url2;
  19835. // }
  19836. // let params = {
  19837. // url: _url2,
  19838. // name: f.name,
  19839. // };
  19840. // this.ajax
  19841. // .get(this.$store.state.api + "download", params)
  19842. // .then((res) => {
  19843. // loading.close();
  19844. // let content = res.data.data.data;
  19845. // let ab = new ArrayBuffer(content.length);
  19846. // let view = new Uint8Array(ab);
  19847. // for (var i = 0; i < content.length; ++i) {
  19848. // view[i] = content[i];
  19849. // }
  19850. // let elink = document.createElement("a");
  19851. // elink.download = f.name;
  19852. // elink.style.display = "none";
  19853. // let blob = new Blob([ab], {
  19854. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19855. // });
  19856. // elink.href = URL.createObjectURL(blob);
  19857. // document.body.appendChild(elink);
  19858. // elink.click();
  19859. // document.body.removeChild(elink);
  19860. // })
  19861. // .catch((err) => {
  19862. // loading.close();
  19863. // console.error(err);
  19864. // });
  19865. var credentials = {
  19866. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19867. secretAccessKey: "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",
  19868. }; //秘钥形式的登录上传
  19869. window.AWS.config.update(credentials);
  19870. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19871. let url2 = f.url;
  19872. let _url2 = "";
  19873. if (
  19874. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19875. ) {
  19876. _url2 = url2.split(
  19877. "https://view.officeapps.live.com/op/view.aspx?src="
  19878. )[1];
  19879. } else {
  19880. _url2 = url2;
  19881. }
  19882. let _this = this;
  19883. _this.downLoading = true
  19884. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19885. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19886. var params = {
  19887. Bucket: "ccrb",
  19888. Key: name
  19889. };
  19890. s3.getObject(params, function (err, data) {
  19891. _this.downLoading = false
  19892. if (err) console.log(err, err.stack); // an error occurred
  19893. else {
  19894. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19895. let a = document.createElement("a");
  19896. a.name = f.name;
  19897. a.href = url;
  19898. a.download = f.name;
  19899. a.click();
  19900. console.log(data);
  19901. } // sxuccessful response
  19902. });
  19903. return;
  19904. let url = f.url;
  19905. let _url = "";
  19906. if (
  19907. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19908. ) {
  19909. _url = url.split(
  19910. "https://view.officeapps.live.com/op/view.aspx?src="
  19911. )[1];
  19912. } else {
  19913. _url = url;
  19914. }
  19915. _this.downLoading = true
  19916. // const loading = _this.$loading.service({
  19917. // background: "rgba(255, 255, 255, 0.7)",
  19918. // target: document.body,
  19919. // text: "文件加载中...",
  19920. // });
  19921. let x = new XMLHttpRequest();
  19922. x.open("GET", _url, true);
  19923. x.responseType = "blob";
  19924. x.onload = function () {
  19925. _this.downLoading = false
  19926. // loading.close();
  19927. let url = window.URL.createObjectURL(new Blob([x.response]));
  19928. let a = document.createElement("a");
  19929. a.name = f.name;
  19930. a.href = url;
  19931. a.download = f.name;
  19932. a.click();
  19933. };
  19934. x.send();
  19935. },
  19936. downloadFile(url,uid) {
  19937. if (this.tType == 1 || this.userid == uid) {
  19938. var credentials = {
  19939. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19940. secretAccessKey: "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",
  19941. }; //秘钥形式的登录上传
  19942. window.AWS.config.update(credentials);
  19943. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19944. let url2 = url;
  19945. let _url2 = "";
  19946. if (
  19947. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19948. ) {
  19949. _url2 = url2.split(
  19950. "https://view.officeapps.live.com/op/view.aspx?src="
  19951. )[1];
  19952. } else {
  19953. _url2 = url2;
  19954. }
  19955. const loading2 = this.$loading.service({
  19956. background: "rgba(255, 255, 255, 0.7)",
  19957. target: document.body,
  19958. text: "文件加载中...",
  19959. });
  19960. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19961. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19962. var params = {
  19963. Bucket: "ccrb",
  19964. Key: name
  19965. };
  19966. s3.getObject(params, function (err, data) {
  19967. loading2.close();
  19968. if (err) console.log(err, err.stack); // an error occurred
  19969. else {
  19970. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19971. let a = document.createElement("a");
  19972. a.name = name;
  19973. a.href = url;
  19974. a.download = name;
  19975. a.click();
  19976. console.log(data);
  19977. } // sxuccessful response
  19978. });
  19979. }
  19980. return;
  19981. let _this = this;
  19982. let _url = "";
  19983. if (
  19984. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19985. ) {
  19986. _url = url.split(
  19987. "https://view.officeapps.live.com/op/view.aspx?src="
  19988. )[1];
  19989. } else {
  19990. _url = url;
  19991. }
  19992. const x = new XMLHttpRequest();
  19993. x.open("GET", _url, true);
  19994. x.responseType = "blob";
  19995. // this.downLoading = true
  19996. const loading = _this.$loading.service({
  19997. background: "rgba(255, 255, 255, 0.7)",
  19998. target: document.body,
  19999. text: "文件加载中...",
  20000. });
  20001. // _this.$message.success("文件下载中...");
  20002. x.onload = function (e) {
  20003. this.downLoading = false
  20004. loading.close();
  20005. let content = x.response;
  20006. let elink = document.createElement("a");
  20007. elink.download = decodeURI(
  20008. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20009. );
  20010. elink.style.display = "none";
  20011. let blob = new Blob([content]);
  20012. elink.href = URL.createObjectURL(blob);
  20013. document.body.appendChild(elink);
  20014. elink.click();
  20015. document.body.removeChild(elink);
  20016. };
  20017. x.send();
  20018. },
  20019. openLine(url) {
  20020. window.open(url);
  20021. },
  20022. resize() {
  20023. if (document.getElementsByClassName("box_course").length) {
  20024. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20025. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20026. if (this.showType == 2 || this.showType == 3) {
  20027. document.getElementsByClassName("navBox")[0].style.height =
  20028. a - 40 + 0+ "px";
  20029. } else {
  20030. document.getElementsByClassName("navBox")[0].style.height =
  20031. a - 40 + "px";
  20032. }
  20033. }
  20034. this.Stbodywidth =
  20035. document.getElementsByClassName("student_body").length &&
  20036. document.getElementsByClassName("student_body")[0].offsetWidth;
  20037. },
  20038. closeDraw() {
  20039. this.bg = null;
  20040. this.drawShow = false;
  20041. },
  20042. showPicturePaint(url) {
  20043. let params = {
  20044. img: url,
  20045. };
  20046. this.ajax
  20047. .get(this.$store.state.api + "imgToBase64", params)
  20048. .then((res) => {
  20049. this.drawShow = true;
  20050. this.bg = res.data[0].img;
  20051. })
  20052. .catch((err) => {
  20053. console.error(err);
  20054. });
  20055. },
  20056. addImgDraw(base64) {
  20057. let file = { name: "批注图.png" };
  20058. let img = this.dataUrlToFile(base64, file);
  20059. this.beforeUpload1(img, 5);
  20060. },
  20061. addImgDrawImG(url) {
  20062. // console.log(url);
  20063. let params = [
  20064. {
  20065. wid: this.commentDetail.wid,
  20066. img: url,
  20067. },
  20068. ];
  20069. this.ajax
  20070. .post(this.$store.state.api + "updateCourseWorks", params)
  20071. .then((res) => {
  20072. this.$message({
  20073. message: "提交成功",
  20074. type: "success",
  20075. });
  20076. this.drawShow = false;
  20077. this.bg = "";
  20078. this.selectSWorks();
  20079. this.selectStudent();
  20080. })
  20081. .catch((err) => {
  20082. this.$message.error("提交失败");
  20083. console.error(err);
  20084. });
  20085. },
  20086. deletePicturePaint() {
  20087. this.$confirm("确定删除此批注吗?", "提示", {
  20088. confirmButtonText: "确定",
  20089. cancelButtonText: "取消",
  20090. type: "warning",
  20091. })
  20092. .then(() => {
  20093. let params = [
  20094. {
  20095. wid: this.commentDetail.wid,
  20096. img: "",
  20097. },
  20098. ];
  20099. this.ajax
  20100. .post(this.$store.state.api + "updateCourseWorks", params)
  20101. .then((res) => {
  20102. this.$message({
  20103. message: "删除成功",
  20104. type: "success",
  20105. });
  20106. this.selectSWorks();
  20107. this.selectStudent();
  20108. })
  20109. .catch((err) => {
  20110. this.$message.error("删除失败");
  20111. console.error(err);
  20112. });
  20113. })
  20114. .catch(() => {});
  20115. },
  20116. getAudioVideo(constraintsData) {
  20117. if (navigator.mediaDevices === undefined) {
  20118. navigator.mediaDevices = {};
  20119. }
  20120. if (navigator.mediaDevices.getUserMedia === undefined) {
  20121. navigator.mediaDevices.getUserMedia = function (constraints) {
  20122. // 首先,如果有getUserMedia的话,就获得它
  20123. var getUserMedia =
  20124. navigator.getUserMedia ||
  20125. navigator.webkitGetUserMedia ||
  20126. navigator.mozGetUserMedia ||
  20127. navigator.msGetUserMedia;
  20128. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20129. if (!getUserMedia) {
  20130. return Promise.reject({ code: 404 });
  20131. }
  20132. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20133. return new Promise(function (resolve, reject) {
  20134. getUserMedia.call(navigator, constraints, resolve, reject);
  20135. });
  20136. };
  20137. }
  20138. return navigator.mediaDevices.getUserMedia(constraintsData);
  20139. },
  20140. /**
  20141. * 开始录制
  20142. */
  20143. startRecording(callback) {
  20144. let _function = (screenStream) => {
  20145. this.addStreamStopListener(screenStream, () => {
  20146. console.log("流停止监听");
  20147. this.stopRecording();
  20148. this.$emit("streamStop", {});
  20149. // this.stopRecording();
  20150. });
  20151. var options = {
  20152. type: "video",
  20153. mimeType: "video/webm",
  20154. disableLogs: false,
  20155. getNativeBlob: false, // enable it for longer recordings
  20156. ignoreMutedMedia: false,
  20157. };
  20158. // this.video.srcObject = screenStream;
  20159. this.recorder = RecordRTC(screenStream, options);
  20160. this.recorder.startRecording();
  20161. this.recorder.screen = screenStream;
  20162. this.videoStart = true;
  20163. // callback(true);
  20164. };
  20165. this.getAudioVideo({ audio: true })
  20166. .then((res) => {
  20167. this.captureScreen(_function, true);
  20168. console.log("已点击允许,开启成功");
  20169. })
  20170. .catch((err) => {
  20171. // console.log('浏览器不支持,请更换浏览器')
  20172. // } else {
  20173. this.captureScreen(_function, false);
  20174. console.log("请检查是否存在麦克风");
  20175. });
  20176. },
  20177. /**
  20178. * 停止录制
  20179. */
  20180. stopRecording(callback) {
  20181. this.recorder.stopRecording(() => {
  20182. // this.video.src = this.video.srcObject = null;
  20183. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20184. const url = URL.createObjectURL(this.recorder.getBlob());
  20185. const a = document.createElement("a"); //this.fileName+
  20186. let videoFile = new File(
  20187. [this.recorder.getBlob()],
  20188. this.courseDetail.title + "录屏.mp4",
  20189. {
  20190. type: "video/mp4",
  20191. }
  20192. );
  20193. let downloadUrl = URL.createObjectURL(videoFile);
  20194. if(this.$refs.classRoomHelperRef){
  20195. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20196. }
  20197. document.body.appendChild(a);
  20198. a.style.display = "none";
  20199. a.href = url;
  20200. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20201. a.click();
  20202. this.recorder.screen.stop();
  20203. this.recorder.destroy();
  20204. this.recorder = null;
  20205. this.videoStart = false;
  20206. // callback(false);
  20207. });
  20208. },
  20209. //初始化
  20210. captureScreen(callback, type) {
  20211. if (navigator.getDisplayMedia) {
  20212. //录制结束,文件下载
  20213. navigator
  20214. .getDisplayMedia({
  20215. video: true,
  20216. })
  20217. .then((screenStream) => {
  20218. if (type) {
  20219. navigator.mediaDevices
  20220. .getUserMedia({ audio: true })
  20221. .then((mic) => {
  20222. screenStream.addTrack(mic.getTracks()[0]);
  20223. callback(screenStream);
  20224. });
  20225. } else {
  20226. callback(screenStream);
  20227. }
  20228. })
  20229. .catch(function (error) {
  20230. console.log("error", error);
  20231. });
  20232. } else if (navigator.mediaDevices.getDisplayMedia) {
  20233. navigator.mediaDevices
  20234. .getDisplayMedia({
  20235. video: true,
  20236. })
  20237. .then((screenStream) => {
  20238. if (type) {
  20239. navigator.mediaDevices
  20240. .getUserMedia({ audio: true })
  20241. .then((mic) => {
  20242. screenStream.addTrack(mic.getTracks()[0]);
  20243. callback(screenStream);
  20244. });
  20245. } else {
  20246. callback(screenStream);
  20247. }
  20248. })
  20249. .catch(function (error) {
  20250. console.log("error", error);
  20251. });
  20252. } else {
  20253. var error = "getDisplayMedia API are not supported in this browser.";
  20254. console.log("error", error);
  20255. alert(error);
  20256. }
  20257. },
  20258. //流监听
  20259. addStreamStopListener(stream, callback) {
  20260. stream.addEventListener(
  20261. "ended",
  20262. function () {
  20263. callback();
  20264. callback = function () {};
  20265. },
  20266. false
  20267. );
  20268. stream.addEventListener(
  20269. "inactive",
  20270. function () {
  20271. callback();
  20272. callback = function () {};
  20273. },
  20274. false
  20275. );
  20276. stream.getTracks().forEach(function (track) {
  20277. track.addEventListener(
  20278. "ended",
  20279. function () {
  20280. callback();
  20281. callback = function () {};
  20282. },
  20283. false
  20284. );
  20285. track.addEventListener(
  20286. "inactive",
  20287. function () {
  20288. callback();
  20289. callback = function () {};
  20290. },
  20291. false
  20292. );
  20293. });
  20294. },
  20295. updateGroup() {
  20296. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20297. this.dialogVisibleGroup2 = true;
  20298. },
  20299. numberPan() {
  20300. if (
  20301. /[^\d]/.test(this.groupJson.number) ||
  20302. this.groupJson.number < 2 ||
  20303. this.groupJson.number > 10
  20304. ) {
  20305. this.$message.error("请输入2-10的数字");
  20306. this.groupJson.number = "";
  20307. }
  20308. },
  20309. updateGroupJson() {
  20310. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20311. if (
  20312. this.groupStudentUid[this.toolindex][i].length >
  20313. this.groupJson2.number
  20314. ) {
  20315. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20316. return;
  20317. }
  20318. }
  20319. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20320. this.islock = this.groupJson.islock == 1 ? true : false;
  20321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20322. this.taskCount
  20323. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20324. let params = [
  20325. {
  20326. cid: this.id,
  20327. chapters: JSON.stringify(this.chapInfoList),
  20328. uid: this.userid,
  20329. unitIndex: this.courseType,
  20330. },
  20331. ];
  20332. this.ajax
  20333. .post(this.$store.state.api + "updateWorkNew4", params)
  20334. .then((res) => {
  20335. this.$message.success("设置成功");
  20336. this.getCourseDetail(2);
  20337. this.dialogVisibleGroup2 = false;
  20338. this.groupJson2 = {};
  20339. this.$forceUpdate();
  20340. })
  20341. .catch((err) => {
  20342. this.$message.error("网络不佳");
  20343. console.error(err);
  20344. });
  20345. },
  20346. lockChair() {
  20347. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20348. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20349. this.updateGroupJson();
  20350. },
  20351. selectGroup(index) {
  20352. this.getCourseDetail(2, index);
  20353. },
  20354. joinGroup(index) {
  20355. if (this.groupJson.islock == 2) {
  20356. this.$message.error("位置已被锁定,无法加入");
  20357. return;
  20358. }
  20359. if (
  20360. this.groupStudent[this.toolindex][index].length >
  20361. this.groupJson.number ||
  20362. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20363. ) {
  20364. this.$message.error("位置已满,无法加入");
  20365. return;
  20366. }
  20367. let params = [
  20368. {
  20369. cid: this.id,
  20370. stage: this.courseType,
  20371. task: this.taskCount,
  20372. tool: this.toolindex,
  20373. g: index,
  20374. uid: this.userid,
  20375. },
  20376. ];
  20377. this.ajax
  20378. .post(this.$store.state.api + "joinGroup", params)
  20379. .then((res) => {
  20380. this.$message.success("加入成功");
  20381. this.getCourseDetail(2);
  20382. })
  20383. .catch((err) => {
  20384. this.$message.error("网络不佳");
  20385. console.error(err);
  20386. });
  20387. },
  20388. exitGroup(id) {
  20389. if (this.groupJson.islock == 2) {
  20390. this.$message.error("位置已被锁定,无法退出");
  20391. return;
  20392. }
  20393. let params = [
  20394. {
  20395. gid: id,
  20396. },
  20397. ];
  20398. this.ajax
  20399. .post(this.$store.state.api + "exitGroup", params)
  20400. .then((res) => {
  20401. this.$message.success("退出成功");
  20402. this.getCourseDetail(2);
  20403. })
  20404. .catch((err) => {
  20405. this.$message.error("网络不佳");
  20406. console.error(err);
  20407. });
  20408. },
  20409. groupUpload(index, task, gindex) {
  20410. this.taskCount = task;
  20411. this.toolindex = index;
  20412. this.groupIndex = gindex;
  20413. this.dialogVisibleGroupWork = true;
  20414. },
  20415. updateGroupChair(user) {
  20416. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20417. el.label = index;
  20418. return index != user.group;
  20419. });
  20420. this.updateGroupUser = user;
  20421. this.dialogVisibleUpdateGroup = true;
  20422. },
  20423. updateChair() {
  20424. if (
  20425. this.groupStudent[this.toolindex][this.checkChair].length >
  20426. this.groupJson.number ||
  20427. this.groupStudent[this.toolindex][this.checkChair].length ==
  20428. this.groupJson.number
  20429. ) {
  20430. this.$message.error("位置已满,无法加入");
  20431. return;
  20432. }
  20433. let params = [
  20434. {
  20435. cid: this.id,
  20436. stage: this.courseType,
  20437. task: this.taskCount,
  20438. tool: this.toolindex,
  20439. g: this.checkChair,
  20440. uid: this.updateGroupUser.userid,
  20441. },
  20442. ];
  20443. this.ajax
  20444. .post(this.$store.state.api + "joinGroup", params)
  20445. .then((res) => {
  20446. this.$message.success("修改成功");
  20447. this.updateGroupUser = {};
  20448. this.checkChair = "";
  20449. this.updateGroupArray = {};
  20450. this.dialogVisibleUpdateGroup = false;
  20451. this.getCourseDetail(2);
  20452. })
  20453. .catch((err) => {
  20454. this.$message.error("网络不佳");
  20455. console.error(err);
  20456. });
  20457. },
  20458. deleteGroupChair(gindex) {
  20459. this.checkDeleteGroup = [];
  20460. this.deleteGroupUser = JSON.parse(
  20461. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20462. );
  20463. this.deleteGroupArray = this.groupJson.group[gindex];
  20464. this.groupIndex = gindex;
  20465. this.dialogVisibleDeleteGroup = true;
  20466. },
  20467. async deleteChair() {
  20468. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20469. const gid =
  20470. this.groupStudent[this.toolindex][this.groupIndex][
  20471. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20472. this.checkDeleteGroup[i]
  20473. )
  20474. ];
  20475. let params = [
  20476. {
  20477. gid: gid.id,
  20478. },
  20479. ];
  20480. var a = await this.deleteChairA(params);
  20481. if (i == this.checkDeleteGroup.length - 1) {
  20482. this.$message.success("退出成功");
  20483. this.dialogVisibleDeleteGroup = false;
  20484. this.deleteGroupUser = [];
  20485. this.deleteGroupArray = {};
  20486. this.groupIndex = "";
  20487. this.checkDeleteGroup = [];
  20488. this.getCourseDetail(2);
  20489. }
  20490. }
  20491. },
  20492. deleteChairA(params) {
  20493. return new Promise((resolve, reject) => {
  20494. this.ajax
  20495. .post(this.$store.state.api + "exitGroup", params)
  20496. .then((res) => {
  20497. resolve(1);
  20498. })
  20499. .catch((err) => {
  20500. this.$message.error("网络不佳");
  20501. console.error(err);
  20502. });
  20503. });
  20504. },
  20505. contract(i) {
  20506. if (this.isCloseList[i].isClose == 0) {
  20507. this.isCloseList[i].isClose = 1;
  20508. } else {
  20509. this.isCloseList[i].isClose = 0;
  20510. }
  20511. this.$forceUpdate();
  20512. },
  20513. openWordCloud(toolindex) {
  20514. this.wordCloudData = '';
  20515. let array = [];
  20516. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20517. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20518. array.push({ name: works });
  20519. }
  20520. if (this.isGroup) {
  20521. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20522. let works = this.courseGroup.group[i].works[toolindex];
  20523. for (var j = 0; j < works.length; j++) {
  20524. let answer = JSON.parse(works[j].works)[0].answer;
  20525. array.push({ name: answer });
  20526. }
  20527. }
  20528. }
  20529. let _result = ''
  20530. array.forEach(e=>{
  20531. _result +=e.name+','
  20532. })
  20533. this.wordCloudData = _result;
  20534. this.dialogVisibleWordCloud = true;
  20535. this.wordCloudKey += 1;
  20536. },
  20537. uploadWorks(i) {
  20538. this.$confirm("确定导出作业吗?", "提示", {
  20539. confirmButtonText: "确定",
  20540. cancelButtonText: "取消",
  20541. type: "warning",
  20542. })
  20543. .then(() => {
  20544. const loading = this.$loading.service({
  20545. background: "rgba(255, 255, 255, 0.7)",
  20546. target: document.body,
  20547. text: "文件加载中...",
  20548. });
  20549. const _worksStudent = this.worksStudent;
  20550. let url = [];
  20551. var counts = {};
  20552. for (var l = 0; l < _worksStudent[i].length; l++) {
  20553. var item = _worksStudent[i][l];
  20554. var name = item.sName;
  20555. if (!counts.hasOwnProperty(name)) {
  20556. counts[name] = 0;
  20557. } else {
  20558. counts[name]++;
  20559. }
  20560. if (counts[name] > 0) {
  20561. item.sName += " (" + counts[name] + ")";
  20562. }
  20563. }
  20564. for (var l = 0; l < _worksStudent[i].length; l++) {
  20565. var item = _worksStudent[i][l];
  20566. if (
  20567. item.works.indexOf(
  20568. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20569. ) !== -1 &&
  20570. item.works.indexOf("img") === -1
  20571. ) {
  20572. url.push({ name: item.sName, url: item.works });
  20573. }
  20574. }
  20575. // var toolList = [
  20576. // { name: "电子白板", tool: 1 },
  20577. // { name: "思维导图", tool: 3 },
  20578. // { name: "协同文档", tool: 6 },
  20579. // { name: "思维网格", tool: 7 },
  20580. // { name: "素材库", tool: 8 },
  20581. // { name: "学习资料", tool: 17 },
  20582. // { name: "便签", tool: 2 },
  20583. // { name: "问卷调查", tool: 4 },
  20584. // { name: "选择题", tool: 45 },
  20585. // { name: "倒计时", tool: 10 },
  20586. // { name: "问答", tool: 15 },
  20587. // { name: "课程设计", tool: 26 },
  20588. // { name: "训练服务器", tool: 18 },
  20589. // { name: "作业提交", tool: 16 },
  20590. // { name: "批量上传", tool: 50 },
  20591. // { name: "AIoT Blockly", tool: 21 },
  20592. // { name: "AI Python", tool: 23 },
  20593. // { name: "AI Blockly", tool: 24 },
  20594. // { name: "目标管理", tool: 25 },
  20595. // { name: "数学画板", tool: 31 },
  20596. // { name: "翻译", tool: 28 },
  20597. // { name: "魔盒识字", tool: 37 },
  20598. // { name: "数学画板", tool: 31 },
  20599. // { name: "24点", tool: 38 },
  20600. // { name: "GeoGebra", tool: 39 },
  20601. // { name: "源码编辑", tool: 32 },
  20602. // { name: "个人评价", tool: 40 },
  20603. // { name: "选择匹配", tool: 41 },
  20604. // { name: "汉字宫", tool: 44 },
  20605. // { name: "排序", tool: 47 },
  20606. // { name: "表格", tool: 48 },
  20607. // { name: "文档", tool: 52 },
  20608. // { name: "学生分组", tool: 49 },
  20609. // { name: "CocoPi", tool: 57 },
  20610. // { name: "模拟驾驶", tool: 58 },
  20611. // { name: "路径搜索", tool: 59 },
  20612. // { name: "深度学习", tool: 60 },
  20613. // { name: "全历史", tool: 61 },
  20614. // { name: "交互视频", tool: 62 },
  20615. // { name: "海龟编程", tool: 63 },
  20616. // { name: "挑人", tool: 65 },
  20617. // { name: "公式编辑", tool: 66 },
  20618. // { name: "分子结构", tool: 67 },
  20619. // { name: "时间轴", tool: 68 },
  20620. // ];
  20621. // var toolName = "";
  20622. // for(var w = 0;w<toolList.length;w++){
  20623. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20624. // toolName = toolList[w].name;
  20625. // }
  20626. // }
  20627. console.log(url);
  20628. this.downLoadAll(url, loading);
  20629. })
  20630. .catch(() => {});
  20631. },
  20632. downLoadAll(url, loading) {
  20633. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20634. const zip = new JSZip();
  20635. const cache = {};
  20636. const promises = [];
  20637. data.forEach((item) => {
  20638. const promise = getFile(item.url).then((data) => {
  20639. if (data.data != 1) {
  20640. // 下载文件, 并存成ArrayBuffer对象
  20641. const file_name =
  20642. item.name +
  20643. "." +
  20644. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20645. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20646. cache[file_name] = data.data;
  20647. }
  20648. });
  20649. promises.push(promise);
  20650. });
  20651. Promise.all(promises).then(() => {
  20652. zip.generateAsync({ type: "blob" }).then((content) => {
  20653. // 生成二进制流
  20654. FileSaver.saveAs(
  20655. content,
  20656. this.courseDetail.title + "-" + "作业提交工具.zip"
  20657. ); // 利用file-saver保存文件 自定义文件名
  20658. setTimeout(() => {
  20659. loading.close();
  20660. }, 2000);
  20661. });
  20662. });
  20663. },
  20664. pickStudent(stu) {
  20665. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20666. return;
  20667. }
  20668. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20669. confirmButtonText: "确定",
  20670. cancelButtonText: "取消",
  20671. type: "warning",
  20672. })
  20673. .then(() => {
  20674. let params = [
  20675. {
  20676. uid: stu.userid,
  20677. cid: this.id,
  20678. stage: this.courseType,
  20679. task: this.taskCount,
  20680. tool: this.toolindex,
  20681. },
  20682. ];
  20683. this.ajax
  20684. .post(this.$store.state.api + "updateCoursePick", params)
  20685. .then((res) => {
  20686. this.$message.success("操作成功");
  20687. this.getPick();
  20688. })
  20689. .catch((err) => {
  20690. this.$message.error("网络不佳");
  20691. console.error(err);
  20692. });
  20693. })
  20694. .catch(() => {});
  20695. },
  20696. selectUser(){
  20697. let params = {
  20698. userid: this.userid,
  20699. };
  20700. this.ajax
  20701. .get(this.$store.state.api + "selectUser", params)
  20702. .then((res) => {
  20703. this.userMes = res.data[0];
  20704. })
  20705. .catch((err) => {
  20706. console.error(err);
  20707. });
  20708. },
  20709. setEngText(i){
  20710. this.newEngIndex = i;
  20711. this.$forceUpdate();
  20712. },
  20713. addCorrect(){
  20714. this.$confirm("你确定提交批改嘛?", "提示", {
  20715. confirmButtonText: "确定",
  20716. showCancelButton: false,
  20717. closeOnClickModal: false,
  20718. type: "warning",
  20719. })
  20720. .then(() => {
  20721. let params = {
  20722. cid: this.id,
  20723. s: parseInt(this.courseType),
  20724. t: this.taskCount,
  20725. tool: this.toolindex,
  20726. wid: this.engWid,
  20727. c: this.userid,
  20728. 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) : "",
  20729. };
  20730. this.ajax
  20731. .get(this.$store.state.api + "addEngC", params)
  20732. .then((res) => {
  20733. this.$message.success("提交成功");
  20734. this.engUpdateDialogVisible = false;
  20735. })
  20736. .catch((err) => {
  20737. console.error(err);
  20738. });
  20739. })
  20740. .catch(() => {});
  20741. },
  20742. selectEngC(id,z){
  20743. let params = {
  20744. workid: id,
  20745. };
  20746. this.ajax
  20747. .get(this.$store.state.api + "selectEngC", params)
  20748. .then((res) => {
  20749. if(res.data[0].length == 0){
  20750. this.newEnglishList.engTitle = z.engTitle;
  20751. this.newEnglishList.engText = z.engText;
  20752. }else{
  20753. var a = res.data[0];
  20754. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20755. if(this.userMes[0].type == 2){
  20756. var snum = 0;
  20757. for(var i = 0;i<a.length;i++){
  20758. if(this.userMes[0].userid == a[i].correct){
  20759. this.newEnglishList = JSON.parse(a[i].cWork);
  20760. snum = 1;
  20761. }
  20762. }
  20763. if(snum == 0){
  20764. this.newEnglishList = { engTitle:"",engText:"" };
  20765. this.newEnglishList.engTitle = z.engTitle;
  20766. this.newEnglishList.engText = z.engText;
  20767. }
  20768. }else if(this.userMes[0].type == 1){
  20769. var num = 0;
  20770. for(var w= 0;w<a.length;w++){
  20771. if(this.userMes[0].userid == a[w].correct){
  20772. num = 1;
  20773. }
  20774. }
  20775. if(num == 0){
  20776. this.isNoUserid = true;
  20777. var c = JSON.parse(JSON.stringify(z));
  20778. this.oldEnglishJson1 = c;
  20779. }else{
  20780. this.isNoUserid = false;
  20781. }
  20782. var b = a.sort((item, index) => {
  20783. console.log(item)
  20784. if (item.correct === this.userMes[0].userid) {
  20785. return -1; // 将a移到前面
  20786. } else if (index.correct === this.userMes[0].userid) {
  20787. return 1; // 将b移到前面
  20788. } else {
  20789. return 0; // 保持默认顺序
  20790. }
  20791. });
  20792. for(var p = 0;p<b.length;p++){
  20793. for(var y = 0;y<ppp.length;y++){
  20794. if(b[p].id == ppp[y].id){
  20795. b[p].cWork = JSON.parse(ppp[y].cWork);
  20796. break
  20797. }
  20798. }
  20799. }
  20800. this.newEnglishList1 = b;
  20801. }
  20802. }
  20803. this.greyType = false;
  20804. setTimeout(() => {
  20805. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20806. if(this.newEnglishList1.length > 0){
  20807. if(this.isNoUserid == true){
  20808. this.engListLength = this.newEnglishList1.length + 1;
  20809. this.newEngIndex = -1;
  20810. }else{
  20811. this.engListLength = this.newEnglishList1.length;
  20812. this.newEngIndex = 0;
  20813. }
  20814. }
  20815. if(this.userMes[0].type == 2){
  20816. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20817. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20818. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20819. }else if(this.newEngIndex == -1){
  20820. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20821. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20822. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20823. }
  20824. }, 500);
  20825. this.engUpdateDialogVisible = true;
  20826. this.$forceUpdate();
  20827. })
  20828. .catch((err) => {
  20829. console.error(err);
  20830. });
  20831. },
  20832. getPick() {
  20833. let params = {
  20834. cid: this.id,
  20835. };
  20836. this.ajax
  20837. .get(this.$store.state.api + "getPick", params)
  20838. .then((res) => {
  20839. let array = [];
  20840. for (var i = 0; i < res.data[0].length; i++) {
  20841. array.push(res.data[0][i].userid);
  20842. }
  20843. this.isPickStudent = array;
  20844. if (array.indexOf(this.userid) !== -1) {
  20845. this.$confirm("你被老师选到啦!", "提示", {
  20846. confirmButtonText: "确定",
  20847. showCancelButton: false,
  20848. closeOnClickModal: false,
  20849. type: "warning",
  20850. })
  20851. .then(() => {
  20852. let pa = [
  20853. {
  20854. uid: this.userid,
  20855. cid: this.id,
  20856. },
  20857. ];
  20858. this.ajax
  20859. .post(this.$store.state.api + "deletePick", pa)
  20860. .then((res) => {
  20861. this.getPick();
  20862. })
  20863. .catch((err) => {
  20864. this.$message.error("网络不佳");
  20865. console.error(err);
  20866. });
  20867. })
  20868. .catch(() => {});
  20869. }
  20870. })
  20871. .catch((err) => {
  20872. this.$message.error("网络不佳");
  20873. console.error(err);
  20874. });
  20875. },
  20876. foldEva() {
  20877. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20878. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20879. } else {
  20880. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20881. setTimeout(() => {
  20882. this.checkEva();
  20883. setTimeout(() => {
  20884. this.checkEva();
  20885. }, 500);
  20886. }, 0);
  20887. }
  20888. this.$forceUpdate();
  20889. },
  20890. panToolHeight(tool) {
  20891. var _tool = document.querySelectorAll('#'+tool)[0]
  20892. var _toolA = _tool ? _tool.offsetHeight : 0
  20893. var _toolC = 0
  20894. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20895. let boolean2 = (_toolA > _toolC) ? true : false
  20896. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20897. this.$forceUpdate();
  20898. },
  20899. async checkLink(url) {
  20900. // console.log(url)
  20901. let _url = url
  20902. try {
  20903. const response = await fetch(url);
  20904. if(!response.ok){
  20905. _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]))
  20906. }
  20907. // console.log(response.ok)
  20908. } catch (error) {
  20909. console.error('Error checking link:', error);
  20910. // console.log(false)
  20911. _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]))
  20912. }
  20913. // console.log(_url)
  20914. return _url
  20915. },
  20916. getScoreList(){
  20917. let params = {
  20918. cid: this.id,
  20919. };
  20920. this.ajax
  20921. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20922. .then((res) => {
  20923. let result = res.data;
  20924. this.scoreList.datalist = result[0];
  20925. this.scoreList.isScoreList = result[1];
  20926. })
  20927. .catch((err) => {
  20928. console.error(err);
  20929. });
  20930. },
  20931. setClassRoomHelperWidth(width){
  20932. this.classRoomHelperWidth = width
  20933. },
  20934. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20935. this.$refs.choseWorksDetailDialogRef.open({
  20936. toolType:tooc,
  20937. tType: this.tType,
  20938. toolIndex: toolIndex
  20939. });
  20940. this.changeSplitScreenBehavior({
  20941. code: 1,
  20942. form: {
  20943. toolType:tooc,
  20944. toolIndex: toolIndex,
  20945. courseType: this.courseType,
  20946. taskCount: this.taskCount,
  20947. type: 0
  20948. }
  20949. });
  20950. },
  20951. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20952. this.$refs.statisticalAnalysisRef.open({
  20953. worksStudent: this.worksStudent[toolIndex],
  20954. tType: this.tType,
  20955. toolIndex: toolIndex
  20956. });
  20957. this.changeSplitScreenBehavior({
  20958. code: 2,
  20959. form: {
  20960. toolType:4,
  20961. courseType: this.courseType,
  20962. taskCount: this.taskCount,
  20963. toolIndex: toolIndex,
  20964. type: 0
  20965. }
  20966. });
  20967. },
  20968. statisticalAnalysisRefresh(toolIndex) {
  20969. this.$refs.statisticalAnalysisRef.refreshData({
  20970. worksStudent: this.worksStudent[toolIndex],
  20971. tType: this.tType,
  20972. toolIndex: toolIndex
  20973. });
  20974. },
  20975. async splitScreenBehavior(type = 0) {
  20976. // return;
  20977. if (this.splitScreenData.loading)
  20978. return this.$message.info("操作过快,请稍等");
  20979. if (type == 0) {
  20980. //关闭分屏
  20981. this.splitScreenData.isOpen = false;
  20982. // this.splitScreenData.userId = "";
  20983. // this.splitScreenData.uid = "";
  20984. this.splitScreenData.behavior = null;
  20985. await this.updateSplitScreenData(1);
  20986. this.$message.success("已关闭分屏模式");
  20987. this.studentFreePreview(false);
  20988. this.OpenJobPreview(false);
  20989. // this.followingMode(false);
  20990. } else if (type == 1) {
  20991. //开启分屏
  20992. this.splitScreenData.isOpen = true;
  20993. this.splitScreenData.userId = this.userid;
  20994. this.splitScreenData.uid = this.splitScreenData.myUid;
  20995. this.splitScreenData.behavior = null;
  20996. let status = await this.updateSplitScreenData(0);
  20997. this.changeSplitScreenBehavior({form:{}})
  20998. if (status == 1) {
  20999. this.$message.success("已开启分屏");
  21000. this.studentFreePreview(false);
  21001. this.OpenJobPreview(true);
  21002. // this.followingMode(true);
  21003. } else {
  21004. this.splitScreenData.isOpen = false;
  21005. this.splitScreenData.userId = "";
  21006. this.splitScreenData.uid = "";
  21007. this.splitScreenData.behavior = null;
  21008. this.$message.success("分屏开启失败");
  21009. }
  21010. }
  21011. },
  21012. enterFullScreen() {
  21013. let element = document.documentElement;
  21014. if (element.requestFullscreen) {
  21015. element.requestFullscreen();
  21016. } else if (element.mozRequestFullScreen) { /* Firefox */
  21017. element.mozRequestFullScreen();
  21018. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21019. element.webkitRequestFullscreen();
  21020. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21021. element.msRequestFullscreen();
  21022. }
  21023. },
  21024. exitFullScreen() {
  21025. if (document.exitFullscreen) {
  21026. document.exitFullscreen();
  21027. } else if (document.mozCancelFullScreen) { /* Firefox */
  21028. document.mozCancelFullScreen();
  21029. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21030. document.webkitExitFullscreen();
  21031. } else if (document.msExitFullscreen) { /* IE/Edge */
  21032. document.msExitFullscreen();
  21033. }
  21034. },
  21035. confirmOpen(){
  21036. this.splitScreenData.isOpen = true;
  21037. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21038. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21039. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21040. this.confirmOpenDig = false
  21041. if (!document.fullscreenElement) {
  21042. this.enterFullScreen();
  21043. }
  21044. // if (this.timer2) {
  21045. // clearInterval(this.timer2);
  21046. // this.timer2 = null;
  21047. // }
  21048. // this.timer2 = setInterval(()=> {
  21049. // this.getSplitScreenData();//获取分屏数据
  21050. // }, 1000);
  21051. this.$message.success("分屏模式已开启");
  21052. },
  21053. getSplitScreenData() {
  21054. // return;
  21055. // if (this.tType != 1) return;
  21056. let params = {
  21057. cid: this.id
  21058. };
  21059. this.ajax
  21060. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21061. .then(async res => {
  21062. let data = res.data[0][0]["splitScreenData"];
  21063. console.log("获取了分屏数:", data);
  21064. if (data) {
  21065. data = JSON.parse(data);
  21066. if (
  21067. !this.splitScreenData.isOpen &&
  21068. data.isOpen &&
  21069. this.splitScreenData.myUid == data.uid
  21070. ) {
  21071. this.splitScreenData.isOpen = false;
  21072. this.splitScreenData.userId = "";
  21073. this.splitScreenData.uid = "";
  21074. this.splitScreenData.behavior = null;
  21075. await this.updateSplitScreenData(1);
  21076. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21077. this.confirmOpenDig = true
  21078. this.confirmOpenDigData = data
  21079. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21080. this.splitScreenData.isOpen = false;
  21081. this.splitScreenData.userId = "";
  21082. this.splitScreenData.uid = "";
  21083. this.splitScreenData.behavior = null;
  21084. this.$message.error("已结束分屏模式");
  21085. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21086. this.splitScreenData.isOpen = true;
  21087. this.splitScreenData.uid = data.uid;
  21088. this.splitScreenData.userId = data.userId;
  21089. this.splitScreenData.behavior = data.behavior;
  21090. }
  21091. this.doSplitScreenBehavior();
  21092. } else {
  21093. if (this.splitScreenData.isOpen) {
  21094. this.splitScreenData.isOpen = false;
  21095. this.splitScreenData.userId = "";
  21096. this.splitScreenData.uid = "";
  21097. this.splitScreenData.behavior = null;
  21098. this.$message.error("已结束分屏模式");
  21099. // if (this.timer2) {
  21100. // clearInterval(this.timer2);
  21101. // this.timer2 = null;
  21102. // }
  21103. // this.timer2 = setInterval(()=> {
  21104. // this.getSplitScreenData();//获取分屏数据
  21105. // }, 5000);
  21106. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21107. confirmButtonText: '确定', //确认按钮的文字
  21108. showCancelButton: false, //是否显示取消按钮
  21109. showClose: false, //是否显示关闭按钮
  21110. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21111. type: "warning",
  21112. })
  21113. .then(() => {
  21114. if (document.fullscreenElement) {
  21115. this.exitFullScreen();
  21116. }
  21117. })
  21118. .catch(() => {});
  21119. }
  21120. }
  21121. })
  21122. .catch(e => {
  21123. console.log("获取分屏数出错:", e);
  21124. });
  21125. },
  21126. doSplitScreenBehavior() {
  21127. if (
  21128. this.splitScreenData.isOpen &&
  21129. this.splitScreenData.uid != this.splitScreenData.myUid
  21130. ) {
  21131. let behavior = this.splitScreenData.behavior;
  21132. if (behavior) {
  21133. if (behavior.code === 99) {
  21134. //初始化
  21135. this.fullDialogVisible = false;
  21136. if(this.$refs.choseWorksDetailDialogRef.show){
  21137. this.$refs.choseWorksDetailDialogRef.close();
  21138. }
  21139. if(this.$refs.statisticalAnalysisRef.show){
  21140. this.$refs.statisticalAnalysisRef.close();
  21141. }
  21142. }
  21143. if (behavior.code === 0) {
  21144. //开启内容列表弹窗
  21145. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21146. }else{
  21147. this.fullDialogVisible = false;
  21148. }
  21149. if (behavior.code === 1) {
  21150. //关于选择题的作业详细的操作
  21151. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21152. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21153. this.courseType = behavior.form.courseType;
  21154. this.taskCount = behavior.form.taskCount;
  21155. }
  21156. this.$nextTick(() => {
  21157. if (this.$refs.choseWorksDetailDialogRef.show) {
  21158. //已经打开了
  21159. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21160. } else {
  21161. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21162. }
  21163. });
  21164. }else{
  21165. this.$refs.choseWorksDetailDialogRef.close()
  21166. }
  21167. if(behavior.code === 2){
  21168. if(this.$refs.statisticalAnalysisRef.show){
  21169. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21170. }else{
  21171. this.$refs.statisticalAnalysisRef.open({
  21172. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21173. tType: this.tType,
  21174. toolIndex: behavior.form.toolIndex
  21175. });
  21176. }
  21177. }else{
  21178. this.$refs.statisticalAnalysisRef.close();
  21179. }
  21180. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21181. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21182. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21183. if (behavior.form.courseType != this.courseType ||
  21184. behavior.form.taskCount != this.taskCount ||
  21185. behavior.form.toolType != this.toolindex
  21186. ) {
  21187. var a = document.scrollingElement;
  21188. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21189. if (target) {
  21190. target.scrollIntoView(true);
  21191. setTimeout(()=>{
  21192. let scrollBody = document.querySelector('.body_student').parentElement
  21193. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21194. }, 0);
  21195. // setTimeout(() => {
  21196. // a.scrollTop = 0
  21197. // }, 0);
  21198. }
  21199. }
  21200. if(this.courseType !=behavior.form.courseType){
  21201. this.courseType = behavior.form.courseType;
  21202. }
  21203. if(this.taskCount !=behavior.form.taskCount){
  21204. this.taskCount = behavior.form.taskCount;
  21205. }
  21206. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21207. this.toolindex = behavior.form.toolType;
  21208. }
  21209. // if(behavior.form.navId){
  21210. // this.navId = behavior.form.navId
  21211. // }
  21212. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21213. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21214. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21215. this.getCourseDetail()
  21216. }
  21217. this.setContent2(false)
  21218. }
  21219. } else {
  21220. }
  21221. }
  21222. },
  21223. updateSplitScreenData(empty = 0) {
  21224. return new Promise(resolve => {
  21225. if(this.userid!==this.courseDetail.userid){
  21226. if(!this.courseDetail.userid){
  21227. return setTimeout(()=>{
  21228. this.updateSplitScreenData(empty)
  21229. },2000)
  21230. }
  21231. return;
  21232. };
  21233. if (
  21234. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21235. this.splitScreenData.userId == this.userid
  21236. ) {
  21237. this.splitScreenData.loading = true;
  21238. let params = [
  21239. {
  21240. cid: this.id,
  21241. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21242. }
  21243. ];
  21244. this.ajax
  21245. .post(
  21246. this.$store.state.api + "update_courseSplitScreenData",
  21247. params
  21248. )
  21249. .then(res => {
  21250. this.splitScreenData.loading = false;
  21251. if (res.data == 1) {
  21252. resolve(1);
  21253. console.log("修改分屏数据成功");
  21254. }
  21255. })
  21256. .catch(e => {
  21257. this.splitScreenData.loading = false;
  21258. console.log("修改分屏数据失败", e);
  21259. resoleve(0);
  21260. });
  21261. } else if (empty == 2 && this.tType == 1) {
  21262. let params = [
  21263. {
  21264. cid: this.id,
  21265. nData: ""
  21266. }
  21267. ];
  21268. return this.ajax
  21269. .post(
  21270. this.$store.state.api + "update_courseSplitScreenData",
  21271. params
  21272. )
  21273. .then(_ => resolve(1))
  21274. .catch(_ => resolve(0));
  21275. } else {
  21276. return resolve(0);
  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.followingMode(flag)
  21307. this.updateLookOpen();
  21308. },
  21309. OpenJobPreview(flag) {
  21310. this.sIsOpen = flag;
  21311. this.updateSLook();
  21312. },
  21313. followingMode(flag) {
  21314. this.IsFollow = flag;
  21315. this.updateFollow();
  21316. }
  21317. },
  21318. directives: {
  21319. // 使用局部注册指令的方式
  21320. resize: {
  21321. // 指令的名称
  21322. bind(el, binding) {
  21323. // el为绑定的元素,binding为绑定给指令的对象
  21324. let width = "",
  21325. height = "";
  21326. function isReize() {
  21327. const style = document.defaultView.getComputedStyle(el);
  21328. if (width !== style.width || height !== style.height) {
  21329. binding.value(); // 关键
  21330. }
  21331. width = style.width;
  21332. height = style.height;
  21333. }
  21334. el.__vueSetInterval__ = setInterval(isReize, 300);
  21335. },
  21336. unbind(el) {
  21337. clearInterval(el.__vueSetInterval__);
  21338. },
  21339. },
  21340. autoHeight: {
  21341. update(el, binding) {
  21342. const { value } = binding
  21343. if (value && typeof value === 'number') {
  21344. el.style.height = `${value}px`
  21345. } else {
  21346. el.style.height = 'auto'
  21347. }
  21348. },
  21349. componentUpdated(el) {
  21350. el.style.height = `${el.scrollHeight + 5}px`
  21351. },
  21352. },
  21353. },
  21354. beforeDestroy() {
  21355. window.onresize = null;
  21356. clearInterval(this.timer);
  21357. this.timer = null;
  21358. clearInterval(this.timer2);
  21359. this.timer2 = null;
  21360. clearInterval(this.opertimer);
  21361. this.opertimer = null;
  21362. this.updateSplitScreenData(1);
  21363. },
  21364. computed: {
  21365. renderedFormula() {
  21366. return function(val){
  21367. try {
  21368. return katex.renderToString(val,{ throwOnError: false });
  21369. } catch (e) {
  21370. console.error('KaTeX渲染错误:', e);
  21371. return val;
  21372. }
  21373. }
  21374. },
  21375. isAndroid() {
  21376. return /Android/i.test(navigator.userAgent);
  21377. },
  21378. getHeight(){
  21379. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21380. },
  21381. contentConvent() {
  21382. return function (c) {
  21383. return c
  21384. ? c
  21385. .replaceAll(/\r\n/g, "<br/>")
  21386. .replaceAll(/\n/g, "<br/>")
  21387. .replaceAll(/\s/g, "&nbsp")
  21388. : "";
  21389. };
  21390. },
  21391. MarkdownT() {
  21392. return function (c) {
  21393. let md = new MarkdownIt();
  21394. return c
  21395. ? md.render(c) : "";
  21396. };
  21397. },
  21398. commentRight(){
  21399. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21400. return "35px";
  21401. }
  21402. return `calc(${this.classRoomHelperWidth} + 5px)`
  21403. // if(this.$refs["classRoomHelperRef"].type==0){
  21404. // return "100px";
  21405. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21406. // return "502px"
  21407. // }else{
  21408. // return "0px"
  21409. // }
  21410. },
  21411. checkUpload() {
  21412. return function () {
  21413. var studentK = [];
  21414. if (this.plworkFile.length > 0) {
  21415. for (var z = 0; z < this.plworkFile.length; z++) {
  21416. studentK.push(this.plworkFile[z].username);
  21417. }
  21418. studentK = studentK.join(",");
  21419. }
  21420. var a = this.uploadStudentJuri.filter((el) => {
  21421. return studentK.indexOf(el.userid) == -1;
  21422. });
  21423. return a;
  21424. };
  21425. },
  21426. getSName() {
  21427. return function (name) {
  21428. var check = name;
  21429. this.uploadStudentJuri.forEach((el) => {
  21430. if (el.userid == check) {
  21431. check = el.name ? el.name : el.username;
  21432. }
  21433. });
  21434. return check;
  21435. };
  21436. },
  21437. getImgList() {
  21438. return function (val) {
  21439. let srcList = []; // 定义一个数组用来接收后面的img地址
  21440. val.replace(
  21441. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21442. function (match, capture) {
  21443. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21444. srcList.push(capture);
  21445. }
  21446. );
  21447. return srcList;
  21448. };
  21449. },
  21450. retrnToolHeight(){
  21451. return function (tool) {
  21452. var _tool = document.querySelectorAll('#'+tool)[0]
  21453. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21454. };
  21455. },
  21456. Correct() {
  21457. return function (c,d) {
  21458. let w = "";
  21459. let a = this.correctWord;
  21460. for(var k = 0;k<a.length;k++){
  21461. //diffWordsWithSpace
  21462. if(a.length > 1){
  21463. if(a[k].added == true){
  21464. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21465. }else if(a[k].removed == true){
  21466. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21467. }else{
  21468. w += '<span>' + a[k].value + '</span>';
  21469. }
  21470. }else{
  21471. w = c
  21472. }
  21473. console.log("👇👇!+++==")
  21474. console.log(w)
  21475. //diffChars方法
  21476. // if(w == ""){
  21477. // if(a.length > 1){
  21478. // if(a[k].added == true){
  21479. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21480. // }else if(a[k].removed == true){
  21481. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21482. // }
  21483. // }else{
  21484. // w = c
  21485. // }
  21486. // }else{
  21487. // if(k == a.length - 1){
  21488. // if(a[k].added == true){
  21489. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21490. // }else if(a[k].removed == true){
  21491. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21492. // }
  21493. // }else{
  21494. // if(a[k].added == true){
  21495. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21496. // }else if(a[k].removed == true){
  21497. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21498. // }
  21499. // }
  21500. // }
  21501. }
  21502. c = w;
  21503. return c;
  21504. };
  21505. },
  21506. },
  21507. mounted() {
  21508. document.body.addEventListener("click", (e) => {
  21509. if (this.isUpdateToolDetail1) {
  21510. this.updateToolDetail(this.toolDetailIndex);
  21511. }
  21512. });
  21513. try {
  21514. if (this.screenType == 2) {
  21515. window.topU.postMessage({ allScreen: 4 }, "*");
  21516. } else if (this.screenType == 3) {
  21517. window.topU.postMessage({ allScreen: 5 }, "*");
  21518. } else if (this.screenType == 1) {
  21519. window.topU.postMessage({ allScreen: 6 }, "*");
  21520. }
  21521. } catch (error) {
  21522. console.log(error)
  21523. }
  21524. this.setOperationTime();
  21525. this.selectEva();
  21526. this.getCourseDetail();
  21527. this.selectCount();
  21528. this.getHomeWork();
  21529. this.selectUser();
  21530. this.getAIJ();
  21531. this.contentDialog = true;
  21532. this.setContent2(true);
  21533. if (this.tType == 4) {
  21534. this.pzDialog = true;
  21535. this.selectPz();
  21536. }
  21537. // 获取评分列表
  21538. this.getScoreList()
  21539. this.updateSplitScreenData(2);
  21540. this.splitScreenData.myUid = uuidv4();
  21541. document.scrollingElement.scrollTop = 0;
  21542. window.addEventListener("resize", () => {
  21543. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21544. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21545. if (this.showType == 2 || this.showType == 3) {
  21546. document.getElementsByClassName("navBox")[0].style.height =
  21547. a - 40 + 0+ "px";
  21548. } else {
  21549. document.getElementsByClassName("navBox")[0].style.height =
  21550. a - 40 + "px";
  21551. }
  21552. });
  21553. let _this = this;
  21554. setTimeout(() => {
  21555. // _this.vedioTime = [];
  21556. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21557. // _this.vedioTime[i] = document.getElementsByClassName(
  21558. // "vjs-duration-display"
  21559. // )[i].textContent;
  21560. // }
  21561. }, 1000);
  21562. },
  21563. };
  21564. </script>
  21565. <style scoped>
  21566. @media screen and (max-width: 1280px) {
  21567. /* .courseIndex > div:first-child(2) {
  21568. width: 15% !important;
  21569. } */
  21570. /* .navText {
  21571. width: 120px !important;
  21572. } */
  21573. .evaCss {
  21574. flex-direction: column !important;
  21575. align-items: center !important;
  21576. }
  21577. .elist_input {
  21578. width: 90% !important;
  21579. }
  21580. .dialog_diy1 >>> .el-dialog {
  21581. width: 100% !important;
  21582. }
  21583. .rightWidthCss {
  21584. width: 100% !important;
  21585. }
  21586. .dialog_diy3 >>> .el-dialog {
  21587. width: 100% !important;
  21588. }
  21589. .addToolCss {
  21590. right: 0 !important;
  21591. width: 100% !important;
  21592. min-width: unset !important;
  21593. }
  21594. }
  21595. .evaCssMax {
  21596. flex-direction: column !important;
  21597. align-items: center !important;
  21598. }
  21599. .dialog_diy >>> .el-dialog {
  21600. margin-top: 10vh !important;
  21601. }
  21602. .body_student {
  21603. width: 77%;
  21604. height: 100%;
  21605. position: absolute;
  21606. left: 22%;
  21607. top: 0;
  21608. }
  21609. .student_head {
  21610. width: 100%;
  21611. margin: 20px auto 0;
  21612. padding-bottom: 20px;
  21613. display: flex;
  21614. flex-direction: column;
  21615. flex-wrap: nowrap;
  21616. align-items: flex-start;
  21617. justify-content: flex-start;
  21618. }
  21619. .pb_left {
  21620. width: 20%;
  21621. margin-right: 10px;
  21622. background: rgb(255, 255, 255);
  21623. position: fixed;
  21624. height: calc(100% - 40px);
  21625. border-radius: 20px;
  21626. padding-bottom: 15px;
  21627. box-sizing: border-box;
  21628. }
  21629. .wheel > img,
  21630. .project > img,
  21631. .star > img,
  21632. .evaluate > img,
  21633. .up_photo > img,
  21634. .chapter_add > img,
  21635. .deleteWord > img,
  21636. .question > img,
  21637. .homework > img {
  21638. width: 100%;
  21639. height: 100%;
  21640. }
  21641. .upCover > img {
  21642. width: 131px;
  21643. height: 69px;
  21644. object-fit: cover;
  21645. }
  21646. .upCover {
  21647. width: calc(100% / 3.5);
  21648. position: relative;
  21649. margin: 0 15px 10px 0;
  21650. display: flex;
  21651. flex-direction: column;
  21652. flex-wrap: nowrap;
  21653. justify-content: center;
  21654. align-content: center;
  21655. align-items: center;
  21656. height: fit-content;
  21657. }
  21658. .upCover2 {
  21659. width: 100%;
  21660. position: relative;
  21661. margin: 0 15px 10px 0;
  21662. display: flex;
  21663. flex-direction: column;
  21664. flex-wrap: nowrap;
  21665. justify-content: center;
  21666. align-content: center;
  21667. align-items: center;
  21668. }
  21669. .upCover2 > img {
  21670. width: 100%;
  21671. height: 90px;
  21672. object-fit: contain;
  21673. }
  21674. .chapter_add {
  21675. width: 120px;
  21676. position: relative;
  21677. text-align: center;
  21678. }
  21679. .isAddThings {
  21680. margin-top: 20px;
  21681. position: relative;
  21682. text-align: center;
  21683. background: #f7f8fa;
  21684. height: 90px;
  21685. width: 90px;
  21686. display: flex;
  21687. flex-direction: column;
  21688. justify-content: center;
  21689. }
  21690. .deleteWord {
  21691. width: 22px;
  21692. height: 22px;
  21693. position: absolute;
  21694. right: -5px;
  21695. top: -5px;
  21696. cursor: pointer;
  21697. }
  21698. .box_course {
  21699. /* width: 60%; */
  21700. width: calc(100% - 300px);
  21701. }
  21702. .wheel {
  21703. width: 100%;
  21704. /* height: 100%; */
  21705. height: 650px;
  21706. }
  21707. .right_box {
  21708. display: flex;
  21709. flex-direction: column;
  21710. margin-left: 30px;
  21711. justify-content: space-around;
  21712. }
  21713. .right_box_title {
  21714. font-size: 23px;
  21715. }
  21716. .people {
  21717. display: flex;
  21718. }
  21719. .student_body {
  21720. width: 100%;
  21721. margin: 0 auto;
  21722. margin-top: 10px;
  21723. padding: 0 0 20px;
  21724. }
  21725. .study_top {
  21726. margin-top: 100px;
  21727. width: 100%;
  21728. height: auto;
  21729. padding-bottom: 20px;
  21730. margin-left: 2px;
  21731. min-height: 90%;
  21732. }
  21733. .study_top .checkbox {
  21734. display: flex;
  21735. align-items: center;
  21736. padding: 15px 0 15px 30px;
  21737. flex: 0 0 auto;
  21738. font-weight: bold;
  21739. border-bottom: 1px solid #eee;
  21740. }
  21741. .study_top .check {
  21742. padding-bottom: 5px;
  21743. text-align: center;
  21744. cursor: pointer;
  21745. height: 30px;
  21746. box-sizing: border-box;
  21747. display: flex;
  21748. }
  21749. .study_top .checked {
  21750. border-bottom: 4px solid #3fc6a0;
  21751. padding-bottom: 5px;
  21752. color: #3fc6a0;
  21753. display: flex;
  21754. height: 35px;
  21755. }
  21756. .study_top .checked > div,
  21757. .study_top .check > div {
  21758. margin-right: 5px;
  21759. }
  21760. .videoTop {
  21761. display: flex;
  21762. flex-direction: row;
  21763. justify-content: space-between;
  21764. background: #fff;
  21765. align-items: center;
  21766. width: 95%;
  21767. padding: 20px;
  21768. }
  21769. .filebox {
  21770. display: flex;
  21771. flex-wrap: wrap;
  21772. flex-direction: column;
  21773. padding: 0 0 5px;
  21774. position: relative;
  21775. }
  21776. .filebox:before {
  21777. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21778. position: absolute;
  21779. top: 20px;
  21780. left: 13px;
  21781. border-left: 2px dotted #cad1dc;
  21782. height: calc(100% - 15px);
  21783. }
  21784. .toolHeng2 > div:last-child::before {
  21785. height: calc(100% - 43px);
  21786. }
  21787. .filebox .tooldetail {
  21788. width: calc(100%);
  21789. margin: 0px 12px;
  21790. padding: 12px;
  21791. line-height: 30px;
  21792. word-break: break-word;
  21793. background: #ffffff;
  21794. border-radius: 8px 8px 8px 8px;
  21795. opacity: 1;
  21796. border: 1px solid #cad1dc;
  21797. overflow:hidden;
  21798. box-sizing:border-box;
  21799. }
  21800. .pb_content >>> .katex {
  21801. font-size: 16px;
  21802. }
  21803. .file {
  21804. display: flex;
  21805. flex-direction: column;
  21806. align-items: center;
  21807. justify-content: center;
  21808. cursor: pointer;
  21809. width: 200px;
  21810. }
  21811. .file div {
  21812. margin-top: 10px;
  21813. width: 150px;
  21814. text-align: center;
  21815. overflow: hidden;
  21816. white-space: nowrap;
  21817. text-overflow: ellipsis;
  21818. }
  21819. .media {
  21820. display: flex;
  21821. flex-direction: column;
  21822. align-items: center;
  21823. justify-content: center;
  21824. margin: 0 20px 20px 0;
  21825. cursor: pointer;
  21826. margin: 12px 0 5px 15px;
  21827. overflow: hidden;
  21828. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21829. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21830. box-sizing: border-box;
  21831. }
  21832. .media img {
  21833. height: 90px;
  21834. width: 160px;
  21835. object-fit: cover;
  21836. }
  21837. .media .title {
  21838. padding: 5px;
  21839. text-align: left;
  21840. width: 100%;
  21841. box-sizing: border-box;
  21842. }
  21843. .media .btn {
  21844. width: 100%;
  21845. height: 35px;
  21846. line-height: 35px;
  21847. color: #fff;
  21848. background: #606060;
  21849. text-align: center;
  21850. overflow: hidden;
  21851. white-space: nowrap;
  21852. text-overflow: ellipsis;
  21853. }
  21854. .detail_content_top {
  21855. width: 100%;
  21856. padding: 25px 0 25px 0;
  21857. }
  21858. .detail_title {
  21859. text-align: center;
  21860. font-size: 24px;
  21861. }
  21862. .detail_time {
  21863. font-size: 13px;
  21864. padding: 15px 0 0 40px;
  21865. }
  21866. .detail_content {
  21867. line-height: 2pc;
  21868. width: 90%;
  21869. margin: 0 auto;
  21870. padding-top: 30px;
  21871. text-indent: 30px;
  21872. overflow: auto;
  21873. height: 200px;
  21874. }
  21875. .score_box >>> .el-rate {
  21876. margin-left: 10px;
  21877. }
  21878. .dialog_change >>> .el-dialog {
  21879. border-radius: 5px;
  21880. }
  21881. .dialog_change >>> .el-dialog__header {
  21882. background: #f2f2f2;
  21883. text-align: center;
  21884. }
  21885. .dialog_change >>> .el-dialog__title {
  21886. line-height: 5px;
  21887. }
  21888. .dialog_change >>> .el-dialog__body {
  21889. background: #fff;
  21890. padding: 10px 20px;
  21891. }
  21892. .score_box {
  21893. display: flex;
  21894. align-items: center;
  21895. margin-bottom: 18px;
  21896. margin-top: 20px;
  21897. }
  21898. .up_photo {
  21899. width: 120px;
  21900. cursor: pointer;
  21901. margin-top: 10px;
  21902. }
  21903. .up_photo2 {
  21904. width: 180px;
  21905. box-sizing: border-box;
  21906. min-width: 180px;
  21907. height: 180px;
  21908. max-height: 180px;
  21909. min-height: 180px;
  21910. cursor: pointer;
  21911. display: flex;
  21912. flex-direction: column;
  21913. align-items: center;
  21914. justify-content: center;
  21915. background: rgb(242, 246, 255);
  21916. /* padding: 25px; */
  21917. margin-bottom: 10px;
  21918. }
  21919. .up_photo2 img {
  21920. width: 50%;
  21921. height: auto;
  21922. }
  21923. .up_photo2 span {
  21924. color: #898989;
  21925. }
  21926. .plworkBox {
  21927. display: flex;
  21928. align-items: center;
  21929. margin-top: 10px;
  21930. flex-wrap: wrap;
  21931. }
  21932. .upload_send {
  21933. margin: 30px auto 30px;
  21934. width: 60%;
  21935. background: #3681fc;
  21936. text-align: center;
  21937. height: 35px;
  21938. line-height: 35px;
  21939. color: #fff;
  21940. border-radius: 5px;
  21941. cursor: pointer;
  21942. }
  21943. .marginT {
  21944. margin-top: 20px;
  21945. }
  21946. .cd_content_steps {
  21947. display: flex;
  21948. width: 90%;
  21949. justify-content: space-around;
  21950. border-top: 1px solid #eeeeee;
  21951. }
  21952. .cd_steps_box {
  21953. display: flex;
  21954. justify-content: center;
  21955. align-items: center;
  21956. flex-direction: column;
  21957. cursor: pointer;
  21958. }
  21959. .first {
  21960. display: flex;
  21961. align-items: center;
  21962. margin: 15px 0 20px 0;
  21963. font-size: 20px;
  21964. }
  21965. .first > div:nth-child(2) {
  21966. font-size: 16px !important;
  21967. padding-left: 10px;
  21968. line-height: 26px;
  21969. box-sizing: border-box;
  21970. }
  21971. .blue_box_one {
  21972. text-align: center;
  21973. color: #fff;
  21974. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21975. border-radius: 7px;
  21976. margin: 10px;
  21977. cursor: pointer;
  21978. width: 95%;
  21979. height: 45px;
  21980. display: flex;
  21981. flex-direction: row;
  21982. justify-content: flex-start;
  21983. align-items: center;
  21984. }
  21985. .blue_box_one > div:nth-child(1) {
  21986. line-height: 30px;
  21987. margin: 0 5px 0 10px;
  21988. width: 30%;
  21989. min-width: 70px;
  21990. border-radius: 4px;
  21991. }
  21992. .blue_box_one > div:nth-child(2) {
  21993. white-space: nowrap;
  21994. text-overflow: ellipsis;
  21995. overflow: hidden;
  21996. word-break: break-all;
  21997. width: 70%;
  21998. text-align: left;
  21999. margin-right: 10px;
  22000. max-width: calc(100% - 85px);
  22001. }
  22002. .blue_box_one > div:nth-child(2):hover {
  22003. overflow: hidden;
  22004. text-overflow: ellipsis;
  22005. white-space: nowrap;
  22006. cursor: pointer;
  22007. }
  22008. .upFile {
  22009. margin: 0 auto;
  22010. width: 120px;
  22011. background: #3681fc;
  22012. color: #fff;
  22013. height: 30px;
  22014. text-align: center;
  22015. line-height: 30px;
  22016. border-radius: 5px;
  22017. font-size: 14px;
  22018. cursor: pointer;
  22019. }
  22020. .courseTitle {
  22021. width: 85%;
  22022. margin: 10px auto 26px auto;
  22023. display: flex;
  22024. flex-direction: row;
  22025. align-items: center;
  22026. justify-content: space-between;
  22027. text-align: center;
  22028. }
  22029. .courseTitle .ctitle {
  22030. font-size: 20px;
  22031. font-weight: bold;
  22032. color: #0e1e33;
  22033. white-space: nowrap;
  22034. overflow: hidden;
  22035. text-overflow: ellipsis;
  22036. }
  22037. .inviteBox {
  22038. font-size: 14px;
  22039. /* margin-top: 5px; */
  22040. color: #00000099;
  22041. text-align: center;
  22042. }
  22043. .courseTitle >>> .el-tooltip {
  22044. width: 100%;
  22045. white-space: nowrap;
  22046. overflow: hidden;
  22047. text-overflow: ellipsis;
  22048. word-break: break-word;
  22049. }
  22050. .ml {
  22051. margin-left: 20px;
  22052. color: #5b7dba;
  22053. border-left: 3px solid #5b7dba;
  22054. padding-left: 5px;
  22055. font-weight: bold;
  22056. }
  22057. .return {
  22058. width: 2rem;
  22059. height: 2rem;
  22060. cursor: pointer;
  22061. }
  22062. .return > img {
  22063. width: 100%;
  22064. height: 100%;
  22065. }
  22066. .returnBtn {
  22067. width: 86px;
  22068. height: 36px;
  22069. background: #3681fc;
  22070. border-radius: 4px;
  22071. color: #fff;
  22072. text-align: center;
  22073. line-height: 36px;
  22074. margin-right: 20px;
  22075. cursor: pointer;
  22076. font-size: 14px;
  22077. font-weight: 400;
  22078. display: flex;
  22079. flex-direction: row;
  22080. flex-wrap: nowrap;
  22081. align-items: center;
  22082. justify-content: center;
  22083. }
  22084. .reBtnIcon,
  22085. .commentIcon,
  22086. .vedioIcon,
  22087. .vedioIcon1 {
  22088. /* width: 36px; */
  22089. height: 36px;
  22090. border-radius: 4px;
  22091. position: relative;
  22092. /* background: #e0eafb; */
  22093. background: #0061ff;
  22094. cursor: pointer;
  22095. margin-right: 12px;
  22096. display: flex;
  22097. align-items: center;
  22098. padding: 0 10px;
  22099. box-sizing: border-box;
  22100. font-size: 14px;
  22101. color: #fff;
  22102. }
  22103. .reBtnIcon::before,
  22104. .commentIcon::before,
  22105. .vedioIcon::before,
  22106. .vedioIcon1::before {
  22107. content: "";
  22108. display: block;
  22109. background-size: 100% 100%;
  22110. background-repeat: no-repeat;
  22111. width: 20px;
  22112. height: 20px;
  22113. margin-right: 5px;
  22114. /* position: absolute; */
  22115. /* top: 8px;
  22116. left: 8px; */
  22117. }
  22118. .vedioIcon1 {
  22119. background: #f63564;
  22120. }
  22121. .reBtnIcon::before {
  22122. background-image: url("../../assets/icon/newIcons/refresh.png");
  22123. }
  22124. .commentIcon::before {
  22125. background-image: url("../../assets/icon/newIcons/comment.png");
  22126. }
  22127. .vedioIcon::before {
  22128. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22129. }
  22130. .vedioIcon1::before {
  22131. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22132. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22133. }
  22134. .tool {
  22135. display: flex;
  22136. flex-direction: column;
  22137. flex-wrap: nowrap;
  22138. width: 13%;
  22139. margin: 0 30px;
  22140. align-items: center;
  22141. position: relative;
  22142. padding: 10px 25px;
  22143. cursor: pointer;
  22144. }
  22145. .whiteBIcon {
  22146. width: 150px;
  22147. }
  22148. .whiteBIcon > img {
  22149. width: 100%;
  22150. height: 100%;
  22151. }
  22152. .mask {
  22153. background-color: rgba(0, 0, 0, 0);
  22154. position: fixed;
  22155. top: 0;
  22156. left: 0;
  22157. width: 100%;
  22158. height: 100%;
  22159. z-index: 20000;
  22160. display: flex;
  22161. align-items: center;
  22162. justify-content: center;
  22163. }
  22164. .progressBox {
  22165. width: 500px;
  22166. height: 180px;
  22167. background: #fff;
  22168. border-radius: 10px;
  22169. box-shadow: 0 0 6px 1px #bfbfbf;
  22170. display: flex;
  22171. align-items: center;
  22172. justify-content: center;
  22173. flex-direction: column;
  22174. position: relative;
  22175. color: #6c6c6c;
  22176. }
  22177. .progressBox >>> .el-progress-bar__outer {
  22178. background-color: #d1dfff !important;
  22179. }
  22180. .progressBox .lbox {
  22181. height: 50px;
  22182. font-size: 19px;
  22183. display: flex;
  22184. align-items: center;
  22185. color: #747474;
  22186. }
  22187. .progressBox .lbox img {
  22188. width: 40px;
  22189. margin-right: 20px;
  22190. }
  22191. .closeCss {
  22192. position: absolute;
  22193. top: 8px;
  22194. right: 8px;
  22195. cursor: pointer;
  22196. width: 20px;
  22197. height: 20px;
  22198. }
  22199. .closeCss > img {
  22200. width: 100%;
  22201. height: 100%;
  22202. }
  22203. .uploadVedio {
  22204. display: flex;
  22205. flex-direction: column;
  22206. flex-wrap: nowrap;
  22207. justify-content: center;
  22208. align-items: center;
  22209. margin: 0 15px 10px 0;
  22210. }
  22211. .uploadVedio > img {
  22212. width: 30px;
  22213. height: 30px;
  22214. }
  22215. .uploadVedio > span {
  22216. white-space: nowrap;
  22217. overflow: hidden;
  22218. text-overflow: ellipsis;
  22219. width: 75px;
  22220. margin-top: 7px;
  22221. }
  22222. .picName {
  22223. white-space: nowrap;
  22224. overflow: hidden;
  22225. text-overflow: ellipsis;
  22226. width: 75px;
  22227. margin-top: 7px;
  22228. }
  22229. .new_top {
  22230. display: flex;
  22231. background: #fff;
  22232. flex-direction: row;
  22233. justify-content: flex-start;
  22234. align-items: center;
  22235. height: 60px;
  22236. position: fixed;
  22237. top: 20px;
  22238. left: 22%;
  22239. width: 77%;
  22240. z-index: 999;
  22241. border-radius: 12px 12px 0 0;
  22242. border-bottom: 1px solid #cad1dc;
  22243. padding: 10px 0;
  22244. }
  22245. .new_topFixed {
  22246. width: 100%;
  22247. height: 40px;
  22248. position: fixed;
  22249. top: 0px;
  22250. display: block;
  22251. background: #f2f2f2;
  22252. z-index: 998;
  22253. }
  22254. .before {
  22255. position: absolute;
  22256. background: #c3dad4;
  22257. width: 6px;
  22258. height: 100%;
  22259. }
  22260. .courseIndex {
  22261. display: flex;
  22262. flex-direction: row;
  22263. align-items: center;
  22264. width: calc(100% - 745px);
  22265. }
  22266. .courseIndex > div:nth-child(1) {
  22267. margin: 0 0 0 10px;
  22268. font-size: 20px;
  22269. min-width: 100px;
  22270. font-weight: bold;
  22271. border-left: 4px solid #3363b9;
  22272. height: 32px;
  22273. text-align: center;
  22274. line-height: 35px;
  22275. }
  22276. .courseIndex > div:nth-child(2) {
  22277. font-size: 20px;
  22278. /* width: 300px; */
  22279. max-width: calc(100% - 105px);
  22280. white-space: nowrap;
  22281. overflow: hidden;
  22282. text-overflow: ellipsis;
  22283. }
  22284. .courseIndex > div:nth-child(3) {
  22285. border-bottom: 1px solid #d7d7d7;
  22286. padding-bottom: 5px;
  22287. background: #3681fc;
  22288. width: 55px;
  22289. min-width: 55px;
  22290. border-radius: 5px;
  22291. color: #fff;
  22292. text-align: center;
  22293. height: 20px;
  22294. line-height: 26px;
  22295. font-size: 14px;
  22296. margin: 0 0 0 10px;
  22297. }
  22298. .course_text {
  22299. padding: 20px 0 0 15px;
  22300. text-indent: 30px;
  22301. width: 80%;
  22302. min-height: 20px;
  22303. }
  22304. .vedioList {
  22305. background: #f2f2f2;
  22306. border: 1px solid #ececec;
  22307. /* width: 38.8%; */
  22308. /* width: 300px; */
  22309. width: 100%;
  22310. height: 445px;
  22311. border-radius: 10px;
  22312. overflow: hidden;
  22313. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22314. }
  22315. .vedioNav {
  22316. margin: 10px 0 0 15px;
  22317. border-bottom: 1px solid #d7d7d7;
  22318. padding-bottom: 5px;
  22319. background: #3681fc;
  22320. width: 55px;
  22321. min-width: 55px;
  22322. border-radius: 5px;
  22323. color: #fff;
  22324. text-align: center;
  22325. height: 20px;
  22326. line-height: 26px;
  22327. font-size: 14px;
  22328. }
  22329. .queTop {
  22330. display: flex;
  22331. padding: 20px 0 20px 30px;
  22332. width: 100%;
  22333. flex-direction: row;
  22334. justify-content: flex-start;
  22335. align-items: center;
  22336. box-sizing: border-box;
  22337. }
  22338. .queTopTitle {
  22339. display: flex;
  22340. flex-direction: row;
  22341. flex-wrap: nowrap;
  22342. align-items: center;
  22343. font-weight: bold;
  22344. font-size: 20px;
  22345. color: rgb(14, 30, 51);
  22346. }
  22347. .queTopTitle::before {
  22348. content: "";
  22349. width: 2px;
  22350. height: 22px;
  22351. background: #3681fc;
  22352. border-radius: 3px;
  22353. display: block;
  22354. margin: 2px 6px 0 0;
  22355. }
  22356. .queTopRight {
  22357. display: flex;
  22358. flex-direction: row;
  22359. flex-wrap: nowrap;
  22360. align-items: center;
  22361. }
  22362. .queTopClose {
  22363. margin-right: 20px;
  22364. cursor: pointer;
  22365. position: relative;
  22366. display: flex;
  22367. }
  22368. .closeImg,
  22369. .openImg {
  22370. width: 25px;
  22371. height: 25px;
  22372. position: absolute;
  22373. left: -20px;
  22374. top: -1px;
  22375. }
  22376. .closeImg > img,
  22377. .openImg > img {
  22378. width: 100%;
  22379. height: 100%;
  22380. }
  22381. .question {
  22382. width: 40px;
  22383. margin-right: 10px;
  22384. margin-top: 7px;
  22385. }
  22386. .queTitle {
  22387. margin-left: 5px;
  22388. font-size: 25px;
  22389. display: flex;
  22390. align-items: center;
  22391. }
  22392. .addEditor {
  22393. width: 100px;
  22394. height: 30px;
  22395. background: #42cda6;
  22396. color: #fff;
  22397. border-radius: 5px;
  22398. text-align: center;
  22399. line-height: 30px;
  22400. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22401. cursor: pointer;
  22402. }
  22403. /* .vedioName {
  22404. cursor: pointer;
  22405. margin: 0px 0px 10px 5px;
  22406. white-space: nowrap;
  22407. overflow: hidden;
  22408. text-overflow: ellipsis;
  22409. width: 100%;
  22410. } */
  22411. .vedioTime {
  22412. width: 35px;
  22413. position: absolute;
  22414. color: #fff;
  22415. bottom: 0px;
  22416. right: 0px;
  22417. text-align: center;
  22418. background: #46411f;
  22419. height: 20px;
  22420. font-size: 14px;
  22421. line-height: 20px;
  22422. }
  22423. .homework {
  22424. width: 200px;
  22425. display: flex;
  22426. flex-direction: column;
  22427. flex-wrap: nowrap;
  22428. align-items: center;
  22429. cursor: pointer;
  22430. }
  22431. .homebox {
  22432. display: flex;
  22433. flex-wrap: wrap;
  22434. flex-direction: row;
  22435. justify-content: flex-start;
  22436. align-items: center;
  22437. padding: 15px 0;
  22438. }
  22439. .isChooseActive {
  22440. color: #3681fc !important;
  22441. font-weight: bold !important;
  22442. }
  22443. .chooseWho {
  22444. display: flex;
  22445. width: 100%;
  22446. flex-direction: row;
  22447. flex-wrap: nowrap;
  22448. justify-content: flex-start;
  22449. padding-bottom: 10px;
  22450. }
  22451. .chooseWho > div {
  22452. cursor: pointer;
  22453. padding-bottom: 10px;
  22454. margin: 0 30px 0 0;
  22455. font-weight: 400;
  22456. color: #0e1e33;
  22457. }
  22458. .addPoint > div > img {
  22459. cursor: pointer;
  22460. width: 85px;
  22461. border-radius: 15px;
  22462. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22463. }
  22464. .addPoint > div {
  22465. display: flex;
  22466. flex-direction: column;
  22467. flex-wrap: nowrap;
  22468. align-items: center;
  22469. }
  22470. .isBorder > div {
  22471. margin: 0 0 10px 0;
  22472. align-items: flex-start !important;
  22473. }
  22474. .noiframeBox {
  22475. display: flex;
  22476. flex-wrap: wrap;
  22477. }
  22478. .iframeBox iframe {
  22479. width: 100%;
  22480. height: 800px;
  22481. border: none;
  22482. margin-bottom: 20px;
  22483. border: 1px solid #ccc;
  22484. }
  22485. .upload_toolBtn {
  22486. background: #3681fc;
  22487. color: #fff;
  22488. width: 110px;
  22489. text-align: center;
  22490. height: 35px;
  22491. line-height: 35px;
  22492. font-size: 14px;
  22493. border-radius: 5px;
  22494. cursor: pointer;
  22495. position: absolute;
  22496. right: 10px;
  22497. bottom: 0;
  22498. }
  22499. .binfo_input,
  22500. .pj {
  22501. font: inherit;
  22502. color: currentColor;
  22503. width: 100%;
  22504. margin: 0;
  22505. padding: 15px 14px;
  22506. display: block;
  22507. min-width: 0;
  22508. outline: none;
  22509. box-sizing: content-box;
  22510. background: none;
  22511. -webkit-tap-highlight-color: transparent;
  22512. border: 1px solid rgba(0, 0, 0, 0.23);
  22513. border-radius: 4px;
  22514. box-sizing: border-box;
  22515. resize: none;
  22516. }
  22517. .binfo_input:focus-visible {
  22518. border: 1px solid rgba(61, 103, 188);
  22519. }
  22520. .dialog_diy >>> .el-dialog__header,
  22521. .dialog_diy1 >>> .el-dialog__header {
  22522. background: #454545 !important;
  22523. padding: 15px 20px;
  22524. }
  22525. .dialog_diy >>> .el-dialog__title,
  22526. .dialog_diy1 >>> .el-dialog__title {
  22527. color: #fff;
  22528. }
  22529. .dialog_diy >>> .el-dialog__headerbtn,
  22530. .dialog_diy1 >>> .el-dialog__headerbtn {
  22531. top: 19px;
  22532. }
  22533. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22534. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22535. color: #fff;
  22536. }
  22537. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22538. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22539. color: #fff;
  22540. }
  22541. .dialog_diy1 >>> .el-dialog__body {
  22542. padding: 0;
  22543. }
  22544. .dialog_diy >>> .el-dialog__body,
  22545. .dialog_diy >>> .el-dialog__footer,
  22546. .dialog_diy1 >>> .el-dialog__footer {
  22547. background: #fafafa;
  22548. }
  22549. .a_addBox {
  22550. padding: 0 0 0 15px;
  22551. }
  22552. .a_add_box {
  22553. padding: 10px;
  22554. background: #fff;
  22555. margin-bottom: 10px;
  22556. border-radius: 5px;
  22557. box-shadow: 0 0 5px 0 #d5d5d5;
  22558. }
  22559. .a_add_head {
  22560. display: flex;
  22561. align-items: flex-start;
  22562. /* justify-content: space-between; */
  22563. flex-direction: column;
  22564. /* flex-direction: row; */
  22565. margin: 10px 0 20px 0;
  22566. font-size: 18px;
  22567. width: 100%;
  22568. }
  22569. .askIndex {
  22570. background: #3681fc;
  22571. border-radius: 50%;
  22572. color: #fff;
  22573. width: 25px;
  22574. height: 25px;
  22575. min-width: 25px;
  22576. min-height: 25px;
  22577. text-align: center;
  22578. line-height: 25px;
  22579. margin-right: 5px;
  22580. }
  22581. .a_add_head .a_add_head_input {
  22582. width: 300px;
  22583. }
  22584. .a_add_head .a_add_head_div {
  22585. display: flex;
  22586. align-items: center;
  22587. justify-content: space-between;
  22588. }
  22589. .a_add_body {
  22590. display: flex;
  22591. align-items: center;
  22592. }
  22593. .a_add_input {
  22594. display: flex;
  22595. align-items: center;
  22596. flex-wrap: wrap;
  22597. width: 100%;
  22598. }
  22599. .a_add_input >>> .el-radio-group,
  22600. .a_add_input >>> .el-checkbox-group {
  22601. width: 100%;
  22602. }
  22603. .a_add_input >>> .el-radio,
  22604. .a_add_input >>> .el-checkbox {
  22605. display: flex;
  22606. flex-direction: row;
  22607. flex-wrap: nowrap;
  22608. align-items: center;
  22609. padding: 15px 0;
  22610. }
  22611. .a_add_input >>> .el-radio:not(:last-child),
  22612. .a_add_input >>> .el-checkbox:not(:last-child) {
  22613. width: 100%;
  22614. border-bottom: 1px solid #efefef;
  22615. }
  22616. .redioStyle >>> .el-radio__label {
  22617. font-size: 18px;
  22618. }
  22619. .redioStyle >>> .el-radio__label > span,
  22620. .redioStyle >>> .el-checkbox__label > span {
  22621. word-break: break-all;
  22622. white-space: normal;
  22623. }
  22624. .redioStyle >>> .el-checkbox__label {
  22625. font-size: 18px;
  22626. }
  22627. .toolHeng2 {
  22628. width: 100%;
  22629. padding-left: 15px;
  22630. box-sizing: border-box;
  22631. }
  22632. .workNav {
  22633. font-size: 20px;
  22634. font-weight: bold;
  22635. color: #0e1e33;
  22636. display: flex;
  22637. flex-direction: row;
  22638. flex-wrap: nowrap;
  22639. align-items: center;
  22640. padding: 15px 0 15px 0;
  22641. }
  22642. .workNav::before {
  22643. content: "";
  22644. width: 2px;
  22645. height: 22px;
  22646. background: #3681fc;
  22647. border-radius: 3px;
  22648. display: block;
  22649. margin: 2px 6px 0 0;
  22650. }
  22651. .toolHeng {
  22652. display: flex;
  22653. flex-direction: row;
  22654. flex-wrap: wrap;
  22655. justify-content: flex-start;
  22656. align-items: center;
  22657. width: 100%;
  22658. }
  22659. .toolHeng > div {
  22660. padding-left: 20px;
  22661. }
  22662. .isWidth {
  22663. width: 20%;
  22664. }
  22665. .textTitle {
  22666. display: flex;
  22667. flex-direction: row;
  22668. flex-wrap: nowrap;
  22669. align-items: center;
  22670. width: 95%;
  22671. }
  22672. .textTitle >>> .el-form-item__label {
  22673. font-size: 22px;
  22674. color: #918f8f;
  22675. width: 100px;
  22676. }
  22677. .textTitle >>> .el-form-item__content {
  22678. width: calc(100% - 100px);
  22679. }
  22680. .textCss >>> .el-dialog {
  22681. width: 800px !important;
  22682. height: 400px;
  22683. background: #fafafa;
  22684. }
  22685. .textCss >>> .el-dialog__body {
  22686. margin: 55px 8% 0 8%;
  22687. padding: 0 !important;
  22688. }
  22689. .textCss >>> .el-dialog__footer {
  22690. padding-top: 38px;
  22691. }
  22692. .toolsCss >>> .el-dialog__body {
  22693. padding: 20px;
  22694. }
  22695. .lineCss >>> .el-dialog__body {
  22696. display: flex;
  22697. flex-direction: row;
  22698. align-items: center;
  22699. justify-content: center;
  22700. }
  22701. .newNav {
  22702. display: flex;
  22703. flex-direction: row;
  22704. align-items: baseline;
  22705. justify-content: flex-start;
  22706. }
  22707. .navListItem {
  22708. width: calc(100% - 20px);
  22709. height: 50px;
  22710. margin: 0px auto 10px;
  22711. display: flex;
  22712. flex-direction: row;
  22713. flex-wrap: nowrap;
  22714. align-items: center;
  22715. justify-content: space-between;
  22716. background: #f0f4fa;
  22717. border-radius: 6px 6px 6px 6px;
  22718. }
  22719. .navText {
  22720. cursor: pointer;
  22721. white-space: nowrap;
  22722. overflow: hidden;
  22723. text-overflow: ellipsis;
  22724. width: 220px;
  22725. padding: 0 10px;
  22726. font-weight: 400;
  22727. color: #0e1e33;
  22728. }
  22729. .downIcon {
  22730. width: 20px;
  22731. min-width: 20px;
  22732. height: 20px;
  22733. margin-right: 15px;
  22734. cursor: pointer;
  22735. }
  22736. .downIcon > img {
  22737. width: 100%;
  22738. height: 100%;
  22739. }
  22740. .noVedio {
  22741. display: flex;
  22742. flex-direction: row;
  22743. justify-content: center;
  22744. align-content: center;
  22745. }
  22746. .noNavText {
  22747. cursor: pointer;
  22748. margin: 0px 0px 10px 5px;
  22749. width: 112px;
  22750. }
  22751. .listNoVedio {
  22752. margin: 0 0 0 30px;
  22753. width: 97%;
  22754. }
  22755. .video-player >>> .video-js {
  22756. height: 100%;
  22757. }
  22758. .hangVedioList {
  22759. width: 90% !important;
  22760. height: 150px !important;
  22761. margin: 20px 0 0 30px;
  22762. }
  22763. .hangVedio {
  22764. width: 100%;
  22765. height: 170px !important;
  22766. align-items: flex-start !important;
  22767. }
  22768. .hangHand {
  22769. height: 150px !important;
  22770. }
  22771. .twoChild {
  22772. width: 95%;
  22773. margin: 10px;
  22774. border-radius: 5px;
  22775. background: #f2f2f2;
  22776. display: flex;
  22777. flex-direction: column;
  22778. flex-wrap: nowrap;
  22779. justify-content: flex-start;
  22780. align-items: flex-start;
  22781. transition: all 0.5s;
  22782. overflow: hidden;
  22783. height: 0;
  22784. background: #e7f3ff;
  22785. }
  22786. .twoChild > div:nth-child(1) {
  22787. margin-top: 5px;
  22788. }
  22789. .navChild {
  22790. width: 100%;
  22791. cursor: pointer;
  22792. margin-bottom: 10px;
  22793. position: relative;
  22794. }
  22795. .navChild img {
  22796. position: absolute;
  22797. right: 11px;
  22798. width: 15px;
  22799. top: 50%;
  22800. transform: translateY(-50%);
  22801. }
  22802. .navActive,
  22803. .toolActive {
  22804. height: auto !important;
  22805. overflow: auto !important;
  22806. /* padding-bottom: 16px; */
  22807. }
  22808. .toolActive {
  22809. padding: 0;
  22810. }
  22811. .navTask {
  22812. display: flex;
  22813. flex-direction: row;
  22814. flex-wrap: nowrap;
  22815. align-items: center;
  22816. align-content: flex-start;
  22817. height: 40px;
  22818. justify-content: flex-start;
  22819. padding: 0 10px;
  22820. width: 100%;
  22821. box-sizing: border-box;
  22822. }
  22823. .navTaskname {
  22824. white-space: nowrap;
  22825. text-overflow: ellipsis;
  22826. overflow: hidden;
  22827. word-break: break-all;
  22828. padding-left: 5px;
  22829. }
  22830. .openTaskActive {
  22831. /* background-color: #e0eafb !important;
  22832. color: #0061ff; */
  22833. color:#fff;
  22834. background: rgb(55, 129, 252) !important;
  22835. }
  22836. .iframeName {
  22837. margin: 5px 0;
  22838. border-left: 4px solid #41c4a4;
  22839. padding-left: 4px;
  22840. }
  22841. .toolTitle {
  22842. margin: 0px 0px 20px;
  22843. font-size: 20px;
  22844. font-weight: 500;
  22845. border-left: 4px solid #41c4a4;
  22846. padding-left: 4px;
  22847. }
  22848. .cru_selectBox {
  22849. overflow: auto;
  22850. width: 95%;
  22851. margin: 17px auto 0;
  22852. height: calc(100% - 40px - 21px - 20px - 17px);
  22853. background: #fff;
  22854. border-radius: 8px;
  22855. }
  22856. .cru_selectBox::-webkit-scrollbar,
  22857. .study_top::-webkit-scrollbar,
  22858. .textContent::-webkit-scrollbar {
  22859. /*滚动条整体样式*/
  22860. width: 6px;
  22861. /*高宽分别对应横竖滚动条的尺寸*/
  22862. height: 6px;
  22863. }
  22864. /*定义滚动条轨道 内阴影+圆角*/
  22865. .cru_selectBox::-webkit-scrollbar-track,
  22866. .study_top::-webkit-scrollbar-track,
  22867. .textContent::-webkit-scrollbar {
  22868. border-radius: 10px;
  22869. background-color: #b8bdc9;
  22870. }
  22871. /*定义滑块 内阴影+圆角*/
  22872. .cru_selectBox::-webkit-scrollbar-thumb,
  22873. .study_top::-webkit-scrollbar-thumb,
  22874. .textContent::-webkit-scrollbar-thumb {
  22875. border-radius: 10px;
  22876. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22877. background-color: #2c5ab3;
  22878. }
  22879. .vedioBox {
  22880. border-radius: 0 0 20px 20px;
  22881. background: #fff;
  22882. overflow: auto;
  22883. }
  22884. .taskBox {
  22885. width: 98%;
  22886. background: #f0f4fa;
  22887. margin: 10px auto;
  22888. padding: 0 10px;
  22889. border-radius: 4px;
  22890. box-sizing: border-box;
  22891. }
  22892. .vedioTaskBox {
  22893. width: 100%;
  22894. display: flex;
  22895. flex-direction: row;
  22896. flex-wrap: nowrap;
  22897. align-items: flex-start;
  22898. position: relative;
  22899. }
  22900. .toolBox {
  22901. margin: 15px 0 0 25px;
  22902. display: flex;
  22903. position: relative;
  22904. padding: 18px 20px;
  22905. border-top-left-radius: 5px;
  22906. border-top-right-radius: 5px;
  22907. width: 90%;
  22908. }
  22909. .btnAll {
  22910. position: absolute;
  22911. right: 0;
  22912. display: flex;
  22913. flex-direction: row;
  22914. flex-wrap: nowrap;
  22915. align-items: center;
  22916. }
  22917. .btnLeft,
  22918. .btnRight {
  22919. display: flex;
  22920. flex-direction: row;
  22921. flex-wrap: nowrap;
  22922. align-items: center;
  22923. padding: 5px 0;
  22924. }
  22925. .btnLeft {
  22926. border-right: 1px solid #cad1dc;
  22927. }
  22928. .btnLeft > .custom-tooltip {
  22929. background: #3681fc;
  22930. color: #fff;
  22931. }
  22932. .last:hover {
  22933. background: #3383fa !important;
  22934. color: #fff;
  22935. border: 1px solid #3383fa !important;
  22936. }
  22937. .last,
  22938. .returnBtn1 {
  22939. width: 90px;
  22940. height: 36px;
  22941. background: #ffffff;
  22942. border-radius: 4px;
  22943. border: 1px solid #0061ff;
  22944. color: #0061ff;
  22945. cursor: pointer;
  22946. display: flex;
  22947. flex-direction: row;
  22948. flex-wrap: nowrap;
  22949. align-items: center;
  22950. justify-content: center;
  22951. margin-left: 12px;
  22952. }
  22953. .returnBtn1 {
  22954. background: #f0f4fa;
  22955. border-radius: 4px;
  22956. border: 1px solid #cad1dc;
  22957. margin: 0 12px;
  22958. }
  22959. .lastImg {
  22960. min-width: 15px;
  22961. width: 15px;
  22962. height: 15px;
  22963. display: flex;
  22964. }
  22965. .lastText {
  22966. padding: 0 5px 0 5px;
  22967. box-sizing: border-box;
  22968. font-size: 14px;
  22969. }
  22970. .lastImg > img {
  22971. width: 100%;
  22972. height: 100%;
  22973. }
  22974. /* .vedioTimeBox {
  22975. display: flex;
  22976. flex-direction: row;
  22977. align-items: center;
  22978. flex-wrap: nowrap;
  22979. position: relative;
  22980. } */
  22981. .navBox {
  22982. background: #fff;
  22983. height: calc(100% - 40px);
  22984. overflow-y: auto;
  22985. overflow-x: hidden;
  22986. }
  22987. .worksBox {
  22988. margin: 0 0 10px 25px;
  22989. border-bottom: 1px solid #eeeeee;
  22990. padding: 18px 20px;
  22991. border-radius: 4px;
  22992. width: 90%;
  22993. }
  22994. .worksBTitle {
  22995. font-size: 20px;
  22996. padding-bottom: 15px;
  22997. border-bottom: 1px solid #eeeeee;
  22998. display: flex;
  22999. align-items: center;
  23000. }
  23001. .greenBox {
  23002. width: 5px;
  23003. height: 30px;
  23004. background: #63b6fa;
  23005. margin-right: 5px;
  23006. }
  23007. .worksDetailBox {
  23008. display: flex;
  23009. width: 100%;
  23010. flex-direction: row;
  23011. flex-wrap: wrap;
  23012. align-items: flex-end;
  23013. justify-content: flex-start;
  23014. padding: 15px 5px;
  23015. box-sizing: border-box;
  23016. }
  23017. .works {
  23018. display: flex;
  23019. flex-direction: column;
  23020. flex-wrap: nowrap;
  23021. align-items: flex-start;
  23022. justify-content: flex-start;
  23023. align-content: center;
  23024. max-width: 240px;
  23025. width: calc(100% / 3 - 10px);
  23026. height: auto;
  23027. margin-right: 10px;
  23028. margin-bottom: 10px;
  23029. overflow: hidden;
  23030. height: 140px;
  23031. box-shadow: 0 0 6px 1px #dfdada;
  23032. border-radius: 15px;
  23033. }
  23034. .workImg {
  23035. width: 100%;
  23036. /* height: calc(100% - 40px); */
  23037. height: 105px;
  23038. position: relative;
  23039. }
  23040. .workImg > img {
  23041. width: 100%;
  23042. height: 100%;
  23043. object-fit: contain;
  23044. cursor: pointer;
  23045. }
  23046. .worksName {
  23047. height: 40px;
  23048. line-height: 40px;
  23049. display: flex;
  23050. width: 100%;
  23051. flex-direction: row;
  23052. flex-wrap: nowrap;
  23053. justify-content: space-between;
  23054. align-items: center;
  23055. margin: 0 0 0 10px;
  23056. }
  23057. .worksName > div:nth-child(1) {
  23058. width: 110px;
  23059. white-space: nowrap;
  23060. overflow: hidden;
  23061. text-overflow: ellipsis;
  23062. }
  23063. .worksName > div:nth-child(2) {
  23064. color: #b7b4b5;
  23065. }
  23066. .noWorksS {
  23067. padding: 15px 0;
  23068. display: flex;
  23069. flex-direction: row;
  23070. flex-wrap: wrap;
  23071. align-items: center;
  23072. justify-content: flex-start;
  23073. }
  23074. .noWorksName,
  23075. .isWorksName,
  23076. .isWorksName2 {
  23077. background: #ddebf8;
  23078. color: #000;
  23079. width: 90px;
  23080. height: 25px;
  23081. text-align: center;
  23082. line-height: 25px;
  23083. border-radius: 4px;
  23084. margin: 10px 15px 10px 0;
  23085. white-space: nowrap;
  23086. overflow: hidden;
  23087. padding: 5px;
  23088. text-overflow: ellipsis;
  23089. cursor: pointer;
  23090. border: 1px solid #ddebf8;
  23091. }
  23092. .noWorksName {
  23093. background: #fff;
  23094. color: #0061ff;
  23095. border: 1px solid #0061ff;
  23096. }
  23097. .noWorksName > span{
  23098. max-width: 100%;
  23099. display: block;
  23100. overflow: hidden;
  23101. text-overflow: ellipsis;
  23102. white-space: nowrap;
  23103. }
  23104. .isWorksName2 {
  23105. width: 100px;
  23106. height: 40px;
  23107. line-height: 40px;
  23108. position: relative;
  23109. background: #dae6f9;
  23110. }
  23111. .isWorksName {
  23112. background: #e7ebf1 !important;
  23113. width: 100px;
  23114. height: 40px;
  23115. line-height: 40px;
  23116. position: relative;
  23117. color: #acb4bf;
  23118. border: 1px solid #cad1dc !important;
  23119. }
  23120. .isSelectName,
  23121. .noWorksName:hover {
  23122. background: #3383fa !important;
  23123. color: #fff !important;
  23124. border: 1px solid #3383fa !important;
  23125. }
  23126. .title {
  23127. background: #1e5cc9;
  23128. /* width: 98%; */
  23129. height: 45px;
  23130. color: #fff;
  23131. line-height: 45px;
  23132. padding-left: 20px;
  23133. box-sizing: border-box;
  23134. }
  23135. .textBox {
  23136. font-size: 20px;
  23137. width: 90%;
  23138. display: flex;
  23139. flex-direction: column;
  23140. align-items: center;
  23141. margin: 20px auto 0;
  23142. max-height: calc(100% - 75px);
  23143. overflow: auto;
  23144. }
  23145. .textContent {
  23146. font-size: 18px;
  23147. width: 95%;
  23148. max-width: 95%;
  23149. }
  23150. .answerBg {
  23151. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23152. background-size: 100% 100%;
  23153. width: 100%;
  23154. height: 100%;
  23155. color: #fff;
  23156. text-align: center;
  23157. display: flex;
  23158. flex-direction: column;
  23159. flex-wrap: nowrap;
  23160. align-items: center;
  23161. position: relative;
  23162. justify-content: center;
  23163. }
  23164. /* .answerBg > div:nth-child(1) {
  23165. font-size: 22px;
  23166. padding: 25px 0 10px;
  23167. } */
  23168. .answerContent {
  23169. width: 215px;
  23170. max-height: 60px;
  23171. word-break: break-all;
  23172. text-align: center;
  23173. /* white-space: nowrap; */
  23174. overflow: hidden;
  23175. text-overflow: ellipsis;
  23176. /* padding: 23px 0 0; */
  23177. -webkit-line-clamp: 3;
  23178. -webkit-box-orient: vertical;
  23179. display: -webkit-box;
  23180. font-size: 15px;
  23181. cursor: pointer;
  23182. }
  23183. .elist_input_box {
  23184. display: flex;
  23185. align-items: flex-start;
  23186. flex-wrap: nowrap;
  23187. padding: 10px 0 15px 30px;
  23188. flex-direction: column;
  23189. }
  23190. .elist_input {
  23191. /* width: 40%; */
  23192. width: 45%;
  23193. margin: 20px;
  23194. }
  23195. .elist_input .elist_input_box input {
  23196. font: inherit;
  23197. color: currentColor;
  23198. width: 200px;
  23199. padding: 8px 14px;
  23200. display: block;
  23201. min-width: 0;
  23202. outline: none;
  23203. border: 1px solid rgba(0, 0, 0, 0.23);
  23204. border-radius: 4px;
  23205. box-sizing: border-box;
  23206. background: #fff;
  23207. margin: 0 20px 0 0;
  23208. }
  23209. .elist_input .elist_input_box span {
  23210. height: 36px;
  23211. line-height: 36px;
  23212. color: rgb(82, 82, 82);
  23213. }
  23214. .elist_input .elist_input_box .remove {
  23215. height: 20px;
  23216. width: 20px;
  23217. background-size: 100% 100%;
  23218. background-position: unset;
  23219. margin-left: 5px;
  23220. }
  23221. .elist_input_box >>> .el-rate {
  23222. display: flex;
  23223. height: 36px;
  23224. align-items: center;
  23225. }
  23226. .elist_input_box .elist_inptu_text {
  23227. min-height: 50px;
  23228. /* width: 500px;
  23229. max-height: 150px; */
  23230. width: 100%;
  23231. line-height: 50px;
  23232. color: rgb(82, 82, 82);
  23233. overflow: auto;
  23234. text-indent: 5px;
  23235. background: #f7f6f9;
  23236. border-radius: 10px;
  23237. }
  23238. .elist_input_box .elist_inptu_text input {
  23239. width: 500px;
  23240. }
  23241. .elist_input_box >>> .el-rate__icon {
  23242. font-size: 24px;
  23243. }
  23244. .isClick {
  23245. background: #4d9def;
  23246. }
  23247. .bzBox {
  23248. display: flex;
  23249. flex-direction: row;
  23250. align-items: center;
  23251. }
  23252. .bzBox .yCss {
  23253. width: 7px;
  23254. height: 7px;
  23255. background: #fff;
  23256. margin: 0 16px 0 6px;
  23257. border-radius: 50%;
  23258. border: 5px solid #3681fc;
  23259. z-index: 99;
  23260. }
  23261. .bzBox > div:nth-child(2) {
  23262. font-size: 18px;
  23263. font-weight: bold;
  23264. color: #0e1e33;
  23265. }
  23266. .navTitile {
  23267. padding: 0 0px 0 15px;
  23268. font-size: 16px;
  23269. font-weight: bold;
  23270. color: #0e1e33;
  23271. height: 40px;
  23272. line-height: 40px;
  23273. }
  23274. .isTypeOne {
  23275. width: 240px;
  23276. height: 170px;
  23277. /* border: 1px solid #f8f8f8; */
  23278. border-radius: 10px;
  23279. box-shadow: 0 0 6px 1px #dfdada;
  23280. }
  23281. .e_add_top {
  23282. display: flex;
  23283. justify-content: space-between;
  23284. padding: 10px 20px;
  23285. border-radius: 3px;
  23286. background: #fff;
  23287. }
  23288. .e_add_title2 {
  23289. display: flex;
  23290. align-items: center;
  23291. }
  23292. .e_add_title2 span {
  23293. width: 40px;
  23294. }
  23295. .e_add_title {
  23296. display: flex;
  23297. align-items: center;
  23298. color: #b8b8b8;
  23299. font-size: 18px;
  23300. position: relative;
  23301. height: 40px;
  23302. }
  23303. .e_add_title span {
  23304. margin-right: 10px;
  23305. }
  23306. .e_add_title .el_input {
  23307. width: 300px;
  23308. }
  23309. .e_add_title >>> .el-input__inner {
  23310. width: 400px;
  23311. }
  23312. /* .e_add_btn {
  23313. } */
  23314. .e_add_content {
  23315. display: flex;
  23316. width: 100%;
  23317. max-width: 650px;
  23318. height: 550px;
  23319. }
  23320. .e_add_list {
  23321. background: #fff;
  23322. height: 500px;
  23323. width: 210px;
  23324. position: relative;
  23325. margin: 15px 5px 0 0;
  23326. flex-shrink: 0;
  23327. display: flex;
  23328. flex-direction: column;
  23329. }
  23330. .e_add_list_title {
  23331. font-size: 20px;
  23332. width: 100%;
  23333. box-sizing: border-box;
  23334. padding: 15px 40px;
  23335. text-align: center;
  23336. border-bottom: 1px solid #eaeaea;
  23337. position: relative;
  23338. display: flex;
  23339. align-items: center;
  23340. justify-content: center;
  23341. height: 57px;
  23342. background: #f6f6f6;
  23343. }
  23344. .e_add_list_title span {
  23345. overflow: hidden;
  23346. white-space: nowrap;
  23347. text-overflow: ellipsis;
  23348. }
  23349. .e_add_list_title img {
  23350. position: absolute;
  23351. right: 15px;
  23352. width: 25px;
  23353. cursor: pointer;
  23354. top: 50%;
  23355. transform: translateY(-50%);
  23356. }
  23357. .e_add_list_body {
  23358. height: calc(100% - 187px);
  23359. overflow: auto;
  23360. }
  23361. .e_add_list_child {
  23362. width: 100%;
  23363. display: flex;
  23364. align-items: center;
  23365. justify-content: center;
  23366. position: relative;
  23367. box-sizing: border-box;
  23368. padding: 15px 40px;
  23369. text-align: center;
  23370. }
  23371. .e_add_list_child span {
  23372. overflow: hidden;
  23373. white-space: nowrap;
  23374. text-overflow: ellipsis;
  23375. cursor: pointer;
  23376. }
  23377. .e_add_list_child img {
  23378. position: absolute;
  23379. right: 10px;
  23380. width: 21px;
  23381. cursor: pointer;
  23382. top: 50%;
  23383. transform: translateY(-50%);
  23384. }
  23385. .e_add_list_child + .e_add_list_child {
  23386. border-top: 1px solid #eaeaea;
  23387. }
  23388. .e_add_list_child .active {
  23389. color: #409eff;
  23390. }
  23391. .e_add_list_btn {
  23392. position: absolute;
  23393. bottom: 0;
  23394. height: 50px;
  23395. background: rgb(120, 120, 254);
  23396. width: 100%;
  23397. color: #fff;
  23398. font-size: 16px;
  23399. text-align: center;
  23400. line-height: 50px;
  23401. cursor: pointer;
  23402. }
  23403. .e_add_list_detail {
  23404. position: absolute;
  23405. bottom: 0;
  23406. height: 130px;
  23407. background: rgb(120, 120, 254);
  23408. width: 100%;
  23409. color: #fff;
  23410. font-size: 16px;
  23411. display: flex;
  23412. align-items: center;
  23413. justify-content: center;
  23414. }
  23415. .e_add_list_detail textarea {
  23416. height: 90%;
  23417. width: 95%;
  23418. border: none;
  23419. resize: none;
  23420. outline: none;
  23421. padding: 5px;
  23422. box-sizing: border-box;
  23423. }
  23424. .e_add_list_pbox {
  23425. width: 100%;
  23426. max-width: 650px;
  23427. /* height: 600px; */
  23428. }
  23429. .e_add_list_pbox_title {
  23430. height: 50px;
  23431. background: #fff;
  23432. display: flex;
  23433. align-items: center;
  23434. width: 100%;
  23435. box-sizing: border-box;
  23436. padding: 0 20px;
  23437. }
  23438. .type_title {
  23439. font-size: 18px;
  23440. font-weight: 700;
  23441. }
  23442. .type_content {
  23443. font-size: 16px;
  23444. /* margin-left: 30px; */
  23445. }
  23446. .type_content span + span {
  23447. margin-left: 20px;
  23448. }
  23449. .type_content span {
  23450. cursor: pointer;
  23451. padding-bottom: 5px;
  23452. box-sizing: border-box;
  23453. }
  23454. .type_content .active {
  23455. color: #409eff;
  23456. border-bottom: 2px solid #409eff;
  23457. }
  23458. .e_add_list_pbox_content {
  23459. height: calc(100% - 50px);
  23460. display: flex;
  23461. align-items: center;
  23462. width: 100%;
  23463. background: #fff;
  23464. }
  23465. .evaCss {
  23466. display: flex;
  23467. flex-direction: row;
  23468. flex-wrap: nowrap;
  23469. align-items: flex-start;
  23470. padding: 0 0 20px;
  23471. }
  23472. .cru_line {
  23473. position: absolute;
  23474. bottom: 0px;
  23475. transition: all 0.5s;
  23476. left: 0px;
  23477. width: 125px;
  23478. margin-left: -25px;
  23479. }
  23480. .isNoMessage {
  23481. width: 20%;
  23482. margin: 25% auto 0;
  23483. }
  23484. .isNoMessage > img {
  23485. width: 100%;
  23486. height: 100%;
  23487. }
  23488. .fullStyle >>> .el-dialog__body {
  23489. height: 100% !important;
  23490. }
  23491. .fullStyle >>> .el-dialog,
  23492. .fullStyle {
  23493. width: 100% !important;
  23494. max-width: 100% !important;
  23495. height: 100% !important;
  23496. margin: 0 !important;
  23497. }
  23498. .full_diy >>> .el-dialog {
  23499. margin: 0 !important;
  23500. height: 100%;
  23501. padding: 4px;
  23502. }
  23503. .full_diy >>> .el-dialog__body {
  23504. height: calc(100% - 100px);
  23505. }
  23506. .full_diy2 >>> .el-dialog__body {
  23507. height: calc(100% - 50px);
  23508. padding: 0;
  23509. }
  23510. .switchCss {
  23511. /* width: 100%; */
  23512. display: flex;
  23513. flex-direction: row;
  23514. flex-wrap: nowrap;
  23515. align-items: center;
  23516. /* justify-content: center; */
  23517. }
  23518. .isClickNav {
  23519. /* color: #499eef; */
  23520. color: #000;
  23521. }
  23522. .commentImg {
  23523. width: 25px;
  23524. height: 25px;
  23525. cursor: pointer;
  23526. }
  23527. .commentImg > img {
  23528. width: 100%;
  23529. height: 100%;
  23530. }
  23531. .comment {
  23532. background: #f9f9f9;
  23533. border-radius: 0 0 4px 4px;
  23534. display: flex;
  23535. flex-direction: row;
  23536. flex-wrap: nowrap;
  23537. align-items: center;
  23538. justify-content: flex-end;
  23539. height: 35px;
  23540. }
  23541. .commentList {
  23542. display: flex;
  23543. flex-direction: row;
  23544. flex-wrap: nowrap;
  23545. align-items: center;
  23546. justify-content: center;
  23547. align-content: center;
  23548. /* margin-left: 15px; */
  23549. /* margin-left: 8px; */
  23550. }
  23551. .scoreImg {
  23552. width: 17px;
  23553. height: 17px;
  23554. }
  23555. .studentDetail {
  23556. display: flex;
  23557. flex-direction: row;
  23558. flex-wrap: nowrap;
  23559. /* align-items: center; */
  23560. align-items: flex-start;
  23561. }
  23562. .tx {
  23563. width: 50px;
  23564. }
  23565. .tx > img {
  23566. width: 100%;
  23567. height: 100%;
  23568. }
  23569. .nameAndTime {
  23570. display: flex;
  23571. flex-direction: column;
  23572. flex-wrap: nowrap;
  23573. align-items: flex-start;
  23574. margin-left: 10px;
  23575. }
  23576. .worksAnswer {
  23577. color: #4078dd;
  23578. margin: 10px 0;
  23579. font-size: 16px;
  23580. position: relative;
  23581. }
  23582. .worksAnswer > img {
  23583. width: 500px;
  23584. height: 300px;
  23585. object-fit: contain;
  23586. margin: 0 auto;
  23587. display: block;
  23588. }
  23589. .commentTop {
  23590. border-bottom: 1px solid #eaeaea;
  23591. padding-bottom: 10px;
  23592. }
  23593. .commentBox {
  23594. padding-top: 15px;
  23595. }
  23596. .pl {
  23597. font-size: 18px;
  23598. }
  23599. .plPerson {
  23600. width: 100%;
  23601. }
  23602. .plName {
  23603. display: flex;
  23604. flex-direction: row;
  23605. flex-wrap: nowrap;
  23606. align-items: baseline;
  23607. color: #78787a;
  23608. width: 100%;
  23609. }
  23610. .deleteComment {
  23611. cursor: pointer;
  23612. margin-left: auto;
  23613. color: #237ade;
  23614. }
  23615. .plContent {
  23616. margin-top: 5px;
  23617. }
  23618. .evalCss {
  23619. background: #fff;
  23620. font-size: 18px;
  23621. }
  23622. .nav {
  23623. color: #9d9d9d;
  23624. padding: 5px 0 15px 20px;
  23625. }
  23626. .middleBox {
  23627. padding: 5px 0 15px 20px;
  23628. }
  23629. .pfBox {
  23630. padding-bottom: 30px;
  23631. }
  23632. .nameAndrate {
  23633. display: flex;
  23634. flex-direction: row;
  23635. flex-wrap: nowrap;
  23636. align-items: center;
  23637. padding-bottom: 10px;
  23638. height: 30px;
  23639. line-height: 30px;
  23640. }
  23641. .nameAndrate > div {
  23642. margin-left: 10px;
  23643. color: #000;
  23644. height: 30px;
  23645. }
  23646. .nameAndrate >>> .el-rate__icon {
  23647. font-size: 28px !important;
  23648. }
  23649. .pfBox > div:nth-child(2) {
  23650. background: #f7f6f9;
  23651. width: 400px;
  23652. min-height: 45px;
  23653. border-radius: 10px;
  23654. font-size: 16px;
  23655. display: flex;
  23656. flex-wrap: wrap;
  23657. align-items: center;
  23658. padding: 10px 20px;
  23659. box-sizing: border-box;
  23660. color: #000;
  23661. }
  23662. .bz {
  23663. display: flex;
  23664. flex-direction: row;
  23665. flex-wrap: nowrap;
  23666. align-items: flex-start;
  23667. }
  23668. .bz > div {
  23669. padding: 0 10px;
  23670. }
  23671. .select_box2_title {
  23672. background: #fff;
  23673. border-radius: 5px;
  23674. padding: 15px 10px;
  23675. box-sizing: border-box;
  23676. margin-bottom: 10px;
  23677. display: flex;
  23678. flex-direction: row;
  23679. flex-wrap: nowrap;
  23680. align-items: center;
  23681. }
  23682. .select_box2_title > div:nth-child(2) {
  23683. margin-left: 10px;
  23684. color: #c4c4c4;
  23685. }
  23686. .select_box2_box {
  23687. display: flex;
  23688. height: 500px;
  23689. }
  23690. .select_box2_img {
  23691. width: calc(100% - 310px);
  23692. height: 100%;
  23693. overflow: auto;
  23694. background: #fff;
  23695. border-radius: 5px;
  23696. }
  23697. .select_box2_img img {
  23698. width: 100%;
  23699. }
  23700. .select_box2_answer {
  23701. background: #fff;
  23702. margin-left: 10px;
  23703. border-radius: 5px;
  23704. width: 300px;
  23705. overflow: auto;
  23706. height: 90%;
  23707. display: flex;
  23708. flex-direction: column;
  23709. align-items: flex-start;
  23710. padding-top: 10px;
  23711. box-sizing: border-box;
  23712. position: relative;
  23713. }
  23714. .select_answer_title {
  23715. padding: 0 0 15px 20px;
  23716. color: #c4c4c4;
  23717. }
  23718. .select_box2_answer_box {
  23719. margin: 0 0 10px 20px;
  23720. width: 85%;
  23721. display: flex;
  23722. flex-direction: row;
  23723. flex-wrap: nowrap;
  23724. align-items: center;
  23725. }
  23726. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23727. color: #000;
  23728. }
  23729. .upAnswerCss {
  23730. position: absolute;
  23731. bottom: 15px;
  23732. right: 15px;
  23733. }
  23734. .upAnswerCss >>> .el-button {
  23735. width: 95px;
  23736. height: 35px;
  23737. line-height: 35px;
  23738. padding: 0;
  23739. }
  23740. .rightWidthCss {
  23741. width: 60%;
  23742. display: flex;
  23743. flex-direction: row;
  23744. align-items: flex-start;
  23745. }
  23746. .rightAnswer {
  23747. display: flex;
  23748. flex-direction: row;
  23749. flex-wrap: nowrap;
  23750. align-items: center;
  23751. color: red;
  23752. margin-bottom: 31px;
  23753. }
  23754. .rightAnswerCss {
  23755. display: flex;
  23756. flex-direction: column;
  23757. flex-wrap: nowrap;
  23758. padding-top: 60px;
  23759. }
  23760. .blueCss {
  23761. color: #767de1;
  23762. margin-left: 10px;
  23763. }
  23764. .redCss {
  23765. color: red;
  23766. }
  23767. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23768. color: rgb(0 123 255) !important;
  23769. }
  23770. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23771. color: rgb(0 123 255) !important;
  23772. }
  23773. .zuoyeYulan {
  23774. padding-top: 0;
  23775. font-size: 18px;
  23776. display: flex;
  23777. align-items: flex-end;
  23778. }
  23779. .buttonA {
  23780. margin-left: 10px;
  23781. padding: 0;
  23782. }
  23783. .displayBox {
  23784. margin-bottom: 10px;
  23785. display: block;
  23786. border-bottom: 3px solid #eee;
  23787. display: flex;
  23788. align-items: center;
  23789. }
  23790. .easy_comment {
  23791. width: calc(100% - 90px);
  23792. margin-left: 10px;
  23793. display: flex;
  23794. flex-wrap: wrap;
  23795. }
  23796. .easy_comment > div {
  23797. border: 1px solid #4a4a4a;
  23798. color: #666;
  23799. border-radius: 15px;
  23800. padding: 5px 10px;
  23801. font-size: 16px;
  23802. margin-bottom: 10px;
  23803. margin-right: 5px;
  23804. cursor: pointer;
  23805. }
  23806. .easy_comment div:hover {
  23807. border: 1px solid #f7ba2a;
  23808. color: #c69217;
  23809. }
  23810. .xuan_right_box {
  23811. padding: 10px 0;
  23812. background: #f0f4fa;
  23813. margin: 0 15px 0 25px;
  23814. border-bottom-left-radius: 5px;
  23815. border-bottom-right-radius: 5px;
  23816. width: 91.5%;
  23817. }
  23818. .tool_right_box {
  23819. display: flex;
  23820. align-items: center;
  23821. }
  23822. .tool_right_box >>> .katex {
  23823. font-size: 16px;
  23824. }
  23825. .tool_right_box + .tool_right_box {
  23826. margin-top: 10px;
  23827. }
  23828. .right_box_xuan {
  23829. border-radius: 5px;
  23830. padding: 5px;
  23831. margin-left: 10px;
  23832. min-width: 85px;
  23833. background: #fff;
  23834. color: #0061ff;
  23835. border: 1px solid #0061ff;
  23836. font-size: 14px;
  23837. }
  23838. .pButton:hover {
  23839. opacity: 1 !important;
  23840. }
  23841. .pButton {
  23842. position: fixed;
  23843. text-align: center;
  23844. cursor: pointer;
  23845. z-index: 999;
  23846. right: 20px;
  23847. top: 110px;
  23848. width: 50px;
  23849. height: 50px;
  23850. display: flex;
  23851. align-items: center;
  23852. justify-content: center;
  23853. border-radius: 5px;
  23854. }
  23855. .pzClass {
  23856. width: calc(100% - 340px);
  23857. }
  23858. .newDialogCss {
  23859. /* position: fixed;
  23860. right: 5%;
  23861. top: 50%;
  23862. width: 340px;
  23863. transform: translateY(-50%);
  23864. height: 60%;
  23865. box-shadow: 0px 0 8px 0px #555555;
  23866. border-radius: 15px;
  23867. z-index: 999; */
  23868. position: fixed;
  23869. right: 20px;
  23870. top: 101px;
  23871. width: 330px;
  23872. height: calc(100% - 80px);
  23873. z-index: 999;
  23874. background: #fff;
  23875. border-top-right-radius: 0px;
  23876. border-bottom-right-radius: 0px;
  23877. overflow: hidden;
  23878. }
  23879. .newDialogCss>.scoreList{
  23880. width:100%;
  23881. height:100%;
  23882. box-sizing:border-box;
  23883. padding:10px 15px;
  23884. overflow:auto;
  23885. padding-bottom:80px;
  23886. }
  23887. .pzTop {
  23888. color: #fff;
  23889. background: #000;
  23890. display: flex;
  23891. flex-direction: row;
  23892. flex-wrap: nowrap;
  23893. align-items: center;
  23894. justify-content: space-between;
  23895. height: 40px;
  23896. border-radius: 15px 15px 0 0;
  23897. user-select: none;
  23898. }
  23899. .pzTop2 .checkbox {
  23900. display: flex;
  23901. align-items: center;
  23902. padding: 5px 10px;
  23903. flex: 0 0 auto;
  23904. font-weight: bold;
  23905. border-bottom: 1px solid #eee;
  23906. justify-content: space-between;
  23907. }
  23908. .checkbox>.cb-tabList{
  23909. display:flex;
  23910. align-items:center;
  23911. }
  23912. .cb-tabList>div{
  23913. margin-right:20px;
  23914. font-weight:400;
  23915. cursor:pointer;
  23916. }
  23917. .cb-tabList>.cb-tabItem{
  23918. color:#1684FC;
  23919. position:relative;
  23920. }
  23921. .cb-tabItem::after{
  23922. content:"";
  23923. width:100%;
  23924. height:2px;
  23925. background:#1684FC;
  23926. position:absolute;
  23927. bottom:-5px;
  23928. left:0
  23929. }
  23930. .pzTop2 .check {
  23931. text-align: center;
  23932. cursor: pointer;
  23933. box-sizing: border-box;
  23934. display: flex;
  23935. }
  23936. .pzTop2 img {
  23937. width: 25px;
  23938. cursor: pointer;
  23939. }
  23940. .pzTop > div:nth-child(1) {
  23941. padding-left: 10px;
  23942. }
  23943. .pzTop > div:nth-child(2) {
  23944. width: 15px;
  23945. height: 15px;
  23946. padding-right: 10px;
  23947. cursor: pointer;
  23948. }
  23949. .pzTop > div:nth-child(2) > img {
  23950. width: 100%;
  23951. height: 100%;
  23952. }
  23953. .pzBox,
  23954. .noPzBox {
  23955. height: calc(100% - 60px);
  23956. /* background: #ededed; */
  23957. background: #fff;
  23958. /* border-radius: 0 0 15px 15px; */
  23959. }
  23960. .noPzBox {
  23961. display: flex;
  23962. flex-direction: column;
  23963. flex-wrap: nowrap;
  23964. justify-content: center;
  23965. align-items: center;
  23966. }
  23967. .pzList {
  23968. background: #f7f7f7;
  23969. width: 90%;
  23970. margin: 0 auto 15px;
  23971. border-radius: 5px;
  23972. }
  23973. .pzNavTop {
  23974. display: flex;
  23975. flex-direction: row;
  23976. flex-wrap: nowrap;
  23977. padding: 10px 10px 0 10px;
  23978. align-items: center;
  23979. }
  23980. .pzDelete {
  23981. cursor: pointer;
  23982. margin-left: auto;
  23983. font-size: 14px;
  23984. color: #afafaf;
  23985. }
  23986. .pzNavTop > div:nth-child(1) {
  23987. background: #3760af;
  23988. width: 35px;
  23989. height: 35px;
  23990. color: #fff;
  23991. text-align: center;
  23992. line-height: 35px;
  23993. border-radius: 50%;
  23994. font-size: 14px;
  23995. }
  23996. .pzNavTop > div:nth-child(2) {
  23997. font-size: 18px;
  23998. color: #959595;
  23999. margin-left: 5px;
  24000. }
  24001. .pzContent {
  24002. padding: 10px;
  24003. word-break: break-word;
  24004. }
  24005. .pzContent audio {
  24006. width: 100%;
  24007. }
  24008. .pzContent audio::-webkit-media-controls-panel {
  24009. background: #fff;
  24010. }
  24011. .pzContent >>> img {
  24012. max-width: 100%;
  24013. }
  24014. .pzListBox {
  24015. padding-top: 15px;
  24016. height: calc(100% - 110px);
  24017. overflow: auto;
  24018. }
  24019. .addPzButton {
  24020. position: relative;
  24021. margin-top: 3px;
  24022. width: 100%;
  24023. }
  24024. .addPzButton .img1 {
  24025. position: absolute;
  24026. top: 50%;
  24027. right: 25px;
  24028. transform: translateY(-50%);
  24029. height: 100%;
  24030. display: flex;
  24031. align-items: center;
  24032. }
  24033. .addPzButton .img1 div {
  24034. display: flex;
  24035. }
  24036. .addPzButton .img1 div img {
  24037. width: 28px;
  24038. margin-left: 10px;
  24039. cursor: pointer;
  24040. }
  24041. .addPzButton .img1 div span {
  24042. font-size: 14px;
  24043. margin: 4px 0 0 3px;
  24044. color: #afafaf;
  24045. }
  24046. .addPz {
  24047. background: #4b79ce;
  24048. width: 100px;
  24049. color: #fff;
  24050. font-size: 12px;
  24051. height: 30px;
  24052. margin: 0 auto;
  24053. text-align: center;
  24054. line-height: 30px;
  24055. border-radius: 10px;
  24056. cursor: pointer;
  24057. }
  24058. .addDialogCss {
  24059. position: fixed;
  24060. width: 600px;
  24061. height: 70%;
  24062. min-height: 450px;
  24063. box-shadow: 0px 0 8px 0px #555555;
  24064. border-radius: 15px;
  24065. z-index: 999;
  24066. left: 50%;
  24067. top: 50%;
  24068. margin: -18% 0 0 -300px;
  24069. }
  24070. .teacherPz {
  24071. display: flex;
  24072. flex-direction: row;
  24073. align-items: center;
  24074. flex-wrap: nowrap;
  24075. }
  24076. .teacherPzImg {
  24077. width: 30px;
  24078. height: 30px;
  24079. }
  24080. .teacherPzImg > img {
  24081. width: 100%;
  24082. height: 100%;
  24083. }
  24084. .addPzBox {
  24085. height: calc(100% - 40px);
  24086. background: #ededed;
  24087. border-bottom-left-radius: 15px;
  24088. border-bottom-right-radius: 15px;
  24089. }
  24090. .pzAudioClass {
  24091. margin: 15px 14px;
  24092. background: #fff;
  24093. height: 100%;
  24094. display: flex;
  24095. justify-content: center;
  24096. align-items: center;
  24097. }
  24098. .pzConText {
  24099. width: 95%;
  24100. height: 100%;
  24101. margin: 10px auto 0;
  24102. border: none;
  24103. background: #fff;
  24104. border-radius: 0px;
  24105. }
  24106. .pzConText >>> .text {
  24107. height: calc(100% - 82px);
  24108. }
  24109. .addTextCss {
  24110. background: #4b79ce;
  24111. width: 80px;
  24112. height: 30px;
  24113. text-align: center;
  24114. color: #fff;
  24115. line-height: 30px;
  24116. border-radius: 10px;
  24117. margin: 10px auto 0;
  24118. cursor: pointer;
  24119. }
  24120. .pzConText:focus-visible {
  24121. border: none !important;
  24122. }
  24123. .maxWidth {
  24124. width: 1000px;
  24125. }
  24126. .noPz {
  24127. width: 150px;
  24128. margin: 0 auto 20%;
  24129. }
  24130. .noPz > img {
  24131. width: 100%;
  24132. height: 100%;
  24133. }
  24134. .timeAndReply {
  24135. display: flex;
  24136. flex-direction: row;
  24137. flex-wrap: nowrap;
  24138. justify-content: space-between;
  24139. align-items: center;
  24140. font-size: 14px;
  24141. box-sizing: border-box;
  24142. padding: 0 10px 10px 0px;
  24143. }
  24144. .timeAndReply .time {
  24145. color: #bfbfbf;
  24146. padding: 0 0 0 10px;
  24147. box-sizing: border-box;
  24148. }
  24149. .timeAndReply > div:last-child {
  24150. cursor: pointer;
  24151. color: #777;
  24152. }
  24153. /* table 样式 */
  24154. .cont >>> table {
  24155. border-top: 1px solid #ccc;
  24156. border-left: 1px solid #ccc;
  24157. }
  24158. .cont >>> table td,
  24159. .cont >>> table th {
  24160. border-bottom: 1px solid #ccc;
  24161. border-right: 1px solid #ccc;
  24162. /* padding: 20px 5px; */
  24163. padding: 5px 10px;
  24164. max-width: 0px;
  24165. height: 30px;
  24166. vertical-align: baseline;
  24167. box-sizing: border-box;
  24168. }
  24169. .cont >>> table th {
  24170. border-bottom: 2px solid #ccc;
  24171. text-align: center;
  24172. }
  24173. /* blockquote 样式 */
  24174. .cont >>> blockquote {
  24175. display: block;
  24176. border-left: 8px solid #d0e5f2;
  24177. padding: 5px 10px;
  24178. margin: 10px 0;
  24179. line-height: 1.4;
  24180. font-size: 100%;
  24181. background-color: #f1f1f1;
  24182. }
  24183. /* code 样式 */
  24184. .cont >>> code {
  24185. display: inline-block;
  24186. /* *display: inline; */
  24187. zoom: 1;
  24188. background-color: #f1f1f1;
  24189. border-radius: 3px;
  24190. padding: 3px 5px;
  24191. margin: 0 3px;
  24192. }
  24193. .cont >>> pre code {
  24194. display: block;
  24195. }
  24196. /* ul ol 样式 */
  24197. .cont >>> ul,
  24198. ol {
  24199. margin: 10px 0 10px 20px;
  24200. }
  24201. .addPzCheck {
  24202. display: flex;
  24203. flex-direction: row;
  24204. flex-wrap: nowrap;
  24205. padding: 10px 15px 0;
  24206. }
  24207. .addPzCheck span {
  24208. cursor: pointer;
  24209. padding-bottom: 5px;
  24210. font-weight: bold;
  24211. }
  24212. .addPzCheck span + span {
  24213. margin-left: 10px;
  24214. }
  24215. .addPzCheck .isChooseActive {
  24216. color: #3e88f4;
  24217. border-bottom: 2px solid #2f80f3;
  24218. }
  24219. /* code 样式 */
  24220. .cont {
  24221. /* -webkit-user-modify: read-write; */
  24222. overflow-wrap: break-word;
  24223. -webkit-line-break: after-white-space;
  24224. word-break: break-word;
  24225. white-space: pre-line;
  24226. }
  24227. .scoreBox,
  24228. .scoreDetailBox {
  24229. display: flex;
  24230. align-items: center;
  24231. justify-content: flex-start;
  24232. margin-top: 20px;
  24233. font-size: 18px;
  24234. width: 100%;
  24235. }
  24236. .scoreBox .t,
  24237. .scoreDetailBox .t {
  24238. margin-right: 10px;
  24239. width: 100px;
  24240. text-align: right;
  24241. }
  24242. .scoreDetailBox {
  24243. align-items: flex-start;
  24244. }
  24245. .scoreDetailBox >>> .el-textarea {
  24246. width: calc(100% - 200px);
  24247. }
  24248. .scoreBox >>> .el-input {
  24249. width: 130px;
  24250. font-size: 38px;
  24251. }
  24252. .scoreBox >>> .el-input__inner {
  24253. height: 60px;
  24254. }
  24255. .answerScore {
  24256. position: absolute;
  24257. top: 10px;
  24258. right: 10px;
  24259. background: #0000008f;
  24260. border-radius: 5px;
  24261. padding: 3px 5px;
  24262. font-size: 14px;
  24263. color: #fff;
  24264. cursor: pointer;
  24265. }
  24266. .open_box .switch_box {
  24267. width: 100%;
  24268. margin: 0 auto;
  24269. display: flex;
  24270. justify-content: space-between;
  24271. }
  24272. .open_box .switch_box + .switch_box {
  24273. margin-top: 10px;
  24274. }
  24275. .deleteImg,.deleteImg1 {
  24276. width: 25px !important;
  24277. height: 25px !important;
  24278. cursor: pointer;
  24279. position: absolute;
  24280. top: 10px;
  24281. right: 10px;
  24282. }
  24283. .deleteImg2 {
  24284. width: 23px !important;
  24285. height: 23px !important;
  24286. top: 5px;
  24287. right: 5px;
  24288. }
  24289. .deleteImg1{
  24290. width: 23px !important;
  24291. height: 23px !important;
  24292. top: 5px !important;
  24293. right: 30px !important;
  24294. }
  24295. .rightW {
  24296. right: 40px;
  24297. }
  24298. .drawPBox {
  24299. display: flex;
  24300. flex-direction: column;
  24301. position: relative;
  24302. }
  24303. .drawPBox span {
  24304. font-size: 18px;
  24305. color: #606266;
  24306. padding-bottom: 10px;
  24307. margin: 10px 0;
  24308. border-bottom: 1px solid #eaeaea;
  24309. }
  24310. .drawPBox img {
  24311. width: 500px;
  24312. height: 300px;
  24313. object-fit: contain;
  24314. cursor: pointer;
  24315. margin: 0 auto;
  24316. }
  24317. .sentenBox {
  24318. background: #fff;
  24319. height: 450px;
  24320. overflow: auto;
  24321. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24322. background-position: 102%;
  24323. background-repeat: no-repeat;
  24324. background-size: 60%;
  24325. }
  24326. .addSen {
  24327. background: #409efe;
  24328. width: 90px;
  24329. color: #fff;
  24330. height: 35px;
  24331. text-align: center;
  24332. line-height: 35px;
  24333. border-radius: 5px;
  24334. float: right;
  24335. margin: 10px 20px 0 0;
  24336. cursor: pointer;
  24337. }
  24338. .sentenTop {
  24339. display: flex;
  24340. flex-direction: row;
  24341. flex-wrap: nowrap;
  24342. align-items: center;
  24343. padding: 55px 0 0 20px;
  24344. box-sizing: border-box;
  24345. }
  24346. .sentenTop > div:nth-child(2) {
  24347. width: 300px;
  24348. margin: 0 15px;
  24349. }
  24350. .sentenTop > div:nth-child(3) {
  24351. background: #409efe;
  24352. color: #fff;
  24353. width: 65px;
  24354. height: 35px;
  24355. text-align: center;
  24356. line-height: 35px;
  24357. border-radius: 5px;
  24358. cursor: pointer;
  24359. }
  24360. .cardList,
  24361. .cardList1 {
  24362. padding: 10px 0 10px 0;
  24363. display: flex;
  24364. flex-direction: row;
  24365. flex-wrap: wrap;
  24366. align-items: center;
  24367. box-sizing: border-box;
  24368. border-bottom: 1px solid #f4f4f4;
  24369. width: 98%;
  24370. margin: 0 auto;
  24371. min-width: 60%;
  24372. max-width: 85%;
  24373. }
  24374. .cardList1 {
  24375. padding: 10px 0 10px 10px !important;
  24376. margin: 0 !important;
  24377. }
  24378. .cardBox {
  24379. display: flex;
  24380. flex-direction: row;
  24381. flex-wrap: wrap;
  24382. align-items: center;
  24383. align-content: center;
  24384. }
  24385. .cardBox > div {
  24386. margin-bottom: 10px;
  24387. }
  24388. .isCard,
  24389. .isChooseCard,
  24390. .noCard,
  24391. .isCard1 {
  24392. min-width: 130px;
  24393. width: auto;
  24394. height: 60px;
  24395. text-align: center;
  24396. line-height: 60px;
  24397. font-size: 20px;
  24398. cursor: pointer;
  24399. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24400. background-size: cover;
  24401. transition: all 2s;
  24402. margin-right: 20px;
  24403. background-size: 100% 100%;
  24404. padding: 0 20px;
  24405. box-sizing: border-box;
  24406. }
  24407. .isCard > div,
  24408. .noCard > div,
  24409. .isCard1 > div {
  24410. white-space: nowrap;
  24411. overflow: hidden;
  24412. text-overflow: ellipsis;
  24413. width: 100%;
  24414. margin: 0 auto;
  24415. }
  24416. .noCard {
  24417. background-image: none;
  24418. }
  24419. .isCard1 {
  24420. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24421. }
  24422. .isChooseCard {
  24423. background-image: none;
  24424. border: 1px dashed #b9b9b9;
  24425. border-radius: 10px;
  24426. }
  24427. .card {
  24428. width: 130px;
  24429. height: 60px;
  24430. }
  24431. .card > img {
  24432. width: 100%;
  24433. height: 100%;
  24434. }
  24435. .rightCardBox {
  24436. margin: 10px 0 0 10px;
  24437. }
  24438. .rightCardBox > div:nth-child(1) {
  24439. margin-bottom: 10px;
  24440. }
  24441. .cardCss {
  24442. display: flex;
  24443. flex-direction: column;
  24444. flex-wrap: nowrap;
  24445. align-items: center;
  24446. border-bottom: 3px solid #b4c3d3;
  24447. padding: 0 0 5px 0;
  24448. margin-right: 10px;
  24449. }
  24450. .cardCss > div:nth-child(2) {
  24451. background: #5b7b9d;
  24452. color: #fff;
  24453. width: 20px;
  24454. height: 20px;
  24455. border-radius: 50%;
  24456. text-align: center;
  24457. line-height: 20px;
  24458. }
  24459. .isWrong {
  24460. display: flex;
  24461. flex-direction: row;
  24462. flex-wrap: nowrap;
  24463. align-content: center;
  24464. align-items: center;
  24465. }
  24466. .answerRight {
  24467. width: 25%;
  24468. }
  24469. .isTj {
  24470. display: flex;
  24471. flex-direction: row;
  24472. flex-wrap: nowrap;
  24473. align-items: center;
  24474. }
  24475. .isTj > div:nth-child(2) {
  24476. color: #727070;
  24477. margin-left: 10px;
  24478. }
  24479. .isTjImg {
  24480. width: 30px;
  24481. height: 30px;
  24482. }
  24483. .isTjImg > img {
  24484. width: 100%;
  24485. height: 100%;
  24486. }
  24487. .cardAnswerBox {
  24488. font-size: 18px;
  24489. width: 97%;
  24490. border: 5px;
  24491. padding: 0;
  24492. border-radius: 5px;
  24493. margin: 10px auto;
  24494. word-break: break-word;
  24495. }
  24496. .w_name {
  24497. margin-bottom: 10px;
  24498. }
  24499. .w_name span {
  24500. font-size: 16px;
  24501. }
  24502. .w_teachert {
  24503. width: 50px !important;
  24504. position: absolute;
  24505. height: auto !important;
  24506. z-index: 10;
  24507. right: 25px;
  24508. top: -25px;
  24509. }
  24510. /* .group_workBox {
  24511. } */
  24512. .group_workBox + .group_workBox {
  24513. margin-top: 20px;
  24514. }
  24515. .group_box {
  24516. padding-bottom: 20px;
  24517. border-bottom: 2px solid #f0f0f0;
  24518. margin-top: 10px;
  24519. }
  24520. .group_title {
  24521. display: flex;
  24522. align-items: center;
  24523. justify-content: space-between;
  24524. width: 95%;
  24525. }
  24526. .group_name {
  24527. background-image: url(../../assets/icon/groupN.png);
  24528. width: 220px;
  24529. background-size: 100% 100%;
  24530. height: 67px;
  24531. padding: 0 20px 0 43px;
  24532. box-sizing: border-box;
  24533. line-height: 63px;
  24534. color: #fff;
  24535. overflow: hidden;
  24536. white-space: nowrap;
  24537. text-overflow: ellipsis;
  24538. }
  24539. .group_work {
  24540. width: 100%;
  24541. padding: 0 10px;
  24542. box-sizing: border-box;
  24543. display: flex;
  24544. flex-wrap: wrap;
  24545. }
  24546. .g_d_box {
  24547. display: flex;
  24548. flex-flow: wrap;
  24549. justify-content: space-around;
  24550. }
  24551. .g_d_box .isChair {
  24552. background-image: url(../../assets/avatar.png) !important;
  24553. }
  24554. .g_d_group {
  24555. width: 500px;
  24556. margin-bottom: 80px;
  24557. }
  24558. .g_d_group_chair {
  24559. display: flex;
  24560. align-items: center;
  24561. justify-content: center;
  24562. }
  24563. .g_d_group_chair > div + div {
  24564. margin-left: 30px;
  24565. }
  24566. .g_d_group_chair > div,
  24567. .g_d_group_chair2 > div {
  24568. display: flex;
  24569. flex-direction: column;
  24570. align-items: center;
  24571. }
  24572. .g_d_group_chair > div > span:nth-child(1),
  24573. .g_d_group_chair2 > div > span:nth-child(1) {
  24574. background-image: url(../../assets/icon/chair.png);
  24575. width: 50px;
  24576. height: 50px;
  24577. display: block;
  24578. background-size: 100% 100%;
  24579. }
  24580. .g_d_group_tableBox {
  24581. display: flex;
  24582. align-items: center;
  24583. justify-content: center;
  24584. }
  24585. .g_d_group_chair2 {
  24586. display: flex;
  24587. flex-direction: column;
  24588. align-items: center;
  24589. justify-content: center;
  24590. }
  24591. .g_d_group_chair2 > div + div {
  24592. margin-top: 10px;
  24593. }
  24594. .g_d_group_table {
  24595. background-image: url(../../assets/icon/groupBg.png);
  24596. width: 354px;
  24597. height: 196px;
  24598. background-size: 100% 100%;
  24599. display: flex;
  24600. align-items: center;
  24601. justify-content: center;
  24602. flex-direction: column;
  24603. color: #fff;
  24604. }
  24605. .g_d_group_table > div:nth-child(1) {
  24606. font-size: 24px;
  24607. margin-bottom: 5px;
  24608. }
  24609. .g_d_group_table > div:nth-child(2) div {
  24610. cursor: pointer;
  24611. background: #2e77bf;
  24612. padding: 4px 10px;
  24613. border-radius: 5px;
  24614. }
  24615. /* .groupBox {
  24616. } */
  24617. .groupContent + .groupContent {
  24618. margin-top: 30px;
  24619. }
  24620. .groupTitle {
  24621. font-size: 24px;
  24622. color: rgb(80, 80, 80);
  24623. margin-bottom: 20px;
  24624. }
  24625. .groupName {
  24626. display: flex;
  24627. align-items: center;
  24628. }
  24629. .groupn {
  24630. font-size: 15px;
  24631. margin-right: 10px;
  24632. }
  24633. .groupName + .groupName {
  24634. margin-top: 15px;
  24635. }
  24636. .groupBtn {
  24637. margin-left: 10px;
  24638. }
  24639. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24640. text-align: left;
  24641. }
  24642. .g_d_btnBox {
  24643. display: flex;
  24644. justify-content: flex-end;
  24645. align-items: center;
  24646. margin-bottom: 20px;
  24647. }
  24648. .updateChair {
  24649. position: relative;
  24650. }
  24651. .updateChairBtn {
  24652. position: absolute;
  24653. width: 50px;
  24654. height: 50px;
  24655. overflow: hidden;
  24656. /* display: flex; */
  24657. align-items: center;
  24658. justify-content: center;
  24659. background: #00000087;
  24660. color: #fff;
  24661. border-radius: 50px;
  24662. display: none;
  24663. cursor: pointer;
  24664. }
  24665. .updateChair:hover .updateChairBtn {
  24666. display: flex;
  24667. }
  24668. .group_staic_box {
  24669. display: flex;
  24670. padding: 30px 40px 10px;
  24671. flex-wrap: wrap;
  24672. }
  24673. .group_staic {
  24674. /* width: 50%; */
  24675. margin-bottom: 20px;
  24676. display: flex;
  24677. align-items: center;
  24678. }
  24679. .group_staic span:nth-child(1) {
  24680. width: 150px;
  24681. text-align: right;
  24682. margin-right: 15px;
  24683. }
  24684. .group_staic span:nth-child(2) {
  24685. background: rgb(0 123 255);
  24686. color: #fff;
  24687. border-radius: 5px;
  24688. padding: 5px;
  24689. }
  24690. .codeFileBox {
  24691. height: 300px;
  24692. background: #fff;
  24693. display: flex;
  24694. align-items: center;
  24695. justify-content: center;
  24696. }
  24697. .codeFileBox img {
  24698. width: 200px;
  24699. margin: 0;
  24700. height: auto;
  24701. }
  24702. .codeFileBox div {
  24703. background: rgb(80, 142, 226);
  24704. color: #fff;
  24705. padding: 10px 20px;
  24706. border-radius: 25px;
  24707. cursor: pointer;
  24708. margin-left: 15px;
  24709. }
  24710. .radioBox {
  24711. display: flex;
  24712. flex-direction: column;
  24713. flex-wrap: nowrap;
  24714. align-items: flex-start;
  24715. }
  24716. .radioBox > div {
  24717. margin: 10px 0 0 10px;
  24718. }
  24719. /* .radioBox >>> .el-radio__input,
  24720. .radioBox >>> .el-checkbox__inner {
  24721. margin-left: 10px;
  24722. } */
  24723. .radioBox >>> .el-radio__label,
  24724. .radioBox >>> .el-checkbox__label {
  24725. display: flex;
  24726. align-items: center;
  24727. width: 100%;
  24728. }
  24729. .radioBox >>> .el-radio__label > span {
  24730. width: 100%;
  24731. display: -webkit-box;
  24732. overflow: hidden;
  24733. white-space: normal !important;
  24734. text-overflow: ellipsis;
  24735. word-wrap: break-word;
  24736. }
  24737. .inImg {
  24738. width: 100px;
  24739. cursor: pointer;
  24740. }
  24741. .inImg > img {
  24742. width: 100%;
  24743. height: 100%;
  24744. object-fit: cover;
  24745. }
  24746. .timuImgBox {
  24747. margin: 10px 0;
  24748. display: flex;
  24749. flex-direction: column;
  24750. flex-wrap: wrap;
  24751. align-items: flex-start;
  24752. }
  24753. .timuImg {
  24754. width: 150px;
  24755. margin: 5px 0;
  24756. cursor: pointer;
  24757. }
  24758. .timuImg > img {
  24759. width: 100%;
  24760. height: 100%;
  24761. object-fit: cover;
  24762. }
  24763. .worksTop {
  24764. display: flex;
  24765. flex-direction: row;
  24766. align-items: flex-end;
  24767. }
  24768. .worksTitle {
  24769. display: flex;
  24770. flex-direction: row;
  24771. flex-wrap: nowrap;
  24772. align-items: center;
  24773. }
  24774. .worksTitle::before,
  24775. .worksTop::before {
  24776. content: "";
  24777. display: block;
  24778. width: 3px;
  24779. height: 20px;
  24780. background: #0061ff;
  24781. border-radius: 3px;
  24782. margin: 0 5px 0 0;
  24783. }
  24784. .corOpen {
  24785. margin: 0 0 0 10px;
  24786. font-size: 14px;
  24787. cursor: pointer;
  24788. color: #505050;
  24789. }
  24790. .corOpen:hover {
  24791. color: #499eef;
  24792. }
  24793. .navCorOpenBox {
  24794. display: flex;
  24795. flex-direction: row;
  24796. align-items: center;
  24797. justify-content: space-between;
  24798. height: 55px;
  24799. background: #ffffff;
  24800. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24801. border-radius: 8px 8px 0px 0px;
  24802. z-index: 9;
  24803. position: relative;
  24804. }
  24805. .navCorOpen {
  24806. padding-right: 15px;
  24807. cursor: pointer;
  24808. width: 45px;
  24809. display: flex;
  24810. }
  24811. .navCorOpen > img {
  24812. width: 100%;
  24813. height: 100%;
  24814. }
  24815. .mlImg {
  24816. width: 40px !important;
  24817. min-width: 40px;
  24818. cursor: pointer;
  24819. transform: rotate(180deg);
  24820. }
  24821. .mlImg > img {
  24822. width: 100%;
  24823. height: 100%;
  24824. }
  24825. .navLeftCss {
  24826. width: 100% !important;
  24827. left: 0 !important;
  24828. }
  24829. .isContentCss {
  24830. width: 100% !important;
  24831. }
  24832. .isAllWidth {
  24833. width: 100% !important;
  24834. }
  24835. .group_switch {
  24836. margin-right: 10px;
  24837. height: 30px;
  24838. display: flex;
  24839. align-items: center;
  24840. }
  24841. .group_switch > span {
  24842. margin-right: 5px;
  24843. }
  24844. .fileC_box {
  24845. padding-top: 15px;
  24846. }
  24847. .fileC_box > .fileC_title {
  24848. padding: 10px 5px 14px 10px;
  24849. border-top: 1px solid #cad1dc;
  24850. font-size: 14px;
  24851. font-weight: 400;
  24852. color: #cad1dc;
  24853. width: calc(100% - 20px);
  24854. margin: 0 auto;
  24855. box-sizing: border-box;
  24856. }
  24857. .pl_select_box {
  24858. height: 40px;
  24859. line-height: 40px;
  24860. width: 100%;
  24861. cursor: pointer;
  24862. padding: 0 20px;
  24863. box-sizing: border-box;
  24864. border-radius: 5px;
  24865. border: 1px solid #d6d6d6;
  24866. white-space: nowrap;
  24867. overflow: hidden;
  24868. text-overflow: ellipsis;
  24869. background: #fff;
  24870. text-align: left;
  24871. }
  24872. .newButton {
  24873. width: 102px;
  24874. height: 36px;
  24875. background: #e7ebf1;
  24876. border-radius: 4px;
  24877. color: #0e1e33;
  24878. font-weight: 400;
  24879. font-size: 14px;
  24880. border: none;
  24881. float: right;
  24882. margin-left: 10px;
  24883. }
  24884. .el-table >>> .even_row {
  24885. background-color: #f0f4fa;
  24886. }
  24887. .stageBoxCss,
  24888. .stageBoxIsCss {
  24889. display: flex;
  24890. flex-direction: row;
  24891. flex-wrap: nowrap;
  24892. align-items: center;
  24893. height: 50px;
  24894. border-bottom: 1px solid #e2f5fc;
  24895. cursor: pointer;
  24896. width: 100%;
  24897. }
  24898. .stageBoxIsCss {
  24899. background: #0061ff;
  24900. color: #fff;
  24901. border-radius: 8px;
  24902. }
  24903. .closeTri,
  24904. .closeTri1 {
  24905. min-width: 15px;
  24906. width: 15px;
  24907. height: 15px;
  24908. }
  24909. .closeTri1 {
  24910. padding-left: 10px;
  24911. cursor: pointer;
  24912. }
  24913. .closeTri > img,
  24914. .closeTri1 > img {
  24915. width: 100%;
  24916. height: 100%;
  24917. /* transition: all .5s; */
  24918. }
  24919. .noToolBlue {
  24920. min-width: 10px;
  24921. width: 10px;
  24922. height: 10px;
  24923. background: #0061ff;
  24924. border-radius: 50%;
  24925. margin-left: 13px;
  24926. }
  24927. .stageChild,
  24928. .toolChild {
  24929. height: 0;
  24930. overflow: hidden;
  24931. transition: all 0.5s;
  24932. }
  24933. /* .toolChild { */
  24934. /* margin: 0 0 0 17px;
  24935. padding: 0 0 0 20px;
  24936. border-left: 1px solid #d7d7d7; */
  24937. /* } */
  24938. .toolChild > div + div{
  24939. margin-top:5px;
  24940. }
  24941. .gjCss {
  24942. display: flex;
  24943. flex-direction: row;
  24944. flex-wrap: nowrap;
  24945. align-items: center;
  24946. padding: 10px 0 10px 40px;
  24947. box-sizing: border-box;
  24948. font-size: 14px;
  24949. cursor: pointer;
  24950. border-radius:5px;
  24951. }
  24952. .toolChild > div {
  24953. position: relative;
  24954. width: 100%;
  24955. }
  24956. .toolChild > div::before {
  24957. /* content: "";
  24958. width: 15px;
  24959. height: 1px;
  24960. background: #cad1dc;
  24961. position: absolute;
  24962. top: 24px;
  24963. left: -20px;
  24964. display: block; */
  24965. }
  24966. .isGjCss {
  24967. /* color: #0061ff; */
  24968. color:#fff;
  24969. background: rgb(55, 129, 252);
  24970. /* background-color: #e0eafb !important;
  24971. color: #0061ff !important; */
  24972. }
  24973. .navItem {
  24974. background: #ffffff;
  24975. border-radius: 4px;
  24976. width: 100%;
  24977. margin: 10px auto;
  24978. position: relative;
  24979. height: 40px;
  24980. display: flex;
  24981. flex-direction: row;
  24982. flex-wrap: nowrap;
  24983. align-items: center;
  24984. }
  24985. .navItemList {
  24986. display: flex;
  24987. flex-direction: row;
  24988. flex-wrap: nowrap;
  24989. align-items: center;
  24990. padding: 0 13px;
  24991. cursor: pointer;
  24992. width: calc(100% - 60px);
  24993. height: 100%;
  24994. }
  24995. .navItemList > div:first-child {
  24996. min-width: 60px;
  24997. }
  24998. .navItemList > div:last-child {
  24999. width: calc(100% - 80px);
  25000. white-space: nowrap;
  25001. overflow: hidden;
  25002. text-overflow: ellipsis;
  25003. word-break: break-word;
  25004. }
  25005. /* .isItemList > div {
  25006. color: #fff !important;
  25007. } */
  25008. .tool_work_box {
  25009. width: 100%;
  25010. padding: 0 37px 0;
  25011. box-sizing: border-box;
  25012. }
  25013. .tool_box {
  25014. width: 100%;
  25015. padding: 0 0 0 20px;
  25016. }
  25017. .tool_type_box {
  25018. display: flex;
  25019. flex-direction: row;
  25020. align-items: baseline;
  25021. flex-wrap: nowrap;
  25022. justify-content: flex-start;
  25023. position: relative;
  25024. }
  25025. .toolSort {
  25026. display: flex;
  25027. flex-direction: row;
  25028. flex-wrap: wrap;
  25029. justify-content: flex-start;
  25030. align-items: flex-start;
  25031. padding: 0 0 15px 0;
  25032. }
  25033. .toolSort > div {
  25034. margin: 0 10px 0 0;
  25035. width: 135px;
  25036. box-sizing: border-box;
  25037. border: 2px solid transparent;
  25038. }
  25039. .tools {
  25040. width: 100%;
  25041. display: flex;
  25042. flex-direction: column;
  25043. flex-wrap: nowrap;
  25044. align-items: flex-start;
  25045. }
  25046. .whiteBIcon {
  25047. width: fit-content;
  25048. cursor: pointer;
  25049. display: flex;
  25050. flex-direction: column;
  25051. flex-wrap: nowrap;
  25052. align-items: center;
  25053. font-size: 14px;
  25054. }
  25055. .tool:hover {
  25056. border: 2px solid #a5c7ff;
  25057. border-radius: 5px;
  25058. }
  25059. .whiteBIcon > img {
  25060. width: 65px;
  25061. height: 100%;
  25062. }
  25063. .whiteBIcon > img {
  25064. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25065. border-radius: 15px;
  25066. }
  25067. .check {
  25068. /* width: 20px;
  25069. height: 20px; */
  25070. cursor: pointer;
  25071. margin: 10px 0;
  25072. position: absolute;
  25073. right: 2px;
  25074. top: -5px;
  25075. }
  25076. .noChoose,
  25077. .isChoose {
  25078. width: 15px;
  25079. height: 15px;
  25080. border-radius: 50%;
  25081. border: 1px solid #adadad;
  25082. }
  25083. .isChoose {
  25084. border: 4px solid #0363ff !important;
  25085. width: 10px;
  25086. height: 10px;
  25087. }
  25088. .isToolChoose {
  25089. border: 2px solid #5394ff !important;
  25090. border-radius: 5px;
  25091. box-shadow: 0 0 6px 0px #5394ff;
  25092. }
  25093. .checkDiv {
  25094. display: flex;
  25095. align-items: center;
  25096. }
  25097. .checkDiv span {
  25098. margin-left: 5px;
  25099. color: #858585;
  25100. }
  25101. .check img {
  25102. width: 20px;
  25103. height: 20px;
  25104. }
  25105. .lockTaskIcon {
  25106. width: 20px;
  25107. height: 20px;
  25108. position: absolute;
  25109. right: 10px;
  25110. top: 10px;
  25111. }
  25112. .lockTaskIcon > img {
  25113. width: 100%;
  25114. height: 100%;
  25115. }
  25116. .pick_box {
  25117. display: flex;
  25118. align-items: flex-start;
  25119. flex-wrap: wrap;
  25120. }
  25121. .selectBox {
  25122. width: 110px;
  25123. margin-left: 10px;
  25124. margin: 0 10px 0 auto;
  25125. }
  25126. .selectBox >>> .el-input__inner {
  25127. height: 30px;
  25128. line-height: 30px;
  25129. }
  25130. .selectBox >>> .el-input__icon {
  25131. line-height: 30px;
  25132. }
  25133. .sentenceTitle {
  25134. display: flex;
  25135. flex-direction: row;
  25136. flex-wrap: nowrap;
  25137. align-items: center;
  25138. }
  25139. .sentenceTitle::before {
  25140. content: attr(index);
  25141. background: #3681fc;
  25142. border-radius: 50%;
  25143. color: #fff;
  25144. width: 25px;
  25145. height: 25px;
  25146. min-width: 25px;
  25147. min-height: 25px;
  25148. text-align: center;
  25149. line-height: 25px;
  25150. margin-right: 5px;
  25151. }
  25152. .hfBox {
  25153. padding: 10px;
  25154. box-sizing: border-box;
  25155. }
  25156. .whoReplyWho {
  25157. display: flex;
  25158. flex-direction: row;
  25159. flex-wrap: nowrap;
  25160. align-items: baseline;
  25161. justify-content: flex-start;
  25162. }
  25163. .hfBottom {
  25164. display: flex;
  25165. flex-direction: row;
  25166. flex-wrap: nowrap;
  25167. align-items: center;
  25168. justify-content: space-between;
  25169. font-size: 14px;
  25170. }
  25171. .deleteHfItem {
  25172. cursor: pointer;
  25173. width: 20px;
  25174. height: 20px;
  25175. }
  25176. .deleteHfItem > img {
  25177. width: 100%;
  25178. height: 100%;
  25179. }
  25180. .whoReplyWho > .hfImg {
  25181. width: 12px;
  25182. height: 12px;
  25183. margin: 0 5px;
  25184. }
  25185. .whoReplyWho > .hfImg > img {
  25186. width: 100%;
  25187. height: 100%;
  25188. }
  25189. .hfContent {
  25190. padding-top: 10px;
  25191. box-sizing: border-box;
  25192. display: -webkit-box;
  25193. overflow: hidden;
  25194. white-space: normal !important;
  25195. text-overflow: ellipsis;
  25196. word-wrap: break-word;
  25197. -webkit-box-orient: vertical;
  25198. }
  25199. .hfTime {
  25200. text-align: left;
  25201. box-sizing: border-box;
  25202. padding: 10px 0 10px 0px;
  25203. color: #bfbfbf;
  25204. font-size: 14px;
  25205. }
  25206. .btnAllNT {
  25207. position: fixed;
  25208. bottom: 100px;
  25209. right: 40px;
  25210. z-index: 999;
  25211. display: flex;
  25212. flex-direction: row;
  25213. }
  25214. .btnAllNT > img {
  25215. cursor: pointer;
  25216. width: 80px;
  25217. }
  25218. .toolMask {
  25219. position: fixed;
  25220. width: 100%;
  25221. height: 100%;
  25222. background: #3f3c3c;
  25223. opacity: 0.5;
  25224. top: 0;
  25225. left: 0;
  25226. z-index: 999;
  25227. }
  25228. .addToolCss {
  25229. position: fixed;
  25230. z-index: 999;
  25231. background: #fff;
  25232. right: 5%;
  25233. bottom: 18%;
  25234. min-width: 1035px;
  25235. min-height: 300px;
  25236. border-radius: 10px;
  25237. box-shadow: 0 0 8px 1px #b2b2b2;
  25238. }
  25239. .toolTop {
  25240. display: flex;
  25241. flex-direction: row;
  25242. flex-wrap: nowrap;
  25243. justify-content: space-between;
  25244. align-items: center;
  25245. padding: 20px;
  25246. }
  25247. .toolTop > div:nth-child(2) {
  25248. width: 15px;
  25249. height: 15px;
  25250. padding-right: 10px;
  25251. cursor: pointer;
  25252. }
  25253. .toolTop > div:nth-child(2) > img {
  25254. width: 100%;
  25255. height: 100%;
  25256. }
  25257. .fullStyle>>>.el-dialog__body {
  25258. height: calc(100% - 125px) !important;
  25259. box-sizing: border-box;
  25260. padding: 30px 0 !important;
  25261. background: #fff !important;
  25262. }
  25263. .fullStyle>>>.el-dialog {
  25264. width: 100% !important;
  25265. max-width: 100% !important;
  25266. height: 100% !important;
  25267. margin: 0 !important;
  25268. }
  25269. .fullStyle {
  25270. width: 100% !important;
  25271. max-width: 100% !important;
  25272. height: 100% !important;
  25273. margin: 0 auto !important;
  25274. }
  25275. .fullStyle>>>.el-dialog__footer{
  25276. background: #fff !important;
  25277. }
  25278. .engUpBox {
  25279. width: 100%;
  25280. height: 100%;
  25281. }
  25282. .engTitle,
  25283. .engText {
  25284. display: flex;
  25285. flex-direction: row;
  25286. flex-wrap: nowrap;
  25287. align-items: flex-start;
  25288. padding: 0 20px 20px 20px;
  25289. box-sizing: border-box;
  25290. }
  25291. .engTitle > .div:first-child,
  25292. .engText > div:first-child {
  25293. min-width: 75px;
  25294. }
  25295. .correctBox{
  25296. width: 100%;
  25297. display: flex;
  25298. flex-direction: row;
  25299. flex-wrap: nowrap;
  25300. align-items: flex-start;
  25301. }
  25302. .oldBox{
  25303. width: 50%;
  25304. height: 100%;
  25305. display: flex;
  25306. flex-direction: column;
  25307. flex-wrap: nowrap;
  25308. align-items: center;
  25309. border-top: 1px solid #d9d9d9;
  25310. border-left: 1px solid #d9d9d9;
  25311. border-right: 1px solid #d9d9d9;
  25312. }
  25313. .oldBox>div:first-child{
  25314. width: 100%;
  25315. text-align: center;
  25316. background: #d9d9d9;
  25317. height: 35px;
  25318. line-height: 35px;
  25319. font-weight: bold;
  25320. }
  25321. .oldText{
  25322. width: 100%;
  25323. height: calc(100% - 35px);
  25324. overflow: auto;
  25325. margin: 10px 0;
  25326. display: flex;
  25327. flex-direction: column;
  25328. flex-wrap: nowrap;
  25329. align-content: center;
  25330. align-items: center;
  25331. }
  25332. .detailBox{
  25333. width: 50%;
  25334. padding: 10px;
  25335. background: #f6f6f6;
  25336. border-radius: 5px;
  25337. }
  25338. .oldDetail,.oldDetail1{
  25339. padding-bottom: 30px;
  25340. }
  25341. .oldImg{
  25342. width:30px;
  25343. height: 30px;
  25344. }
  25345. .oldImg>img{
  25346. width: 100%;
  25347. height: 100%;
  25348. }
  25349. .allName{
  25350. min-width: 200px;
  25351. white-space: nowrap;
  25352. overflow: hidden;
  25353. text-overflow: ellipsis;
  25354. word-break: break-word;
  25355. cursor: pointer;
  25356. text-align: center;
  25357. border: 1px solid #bcc2cc;
  25358. box-sizing: border-box;
  25359. }
  25360. .engUpTop{
  25361. max-height: 300px;
  25362. overflow: auto;
  25363. }
  25364. .isUpdateToolDetailClass{
  25365. padding: 0 !important;
  25366. }
  25367. .isUpdateToolDetailClass textarea{
  25368. padding:12px;
  25369. font-size: 16px;
  25370. min-height:100%;
  25371. width: 100%;
  25372. box-sizing:border-box;
  25373. outline: none;
  25374. border:none;
  25375. line-height: 30px;
  25376. resize: none;
  25377. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25378. color: #838383;
  25379. }
  25380. .show_taskD {
  25381. min-width: fit-content;
  25382. margin-left: 10px;
  25383. display: flex;
  25384. align-items: center;
  25385. font-size: 14px;
  25386. cursor: pointer;
  25387. color: #717c8d;
  25388. }
  25389. .show_taskD > img {
  25390. width: 15px;
  25391. margin-right: 5px;
  25392. transition: 0.2s all;
  25393. transform: rotate(-90deg);
  25394. }
  25395. .show_taskD.show > img {
  25396. transform: rotate(0deg);
  25397. }
  25398. .dialog_diyCopy >>> .el-dialog__header {
  25399. display: none !important;
  25400. }
  25401. .dialog_diyCopy >>> .el-dialog__body {
  25402. padding: 0 !important;
  25403. height: 100% !important;
  25404. }
  25405. .confirmOpenDigCss > div{
  25406. font-size: 14px;
  25407. color: rgba(0, 0, 0, 0.6);
  25408. }
  25409. .confirmOpenDigCss >>> .el-dialog{
  25410. border-radius: 6px;
  25411. }
  25412. .confirmOpenDigCss >>> .el-dialog__body{
  25413. padding: 25px !important;
  25414. }
  25415. .confirmOpenDigCss > span{
  25416. font-size: 16px;
  25417. font-weight: 600;
  25418. color: rgba(0, 0, 0, 0.8);
  25419. }
  25420. .correctCss{
  25421. position: absolute;
  25422. bottom: -70px;
  25423. background: #409eff;
  25424. color: #fff;
  25425. }
  25426. div::-webkit-scrollbar {
  25427. width: 10px;
  25428. height: 6px;
  25429. }
  25430. .Ovh{
  25431. margin: 5px 0;
  25432. width: 4em;
  25433. -webkit-line-clamp: 2;
  25434. display: -webkit-box;
  25435. -webkit-box-orient: vertical;
  25436. overflow: hidden;
  25437. text-overflow: ellipsis;
  25438. }
  25439. </style>