studyStudent.vue 843 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 100%;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. overflow: auto;
  12. "
  13. >
  14. <!-- <div class="btnAllNT">
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div> -->
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 8px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. </div>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</div>
  215. <div v-if="t.tool == 70">英语口语</div>
  216. <div v-if="t.tool == 25">目标管理</div>
  217. <div v-if="t.tool == 26">课程设计</div>
  218. <div v-if="t.tool == 62">交互视频</div>
  219. <div v-if="t.tool == 71">AI智能体</div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  229. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  230. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  231. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  232. <div>任务{{ taskCount + 1 }}</div>
  233. <el-tooltip
  234. effect="light"
  235. :content="
  236. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  237. "
  238. placement="top"
  239. >
  240. <div>
  241. {{
  242. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  243. .task
  244. }}
  245. </div>
  246. </el-tooltip>
  247. </div>
  248. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  249. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  250. <div class="btnLeft">
  251. <el-tooltip effect="light" content="刷新" placement="top">
  252. <div class="reBtnIcon" @click="refreshCourse">
  253. <span>刷新</span>
  254. </div>
  255. </el-tooltip>
  256. <el-tooltip effect="light" content="评论" placement="top">
  257. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  258. <span>评论</span>
  259. </div>
  260. </el-tooltip>
  261. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  262. <el-tooltip effect="light" content="录制" placement="top">
  263. <div class="vedioIcon" @click="startRecording">
  264. <span>录制</span>
  265. </div>
  266. </el-tooltip>
  267. </div>
  268. <div v-else-if="tType == 1 || tType == 4">
  269. <el-tooltip effect="light" content="下载" placement="top">
  270. <div class="vedioIcon1" @click="stopRecording">
  271. <span>下载</span>
  272. </div>
  273. </el-tooltip>
  274. </div>
  275. </div>
  276. <div class="btnRight">
  277. <div
  278. class="last"
  279. @click="nextOrpreSteps(0)"
  280. v-if="!(IsFollow && tType == 2)"
  281. @mouseover="isHovered = true"
  282. @mouseout="isHovered = false"
  283. >
  284. <div class="lastImg">
  285. <img
  286. :src="
  287. isHovered
  288. ? require('../../assets/icon/newIcons/whiteLast.png')
  289. : require('../../assets/icon/newIcons/last.png')
  290. "
  291. alt=""
  292. />
  293. </div>
  294. <div class="lastText">上一步</div>
  295. </div>
  296. <div
  297. class="last"
  298. @click="nextOrpreSteps(1)"
  299. v-if="!(IsFollow && tType == 2)"
  300. @mouseover="isHovered1 = true"
  301. @mouseout="isHovered1 = false"
  302. >
  303. <div class="lastText">下一步</div>
  304. <div class="lastImg">
  305. <img
  306. :src="
  307. isHovered1
  308. ? require('../../assets/icon/newIcons/whiteNext.png')
  309. : require('../../assets/icon/newIcons/next.png')
  310. "
  311. alt=""
  312. />
  313. </div>
  314. </div>
  315. <div
  316. class="last"
  317. @click="juriVisible = true"
  318. v-if="tType == 1"
  319. @mouseover="isHovered2 = true"
  320. @mouseout="isHovered2 = false"
  321. >
  322. <div class="lastImg">
  323. <img
  324. :src="
  325. isHovered2
  326. ? require('../../assets/icon/newIcons/whiteLock.png')
  327. : require('../../assets/icon/newIcons/lock.png')
  328. "
  329. alt=""
  330. />
  331. </div>
  332. <div class="lastText">权限</div>
  333. </div>
  334. <div
  335. class="returnBtn1 returnIcon"
  336. @click.stop="
  337. goTo(
  338. '/courseDetail?userid=' +
  339. userid +
  340. '&oid=' +
  341. oid +
  342. '&org=' +
  343. org +
  344. '&cid=' +
  345. classId +
  346. '&courseId=' +
  347. id +
  348. '&tType=' +
  349. tType +
  350. '&screenType=' +
  351. screenType
  352. )
  353. "
  354. >
  355. <div class="lastImg">
  356. <img src="../../assets/icon/newIcon/return.png" alt="" />
  357. </div>
  358. <div class="lastText" style="color: #000">返回</div>
  359. </div>
  360. </div>
  361. <!-- <div
  362. class="returnBtn lockIcon"
  363. @click="juriVisible = true"
  364. v-if="tType == 1"
  365. >
  366. 权限
  367. </div>
  368. <div
  369. class="returnBtn vedioIcon"
  370. @click="startRecording"
  371. v-if="!videoStart && (tType == 1 || tType == 4)"
  372. >
  373. 录制
  374. </div>
  375. <div
  376. class="returnBtn"
  377. @click="stopRecording"
  378. v-else-if="tType == 1 || tType == 4"
  379. style="background: #ee5255"
  380. >
  381. 下载
  382. </div>
  383. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  384. 评论
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="nextOrpreSteps(0)"
  389. v-if="!(IsFollow && tType == 2)"
  390. >
  391. 上一步
  392. </div>
  393. <div
  394. class="returnBtn"
  395. @click="nextOrpreSteps(1)"
  396. v-if="!(IsFollow && tType == 2)"
  397. >
  398. 下一步
  399. </div>
  400. <div class="returnBtn" @click="refreshCourse">刷新</div>
  401. <div
  402. class="returnBtn returnIcon"
  403. @click.stop="
  404. goTo(
  405. '/courseDetail?userid=' +
  406. userid +
  407. '&oid=' +
  408. oid +
  409. '&org=' +
  410. org +
  411. '&cid=' +
  412. classId +
  413. '&courseId=' +
  414. id +
  415. '&tType=' +
  416. tType +
  417. '&screenType=' +
  418. screenType
  419. )
  420. "
  421. >
  422. 返回
  423. </div> -->
  424. </div>
  425. </div>
  426. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .taskDetail3 && -->
  428. <div
  429. class="isNoMessage"
  430. v-if="
  431. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  432. .chapterData.length == 0 &&
  433. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .toolChoose[0].tool.length == 0 &&
  435. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .taskDetail == '' &&
  437. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .eList &&
  439. !(
  440. courseDetail.userid == userid ||
  441. (courseDetail.course_teacher &&
  442. courseDetail.course_teacher.indexOf(userid) != -1)
  443. )
  444. "
  445. >
  446. <img src="../../assets/icon/isNoMessage.png" alt />
  447. </div>
  448. <div class="study_top" :class="{ pzClass: pzDialog }">
  449. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .taskDetail3 || -->
  451. <div
  452. class="vedioBox"
  453. v-if="
  454. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  455. .taskDetail != '' ||
  456. vChapterData[0].length > 0 ||
  457. fileC[0].length > 0
  458. "
  459. style="border-radius: 0 0 20px 20px"
  460. >
  461. <!-- <div
  462. class="taskBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail3
  466. "
  467. >
  468. <div
  469. style="
  470. display: flex;
  471. flex-wrap: nowrap;
  472. flex-direction: column;
  473. position: relative;
  474. "
  475. >
  476. <div
  477. style="
  478. padding: 15px 0;
  479. line-height: 29px;
  480. font-size: 18px;
  481. color: #0e1e33;
  482. "
  483. class="cont"
  484. v-if="
  485. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  486. .taskDetail3 != ''
  487. "
  488. v-html="
  489. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  490. .taskDetail3
  491. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  492. taskCount
  493. ].taskDetail3)
  494. : '暂无描述'
  495. "
  496. ></div>
  497. </div>
  498. </div> -->
  499. <div
  500. class="taskBox"
  501. v-if="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .taskDetail != ''
  504. "
  505. >
  506. <div
  507. style="
  508. display: flex;
  509. flex-wrap: nowrap;
  510. flex-direction: column;
  511. position: relative;
  512. "
  513. >
  514. <div
  515. style="
  516. padding: 15px 0;
  517. line-height: 29px;
  518. font-size: 18px;
  519. color: #0e1e33;
  520. "
  521. class="cont"
  522. v-if="
  523. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  524. .taskDetail != ''
  525. "
  526. v-html="
  527. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  528. .taskDetail
  529. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  530. taskCount
  531. ].taskDetail
  532. : '暂无描述'
  533. "
  534. ></div>
  535. </div>
  536. </div>
  537. <div
  538. class="student_head"
  539. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  540. >
  541. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  542. <div
  543. :class="
  544. contentDialog == false
  545. ? 'box_course isContentCss'
  546. : 'box_course'
  547. "
  548. v-if="
  549. vChapterData.length > 0 &&
  550. vChapterData[0] &&
  551. showType !== ''
  552. "
  553. >
  554. <div class="wheel" style="height: auto" v-if="showType === 0">
  555. <div
  556. class="workd_media"
  557. style="height: 650px; width: calc(100% - 50px)"
  558. >
  559. <video-player
  560. class="video-player vjs-custom-skin"
  561. :class="contentDialog == false ? 'isAllWidth' : ''"
  562. :playsinline="true"
  563. :options="playerO[0]"
  564. @play="onPlayerPlay($event)"
  565. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  566. ></video-player>
  567. </div>
  568. </div>
  569. <div
  570. class="wheel"
  571. v-if="showType == 1"
  572. style="
  573. box-shadow: 0 0 6px 1px #f2f2f2;
  574. width: 95%;
  575. margin: 0 auto;
  576. background: #f1f1f1;
  577. "
  578. >
  579. <div class="title">查看文档</div>
  580. <el-form class="textBox">
  581. <el-form-item class="textTitle">
  582. <div style="font-size: 22px">
  583. {{ text.name }}
  584. </div>
  585. </el-form-item>
  586. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  587. <div v-html="text.url" class="textContent cont"></div>
  588. </el-form>
  589. </div>
  590. <div
  591. class="wheel"
  592. v-if="
  593. pptImgUrl1.indexOf(
  594. 'https://view.officeapps.live.com/op/view.aspx?src='
  595. ) != -1 && showType == 2
  596. "
  597. style="width: 95%; margin: 0 auto"
  598. >
  599. <iframe
  600. style="width: 100%; height: 100%; border: none"
  601. :src="pptImgUrl1"
  602. ></iframe>
  603. </div>
  604. <div
  605. class="wheel"
  606. v-else-if="showType == 2"
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. security="restricted"
  612. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-if="showType == 3"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <pdf
  622. :pdfUrl="pptImgUrl1"
  623. style="width: 100%; height: 100%; overflow: auto"
  624. ></pdf>
  625. </div>
  626. <div
  627. class="wheel"
  628. v-if="showType == 4"
  629. style="width: 95%; margin: 0 auto"
  630. >
  631. <el-image
  632. :src="pptImgUrl1"
  633. fit="contain"
  634. style="width: 100%; height: 100%; cursor: pointer"
  635. @click="previewImg(pptImgUrl1)"
  636. ></el-image>
  637. </div>
  638. </div>
  639. <div
  640. class="pButton"
  641. style="position: absolute; right: 20px; top: 0; z-index: 998"
  642. v-if="!contentDialog"
  643. @click="setContent(true)"
  644. >
  645. <!-- 批 -->
  646. <img
  647. src="../../assets/icon/newIcons/isLeft.png"
  648. style="width: 45px"
  649. alt=""
  650. />
  651. </div>
  652. <div
  653. v-if="contentDialog == true"
  654. :style="{
  655. width:
  656. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  657. showType === ''
  658. ? 'calc(100%)'
  659. : '300px',
  660. margin:
  661. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  662. showType === ''
  663. ? '0 15px'
  664. : '0 15px 0 0',
  665. }"
  666. >
  667. <div
  668. class="vedioList"
  669. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  670. style="height: 650px"
  671. >
  672. <div class="navCorOpenBox">
  673. <div class="navTitile">内容列表:</div>
  674. <div class="navCorOpen" @click="setContent(false)">
  675. <img
  676. src="../../assets/icon/newIcons/isRight.png"
  677. alt=""
  678. />
  679. </div>
  680. </div>
  681. <div class="navBox">
  682. <div
  683. v-show="
  684. vChapterData[0].length > 0 || fileC[0].length > 0
  685. "
  686. style="padding: 10px 0 25px 0"
  687. >
  688. <div
  689. class="vedioTimeBox"
  690. v-for="(vitem, vindex) in vChapterData[0]"
  691. :key="vindex + '1'"
  692. >
  693. <div class="navListItem" v-if="vitem.type == 2">
  694. <div
  695. @click="lookVedio(vitem.url, vindex)"
  696. class="navText"
  697. :class="isClickNav == vindex ? 'isClickNav' : ''"
  698. >
  699. <span v-if="vitem.text">{{ vitem.text }}-</span
  700. >{{ vitem.name }}
  701. </div>
  702. <div class="downIcon" @click="downloadFile2(vitem)">
  703. <img
  704. src="../../assets/icon/newIcon/down.png"
  705. alt
  706. />
  707. </div>
  708. </div>
  709. <div class="navListItem" v-if="vitem.type == 6">
  710. <div
  711. @click="lookText(0, vindex)"
  712. class="navText"
  713. :class="isClickNav == vindex ? 'isClickNav' : ''"
  714. >
  715. {{ vitem.name }}.doc
  716. </div>
  717. <div
  718. class="downIcon"
  719. @click="checkFileFull1(vitem.type, vitem)"
  720. >
  721. <img
  722. src="../../assets/icon/newIcon/allScreen.png"
  723. alt
  724. />
  725. </div>
  726. </div>
  727. <div
  728. class="navListItem"
  729. v-if="vitem.type == 8 || vitem.type == 14"
  730. >
  731. <div
  732. @click="doUrl(vitem.url, vindex)"
  733. class="navText"
  734. :class="isClickNav == vindex ? 'isClickNav' : ''"
  735. >
  736. {{ vitem.title ? vitem.title : vitem.url }}
  737. </div>
  738. <div
  739. class="downIcon"
  740. @click="checkFileFull1(vitem.type, vitem)"
  741. >
  742. <img
  743. src="../../assets/icon/newIcon/allScreen.png"
  744. alt
  745. />
  746. </div>
  747. </div>
  748. <div class="navListItem" v-if="vitem.type == 3">
  749. <div
  750. @click="downFile(vitem, vindex)"
  751. class="navText"
  752. :class="isClickNav == vindex ? 'isClickNav' : ''"
  753. >
  754. <span v-if="vitem.text">{{ vitem.text }}-</span
  755. >{{ vitem.name }}
  756. </div>
  757. <div
  758. class="downIcon"
  759. @click="checkFileFull1(vitem.type, vitem)"
  760. >
  761. <img
  762. src="../../assets/icon/newIcon/allScreen.png"
  763. alt
  764. />
  765. </div>
  766. <div class="downIcon" @click="downloadFile2(vitem)">
  767. <img
  768. src="../../assets/icon/newIcon/down.png"
  769. alt
  770. />
  771. </div>
  772. </div>
  773. <div class="navListItem" v-if="vitem.type == 12">
  774. <div class="navText" @click="downloadFile2(vitem)">
  775. <span v-if="vitem.text">{{ vitem.text }}-</span
  776. >{{ vitem.name }}
  777. </div>
  778. <div
  779. class="downIcon"
  780. @click="checkFileFull1(vitem.type, vitem)"
  781. >
  782. <img
  783. src="../../assets/icon/newIcon/allScreen.png"
  784. alt
  785. />
  786. </div>
  787. <div class="downIcon" @click="downloadFile2(vitem)">
  788. <img
  789. src="../../assets/icon/newIcon/down.png"
  790. alt
  791. />
  792. </div>
  793. </div>
  794. <div class="navListItem" v-if="vitem.type == 13">
  795. <div
  796. class="navText"
  797. @click="checkPhoto(vitem, vindex)"
  798. :class="isClickNav == vindex ? 'isClickNav' : ''"
  799. >
  800. {{ vitem.name }}
  801. </div>
  802. <div class="downIcon" @click="downloadFile2(vitem)">
  803. <img
  804. src="../../assets/icon/newIcon/down.png"
  805. alt
  806. />
  807. </div>
  808. </div>
  809. </div>
  810. <div class="fileC_box" v-if="fileC[0].length > 0">
  811. <div class="fileC_title">以下文件不支持预览</div>
  812. <div
  813. class="vedioTimeBox"
  814. v-for="(vitem, vindex) in fileC[0]"
  815. :key="vindex + '1'"
  816. >
  817. <div class="navListItem" v-if="vitem.type == 12">
  818. <div class="navText" style="color: #acb4bf">
  819. <span v-if="vitem.text">{{ vitem.text }}-</span
  820. >{{ vitem.name }}
  821. </div>
  822. <div
  823. class="downIcon"
  824. @click="downloadFile2(vitem)"
  825. >
  826. <img
  827. src="../../assets/icon/newIcon/down.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. <div style="width: calc(100% - 315px)">
  840. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  841. <!-- <el-button
  842. type="primary"
  843. class="newButton"
  844. @click="checkFileFull(showType, pptImgUrl1)"
  845. >全屏查看</el-button
  846. >
  847. <el-button
  848. type="primary"
  849. class="newButton"
  850. @click="downloadFile(pptImgUrl1)"
  851. v-if="showType != 2"
  852. >文件下载</el-button
  853. > -->
  854. <el-button
  855. v-if="
  856. showType == 2 &&
  857. pptImgUrl1.indexOf(
  858. 'https://view.officeapps.live.com/op/view.aspx?src='
  859. ) == -1
  860. "
  861. type="primary"
  862. class="newButton"
  863. @click="openLine(pptImgUrl1)"
  864. >打开链接
  865. </el-button>
  866. </div>
  867. <!-- <div
  868. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  869. v-if="showType == 1"
  870. >
  871. <el-button
  872. type="primary"
  873. class="newButton"
  874. @click="checkFileFull(showType, text)"
  875. >全屏查看</el-button
  876. >
  877. </div> -->
  878. </div>
  879. </div>
  880. </div>
  881. <div class="student_body" v-resize="resize">
  882. <div
  883. class="vedioBox"
  884. :style="{
  885. borderRadius:
  886. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  887. .taskDetail == '' &&
  888. vChapterData[taskCount].length == 0 &&
  889. fileC[taskCount].length == 0
  890. ? '0 0 20px 20px'
  891. : '20px',
  892. }"
  893. v-if="
  894. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  895. .toolChoose[0].tool &&
  896. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  897. .toolChoose[0].tool.length > 0
  898. "
  899. >
  900. <div
  901. class="toolHeng2"
  902. style="position: relative"
  903. v-if="
  904. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  905. .toolChoose[0].tool &&
  906. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  907. .toolChoose[0].tool.length &&
  908. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  909. .toolChoose[0].tool.length > 0
  910. "
  911. >
  912. <div class="workNav">工作区</div>
  913. <div
  914. class="filebox"
  915. style="flex-wrap: nowrap"
  916. v-for="(tool, toolIndex) in chapInfoList[courseType]
  917. .chapterInfo[0].taskJson[taskCount].toolChoose"
  918. :key="toolIndex"
  919. >
  920. <div class="bzBox">
  921. <div class="yCss"></div>
  922. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  923. 工具{{ toolIndex + 1 }}
  924. </div>
  925. <div
  926. v-if="timeWorkList[toolIndex].length > 0"
  927. style="margin: 0 0 0 10px"
  928. >
  929. {{
  930. timeWorkList[toolIndex][0].time
  931. ? "时间:" + timeWorkList[toolIndex][0].time
  932. : ""
  933. }}
  934. </div>
  935. </div>
  936. <div class="toolBox">
  937. <div>
  938. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  939. :key="indexTool"-->
  940. <!-- <div class="iframeBox">
  941. <div
  942. class="addPoint isBorder"
  943. v-for="(tooC, toolCIndex) in tool.tool"
  944. :key="toolCIndex"
  945. >
  946. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  947. <div
  948. class="iframeName"
  949. >
  950. 电子白板
  951. </div>
  952. <iframe
  953. src="https://iwb.cocorobo.cn/"
  954. ref="whiteBoard"
  955. ></iframe>
  956. </div>
  957. </div>
  958. </div>-->
  959. <div class="noiframeBox">
  960. <div
  961. class="addPoint"
  962. v-for="(tooC, toolCIndex) in tool.tool"
  963. :key="toolCIndex"
  964. >
  965. <div v-if="tooC == 1">
  966. <img
  967. src="../../assets/icon/secondToolList/whiteBoard.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">电子白板</div>
  972. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  973. style="position: absolute;right: 33px;top: -30px;">
  974. 投影
  975. </div>
  976. </div>
  977. <div v-if="tooC == 3">
  978. <img
  979. src="../../assets/icon/secondToolList/mindMapping.png"
  980. alt
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. />
  983. <div style="margin: 5px 0">思维导图</div>
  984. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  985. style="position: absolute;right: 33px;top: -30px;">
  986. 投影
  987. </div>
  988. </div>
  989. <div v-if="tooC == 6">
  990. <img
  991. src="../../assets/icon/secondToolList/doc.png"
  992. alt
  993. @click="addTools(tooC, toolIndex, taskCount)"
  994. />
  995. <div style="margin: 5px 0">协同文档</div>
  996. </div>
  997. <div v-if="tooC == 7">
  998. <img
  999. src="../../assets/icon/secondToolList/mindNetwork.png"
  1000. alt
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. />
  1003. <div style="margin: 5px 0">思维网格</div>
  1004. <!-- && worksStudent[toolIndex].length>0 -->
  1005. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1006. style="position: absolute;right: 33px;top: -30px;">
  1007. 投影
  1008. </div>
  1009. </div>
  1010. <div v-if="tooC == 8">
  1011. <img
  1012. src="../../assets/icon/secondToolList/library.png"
  1013. alt
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. />
  1016. <div style="margin: 5px 0">素材库</div>
  1017. </div>
  1018. <div v-if="tooC == 17">
  1019. <img
  1020. src="../../assets/icon/secondToolList/library.png"
  1021. alt
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. />
  1024. <div style="margin: 5px 0">学习资料</div>
  1025. </div>
  1026. <div v-if="tooC == 2">
  1027. <img
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. src="../../assets/icon/secondToolList/note.png"
  1030. alt
  1031. />
  1032. <div style="margin: 5px 0">便签</div>
  1033. </div>
  1034. <div v-if="tooC == 4">
  1035. <img
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. src="../../assets/icon/thirdToolList/ask.png"
  1038. alt
  1039. />
  1040. <div style="margin: 5px 0">问卷调查</div>
  1041. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1042. style="position: absolute;right: 33px;top: -30px;">
  1043. 统计分析
  1044. </div>
  1045. </div>
  1046. <div v-if="tooC == 45">
  1047. <img
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. src="../../assets/icon/thirdToolList/choose.png"
  1050. alt
  1051. />
  1052. <div style="margin: 5px 0">选择题</div>
  1053. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1054. style="position: absolute;right: 33px;top: -30px;">
  1055. 投影
  1056. </div>
  1057. </div>
  1058. <!-- <div v-if="tooC == 5">
  1059. <img
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. src="../../assets/icon/thirdToolList/score.png"
  1062. alt
  1063. />
  1064. <div style="margin: 5px 0">量规评分</div>
  1065. </div> -->
  1066. <div v-if="tooC == 10">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../../assets/icon/thirdToolList/time.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">倒计时</div>
  1073. </div>
  1074. <div v-if="tooC == 15">
  1075. <img
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. src="../../assets/icon/thirdToolList/answer.png"
  1078. alt
  1079. />
  1080. <div style="margin: 5px 0">问答</div>
  1081. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1082. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1083. 投影
  1084. </div>
  1085. </div>
  1086. <div v-if="tooC == 26">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../../assets/icon/thirdToolList/courseDesign.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">课程设计</div>
  1093. </div>
  1094. <div v-if="tooC == 18">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">训练服务器</div>
  1101. </div>
  1102. <div v-if="tooC == 16">
  1103. <img
  1104. @click="addTools(tooC, toolIndex, taskCount)"
  1105. src="../../assets/icon/thirdToolList/work.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">作业提交</div>
  1109. </div>
  1110. <div v-if="tooC == 50">
  1111. <img
  1112. @click="addTools(tooC, toolIndex, taskCount)"
  1113. src="../../assets/icon/thirdToolList/plwork.png"
  1114. alt
  1115. />
  1116. <div style="margin: 5px 0">批量上传</div>
  1117. </div>
  1118. <div v-if="tooC == 21">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../../assets/icon/fourthToolList/program.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">AIoT Blockly</div>
  1125. </div>
  1126. <!-- <div v-if="tooC == 22">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../../assets/icon/fourthToolList/program.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">AI体验</div>
  1133. </div> -->
  1134. <div v-if="tooC == 23">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">AI Python</div>
  1141. </div>
  1142. <div v-if="tooC == 24">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/fourthToolList/AIprogram.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">AI Blockly</div>
  1149. </div>
  1150. <div v-if="tooC == 25">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/evalua.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">目标管理</div>
  1157. </div>
  1158. <div v-if="tooC == 31">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/secondToolList/networkPanel.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">数学画板</div>
  1165. </div>
  1166. <div v-if="tooC == 28">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/secondToolList/translation.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">翻译</div>
  1173. </div>
  1174. <div v-if="tooC == 37">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/secondToolList/mohe.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">魔盒识字</div>
  1181. </div>
  1182. <div v-if="tooC == 38">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/secondToolList/24game.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">24点</div>
  1189. </div>
  1190. <div v-if="tooC == 39">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/secondToolList/GeoGebra.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">GeoGebra</div>
  1197. </div>
  1198. <div v-if="tooC == 32">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/thirdToolList/code.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">源码编辑</div>
  1205. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1206. style="position: absolute;left: 110px;bottom: 30px;">
  1207. 上传文件
  1208. <input type="file" accept="*" style="display: none"
  1209. @change="beforeUpload1($event, 7, toolIndex)" />
  1210. </div> -->
  1211. </div>
  1212. <div v-if="tooC == 40">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../../assets/icon/secondToolList/eval.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">个人评价</div>
  1219. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1220. style="position: absolute;right: 33px;top: -30px;">
  1221. 投影
  1222. </div>
  1223. </div>
  1224. <div v-if="tooC == 41">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/thirdToolList/select.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,41)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 投影
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 44">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/thirdToolList/hanClass.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">汉字宫</div>
  1243. </div>
  1244. <div v-if="tooC == 47">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/fourthToolList/conSentences.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">排序</div>
  1251. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. 投影
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 48">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/fourthToolList/table.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">表格</div>
  1263. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1264. style="position: absolute;right: 33px;top: -30px;">
  1265. 投影
  1266. </div>
  1267. </div>
  1268. <div v-if="tooC == 52">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../../assets/icon/fourthToolList/text.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">文档</div>
  1275. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1276. style="position: absolute;right: 33px;top: -30px;">
  1277. 投影
  1278. </div>
  1279. </div>
  1280. <div v-if="tooC == 49">
  1281. <img
  1282. @click="addTools(tooC, toolIndex, taskCount)"
  1283. src="../../assets/icon/fourthToolList/group.png"
  1284. alt
  1285. />
  1286. <div style="margin: 5px 0">学生分组</div>
  1287. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1288. style="position: absolute;right: 33px;top: -30px;">
  1289. 投影
  1290. </div>
  1291. </div>
  1292. <div v-if="tooC == 57">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../../assets/icon/fourthToolList/cocopi.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">CocoPi</div>
  1299. </div>
  1300. <div v-if="tooC == 58">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../../assets/icon/fourthToolList/car.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">模拟驾驶</div>
  1307. </div>
  1308. <div v-if="tooC == 59">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../../assets/icon/fourthToolList/lineSearch.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">路径搜索</div>
  1315. </div>
  1316. <div v-if="tooC == 60">
  1317. <img
  1318. @click="addTools(tooC, toolIndex, taskCount)"
  1319. src="../../assets/icon/fourthToolList/deepLearning.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">深度学习</div>
  1323. </div>
  1324. <div v-if="tooC == 61">
  1325. <img
  1326. @click="addTools(tooC, toolIndex, taskCount)"
  1327. src="../../assets/icon/fourthToolList/allHistory.png"
  1328. alt
  1329. />
  1330. <div style="margin: 5px 0">全历史</div>
  1331. </div>
  1332. <div v-if="tooC == 62">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../../assets/icon/fourthToolList/interVideo.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">交互视频</div>
  1339. </div>
  1340. <div v-if="tooC == 63">
  1341. <img
  1342. @click="addTools(tooC, toolIndex, taskCount)"
  1343. src="../../assets/icon/fourthToolList/Wood.png"
  1344. alt
  1345. />
  1346. <div style="margin: 5px 0">海龟编程</div>
  1347. </div>
  1348. <div v-if="tooC == 71">
  1349. <img
  1350. @click="addTools(tooC, toolIndex, taskCount)"
  1351. src="../../assets/icon/fourthToolList/chatgpt.png"
  1352. alt
  1353. />
  1354. <div style="margin: 5px 0">AI智能体</div>
  1355. </div>
  1356. <div v-if="tooC == 65">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../../assets/icon/firstToolList/pickPeople.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">挑人</div>
  1363. </div>
  1364. <div v-if="tooC == 66">
  1365. <img
  1366. @click="addTools(tooC, toolIndex, taskCount)"
  1367. src="../../assets/icon/secondToolList/formulaEdi.png"
  1368. alt
  1369. />
  1370. <div style="margin: 5px 0">公式编辑</div>
  1371. </div>
  1372. <div v-if="tooC == 67">
  1373. <img
  1374. @click="addTools(tooC, toolIndex, taskCount)"
  1375. src="../../assets/icon/secondToolList/molStr.png"
  1376. alt
  1377. />
  1378. <div style="margin: 5px 0">分子结构</div>
  1379. </div>
  1380. <div v-if="tooC == 68">
  1381. <img
  1382. @click="addTools(tooC, toolIndex, taskCount)"
  1383. src="../../assets/icon/secondToolList/timeAxis.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">时间轴</div>
  1387. </div>
  1388. <div v-if="tooC == 69">
  1389. <img
  1390. @click="addTools(tooC, toolIndex, taskCount)"
  1391. src="../../assets/icon/secondToolList/english.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">英语写作</div>
  1395. </div>
  1396. <div v-if="tooC == 70">
  1397. <img
  1398. @click="addTools(tooC, toolIndex, taskCount)"
  1399. src="../../assets/icon/thirdToolList/englishVoice.png"
  1400. alt
  1401. />
  1402. <div style="margin: 5px 0">英语口语</div>
  1403. </div>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1408. <!-- <div class="toolTitle">工具描述</div> -->
  1409. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1410. <div style="height:100%;"
  1411. v-html="contentConvent(tool.toolDetail)"
  1412. v-if="toolDetailIndex != toolIndex"
  1413. ></div>
  1414. <div v-else @click.stop="" style="height:100%;">
  1415. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1416. </div>
  1417. </div>
  1418. <el-button
  1419. type="primary"
  1420. v-if="tool.tool[0] == 32"
  1421. style="position: absolute; right: 30px; top: -45px"
  1422. @click="addImg($event)"
  1423. >上传作业<input
  1424. type="file"
  1425. accept="*"
  1426. style="display: none"
  1427. @change="beforeUpload1($event, 7, toolIndex)"
  1428. /></el-button>
  1429. <el-button
  1430. type="primary"
  1431. v-if="tool.tool[0] == 15"
  1432. style="position: absolute; right: 30px; top: -45px"
  1433. @click="openWordCloud(toolIndex)"
  1434. >生成词云</el-button
  1435. >
  1436. <el-button
  1437. type="primary"
  1438. v-if="
  1439. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1440. "
  1441. style="position: absolute; right: 30px; top: -45px"
  1442. @click="uploadWorks(toolIndex)"
  1443. >导出作业</el-button
  1444. >
  1445. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1446. position: absolute;
  1447. right: 30px;
  1448. transform: translateY(-130%);
  1449. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1450. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1451. </div>
  1452. <div
  1453. v-if="
  1454. tType &&
  1455. tType == 2 &&
  1456. !sIsOpen &&
  1457. tool.tool.indexOf(16) != -1
  1458. "
  1459. class="worksBox"
  1460. >
  1461. <div
  1462. class="zuoyeYulan"
  1463. v-if="workStudent[toolIndex].length > 0"
  1464. >
  1465. <span class="worksTitle">作业预览</span>
  1466. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1467. </div>
  1468. <div
  1469. class="worksDetailBox"
  1470. v-if="workStudent[toolIndex].length > 0"
  1471. >
  1472. <div
  1473. class="works"
  1474. style="
  1475. width: 200px;
  1476. height: 140px;
  1477. margin: 10px 10px 10px 0;
  1478. box-shadow: 0 0 6px 1px #dfdada;
  1479. "
  1480. v-for="(w, wIndex) in workStudent[toolIndex]"
  1481. :key="wIndex"
  1482. >
  1483. <div class="workImg" v-if="w.type == 0">
  1484. <img
  1485. :src="w.works"
  1486. @click="previewImg(w.works,w)"
  1487. alt
  1488. />
  1489. <div
  1490. class="answerScore"
  1491. v-if="w.score"
  1492. @click.stop="openScore(w)"
  1493. :class="{
  1494. rightW:
  1495. w.userid == userid || tType == 1 || tType == 4,
  1496. }"
  1497. >
  1498. {{ JSON.parse(w.score).wScore }}分
  1499. </div>
  1500. <div
  1501. class="answerScore"
  1502. @click.stop="openScore(w)"
  1503. v-else-if="courseDetail.userid == userid"
  1504. :class="{
  1505. rightW:
  1506. w.userid == userid || tType == 1 || tType == 4,
  1507. }"
  1508. >
  1509. 评分
  1510. </div>
  1511. <img
  1512. class="deleteImg"
  1513. src="../../assets/deleteworks.png"
  1514. v-if="
  1515. w.userid == userid || tType == 1 || tType == 4
  1516. "
  1517. @click.stop="deleteWorks(w.wid)"
  1518. alt
  1519. />
  1520. </div>
  1521. <div class="workImg" v-if="w.type == 1">
  1522. <img :src="word" @click="openFile(w.works)" alt />
  1523. <div
  1524. class="answerScore"
  1525. v-if="w.score"
  1526. @click.stop="openScore(w)"
  1527. :class="{
  1528. rightW:
  1529. w.userid == userid || tType == 1 || tType == 4,
  1530. }"
  1531. >
  1532. {{ JSON.parse(w.score).wScore }}分
  1533. </div>
  1534. <div
  1535. class="answerScore"
  1536. @click.stop="openScore(w)"
  1537. v-else-if="courseDetail.userid == userid"
  1538. :class="{
  1539. rightW:
  1540. w.userid == userid || tType == 1 || tType == 4,
  1541. }"
  1542. >
  1543. 评分
  1544. </div>
  1545. <img
  1546. class="deleteImg"
  1547. src="../../assets/deleteworks.png"
  1548. v-if="
  1549. w.userid == userid || tType == 1 || tType == 4
  1550. "
  1551. @click.stop="deleteWorks(w.wid)"
  1552. alt
  1553. />
  1554. </div>
  1555. <div class="workImg" v-if="w.type == 3">
  1556. <img
  1557. style="cursor: pointer"
  1558. :src="video"
  1559. @click="openVideo(w)"
  1560. alt
  1561. />
  1562. <div
  1563. class="answerScore"
  1564. v-if="w.score"
  1565. @click.stop="openScore(w)"
  1566. :class="{
  1567. rightW:
  1568. w.userid == userid || tType == 1 || tType == 4,
  1569. }"
  1570. >
  1571. {{ JSON.parse(w.score).wScore }}分
  1572. </div>
  1573. <div
  1574. class="answerScore"
  1575. @click.stop="openScore(w)"
  1576. v-else-if="courseDetail.userid == userid"
  1577. :class="{
  1578. rightW:
  1579. w.userid == userid || tType == 1 || tType == 4,
  1580. }"
  1581. >
  1582. 评分
  1583. </div>
  1584. <img
  1585. class="deleteImg"
  1586. src="../../assets/deleteworks.png"
  1587. v-if="
  1588. w.userid == userid || tType == 1 || tType == 4
  1589. "
  1590. @click.stop="deleteWorks(w.wid)"
  1591. alt
  1592. />
  1593. </div>
  1594. <div class="workImg" v-if="w.type == 12">
  1595. <img
  1596. style="cursor: pointer"
  1597. :src="word2"
  1598. @click="downloadFile(w.works)"
  1599. alt
  1600. />
  1601. <div
  1602. class="answerScore"
  1603. v-if="w.score"
  1604. @click.stop="openScore(w)"
  1605. :class="{
  1606. rightW:
  1607. w.userid == userid || tType == 1 || tType == 4,
  1608. }"
  1609. >
  1610. {{ JSON.parse(w.score).wScore }}分
  1611. </div>
  1612. <div
  1613. class="answerScore"
  1614. @click.stop="openScore(w)"
  1615. v-else-if="courseDetail.userid == userid"
  1616. :class="{
  1617. rightW:
  1618. w.userid == userid || tType == 1 || tType == 4,
  1619. }"
  1620. >
  1621. 评分
  1622. </div>
  1623. <img
  1624. class="deleteImg"
  1625. src="../../assets/deleteworks.png"
  1626. v-if="
  1627. w.userid == userid || tType == 1 || tType == 4
  1628. "
  1629. @click.stop="deleteWorks(w.wid)"
  1630. alt
  1631. />
  1632. </div>
  1633. <div class="worksName">
  1634. <div>{{ w.sName }}</div>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. </div>
  1639. <div
  1640. v-if="
  1641. tType &&
  1642. tType == 2 &&
  1643. !sIsOpen &&
  1644. tool.tool.indexOf(32) != -1
  1645. "
  1646. class="worksBox"
  1647. >
  1648. <div
  1649. class="zuoyeYulan"
  1650. v-if="workStudent[toolIndex].length > 0"
  1651. >
  1652. <span class="worksTitle">作业预览</span>
  1653. </div>
  1654. <div
  1655. class="worksDetailBox"
  1656. v-if="workStudent[toolIndex].length > 0"
  1657. >
  1658. <div
  1659. class="works"
  1660. style="
  1661. width: 200px;
  1662. height: 140px;
  1663. margin: 10px 10px 10px 0;
  1664. box-shadow: 0 0 6px 1px #dfdada;
  1665. "
  1666. v-for="(w, wIndex) in workStudent[toolIndex]"
  1667. :key="wIndex"
  1668. >
  1669. <div class="workImg">
  1670. <img
  1671. :src="word2"
  1672. @click="downloadFile(w.works)"
  1673. alt
  1674. />
  1675. <div
  1676. class="answerScore"
  1677. v-if="w.score"
  1678. @click.stop="openScore(w)"
  1679. :class="{
  1680. rightW:
  1681. w.userid == userid || tType == 1 || tType == 4,
  1682. }"
  1683. >
  1684. {{ JSON.parse(w.score).wScore }}分
  1685. </div>
  1686. <div
  1687. class="answerScore"
  1688. @click.stop="openScore(w)"
  1689. v-else-if="courseDetail.userid == userid"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. 评分
  1696. </div>
  1697. <img
  1698. class="deleteImg"
  1699. src="../../assets/deleteworks.png"
  1700. v-if="
  1701. w.userid == userid || tType == 1 || tType == 4
  1702. "
  1703. @click.stop="deleteWorks(w.wid)"
  1704. alt
  1705. />
  1706. </div>
  1707. <div class="worksName">
  1708. <div>{{ w.sName }}</div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. </div>
  1713. <div
  1714. v-if="
  1715. tType &&
  1716. tType == 2 &&
  1717. !sIsOpen &&
  1718. tool.tool.indexOf(57) != -1
  1719. "
  1720. class="worksBox"
  1721. >
  1722. <div
  1723. class="zuoyeYulan"
  1724. v-if="workStudent[toolIndex].length > 0"
  1725. >
  1726. <span class="worksTitle">作业预览</span>
  1727. </div>
  1728. <div
  1729. class="worksDetailBox"
  1730. v-if="workStudent[toolIndex].length > 0"
  1731. >
  1732. <div
  1733. class="works"
  1734. style="
  1735. width: 200px;
  1736. height: 140px;
  1737. margin: 10px 10px 10px 0;
  1738. box-shadow: 0 0 6px 1px #dfdada;
  1739. "
  1740. v-for="(w, wIndex) in workStudent[toolIndex]"
  1741. :key="wIndex"
  1742. >
  1743. <div class="workImg">
  1744. <img
  1745. :src="word2"
  1746. @click="downloadFile(w.works)"
  1747. v-if="w.type == 12"
  1748. alt
  1749. />
  1750. <img
  1751. :src="word2"
  1752. @click="
  1753. openCocoPi(57, toolIndex, w.userid, w.sName)
  1754. "
  1755. v-else-if="w.type == 15"
  1756. alt
  1757. />
  1758. <div
  1759. class="answerScore"
  1760. v-if="w.score"
  1761. @click.stop="openScore(w)"
  1762. :class="{
  1763. rightW:
  1764. w.userid == userid || tType == 1 || tType == 4,
  1765. }"
  1766. >
  1767. {{ JSON.parse(w.score).wScore }}分
  1768. </div>
  1769. <div
  1770. class="answerScore"
  1771. @click.stop="openScore(w)"
  1772. v-else-if="courseDetail.userid == userid"
  1773. :class="{
  1774. rightW:
  1775. w.userid == userid || tType == 1 || tType == 4,
  1776. }"
  1777. >
  1778. 评分
  1779. </div>
  1780. <img
  1781. class="deleteImg"
  1782. src="../../assets/deleteworks.png"
  1783. v-if="
  1784. w.userid == userid || tType == 1 || tType == 4
  1785. "
  1786. @click.stop="deleteWorks(w.wid)"
  1787. alt
  1788. />
  1789. </div>
  1790. <div class="worksName">
  1791. <div>{{ w.sName }}</div>
  1792. </div>
  1793. </div>
  1794. </div>
  1795. </div>
  1796. <div
  1797. v-if="
  1798. tType &&
  1799. tType == 2 &&
  1800. !sIsOpen &&
  1801. tool.tool.indexOf(4) != -1
  1802. "
  1803. class="worksBox"
  1804. >
  1805. <div
  1806. class="zuoyeYulan"
  1807. v-if="workStudent[toolIndex].length > 0"
  1808. >
  1809. <span class="worksTitle">作业预览</span>
  1810. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1811. </div>
  1812. <div
  1813. class="worksDetailBox"
  1814. v-if="workStudent[toolIndex].length > 0"
  1815. >
  1816. <div
  1817. class="isWorksName2"
  1818. v-for="(w, wIndex) in workStudent[toolIndex]"
  1819. :key="wIndex"
  1820. @click="
  1821. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1822. "
  1823. >
  1824. {{ w.sName }}
  1825. <img
  1826. class="deleteImg deleteImg2"
  1827. src="../../assets/deleteworks.png"
  1828. v-if="w.userid == userid || tType == 1 || tType == 4"
  1829. @click.stop="deleteWorks(w.wid)"
  1830. alt
  1831. />
  1832. </div>
  1833. <!-- <div
  1834. class="works"
  1835. style="
  1836. width: 200px;
  1837. height: 140px;
  1838. border-radius: 10px;
  1839. box-shadow: 0 0 6px 1px #dfdada;
  1840. overflow: hidden;
  1841. "
  1842. v-for="(w, wIndex) in workStudent[toolIndex]"
  1843. :key="wIndex"
  1844. >
  1845. <div class="workImg">
  1846. <img
  1847. src="../../assets/icon/works/noImg.png"
  1848. @click="
  1849. openTools(
  1850. 4,
  1851. toolIndex,
  1852. taskCount,
  1853. w.works,
  1854. w.sName
  1855. )
  1856. "
  1857. alt
  1858. />
  1859. </div>
  1860. <div class="worksName">
  1861. <div>{{ w.sName }}</div>
  1862. <div>{{ w.time }}</div>
  1863. </div>
  1864. </div> -->
  1865. </div>
  1866. </div>
  1867. <div
  1868. v-if="
  1869. tType &&
  1870. ((tType == 2 && sIsOpen == true) ||
  1871. tType == 1 ||
  1872. tType == 4) &&
  1873. tool.tool.indexOf(62) != -1
  1874. "
  1875. class="worksBox"
  1876. >
  1877. <div
  1878. class="zuoyeYulan"
  1879. v-if="
  1880. worksStudent.length &&
  1881. worksStudent[toolIndex].length > 0
  1882. "
  1883. >
  1884. <div class="worksTop">
  1885. <div>作业预览</div>
  1886. <div
  1887. class="corOpen"
  1888. @click="contract(toolIndex)"
  1889. v-if="
  1890. (isCloseList[toolIndex].isCloseBoolean) &&
  1891. isCloseList[toolIndex].isClose == 0
  1892. "
  1893. >
  1894. 折叠
  1895. </div>
  1896. <div
  1897. class="corOpen"
  1898. @click="contract(toolIndex)"
  1899. v-if="isCloseList[toolIndex].isClose == 1"
  1900. >
  1901. 展开
  1902. </div>
  1903. </div>
  1904. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1905. </div>
  1906. <div>
  1907. <div
  1908. :id="'tool-' + toolIndex"
  1909. :style="{
  1910. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1911. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1912. }"
  1913. class="worksDetailBox"
  1914. v-if="
  1915. worksStudent.length &&
  1916. worksStudent[toolIndex].length > 0
  1917. "
  1918. >
  1919. <div
  1920. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1921. :key="wIndex"
  1922. class="isWorksName2"
  1923. @click="
  1924. openTools(
  1925. 62,
  1926. toolIndex,
  1927. taskCount,
  1928. w.works,
  1929. w.sName
  1930. )
  1931. "
  1932. >
  1933. {{ w.sName }}
  1934. <img
  1935. class="deleteImg deleteImg2"
  1936. src="../../assets/deleteworks.png"
  1937. v-if="
  1938. w.userid == userid || tType == 1 || tType == 4
  1939. "
  1940. @click.stop="deleteWorks(w.wid)"
  1941. alt
  1942. />
  1943. </div>
  1944. </div>
  1945. </div>
  1946. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1947. 未提交
  1948. </div>
  1949. <div
  1950. class="noWorksS"
  1951. v-if="noWorksS && noWorksS[toolIndex].length"
  1952. >
  1953. <div
  1954. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1955. :key="sIndex"
  1956. class="noWorksName"
  1957. >
  1958. <el-tooltip effect="dark" :content="s.student" placement="top">
  1959. <span>{{ s.student }}</span>
  1960. </el-tooltip>
  1961. </div>
  1962. </div>
  1963. </div>
  1964. <div
  1965. v-if="
  1966. tType &&
  1967. tType == 2 &&
  1968. !sIsOpen &&
  1969. tool.tool.indexOf(62) != -1
  1970. "
  1971. class="worksBox"
  1972. >
  1973. <div
  1974. class="zuoyeYulan"
  1975. v-if="workStudent[toolIndex].length > 0"
  1976. >
  1977. <span class="worksTitle">作业预览</span>
  1978. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1979. </div>
  1980. <div
  1981. class="worksDetailBox"
  1982. v-if="workStudent[toolIndex].length > 0"
  1983. >
  1984. <div
  1985. class="isWorksName2"
  1986. v-for="(w, wIndex) in workStudent[toolIndex]"
  1987. :key="wIndex"
  1988. @click="
  1989. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1990. "
  1991. >
  1992. {{ w.sName }}
  1993. <img
  1994. class="deleteImg deleteImg2"
  1995. src="../../assets/deleteworks.png"
  1996. v-if="w.userid == userid || tType == 1 || tType == 4"
  1997. @click.stop="deleteWorks(w.wid)"
  1998. alt
  1999. />
  2000. </div>
  2001. </div>
  2002. </div>
  2003. <div
  2004. v-if="
  2005. tType &&
  2006. tType == 2 &&
  2007. !sIsOpen &&
  2008. tool.tool.indexOf(45) != -1
  2009. "
  2010. class="worksBox"
  2011. >
  2012. <div
  2013. class="zuoyeYulan"
  2014. v-if="workStudent[toolIndex].length > 0"
  2015. >
  2016. <span class="worksTitle">作业预览</span>
  2017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2018. </div>
  2019. <div
  2020. class="worksDetailBox"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <div
  2024. class="isWorksName2"
  2025. v-for="(w, wIndex) in workStudent[toolIndex]"
  2026. :key="wIndex"
  2027. @click="
  2028. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2029. "
  2030. >
  2031. {{ w.sName }}
  2032. <img
  2033. class="deleteImg deleteImg2"
  2034. src="../../assets/deleteworks.png"
  2035. v-if="w.userid == userid || tType == 1 || tType == 4"
  2036. @click.stop="deleteWorks(w.wid)"
  2037. alt
  2038. />
  2039. </div>
  2040. </div>
  2041. </div>
  2042. <div
  2043. v-if="
  2044. tType &&
  2045. tType == 2 &&
  2046. !sIsOpen &&
  2047. tool.tool.indexOf(69) != -1
  2048. "
  2049. class="worksBox"
  2050. >
  2051. <div
  2052. class="zuoyeYulan"
  2053. v-if="workStudent[toolIndex].length > 0"
  2054. >
  2055. <span class="worksTitle">作业预览</span>
  2056. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2057. </div>
  2058. <div
  2059. class="worksDetailBox"
  2060. v-if="workStudent[toolIndex].length > 0"
  2061. >
  2062. <div
  2063. class="isWorksName2"
  2064. v-for="(w, wIndex) in workStudent[toolIndex]"
  2065. :key="wIndex"
  2066. @click="
  2067. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2068. "
  2069. >
  2070. {{ w.sName }}
  2071. <img
  2072. class="deleteImg deleteImg2"
  2073. src="../../assets/deleteworks.png"
  2074. v-if="w.userid == userid || tType == 1 || tType == 4"
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. tType == 2 &&
  2085. !sIsOpen &&
  2086. tool.tool.indexOf(15) != -1
  2087. "
  2088. class="worksBox"
  2089. >
  2090. <div
  2091. class="zuoyeYulan"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <span class="worksTitle">作业预览</span>
  2095. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="works"
  2103. v-for="(w, wIndex) in workStudent[toolIndex]"
  2104. :key="wIndex"
  2105. >
  2106. <div class="workImg">
  2107. <!-- <img
  2108. src="../../assets/icon/works/noImg.png"
  2109. @click="openTools(15, toolIndex, taskCount, w.works)"
  2110. alt=""
  2111. />-->
  2112. <div class="answerBg">
  2113. <!-- <div>{{ w.sName }}</div> -->
  2114. <el-tooltip
  2115. class="item"
  2116. effect="light"
  2117. :content="JSON.parse(w.works)[0].answer"
  2118. placement="top"
  2119. >
  2120. <div class="answerContent">
  2121. {{ JSON.parse(w.works)[0].answer }}
  2122. </div>
  2123. </el-tooltip>
  2124. <div
  2125. class="answerScore"
  2126. v-if="w.score"
  2127. @click.stop="openScore(w)"
  2128. :class="{
  2129. rightW:
  2130. w.userid == userid ||
  2131. tType == 1 ||
  2132. tType == 4,
  2133. }"
  2134. >
  2135. {{ JSON.parse(w.score).wScore }}分
  2136. </div>
  2137. <div
  2138. class="answerScore"
  2139. @click.stop="openScore(w)"
  2140. v-else-if="courseDetail.userid == userid"
  2141. :class="{
  2142. rightW:
  2143. w.userid == userid ||
  2144. tType == 1 ||
  2145. tType == 4,
  2146. }"
  2147. >
  2148. 评分
  2149. </div>
  2150. <img
  2151. class="deleteImg"
  2152. src="../../assets/deleteworks.png"
  2153. v-if="
  2154. w.userid == userid || tType == 1 || tType == 4
  2155. "
  2156. @click.stop="deleteWorks(w.wid)"
  2157. alt
  2158. />
  2159. </div>
  2160. <div class="comment">
  2161. <div class="worksName">
  2162. <div>{{ w.sName }}</div>
  2163. </div>
  2164. </div>
  2165. </div>
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div
  2170. v-if="
  2171. tType &&
  2172. tType == 2 &&
  2173. !sIsOpen &&
  2174. tool.tool.indexOf(1) != -1
  2175. "
  2176. class="worksBox"
  2177. >
  2178. <div
  2179. class="zuoyeYulan"
  2180. v-if="workStudent[toolIndex].length > 0"
  2181. >
  2182. <span class="worksTitle">作业预览</span>
  2183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2184. </div>
  2185. <div
  2186. class="worksDetailBox"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <div
  2190. class="works"
  2191. style="
  2192. width: 200px;
  2193. height: 140px;
  2194. margin: 10px 10px 10px 0;
  2195. box-shadow: 0 0 6px 1px #dfdada;
  2196. "
  2197. v-for="(w, wIndex) in workStudent[toolIndex]"
  2198. :key="wIndex"
  2199. >
  2200. <div class="workImg">
  2201. <img
  2202. :src="w.works"
  2203. @click="previewImg(w.works,w)"
  2204. alt
  2205. />
  2206. <div
  2207. class="answerScore"
  2208. v-if="w.score"
  2209. @click.stop="openScore(w)"
  2210. :class="{
  2211. rightW:
  2212. w.userid == userid || tType == 1 || tType == 4,
  2213. }"
  2214. >
  2215. {{ JSON.parse(w.score).wScore }}分
  2216. </div>
  2217. <div
  2218. class="answerScore"
  2219. @click.stop="openScore(w)"
  2220. v-else-if="courseDetail.userid == userid"
  2221. :class="{
  2222. rightW:
  2223. w.userid == userid || tType == 1 || tType == 4,
  2224. }"
  2225. >
  2226. 评分
  2227. </div>
  2228. <img
  2229. class="deleteImg"
  2230. src="../../assets/deleteworks.png"
  2231. v-if="
  2232. w.userid == userid || tType == 1 || tType == 4
  2233. "
  2234. @click.stop="deleteWorks(w.wid)"
  2235. alt
  2236. />
  2237. </div>
  2238. <div class="worksName">
  2239. <div>{{ w.sName }}</div>
  2240. </div>
  2241. </div>
  2242. </div>
  2243. </div>
  2244. <div
  2245. v-if="
  2246. tType &&
  2247. tType == 2 &&
  2248. !sIsOpen &&
  2249. tool.tool.indexOf(3) != -1
  2250. "
  2251. class="worksBox"
  2252. >
  2253. <div
  2254. class="zuoyeYulan"
  2255. v-if="workStudent[toolIndex].length > 0"
  2256. >
  2257. <span class="worksTitle">作业预览</span>
  2258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2259. </div>
  2260. <div
  2261. class="worksDetailBox"
  2262. v-if="workStudent[toolIndex].length > 0"
  2263. >
  2264. <div
  2265. class="works"
  2266. style="
  2267. width: 200px;
  2268. height: 140px;
  2269. margin: 10px 10px 10px 0;
  2270. box-shadow: 0 0 6px 1px #dfdada;
  2271. "
  2272. v-for="(w, wIndex) in workStudent[toolIndex]"
  2273. :key="wIndex"
  2274. >
  2275. <div class="workImg">
  2276. <img
  2277. :src="w.works"
  2278. @click="previewImg(w.works,w)"
  2279. alt
  2280. />
  2281. <div
  2282. class="answerScore"
  2283. v-if="w.score"
  2284. @click.stop="openScore(w)"
  2285. :class="{
  2286. rightW:
  2287. w.userid == userid || tType == 1 || tType == 4,
  2288. }"
  2289. >
  2290. {{ JSON.parse(w.score).wScore }}分
  2291. </div>
  2292. <div
  2293. class="answerScore"
  2294. @click.stop="openScore(w)"
  2295. v-else-if="courseDetail.userid == userid"
  2296. :class="{
  2297. rightW:
  2298. w.userid == userid || tType == 1 || tType == 4,
  2299. }"
  2300. >
  2301. 评分
  2302. </div>
  2303. <img
  2304. class="deleteImg"
  2305. src="../../assets/deleteworks.png"
  2306. v-if="
  2307. w.userid == userid || tType == 1 || tType == 4
  2308. "
  2309. @click.stop="deleteWorks(w.wid)"
  2310. alt
  2311. />
  2312. </div>
  2313. <div class="worksName">
  2314. <div>{{ w.sName }}</div>
  2315. </div>
  2316. </div>
  2317. </div>
  2318. </div>
  2319. <div
  2320. v-if="
  2321. tType &&
  2322. tType == 2 &&
  2323. !sIsOpen &&
  2324. tool.tool.indexOf(6) != -1
  2325. "
  2326. class="worksBox"
  2327. >
  2328. <div
  2329. class="zuoyeYulan"
  2330. v-if="workStudent[toolIndex].length > 0"
  2331. >
  2332. <span class="worksTitle">作业预览</span>
  2333. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2334. </div>
  2335. <div
  2336. class="worksDetailBox"
  2337. v-if="workStudent[toolIndex].length > 0"
  2338. >
  2339. <div
  2340. class="works"
  2341. style="
  2342. width: 200px;
  2343. height: 140px;
  2344. margin: 10px 10px 10px 0;
  2345. box-shadow: 0 0 6px 1px #dfdada;
  2346. "
  2347. v-for="(w, wIndex) in workStudent[toolIndex]"
  2348. :key="wIndex"
  2349. >
  2350. <div class="workImg">
  2351. <img
  2352. :src="w.works"
  2353. @click="previewImg(w.works,w)"
  2354. alt
  2355. />
  2356. <div
  2357. class="answerScore"
  2358. v-if="w.score"
  2359. @click.stop="openScore(w)"
  2360. :class="{
  2361. rightW:
  2362. w.userid == userid || tType == 1 || tType == 4,
  2363. }"
  2364. >
  2365. {{ JSON.parse(w.score).wScore }}分
  2366. </div>
  2367. <div
  2368. class="answerScore"
  2369. @click.stop="openScore(w)"
  2370. v-else-if="courseDetail.userid == userid"
  2371. :class="{
  2372. rightW:
  2373. w.userid == userid || tType == 1 || tType == 4,
  2374. }"
  2375. >
  2376. 评分
  2377. </div>
  2378. <img
  2379. class="deleteImg"
  2380. src="../../assets/deleteworks.png"
  2381. v-if="
  2382. w.userid == userid || tType == 1 || tType == 4
  2383. "
  2384. @click.stop="deleteWorks(w.wid)"
  2385. alt
  2386. />
  2387. </div>
  2388. <div class="worksName">
  2389. <div>{{ w.sName }}</div>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. </div>
  2394. <div
  2395. v-if="
  2396. tType &&
  2397. tType == 2 &&
  2398. !sIsOpen &&
  2399. tool.tool.indexOf(7) != -1
  2400. "
  2401. class="worksBox"
  2402. >
  2403. <div
  2404. class="zuoyeYulan"
  2405. v-if="workStudent[toolIndex].length > 0"
  2406. >
  2407. <span class="worksTitle">作业预览</span>
  2408. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2409. </div>
  2410. <div
  2411. class="worksDetailBox"
  2412. v-if="workStudent[toolIndex].length > 0"
  2413. >
  2414. <div
  2415. class="works"
  2416. style="
  2417. width: 200px;
  2418. height: 140px;
  2419. margin: 10px 10px 10px 0;
  2420. box-shadow: 0 0 6px 1px #dfdada;
  2421. "
  2422. v-for="(w, wIndex) in workStudent[toolIndex]"
  2423. :key="wIndex"
  2424. >
  2425. <div class="workImg">
  2426. <img
  2427. :src="w.works"
  2428. @click="previewImg(w.works,w)"
  2429. alt
  2430. />
  2431. <div
  2432. class="answerScore"
  2433. v-if="w.score"
  2434. @click.stop="openScore(w)"
  2435. :class="{
  2436. rightW:
  2437. w.userid == userid || tType == 1 || tType == 4,
  2438. }"
  2439. >
  2440. {{ JSON.parse(w.score).wScore }}分
  2441. </div>
  2442. <div
  2443. class="answerScore"
  2444. @click.stop="openScore(w)"
  2445. v-else-if="courseDetail.userid == userid"
  2446. :class="{
  2447. rightW:
  2448. w.userid == userid || tType == 1 || tType == 4,
  2449. }"
  2450. >
  2451. 评分
  2452. </div>
  2453. <img
  2454. class="deleteImg"
  2455. src="../../assets/deleteworks.png"
  2456. v-if="
  2457. w.userid == userid || tType == 1 || tType == 4
  2458. "
  2459. @click.stop="deleteWorks(w.wid)"
  2460. alt
  2461. />
  2462. </div>
  2463. <div class="worksName">
  2464. <div>{{ w.sName }}</div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. </div>
  2469. <div
  2470. v-if="
  2471. tType &&
  2472. tType == 2 &&
  2473. !sIsOpen &&
  2474. tool.tool.indexOf(26) != -1
  2475. "
  2476. class="worksBox"
  2477. >
  2478. <div
  2479. class="zuoyeYulan"
  2480. v-if="workStudent[toolIndex].length > 0"
  2481. >
  2482. <span class="worksTitle">作业预览</span>
  2483. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2484. </div>
  2485. <div
  2486. class="worksDetailBox"
  2487. v-if="workStudent[toolIndex].length > 0"
  2488. >
  2489. <div
  2490. class="works"
  2491. style="
  2492. width: 200px;
  2493. height: 140px;
  2494. margin: 10px 10px 10px 0;
  2495. box-shadow: 0 0 6px 1px #dfdada;
  2496. "
  2497. v-for="(w, wIndex) in workStudent[toolIndex]"
  2498. :key="wIndex"
  2499. >
  2500. <div class="workImg">
  2501. <img
  2502. :src="w.works"
  2503. @click="previewImg(w.works,w)"
  2504. alt
  2505. />
  2506. <img
  2507. class="deleteImg"
  2508. src="../../assets/deleteworks.png"
  2509. v-if="
  2510. w.userid == userid || tType == 1 || tType == 4
  2511. "
  2512. @click.stop="deleteWorks(w.wid)"
  2513. alt
  2514. />
  2515. </div>
  2516. <div class="worksName">
  2517. <div>{{ w.sName }}</div>
  2518. </div>
  2519. </div>
  2520. </div>
  2521. </div>
  2522. <div
  2523. v-if="
  2524. tType &&
  2525. ((tType == 2 && sIsOpen == true) ||
  2526. tType == 1 ||
  2527. tType == 4) &&
  2528. tool.tool.indexOf(16) != -1
  2529. "
  2530. class="worksBox"
  2531. >
  2532. <div
  2533. class="zuoyeYulan"
  2534. v-if="
  2535. (worksStudent.length &&
  2536. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2537. "
  2538. >
  2539. <div class="worksTop">
  2540. <div>作业预览</div>
  2541. <div
  2542. class="corOpen"
  2543. @click="contract(toolIndex)"
  2544. v-if="
  2545. (isCloseList[toolIndex].isCloseBoolean) &&
  2546. isCloseList[toolIndex].isClose == 0
  2547. "
  2548. >
  2549. 折叠
  2550. </div>
  2551. <div
  2552. class="corOpen"
  2553. @click="contract(toolIndex)"
  2554. v-if="isCloseList[toolIndex].isClose == 1"
  2555. >
  2556. 展开
  2557. </div>
  2558. </div>
  2559. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2560. </div>
  2561. <div
  2562. class="group_workBox"
  2563. v-for="(g, gindex) in courseGroup.group"
  2564. :key="gindex"
  2565. >
  2566. <div class="group_box">
  2567. <div class="group_title">
  2568. <el-tooltip
  2569. class="item"
  2570. effect="light"
  2571. :content="g.name"
  2572. placement="top"
  2573. >
  2574. <div class="group_name">{{ g.name }}</div>
  2575. </el-tooltip>
  2576. </div>
  2577. <div
  2578. class="group_work"
  2579. v-if="
  2580. g.works &&
  2581. g.works.length &&
  2582. g.works[toolIndex].length
  2583. "
  2584. >
  2585. <div
  2586. class="works"
  2587. style="
  2588. width: 200px;
  2589. height: 140px;
  2590. margin: 10px 10px 10px 0;
  2591. border-radius: 15px;
  2592. box-shadow: 0 0 6px 1px #dfdada;
  2593. "
  2594. v-for="(w, wIndex) in g.works[toolIndex]"
  2595. :key="wIndex"
  2596. :class="w.type == 1 ? 'isTypeOne' : ''"
  2597. >
  2598. <div class="workImg" v-if="w.type == 0">
  2599. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2600. <img
  2601. :src="w.works"
  2602. @click="previewImg(w.works,w)"
  2603. alt
  2604. />
  2605. <div
  2606. class="answerScore"
  2607. v-if="w.score"
  2608. @click.stop="openScore(w)"
  2609. :class="{
  2610. rightW:
  2611. w.userid == userid ||
  2612. tType == 1 ||
  2613. tType == 4 ||
  2614. w.ateacher == userid,
  2615. }"
  2616. >
  2617. {{ JSON.parse(w.score).wScore }}分
  2618. </div>
  2619. <div
  2620. class="answerScore"
  2621. @click.stop="openScore(w)"
  2622. v-else-if="courseDetail.userid == userid"
  2623. :class="{
  2624. rightW:
  2625. w.userid == userid ||
  2626. tType == 1 ||
  2627. tType == 4 ||
  2628. w.ateacher == userid,
  2629. }"
  2630. >
  2631. 评分
  2632. </div>
  2633. <img
  2634. class="deleteImg"
  2635. src="../../assets/deleteworks.png"
  2636. v-if="
  2637. w.userid == userid || tType == 1 || tType == 4
  2638. "
  2639. @click.stop="deleteWorks(w.wid)"
  2640. alt
  2641. />
  2642. </div>
  2643. <div class="workImg" v-if="w.type == 1">
  2644. <img :src="word" @click="openFile(w.works)" alt />
  2645. <!-- @click="openFile(w.works)" -->
  2646. <div
  2647. class="answerScore"
  2648. v-if="w.score"
  2649. @click.stop="openScore(w)"
  2650. :class="{
  2651. rightW:
  2652. w.userid == userid ||
  2653. tType == 1 ||
  2654. tType == 4 ||
  2655. w.ateacher == userid,
  2656. }"
  2657. >
  2658. {{ JSON.parse(w.score).wScore }}分
  2659. </div>
  2660. <div
  2661. class="answerScore"
  2662. @click.stop="openScore(w)"
  2663. v-else-if="courseDetail.userid == userid"
  2664. :class="{
  2665. rightW:
  2666. w.userid == userid ||
  2667. tType == 1 ||
  2668. tType == 4 ||
  2669. w.ateacher == userid,
  2670. }"
  2671. >
  2672. 评分
  2673. </div>
  2674. <img
  2675. class="deleteImg"
  2676. src="../../assets/deleteworks.png"
  2677. v-if="
  2678. w.userid == userid || tType == 1 || tType == 4
  2679. "
  2680. @click.stop="deleteWorks(w.wid)"
  2681. alt
  2682. />
  2683. </div>
  2684. <div class="workImg" v-if="w.type == 3">
  2685. <img
  2686. style="cursor: pointer"
  2687. :src="video"
  2688. @click="openVideo(w)"
  2689. alt
  2690. />
  2691. <!-- @click="openVideo(w.works)" -->
  2692. <div
  2693. class="answerScore"
  2694. v-if="w.score"
  2695. @click.stop="openScore(w)"
  2696. :class="{
  2697. rightW:
  2698. w.userid == userid ||
  2699. tType == 1 ||
  2700. tType == 4 ||
  2701. w.ateacher == userid,
  2702. }"
  2703. >
  2704. {{ JSON.parse(w.score).wScore }}分
  2705. </div>
  2706. <div
  2707. class="answerScore"
  2708. @click.stop="openScore(w)"
  2709. v-else-if="courseDetail.userid == userid"
  2710. :class="{
  2711. rightW:
  2712. w.userid == userid ||
  2713. tType == 1 ||
  2714. tType == 4 ||
  2715. w.ateacher == userid,
  2716. }"
  2717. >
  2718. 评分
  2719. </div>
  2720. <img
  2721. class="deleteImg"
  2722. src="../../assets/deleteworks.png"
  2723. v-if="
  2724. w.userid == userid || tType == 1 || tType == 4
  2725. "
  2726. @click.stop="deleteWorks(w.wid)"
  2727. alt
  2728. />
  2729. </div>
  2730. <div class="workImg" v-if="w.type == 12">
  2731. <img
  2732. style="cursor: pointer"
  2733. :src="word2"
  2734. @click="downloadFile(w.works)"
  2735. alt
  2736. />
  2737. <!-- @click="openVideo(w.works)" -->
  2738. <div
  2739. class="answerScore"
  2740. v-if="w.score"
  2741. @click.stop="openScore(w)"
  2742. :class="{
  2743. rightW:
  2744. w.userid == userid ||
  2745. tType == 1 ||
  2746. tType == 4 ||
  2747. w.ateacher == userid,
  2748. }"
  2749. >
  2750. {{ JSON.parse(w.score).wScore }}分
  2751. </div>
  2752. <div
  2753. class="answerScore"
  2754. @click.stop="openScore(w)"
  2755. v-else-if="courseDetail.userid == userid"
  2756. :class="{
  2757. rightW:
  2758. w.userid == userid ||
  2759. tType == 1 ||
  2760. tType == 4 ||
  2761. w.ateacher == userid,
  2762. }"
  2763. >
  2764. 评分
  2765. </div>
  2766. <img
  2767. class="deleteImg"
  2768. src="../../assets/deleteworks.png"
  2769. v-if="
  2770. w.userid == userid || tType == 1 || tType == 4
  2771. "
  2772. @click.stop="deleteWorks(w.wid)"
  2773. alt
  2774. />
  2775. </div>
  2776. <div class="comment" style="min-width: 200px">
  2777. <div class="worksName">
  2778. <div>{{ w.sName }}</div>
  2779. </div>
  2780. <div class="commentList">
  2781. <div class="commentList">
  2782. <div
  2783. class="commentImg"
  2784. @click="
  2785. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2786. "
  2787. >
  2788. <img
  2789. :src="w.isLikes == true ? likes : noLikes"
  2790. alt=""
  2791. />
  2792. </div>
  2793. <div>{{ w.likesCount }}</div>
  2794. </div>
  2795. <div
  2796. class="commentList"
  2797. style="margin-right: 15px"
  2798. >
  2799. <div
  2800. class="commentImg"
  2801. @click="
  2802. commentOther(
  2803. w,
  2804. toolIndex,
  2805. wIndex,
  2806. null,
  2807. g.id
  2808. )
  2809. "
  2810. >
  2811. <img
  2812. src="../../assets/icon/comment/comment.png"
  2813. alt=""
  2814. />
  2815. </div>
  2816. <div>{{ w.commentCount }}</div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. </div>
  2821. </div>
  2822. <div class="group_work" v-else>暂无提交作业</div>
  2823. </div>
  2824. </div>
  2825. <div
  2826. :id="'tool-' + toolIndex"
  2827. :style="{
  2828. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2829. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2830. }"
  2831. class="worksDetailBox"
  2832. v-if="
  2833. worksStudent.length &&
  2834. worksStudent[toolIndex].length > 0
  2835. "
  2836. >
  2837. <div
  2838. class="works"
  2839. style="
  2840. width: 200px;
  2841. height: 140px;
  2842. margin: 10px 10px 10px 0;
  2843. border-radius: 15px;
  2844. box-shadow: 0 0 6px 1px #dfdada;
  2845. "
  2846. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2847. :key="wIndex"
  2848. :class="w.type == 1 ? 'isTypeOne' : ''"
  2849. >
  2850. <div class="workImg" v-if="w.type == 0">
  2851. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2852. <img
  2853. :src="w.works"
  2854. @click="previewImg(w.works,w)"
  2855. alt
  2856. />
  2857. <div
  2858. class="answerScore"
  2859. v-if="w.score"
  2860. @click.stop="openScore(w)"
  2861. :class="{
  2862. rightW:
  2863. w.userid == userid ||
  2864. tType == 1 ||
  2865. tType == 4 ||
  2866. w.ateacher == userid,
  2867. }"
  2868. >
  2869. {{ JSON.parse(w.score).wScore }}分
  2870. </div>
  2871. <div
  2872. class="answerScore"
  2873. @click.stop="openScore(w)"
  2874. v-else-if="courseDetail.userid == userid"
  2875. :class="{
  2876. rightW:
  2877. w.userid == userid ||
  2878. tType == 1 ||
  2879. tType == 4 ||
  2880. w.ateacher == userid,
  2881. }"
  2882. >
  2883. 评分
  2884. </div>
  2885. <img
  2886. class="deleteImg"
  2887. src="../../assets/deleteworks.png"
  2888. v-if="
  2889. w.userid == userid || tType == 1 || tType == 4
  2890. "
  2891. @click.stop="deleteWorks(w.wid)"
  2892. alt
  2893. />
  2894. </div>
  2895. <div class="workImg" v-if="w.type == 1">
  2896. <img :src="word" @click="openFile(w.works)" alt />
  2897. <!-- @click="openFile(w.works)" -->
  2898. <div
  2899. class="answerScore"
  2900. v-if="w.score"
  2901. @click.stop="openScore(w)"
  2902. :class="{
  2903. rightW:
  2904. w.userid == userid ||
  2905. tType == 1 ||
  2906. tType == 4 ||
  2907. w.ateacher == userid,
  2908. }"
  2909. >
  2910. {{ JSON.parse(w.score).wScore }}分
  2911. </div>
  2912. <div
  2913. class="answerScore"
  2914. @click.stop="openScore(w)"
  2915. v-else-if="courseDetail.userid == userid"
  2916. :class="{
  2917. rightW:
  2918. w.userid == userid ||
  2919. tType == 1 ||
  2920. tType == 4 ||
  2921. w.ateacher == userid,
  2922. }"
  2923. >
  2924. 评分
  2925. </div>
  2926. <img
  2927. class="deleteImg"
  2928. src="../../assets/deleteworks.png"
  2929. v-if="
  2930. w.userid == userid || tType == 1 || tType == 4
  2931. "
  2932. @click.stop="deleteWorks(w.wid)"
  2933. alt
  2934. />
  2935. </div>
  2936. <div class="workImg" v-if="w.type == 3">
  2937. <img
  2938. style="cursor: pointer"
  2939. :src="video"
  2940. @click="openVideo(w)"
  2941. alt
  2942. />
  2943. <!-- @click="openVideo(w.works)" -->
  2944. <div
  2945. class="answerScore"
  2946. v-if="w.score"
  2947. @click.stop="openScore(w)"
  2948. :class="{
  2949. rightW:
  2950. w.userid == userid ||
  2951. tType == 1 ||
  2952. tType == 4 ||
  2953. w.ateacher == userid,
  2954. }"
  2955. >
  2956. {{ JSON.parse(w.score).wScore }}分
  2957. </div>
  2958. <div
  2959. class="answerScore"
  2960. @click.stop="openScore(w)"
  2961. v-else-if="courseDetail.userid == userid"
  2962. :class="{
  2963. rightW:
  2964. w.userid == userid ||
  2965. tType == 1 ||
  2966. tType == 4 ||
  2967. w.ateacher == userid,
  2968. }"
  2969. >
  2970. 评分
  2971. </div>
  2972. <img
  2973. class="deleteImg"
  2974. src="../../assets/deleteworks.png"
  2975. v-if="
  2976. w.userid == userid || tType == 1 || tType == 4
  2977. "
  2978. @click.stop="deleteWorks(w.wid)"
  2979. alt
  2980. />
  2981. </div>
  2982. <div class="workImg" v-if="w.type == 12">
  2983. <img
  2984. style="cursor: pointer"
  2985. :src="word2"
  2986. @click="downloadFile(w.works)"
  2987. alt
  2988. />
  2989. <!-- @click="openVideo(w.works)" -->
  2990. <div
  2991. class="answerScore"
  2992. v-if="w.score"
  2993. @click.stop="openScore(w)"
  2994. :class="{
  2995. rightW:
  2996. w.userid == userid ||
  2997. tType == 1 ||
  2998. tType == 4 ||
  2999. w.ateacher == userid,
  3000. }"
  3001. >
  3002. {{ JSON.parse(w.score).wScore }}分
  3003. </div>
  3004. <div
  3005. class="answerScore"
  3006. @click.stop="openScore(w)"
  3007. v-else-if="courseDetail.userid == userid"
  3008. :class="{
  3009. rightW:
  3010. w.userid == userid ||
  3011. tType == 1 ||
  3012. tType == 4 ||
  3013. w.ateacher == userid,
  3014. }"
  3015. >
  3016. 评分
  3017. </div>
  3018. <img
  3019. class="deleteImg"
  3020. src="../../assets/deleteworks.png"
  3021. v-if="
  3022. w.userid == userid || tType == 1 || tType == 4
  3023. "
  3024. @click.stop="deleteWorks(w.wid)"
  3025. alt
  3026. />
  3027. </div>
  3028. <div class="comment" style="min-width: 200px">
  3029. <div class="worksName">
  3030. <div>{{ w.sName }}</div>
  3031. </div>
  3032. <div class="commentList">
  3033. <div class="commentList">
  3034. <div
  3035. class="commentImg"
  3036. @click="
  3037. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3038. "
  3039. >
  3040. <img
  3041. :src="w.isLikes == true ? likes : noLikes"
  3042. alt=""
  3043. />
  3044. </div>
  3045. <div>{{ w.likesCount }}</div>
  3046. </div>
  3047. <div class="commentList" style="margin-right: 15px">
  3048. <div
  3049. class="commentImg"
  3050. @click="commentOther(w, toolIndex, wIndex)"
  3051. >
  3052. <img
  3053. src="../../assets/icon/comment/comment.png"
  3054. alt=""
  3055. />
  3056. </div>
  3057. <div>{{ w.commentCount }}</div>
  3058. </div>
  3059. </div>
  3060. </div>
  3061. </div>
  3062. </div>
  3063. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3064. 未提交
  3065. </div>
  3066. <div
  3067. class="noWorksS"
  3068. v-if="noWorksS && noWorksS[toolIndex].length"
  3069. >
  3070. <div
  3071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3072. :key="sIndex"
  3073. class="noWorksName"
  3074. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3075. >
  3076. <el-tooltip effect="dark" :content="s.student" placement="top">
  3077. <span>{{ s.student }}</span>
  3078. </el-tooltip>
  3079. </div>
  3080. </div>
  3081. </div>
  3082. <div
  3083. v-if="
  3084. tType &&
  3085. ((tType == 2 && sIsOpen == true) ||
  3086. tType == 1 ||
  3087. tType == 4) &&
  3088. tool.tool.indexOf(70) != -1
  3089. "
  3090. class="worksBox"
  3091. >
  3092. <div
  3093. class="zuoyeYulan"
  3094. v-if="
  3095. (worksStudent.length &&
  3096. worksStudent[toolIndex].length > 0)
  3097. "
  3098. >
  3099. <div class="worksTop">
  3100. <div>作业预览</div>
  3101. <div
  3102. class="corOpen"
  3103. @click="contract(toolIndex)"
  3104. v-if="
  3105. (isCloseList[toolIndex].isCloseBoolean) &&
  3106. isCloseList[toolIndex].isClose == 0
  3107. "
  3108. >
  3109. 折叠
  3110. </div>
  3111. <div
  3112. class="corOpen"
  3113. @click="contract(toolIndex)"
  3114. v-if="isCloseList[toolIndex].isClose == 1"
  3115. >
  3116. 展开
  3117. </div>
  3118. </div>
  3119. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3120. </div>
  3121. <div
  3122. :id="'tool-' + toolIndex"
  3123. :style="{
  3124. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3125. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3126. }"
  3127. class="worksDetailBox"
  3128. v-if="
  3129. worksStudent.length &&
  3130. worksStudent[toolIndex].length > 0
  3131. "
  3132. >
  3133. <div
  3134. class="works"
  3135. style="
  3136. width: 200px;
  3137. height: 140px;
  3138. margin: 10px 10px 10px 0;
  3139. border-radius: 15px;
  3140. box-shadow: 0 0 6px 1px #dfdada;
  3141. "
  3142. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3143. :key="wIndex"
  3144. :class="w.type == 1 ? 'isTypeOne' : ''"
  3145. >
  3146. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3147. <img :src="word" alt />
  3148. <img
  3149. class="deleteImg"
  3150. src="../../assets/deleteworks.png"
  3151. v-if="
  3152. w.userid == userid || tType == 1 || tType == 4
  3153. "
  3154. @click.stop="deleteWorks(w.wid)"
  3155. alt
  3156. />
  3157. </div>
  3158. <div class="comment" style="min-width: 200px">
  3159. <div class="worksName">
  3160. <div>{{ w.sName }}</div>
  3161. </div>
  3162. </div>
  3163. </div>
  3164. </div>
  3165. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3166. 未提交
  3167. </div>
  3168. <div
  3169. class="noWorksS"
  3170. v-if="noWorksS && noWorksS[toolIndex].length"
  3171. >
  3172. <div
  3173. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3174. :key="sIndex"
  3175. class="noWorksName"
  3176. >
  3177. <el-tooltip effect="dark" :content="s.student" placement="top">
  3178. <span>{{ s.student }}</span>
  3179. </el-tooltip>
  3180. </div>
  3181. </div>
  3182. </div>
  3183. <div
  3184. v-if="
  3185. tType &&
  3186. tType == 2 &&
  3187. !sIsOpen &&
  3188. tool.tool.indexOf(70) != -1
  3189. "
  3190. class="worksBox"
  3191. >
  3192. <div
  3193. class="zuoyeYulan"
  3194. v-if="workStudent[toolIndex].length > 0"
  3195. >
  3196. <span class="worksTitle">作业预览</span>
  3197. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3198. </div>
  3199. <div
  3200. class="worksDetailBox"
  3201. v-if="workStudent[toolIndex].length > 0"
  3202. >
  3203. <div
  3204. class="works"
  3205. style="
  3206. width: 200px;
  3207. height: 140px;
  3208. margin: 10px 10px 10px 0;
  3209. box-shadow: 0 0 6px 1px #dfdada;
  3210. "
  3211. v-for="(w, wIndex) in workStudent[toolIndex]"
  3212. :key="wIndex"
  3213. >
  3214. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3215. <img :src="word" alt />
  3216. <img
  3217. class="deleteImg"
  3218. src="../../assets/deleteworks.png"
  3219. v-if="
  3220. w.userid == userid || tType == 1 || tType == 4
  3221. "
  3222. @click.stop="deleteWorks(w.wid)"
  3223. alt
  3224. />
  3225. </div>
  3226. <div class="worksName">
  3227. <div>{{ w.sName }}</div>
  3228. </div>
  3229. </div>
  3230. </div>
  3231. </div>
  3232. <div
  3233. v-if="
  3234. tType &&
  3235. ((tType == 2 && sIsOpen == true) ||
  3236. tType == 1 ||
  3237. tType == 4) &&
  3238. tool.tool.indexOf(32) != -1
  3239. "
  3240. class="worksBox"
  3241. >
  3242. <div
  3243. class="zuoyeYulan"
  3244. v-if="
  3245. worksStudent.length &&
  3246. worksStudent[toolIndex].length > 0
  3247. "
  3248. >
  3249. <div class="worksTop">
  3250. <div>作业预览</div>
  3251. <div
  3252. class="corOpen"
  3253. @click="contract(toolIndex)"
  3254. v-if="
  3255. (isCloseList[toolIndex].isCloseBoolean) &&
  3256. isCloseList[toolIndex].isClose == 0
  3257. "
  3258. >
  3259. 折叠
  3260. </div>
  3261. <div
  3262. class="corOpen"
  3263. @click="contract(toolIndex)"
  3264. v-if="isCloseList[toolIndex].isClose == 1"
  3265. >
  3266. 展开
  3267. </div>
  3268. </div>
  3269. </div>
  3270. <div
  3271. :id="'tool-' + toolIndex"
  3272. :style="{
  3273. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3274. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3275. }"
  3276. class="worksDetailBox"
  3277. v-if="
  3278. worksStudent.length &&
  3279. worksStudent[toolIndex].length > 0
  3280. "
  3281. >
  3282. <div
  3283. class="works"
  3284. style="
  3285. width: 200px;
  3286. height: 140px;
  3287. margin: 10px 10px 10px 0;
  3288. border-radius: 15px;
  3289. box-shadow: 0 0 6px 1px #dfdada;
  3290. "
  3291. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3292. :key="wIndex"
  3293. :class="w.type == 1 ? 'isTypeOne' : ''"
  3294. >
  3295. <div class="workImg">
  3296. <img
  3297. :src="word2"
  3298. @click="downloadFile(w.works)"
  3299. alt
  3300. />
  3301. <div
  3302. class="answerScore"
  3303. v-if="w.score"
  3304. @click.stop="openScore(w)"
  3305. :class="{
  3306. rightW:
  3307. w.userid == userid ||
  3308. tType == 1 ||
  3309. tType == 4 ||
  3310. w.ateacher == userid,
  3311. }"
  3312. >
  3313. {{ JSON.parse(w.score).wScore }}分
  3314. </div>
  3315. <div
  3316. class="answerScore"
  3317. @click.stop="openScore(w)"
  3318. v-else-if="courseDetail.userid == userid"
  3319. :class="{
  3320. rightW:
  3321. w.userid == userid ||
  3322. tType == 1 ||
  3323. tType == 4 ||
  3324. w.ateacher == userid,
  3325. }"
  3326. >
  3327. 评分
  3328. </div>
  3329. <img
  3330. class="deleteImg"
  3331. src="../../assets/deleteworks.png"
  3332. v-if="
  3333. w.userid == userid || tType == 1 || tType == 4
  3334. "
  3335. @click.stop="deleteWorks(w.wid)"
  3336. alt
  3337. />
  3338. </div>
  3339. <div class="comment" style="min-width: 200px">
  3340. <div class="worksName">
  3341. <div>{{ w.sName }}</div>
  3342. </div>
  3343. <div class="commentList">
  3344. <div class="commentList">
  3345. <div
  3346. class="commentImg"
  3347. @click="
  3348. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3349. "
  3350. >
  3351. <img
  3352. :src="w.isLikes == true ? likes : noLikes"
  3353. alt=""
  3354. />
  3355. </div>
  3356. <div>{{ w.likesCount }}</div>
  3357. </div>
  3358. <div class="commentList" style="margin-right: 15px">
  3359. <div
  3360. class="commentImg"
  3361. @click="commentOther(w, toolIndex, wIndex)"
  3362. >
  3363. <img
  3364. src="../../assets/icon/comment/comment.png"
  3365. alt=""
  3366. />
  3367. </div>
  3368. <div>{{ w.commentCount }}</div>
  3369. </div>
  3370. </div>
  3371. </div>
  3372. </div>
  3373. </div>
  3374. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3375. 未提交
  3376. </div>
  3377. <div
  3378. class="noWorksS"
  3379. v-if="noWorksS && noWorksS[toolIndex].length"
  3380. >
  3381. <div
  3382. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3383. :key="sIndex"
  3384. class="noWorksName"
  3385. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3386. >
  3387. <el-tooltip effect="dark" :content="s.student" placement="top">
  3388. <span>{{ s.student }}</span>
  3389. </el-tooltip>
  3390. </div>
  3391. </div>
  3392. </div>
  3393. <div
  3394. v-if="
  3395. tType &&
  3396. ((tType == 2 && sIsOpen == true) ||
  3397. tType == 1 ||
  3398. tType == 4) &&
  3399. tool.tool.indexOf(57) != -1
  3400. "
  3401. class="worksBox"
  3402. >
  3403. <div
  3404. class="zuoyeYulan"
  3405. v-if="
  3406. worksStudent.length &&
  3407. worksStudent[toolIndex].length > 0
  3408. "
  3409. >
  3410. <div class="worksTop">
  3411. <div>作业预览</div>
  3412. <div
  3413. class="corOpen"
  3414. @click="contract(toolIndex)"
  3415. v-if="
  3416. (isCloseList[toolIndex].isCloseBoolean) &&
  3417. isCloseList[toolIndex].isClose == 0
  3418. "
  3419. >
  3420. 折叠
  3421. </div>
  3422. <div
  3423. class="corOpen"
  3424. @click="contract(toolIndex)"
  3425. v-if="isCloseList[toolIndex].isClose == 1"
  3426. >
  3427. 展开
  3428. </div>
  3429. </div>
  3430. </div>
  3431. <div
  3432. :id="'tool-' + toolIndex"
  3433. :style="{
  3434. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3435. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3436. }"
  3437. class="worksDetailBox"
  3438. v-if="
  3439. worksStudent.length &&
  3440. worksStudent[toolIndex].length > 0
  3441. "
  3442. >
  3443. <div
  3444. class="works"
  3445. style="
  3446. width: 200px;
  3447. height: 140px;
  3448. margin: 10px 10px 10px 0;
  3449. border-radius: 15px;
  3450. box-shadow: 0 0 6px 1px #dfdada;
  3451. "
  3452. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3453. :key="wIndex"
  3454. :class="w.type == 1 ? 'isTypeOne' : ''"
  3455. >
  3456. <div class="workImg">
  3457. <img
  3458. :src="word2"
  3459. @click="downloadFile(w.works)"
  3460. v-if="w.type == 12"
  3461. alt
  3462. />
  3463. <img
  3464. :src="word2"
  3465. @click="
  3466. openCocoPi(57, toolIndex, w.userid, w.sName)
  3467. "
  3468. v-else-if="w.type == 15"
  3469. alt
  3470. />
  3471. <div
  3472. class="answerScore"
  3473. v-if="w.score"
  3474. @click.stop="openScore(w)"
  3475. :class="{
  3476. rightW:
  3477. w.userid == userid ||
  3478. tType == 1 ||
  3479. tType == 4 ||
  3480. w.ateacher == userid,
  3481. }"
  3482. >
  3483. {{ JSON.parse(w.score).wScore }}分
  3484. </div>
  3485. <div
  3486. class="answerScore"
  3487. @click.stop="openScore(w)"
  3488. v-else-if="courseDetail.userid == userid"
  3489. :class="{
  3490. rightW:
  3491. w.userid == userid ||
  3492. tType == 1 ||
  3493. tType == 4 ||
  3494. w.ateacher == userid,
  3495. }"
  3496. >
  3497. 评分
  3498. </div>
  3499. <img
  3500. class="deleteImg"
  3501. src="../../assets/deleteworks.png"
  3502. v-if="
  3503. w.userid == userid || tType == 1 || tType == 4
  3504. "
  3505. @click.stop="deleteWorks(w.wid)"
  3506. alt
  3507. />
  3508. </div>
  3509. <div class="comment" style="min-width: 200px">
  3510. <div class="worksName">
  3511. <div>{{ w.sName }}</div>
  3512. </div>
  3513. <div class="commentList">
  3514. <div class="commentList">
  3515. <div
  3516. class="commentImg"
  3517. @click="
  3518. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3519. "
  3520. >
  3521. <img
  3522. :src="w.isLikes == true ? likes : noLikes"
  3523. alt=""
  3524. />
  3525. </div>
  3526. <div>{{ w.likesCount }}</div>
  3527. </div>
  3528. <div class="commentList" style="margin-right: 15px">
  3529. <div
  3530. class="commentImg"
  3531. @click="commentOther(w, toolIndex, wIndex)"
  3532. >
  3533. <img
  3534. src="../../assets/icon/comment/comment.png"
  3535. alt=""
  3536. />
  3537. </div>
  3538. <div>{{ w.commentCount }}</div>
  3539. </div>
  3540. </div>
  3541. </div>
  3542. </div>
  3543. </div>
  3544. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3545. 未提交
  3546. </div>
  3547. <div
  3548. class="noWorksS"
  3549. v-if="noWorksS && noWorksS[toolIndex].length"
  3550. >
  3551. <div
  3552. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3553. :key="sIndex"
  3554. class="noWorksName"
  3555. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3556. >
  3557. <el-tooltip effect="dark" :content="s.student" placement="top">
  3558. <span>{{ s.student }}</span>
  3559. </el-tooltip>
  3560. </div>
  3561. </div>
  3562. </div>
  3563. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3564. <div
  3565. class="zuoyeYulan"
  3566. v-if="
  3567. worksStudent.length &&
  3568. worksStudent[toolIndex].length > 0
  3569. "
  3570. >
  3571. <span class="worksTitle">作业预览</span>
  3572. <div
  3573. class="corOpen"
  3574. @click="contract(toolIndex)"
  3575. v-if="
  3576. (isCloseList[toolIndex].isCloseBoolean) &&
  3577. isCloseList[toolIndex].isClose == 0
  3578. "
  3579. >
  3580. 折叠
  3581. </div>
  3582. <div
  3583. class="corOpen"
  3584. @click="contract(toolIndex)"
  3585. v-if="isCloseList[toolIndex].isClose == 1"
  3586. >
  3587. 展开
  3588. </div>
  3589. </div>
  3590. <div
  3591. :id="'tool-' + toolIndex"
  3592. :style="{
  3593. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3594. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3595. }"
  3596. class="worksDetailBox"
  3597. v-if="
  3598. worksStudent.length &&
  3599. worksStudent[toolIndex].length > 0
  3600. "
  3601. >
  3602. <div
  3603. class="works"
  3604. style="
  3605. width: 200px;
  3606. height: 140px;
  3607. margin: 10px 10px 10px 0;
  3608. border-radius: 15px;
  3609. box-shadow: 0 0 6px 1px #dfdada;
  3610. "
  3611. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3612. :key="wIndex"
  3613. :class="w.type == 1 ? 'isTypeOne' : ''"
  3614. >
  3615. <div class="workImg" v-if="w.type == 0">
  3616. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3617. <img
  3618. :src="w.works"
  3619. @click="previewImg(w.works,w)"
  3620. alt
  3621. />
  3622. <div
  3623. class="answerScore"
  3624. v-if="w.score"
  3625. @click.stop="openScore(w)"
  3626. :class="{
  3627. rightW:
  3628. w.userid == userid ||
  3629. tType == 1 ||
  3630. tType == 4 ||
  3631. w.ateacher == userid,
  3632. }"
  3633. >
  3634. {{ JSON.parse(w.score).wScore }}分
  3635. </div>
  3636. <div
  3637. class="answerScore"
  3638. @click.stop="openScore(w)"
  3639. v-else-if="courseDetail.userid == userid"
  3640. :class="{
  3641. rightW:
  3642. w.userid == userid ||
  3643. tType == 1 ||
  3644. tType == 4 ||
  3645. w.ateacher == userid,
  3646. }"
  3647. >
  3648. 评分
  3649. </div>
  3650. <img
  3651. class="deleteImg"
  3652. src="../../assets/deleteworks.png"
  3653. v-if="
  3654. w.userid == userid || tType == 1 || tType == 4
  3655. "
  3656. @click.stop="deleteWorks(w.wid)"
  3657. alt
  3658. />
  3659. </div>
  3660. <div
  3661. class="workImg"
  3662. style="cursor: pointer"
  3663. v-if="w.type == 1"
  3664. >
  3665. <img :src="word" @click="openFile(w.works)" alt />
  3666. <!-- @click="openFile(w.works)" -->
  3667. <div
  3668. class="answerScore"
  3669. v-if="w.score"
  3670. @click.stop="openScore(w)"
  3671. :class="{
  3672. rightW:
  3673. w.userid == userid ||
  3674. tType == 1 ||
  3675. tType == 4 ||
  3676. w.ateacher == userid,
  3677. }"
  3678. >
  3679. {{ JSON.parse(w.score).wScore }}分
  3680. </div>
  3681. <div
  3682. class="answerScore"
  3683. @click.stop="openScore(w)"
  3684. v-else-if="courseDetail.userid == userid"
  3685. :class="{
  3686. rightW:
  3687. w.userid == userid ||
  3688. tType == 1 ||
  3689. tType == 4 ||
  3690. w.ateacher == userid,
  3691. }"
  3692. >
  3693. 评分
  3694. </div>
  3695. <img
  3696. class="deleteImg"
  3697. src="../../assets/deleteworks.png"
  3698. v-if="
  3699. w.userid == userid || tType == 1 || tType == 4
  3700. "
  3701. @click.stop="deleteWorks(w.wid)"
  3702. alt
  3703. />
  3704. </div>
  3705. <div class="workImg" v-if="w.type == 3">
  3706. <img
  3707. style="cursor: pointer"
  3708. :src="video"
  3709. @click="openVideo(w)"
  3710. alt
  3711. />
  3712. <!-- @click="openVideo(w.works)" -->
  3713. <div
  3714. class="answerScore"
  3715. v-if="w.score"
  3716. @click.stop="openScore(w)"
  3717. :class="{
  3718. rightW:
  3719. w.userid == userid ||
  3720. tType == 1 ||
  3721. tType == 4 ||
  3722. w.ateacher == userid,
  3723. }"
  3724. >
  3725. {{ JSON.parse(w.score).wScore }}分
  3726. </div>
  3727. <div
  3728. class="answerScore"
  3729. @click.stop="openScore(w)"
  3730. v-else-if="courseDetail.userid == userid"
  3731. :class="{
  3732. rightW:
  3733. w.userid == userid ||
  3734. tType == 1 ||
  3735. tType == 4 ||
  3736. w.ateacher == userid,
  3737. }"
  3738. >
  3739. 评分
  3740. </div>
  3741. <img
  3742. class="deleteImg"
  3743. src="../../assets/deleteworks.png"
  3744. v-if="
  3745. w.userid == userid || tType == 1 || tType == 4
  3746. "
  3747. @click.stop="deleteWorks(w.wid)"
  3748. alt
  3749. />
  3750. </div>
  3751. <div class="comment" style="min-width: 200px">
  3752. <div class="worksName">
  3753. <div
  3754. style="cursor: pointer"
  3755. @click="
  3756. openSname(w.sName, w.wid, toolIndex, w.userid)
  3757. "
  3758. >
  3759. {{ w.sName }}
  3760. </div>
  3761. </div>
  3762. <div class="commentList">
  3763. <div class="commentList">
  3764. <div
  3765. class="commentImg"
  3766. @click="
  3767. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3768. "
  3769. >
  3770. <img
  3771. :src="w.isLikes == true ? likes : noLikes"
  3772. alt=""
  3773. />
  3774. </div>
  3775. <div>{{ w.likesCount }}</div>
  3776. </div>
  3777. <div class="commentList" style="margin-right: 15px">
  3778. <div
  3779. class="commentImg"
  3780. @click="commentOther(w, toolIndex, wIndex)"
  3781. >
  3782. <img
  3783. src="../../assets/icon/comment/comment.png"
  3784. alt=""
  3785. />
  3786. </div>
  3787. <div>{{ w.commentCount }}</div>
  3788. </div>
  3789. </div>
  3790. </div>
  3791. </div>
  3792. </div>
  3793. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3794. 未提交
  3795. </div>
  3796. <div
  3797. class="noWorksS"
  3798. v-if="noWorksS && noWorksS[toolIndex].length"
  3799. >
  3800. <div
  3801. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3802. :key="sIndex"
  3803. class="noWorksName"
  3804. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3805. >
  3806. <el-tooltip effect="dark" :content="s.student" placement="top">
  3807. <span>{{ s.student }}</span>
  3808. </el-tooltip>
  3809. </div>
  3810. </div>
  3811. </div>
  3812. <div
  3813. v-if="
  3814. tType &&
  3815. ((tType == 2 && sIsOpen == true) ||
  3816. tType == 1 ||
  3817. tType == 4) &&
  3818. tool.tool.indexOf(4) != -1 &&
  3819. (tool.askJson[0].answer ||
  3820. tool.askJson[0].answer === 0) &&
  3821. checkJson[toolIndex].length
  3822. "
  3823. class="xuan_right_box"
  3824. >
  3825. <div
  3826. class="tool_right_box"
  3827. v-for="(item, index) in tool.askJson"
  3828. :key="index"
  3829. >
  3830. <div style="width: calc(100% - 30px);">
  3831. <el-tooltip
  3832. effect="light"
  3833. :content="index + 1 + '、' + item.askstitle"
  3834. placement="top"
  3835. popper-class="text_tooltip"
  3836. >
  3837. <div
  3838. style="
  3839. width: calc(100% - 130px);
  3840. display: block;
  3841. white-space: nowrap;
  3842. overflow: hidden;
  3843. text-overflow: ellipsis;
  3844. word-break: break-word;
  3845. cursor: pointer;
  3846. "
  3847. >
  3848. {{ index + 1 + "、" + item.askstitle }}
  3849. </div>
  3850. </el-tooltip>
  3851. </div>
  3852. <div class="right_box_xuan">
  3853. <span>正确率</span>
  3854. <span>{{
  3855. (checkJson[toolIndex][index].right
  3856. ? checkJson[toolIndex][index].right
  3857. : 0) + "%"
  3858. }}</span>
  3859. </div>
  3860. </div>
  3861. </div>
  3862. <div
  3863. class="xuan_right_box"
  3864. style="background: unset; padding: 0 10px"
  3865. v-if="
  3866. tType &&
  3867. ((tType == 2 && sIsOpen == true) ||
  3868. tType == 1 ||
  3869. tType == 4) &&
  3870. tool.tool.indexOf(4) != -1
  3871. "
  3872. >
  3873. <AskStatic
  3874. v-if="
  3875. worksStudent.length &&
  3876. worksStudent[toolIndex].length > 0
  3877. "
  3878. :askJSON="tool"
  3879. :checkJson="checkJson[toolIndex]"
  3880. ></AskStatic>
  3881. </div>
  3882. <div
  3883. v-if="
  3884. tType &&
  3885. ((tType == 2 && sIsOpen == true) ||
  3886. tType == 1 ||
  3887. tType == 4) &&
  3888. tool.tool.indexOf(4) != -1
  3889. "
  3890. class="worksBox"
  3891. >
  3892. <div
  3893. class="zuoyeYulan"
  3894. v-if="
  3895. worksStudent.length &&
  3896. worksStudent[toolIndex].length > 0
  3897. "
  3898. >
  3899. <div class="worksTop">
  3900. <div>作业预览</div>
  3901. <div
  3902. class="corOpen"
  3903. @click="contract(toolIndex)"
  3904. v-if="
  3905. (isCloseList[toolIndex].isCloseBoolean) &&
  3906. isCloseList[toolIndex].isClose == 0
  3907. "
  3908. >
  3909. 折叠
  3910. </div>
  3911. <div
  3912. class="corOpen"
  3913. @click="contract(toolIndex)"
  3914. v-if="isCloseList[toolIndex].isClose == 1"
  3915. >
  3916. 展开
  3917. </div>
  3918. </div>
  3919. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3920. </div>
  3921. <div>
  3922. <div
  3923. :id="'tool-' + toolIndex"
  3924. :style="{
  3925. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3926. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3927. }"
  3928. class="worksDetailBox"
  3929. v-if="
  3930. worksStudent.length &&
  3931. worksStudent[toolIndex].length > 0
  3932. "
  3933. >
  3934. <div
  3935. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3936. :key="wIndex"
  3937. class="isWorksName2"
  3938. @click="
  3939. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3940. "
  3941. >
  3942. {{ w.sName }}
  3943. <img
  3944. class="deleteImg deleteImg2"
  3945. src="../../assets/deleteworks.png"
  3946. v-if="
  3947. w.userid == userid || tType == 1 || tType == 4
  3948. "
  3949. @click.stop="deleteWorks(w.wid)"
  3950. alt
  3951. />
  3952. </div>
  3953. <!-- <div class="works" style="
  3954. width: 200px;
  3955. height: 140px;
  3956. border-radius: 10px;
  3957. box-shadow: 0 0 6px 1px #dfdada;
  3958. overflow: hidden;
  3959. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3960. <div class="workImg">
  3961. <img src="../../assets/icon/works/noImg.png" @click="
  3962. openTools(
  3963. 4,
  3964. toolIndex,
  3965. taskCount,
  3966. w.works,
  3967. w.sName
  3968. )
  3969. " alt />
  3970. </div>
  3971. <div class="worksName">
  3972. <div>{{ w.sName }}</div>
  3973. <div>{{ w.time }}</div>
  3974. </div>
  3975. </div> -->
  3976. </div>
  3977. </div>
  3978. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3979. 未提交
  3980. </div>
  3981. <div
  3982. class="noWorksS"
  3983. v-if="noWorksS && noWorksS[toolIndex].length"
  3984. >
  3985. <div
  3986. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3987. :key="sIndex"
  3988. class="noWorksName"
  3989. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3990. >
  3991. <el-tooltip effect="dark" :content="s.student" placement="top">
  3992. <span>{{ s.student }}</span>
  3993. </el-tooltip>
  3994. </div>
  3995. </div>
  3996. </div>
  3997. <div
  3998. v-if="
  3999. tType &&
  4000. ((tType == 2 && sIsOpen == true) ||
  4001. tType == 1 ||
  4002. tType == 4) &&
  4003. tool.tool.indexOf(45) != -1 &&
  4004. (tool.testJson.testJson[0].answer ||
  4005. tool.testJson.testJson[0].answer === 0) &&
  4006. checkJson[toolIndex].length
  4007. "
  4008. class="xuan_right_box"
  4009. >
  4010. <div
  4011. class="tool_right_box"
  4012. v-for="(item, index) in tool.testJson.testJson"
  4013. :key="index"
  4014. >
  4015. <div class="right_box_xuan" style="margin-right: 10px">
  4016. <span>正确率</span>
  4017. <span>{{
  4018. (checkJson[toolIndex][index].right
  4019. ? checkJson[toolIndex][index].right
  4020. : 0) + "%"
  4021. }}</span>
  4022. </div>
  4023. <div style="width: calc(100% - 30px);">
  4024. <el-tooltip
  4025. effect="light"
  4026. :content="index + 1 + '、' + item.teststitle"
  4027. placement="top"
  4028. popper-class="text_tooltip"
  4029. >
  4030. <div
  4031. style="
  4032. width: calc(100% - 130px);
  4033. display: block;
  4034. white-space: nowrap;
  4035. overflow: hidden;
  4036. text-overflow: ellipsis;
  4037. word-break: break-word;
  4038. cursor: pointer;
  4039. "
  4040. >
  4041. {{ index + 1 + "、" + item.teststitle }}
  4042. </div>
  4043. </el-tooltip>
  4044. </div>
  4045. </div>
  4046. </div>
  4047. <div
  4048. class="xuan_right_box"
  4049. style="background: unset; padding: 0 10px; width: 91.5%"
  4050. v-if="
  4051. tType &&
  4052. ((tType == 2 && sIsOpen == true) ||
  4053. tType == 1 ||
  4054. tType == 4) &&
  4055. tool.tool.indexOf(45) != -1
  4056. "
  4057. >
  4058. <AskStatic2
  4059. v-if="
  4060. worksStudent.length &&
  4061. worksStudent[toolIndex].length > 0
  4062. "
  4063. :askJSON="tool"
  4064. :checkJson="checkJson[toolIndex]"
  4065. ></AskStatic2>
  4066. </div>
  4067. <div
  4068. v-if="
  4069. tType &&
  4070. ((tType == 2 && sIsOpen == true) ||
  4071. tType == 1 ||
  4072. tType == 4) &&
  4073. tool.tool.indexOf(45) != -1
  4074. "
  4075. class="worksBox"
  4076. >
  4077. <div
  4078. class="zuoyeYulan"
  4079. v-if="
  4080. worksStudent.length &&
  4081. worksStudent[toolIndex].length > 0
  4082. "
  4083. >
  4084. <div class="worksTop">
  4085. <div>作业预览</div>
  4086. <div
  4087. class="corOpen"
  4088. @click="contract(toolIndex)"
  4089. v-if="
  4090. (isCloseList[toolIndex].isCloseBoolean) &&
  4091. isCloseList[toolIndex].isClose == 0
  4092. "
  4093. >
  4094. 折叠
  4095. </div>
  4096. <div
  4097. class="corOpen"
  4098. @click="contract(toolIndex)"
  4099. v-if="isCloseList[toolIndex].isClose == 1"
  4100. >
  4101. 展开
  4102. </div>
  4103. </div>
  4104. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4105. </div>
  4106. <div>
  4107. <div
  4108. :id="'tool-' + toolIndex"
  4109. :style="{
  4110. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4111. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4112. }"
  4113. class="worksDetailBox"
  4114. v-if="
  4115. worksStudent.length &&
  4116. worksStudent[toolIndex].length > 0
  4117. "
  4118. >
  4119. <div
  4120. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4121. :key="wIndex"
  4122. class="isWorksName2"
  4123. @click="
  4124. openTools(
  4125. 45,
  4126. toolIndex,
  4127. taskCount,
  4128. w.works,
  4129. w.sName
  4130. )
  4131. "
  4132. >
  4133. {{ w.sName }}
  4134. <img
  4135. class="deleteImg deleteImg2"
  4136. src="../../assets/deleteworks.png"
  4137. v-if="
  4138. w.userid == userid || tType == 1 || tType == 4
  4139. "
  4140. @click.stop="deleteWorks(w.wid)"
  4141. alt
  4142. />
  4143. </div>
  4144. </div>
  4145. </div>
  4146. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4147. 未提交
  4148. </div>
  4149. <div
  4150. class="noWorksS"
  4151. v-if="noWorksS && noWorksS[toolIndex].length"
  4152. >
  4153. <div
  4154. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4155. :key="sIndex"
  4156. class="noWorksName"
  4157. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4158. >
  4159. <el-tooltip effect="dark" :content="s.student" placement="top">
  4160. <span>{{ s.student }}</span>
  4161. </el-tooltip>
  4162. </div>
  4163. </div>
  4164. </div>
  4165. <div
  4166. v-if="
  4167. tType &&
  4168. ((tType == 2 && sIsOpen == true) ||
  4169. tType == 1 ||
  4170. tType == 4) &&
  4171. tool.tool.indexOf(69) != -1
  4172. "
  4173. class="worksBox"
  4174. >
  4175. <div
  4176. class="zuoyeYulan"
  4177. v-if="
  4178. worksStudent.length &&
  4179. worksStudent[toolIndex].length > 0
  4180. "
  4181. >
  4182. <div class="worksTop">
  4183. <div>作业预览</div>
  4184. <div
  4185. class="corOpen"
  4186. @click="contract(toolIndex)"
  4187. v-if="
  4188. (isCloseList[toolIndex].isCloseBoolean) &&
  4189. isCloseList[toolIndex].isClose == 0
  4190. "
  4191. >
  4192. 折叠
  4193. </div>
  4194. <div
  4195. class="corOpen"
  4196. @click="contract(toolIndex)"
  4197. v-if="isCloseList[toolIndex].isClose == 1"
  4198. >
  4199. 展开
  4200. </div>
  4201. </div>
  4202. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4203. </div>
  4204. <div>
  4205. <div
  4206. :id="'tool-' + toolIndex"
  4207. :style="{
  4208. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4209. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4210. }"
  4211. class="worksDetailBox"
  4212. v-if="
  4213. worksStudent.length &&
  4214. worksStudent[toolIndex].length > 0
  4215. "
  4216. >
  4217. <div
  4218. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4219. :key="wIndex"
  4220. class="isWorksName2"
  4221. style="width: 160px;height: 65px;line-height: 65px;"
  4222. @click="
  4223. openTools(
  4224. 69,
  4225. toolIndex,
  4226. taskCount,
  4227. w.works,
  4228. w.sName,
  4229. w.wid
  4230. )
  4231. "
  4232. >
  4233. {{ w.sName }}
  4234. <img
  4235. class="deleteImg1"
  4236. src="../../assets/evaEnglish.png"
  4237. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4238. alt
  4239. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4240. />
  4241. <img
  4242. class="deleteImg deleteImg2"
  4243. src="../../assets/deleteworks.png"
  4244. v-if="
  4245. w.userid == userid || tType == 1 || tType == 4
  4246. "
  4247. @click.stop="deleteWorks(w.wid)"
  4248. alt
  4249. />
  4250. </div>
  4251. </div>
  4252. </div>
  4253. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4254. 未提交
  4255. </div>
  4256. <div
  4257. class="noWorksS"
  4258. v-if="noWorksS && noWorksS[toolIndex].length"
  4259. >
  4260. <div
  4261. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4262. :key="sIndex"
  4263. class="noWorksName"
  4264. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4265. >
  4266. <el-tooltip effect="dark" :content="s.student" placement="top">
  4267. <span>{{ s.student }}</span>
  4268. </el-tooltip>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div
  4273. v-if="
  4274. tType &&
  4275. ((tType == 2 && sIsOpen == true) ||
  4276. tType == 1 ||
  4277. tType == 4) &&
  4278. tool.tool.indexOf(15) != -1
  4279. "
  4280. class="worksBox"
  4281. >
  4282. <div
  4283. class="zuoyeYulan"
  4284. v-if="
  4285. (worksStudent.length &&
  4286. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4287. "
  4288. >
  4289. <div class="worksTop">
  4290. <div>作业预览</div>
  4291. <div
  4292. class="corOpen"
  4293. @click="contract(toolIndex)"
  4294. v-if="
  4295. (isCloseList[toolIndex].isCloseBoolean) &&
  4296. isCloseList[toolIndex].isClose == 0
  4297. "
  4298. >
  4299. 折叠
  4300. </div>
  4301. <div
  4302. class="corOpen"
  4303. @click="contract(toolIndex)"
  4304. v-if="isCloseList[toolIndex].isClose == 1"
  4305. >
  4306. 展开
  4307. </div>
  4308. </div>
  4309. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4310. </div>
  4311. <div
  4312. class="group_workBox"
  4313. v-for="(g, gindex) in courseGroup.group"
  4314. :key="gindex"
  4315. >
  4316. <div class="group_box">
  4317. <div class="group_title">
  4318. <el-tooltip
  4319. class="item"
  4320. effect="light"
  4321. :content="g.name"
  4322. placement="top"
  4323. >
  4324. <div class="group_name">{{ g.name }}</div>
  4325. </el-tooltip>
  4326. </div>
  4327. <div
  4328. class="group_work"
  4329. v-if="
  4330. g.works &&
  4331. g.works.length &&
  4332. g.works[toolIndex].length
  4333. "
  4334. >
  4335. <div
  4336. class="works"
  4337. v-for="(w, wIndex) in g.works[toolIndex]"
  4338. :key="wIndex"
  4339. >
  4340. <div
  4341. class="workImg"
  4342. style="
  4343. border-radius: 15px;
  4344. box-shadow: 0px 0px 5px 5px #eee;
  4345. "
  4346. >
  4347. <div
  4348. class="answerBg"
  4349. style="border-radius: 15px 15px 0 0"
  4350. @click="
  4351. commentOther(w, toolIndex, wIndex, null, g.id)
  4352. "
  4353. >
  4354. <div class="answerContent">
  4355. {{ JSON.parse(w.works)[0].answer }}
  4356. </div>
  4357. <div
  4358. class="answerScore"
  4359. v-if="w.score"
  4360. @click.stop="openScore(w)"
  4361. :class="{
  4362. rightW:
  4363. w.userid == userid ||
  4364. tType == 1 ||
  4365. tType == 4,
  4366. }"
  4367. >
  4368. {{ JSON.parse(w.score).wScore }}分
  4369. </div>
  4370. <div
  4371. class="answerScore"
  4372. @click.stop="openScore(w)"
  4373. v-else-if="courseDetail.userid == userid"
  4374. :class="{
  4375. rightW:
  4376. w.userid == userid ||
  4377. tType == 1 ||
  4378. tType == 4,
  4379. }"
  4380. >
  4381. 评分
  4382. </div>
  4383. <img
  4384. class="deleteImg"
  4385. src="../../assets/deleteworks.png"
  4386. v-if="
  4387. w.userid == userid ||
  4388. tType == 1 ||
  4389. tType == 4
  4390. "
  4391. @click.stop="deleteWorks(w.wid)"
  4392. alt
  4393. />
  4394. </div>
  4395. <div class="comment">
  4396. <div class="worksName">
  4397. <div>{{ w.sName }}</div>
  4398. </div>
  4399. <div class="commentList">
  4400. <div
  4401. class="commentImg"
  4402. @click="
  4403. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4404. "
  4405. >
  4406. <img
  4407. :src="w.isLikes == true ? likes : noLikes"
  4408. alt=""
  4409. />
  4410. </div>
  4411. <div>{{ w.likesCount }}</div>
  4412. </div>
  4413. <div
  4414. class="commentList"
  4415. style="margin-right: 15px"
  4416. >
  4417. <div
  4418. class="commentImg"
  4419. @click="
  4420. commentOther(
  4421. w,
  4422. toolIndex,
  4423. wIndex,
  4424. null,
  4425. g.id
  4426. )
  4427. "
  4428. >
  4429. <img
  4430. src="../../assets/icon/comment/comment.png"
  4431. alt=""
  4432. />
  4433. </div>
  4434. <div>{{ w.commentCount }}</div>
  4435. </div>
  4436. </div>
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div class="group_work" v-else>暂无提交作业</div>
  4441. </div>
  4442. </div>
  4443. <div
  4444. :id="'tool-' + toolIndex"
  4445. :style="{
  4446. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4447. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4448. }"
  4449. class="worksDetailBox"
  4450. v-if="
  4451. worksStudent.length &&
  4452. worksStudent[toolIndex].length > 0
  4453. "
  4454. >
  4455. <div
  4456. class="works"
  4457. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4458. :key="wIndex"
  4459. >
  4460. <div
  4461. class="workImg"
  4462. style="
  4463. border-radius: 15px;
  4464. box-shadow: 0px 0px 5px 5px #eee;
  4465. "
  4466. >
  4467. <!-- <img
  4468. src="../../assets/icon/works/noImg.png"
  4469. @click="openTools(15, toolIndex, taskCount, w.works)"
  4470. alt=""
  4471. />-->
  4472. <div
  4473. class="answerBg"
  4474. style="border-radius: 15px 15px 0 0"
  4475. @click="commentOther(w, toolIndex, wIndex)"
  4476. >
  4477. <!-- <div>{{ w.sName }}</div> -->
  4478. <div class="answerContent">
  4479. {{ JSON.parse(w.works)[0].answer }}
  4480. </div>
  4481. <div
  4482. class="answerScore"
  4483. v-if="w.score"
  4484. @click.stop="openScore(w)"
  4485. :class="{
  4486. rightW:
  4487. w.userid == userid ||
  4488. tType == 1 ||
  4489. tType == 4,
  4490. }"
  4491. >
  4492. {{ JSON.parse(w.score).wScore }}分
  4493. </div>
  4494. <div
  4495. class="answerScore"
  4496. @click.stop="openScore(w)"
  4497. v-else-if="courseDetail.userid == userid"
  4498. :class="{
  4499. rightW:
  4500. w.userid == userid ||
  4501. tType == 1 ||
  4502. tType == 4,
  4503. }"
  4504. >
  4505. 评分
  4506. </div>
  4507. <img
  4508. class="deleteImg"
  4509. src="../../assets/deleteworks.png"
  4510. v-if="
  4511. w.userid == userid || tType == 1 || tType == 4
  4512. "
  4513. @click.stop="deleteWorks(w.wid)"
  4514. alt
  4515. />
  4516. </div>
  4517. <div class="comment">
  4518. <div class="worksName">
  4519. <div>{{ w.sName }}</div>
  4520. </div>
  4521. <div class="commentList">
  4522. <div
  4523. class="commentImg"
  4524. @click="
  4525. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4526. "
  4527. >
  4528. <img
  4529. :src="w.isLikes == true ? likes : noLikes"
  4530. alt=""
  4531. />
  4532. </div>
  4533. <div>{{ w.likesCount }}</div>
  4534. </div>
  4535. <div class="commentList" style="margin-right: 15px">
  4536. <div
  4537. class="commentImg"
  4538. @click="commentOther(w, toolIndex, wIndex)"
  4539. >
  4540. <img
  4541. src="../../assets/icon/comment/comment.png"
  4542. alt=""
  4543. />
  4544. </div>
  4545. <div>{{ w.commentCount }}</div>
  4546. </div>
  4547. </div>
  4548. </div>
  4549. </div>
  4550. </div>
  4551. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4552. 未提交
  4553. </div>
  4554. <div
  4555. class="noWorksS"
  4556. v-if="noWorksS && noWorksS[toolIndex].length"
  4557. >
  4558. <div
  4559. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4560. :key="sIndex"
  4561. class="noWorksName"
  4562. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4563. >
  4564. <el-tooltip effect="dark" :content="s.student" placement="top">
  4565. <span>{{ s.student }}</span>
  4566. </el-tooltip>
  4567. </div>
  4568. </div>
  4569. </div>
  4570. <div
  4571. v-if="
  4572. tType &&
  4573. ((tType == 2 && sIsOpen == true) ||
  4574. tType == 1 ||
  4575. tType == 4) &&
  4576. tool.tool.indexOf(1) != -1
  4577. "
  4578. class="worksBox"
  4579. >
  4580. <div
  4581. class="zuoyeYulan"
  4582. v-if="
  4583. (worksStudent.length &&
  4584. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4585. "
  4586. >
  4587. <div class="worksTop">
  4588. <div>作业预览</div>
  4589. <div
  4590. class="corOpen"
  4591. @click="contract(toolIndex)"
  4592. v-if="
  4593. (isCloseList[toolIndex].isCloseBoolean) &&
  4594. isCloseList[toolIndex].isClose == 0
  4595. "
  4596. >
  4597. 折叠
  4598. </div>
  4599. <div
  4600. class="corOpen"
  4601. @click="contract(toolIndex)"
  4602. v-if="isCloseList[toolIndex].isClose == 1"
  4603. >
  4604. 展开
  4605. </div>
  4606. </div>
  4607. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4608. </div>
  4609. <div
  4610. class="group_workBox"
  4611. v-for="(g, gindex) in courseGroup.group"
  4612. :key="gindex"
  4613. >
  4614. <div class="group_box">
  4615. <div class="group_title">
  4616. <el-tooltip
  4617. class="item"
  4618. effect="light"
  4619. :content="g.name"
  4620. placement="top"
  4621. >
  4622. <div class="group_name">{{ g.name }}</div>
  4623. </el-tooltip>
  4624. </div>
  4625. <div
  4626. class="group_work"
  4627. v-if="
  4628. g.works &&
  4629. g.works.length &&
  4630. g.works[toolIndex].length
  4631. "
  4632. >
  4633. <div
  4634. class="works"
  4635. style="
  4636. width: 200px;
  4637. height: 140px;
  4638. margin: 10px 10px 10px 0;
  4639. border-radius: 15px;
  4640. box-shadow: 0 0 6px 1px #dfdada;
  4641. "
  4642. v-for="(w, wIndex) in g.works[toolIndex]"
  4643. :key="wIndex"
  4644. :class="w.type == 1 ? 'isTypeOne' : ''"
  4645. >
  4646. <div class="workImg">
  4647. <img
  4648. :src="w.works"
  4649. @click="previewImg(w.works,w)"
  4650. alt
  4651. />
  4652. <div
  4653. class="answerScore"
  4654. v-if="w.score"
  4655. @click.stop="openScore(w)"
  4656. :class="{
  4657. rightW:
  4658. w.userid == userid ||
  4659. tType == 1 ||
  4660. tType == 4,
  4661. }"
  4662. >
  4663. {{ JSON.parse(w.score).wScore }}分
  4664. </div>
  4665. <div
  4666. class="answerScore"
  4667. @click.stop="openScore(w)"
  4668. v-else-if="courseDetail.userid == userid"
  4669. :class="{
  4670. rightW:
  4671. w.userid == userid ||
  4672. tType == 1 ||
  4673. tType == 4,
  4674. }"
  4675. >
  4676. 评分
  4677. </div>
  4678. <img
  4679. class="deleteImg"
  4680. src="../../assets/deleteworks.png"
  4681. v-if="
  4682. w.userid == userid || tType == 1 || tType == 4
  4683. "
  4684. @click.stop="deleteWorks(w.wid)"
  4685. alt
  4686. />
  4687. </div>
  4688. <div class="comment" style="min-width: 200px">
  4689. <div class="worksName">
  4690. <div>{{ w.sName }}</div>
  4691. </div>
  4692. <div class="commentList">
  4693. <div class="commentList">
  4694. <div
  4695. class="commentImg"
  4696. @click="
  4697. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4698. "
  4699. >
  4700. <img
  4701. :src="w.isLikes == true ? likes : noLikes"
  4702. alt=""
  4703. />
  4704. </div>
  4705. <div>{{ w.likesCount }}</div>
  4706. </div>
  4707. <div
  4708. class="commentList"
  4709. style="margin-right: 15px"
  4710. >
  4711. <div
  4712. class="commentImg"
  4713. @click="
  4714. commentOther(
  4715. w,
  4716. toolIndex,
  4717. wIndex,
  4718. null,
  4719. g.id
  4720. )
  4721. "
  4722. >
  4723. <img
  4724. src="../../assets/icon/comment/comment.png"
  4725. alt=""
  4726. />
  4727. </div>
  4728. <div>{{ w.commentCount }}</div>
  4729. </div>
  4730. </div>
  4731. </div>
  4732. </div>
  4733. </div>
  4734. <div class="group_work" v-else>暂无提交作业</div>
  4735. </div>
  4736. </div>
  4737. <div
  4738. :id="'tool-' + toolIndex"
  4739. :style="{
  4740. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4741. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4742. }"
  4743. class="worksDetailBox"
  4744. v-if="
  4745. worksStudent.length &&
  4746. worksStudent[toolIndex].length > 0
  4747. "
  4748. >
  4749. <div
  4750. class="works"
  4751. style="
  4752. width: 200px;
  4753. height: 140px;
  4754. margin: 10px 10px 10px 0;
  4755. border-radius: 15px;
  4756. box-shadow: 0 0 6px 1px #dfdada;
  4757. "
  4758. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4759. :key="wIndex"
  4760. >
  4761. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4762. <div class="workImg">
  4763. <img
  4764. :src="w.works"
  4765. @click="previewImg(w.works,w)"
  4766. alt
  4767. />
  4768. <div
  4769. class="answerScore"
  4770. v-if="w.score"
  4771. @click.stop="openScore(w)"
  4772. :class="{
  4773. rightW:
  4774. w.userid == userid || tType == 1 || tType == 4,
  4775. }"
  4776. >
  4777. {{ JSON.parse(w.score).wScore }}分
  4778. </div>
  4779. <div
  4780. class="answerScore"
  4781. @click.stop="openScore(w)"
  4782. v-else-if="courseDetail.userid == userid"
  4783. :class="{
  4784. rightW:
  4785. w.userid == userid || tType == 1 || tType == 4,
  4786. }"
  4787. >
  4788. 评分
  4789. </div>
  4790. <img
  4791. class="deleteImg"
  4792. src="../../assets/deleteworks.png"
  4793. v-if="
  4794. w.userid == userid || tType == 1 || tType == 4
  4795. "
  4796. @click.stop="deleteWorks(w.wid)"
  4797. alt
  4798. />
  4799. </div>
  4800. <div class="comment" style="min-width: 200px">
  4801. <div class="worksName">
  4802. <div>{{ w.sName }}</div>
  4803. </div>
  4804. <div class="commentList">
  4805. <div class="commentList">
  4806. <div
  4807. class="commentImg"
  4808. @click="
  4809. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4810. "
  4811. >
  4812. <img
  4813. :src="w.isLikes == true ? likes : noLikes"
  4814. alt=""
  4815. />
  4816. </div>
  4817. <div>{{ w.likesCount }}</div>
  4818. </div>
  4819. <div class="commentList" style="margin-right: 15px">
  4820. <div
  4821. class="commentImg"
  4822. @click="commentOther(w, toolIndex, wIndex)"
  4823. >
  4824. <img
  4825. src="../../assets/icon/comment/comment.png"
  4826. alt=""
  4827. />
  4828. </div>
  4829. <div>{{ w.commentCount }}</div>
  4830. </div>
  4831. </div>
  4832. </div>
  4833. </div>
  4834. </div>
  4835. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4836. 未提交
  4837. </div>
  4838. <div
  4839. class="noWorksS"
  4840. v-if="noWorksS && noWorksS[toolIndex].length"
  4841. >
  4842. <div
  4843. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4844. :key="sIndex"
  4845. class="noWorksName"
  4846. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4847. >
  4848. <el-tooltip effect="dark" :content="s.student" placement="top">
  4849. <span>{{ s.student }}</span>
  4850. </el-tooltip>
  4851. </div>
  4852. </div>
  4853. </div>
  4854. <div
  4855. v-if="
  4856. tType &&
  4857. ((tType == 2 && sIsOpen == true) ||
  4858. tType == 1 ||
  4859. tType == 4) &&
  4860. tool.tool.indexOf(3) != -1
  4861. "
  4862. class="worksBox"
  4863. >
  4864. <div
  4865. class="zuoyeYulan"
  4866. v-if="
  4867. (worksStudent.length &&
  4868. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4869. "
  4870. >
  4871. <div class="worksTop">
  4872. <div>作业预览</div>
  4873. <div
  4874. class="corOpen"
  4875. @click="contract(toolIndex)"
  4876. v-if="
  4877. (isCloseList[toolIndex].isCloseBoolean) &&
  4878. isCloseList[toolIndex].isClose == 0
  4879. "
  4880. >
  4881. 折叠
  4882. </div>
  4883. <div
  4884. class="corOpen"
  4885. @click="contract(toolIndex)"
  4886. v-if="isCloseList[toolIndex].isClose == 1"
  4887. >
  4888. 展开
  4889. </div>
  4890. </div>
  4891. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4892. </div>
  4893. <div
  4894. class="group_workBox"
  4895. v-for="(g, gindex) in courseGroup.group"
  4896. :key="gindex"
  4897. >
  4898. <div class="group_box">
  4899. <div class="group_title">
  4900. <el-tooltip
  4901. class="item"
  4902. effect="light"
  4903. :content="g.name"
  4904. placement="top"
  4905. >
  4906. <div class="group_name">{{ g.name }}</div>
  4907. </el-tooltip>
  4908. </div>
  4909. <div
  4910. class="group_work"
  4911. v-if="
  4912. g.works &&
  4913. g.works.length &&
  4914. g.works[toolIndex].length
  4915. "
  4916. >
  4917. <div
  4918. class="works"
  4919. style="
  4920. width: 200px;
  4921. height: 140px;
  4922. margin: 10px 10px 10px 0;
  4923. border-radius: 15px;
  4924. box-shadow: 0 0 6px 1px #dfdada;
  4925. "
  4926. v-for="(w, wIndex) in g.works[toolIndex]"
  4927. :key="wIndex"
  4928. :class="w.type == 1 ? 'isTypeOne' : ''"
  4929. >
  4930. <div class="workImg">
  4931. <img
  4932. :src="w.works"
  4933. @click="previewImg(w.works,w)"
  4934. alt
  4935. />
  4936. <div
  4937. class="answerScore"
  4938. v-if="w.score"
  4939. @click.stop="openScore(w)"
  4940. :class="{
  4941. rightW:
  4942. w.userid == userid ||
  4943. tType == 1 ||
  4944. tType == 4,
  4945. }"
  4946. >
  4947. {{ JSON.parse(w.score).wScore }}分
  4948. </div>
  4949. <div
  4950. class="answerScore"
  4951. @click.stop="openScore(w)"
  4952. v-else-if="courseDetail.userid == userid"
  4953. :class="{
  4954. rightW:
  4955. w.userid == userid ||
  4956. tType == 1 ||
  4957. tType == 4,
  4958. }"
  4959. >
  4960. 评分
  4961. </div>
  4962. <img
  4963. class="deleteImg"
  4964. src="../../assets/deleteworks.png"
  4965. v-if="
  4966. w.userid == userid || tType == 1 || tType == 4
  4967. "
  4968. @click.stop="deleteWorks(w.wid)"
  4969. alt
  4970. />
  4971. </div>
  4972. <div class="comment" style="min-width: 200px">
  4973. <div class="worksName">
  4974. <div>{{ w.sName }}</div>
  4975. </div>
  4976. <div class="commentList">
  4977. <div class="commentList">
  4978. <div
  4979. class="commentImg"
  4980. @click="
  4981. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4982. "
  4983. >
  4984. <img
  4985. :src="w.isLikes == true ? likes : noLikes"
  4986. alt=""
  4987. />
  4988. </div>
  4989. <div>{{ w.likesCount }}</div>
  4990. </div>
  4991. <div
  4992. class="commentList"
  4993. style="margin-right: 15px"
  4994. >
  4995. <div
  4996. class="commentImg"
  4997. @click="
  4998. commentOther(
  4999. w,
  5000. toolIndex,
  5001. wIndex,
  5002. null,
  5003. g.id
  5004. )
  5005. "
  5006. >
  5007. <img
  5008. src="../../assets/icon/comment/comment.png"
  5009. alt=""
  5010. />
  5011. </div>
  5012. <div>{{ w.commentCount }}</div>
  5013. </div>
  5014. </div>
  5015. </div>
  5016. </div>
  5017. </div>
  5018. <div class="group_work" v-else>暂无提交作业</div>
  5019. </div>
  5020. </div>
  5021. <div
  5022. :id="'tool-' + toolIndex"
  5023. :style="{
  5024. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5025. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5026. }"
  5027. class="worksDetailBox"
  5028. v-if="
  5029. worksStudent.length &&
  5030. worksStudent[toolIndex].length > 0
  5031. "
  5032. >
  5033. <div
  5034. class="works"
  5035. style="
  5036. width: 200px;
  5037. height: 140px;
  5038. margin: 10px 10px 10px 0;
  5039. border-radius: 15px;
  5040. box-shadow: 0 0 6px 1px #dfdada;
  5041. "
  5042. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5043. :key="wIndex"
  5044. >
  5045. <!-- @click="previewImg(w.works)" -->
  5046. <div class="workImg">
  5047. <img
  5048. :src="w.works"
  5049. @click="previewImg(w.works,w)"
  5050. alt
  5051. />
  5052. <div
  5053. class="answerScore"
  5054. v-if="w.score"
  5055. @click.stop="openScore(w)"
  5056. :class="{
  5057. rightW:
  5058. w.userid == userid || tType == 1 || tType == 4,
  5059. }"
  5060. >
  5061. {{ JSON.parse(w.score).wScore }}分
  5062. </div>
  5063. <div
  5064. class="answerScore"
  5065. @click.stop="openScore(w)"
  5066. v-else-if="courseDetail.userid == userid"
  5067. :class="{
  5068. rightW:
  5069. w.userid == userid || tType == 1 || tType == 4,
  5070. }"
  5071. >
  5072. 评分
  5073. </div>
  5074. <img
  5075. class="deleteImg"
  5076. src="../../assets/deleteworks.png"
  5077. v-if="
  5078. w.userid == userid || tType == 1 || tType == 4
  5079. "
  5080. @click.stop="deleteWorks(w.wid)"
  5081. alt
  5082. />
  5083. </div>
  5084. <div class="comment" style="min-width: 200px">
  5085. <div class="worksName">
  5086. <div>{{ w.sName }}</div>
  5087. </div>
  5088. <div class="commentList">
  5089. <div class="commentList">
  5090. <div
  5091. class="commentImg"
  5092. @click="
  5093. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5094. "
  5095. >
  5096. <img
  5097. :src="w.isLikes == true ? likes : noLikes"
  5098. alt=""
  5099. />
  5100. </div>
  5101. <div>{{ w.likesCount }}</div>
  5102. </div>
  5103. <div class="commentList" style="margin-right: 15px">
  5104. <div
  5105. class="commentImg"
  5106. @click="commentOther(w, toolIndex, wIndex)"
  5107. >
  5108. <img
  5109. src="../../assets/icon/comment/comment.png"
  5110. alt=""
  5111. />
  5112. </div>
  5113. <div>{{ w.commentCount }}</div>
  5114. </div>
  5115. </div>
  5116. </div>
  5117. </div>
  5118. </div>
  5119. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5120. 未提交
  5121. </div>
  5122. <div
  5123. class="noWorksS"
  5124. v-if="noWorksS && noWorksS[toolIndex].length"
  5125. >
  5126. <div
  5127. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5128. :key="sIndex"
  5129. class="noWorksName"
  5130. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5131. >
  5132. <el-tooltip effect="dark" :content="s.student" placement="top">
  5133. <span>{{ s.student }}</span>
  5134. </el-tooltip>
  5135. </div>
  5136. </div>
  5137. </div>
  5138. <div
  5139. v-if="
  5140. tType &&
  5141. ((tType == 2 && sIsOpen == true) ||
  5142. tType == 1 ||
  5143. tType == 4) &&
  5144. tool.tool.indexOf(6) != -1
  5145. "
  5146. class="worksBox"
  5147. >
  5148. <div
  5149. class="zuoyeYulan"
  5150. v-if="
  5151. (worksStudent.length &&
  5152. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5153. "
  5154. >
  5155. <div class="worksTop">
  5156. <div>作业预览</div>
  5157. <div
  5158. class="corOpen"
  5159. @click="contract(toolIndex)"
  5160. v-if="
  5161. (isCloseList[toolIndex].isCloseBoolean) &&
  5162. isCloseList[toolIndex].isClose == 0
  5163. "
  5164. >
  5165. 折叠
  5166. </div>
  5167. <div
  5168. class="corOpen"
  5169. @click="contract(toolIndex)"
  5170. v-if="isCloseList[toolIndex].isClose == 1"
  5171. >
  5172. 展开
  5173. </div>
  5174. </div>
  5175. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5176. </div>
  5177. <div
  5178. class="group_workBox"
  5179. v-for="(g, gindex) in courseGroup.group"
  5180. :key="gindex"
  5181. >
  5182. <div class="group_box">
  5183. <div class="group_title">
  5184. <el-tooltip
  5185. class="item"
  5186. effect="light"
  5187. :content="g.name"
  5188. placement="top"
  5189. >
  5190. <div class="group_name">{{ g.name }}</div>
  5191. </el-tooltip>
  5192. </div>
  5193. <div
  5194. class="group_work"
  5195. v-if="
  5196. g.works &&
  5197. g.works.length &&
  5198. g.works[toolIndex].length
  5199. "
  5200. >
  5201. <div
  5202. class="works"
  5203. style="
  5204. width: 200px;
  5205. height: 140px;
  5206. margin: 10px 10px 10px 0;
  5207. border-radius: 15px;
  5208. box-shadow: 0 0 6px 1px #dfdada;
  5209. "
  5210. v-for="(w, wIndex) in g.works[toolIndex]"
  5211. :key="wIndex"
  5212. :class="w.type == 1 ? 'isTypeOne' : ''"
  5213. >
  5214. <div class="workImg">
  5215. <img
  5216. :src="w.works"
  5217. @click="previewImg(w.works,w)"
  5218. alt
  5219. />
  5220. <div
  5221. class="answerScore"
  5222. v-if="w.score"
  5223. @click.stop="openScore(w)"
  5224. :class="{
  5225. rightW:
  5226. w.userid == userid ||
  5227. tType == 1 ||
  5228. tType == 4,
  5229. }"
  5230. >
  5231. {{ JSON.parse(w.score).wScore }}分
  5232. </div>
  5233. <div
  5234. class="answerScore"
  5235. @click.stop="openScore(w)"
  5236. v-else-if="courseDetail.userid == userid"
  5237. :class="{
  5238. rightW:
  5239. w.userid == userid ||
  5240. tType == 1 ||
  5241. tType == 4,
  5242. }"
  5243. >
  5244. 评分
  5245. </div>
  5246. <img
  5247. class="deleteImg"
  5248. src="../../assets/deleteworks.png"
  5249. v-if="
  5250. w.userid == userid || tType == 1 || tType == 4
  5251. "
  5252. @click.stop="deleteWorks(w.wid)"
  5253. alt
  5254. />
  5255. </div>
  5256. <div class="comment" style="min-width: 200px">
  5257. <div class="worksName">
  5258. <div>{{ w.sName }}</div>
  5259. </div>
  5260. <div class="commentList">
  5261. <div class="commentList">
  5262. <div
  5263. class="commentImg"
  5264. @click="
  5265. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5266. "
  5267. >
  5268. <img
  5269. :src="w.isLikes == true ? likes : noLikes"
  5270. alt=""
  5271. />
  5272. </div>
  5273. <div>{{ w.likesCount }}</div>
  5274. </div>
  5275. <div
  5276. class="commentList"
  5277. style="margin-right: 15px"
  5278. >
  5279. <div
  5280. class="commentImg"
  5281. @click="
  5282. commentOther(
  5283. w,
  5284. toolIndex,
  5285. wIndex,
  5286. null,
  5287. g.id
  5288. )
  5289. "
  5290. >
  5291. <img
  5292. src="../../assets/icon/comment/comment.png"
  5293. alt=""
  5294. />
  5295. </div>
  5296. <div>{{ w.commentCount }}</div>
  5297. </div>
  5298. </div>
  5299. </div>
  5300. </div>
  5301. </div>
  5302. <div class="group_work" v-else>暂无提交作业</div>
  5303. </div>
  5304. </div>
  5305. <div
  5306. :id="'tool-' + toolIndex"
  5307. :style="{
  5308. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5309. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5310. }"
  5311. class="worksDetailBox"
  5312. v-if="
  5313. worksStudent.length &&
  5314. worksStudent[toolIndex].length > 0
  5315. "
  5316. >
  5317. <div
  5318. class="works"
  5319. style="
  5320. width: 200px;
  5321. height: 140px;
  5322. margin: 10px 10px 10px 0;
  5323. border-radius: 15px;
  5324. box-shadow: 0 0 6px 1px #dfdada;
  5325. "
  5326. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5327. :key="wIndex"
  5328. >
  5329. <!-- @click="previewImg(w.works)" -->
  5330. <div class="workImg">
  5331. <img
  5332. :src="w.works"
  5333. @click="previewImg(w.works,w)"
  5334. alt
  5335. />
  5336. <div
  5337. class="answerScore"
  5338. v-if="w.score"
  5339. @click.stop="openScore(w)"
  5340. :class="{
  5341. rightW:
  5342. w.userid == userid || tType == 1 || tType == 4,
  5343. }"
  5344. >
  5345. {{ JSON.parse(w.score).wScore }}分
  5346. </div>
  5347. <div
  5348. class="answerScore"
  5349. @click.stop="openScore(w)"
  5350. v-else-if="courseDetail.userid == userid"
  5351. :class="{
  5352. rightW:
  5353. w.userid == userid || tType == 1 || tType == 4,
  5354. }"
  5355. >
  5356. 评分
  5357. </div>
  5358. <img
  5359. class="deleteImg"
  5360. src="../../assets/deleteworks.png"
  5361. v-if="
  5362. w.userid == userid || tType == 1 || tType == 4
  5363. "
  5364. @click.stop="deleteWorks(w.wid)"
  5365. alt
  5366. />
  5367. </div>
  5368. <div class="comment" style="min-width: 200px">
  5369. <div class="worksName">
  5370. <div>{{ w.sName }}</div>
  5371. </div>
  5372. <div class="commentList">
  5373. <div class="commentList">
  5374. <div
  5375. class="commentImg"
  5376. @click="
  5377. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5378. "
  5379. >
  5380. <img
  5381. :src="w.isLikes == true ? likes : noLikes"
  5382. alt=""
  5383. />
  5384. </div>
  5385. <div>{{ w.likesCount }}</div>
  5386. </div>
  5387. <div class="commentList" style="margin-right: 15px">
  5388. <div
  5389. class="commentImg"
  5390. @click="commentOther(w, toolIndex, wIndex)"
  5391. >
  5392. <img
  5393. src="../../assets/icon/comment/comment.png"
  5394. alt=""
  5395. />
  5396. </div>
  5397. <div>{{ w.commentCount }}</div>
  5398. </div>
  5399. </div>
  5400. </div>
  5401. </div>
  5402. </div>
  5403. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5404. 未提交
  5405. </div>
  5406. <div
  5407. class="noWorksS"
  5408. v-if="noWorksS && noWorksS[toolIndex].length"
  5409. >
  5410. <div
  5411. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5412. :key="sIndex"
  5413. class="noWorksName"
  5414. >
  5415. <el-tooltip effect="dark" :content="s.student" placement="top">
  5416. <span>{{ s.student }}</span>
  5417. </el-tooltip>
  5418. </div>
  5419. </div>
  5420. </div>
  5421. <div
  5422. v-if="
  5423. tType &&
  5424. ((tType == 2 && sIsOpen == true) ||
  5425. tType == 1 ||
  5426. tType == 4) &&
  5427. tool.tool.indexOf(7) != -1
  5428. "
  5429. class="worksBox"
  5430. >
  5431. <div
  5432. class="zuoyeYulan"
  5433. v-if="
  5434. (worksStudent.length &&
  5435. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5436. "
  5437. >
  5438. <div class="worksTop">
  5439. <div>作业预览</div>
  5440. <div
  5441. class="corOpen"
  5442. @click="contract(toolIndex)"
  5443. v-if="
  5444. (isCloseList[toolIndex].isCloseBoolean) &&
  5445. isCloseList[toolIndex].isClose == 0
  5446. "
  5447. >
  5448. 折叠
  5449. </div>
  5450. <div
  5451. class="corOpen"
  5452. @click="contract(toolIndex)"
  5453. v-if="isCloseList[toolIndex].isClose == 1"
  5454. >
  5455. 展开
  5456. </div>
  5457. </div>
  5458. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5459. </div>
  5460. <div
  5461. class="group_workBox"
  5462. v-for="(g, gindex) in courseGroup.group"
  5463. :key="gindex"
  5464. >
  5465. <div class="group_box">
  5466. <div class="group_title">
  5467. <el-tooltip
  5468. class="item"
  5469. effect="light"
  5470. :content="g.name"
  5471. placement="top"
  5472. >
  5473. <div class="group_name">{{ g.name }}</div>
  5474. </el-tooltip>
  5475. </div>
  5476. <div
  5477. class="group_work"
  5478. v-if="
  5479. g.works &&
  5480. g.works.length &&
  5481. g.works[toolIndex].length
  5482. "
  5483. >
  5484. <div
  5485. class="works"
  5486. style="
  5487. width: 200px;
  5488. height: 140px;
  5489. margin: 10px 10px 10px 0;
  5490. border-radius: 15px;
  5491. box-shadow: 0 0 6px 1px #dfdada;
  5492. "
  5493. v-for="(w, wIndex) in g.works[toolIndex]"
  5494. :key="wIndex"
  5495. :class="w.type == 1 ? 'isTypeOne' : ''"
  5496. >
  5497. <div class="workImg">
  5498. <img
  5499. :src="w.works"
  5500. @click="previewImg(w.works,w)"
  5501. alt
  5502. />
  5503. <div
  5504. class="answerScore"
  5505. v-if="w.score"
  5506. @click.stop="openScore(w)"
  5507. :class="{
  5508. rightW:
  5509. w.userid == userid ||
  5510. tType == 1 ||
  5511. tType == 4,
  5512. }"
  5513. >
  5514. {{ JSON.parse(w.score).wScore }}分
  5515. </div>
  5516. <div
  5517. class="answerScore"
  5518. @click.stop="openScore(w)"
  5519. v-else-if="courseDetail.userid == userid"
  5520. :class="{
  5521. rightW:
  5522. w.userid == userid ||
  5523. tType == 1 ||
  5524. tType == 4,
  5525. }"
  5526. >
  5527. 评分
  5528. </div>
  5529. <img
  5530. class="deleteImg"
  5531. src="../../assets/deleteworks.png"
  5532. v-if="
  5533. w.userid == userid || tType == 1 || tType == 4
  5534. "
  5535. @click.stop="deleteWorks(w.wid)"
  5536. alt
  5537. />
  5538. </div>
  5539. <div class="comment" style="min-width: 200px">
  5540. <div class="worksName">
  5541. <div>{{ w.sName }}</div>
  5542. </div>
  5543. <div class="commentList">
  5544. <div class="commentList">
  5545. <div
  5546. class="commentImg"
  5547. @click="
  5548. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5549. "
  5550. >
  5551. <img
  5552. :src="w.isLikes == true ? likes : noLikes"
  5553. alt=""
  5554. />
  5555. </div>
  5556. <div>{{ w.likesCount }}</div>
  5557. </div>
  5558. <div
  5559. class="commentList"
  5560. style="margin-right: 15px"
  5561. >
  5562. <div
  5563. class="commentImg"
  5564. @click="
  5565. commentOther(
  5566. w,
  5567. toolIndex,
  5568. wIndex,
  5569. null,
  5570. g.id
  5571. )
  5572. "
  5573. >
  5574. <img
  5575. src="../../assets/icon/comment/comment.png"
  5576. alt=""
  5577. />
  5578. </div>
  5579. <div>{{ w.commentCount }}</div>
  5580. </div>
  5581. </div>
  5582. </div>
  5583. </div>
  5584. </div>
  5585. <div class="group_work" v-else>暂无提交作业</div>
  5586. </div>
  5587. </div>
  5588. <div
  5589. :id="'tool-' + toolIndex"
  5590. :style="{
  5591. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5592. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5593. }"
  5594. class="worksDetailBox"
  5595. v-if="
  5596. worksStudent.length &&
  5597. worksStudent[toolIndex].length > 0
  5598. "
  5599. >
  5600. <div
  5601. class="works"
  5602. style="
  5603. width: 200px;
  5604. height: 140px;
  5605. margin: 10px 10px 10px 0;
  5606. border-radius: 15px;
  5607. box-shadow: 0 0 6px 1px #dfdada;
  5608. "
  5609. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5610. :key="wIndex"
  5611. >
  5612. <!-- @click="previewImg(w.works)" -->
  5613. <div class="workImg">
  5614. <img
  5615. :src="w.works"
  5616. @click="previewImg(w.works,w)"
  5617. alt
  5618. />
  5619. <div
  5620. class="answerScore"
  5621. v-if="w.score"
  5622. @click.stop="openScore(w)"
  5623. :class="{
  5624. rightW:
  5625. w.userid == userid || tType == 1 || tType == 4,
  5626. }"
  5627. >
  5628. {{ JSON.parse(w.score).wScore }}分
  5629. </div>
  5630. <div
  5631. class="answerScore"
  5632. @click.stop="openScore(w)"
  5633. v-else-if="courseDetail.userid == userid"
  5634. :class="{
  5635. rightW:
  5636. w.userid == userid || tType == 1 || tType == 4,
  5637. }"
  5638. >
  5639. 评分
  5640. </div>
  5641. <img
  5642. class="deleteImg"
  5643. src="../../assets/deleteworks.png"
  5644. v-if="
  5645. w.userid == userid || tType == 1 || tType == 4
  5646. "
  5647. @click.stop="deleteWorks(w.wid)"
  5648. alt
  5649. />
  5650. </div>
  5651. <div class="comment" style="min-width: 200px">
  5652. <div class="worksName">
  5653. <div>{{ w.sName }}</div>
  5654. </div>
  5655. <div class="commentList">
  5656. <div class="commentList">
  5657. <div
  5658. class="commentImg"
  5659. @click="
  5660. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5661. "
  5662. >
  5663. <img
  5664. :src="w.isLikes == true ? likes : noLikes"
  5665. alt=""
  5666. />
  5667. </div>
  5668. <div>{{ w.likesCount }}</div>
  5669. </div>
  5670. <div class="commentList" style="margin-right: 15px">
  5671. <div
  5672. class="commentImg"
  5673. @click="commentOther(w, toolIndex, wIndex)"
  5674. >
  5675. <img
  5676. src="../../assets/icon/comment/comment.png"
  5677. alt=""
  5678. />
  5679. </div>
  5680. <div>{{ w.commentCount }}</div>
  5681. </div>
  5682. </div>
  5683. </div>
  5684. </div>
  5685. </div>
  5686. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5687. 未提交
  5688. </div>
  5689. <div
  5690. class="noWorksS"
  5691. v-if="noWorksS && noWorksS[toolIndex].length"
  5692. >
  5693. <div
  5694. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5695. :key="sIndex"
  5696. class="noWorksName"
  5697. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5698. >
  5699. <el-tooltip effect="dark" :content="s.student" placement="top">
  5700. <span>{{ s.student }}</span>
  5701. </el-tooltip>
  5702. </div>
  5703. </div>
  5704. </div>
  5705. <div
  5706. v-if="
  5707. tType &&
  5708. ((tType == 2 && sIsOpen == true) ||
  5709. tType == 1 ||
  5710. tType == 4) &&
  5711. tool.tool.indexOf(26) != -1
  5712. "
  5713. class="worksBox"
  5714. >
  5715. <div
  5716. class="zuoyeYulan"
  5717. v-if="
  5718. worksStudent.length &&
  5719. worksStudent[toolIndex].length > 0
  5720. "
  5721. >
  5722. <div class="worksTop">
  5723. <div>作业预览</div>
  5724. <div
  5725. class="corOpen"
  5726. @click="contract(toolIndex)"
  5727. v-if="
  5728. (isCloseList[toolIndex].isCloseBoolean) &&
  5729. isCloseList[toolIndex].isClose == 0
  5730. "
  5731. >
  5732. 折叠
  5733. </div>
  5734. <div
  5735. class="corOpen"
  5736. @click="contract(toolIndex)"
  5737. v-if="isCloseList[toolIndex].isClose == 1"
  5738. >
  5739. 展开
  5740. </div>
  5741. </div>
  5742. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5743. </div>
  5744. <div
  5745. :id="'tool-' + toolIndex"
  5746. :style="{
  5747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5749. }"
  5750. class="worksDetailBox"
  5751. v-if="
  5752. worksStudent.length &&
  5753. worksStudent[toolIndex].length > 0
  5754. "
  5755. >
  5756. <div
  5757. class="works"
  5758. style="width: 240px; height: 140px; overflow: hidden"
  5759. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5760. :key="wIndex"
  5761. :class="w.type == 1 ? 'isTypeOne' : ''"
  5762. >
  5763. <div class="workImg" v-if="w.type == 0">
  5764. <img
  5765. :src="w.works"
  5766. @click="previewImg(w.works,w)"
  5767. alt
  5768. />
  5769. <img
  5770. class="deleteImg"
  5771. src="../../assets/deleteworks.png"
  5772. v-if="
  5773. w.userid == userid || tType == 1 || tType == 4
  5774. "
  5775. @click.stop="deleteWorks(w.wid)"
  5776. alt
  5777. />
  5778. </div>
  5779. <div class="workImg" v-if="w.type == 1">
  5780. <img :src="word" @click="openFile(w.works)" alt />
  5781. <img
  5782. class="deleteImg"
  5783. src="../../assets/deleteworks.png"
  5784. v-if="
  5785. w.userid == userid || tType == 1 || tType == 4
  5786. "
  5787. @click.stop="deleteWorks(w.wid)"
  5788. alt
  5789. />
  5790. </div>
  5791. <div class="worksName">
  5792. <div>{{ w.sName }}</div>
  5793. </div>
  5794. </div>
  5795. </div>
  5796. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5797. 未提交
  5798. </div>
  5799. <div
  5800. class="noWorksS"
  5801. v-if="noWorksS && noWorksS[toolIndex].length"
  5802. >
  5803. <div
  5804. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5805. :key="sIndex"
  5806. class="noWorksName"
  5807. >
  5808. <el-tooltip effect="dark" :content="s.student" placement="top">
  5809. <span>{{ s.student }}</span>
  5810. </el-tooltip>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. <div
  5815. v-if="
  5816. tType &&
  5817. ((tType == 2 && sIsOpen == true) ||
  5818. tType == 1 ||
  5819. tType == 4) &&
  5820. tool.tool.indexOf(40) != -1
  5821. "
  5822. class="worksBox"
  5823. >
  5824. <div
  5825. class="zuoyeYulan"
  5826. v-if="
  5827. worksStudent.length &&
  5828. worksStudent[toolIndex].length > 0
  5829. "
  5830. >
  5831. <div class="worksTop">
  5832. <div>作业预览</div>
  5833. <div
  5834. class="corOpen"
  5835. @click="contract(toolIndex)"
  5836. v-if="
  5837. (isCloseList[toolIndex].isCloseBoolean) &&
  5838. isCloseList[toolIndex].isClose == 0
  5839. "
  5840. >
  5841. 折叠
  5842. </div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="isCloseList[toolIndex].isClose == 1"
  5847. >
  5848. 展开
  5849. </div>
  5850. </div>
  5851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5852. </div>
  5853. <div
  5854. :id="'tool-' + toolIndex"
  5855. :style="{
  5856. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5857. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5858. }"
  5859. class="worksDetailBox"
  5860. v-if="
  5861. worksStudent.length &&
  5862. worksStudent[toolIndex].length > 0
  5863. "
  5864. >
  5865. <div
  5866. class="works"
  5867. style="
  5868. width: 200px;
  5869. height: 140px;
  5870. margin: 10px 10px 10px 0;
  5871. border-radius: 15px;
  5872. box-shadow: 0 0 6px 1px #dfdada;
  5873. "
  5874. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5875. :key="wIndex"
  5876. :class="w.type == 1 ? 'isTypeOne' : ''"
  5877. >
  5878. <div class="workImg">
  5879. <img
  5880. src="../../assets/icon/works/noImg.png"
  5881. @click="openPj(w.works, toolIndex)"
  5882. alt
  5883. />
  5884. <img
  5885. class="deleteImg"
  5886. src="../../assets/deleteworks.png"
  5887. v-if="
  5888. w.userid == userid || tType == 1 || tType == 4
  5889. "
  5890. @click.stop="deleteWorks(w.wid)"
  5891. alt
  5892. />
  5893. </div>
  5894. <div class="comment" style="min-width: 200px">
  5895. <div class="worksName">
  5896. <div>{{ w.sName }}</div>
  5897. </div>
  5898. <div class="commentList">
  5899. <div class="commentList">
  5900. <div
  5901. class="commentImg"
  5902. @click="
  5903. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5904. "
  5905. >
  5906. <img
  5907. :src="w.isLikes == true ? likes : noLikes"
  5908. alt=""
  5909. />
  5910. </div>
  5911. <div>{{ w.likesCount }}</div>
  5912. </div>
  5913. <div class="commentList" style="margin-right: 15px">
  5914. <div
  5915. class="commentImg"
  5916. @click="commentOther(w, toolIndex, wIndex)"
  5917. >
  5918. <img
  5919. src="../../assets/icon/comment/comment.png"
  5920. alt=""
  5921. />
  5922. </div>
  5923. <div>{{ w.commentCount }}</div>
  5924. </div>
  5925. </div>
  5926. </div>
  5927. </div>
  5928. </div>
  5929. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5930. 未提交
  5931. </div>
  5932. <div
  5933. class="noWorksS"
  5934. v-if="noWorksS && noWorksS[toolIndex].length"
  5935. >
  5936. <div
  5937. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5938. :key="sIndex"
  5939. class="noWorksName"
  5940. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5941. >
  5942. <el-tooltip effect="dark" :content="s.student" placement="top">
  5943. <span>{{ s.student }}</span>
  5944. </el-tooltip>
  5945. </div>
  5946. </div>
  5947. </div>
  5948. <div
  5949. v-if="
  5950. tType &&
  5951. tType == 2 &&
  5952. !sIsOpen &&
  5953. tool.tool.indexOf(40) != -1
  5954. "
  5955. class="worksBox"
  5956. >
  5957. <div
  5958. class="zuoyeYulan"
  5959. v-if="workStudent[toolIndex].length > 0"
  5960. >
  5961. <span class="worksTitle">作业预览</span>
  5962. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5963. </div>
  5964. <div
  5965. class="worksDetailBox"
  5966. v-if="workStudent[toolIndex].length > 0"
  5967. >
  5968. <div
  5969. class="works"
  5970. style="
  5971. width: 200px;
  5972. height: 140px;
  5973. margin: 10px 10px 10px 0;
  5974. "
  5975. v-for="(w, wIndex) in workStudent[toolIndex]"
  5976. :key="wIndex"
  5977. >
  5978. <div class="workImg">
  5979. <img
  5980. src="../../assets/icon/works/noImg.png"
  5981. @click="openPj(w.works, toolIndex)"
  5982. alt
  5983. />
  5984. <img
  5985. class="deleteImg"
  5986. src="../../assets/deleteworks.png"
  5987. v-if="
  5988. w.userid == userid || tType == 1 || tType == 4
  5989. "
  5990. @click.stop="deleteWorks(w.wid)"
  5991. alt
  5992. />
  5993. </div>
  5994. <div class="worksName">
  5995. <div>{{ w.sName }}</div>
  5996. </div>
  5997. </div>
  5998. </div>
  5999. </div>
  6000. <div
  6001. v-if="
  6002. tType &&
  6003. ((tType == 2 && sIsOpen == true) ||
  6004. tType == 1 ||
  6005. tType == 4) &&
  6006. tool.tool.indexOf(41) != -1
  6007. "
  6008. >
  6009. <AnswerData2
  6010. v-if="
  6011. worksStudent.length &&
  6012. worksStudent[toolIndex].length > 0
  6013. "
  6014. :problemJson="tool.selectJson.answer"
  6015. :people="worksStudent[toolIndex]"
  6016. ></AnswerData2>
  6017. </div>
  6018. <div
  6019. v-if="
  6020. tType &&
  6021. ((tType == 2 && sIsOpen == true) ||
  6022. tType == 1 ||
  6023. tType == 4) &&
  6024. tool.tool.indexOf(41) != -1
  6025. "
  6026. class="worksBox"
  6027. >
  6028. <div
  6029. class="zuoyeYulan"
  6030. v-if="
  6031. worksStudent.length &&
  6032. worksStudent[toolIndex].length > 0
  6033. "
  6034. >
  6035. <div class="worksTop">
  6036. <div>作业预览</div>
  6037. <div
  6038. class="corOpen"
  6039. @click="contract(toolIndex)"
  6040. v-if="
  6041. (isCloseList[toolIndex].isCloseBoolean) &&
  6042. isCloseList[toolIndex].isClose == 0
  6043. "
  6044. >
  6045. 折叠
  6046. </div>
  6047. <div
  6048. class="corOpen"
  6049. @click="contract(toolIndex)"
  6050. v-if="isCloseList[toolIndex].isClose == 1"
  6051. >
  6052. 展开
  6053. </div>
  6054. </div>
  6055. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6056. </div>
  6057. <div
  6058. :id="'tool-' + toolIndex"
  6059. :style="{
  6060. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6061. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6062. }"
  6063. class="worksDetailBox"
  6064. v-if="
  6065. worksStudent.length &&
  6066. worksStudent[toolIndex].length > 0
  6067. "
  6068. >
  6069. <div
  6070. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6071. :key="wIndex"
  6072. class="isWorksName2"
  6073. @click="openXz(w, toolIndex)"
  6074. >
  6075. {{ w.sName }}
  6076. <img
  6077. class="deleteImg deleteImg2"
  6078. src="../../assets/deleteworks.png"
  6079. v-if="w.userid == userid || tType == 1 || tType == 4"
  6080. @click.stop="deleteWorks(w.wid)"
  6081. alt
  6082. />
  6083. </div>
  6084. <!-- <div
  6085. class="works"
  6086. style="
  6087. width: 200px;
  6088. height: 140px;
  6089. margin: 10px 10px 10px 0;
  6090. border-radius: 15px;
  6091. box-shadow: 0 0 6px 1px #dfdada;
  6092. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6093. :class="w.type == 5 ? 'isTypeOne' : ''">
  6094. <div class="workImg">
  6095. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6096. </div>
  6097. <div class="worksName">
  6098. <div>{{ w.sName }}</div>
  6099. </div>
  6100. </div> -->
  6101. </div>
  6102. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6103. 未提交
  6104. </div>
  6105. <div
  6106. class="noWorksS"
  6107. v-if="noWorksS && noWorksS[toolIndex].length"
  6108. >
  6109. <div
  6110. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6111. :key="sIndex"
  6112. class="noWorksName"
  6113. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6114. >
  6115. <el-tooltip effect="dark" :content="s.student" placement="top">
  6116. <span>{{ s.student }}</span>
  6117. </el-tooltip>
  6118. </div>
  6119. </div>
  6120. </div>
  6121. <div
  6122. v-if="
  6123. tType &&
  6124. tType == 2 &&
  6125. !sIsOpen &&
  6126. tool.tool.indexOf(41) != -1
  6127. "
  6128. class="worksBox"
  6129. >
  6130. <div
  6131. class="zuoyeYulan"
  6132. v-if="workStudent[toolIndex].length > 0"
  6133. >
  6134. <span class="worksTitle">作业预览</span>
  6135. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6136. </div>
  6137. <div
  6138. class="worksDetailBox"
  6139. v-if="workStudent[toolIndex].length > 0"
  6140. >
  6141. <div
  6142. class="works"
  6143. style="
  6144. width: 200px;
  6145. height: 140px;
  6146. margin: 10px 10px 10px 0;
  6147. "
  6148. v-for="(w, wIndex) in workStudent[toolIndex]"
  6149. :key="wIndex"
  6150. >
  6151. <div class="workImg">
  6152. <img
  6153. src="../../assets/icon/works/noImg.png"
  6154. @click="openXz(w, toolIndex)"
  6155. alt
  6156. />
  6157. <img
  6158. class="deleteImg"
  6159. src="../../assets/deleteworks.png"
  6160. v-if="
  6161. w.userid == userid || tType == 1 || tType == 4
  6162. "
  6163. @click.stop="deleteWorks(w.wid)"
  6164. alt
  6165. />
  6166. </div>
  6167. <div class="worksName">
  6168. <div>{{ w.sName }}</div>
  6169. </div>
  6170. </div>
  6171. </div>
  6172. </div>
  6173. <div v-if="false" class="xuan_right_box">
  6174. <div
  6175. class="tool_right_box"
  6176. v-for="(item, index) in tool.sentenceList"
  6177. :key="index"
  6178. >
  6179. <div>
  6180. <span
  6181. style="word-break: break-all; white-space: normal"
  6182. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6183. >
  6184. </div>
  6185. <div class="right_box_xuan">
  6186. <span>正确率</span>
  6187. <span>{{
  6188. (checkJson[toolIndex][index].right
  6189. ? checkJson[toolIndex][index].right
  6190. : 0) + "%"
  6191. }}</span>
  6192. </div>
  6193. <div class="right_box_xuan">
  6194. <span>答对人数</span>
  6195. <span>{{
  6196. checkJson[toolIndex][index].rightPerson.length
  6197. }}</span>
  6198. </div>
  6199. </div>
  6200. </div>
  6201. <div
  6202. v-if="
  6203. tType &&
  6204. ((tType == 2 && sIsOpen == true) ||
  6205. tType == 1 ||
  6206. tType == 4) &&
  6207. tool.tool.indexOf(47) != -1
  6208. "
  6209. >
  6210. <AnswerData
  6211. v-if="
  6212. checkJson[toolIndex].length &&
  6213. (tool.sentenceList || tool.sentenceList.length > 0)
  6214. "
  6215. :people="checkJson[toolIndex]"
  6216. ></AnswerData>
  6217. </div>
  6218. <div
  6219. v-if="
  6220. tType &&
  6221. tType == 2 &&
  6222. !sIsOpen &&
  6223. tool.tool.indexOf(47) != -1
  6224. "
  6225. class="worksBox"
  6226. >
  6227. <div
  6228. class="zuoyeYulan"
  6229. v-if="workStudent[toolIndex].length > 0"
  6230. >
  6231. <span class="worksTitle">作业预览</span>
  6232. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6233. </div>
  6234. <div
  6235. class="worksDetailBox"
  6236. v-if="workStudent[toolIndex].length > 0"
  6237. >
  6238. <div
  6239. class="works"
  6240. style="
  6241. width: 200px;
  6242. height: 140px;
  6243. margin: 10px 10px 10px 0;
  6244. "
  6245. v-for="(w, wIndex) in workStudent[toolIndex]"
  6246. :key="wIndex"
  6247. >
  6248. <!-- @click="openXz(w, toolIndex)" -->
  6249. <div class="workImg" @click="openSen(w, toolIndex)">
  6250. <img src="../../assets/icon/works/noImg.png" alt />
  6251. <img
  6252. class="deleteImg"
  6253. src="../../assets/deleteworks.png"
  6254. v-if="
  6255. w.userid == userid || tType == 1 || tType == 4
  6256. "
  6257. @click.stop="deleteWorks(w.wid)"
  6258. alt
  6259. />
  6260. </div>
  6261. <div class="worksName">
  6262. <div>
  6263. {{ w.sName }}
  6264. </div>
  6265. </div>
  6266. </div>
  6267. </div>
  6268. </div>
  6269. <div
  6270. v-if="
  6271. tType &&
  6272. ((tType == 2 && sIsOpen == true) ||
  6273. tType == 1 ||
  6274. tType == 4) &&
  6275. tool.tool.indexOf(47) != -1
  6276. "
  6277. class="worksBox"
  6278. >
  6279. <div
  6280. class="zuoyeYulan"
  6281. v-if="
  6282. worksStudent.length &&
  6283. worksStudent[toolIndex].length > 0
  6284. "
  6285. >
  6286. <div class="worksTop">
  6287. <div>作业预览</div>
  6288. <div
  6289. class="corOpen"
  6290. @click="contract(toolIndex)"
  6291. v-if="
  6292. (isCloseList[toolIndex].isCloseBoolean) &&
  6293. isCloseList[toolIndex].isClose == 0
  6294. "
  6295. >
  6296. 折叠
  6297. </div>
  6298. <div
  6299. class="corOpen"
  6300. @click="contract(toolIndex)"
  6301. v-if="isCloseList[toolIndex].isClose == 1"
  6302. >
  6303. 展开
  6304. </div>
  6305. </div>
  6306. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6307. </div>
  6308. <div
  6309. :id="'tool-' + toolIndex"
  6310. :style="{
  6311. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6312. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6313. }"
  6314. class="worksDetailBox"
  6315. v-if="
  6316. worksStudent.length &&
  6317. worksStudent[toolIndex].length > 0
  6318. "
  6319. >
  6320. <!-- @click="openXz(w, toolIndex)" -->
  6321. <div
  6322. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6323. :key="wIndex"
  6324. class="isWorksName2"
  6325. @click="openSen(w, toolIndex)"
  6326. >
  6327. {{ w.sName }}
  6328. <img
  6329. class="deleteImg deleteImg2"
  6330. src="../../assets/deleteworks.png"
  6331. v-if="w.userid == userid || tType == 1 || tType == 4"
  6332. @click.stop="deleteWorks(w.wid)"
  6333. alt
  6334. />
  6335. </div>
  6336. </div>
  6337. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6338. 未提交
  6339. </div>
  6340. <div
  6341. class="noWorksS"
  6342. v-if="noWorksS && noWorksS[toolIndex].length"
  6343. >
  6344. <div
  6345. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6346. :key="sIndex"
  6347. class="noWorksName"
  6348. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6349. >
  6350. <el-tooltip effect="dark" :content="s.student" placement="top">
  6351. <span>{{ s.student }}</span>
  6352. </el-tooltip>
  6353. </div>
  6354. </div>
  6355. </div>
  6356. <div
  6357. v-if="
  6358. tType &&
  6359. ((tType == 2 && sIsOpen == true) ||
  6360. tType == 1 ||
  6361. tType == 4) &&
  6362. tool.tool.indexOf(48) != -1
  6363. "
  6364. class="worksBox"
  6365. >
  6366. <div
  6367. class="zuoyeYulan"
  6368. v-if="
  6369. worksStudent.length &&
  6370. worksStudent[toolIndex].length > 0
  6371. "
  6372. >
  6373. <div class="worksTop">
  6374. <div>作业预览</div>
  6375. <div
  6376. class="corOpen"
  6377. @click="contract(toolIndex)"
  6378. v-if="
  6379. (isCloseList[toolIndex].isCloseBoolean) &&
  6380. isCloseList[toolIndex].isClose == 0
  6381. "
  6382. >
  6383. 折叠
  6384. </div>
  6385. <div
  6386. class="corOpen"
  6387. @click="contract(toolIndex)"
  6388. v-if="isCloseList[toolIndex].isClose == 1"
  6389. >
  6390. 展开
  6391. </div>
  6392. </div>
  6393. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6394. </div>
  6395. <div
  6396. :id="'tool-' + toolIndex"
  6397. :style="{
  6398. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6399. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6400. }"
  6401. class="worksDetailBox"
  6402. v-if="
  6403. worksStudent.length &&
  6404. worksStudent[toolIndex].length > 0
  6405. "
  6406. >
  6407. <div
  6408. class="works"
  6409. style="
  6410. width: 200px;
  6411. height: 140px;
  6412. margin: 10px 10px 10px 0;
  6413. border-radius: 15px;
  6414. box-shadow: 0 0 6px 1px #dfdada;
  6415. "
  6416. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6417. :key="wIndex"
  6418. :class="w.type == 1 ? 'isTypeOne' : ''"
  6419. >
  6420. <div class="workImg">
  6421. <img :src="word" @click="openTable(w)" alt />
  6422. <!-- @click="openFile(w.works)" -->
  6423. <div
  6424. class="answerScore"
  6425. v-if="w.score"
  6426. @click.stop="openScore(w)"
  6427. :class="{
  6428. rightW:
  6429. w.userid == userid ||
  6430. tType == 1 ||
  6431. tType == 4 ||
  6432. w.ateacher == userid,
  6433. }"
  6434. >
  6435. {{ JSON.parse(w.score).wScore }}分
  6436. </div>
  6437. <div
  6438. class="answerScore"
  6439. @click.stop="openScore(w)"
  6440. v-else-if="courseDetail.userid == userid"
  6441. :class="{
  6442. rightW:
  6443. w.userid == userid ||
  6444. tType == 1 ||
  6445. tType == 4 ||
  6446. w.ateacher == userid,
  6447. }"
  6448. >
  6449. 评分
  6450. </div>
  6451. <img
  6452. class="deleteImg"
  6453. src="../../assets/deleteworks.png"
  6454. v-if="
  6455. w.userid == userid || tType == 1 || tType == 4
  6456. "
  6457. @click.stop="deleteWorks(w.wid)"
  6458. alt
  6459. />
  6460. </div>
  6461. <div class="comment" style="min-width: 200px">
  6462. <div class="worksName">
  6463. <div>{{ w.sName }}</div>
  6464. </div>
  6465. <div class="commentList">
  6466. <div class="commentList">
  6467. <div
  6468. class="commentImg"
  6469. @click="
  6470. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6471. "
  6472. >
  6473. <img
  6474. :src="w.isLikes == true ? likes : noLikes"
  6475. alt=""
  6476. />
  6477. </div>
  6478. <div>{{ w.likesCount }}</div>
  6479. </div>
  6480. <div class="commentList" style="margin-right: 15px">
  6481. <div
  6482. class="commentImg"
  6483. @click="commentOther(w, toolIndex, wIndex)"
  6484. >
  6485. <img
  6486. src="../../assets/icon/comment/comment.png"
  6487. alt=""
  6488. />
  6489. </div>
  6490. <div>{{ w.commentCount }}</div>
  6491. </div>
  6492. </div>
  6493. </div>
  6494. </div>
  6495. </div>
  6496. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6497. 未提交
  6498. </div>
  6499. <div
  6500. class="noWorksS"
  6501. v-if="noWorksS && noWorksS[toolIndex].length"
  6502. >
  6503. <div
  6504. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6505. :key="sIndex"
  6506. class="noWorksName"
  6507. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6508. >
  6509. <el-tooltip effect="dark" :content="s.student" placement="top">
  6510. <span>{{ s.student }}</span>
  6511. </el-tooltip>
  6512. </div>
  6513. </div>
  6514. </div>
  6515. <div
  6516. v-if="
  6517. tType &&
  6518. tType == 2 &&
  6519. !sIsOpen &&
  6520. tool.tool.indexOf(48) != -1
  6521. "
  6522. class="worksBox"
  6523. >
  6524. <div
  6525. class="zuoyeYulan"
  6526. v-if="workStudent[toolIndex].length > 0"
  6527. >
  6528. <span class="worksTitle">作业预览</span>
  6529. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6530. </div>
  6531. <div
  6532. class="worksDetailBox"
  6533. v-if="workStudent[toolIndex].length > 0"
  6534. >
  6535. <div
  6536. class="works"
  6537. style="
  6538. width: 200px;
  6539. height: 140px;
  6540. margin: 10px 10px 10px 0;
  6541. box-shadow: 0 0 6px 1px #dfdada;
  6542. "
  6543. v-for="(w, wIndex) in workStudent[toolIndex]"
  6544. :key="wIndex"
  6545. >
  6546. <div class="workImg">
  6547. <img :src="word" @click="openTable(w)" alt />
  6548. <div
  6549. class="answerScore"
  6550. v-if="w.score"
  6551. @click.stop="openScore(w)"
  6552. :class="{
  6553. rightW:
  6554. w.userid == userid || tType == 1 || tType == 4,
  6555. }"
  6556. >
  6557. {{ JSON.parse(w.score).wScore }}分
  6558. </div>
  6559. <div
  6560. class="answerScore"
  6561. @click.stop="openScore(w)"
  6562. v-else-if="courseDetail.userid == userid"
  6563. :class="{
  6564. rightW:
  6565. w.userid == userid || tType == 1 || tType == 4,
  6566. }"
  6567. >
  6568. 评分
  6569. </div>
  6570. <img
  6571. class="deleteImg"
  6572. src="../../assets/deleteworks.png"
  6573. v-if="
  6574. w.userid == userid || tType == 1 || tType == 4
  6575. "
  6576. @click.stop="deleteWorks(w.wid)"
  6577. alt
  6578. />
  6579. </div>
  6580. <div class="worksName">
  6581. <div>{{ w.sName }}</div>
  6582. </div>
  6583. </div>
  6584. </div>
  6585. </div>
  6586. <div
  6587. v-if="
  6588. tType &&
  6589. ((tType == 2 && sIsOpen == true) ||
  6590. tType == 1 ||
  6591. tType == 4) &&
  6592. tool.tool.indexOf(52) != -1
  6593. "
  6594. class="worksBox"
  6595. >
  6596. <div
  6597. class="zuoyeYulan"
  6598. v-if="
  6599. worksStudent.length &&
  6600. worksStudent[toolIndex].length > 0
  6601. "
  6602. >
  6603. <div class="worksTop">
  6604. <div>作业预览</div>
  6605. <div
  6606. class="corOpen"
  6607. @click="contract(toolIndex)"
  6608. v-if="
  6609. (isCloseList[toolIndex].isCloseBoolean) &&
  6610. isCloseList[toolIndex].isClose == 0
  6611. "
  6612. >
  6613. 折叠
  6614. </div>
  6615. <div
  6616. class="corOpen"
  6617. @click="contract(toolIndex)"
  6618. v-if="isCloseList[toolIndex].isClose == 1"
  6619. >
  6620. 展开
  6621. </div>
  6622. </div>
  6623. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6624. </div>
  6625. <div
  6626. :id="'tool-' + toolIndex"
  6627. :style="{
  6628. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6629. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6630. }"
  6631. class="worksDetailBox"
  6632. v-if="
  6633. worksStudent.length &&
  6634. worksStudent[toolIndex].length > 0
  6635. "
  6636. >
  6637. <div
  6638. class="works"
  6639. style="
  6640. width: 200px;
  6641. height: 140px;
  6642. margin: 10px 10px 10px 0;
  6643. border-radius: 15px;
  6644. box-shadow: 0 0 6px 1px #dfdada;
  6645. "
  6646. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6647. :key="wIndex"
  6648. :class="w.type == 1 ? 'isTypeOne' : ''"
  6649. >
  6650. <div class="workImg">
  6651. <img :src="word" @click="openWord(w)" alt />
  6652. <!-- @click="openFile(w.works)" -->
  6653. <div
  6654. class="answerScore"
  6655. v-if="w.score"
  6656. @click.stop="openScore(w)"
  6657. :class="{
  6658. rightW:
  6659. w.userid == userid ||
  6660. tType == 1 ||
  6661. tType == 4 ||
  6662. w.ateacher == userid,
  6663. }"
  6664. >
  6665. {{ JSON.parse(w.score).wScore }}分
  6666. </div>
  6667. <div
  6668. class="answerScore"
  6669. @click.stop="openScore(w)"
  6670. v-else-if="courseDetail.userid == userid"
  6671. :class="{
  6672. rightW:
  6673. w.userid == userid ||
  6674. tType == 1 ||
  6675. tType == 4 ||
  6676. w.ateacher == userid,
  6677. }"
  6678. >
  6679. 评分
  6680. </div>
  6681. <img
  6682. class="deleteImg"
  6683. src="../../assets/deleteworks.png"
  6684. v-if="
  6685. w.userid == userid || tType == 1 || tType == 4
  6686. "
  6687. @click.stop="deleteWorks(w.wid)"
  6688. alt
  6689. />
  6690. </div>
  6691. <div class="comment" style="min-width: 200px">
  6692. <div class="worksName">
  6693. <div>{{ w.sName }}</div>
  6694. </div>
  6695. <div class="commentList">
  6696. <div class="commentList">
  6697. <div
  6698. class="commentImg"
  6699. @click="
  6700. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6701. "
  6702. >
  6703. <img
  6704. :src="w.isLikes == true ? likes : noLikes"
  6705. alt=""
  6706. />
  6707. </div>
  6708. <div>{{ w.likesCount }}</div>
  6709. </div>
  6710. <div class="commentList" style="margin-right: 15px">
  6711. <div
  6712. class="commentImg"
  6713. @click="commentOther(w, toolIndex, wIndex)"
  6714. >
  6715. <img
  6716. src="../../assets/icon/comment/comment.png"
  6717. alt=""
  6718. />
  6719. </div>
  6720. <div>{{ w.commentCount }}</div>
  6721. </div>
  6722. </div>
  6723. </div>
  6724. </div>
  6725. </div>
  6726. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6727. 未提交
  6728. </div>
  6729. <div
  6730. class="noWorksS"
  6731. v-if="noWorksS && noWorksS[toolIndex].length"
  6732. >
  6733. <div
  6734. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6735. :key="sIndex"
  6736. class="noWorksName"
  6737. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6738. >
  6739. <el-tooltip effect="dark" :content="s.student" placement="top">
  6740. <span>{{ s.student }}</span>
  6741. </el-tooltip>
  6742. </div>
  6743. </div>
  6744. </div>
  6745. <div
  6746. v-if="
  6747. tType &&
  6748. tType == 2 &&
  6749. !sIsOpen &&
  6750. tool.tool.indexOf(52) != -1
  6751. "
  6752. class="worksBox"
  6753. >
  6754. <div
  6755. class="zuoyeYulan"
  6756. v-if="workStudent[toolIndex].length > 0"
  6757. >
  6758. <span class="worksTitle">作业预览</span>
  6759. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6760. </div>
  6761. <div
  6762. class="worksDetailBox"
  6763. v-if="workStudent[toolIndex].length > 0"
  6764. >
  6765. <div
  6766. class="works"
  6767. style="
  6768. width: 200px;
  6769. height: 140px;
  6770. margin: 10px 10px 10px 0;
  6771. box-shadow: 0 0 6px 1px #dfdada;
  6772. "
  6773. v-for="(w, wIndex) in workStudent[toolIndex]"
  6774. :key="wIndex"
  6775. >
  6776. <div class="workImg">
  6777. <img :src="word" @click="openWord(w)" alt />
  6778. <div
  6779. class="answerScore"
  6780. v-if="w.score"
  6781. @click.stop="openScore(w)"
  6782. :class="{
  6783. rightW:
  6784. w.userid == userid || tType == 1 || tType == 4,
  6785. }"
  6786. >
  6787. {{ JSON.parse(w.score).wScore }}分
  6788. </div>
  6789. <div
  6790. class="answerScore"
  6791. @click.stop="openScore(w)"
  6792. v-else-if="courseDetail.userid == userid"
  6793. :class="{
  6794. rightW:
  6795. w.userid == userid || tType == 1 || tType == 4,
  6796. }"
  6797. >
  6798. 评分
  6799. </div>
  6800. <img
  6801. class="deleteImg"
  6802. src="../../assets/deleteworks.png"
  6803. v-if="
  6804. w.userid == userid || tType == 1 || tType == 4
  6805. "
  6806. @click.stop="deleteWorks(w.wid)"
  6807. alt
  6808. />
  6809. </div>
  6810. <div class="worksName">
  6811. <div>{{ w.sName }}</div>
  6812. </div>
  6813. </div>
  6814. </div>
  6815. </div>
  6816. <div
  6817. v-if="tool.tool.indexOf(49) != -1"
  6818. class="xuan_right_box"
  6819. style="margin: 0 15px 0 25px; width: 93%"
  6820. >
  6821. <div
  6822. v-if="courseDetail.userid == userid"
  6823. style="
  6824. display: flex;
  6825. justify-content: flex-end;
  6826. margin-right: 10px;
  6827. "
  6828. >
  6829. <el-button
  6830. type="primary"
  6831. size="small"
  6832. @click="addTools(49, toolIndex, taskCount)"
  6833. >分组设置</el-button
  6834. >
  6835. </div>
  6836. <div
  6837. v-if="groupStudentUid[toolIndex]"
  6838. class="group_staic_box"
  6839. >
  6840. <div
  6841. v-for="(gp, gd) in tool.groupJson.group"
  6842. :key="gd"
  6843. class="group_staic"
  6844. >
  6845. <span> {{ gp.name }}</span>
  6846. <span>
  6847. 目前人数{{
  6848. groupStudentUid[toolIndex][gd].length
  6849. }}人</span
  6850. >
  6851. </div>
  6852. </div>
  6853. </div>
  6854. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6855. <div
  6856. class="zuoyeYulan"
  6857. v-if="
  6858. worksStudent.length &&
  6859. worksStudent[toolIndex].length > 0
  6860. "
  6861. >
  6862. <span class="worksTitle">作业预览</span>
  6863. </div>
  6864. <div>
  6865. <div
  6866. class="group_workBox"
  6867. v-for="(g, gindex) in tool.groupJson.group"
  6868. :key="gindex"
  6869. >
  6870. <div
  6871. class="group_box"
  6872. v-if="
  6873. groupStudentUid[toolIndex] &&
  6874. worksStudent[toolIndex] &&
  6875. (worksStudent[toolIndex][gindex].length ||
  6876. groupStudentUid[toolIndex][gindex].indexOf(
  6877. userid
  6878. ) != -1)
  6879. "
  6880. >
  6881. <div class="group_title">
  6882. <el-tooltip
  6883. class="item"
  6884. effect="light"
  6885. :content="g.name"
  6886. placement="top"
  6887. >
  6888. <div class="group_name">{{ g.name }}</div>
  6889. </el-tooltip>
  6890. <el-button
  6891. type="primary"
  6892. v-if="
  6893. groupStudentUid[toolIndex][gindex].indexOf(
  6894. userid
  6895. ) != -1
  6896. "
  6897. @click="groupUpload(toolIndex, taskCount, gindex)"
  6898. >上传作业</el-button
  6899. >
  6900. </div>
  6901. <div class="group_work">
  6902. <div
  6903. class="works"
  6904. style="
  6905. width: 200px;
  6906. height: 140px;
  6907. margin: 10px 10px 10px 0;
  6908. border-radius: 15px;
  6909. box-shadow: 0 0 6px 1px #dfdada;
  6910. "
  6911. v-for="(w, wIndex) in worksStudent[toolIndex][
  6912. gindex
  6913. ]"
  6914. :key="wIndex"
  6915. :class="w.type == 1 ? 'isTypeOne' : ''"
  6916. >
  6917. <div class="workImg" v-if="w.type == 0">
  6918. <img
  6919. :src="w.works"
  6920. @click="previewImg(w.works,w)"
  6921. alt
  6922. />
  6923. <div
  6924. class="answerScore"
  6925. v-if="w.score"
  6926. @click.stop="openScore(w)"
  6927. :class="{
  6928. rightW:
  6929. w.userid == userid ||
  6930. tType == 1 ||
  6931. tType == 4 ||
  6932. w.ateacher == userid,
  6933. }"
  6934. >
  6935. {{ JSON.parse(w.score).wScore }}分
  6936. </div>
  6937. <div
  6938. class="answerScore"
  6939. @click.stop="openScore(w)"
  6940. v-else-if="courseDetail.userid == userid"
  6941. :class="{
  6942. rightW:
  6943. w.userid == userid ||
  6944. tType == 1 ||
  6945. tType == 4 ||
  6946. w.ateacher == userid,
  6947. }"
  6948. >
  6949. 评分
  6950. </div>
  6951. <img
  6952. class="deleteImg"
  6953. src="../../assets/deleteworks.png"
  6954. v-if="
  6955. w.userid == userid ||
  6956. tType == 1 ||
  6957. tType == 4
  6958. "
  6959. @click.stop="deleteWorks(w.wid)"
  6960. alt
  6961. />
  6962. </div>
  6963. <div class="workImg" v-if="w.type == 1">
  6964. <img
  6965. :src="word"
  6966. @click="openFile(w.works)"
  6967. alt
  6968. />
  6969. <!-- @click="openFile(w.works)" -->
  6970. <div
  6971. class="answerScore"
  6972. v-if="w.score"
  6973. @click.stop="openScore(w)"
  6974. :class="{
  6975. rightW:
  6976. w.userid == userid ||
  6977. tType == 1 ||
  6978. tType == 4 ||
  6979. w.ateacher == userid,
  6980. }"
  6981. >
  6982. {{ JSON.parse(w.score).wScore }}分
  6983. </div>
  6984. <div
  6985. class="answerScore"
  6986. @click.stop="openScore(w)"
  6987. v-else-if="courseDetail.userid == userid"
  6988. :class="{
  6989. rightW:
  6990. w.userid == userid ||
  6991. tType == 1 ||
  6992. tType == 4 ||
  6993. w.ateacher == userid,
  6994. }"
  6995. >
  6996. 评分
  6997. </div>
  6998. <img
  6999. class="deleteImg"
  7000. src="../../assets/deleteworks.png"
  7001. v-if="
  7002. w.userid == userid ||
  7003. tType == 1 ||
  7004. tType == 4
  7005. "
  7006. @click.stop="deleteWorks(w.wid)"
  7007. alt
  7008. />
  7009. </div>
  7010. <div class="workImg" v-if="w.type == 3">
  7011. <img
  7012. style="cursor: pointer"
  7013. :src="video"
  7014. @click="openVideo(w)"
  7015. alt
  7016. />
  7017. <!-- @click="openVideo(w.works)" -->
  7018. <div
  7019. class="answerScore"
  7020. v-if="w.score"
  7021. @click.stop="openScore(w)"
  7022. :class="{
  7023. rightW:
  7024. w.userid == userid ||
  7025. tType == 1 ||
  7026. tType == 4 ||
  7027. w.ateacher == userid,
  7028. }"
  7029. >
  7030. {{ JSON.parse(w.score).wScore }}分
  7031. </div>
  7032. <div
  7033. class="answerScore"
  7034. @click.stop="openScore(w)"
  7035. v-else-if="courseDetail.userid == userid"
  7036. :class="{
  7037. rightW:
  7038. w.userid == userid ||
  7039. tType == 1 ||
  7040. tType == 4 ||
  7041. w.ateacher == userid,
  7042. }"
  7043. >
  7044. 评分
  7045. </div>
  7046. <img
  7047. class="deleteImg"
  7048. src="../../assets/deleteworks.png"
  7049. v-if="
  7050. w.userid == userid ||
  7051. tType == 1 ||
  7052. tType == 4
  7053. "
  7054. @click.stop="deleteWorks(w.wid)"
  7055. alt
  7056. />
  7057. </div>
  7058. <div class="workImg" v-if="w.type == 12">
  7059. <img
  7060. style="cursor: pointer"
  7061. :src="word2"
  7062. @click="downloadFile(w.works)"
  7063. alt
  7064. />
  7065. <!-- @click="openVideo(w.works)" -->
  7066. <div
  7067. class="answerScore"
  7068. v-if="w.score"
  7069. @click.stop="openScore(w)"
  7070. :class="{
  7071. rightW:
  7072. w.userid == userid ||
  7073. tType == 1 ||
  7074. tType == 4 ||
  7075. w.ateacher == userid,
  7076. }"
  7077. >
  7078. {{ JSON.parse(w.score).wScore }}分
  7079. </div>
  7080. <div
  7081. class="answerScore"
  7082. @click.stop="openScore(w)"
  7083. v-else-if="courseDetail.userid == userid"
  7084. :class="{
  7085. rightW:
  7086. w.userid == userid ||
  7087. tType == 1 ||
  7088. tType == 4 ||
  7089. w.ateacher == userid,
  7090. }"
  7091. >
  7092. 评分
  7093. </div>
  7094. <img
  7095. class="deleteImg"
  7096. src="../../assets/deleteworks.png"
  7097. v-if="
  7098. w.userid == userid ||
  7099. tType == 1 ||
  7100. tType == 4
  7101. "
  7102. @click.stop="deleteWorks(w.wid)"
  7103. alt
  7104. />
  7105. </div>
  7106. <div class="comment" style="min-width: 200px">
  7107. <div class="worksName">
  7108. <div>{{ w.sName }}</div>
  7109. </div>
  7110. <div class="commentList">
  7111. <div class="commentList">
  7112. <div
  7113. class="commentImg"
  7114. @click="
  7115. isLikes(
  7116. w.wid,
  7117. userid,
  7118. 1,
  7119. null,
  7120. w.isLikes,
  7121. w.sName
  7122. )
  7123. "
  7124. >
  7125. <img
  7126. :src="
  7127. w.isLikes == true ? likes : noLikes
  7128. "
  7129. alt=""
  7130. />
  7131. </div>
  7132. <div>{{ w.likesCount }}</div>
  7133. </div>
  7134. <div
  7135. class="commentList"
  7136. style="margin-right: 15px"
  7137. >
  7138. <div
  7139. class="commentImg"
  7140. @click="
  7141. commentOther(
  7142. w,
  7143. toolIndex,
  7144. wIndex,
  7145. gindex
  7146. )
  7147. "
  7148. >
  7149. <img
  7150. src="../../assets/icon/comment/comment.png"
  7151. alt=""
  7152. />
  7153. </div>
  7154. <div>{{ w.commentCount }}</div>
  7155. </div>
  7156. </div>
  7157. </div>
  7158. </div>
  7159. </div>
  7160. </div>
  7161. </div>
  7162. </div>
  7163. </div>
  7164. </div>
  7165. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7166. 上传文件
  7167. <input
  7168. type="file"
  7169. accept="image/png, image/gif, image/jpeg"
  7170. style="display: none"
  7171. @change="beforeUpload1($event, 2, index)"
  7172. />
  7173. </div>-->
  7174. </div>
  7175. </div>
  7176. <!-- <div
  7177. class="vedioBox"
  7178. style="margin-top: 10px"
  7179. v-if="
  7180. courseDetail.userid == userid ||
  7181. (courseDetail.course_teacher &&
  7182. courseDetail.course_teacher.indexOf(userid) != -1)
  7183. "
  7184. :style="{
  7185. borderRadius:
  7186. !(
  7187. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7188. .toolChoose[0].tool &&
  7189. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7190. .toolChoose[0].tool.length > 0
  7191. ) &&
  7192. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7193. .taskDetail == '' &&
  7194. vChapterData[taskCount].length == 0 &&
  7195. fileC[taskCount].length == 0
  7196. ? '0 0 20px 20px'
  7197. : '20px',
  7198. }"
  7199. >
  7200. <div
  7201. class="queTop"
  7202. @click="isClose = !isClose"
  7203. style="
  7204. padding: 15px 0 15px 37px;
  7205. justify-content: space-between;
  7206. "
  7207. >
  7208. <div class="queTopTitle">新增工具</div>
  7209. <div class="queTopRight">
  7210. <div class="queTopClose" v-if="isClose == 0">
  7211. 展开
  7212. <div class="closeImg">
  7213. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7214. </div>
  7215. </div>
  7216. <div class="queTopClose" v-if="isClose == 1">
  7217. 折叠
  7218. <div class="openImg">
  7219. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7220. </div>
  7221. </div>
  7222. <el-button
  7223. style="margin: 0 30px 0 auto"
  7224. type="primary"
  7225. size="small"
  7226. v-if="isClose == 1 && checktoolArray.length > 0"
  7227. @click.stop="addToolChoose"
  7228. >确定</el-button
  7229. >
  7230. </div>
  7231. </div>
  7232. <div
  7233. class="tool_work_box"
  7234. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7235. >
  7236. <div class="tool_box">
  7237. <div class="tool_type_box">
  7238. <div class="chooseWho">
  7239. <div
  7240. :class="toolType == 0 ? 'isChooseActive' : ''"
  7241. @click="(toolType = 0), $forceUpdate()"
  7242. >
  7243. 互动类
  7244. </div>
  7245. <div
  7246. :class="toolType == 1 ? 'isChooseActive' : ''"
  7247. @click="(toolType = 1), $forceUpdate()"
  7248. >
  7249. 思维类
  7250. </div>
  7251. <div
  7252. :class="toolType == 2 ? 'isChooseActive' : ''"
  7253. @click="(toolType = 2), $forceUpdate()"
  7254. >
  7255. 测评类
  7256. </div>
  7257. <div
  7258. :class="toolType == 3 ? 'isChooseActive' : ''"
  7259. @click="(toolType = 3), $forceUpdate()"
  7260. >
  7261. 编程类
  7262. </div>
  7263. <div
  7264. :class="toolType == 5 ? 'isChooseActive' : ''"
  7265. @click="(toolType = 5), $forceUpdate()"
  7266. >
  7267. 学科类
  7268. </div>
  7269. </div>
  7270. </div>
  7271. <div>
  7272. <div class="toolSort" v-if="toolType == 0">
  7273. <div class="tool">
  7274. <div class="whiteBIcon" @click="addTools2(10)">
  7275. <img
  7276. src="../../assets/icon/thirdToolList/time.png"
  7277. alt
  7278. />
  7279. <div style="margin: 5px 0">倒计时</div>
  7280. </div>
  7281. <div class="check" @click="addTools2(10)">
  7282. <img
  7283. src="../../assets/icon/checkNo.png"
  7284. alt
  7285. v-if="checktoolArray.indexOf(10) == -1"
  7286. />
  7287. <div class="checkDiv" v-else>
  7288. <img src="../../assets/icon/checkedIs.png" alt /><span
  7289. >已选择</span
  7290. >
  7291. </div>
  7292. </div>
  7293. </div>
  7294. <div class="tool">
  7295. <div class="whiteBIcon" @click="addTools2(65)">
  7296. <img
  7297. src="../../assets/icon/firstToolList/pickPeople.png"
  7298. alt
  7299. />
  7300. <div style="margin: 5px 0">挑人</div>
  7301. </div>
  7302. <div class="check" @click="addTools2(65)">
  7303. <img
  7304. src="../../assets/icon/checkNo.png"
  7305. alt
  7306. v-if="checktoolArray.indexOf(65) == -1"
  7307. />
  7308. <div class="checkDiv" v-else>
  7309. <img src="../../assets/icon/checkedIs.png" alt /><span
  7310. >已选择</span
  7311. >
  7312. </div>
  7313. </div>
  7314. </div>
  7315. </div>
  7316. <div class="toolSort" v-if="toolType == 1">
  7317. <div class="tool">
  7318. <div class="whiteBIcon" @click="addTools2(7)">
  7319. <img
  7320. src="../../assets/icon/secondToolList/mindNetwork.png"
  7321. alt
  7322. />
  7323. <div style="margin: 5px 0">思维网格</div>
  7324. </div>
  7325. <div class="check" @click="addTools2(7)">
  7326. <img
  7327. src="../../assets/icon/checkNo.png"
  7328. alt
  7329. v-if="checktoolArray.indexOf(7) == -1"
  7330. />
  7331. <div class="checkDiv" v-else>
  7332. <img src="../../assets/icon/checkedIs.png" alt /><span
  7333. >已选择</span
  7334. >
  7335. </div>
  7336. </div>
  7337. </div>
  7338. <div class="tool">
  7339. <div class="whiteBIcon" @click="addTools2(1)">
  7340. <img
  7341. src="../../assets/icon/secondToolList/whiteBoard.png"
  7342. alt
  7343. />
  7344. <div style="margin: 5px 0">电子白板</div>
  7345. </div>
  7346. <div class="check" @click="addTools2(1)">
  7347. <img
  7348. src="../../assets/icon/checkNo.png"
  7349. alt
  7350. v-if="checktoolArray.indexOf(1) == -1"
  7351. />
  7352. <div class="checkDiv" v-else>
  7353. <img src="../../assets/icon/checkedIs.png" alt /><span
  7354. >已选择</span
  7355. >
  7356. </div>
  7357. </div>
  7358. </div>
  7359. <div class="tool">
  7360. <div class="whiteBIcon" @click="addTools2(52)">
  7361. <img
  7362. src="../../assets/icon/fourthToolList/text.png"
  7363. alt
  7364. />
  7365. <div style="margin: 5px 0">文档</div>
  7366. </div>
  7367. <div class="check" @click="addTools2(52)">
  7368. <img
  7369. src="../../assets/icon/checkNo.png"
  7370. alt
  7371. v-if="checktoolArray.indexOf(52) == -1"
  7372. />
  7373. <div class="checkDiv" v-else>
  7374. <img src="../../assets/icon/checkedIs.png" alt /><span
  7375. >已选择</span
  7376. >
  7377. </div>
  7378. </div>
  7379. </div>
  7380. <div class="tool">
  7381. <div class="whiteBIcon" @click="addTools2(3)">
  7382. <img
  7383. src="../../assets/icon/secondToolList/mindMapping.png"
  7384. alt
  7385. />
  7386. <div style="margin: 5px 0">思维导图</div>
  7387. </div>
  7388. <div class="check" @click="addTools2(3)">
  7389. <img
  7390. src="../../assets/icon/checkNo.png"
  7391. alt
  7392. v-if="checktoolArray.indexOf(3) == -1"
  7393. />
  7394. <div class="checkDiv" v-else>
  7395. <img src="../../assets/icon/checkedIs.png" alt /><span
  7396. >已选择</span
  7397. >
  7398. </div>
  7399. </div>
  7400. </div>
  7401. <div class="tool">
  7402. <div class="whiteBIcon" @click="addTools2(48)">
  7403. <img
  7404. src="../../assets/icon/fourthToolList/table.png"
  7405. alt
  7406. />
  7407. <div style="margin: 5px 0">表格</div>
  7408. </div>
  7409. <div class="check" @click="addTools2(48)">
  7410. <img
  7411. src="../../assets/icon/checkNo.png"
  7412. alt
  7413. v-if="checktoolArray.indexOf(48) == -1"
  7414. />
  7415. <div class="checkDiv" v-else>
  7416. <img src="../../assets/icon/checkedIs.png" alt /><span
  7417. >已选择</span
  7418. >
  7419. </div>
  7420. </div>
  7421. </div>
  7422. </div>
  7423. <div class="toolSort" v-if="toolType == 6">
  7424. <div v-show="tooC == 49">
  7425. <img
  7426. @click="addTools(tooC, toolIndex, taskCount)"
  7427. src="../../assets/icon/fourthToolList/group.png"
  7428. alt
  7429. />
  7430. <div style="margin: 5px 0">学生分组</div>
  7431. </div>
  7432. </div>
  7433. <div class="toolSort" v-if="toolType == 2">
  7434. <div class="tool">
  7435. <div class="whiteBIcon" @click="addTools2(16)">
  7436. <img
  7437. src="../../assets/icon/thirdToolList/work.png"
  7438. alt
  7439. />
  7440. <div style="margin: 5px 0">作业提交</div>
  7441. </div>
  7442. <div class="check" @click="addTools2(16)">
  7443. <img
  7444. src="../../assets/icon/checkNo.png"
  7445. alt
  7446. v-if="checktoolArray.indexOf(16) == -1"
  7447. />
  7448. <div class="checkDiv" v-else>
  7449. <img src="../../assets/icon/checkedIs.png" alt /><span
  7450. >已选择</span
  7451. >
  7452. </div>
  7453. </div>
  7454. </div>
  7455. <div class="tool">
  7456. <div class="whiteBIcon" @click="addTools2(50)">
  7457. <img
  7458. src="../../assets/icon/thirdToolList/plwork.png"
  7459. alt
  7460. />
  7461. <div style="margin: 5px 0">批量上传</div>
  7462. </div>
  7463. <div class="check" @click="addTools2(50)">
  7464. <img
  7465. src="../../assets/icon/checkNo.png"
  7466. alt
  7467. v-if="checktoolArray.indexOf(50) == -1"
  7468. />
  7469. <div class="checkDiv" v-else>
  7470. <img src="../../assets/icon/checkedIs.png" alt /><span
  7471. >已选择</span
  7472. >
  7473. </div>
  7474. </div>
  7475. </div>
  7476. </div>
  7477. <div class="toolSort" v-if="toolType == 3">
  7478. <div class="tool">
  7479. <div class="whiteBIcon" @click="addTools2(18)">
  7480. <img
  7481. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7482. alt
  7483. />
  7484. <div style="margin: 5px 0">训练平台</div>
  7485. </div>
  7486. <div class="check" @click="addTools2(18)">
  7487. <img
  7488. src="../../assets/icon/checkNo.png"
  7489. alt
  7490. v-if="checktoolArray.indexOf(18) == -1"
  7491. />
  7492. <div class="checkDiv" v-else>
  7493. <img src="../../assets/icon/checkedIs.png" alt /><span
  7494. >已选择</span
  7495. >
  7496. </div>
  7497. </div>
  7498. </div>
  7499. <div class="tool">
  7500. <div class="whiteBIcon" @click="addTools2(21)">
  7501. <img
  7502. src="../../assets/icon/fourthToolList/program.png"
  7503. alt
  7504. />
  7505. <div style="margin: 5px 0">AIoT Blockly</div>
  7506. </div>
  7507. <div class="check" @click="addTools2(21)">
  7508. <img
  7509. src="../../assets/icon/checkNo.png"
  7510. alt
  7511. v-if="checktoolArray.indexOf(21) == -1"
  7512. />
  7513. <div class="checkDiv" v-else>
  7514. <img src="../../assets/icon/checkedIs.png" alt /><span
  7515. >已选择</span
  7516. >
  7517. </div>
  7518. </div>
  7519. </div>
  7520. <div class="tool">
  7521. <div class="whiteBIcon" @click="addTools2(23)">
  7522. <img
  7523. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7524. alt
  7525. />
  7526. <div style="margin: 5px 0">AI Python</div>
  7527. </div>
  7528. <div class="check" @click="addTools2(23)">
  7529. <img
  7530. src="../../assets/icon/checkNo.png"
  7531. alt
  7532. v-if="checktoolArray.indexOf(23) == -1"
  7533. />
  7534. <div class="checkDiv" v-else>
  7535. <img src="../../assets/icon/checkedIs.png" alt /><span
  7536. >已选择</span
  7537. >
  7538. </div>
  7539. </div>
  7540. </div>
  7541. <div class="tool">
  7542. <div class="whiteBIcon" @click="addTools2(24)">
  7543. <img
  7544. src="../../assets/icon/fourthToolList/AIprogram.png"
  7545. alt
  7546. />
  7547. <div style="margin: 5px 0">AI Blockly</div>
  7548. </div>
  7549. <div class="check" @click="addTools2(24)">
  7550. <img
  7551. src="../../assets/icon/checkNo.png"
  7552. alt
  7553. v-if="checktoolArray.indexOf(24) == -1"
  7554. />
  7555. <div class="checkDiv" v-else>
  7556. <img src="../../assets/icon/checkedIs.png" alt /><span
  7557. >已选择</span
  7558. >
  7559. </div>
  7560. </div>
  7561. </div>
  7562. <div class="tool">
  7563. <div class="whiteBIcon" @click="addTools2(32)">
  7564. <img
  7565. src="../../assets/icon/thirdToolList/code.png"
  7566. alt
  7567. />
  7568. <div style="margin: 5px 0">源码编辑</div>
  7569. </div>
  7570. <div class="check" @click="addTools2(32)">
  7571. <img
  7572. src="../../assets/icon/checkNo.png"
  7573. alt
  7574. v-if="checktoolArray.indexOf(32) == -1"
  7575. />
  7576. <div class="checkDiv" v-else>
  7577. <img src="../../assets/icon/checkedIs.png" alt /><span
  7578. >已选择</span
  7579. >
  7580. </div>
  7581. </div>
  7582. </div>
  7583. <div class="tool">
  7584. <div class="whiteBIcon" @click="addTools2(57)">
  7585. <img
  7586. src="../../assets/icon/fourthToolList/cocopi.png"
  7587. alt
  7588. />
  7589. <div style="margin: 5px 0">CocoPi</div>
  7590. </div>
  7591. <div class="check" @click="addTools2(57)">
  7592. <img
  7593. src="../../assets/icon/checkNo.png"
  7594. alt
  7595. v-if="checktoolArray.indexOf(57) == -1"
  7596. />
  7597. <div class="checkDiv" v-else>
  7598. <img src="../../assets/icon/checkedIs.png" alt /><span
  7599. >已选择</span
  7600. >
  7601. </div>
  7602. </div>
  7603. </div>
  7604. <div class="tool">
  7605. <div class="whiteBIcon" @click="addTools2(63)">
  7606. <img
  7607. src="../../assets/icon/fourthToolList/Wood.png"
  7608. alt
  7609. />
  7610. <div style="margin: 5px 0">海龟编程</div>
  7611. </div>
  7612. <div class="check" @click="addTools2(63)">
  7613. <img
  7614. src="../../assets/icon/checkNo.png"
  7615. alt
  7616. v-if="checktoolArray.indexOf(63) == -1"
  7617. />
  7618. <div class="checkDiv" v-else>
  7619. <img src="../../assets/icon/checkedIs.png" alt /><span
  7620. >已选择</span
  7621. >
  7622. </div>
  7623. </div>
  7624. </div>
  7625. </div>
  7626. <div class="toolSort" v-if="toolType == 5">
  7627. <div class="tool">
  7628. <div class="whiteBIcon" @click="addTools2(28)">
  7629. <img
  7630. src="../../assets/icon/secondToolList/translation.png"
  7631. alt
  7632. />
  7633. <div style="margin: 5px 0">翻译</div>
  7634. </div>
  7635. <div class="check" @click="addTools2(28)">
  7636. <img
  7637. src="../../assets/icon/checkNo.png"
  7638. alt
  7639. v-if="checktoolArray.indexOf(28) == -1"
  7640. />
  7641. <div class="checkDiv" v-else>
  7642. <img src="../../assets/icon/checkedIs.png" alt /><span
  7643. >已选择</span
  7644. >
  7645. </div>
  7646. </div>
  7647. </div>
  7648. <div class="tool">
  7649. <div class="whiteBIcon" @click="addTools2(31)">
  7650. <img
  7651. src="../../assets/icon/secondToolList/networkPanel.png"
  7652. alt
  7653. />
  7654. <div style="margin: 5px 0">数字画板</div>
  7655. </div>
  7656. <div class="check" @click="addTools2(31)">
  7657. <img
  7658. src="../../assets/icon/checkNo.png"
  7659. alt
  7660. v-if="checktoolArray.indexOf(31) == -1"
  7661. />
  7662. <div class="checkDiv" v-else>
  7663. <img src="../../assets/icon/checkedIs.png" alt /><span
  7664. >已选择</span
  7665. >
  7666. </div>
  7667. </div>
  7668. </div>
  7669. <div class="tool">
  7670. <div class="whiteBIcon" @click="addTools2(39)">
  7671. <img
  7672. src="../../assets/icon/secondToolList/GeoGebra.png"
  7673. alt
  7674. />
  7675. <div style="margin: 5px 0">GeoGebra</div>
  7676. </div>
  7677. <div class="check" @click="addTools2(39)">
  7678. <img
  7679. src="../../assets/icon/checkNo.png"
  7680. alt
  7681. v-if="checktoolArray.indexOf(39) == -1"
  7682. />
  7683. <div class="checkDiv" v-else>
  7684. <img src="../../assets/icon/checkedIs.png" alt /><span
  7685. >已选择</span
  7686. >
  7687. </div>
  7688. </div>
  7689. </div>
  7690. <div class="tool">
  7691. <div class="whiteBIcon" @click="addTools2(66)">
  7692. <img
  7693. src="../../assets/icon/secondToolList/formulaEdi.png"
  7694. alt
  7695. />
  7696. <div style="margin: 5px 0">公式编辑</div>
  7697. </div>
  7698. <div class="check" @click="addTools2(66)">
  7699. <img
  7700. src="../../assets/icon/checkNo.png"
  7701. alt
  7702. v-if="checktoolArray.indexOf(66) == -1"
  7703. />
  7704. <div class="checkDiv" v-else>
  7705. <img src="../../assets/icon/checkedIs.png" alt /><span
  7706. >已选择</span
  7707. >
  7708. </div>
  7709. </div>
  7710. </div>
  7711. <div class="tool">
  7712. <div class="whiteBIcon" @click="addTools2(67)">
  7713. <img
  7714. src="../../assets/icon/secondToolList/molStr.png"
  7715. alt
  7716. />
  7717. <div style="margin: 5px 0">分子结构</div>
  7718. </div>
  7719. <div class="check" @click="addTools2(67)">
  7720. <img
  7721. src="../../assets/icon/checkNo.png"
  7722. alt
  7723. v-if="checktoolArray.indexOf(67) == -1"
  7724. />
  7725. <div class="checkDiv" v-else>
  7726. <img src="../../assets/icon/checkedIs.png" alt /><span
  7727. >已选择</span
  7728. >
  7729. </div>
  7730. </div>
  7731. </div>
  7732. <div class="tool">
  7733. <div class="whiteBIcon" @click="addTools2(68)">
  7734. <img
  7735. src="../../assets/icon/secondToolList/timeAxis.png"
  7736. alt
  7737. />
  7738. <div style="margin: 5px 0">时间轴</div>
  7739. </div>
  7740. <div class="check" @click="addTools2(68)">
  7741. <img
  7742. src="../../assets/icon/checkNo.png"
  7743. alt
  7744. v-if="checktoolArray.indexOf(68) == -1"
  7745. />
  7746. <div class="checkDiv" v-else>
  7747. <img src="../../assets/icon/checkedIs.png" alt /><span
  7748. >已选择</span
  7749. >
  7750. </div>
  7751. </div>
  7752. </div>
  7753. </div>
  7754. <div class="toolSort" v-if="toolType == 7">
  7755. <div class="tool">
  7756. <div class="whiteBIcon" @click="addTools2(40)">
  7757. <img
  7758. src="../../assets/icon/secondToolList/eval.png"
  7759. alt
  7760. />
  7761. <div style="margin: 5px 0">个人评价</div>
  7762. </div>
  7763. <div class="check" @click="addTools2(40)">
  7764. <img
  7765. src="../../assets/icon/checkNo.png"
  7766. alt
  7767. v-if="checktoolArray.indexOf(40) == -1"
  7768. />
  7769. <div class="checkDiv" v-else>
  7770. <img src="../../assets/icon/checkedIs.png" alt /><span
  7771. >已选择</span
  7772. >
  7773. </div>
  7774. </div>
  7775. </div>
  7776. </div>
  7777. <div class="toolSort" v-if="toolType == 4">
  7778. <div class="tool">
  7779. <div class="whiteBIcon" @click="addTools2(26)">
  7780. <img
  7781. src="../../assets/icon/thirdToolList/courseDesign.png"
  7782. alt
  7783. />
  7784. <div style="margin: 5px 0">课程设计</div>
  7785. </div>
  7786. <div class="check" @click="addTools2(26)">
  7787. <img
  7788. src="../../assets/icon/checkNo.png"
  7789. alt
  7790. v-if="checktoolArray.indexOf(26) == -1"
  7791. />
  7792. <div class="checkDiv" v-else>
  7793. <img src="../../assets/icon/checkedIs.png" alt /><span
  7794. >已选择</span
  7795. >
  7796. </div>
  7797. </div>
  7798. </div>
  7799. <div class="tool">
  7800. <div class="whiteBIcon" @click="addTools2(25)">
  7801. <img
  7802. src="../../assets/icon/thirdToolList/evalua.png"
  7803. alt
  7804. />
  7805. <div style="margin: 5px 0">目标管理</div>
  7806. </div>
  7807. <div class="check" @click="addTools2(25)">
  7808. <img
  7809. src="../../assets/icon/checkNo.png"
  7810. alt
  7811. v-if="checktoolArray.indexOf(25) == -1"
  7812. />
  7813. <div class="checkDiv" v-else>
  7814. <img src="../../assets/icon/checkedIs.png" alt /><span
  7815. >已选择</span
  7816. >
  7817. </div>
  7818. </div>
  7819. </div>
  7820. </div>
  7821. </div>
  7822. </div>
  7823. </div>
  7824. </div> -->
  7825. <div
  7826. class="vedioBox"
  7827. style="margin-top: 10px; border-radius: 20px"
  7828. v-if="
  7829. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7830. .eList &&
  7831. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7832. .eList.length &&
  7833. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7834. .eList.length > 0 &&
  7835. tType != 2
  7836. "
  7837. >
  7838. <div
  7839. class="queTop"
  7840. style="
  7841. font-size: 20px;
  7842. padding: 15px 0 15px 37px;
  7843. font-weight: bold;
  7844. "
  7845. >
  7846. <!-- <div class="question" style="width: 30px">
  7847. <img src="../assets/icon/toolIcon.png" alt />
  7848. </div>
  7849. <div class="queTitle">
  7850. <div>工具</div>
  7851. </div>-->
  7852. 评一评
  7853. </div>
  7854. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7855. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7856. <el-table
  7857. :data="
  7858. chapInfoList[courseType].chapterInfo[0].taskJson[
  7859. taskCount
  7860. ].eList
  7861. "
  7862. :header-cell-style="{ background: '#F0F4FA' }"
  7863. :row-class-name="tableRowClassName"
  7864. border
  7865. stripe
  7866. style="width: 100%"
  7867. >
  7868. <el-table-column
  7869. label="评价名称"
  7870. align="center"
  7871. >
  7872. <template slot-scope="scope"
  7873. ><div>{{ scope.row.value }}</div></template
  7874. >
  7875. </el-table-column>
  7876. <el-table-column
  7877. label="评价描述"
  7878. align="center"
  7879. >
  7880. <template slot-scope="scope"
  7881. ><div>
  7882. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7883. </div></template
  7884. >
  7885. </el-table-column>
  7886. <el-table-column label="目标" align="center">
  7887. <template slot-scope="scope"
  7888. ><div>
  7889. {{
  7890. scope.row.target
  7891. ? scope.row.target[scope.row.target.length - 1]
  7892. : "-"
  7893. }}
  7894. </div></template
  7895. ></el-table-column
  7896. >
  7897. </el-table>
  7898. <!-- <div
  7899. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7900. .chapterInfo[0].taskJson[taskCount].eList"
  7901. :key="eIndex"
  7902. class="elist_input_box"
  7903. >
  7904. <div style="width: 95%">
  7905. <div
  7906. style="
  7907. display: flex;
  7908. flex-direction: row;
  7909. flex-wrap: nowrap;
  7910. align-items: center;
  7911. "
  7912. >
  7913. <div style="max-width: calc(100% - 285px)">
  7914. <span>{{ eItem.value }}</span>
  7915. </div>
  7916. <div
  7917. style="
  7918. padding-left: 25px;
  7919. display: flex;
  7920. flex-direction: row;
  7921. align-items: center;
  7922. "
  7923. >
  7924. <el-rate
  7925. v-model="eItem.score"
  7926. :colors="colors"
  7927. disabled
  7928. ></el-rate>
  7929. </div>
  7930. </div>
  7931. <div class="elist_inptu_text" style="padding-left: 10px">
  7932. <span v-if="eItem.detail != ''">{{
  7933. eItem.detail
  7934. }}</span>
  7935. <span v-else style="color: #b2b1b3; font-size: 14px"
  7936. >暂无描述...</span
  7937. >
  7938. </div>
  7939. </div>
  7940. </div> -->
  7941. </div>
  7942. <div
  7943. v-if="evalua"
  7944. style="
  7945. border: 1px solid #e5e5e5;
  7946. max-width: 650px;
  7947. width: 100%;
  7948. margin-top: 20px;
  7949. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7950. "
  7951. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7952. >
  7953. <div class="e_add_top">
  7954. <div class="e_add_title" style="width: 100%">
  7955. <!-- <span>目标管理名称</span> -->
  7956. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7957. <img
  7958. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7959. src="../../assets/line.png"
  7960. class="cru_line"
  7961. style="
  7962. width: 125px;
  7963. height: 20px;
  7964. bottom: -10px;
  7965. left: 5px;
  7966. "
  7967. />
  7968. <!-- <el-input
  7969. v-model="eTitle"
  7970. placeholder="请输入名称"
  7971. @change="setMindData"
  7972. ></el-input>-->
  7973. <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>
  7974. <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>
  7975. </div>
  7976. </div>
  7977. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7978. <div class="e_add_list_pbox">
  7979. <div class="e_add_list_pbox_title">
  7980. <!-- <span class="type_title">切换模式</span> -->
  7981. <div class="type_content">
  7982. <span
  7983. :class="{ active: typeMode == 1 }"
  7984. @click="typeMode = 1"
  7985. >目标树</span
  7986. >
  7987. <span
  7988. :class="{ active: typeMode == 2 }"
  7989. @click="typeMode = 2"
  7990. >目标罗盘</span
  7991. >
  7992. <!-- <span
  7993. :class="{ active: typeMode == 3 }"
  7994. @click="typeMode = 3"
  7995. >目标看板</span
  7996. > -->
  7997. </div>
  7998. </div>
  7999. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8000. <Mind
  8001. :showBar="false"
  8002. :mindData="data"
  8003. style="width: 100%"
  8004. v-show="typeMode == 1"
  8005. ></Mind>
  8006. <Sunburst
  8007. :Josn="eJson"
  8008. :num="eJSONNum"
  8009. style="width: 100%"
  8010. v-if="typeMode == 2"
  8011. ></Sunburst>
  8012. <SeeBoard
  8013. :Josn="eJson"
  8014. :num="eJSONNum"
  8015. :ename="eTitle"
  8016. style="width: 100%"
  8017. v-if="typeMode == 3"
  8018. >
  8019. </SeeBoard>
  8020. </div>
  8021. </div>
  8022. </div>
  8023. </div>
  8024. </div>
  8025. </div>
  8026. <!-- <div
  8027. class="project_box"
  8028. style="margin-top: 15px; padding-bottom: 30px"
  8029. >
  8030. <div
  8031. style="
  8032. display: flex;
  8033. flex-wrap: nowrap;
  8034. flex-direction: column;
  8035. position: relative;
  8036. "
  8037. >
  8038. <div class="queTop">
  8039. <div class="question">
  8040. <img src="../../assets/icon/homeWork.png" alt="" />
  8041. </div>
  8042. <div class="queTitle">
  8043. <div>作业提交<span>(提交图文视频等)</span></div>
  8044. <div>:任务:{{ task.task }}</div>
  8045. </div>
  8046. </div>
  8047. <div class="ediBottom">
  8048. <div
  8049. class="addEditor"
  8050. style="margin-top: 23px"
  8051. @click="openAddWork"
  8052. v-if="!isNoHomeWork"
  8053. >
  8054. 选择文件
  8055. </div>
  8056. <div
  8057. class="addEditor"
  8058. style="margin-top: 23px"
  8059. @click="openAddWork"
  8060. v-else
  8061. >
  8062. 已提交
  8063. </div>
  8064. </div>
  8065. </div>
  8066. </div>-->
  8067. </div>
  8068. </div>
  8069. <el-dialog
  8070. title="作业提交"
  8071. :visible.sync="dialogVisible"
  8072. :append-to-body="true"
  8073. width="500px"
  8074. :before-close="handleClose"
  8075. class="dialog_change"
  8076. >
  8077. <div class="marginT">
  8078. <div>上传文件</div>
  8079. <div
  8080. class="chapter_add"
  8081. @click="addImg($event)"
  8082. v-if="studyJuri[0].cover.length == 0"
  8083. >
  8084. <div class="up_photo">
  8085. <img src="../../assets/icon/uploadImg.png" alt />
  8086. </div>
  8087. <!-- <input
  8088. type="file"
  8089. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8090. style="display: none"
  8091. @change="beforeUpload1($event, 1)"
  8092. /> -->
  8093. <input
  8094. type="file"
  8095. accept="*"
  8096. style="display: none"
  8097. @change="beforeUpload1($event, 1)"
  8098. />
  8099. <!-- <input
  8100. type="file"
  8101. accept="image/*"
  8102. capture="camera"
  8103. style="display: none"
  8104. @change="beforeUpload1($event, 1)"
  8105. /> -->
  8106. </div>
  8107. <div
  8108. class="chapter_add"
  8109. style="
  8110. display: flex;
  8111. width: 100%;
  8112. flex-direction: row;
  8113. flex-wrap: wrap;
  8114. justify-content: flex-start;
  8115. padding: 15px 0;
  8116. "
  8117. v-if="studyJuri[0].cover.length > 0"
  8118. >
  8119. <div class="upCover">
  8120. <img
  8121. :src="studyJuri[0].cover[0].url"
  8122. alt
  8123. v-if="fileType == 0"
  8124. />
  8125. <img :src="word" alt v-else-if="fileType == 1" />
  8126. <img :src="video" alt v-else-if="fileType == 2" />
  8127. <img :src="word2" alt v-else-if="fileType == 3" />
  8128. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8129. <div class="deleteWord" @click="clean(1)">
  8130. <img src="../../assets/icon/deleteWorks.png" alt />
  8131. </div>
  8132. </div>
  8133. </div>
  8134. </div>
  8135. <div
  8136. class="upload_send"
  8137. @click="addCourseWorks(taskCount)"
  8138. v-if="!proVisible"
  8139. >
  8140. 提交
  8141. </div>
  8142. </el-dialog>
  8143. </div>
  8144. </div>
  8145. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8146. <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(
  8147. '/courseDetail?userid=' +
  8148. userid +
  8149. '&oid=' +
  8150. oid +
  8151. '&org=' +
  8152. org +
  8153. '&cid=' +
  8154. classId +
  8155. '&courseId=' +
  8156. id +
  8157. '&tType=' +
  8158. tType +
  8159. '&screenType=' +
  8160. screenType
  8161. )"></classRoomHelper>
  8162. <div
  8163. class="pButton"
  8164. @click="(pzDialog = true), selectPz()"
  8165. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8166. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8167. >
  8168. <!-- 批 -->
  8169. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8170. </div>
  8171. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8172. <div class="pzTop2">
  8173. <!-- <div>评论</div>
  8174. <div @click="pzDialog = false">
  8175. <img src="../../assets/close1.png" alt="" />
  8176. </div> -->
  8177. <div class="checkbox">
  8178. <!-- <div class="check" style="font-size: 25px; position: unset">
  8179. 评论
  8180. </div> -->
  8181. <div class="cb-tabList">
  8182. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8183. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8184. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8185. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8186. </div>
  8187. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8188. <el-option label="时间降序" :value="1"></el-option>
  8189. <el-option label="时间升序" :value="2"></el-option>
  8190. <el-option label="我的评课" :value="3"></el-option>
  8191. </el-select>
  8192. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8193. </div>
  8194. </div>
  8195. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8196. <div class="pzListBox" v-if="pzList && pzList.length">
  8197. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8198. <div class="pzNavTop">
  8199. <div>评</div>
  8200. <div>
  8201. {{
  8202. pz.username && pz.username.length > 5
  8203. ? pz.username.substring(0, 5) + "..."
  8204. : pz.username
  8205. }}的评论
  8206. </div>
  8207. <div
  8208. class="pzDelete"
  8209. v-if="pz.userid == userid"
  8210. @click="deletePz(pz.id)"
  8211. >
  8212. 删除
  8213. </div>
  8214. </div>
  8215. <div
  8216. @click="checkImg(getImgList(pz.content))"
  8217. class="pzContent cont"
  8218. v-html="pz.content"
  8219. v-if="pz.type == '1'"
  8220. ></div>
  8221. <div class="pzContent" v-if="pz.type == '2'">
  8222. <audio :src="pz.content" controls="controls" ref="audio">
  8223. Your browser does not support the audio element.
  8224. </audio>
  8225. </div>
  8226. <div class="pzContent" v-if="pz.type == '3'">
  8227. <img
  8228. :src="pz.content"
  8229. style="width: 90%; margin: 0 auto; display: block"
  8230. @click="previewImg(pz.content)"
  8231. />
  8232. </div>
  8233. <div class="timeAndReply">
  8234. <div class="time">
  8235. {{ pz.time }}
  8236. </div>
  8237. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8238. </div>
  8239. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8240. <div
  8241. v-for="(h, hIndex) in pz.hfList"
  8242. :key="hIndex"
  8243. class="hfItem"
  8244. >
  8245. <div class="whoReplyWho">
  8246. <div class="hfName">{{ h.username }}</div>
  8247. <div class="hfImg">
  8248. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8249. </div>
  8250. <div class="hfName">{{ pz.username }}</div>
  8251. </div>
  8252. <div class="hfContent" v-html="h.content"></div>
  8253. <div class="hfBottom">
  8254. <div class="hfTime">{{ h.time }}</div>
  8255. <div
  8256. class="deleteHfItem"
  8257. @click="deleteReply(h.id)"
  8258. v-if="userid == h.userid"
  8259. >
  8260. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8261. </div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8266. <div class="replyInput">
  8267. <el-input v-model="reply[pzIndex]"></el-input>
  8268. </div>
  8269. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8270. </div> -->
  8271. </div>
  8272. </div>
  8273. <div class="noPz" v-else>
  8274. <img src="../../assets/icon/noPz.png" alt="" />
  8275. </div>
  8276. <div class="addPzButton">
  8277. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8278. 添加评论
  8279. </div>
  8280. <!-- <div class="img1">
  8281. <div @click="(addPzDialog = true), (pzType = 2)">
  8282. <img src="../../assets/audio.png" /><span>音频</span>
  8283. </div>
  8284. </div> -->
  8285. </div>
  8286. </div>
  8287. <div class="scoreList" v-if="commentTagShow==1">
  8288. <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"/>
  8289. </div>
  8290. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8291. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8292. </div>
  8293. </div>
  8294. <div
  8295. v-if="toolDialogVisible == true"
  8296. class="toolMask"
  8297. @click="toolDialogVisible = false"
  8298. ></div>
  8299. <div v-if="toolDialogVisible == true" class="addToolCss">
  8300. <div class="toolTop">
  8301. <div style="font-weight: bold">新增工具</div>
  8302. <div @click="toolDialogVisible = false">
  8303. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8304. </div>
  8305. </div>
  8306. <div class="tool_box">
  8307. <div class="tool_type_box">
  8308. <div class="chooseWho">
  8309. <div
  8310. :class="toolType == 0 ? 'isChooseActive' : ''"
  8311. @click="(toolType = 0), $forceUpdate()"
  8312. >
  8313. 互动类
  8314. </div>
  8315. <div
  8316. :class="toolType == 1 ? 'isChooseActive' : ''"
  8317. @click="(toolType = 1), $forceUpdate()"
  8318. >
  8319. 思维类
  8320. </div>
  8321. <div
  8322. :class="toolType == 2 ? 'isChooseActive' : ''"
  8323. @click="(toolType = 2), $forceUpdate()"
  8324. >
  8325. 测评类
  8326. </div>
  8327. <div
  8328. :class="toolType == 3 ? 'isChooseActive' : ''"
  8329. @click="(toolType = 3), $forceUpdate()"
  8330. >
  8331. 编程类
  8332. </div>
  8333. <div
  8334. :class="toolType == 5 ? 'isChooseActive' : ''"
  8335. @click="(toolType = 5), $forceUpdate()"
  8336. >
  8337. 学科类
  8338. </div>
  8339. </div>
  8340. </div>
  8341. <div>
  8342. <div class="toolSort" v-if="toolType == 0">
  8343. <div
  8344. class="tool"
  8345. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8346. @click="addTools2(10)"
  8347. >
  8348. <div class="whiteBIcon">
  8349. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8350. <div style="margin: 5px 0">倒计时</div>
  8351. </div>
  8352. <div class="check">
  8353. <div
  8354. v-if="checktoolArray.indexOf(10) == -1"
  8355. class="noChoose"
  8356. ></div>
  8357. <div v-else class="isChoose"></div>
  8358. </div>
  8359. </div>
  8360. <div
  8361. class="tool"
  8362. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8363. @click="addTools2(65)"
  8364. >
  8365. <div class="whiteBIcon">
  8366. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8367. <div style="margin: 5px 0">挑人</div>
  8368. </div>
  8369. <div class="check">
  8370. <div
  8371. v-if="checktoolArray.indexOf(65) == -1"
  8372. class="noChoose"
  8373. ></div>
  8374. <div v-else class="isChoose"></div>
  8375. </div>
  8376. </div>
  8377. </div>
  8378. <div class="toolSort" v-if="toolType == 1">
  8379. <div
  8380. class="tool"
  8381. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8382. @click="addTools2(7)"
  8383. >
  8384. <div class="whiteBIcon">
  8385. <img
  8386. src="../../assets/icon/secondToolList/mindNetwork.png"
  8387. alt
  8388. />
  8389. <div style="margin: 5px 0">思维网格</div>
  8390. </div>
  8391. <div class="check">
  8392. <div
  8393. v-if="checktoolArray.indexOf(7) == -1"
  8394. class="noChoose"
  8395. ></div>
  8396. <div v-else class="isChoose"></div>
  8397. </div>
  8398. </div>
  8399. <div
  8400. class="tool"
  8401. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8402. @click="addTools2(1)"
  8403. >
  8404. <div class="whiteBIcon">
  8405. <img
  8406. src="../../assets/icon/secondToolList/whiteBoard.png"
  8407. alt
  8408. />
  8409. <div style="margin: 5px 0">电子白板</div>
  8410. </div>
  8411. <div class="check">
  8412. <div
  8413. v-if="checktoolArray.indexOf(1) == -1"
  8414. class="noChoose"
  8415. ></div>
  8416. <div v-else class="isChoose"></div>
  8417. </div>
  8418. </div>
  8419. <div
  8420. class="tool"
  8421. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8422. @click="addTools2(52)"
  8423. >
  8424. <div class="whiteBIcon">
  8425. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8426. <div style="margin: 5px 0">文档</div>
  8427. </div>
  8428. <div class="check">
  8429. <div
  8430. v-if="checktoolArray.indexOf(52) == -1"
  8431. class="noChoose"
  8432. ></div>
  8433. <div v-else class="isChoose"></div>
  8434. </div>
  8435. </div>
  8436. <div
  8437. class="tool"
  8438. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8439. @click="addTools2(3)"
  8440. >
  8441. <div class="whiteBIcon">
  8442. <img
  8443. src="../../assets/icon/secondToolList/mindMapping.png"
  8444. alt
  8445. />
  8446. <div style="margin: 5px 0">思维导图</div>
  8447. </div>
  8448. <div class="check">
  8449. <div
  8450. v-if="checktoolArray.indexOf(3) == -1"
  8451. class="noChoose"
  8452. ></div>
  8453. <div v-else class="isChoose"></div>
  8454. </div>
  8455. </div>
  8456. <div
  8457. class="tool"
  8458. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8459. @click="addTools2(48)"
  8460. >
  8461. <div class="whiteBIcon">
  8462. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8463. <div style="margin: 5px 0">表格</div>
  8464. </div>
  8465. <div class="check">
  8466. <div
  8467. v-if="checktoolArray.indexOf(48) == -1"
  8468. class="noChoose"
  8469. ></div>
  8470. <div v-else class="isChoose"></div>
  8471. </div>
  8472. </div>
  8473. </div>
  8474. <div class="toolSort" v-if="toolType == 6">
  8475. <div v-show="tooC == 49">
  8476. <img
  8477. @click="addTools(tooC, toolIndex, taskCount)"
  8478. src="../../assets/icon/fourthToolList/group.png"
  8479. alt
  8480. />
  8481. <div style="margin: 5px 0">学生分组</div>
  8482. </div>
  8483. </div>
  8484. <div class="toolSort" v-if="toolType == 2">
  8485. <div
  8486. class="tool"
  8487. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8488. @click="addTools2(16)"
  8489. >
  8490. <div class="whiteBIcon">
  8491. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8492. <div style="margin: 5px 0">作业提交</div>
  8493. </div>
  8494. <div class="check">
  8495. <div
  8496. v-if="checktoolArray.indexOf(16) == -1"
  8497. class="noChoose"
  8498. ></div>
  8499. <div v-else class="isChoose"></div>
  8500. </div>
  8501. </div>
  8502. <div
  8503. class="tool"
  8504. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8505. @click="addTools2(50)"
  8506. >
  8507. <div class="whiteBIcon">
  8508. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8509. <div style="margin: 5px 0">批量上传</div>
  8510. </div>
  8511. <div class="check">
  8512. <div
  8513. v-if="checktoolArray.indexOf(50) == -1"
  8514. class="noChoose"
  8515. ></div>
  8516. <div v-else class="isChoose"></div>
  8517. </div>
  8518. </div>
  8519. </div>
  8520. <div class="toolSort" v-if="toolType == 3">
  8521. <div
  8522. class="tool"
  8523. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8524. @click="addTools2(18)"
  8525. >
  8526. <div class="whiteBIcon">
  8527. <img
  8528. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8529. alt
  8530. />
  8531. <div style="margin: 5px 0">训练平台</div>
  8532. </div>
  8533. <div class="check">
  8534. <div
  8535. v-if="checktoolArray.indexOf(18) == -1"
  8536. class="noChoose"
  8537. ></div>
  8538. <div v-else class="isChoose"></div>
  8539. </div>
  8540. </div>
  8541. <div
  8542. class="tool"
  8543. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8544. @click="addTools2(21)"
  8545. >
  8546. <div class="whiteBIcon">
  8547. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8548. <div style="margin: 5px 0">AIoT Blockly</div>
  8549. </div>
  8550. <div class="check">
  8551. <div
  8552. v-if="checktoolArray.indexOf(21) == -1"
  8553. class="noChoose"
  8554. ></div>
  8555. <div v-else class="isChoose"></div>
  8556. </div>
  8557. </div>
  8558. <div
  8559. class="tool"
  8560. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8561. @click="addTools2(23)"
  8562. >
  8563. <div class="whiteBIcon">
  8564. <img
  8565. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8566. alt
  8567. />
  8568. <div style="margin: 5px 0">AI Python</div>
  8569. </div>
  8570. <div class="check">
  8571. <div
  8572. v-if="checktoolArray.indexOf(23) == -1"
  8573. class="noChoose"
  8574. ></div>
  8575. <div v-else class="isChoose"></div>
  8576. </div>
  8577. </div>
  8578. <div
  8579. class="tool"
  8580. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8581. @click="addTools2(24)"
  8582. >
  8583. <div class="whiteBIcon">
  8584. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8585. <div style="margin: 5px 0">AI Blockly</div>
  8586. </div>
  8587. <div class="check">
  8588. <div
  8589. v-if="checktoolArray.indexOf(24) == -1"
  8590. class="noChoose"
  8591. ></div>
  8592. <div v-else class="isChoose"></div>
  8593. </div>
  8594. </div>
  8595. <div
  8596. class="tool"
  8597. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8598. @click="addTools2(32)"
  8599. >
  8600. <div class="whiteBIcon">
  8601. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8602. <div style="margin: 5px 0">源码编辑</div>
  8603. </div>
  8604. <div class="check">
  8605. <div
  8606. v-if="checktoolArray.indexOf(32) == -1"
  8607. class="noChoose"
  8608. ></div>
  8609. <div v-else class="isChoose"></div>
  8610. </div>
  8611. </div>
  8612. <div
  8613. class="tool"
  8614. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8615. @click="addTools2(57)"
  8616. >
  8617. <div class="whiteBIcon">
  8618. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8619. <div style="margin: 5px 0">CocoPi</div>
  8620. </div>
  8621. <div class="check">
  8622. <div
  8623. v-if="checktoolArray.indexOf(57) == -1"
  8624. class="noChoose"
  8625. ></div>
  8626. <div v-else class="isChoose"></div>
  8627. </div>
  8628. </div>
  8629. <div
  8630. class="tool"
  8631. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8632. @click="addTools2(63)"
  8633. >
  8634. <div class="whiteBIcon">
  8635. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8636. <div style="margin: 5px 0">海龟编程</div>
  8637. </div>
  8638. <div class="check">
  8639. <div
  8640. v-if="checktoolArray.indexOf(63) == -1"
  8641. class="noChoose"
  8642. ></div>
  8643. <div v-else class="isChoose"></div>
  8644. </div>
  8645. </div>
  8646. <div
  8647. class="tool"
  8648. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8649. @click="addTools2(71)"
  8650. >
  8651. <div class="whiteBIcon">
  8652. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8653. <div style="margin: 5px 0">AI智能体</div>
  8654. </div>
  8655. <div class="check">
  8656. <div
  8657. v-if="checktoolArray.indexOf(71) == -1"
  8658. class="noChoose"
  8659. ></div>
  8660. <div v-else class="isChoose"></div>
  8661. </div>
  8662. </div>
  8663. </div>
  8664. <div class="toolSort" v-if="toolType == 7">
  8665. <div
  8666. class="tool"
  8667. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8668. @click="addTools2(40)"
  8669. >
  8670. <div class="whiteBIcon">
  8671. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8672. <div style="margin: 5px 0">个人评价</div>
  8673. </div>
  8674. <div class="check">
  8675. <div
  8676. v-if="checktoolArray.indexOf(40) == -1"
  8677. class="noChoose"
  8678. ></div>
  8679. <div v-else class="isChoose"></div>
  8680. </div>
  8681. </div>
  8682. </div>
  8683. <div class="toolSort" v-if="toolType == 5">
  8684. <div
  8685. class="tool"
  8686. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8687. @click="addTools2(28)"
  8688. >
  8689. <div class="whiteBIcon">
  8690. <img
  8691. src="../../assets/icon/secondToolList/translation.png"
  8692. alt
  8693. />
  8694. <div style="margin: 5px 0">翻译</div>
  8695. </div>
  8696. <div class="check">
  8697. <div
  8698. v-if="checktoolArray.indexOf(28) == -1"
  8699. class="noChoose"
  8700. ></div>
  8701. <div v-else class="isChoose"></div>
  8702. </div>
  8703. </div>
  8704. <div
  8705. class="tool"
  8706. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8707. @click="addTools2(31)"
  8708. >
  8709. <div class="whiteBIcon">
  8710. <img
  8711. src="../../assets/icon/secondToolList/networkPanel.png"
  8712. alt
  8713. />
  8714. <div style="margin: 5px 0">数字画板</div>
  8715. </div>
  8716. <div class="check">
  8717. <div
  8718. v-if="checktoolArray.indexOf(31) == -1"
  8719. class="noChoose"
  8720. ></div>
  8721. <div v-else class="isChoose"></div>
  8722. </div>
  8723. </div>
  8724. <div
  8725. class="tool"
  8726. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8727. @click="addTools2(39)"
  8728. >
  8729. <div class="whiteBIcon">
  8730. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8731. <div style="margin: 5px 0">GeoGebra</div>
  8732. </div>
  8733. <div class="check">
  8734. <div
  8735. v-if="checktoolArray.indexOf(39) == -1"
  8736. class="noChoose"
  8737. ></div>
  8738. <div v-else class="isChoose"></div>
  8739. </div>
  8740. </div>
  8741. <div
  8742. class="tool"
  8743. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8744. @click="addTools2(66)"
  8745. >
  8746. <div class="whiteBIcon">
  8747. <img
  8748. src="../../assets/icon/secondToolList/formulaEdi.png"
  8749. alt
  8750. />
  8751. <div style="margin: 5px 0">公式编辑</div>
  8752. </div>
  8753. <div class="check">
  8754. <div
  8755. v-if="checktoolArray.indexOf(66) == -1"
  8756. class="noChoose"
  8757. ></div>
  8758. <div v-else class="isChoose"></div>
  8759. </div>
  8760. </div>
  8761. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8762. <div class="whiteBIcon" @click="addTools2(67)">
  8763. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8764. <div style="margin: 5px 0">分子结构</div>
  8765. </div>
  8766. <div class="check" @click="addTools2(67)">
  8767. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8768. <div v-else class="isChoose"></div>
  8769. </div>
  8770. </div> -->
  8771. <div
  8772. class="tool"
  8773. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8774. @click="addTools2(68)"
  8775. >
  8776. <div class="whiteBIcon">
  8777. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8778. <div style="margin: 5px 0">时间轴</div>
  8779. </div>
  8780. <div class="check">
  8781. <div
  8782. v-if="checktoolArray.indexOf(68) == -1"
  8783. class="noChoose"
  8784. ></div>
  8785. <div v-else class="isChoose"></div>
  8786. </div>
  8787. </div>
  8788. <!-- <div
  8789. class="tool"
  8790. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8791. @click="addTools2(69)"
  8792. >
  8793. <div class="whiteBIcon">
  8794. <img src="../../assets/icon/secondToolList/english.png" alt />
  8795. <div style="margin: 5px 0">英语写作</div>
  8796. </div>
  8797. <div class="check">
  8798. <div
  8799. v-if="checktoolArray.indexOf(69) == -1"
  8800. class="noChoose"
  8801. ></div>
  8802. <div v-else class="isChoose"></div>
  8803. </div>
  8804. </div> -->
  8805. </div>
  8806. <div class="toolSort" v-if="toolType == 4">
  8807. <div
  8808. class="tool"
  8809. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8810. @click="addTools2(26)"
  8811. >
  8812. <div class="whiteBIcon">
  8813. <img
  8814. src="../../assets/icon/thirdToolList/courseDesign.png"
  8815. alt
  8816. />
  8817. <div style="margin: 5px 0">课程设计</div>
  8818. </div>
  8819. <div class="check">
  8820. <div
  8821. v-if="checktoolArray.indexOf(26) == -1"
  8822. class="noChoose"
  8823. ></div>
  8824. <div v-else class="isChoose"></div>
  8825. </div>
  8826. </div>
  8827. <div
  8828. class="tool"
  8829. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8830. @click="addTools2(25)"
  8831. >
  8832. <div class="whiteBIcon">
  8833. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8834. <div style="margin: 5px 0">目标管理</div>
  8835. </div>
  8836. <div class="check">
  8837. <div
  8838. v-if="checktoolArray.indexOf(25) == -1"
  8839. class="noChoose"
  8840. ></div>
  8841. <div v-else class="isChoose"></div>
  8842. </div>
  8843. </div>
  8844. </div>
  8845. </div>
  8846. </div>
  8847. <span
  8848. slot="footer"
  8849. class="dialog-footer"
  8850. style="display: block; text-align: center; padding: 0 0 10px 0"
  8851. >
  8852. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8853. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8854. </span>
  8855. </div>
  8856. <div
  8857. v-if="replyDialogVisible == true"
  8858. class="addDialogCss"
  8859. v-el-drag-dialog
  8860. >
  8861. <div class="pzTop">
  8862. <div class="teacherPz">
  8863. <div class="teacherPzImg">
  8864. <img src="../../assets/icon/teacherPz.png" alt="" />
  8865. </div>
  8866. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8867. </div>
  8868. <div @click="replyDialogVisible = false">
  8869. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8870. </div>
  8871. </div>
  8872. <div class="addPzBox">
  8873. <!-- <div class="addPzCheck">
  8874. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8875. >文本</span
  8876. >
  8877. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8878. >音频</span
  8879. >
  8880. </div> -->
  8881. <div style="height: calc(100% - 50px)">
  8882. <editor-bar
  8883. class="binfo_input pzConText"
  8884. style="width: 100% !important; margin: 0 auto"
  8885. placeholder="请输入回复描述"
  8886. v-model="reply"
  8887. @change="change"
  8888. ></editor-bar>
  8889. </div>
  8890. <div class="addTextCss" @click="addHf">确定</div>
  8891. </div>
  8892. </div>
  8893. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8894. <div class="pzTop">
  8895. <div class="teacherPz">
  8896. <div class="teacherPzImg">
  8897. <img src="../../assets/icon/teacherPz.png" alt="" />
  8898. </div>
  8899. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8900. </div>
  8901. <div @click="addPzDialog = false">
  8902. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8903. </div>
  8904. </div>
  8905. <div class="addPzBox">
  8906. <div class="addPzCheck">
  8907. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8908. >文本</span
  8909. >
  8910. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8911. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8912. >音频</span
  8913. >
  8914. </div>
  8915. <div style="height: calc(100% - 95px)">
  8916. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8917. v-if="pzType == 1"></textarea> -->
  8918. <editor-bar
  8919. class="binfo_input pzConText"
  8920. style="width: 100% !important"
  8921. placeholder="请输入任务描述"
  8922. v-model="pzConText"
  8923. @change="change"
  8924. v-if="pzType == 1"
  8925. ></editor-bar>
  8926. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8927. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8928. <div @click="addImg($event)">
  8929. <el-button type="primary">上传图片</el-button>
  8930. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8931. @change="beforeUpload1($event, 4)" />
  8932. </div>
  8933. </div> -->
  8934. </div>
  8935. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8936. 确定
  8937. </div>
  8938. </div>
  8939. </div>
  8940. <div v-if="proVisible" class="mask">
  8941. <div class="progressBox">
  8942. <!-- <div id="closePro" class="closeCss">
  8943. <img src="../../assets/icon/close.png" alt />
  8944. </div> -->
  8945. <div class="lbox">
  8946. <img src="../../assets/loading.gif" />上传中,请稍后
  8947. </div>
  8948. <div style="margin-bottom: 10px">
  8949. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8950. </div>
  8951. <el-progress
  8952. :text-inside="true"
  8953. :stroke-width="20"
  8954. :percentage="progress"
  8955. style="width: 80%"
  8956. ></el-progress>
  8957. </div>
  8958. </div>
  8959. <div v-if="proVisible2" class="mask">
  8960. <div class="progressBox">
  8961. <div class="lbox">
  8962. <img src="../../assets/loading.gif" />上传中,请稍后
  8963. </div>
  8964. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8965. </div>
  8966. </div>
  8967. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8968. <img width="100%" :src="dialogImageUrl" alt />
  8969. </el-dialog>
  8970. <el-dialog
  8971. :title="noteName != '' ? noteName : '查看问卷'"
  8972. :visible.sync="dialogVisible5"
  8973. :append-to-body="true"
  8974. width="1000px"
  8975. :before-close="handleClose"
  8976. class="dialog_diy dialog_diy3"
  8977. >
  8978. <div>
  8979. <div
  8980. class="a_add_title"
  8981. style="
  8982. display: flex;
  8983. flex-direction: row;
  8984. align-items: center;
  8985. justify-content: center;
  8986. "
  8987. >
  8988. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8989. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8990. </div>
  8991. <div class="a_addBox">
  8992. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8993. 题目内容
  8994. </div>
  8995. <div
  8996. class="a_add_box"
  8997. v-for="(item1, index1) in askJson.askCount"
  8998. :key="index1"
  8999. >
  9000. <div class="a_add_head">
  9001. <div style="display: flex">
  9002. <span class="askIndex"> {{ index1 + 1 }}</span>
  9003. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9004. </div>
  9005. <img
  9006. v-if="askJson.askJson[index1].img"
  9007. :src="askJson.askJson[index1].img"
  9008. style="height: 300px; margin-top: 10px; max-width: 100%"
  9009. />
  9010. </div>
  9011. <div class="a_add_body">
  9012. <div class="a_add_input">
  9013. <el-radio-group
  9014. v-model="radio[index1]"
  9015. v-if="
  9016. askJson.askJson[index1].type == '1' ||
  9017. !askJson.askJson[index1].type
  9018. "
  9019. >
  9020. <el-radio
  9021. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9022. .checkList"
  9023. :key="checkIndex"
  9024. :label="checkIndex"
  9025. :disabled="isAnswer"
  9026. class="redioStyle"
  9027. ><span v-html="item2"></span
  9028. ></el-radio>
  9029. </el-radio-group>
  9030. <el-checkbox-group
  9031. v-model="radio[index1]"
  9032. v-if="askJson.askJson[index1].type == '2'"
  9033. >
  9034. <el-checkbox
  9035. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9036. .checkList"
  9037. :key="checkIndex1"
  9038. :label="checkIndex1"
  9039. :disabled="isAnswer"
  9040. class="redioStyle"
  9041. ><span v-html="item2"></span>
  9042. </el-checkbox>
  9043. </el-checkbox-group>
  9044. </div>
  9045. </div>
  9046. </div>
  9047. </div>
  9048. </div>
  9049. <span slot="footer" class="dialog-footer">
  9050. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9051. >取 消</el-button
  9052. >
  9053. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9054. >确 定</el-button
  9055. >
  9056. </span>
  9057. </el-dialog>
  9058. <el-dialog
  9059. :title="noteName != '' ? noteName : '查看问卷'"
  9060. :visible.sync="dialogVisible5Teacher"
  9061. :append-to-body="true"
  9062. width="1000px"
  9063. :before-close="handleClose"
  9064. class="dialog_diy dialog_diy3"
  9065. >
  9066. <div>
  9067. <div class="w_name">
  9068. 学生姓名:<span>{{ sStudent.student }}</span>
  9069. </div>
  9070. <div
  9071. class="a_add_title"
  9072. style="
  9073. display: flex;
  9074. flex-direction: row;
  9075. align-items: center;
  9076. justify-content: center;
  9077. "
  9078. >
  9079. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9080. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9081. </div>
  9082. <div class="a_addBox">
  9083. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9084. 题目内容
  9085. </div>
  9086. <div
  9087. class="a_add_box"
  9088. v-for="(item1, index1) in askJson.askCount"
  9089. :key="index1"
  9090. >
  9091. <div class="a_add_head">
  9092. <div style="display: flex">
  9093. <span class="askIndex">{{ index1 + 1 }}</span>
  9094. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9095. </div>
  9096. <img
  9097. v-if="askJson.askJson[index1].img"
  9098. :src="askJson.askJson[index1].img"
  9099. style="height: 300px; margin-top: 10px; max-width: 100%"
  9100. />
  9101. </div>
  9102. <div class="a_add_body">
  9103. <div class="a_add_input">
  9104. <el-radio-group
  9105. v-model="radio[index1]"
  9106. v-if="
  9107. askJson.askJson[index1].type == '1' ||
  9108. !askJson.askJson[index1].type
  9109. "
  9110. >
  9111. <el-radio
  9112. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9113. .checkList"
  9114. :key="checkIndex"
  9115. :label="checkIndex"
  9116. :disabled="isAnswer"
  9117. class="redioStyle"
  9118. ><span v-html="item2"></span
  9119. ></el-radio>
  9120. </el-radio-group>
  9121. <el-checkbox-group
  9122. v-model="radio[index1]"
  9123. v-if="askJson.askJson[index1].type == '2'"
  9124. >
  9125. <el-checkbox
  9126. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9127. .checkList"
  9128. :key="checkIndex1"
  9129. :label="checkIndex1"
  9130. :disabled="isAnswer"
  9131. class="redioStyle"
  9132. ><span v-html="item2"></span>
  9133. </el-checkbox>
  9134. </el-checkbox-group>
  9135. </div>
  9136. </div>
  9137. </div>
  9138. </div>
  9139. </div>
  9140. <span slot="footer" class="dialog-footer">
  9141. <el-button
  9142. @click="dialogVisible5Teacher = false"
  9143. v-show="noteName == ''"
  9144. >取 消</el-button
  9145. >
  9146. <el-button
  9147. type="primary"
  9148. @click="addStudentAskTeacher"
  9149. v-show="noteName == ''"
  9150. >确 定</el-button
  9151. >
  9152. </span>
  9153. </el-dialog>
  9154. <el-dialog
  9155. :title="noteName != '' ? noteName : '查看选择题'"
  9156. :visible.sync="dialogVisibleChoice"
  9157. :append-to-body="true"
  9158. width="1000px"
  9159. :before-close="handleClose"
  9160. class="dialog_diy dialog_diy3"
  9161. >
  9162. <div>
  9163. <!-- <div class="a_add_title" style="
  9164. display: flex;
  9165. flex-direction: row;
  9166. align-items: center;
  9167. justify-content: center;
  9168. ">
  9169. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9170. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9171. </div> -->
  9172. <div class="a_addBox">
  9173. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9174. 题目内容
  9175. </div>
  9176. <div
  9177. class="a_add_box"
  9178. v-for="(item1, index1) in testJson.testCount"
  9179. :key="index1"
  9180. >
  9181. <div class="a_add_head">
  9182. <div style="display: flex">
  9183. <span class="askIndex">{{ index1 + 1 }}</span>
  9184. <div
  9185. v-if="testJson.testJson[index1].type == '1'"
  9186. style="margin-right: 5px; min-width: 70px"
  9187. >
  9188. (单选题)
  9189. </div>
  9190. <div
  9191. v-if="testJson.testJson[index1].type == '2'"
  9192. style="margin-right: 5px; min-width: 70px"
  9193. >
  9194. (多选题)
  9195. </div>
  9196. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9197. </div>
  9198. <img
  9199. v-if="testJson.testJson[index1].img"
  9200. :src="testJson.testJson[index1].img"
  9201. style="height: 300px; margin-top: 10px; max-width: 100%"
  9202. />
  9203. </div>
  9204. <div
  9205. class="timuImgBox"
  9206. v-if="
  9207. testJson.testJson[index1].timuList &&
  9208. testJson.testJson[index1].timuList.length
  9209. "
  9210. >
  9211. <div
  9212. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9213. :key="tIndex"
  9214. class="timuImg"
  9215. @click.stop="previewImg(timg.src)"
  9216. >
  9217. <img :src="timg.src" alt="" />
  9218. </div>
  9219. </div>
  9220. <div class="a_add_body">
  9221. <div class="a_add_input">
  9222. <el-radio-group
  9223. v-model="radio[index1]"
  9224. v-if="testJson.testJson[index1].type == '1'"
  9225. >
  9226. <div class="radioBox">
  9227. <el-radio
  9228. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9229. .checkList"
  9230. :key="checkIndex"
  9231. :label="checkIndex"
  9232. :disabled="isAnswer"
  9233. class="redioStyle"
  9234. >
  9235. <div
  9236. style="margin-right: 10px"
  9237. v-if="item2 && item2.imgType && item2.imgType == 1"
  9238. >
  9239. <div class="inImg" @click.stop="previewImg(item2.src)">
  9240. <img :src="item2.src" alt="" />
  9241. </div>
  9242. </div>
  9243. <span v-else v-html="item2"></span>
  9244. </el-radio>
  9245. </div>
  9246. </el-radio-group>
  9247. <el-checkbox-group
  9248. v-model="radio[index1]"
  9249. v-if="testJson.testJson[index1].type == '2'"
  9250. >
  9251. <div class="radioBox">
  9252. <el-checkbox
  9253. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9254. .checkList"
  9255. :key="checkIndex"
  9256. :label="checkIndex"
  9257. :disabled="isAnswer"
  9258. class="redioStyle"
  9259. >
  9260. <div
  9261. style="margin-right: 10px"
  9262. v-if="item2 && item2.imgType && item2.imgType == 1"
  9263. >
  9264. <div class="inImg" @click.stop="previewImg(item2.src)">
  9265. <img :src="item2.src" alt="" />
  9266. </div>
  9267. </div>
  9268. <span v-else v-html="item2"></span>
  9269. </el-checkbox>
  9270. </div>
  9271. </el-checkbox-group>
  9272. </div>
  9273. </div>
  9274. </div>
  9275. </div>
  9276. </div>
  9277. <span slot="footer" class="dialog-footer">
  9278. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9279. >取 消</el-button
  9280. >
  9281. <el-button
  9282. type="primary"
  9283. @click="addStudentTest"
  9284. v-show="noteName == ''"
  9285. >确 定</el-button
  9286. >
  9287. </span>
  9288. </el-dialog>
  9289. <el-dialog
  9290. :title="noteName != '' ? noteName : '查看选择题'"
  9291. :visible.sync="dialogVisibleChoiceTeacher"
  9292. :append-to-body="true"
  9293. width="1000px"
  9294. :before-close="handleClose"
  9295. class="dialog_diy dialog_diy3"
  9296. >
  9297. <div>
  9298. <div class="w_name">
  9299. 学生姓名:<span>{{ sStudent.student }}</span>
  9300. </div>
  9301. <div class="a_addBox">
  9302. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9303. 题目内容
  9304. </div>
  9305. <div
  9306. class="a_add_box"
  9307. v-for="(item1, index1) in testJson.testCount"
  9308. :key="index1"
  9309. >
  9310. <div class="a_add_head">
  9311. <div style="display: flex">
  9312. <span class="askIndex">{{ index1 + 1 }}</span>
  9313. <div
  9314. v-if="testJson.testJson[index1].type == '1'"
  9315. style="margin-right: 5px; min-width: 70px"
  9316. >
  9317. (单选题)
  9318. </div>
  9319. <div
  9320. v-if="testJson.testJson[index1].type == '2'"
  9321. style="margin-right: 5px; min-width: 70px"
  9322. >
  9323. (多选题)
  9324. </div>
  9325. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9326. </div>
  9327. <img
  9328. v-if="testJson.testJson[index1].img"
  9329. :src="testJson.testJson[index1].img"
  9330. style="height: 300px; margin-top: 10px; max-width: 100%"
  9331. />
  9332. </div>
  9333. <div
  9334. class="timuImgBox"
  9335. v-if="
  9336. testJson.testJson[index1].timuList &&
  9337. testJson.testJson[index1].timuList.length
  9338. "
  9339. >
  9340. <div
  9341. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9342. :key="tIndex"
  9343. class="timuImg"
  9344. @click.stop="previewImg(timg.src)"
  9345. >
  9346. <img :src="timg.src" alt="" />
  9347. </div>
  9348. </div>
  9349. <div class="a_add_body">
  9350. <div class="a_add_input">
  9351. <el-radio-group
  9352. v-model="radio[index1]"
  9353. v-if="testJson.testJson[index1].type == '1'"
  9354. >
  9355. <div class="radioBox">
  9356. <el-radio
  9357. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9358. .checkList"
  9359. :key="checkIndex"
  9360. :label="checkIndex"
  9361. :disabled="isAnswer"
  9362. class="redioStyle"
  9363. >
  9364. <div
  9365. style="margin-right: 10px"
  9366. v-if="item2 && item2.imgType && item2.imgType == 1"
  9367. >
  9368. <div class="inImg" @click.stop="previewImg(item2.src)">
  9369. <img :src="item2.src" alt="" />
  9370. </div>
  9371. </div>
  9372. <span v-else v-html="item2"></span>
  9373. </el-radio>
  9374. </div>
  9375. </el-radio-group>
  9376. <el-checkbox-group
  9377. v-model="radio[index1]"
  9378. v-if="testJson.testJson[index1].type == '2'"
  9379. >
  9380. <div class="radioBox">
  9381. <el-checkbox
  9382. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9383. .checkList"
  9384. :key="checkIndex"
  9385. :label="checkIndex"
  9386. :disabled="isAnswer"
  9387. class="redioStyle"
  9388. >
  9389. <div
  9390. style="margin-right: 10px"
  9391. v-if="item2 && item2.imgType && item2.imgType == 1"
  9392. >
  9393. <div class="inImg" @click.stop="previewImg(item2.src)">
  9394. <img :src="item2.src" alt="" />
  9395. </div>
  9396. </div>
  9397. <span v-else v-html="item2"></span>
  9398. </el-checkbox>
  9399. </div>
  9400. </el-checkbox-group>
  9401. </div>
  9402. </div>
  9403. </div>
  9404. </div>
  9405. </div>
  9406. <span slot="footer" class="dialog-footer">
  9407. <el-button
  9408. @click="dialogVisibleChoiceTeacher = false"
  9409. v-show="noteName == ''"
  9410. >取 消</el-button
  9411. >
  9412. <el-button
  9413. type="primary"
  9414. @click="addStudentTestTeacher"
  9415. v-show="noteName == ''"
  9416. >确 定</el-button
  9417. >
  9418. </span>
  9419. </el-dialog>
  9420. <el-dialog
  9421. title="查看富文本"
  9422. :visible.sync="dialogVisible1"
  9423. :append-to-body="true"
  9424. width="500px"
  9425. :before-close="handleClose"
  9426. class="dialog_diy textCss"
  9427. >
  9428. <el-form style="font-size: 20px">
  9429. <el-form-item label="文本标题" class="textTitle">
  9430. <div style="font-size: 20px">{{ text.name }}</div>
  9431. </el-form-item>
  9432. <div>富文本内容</div>
  9433. <div
  9434. v-html="text.url"
  9435. style="font-size: 18px; padding: 40px 0 0 0"
  9436. ></div>
  9437. </el-form>
  9438. <span slot="footer" class="dialog-footer">
  9439. <el-button type="primary" @click="dialogVisible1 = false"
  9440. >确定</el-button
  9441. >
  9442. </span>
  9443. </el-dialog>
  9444. <el-dialog
  9445. title="文件预览"
  9446. :visible.sync="dialogVisible3"
  9447. width="50%"
  9448. :before-close="handleClose"
  9449. class="dialog_diy"
  9450. :class="{ fullStyle: full }"
  9451. >
  9452. <div slot="title" class="header-title">
  9453. <div style="color: #fff">文件预览</div>
  9454. <div style="position: absolute; top: 19px; right: 50px">
  9455. <img
  9456. src="../../assets/full.png"
  9457. style="height: 16px; cursor: pointer"
  9458. alt=""
  9459. @click="fullTools"
  9460. />
  9461. </div>
  9462. </div>
  9463. <pdf
  9464. v-if="showPDF"
  9465. :pdfUrl="pptImgUrl"
  9466. style="width: 100%; height: 520px; overflow: auto"
  9467. :class="{ fullStyle: full }"
  9468. ></pdf>
  9469. <iframe
  9470. v-else
  9471. :src="pptImgUrl"
  9472. frameborder="0"
  9473. width="100%"
  9474. height="600"
  9475. :class="{ fullStyle: full }"
  9476. ></iframe>
  9477. </el-dialog>
  9478. <el-dialog
  9479. title="文件预览"
  9480. :visible.sync="dialogVisible6"
  9481. width="50%"
  9482. :before-close="handleClose"
  9483. class="dialog_diy"
  9484. >
  9485. <iframe
  9486. :src="pptImgUrl1"
  9487. frameborder="0"
  9488. width="100%"
  9489. height="600"
  9490. ></iframe>
  9491. </el-dialog>
  9492. <el-dialog
  9493. title="提示"
  9494. :visible.sync="dialogVisible4"
  9495. :append-to-body="true"
  9496. width="800px"
  9497. :before-close="handleClose"
  9498. class="dialog_diy notice"
  9499. >
  9500. <div>此功能暂未开放!</div>
  9501. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9502. </el-dialog>
  9503. <el-dialog
  9504. title="问答"
  9505. :visible.sync="answerDialogVisible"
  9506. :append-to-body="true"
  9507. width="800px"
  9508. :before-close="handleClose"
  9509. class="dialog_diy"
  9510. >
  9511. <div>
  9512. <div
  9513. style="
  9514. display: flex;
  9515. flex-wrap: nowrap;
  9516. flex-direction: column;
  9517. position: relative;
  9518. "
  9519. >
  9520. <div class="queTop" style="padding: 20px 0 20px 0">
  9521. <div class="question">
  9522. <img src="../../assets/icon/question.png" alt />
  9523. </div>
  9524. <div class="queTitle">
  9525. <div style="width: 90px; min-width: 90px">提问:</div>
  9526. <div>{{ answerQ }}</div>
  9527. </div>
  9528. </div>
  9529. <div class="ediBottom">
  9530. <textarea
  9531. rows="6"
  9532. class="binfo_input"
  9533. cols
  9534. style="width: 95%; height: 120px"
  9535. v-model="questionAnswer"
  9536. ></textarea>
  9537. </div>
  9538. </div>
  9539. </div>
  9540. <div slot="footer">
  9541. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9542. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9543. </div>
  9544. </el-dialog>
  9545. <el-dialog
  9546. title="问答"
  9547. :visible.sync="answerDialogVisibleTeacher"
  9548. :append-to-body="true"
  9549. width="800px"
  9550. :before-close="handleClose"
  9551. class="dialog_diy"
  9552. >
  9553. <div>
  9554. <div class="w_name">
  9555. 学生姓名:<span>{{ sStudent.student }}</span>
  9556. </div>
  9557. <div
  9558. style="
  9559. display: flex;
  9560. flex-wrap: nowrap;
  9561. flex-direction: column;
  9562. position: relative;
  9563. "
  9564. >
  9565. <div class="queTop" style="padding: 20px 0 20px 0">
  9566. <div class="question">
  9567. <img src="../../assets/icon/question.png" alt />
  9568. </div>
  9569. <div class="queTitle">
  9570. <div style="width: 90px; min-width: 90px">提问:</div>
  9571. <div>{{ answerQ }}</div>
  9572. </div>
  9573. </div>
  9574. <div class="ediBottom">
  9575. <textarea
  9576. rows="6"
  9577. class="binfo_input"
  9578. cols
  9579. style="width: 95%; height: 120px"
  9580. v-model="questionAnswer"
  9581. ></textarea>
  9582. </div>
  9583. </div>
  9584. </div>
  9585. <div slot="footer">
  9586. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9587. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9588. </div>
  9589. </el-dialog>
  9590. <el-dialog
  9591. title="倒计时"
  9592. :visible.sync="timeDialogVisible"
  9593. :append-to-body="true"
  9594. width="800px"
  9595. :before-close="handleClose"
  9596. class="dialog_diy"
  9597. >
  9598. <div>
  9599. <div style="margin-bottom: 20px; color: #999">
  9600. 提示:点击“+”或“-”修改倒计时时长。
  9601. </div>
  9602. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9603. </div>
  9604. <div slot="footer">
  9605. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9606. </div>
  9607. </el-dialog>
  9608. <el-dialog
  9609. title="权限设置"
  9610. :visible.sync="juriVisible"
  9611. :append-to-body="true"
  9612. width="400px"
  9613. :before-close="handleClose"
  9614. class="dialog_diy"
  9615. >
  9616. <div>
  9617. <div class="open_box">
  9618. <div class="switch_box">
  9619. <span>允许学生查看所有作业</span>
  9620. <el-switch
  9621. v-model="sIsOpen"
  9622. active-text=""
  9623. class="switchCss"
  9624. @change="updateSLook"
  9625. ></el-switch>
  9626. </div>
  9627. <div
  9628. class="switch_box"
  9629. v-if="
  9630. courseDetail.userid == userid ||
  9631. (courseDetail.course_teacher &&
  9632. courseDetail.course_teacher.indexOf(userid) != -1)
  9633. "
  9634. >
  9635. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9636. <span>禁止学生查看所有阶段</span>
  9637. <el-switch
  9638. v-model="IsLookOpen"
  9639. active-text=""
  9640. class="switchCss"
  9641. @change="updateLookOpen"
  9642. ></el-switch>
  9643. </div>
  9644. <div class="switch_box" v-if="courseDetail.userid == userid">
  9645. <span>开启跟随模式</span>
  9646. <el-switch
  9647. v-model="IsFollow"
  9648. active-text=""
  9649. class="switchCss"
  9650. @change="updateFollow"
  9651. ></el-switch>
  9652. </div>
  9653. </div>
  9654. </div>
  9655. <div slot="footer">
  9656. <el-button
  9657. style="background: #409efe; color: #fff"
  9658. @click="juriVisible = false"
  9659. >关 闭</el-button
  9660. >
  9661. </div>
  9662. </el-dialog>
  9663. <el-dialog
  9664. title="查看视频"
  9665. :visible.sync="videoVisible"
  9666. :append-to-body="true"
  9667. width="1000px"
  9668. :before-close="handleClose"
  9669. class="dialog_diy1"
  9670. >
  9671. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9672. <video-player
  9673. class="video-player vjs-custom-skin"
  9674. :playsinline="true"
  9675. :options="videoDetail"
  9676. @play="onPlayerPlay($event)"
  9677. style="width: 100%; height: 100%"
  9678. ></video-player>
  9679. </div>
  9680. <div slot="footer">
  9681. <el-button
  9682. style="background: #409efe; color: #fff"
  9683. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9684. >
  9685. 关 闭</el-button
  9686. >
  9687. </div>
  9688. </el-dialog>
  9689. <el-dialog
  9690. title="查看详情"
  9691. :visible.sync="commentDialogVisible"
  9692. :append-to-body="true"
  9693. width="800px"
  9694. :before-close="handleClose"
  9695. class="dialog_diy"
  9696. >
  9697. <div class="commentTop">
  9698. <div class="studentDetail">
  9699. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9700. <div class="nameAndTime">
  9701. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9702. <div>{{ commentDetail.time }}</div>
  9703. </div>
  9704. <div
  9705. class="returnBtn"
  9706. style="margin-left: auto; width: 80px"
  9707. v-if="
  9708. commentDetail.works &&
  9709. commentDetail.type == 0 &&
  9710. (tType == 1 || tType == 4)
  9711. "
  9712. @click="
  9713. showPicturePaint(
  9714. commentDetail.img ? commentDetail.img : commentDetail.works
  9715. )
  9716. "
  9717. >
  9718. 教师批注
  9719. </div>
  9720. </div>
  9721. <div
  9722. class="worksAnswer"
  9723. v-if="commentDetail.works && commentDetail.type == 2"
  9724. >
  9725. {{ JSON.parse(commentDetail.works)[0].answer }}
  9726. </div>
  9727. <div
  9728. class="worksAnswer"
  9729. v-if="commentDetail.works && commentDetail.type == 1"
  9730. >
  9731. <img
  9732. src="../../assets/teacherWork.png"
  9733. v-if="commentDetail.ateacher"
  9734. class="w_teachert"
  9735. />
  9736. <pdf
  9737. v-if="showPDF"
  9738. :pdfUrl="pptImgUrl"
  9739. style="width: 100%; height: 520px; overflow: auto"
  9740. :class="{ fullStyle: full }"
  9741. ></pdf>
  9742. <iframe
  9743. v-else
  9744. :src="pptImgUrl"
  9745. frameborder="0"
  9746. width="100%"
  9747. height="600"
  9748. :class="{ fullStyle: full }"
  9749. ></iframe>
  9750. </div>
  9751. <div
  9752. class="worksAnswer"
  9753. v-if="commentDetail.works && commentDetail.type == 0"
  9754. >
  9755. <img
  9756. src="../../assets/teacherWork.png"
  9757. v-if="commentDetail.ateacher"
  9758. class="w_teachert"
  9759. style="right: 105px"
  9760. />
  9761. <img
  9762. :src="commentDetail.works"
  9763. alt=""
  9764. @click="previewImg(commentDetail.works)"
  9765. />
  9766. </div>
  9767. <div
  9768. class="worksAnswer"
  9769. v-if="commentDetail.works && commentDetail.type == 3"
  9770. >
  9771. <img
  9772. src="../../assets/teacherWork.png"
  9773. v-if="commentDetail.ateacher"
  9774. class="w_teachert"
  9775. />
  9776. <video-player
  9777. class="video-player vjs-custom-skin"
  9778. :playsinline="true"
  9779. :options="videoDetail"
  9780. @play="onPlayerPlay($event)"
  9781. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9782. ></video-player>
  9783. </div>
  9784. <div
  9785. class="worksAnswer"
  9786. v-if="commentDetail.works && commentDetail.type == 10"
  9787. >
  9788. <div class="cont" v-html="commentDetail.works.text"></div>
  9789. </div>
  9790. <div
  9791. class="worksAnswer codeFileBox"
  9792. v-if="commentDetail.works && commentDetail.type == 12"
  9793. @click="downloadFile(commentDetail.works)"
  9794. >
  9795. <img src="../../assets/icon/codeFile.png" />
  9796. <div>点击下载文件</div>
  9797. </div>
  9798. <div
  9799. class="worksAnswer codeFileBox"
  9800. v-if="commentDetail.works && commentDetail.type == 15"
  9801. @click="
  9802. openCocoPi(
  9803. 57,
  9804. commentIndexJson.toolIndex,
  9805. commentDetail.userid,
  9806. commentDetail.sName
  9807. )
  9808. "
  9809. >
  9810. <img src="../../assets/icon/codeFile.png" />
  9811. <div>点击打开CocoPi</div>
  9812. </div>
  9813. <div
  9814. class="worksAnswer"
  9815. v-if="commentDetail.works && commentDetail.type == 13"
  9816. >
  9817. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9818. </div>
  9819. <div
  9820. class="worksAnswer"
  9821. v-if="commentDetail.works && commentDetail.type == 4"
  9822. >
  9823. <div class="evalCss">
  9824. <div class="nav">请选择星星进行评分</div>
  9825. <div class="middleBox" v-if="eScore.eStar">
  9826. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9827. <div class="nameAndrate">
  9828. <div>{{ e.value }}</div>
  9829. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9830. </div>
  9831. <div v-if="e.detail">{{ e.detail }}</div>
  9832. </div>
  9833. <div class="bz">
  9834. <textarea
  9835. disabled
  9836. rows="4"
  9837. class="pj"
  9838. style="
  9839. padding: 10px 5px;
  9840. width: 70%;
  9841. background: #f7f6f9;
  9842. font-size: 14px;
  9843. text-indent: 10px;
  9844. color: #000;
  9845. "
  9846. cols
  9847. v-model="eScore.eBzText"
  9848. placeholder="请输入评价内容..."
  9849. ></textarea>
  9850. </div>
  9851. </div>
  9852. </div>
  9853. </div>
  9854. <div class="comment">
  9855. <div class="commentList">
  9856. <div class="commentImg">
  9857. <img
  9858. @click="
  9859. isLikes(
  9860. commentDetail.wid,
  9861. userid,
  9862. 1,
  9863. null,
  9864. commentDetail.isLikes,
  9865. commentDetail.sName
  9866. )
  9867. "
  9868. :src="commentDetail.isLikes == true ? likes : noLikes"
  9869. alt=""
  9870. />
  9871. </div>
  9872. <div>{{ commentDetail.likesCount }}</div>
  9873. </div>
  9874. <div class="commentList">
  9875. <div class="commentImg">
  9876. <img src="../../assets/icon/comment/comment.png" alt="" />
  9877. </div>
  9878. <div>{{ commentDetail.commentCount }}</div>
  9879. </div>
  9880. </div>
  9881. <div class="drawPBox" v-if="commentDetail.img">
  9882. <span>教师批注</span>
  9883. <img
  9884. :src="commentDetail.img"
  9885. alt=""
  9886. @click="previewImg(commentDetail.img)"
  9887. />
  9888. <span
  9889. class="deleteImg"
  9890. v-if="tType == 1 || tType == 4"
  9891. @click.stop="deletePicturePaint(commentDetail.wid)"
  9892. style="
  9893. font-size: 14px;
  9894. width: auto !important;
  9895. color: #b4b4b4;
  9896. top: unset;
  9897. bottom: 0;
  9898. border: none;
  9899. padding: 0;
  9900. height: auto !important;
  9901. margin: 0;
  9902. "
  9903. >删除</span
  9904. >
  9905. </div>
  9906. </div>
  9907. <div class="commentBox">
  9908. <div class="pl">评论:</div>
  9909. <div style="max-height: 200px; overflow: auto">
  9910. <div
  9911. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9912. style="padding: 10px 0 0 0"
  9913. >
  9914. <div
  9915. class="studentDetail"
  9916. style="padding-top: 10px"
  9917. v-for="(co, coIndex) in commentDetail.commentJson"
  9918. :key="coIndex"
  9919. >
  9920. <div class="tx" style="min-width: 50px">
  9921. <img src="../../assets/avatar.png" alt="" />
  9922. </div>
  9923. <div class="plPerson">
  9924. <div class="plName">
  9925. <div>{{ co.commentPeople }}</div>
  9926. <div style="margin-left: 5px">
  9927. {{ co.commentTime }}
  9928. </div>
  9929. <div
  9930. class="deleteComment"
  9931. v-if="userid == co.userid"
  9932. @click="deleteComment(co.wid)"
  9933. >
  9934. 删除
  9935. </div>
  9936. </div>
  9937. <div class="plContent">{{ co.commentText }}</div>
  9938. </div>
  9939. </div>
  9940. </div>
  9941. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9942. </div>
  9943. </div>
  9944. <div style="margin-top: 10px">
  9945. <div class="displayBox">
  9946. <div
  9947. style="
  9948. color: #556db4;
  9949. font-size: 14px;
  9950. font-weight: bold;
  9951. padding-bottom: 10px;
  9952. "
  9953. >
  9954. 评价
  9955. </div>
  9956. <div class="easy_comment" v-if="false">
  9957. <div
  9958. v-for="(p, pIndex) in PlTextList"
  9959. :key="pIndex"
  9960. @click="fastText(p, 1)"
  9961. >
  9962. {{ p }}
  9963. </div>
  9964. </div>
  9965. </div>
  9966. <div>
  9967. <textarea
  9968. rows="3"
  9969. class="pj"
  9970. style="padding: 10px 5px"
  9971. cols
  9972. v-model="commentText"
  9973. placeholder="请输入评论"
  9974. ></textarea>
  9975. </div>
  9976. </div>
  9977. <div slot="footer">
  9978. <el-button
  9979. @click="
  9980. (commentDialogVisible = false),
  9981. (commentIndexJson = {}),
  9982. videoDetail.sources && videoDetail.sources[0]
  9983. ? (videoDetail.sources[0].src = '')
  9984. : ''
  9985. "
  9986. >取 消</el-button
  9987. >
  9988. <el-button
  9989. type="primary"
  9990. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9991. >确 定</el-button
  9992. >
  9993. </div>
  9994. </el-dialog>
  9995. <el-dialog
  9996. title="查看文档"
  9997. :visible.sync="fullDialogVisible"
  9998. :append-to-body="true"
  9999. width="100%"
  10000. :before-close="handleClose"
  10001. :show-close="false"
  10002. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10003. >
  10004. <div slot="title" class="header-title">
  10005. <div style="color: #fff">查看文档</div>
  10006. <div
  10007. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10008. style="
  10009. cursor: pointer;
  10010. position: absolute;
  10011. top: 20px;
  10012. right: 20px;
  10013. color: #fff;
  10014. "
  10015. >
  10016. 退出全屏
  10017. </div>
  10018. </div>
  10019. <div style="height: 100%;position: relative;">
  10020. <el-button
  10021. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10022. size="medium"
  10023. type="primary"
  10024. @click="
  10025. () => {
  10026. (fullDialogVisible = false),
  10027. changeSplitScreenBehavior({ code: 99 });
  10028. }
  10029. "
  10030. style="
  10031. cursor: pointer;
  10032. position: absolute;
  10033. top: 10px;
  10034. right: 20px;
  10035. color: #fff;
  10036. "
  10037. >
  10038. 退出全屏
  10039. </el-button>
  10040. <div
  10041. class="wheel"
  10042. v-if="
  10043. fulltype == 2 &&
  10044. fullUrl.indexOf(
  10045. 'https://view.officeapps.live.com/op/view.aspx?src='
  10046. ) != -1
  10047. "
  10048. style="width: 100%;height:100%; margin: 0 auto"
  10049. >
  10050. <iframe
  10051. style="width: 100%; height: 100%; border: none"
  10052. :src="fullUrl"
  10053. ></iframe>
  10054. </div>
  10055. <iframe
  10056. v-else-if="fulltype == 2"
  10057. style="width: 100%; height: 100%; border: none"
  10058. :src="fullUrl"
  10059. security="restricted"
  10060. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10061. ></iframe>
  10062. <pdf
  10063. v-else-if="fulltype == 3"
  10064. :pdfUrl="fullUrl"
  10065. style="width: 100%; height: 100%; overflow: auto"
  10066. ></pdf>
  10067. <div
  10068. class="wheel"
  10069. v-if="fulltype == 1"
  10070. style="
  10071. box-shadow: 0 0 6px 1px #f2f2f2;
  10072. height:100%;
  10073. width: 100%;
  10074. background: #f1f1f1;
  10075. "
  10076. >
  10077. <div class="title" style="width: 100%; box-sizing: border-box">
  10078. 查看文档
  10079. </div>
  10080. <el-form class="textBox" style="height: 90%">
  10081. <el-form-item class="textTitle">
  10082. <div style="font-size: 22px">
  10083. {{ fullUrl.name }}
  10084. </div>
  10085. </el-form-item>
  10086. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10087. <div
  10088. v-html="fullUrl.url"
  10089. class="textContent"
  10090. style="height: auto"
  10091. ></div>
  10092. </el-form>
  10093. </div>
  10094. </div>
  10095. <!-- <div slot="footer">
  10096. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10097. </div> -->
  10098. </el-dialog>
  10099. <el-dialog
  10100. title="个人评价"
  10101. :visible.sync="studentEvalDialogVisible"
  10102. :append-to-body="true"
  10103. width="800px"
  10104. :before-close="handleClose"
  10105. class="dialog_diy"
  10106. >
  10107. <div class="evalCss">
  10108. <div class="nav">请选择星星进行评分</div>
  10109. <div class="middleBox" v-if="eScore.eStar">
  10110. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10111. <div class="nameAndrate">
  10112. <div>{{ e.value }}</div>
  10113. <el-rate
  10114. v-model="eScore.eStar[eIndex]"
  10115. :disabled="isStar"
  10116. ></el-rate>
  10117. </div>
  10118. <div v-if="e.detail">{{ e.detail }}</div>
  10119. </div>
  10120. <div class="easy_comment" v-if="false">
  10121. <div
  10122. v-for="(p, pIndex) in PlTextList"
  10123. :key="pIndex"
  10124. @click="fastText(p, 2)"
  10125. >
  10126. {{ p }}
  10127. </div>
  10128. </div>
  10129. <div class="bz">
  10130. <textarea
  10131. :disabled="isStar"
  10132. rows="4"
  10133. class="pj"
  10134. style="
  10135. padding: 10px 5px;
  10136. width: 70%;
  10137. background: #f7f6f9;
  10138. font-size: 14px;
  10139. text-indent: 10px;
  10140. "
  10141. cols
  10142. v-model="eScore.eBzText"
  10143. placeholder="请输入评价内容..."
  10144. ></textarea>
  10145. </div>
  10146. </div>
  10147. </div>
  10148. <div slot="footer">
  10149. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10150. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10151. >确 定</el-button
  10152. >
  10153. </div>
  10154. </el-dialog>
  10155. <el-dialog
  10156. title="个人评价"
  10157. :visible.sync="studentEvalDialogVisibleTeacher"
  10158. :append-to-body="true"
  10159. width="800px"
  10160. :before-close="handleClose"
  10161. class="dialog_diy"
  10162. >
  10163. <div class="w_name">
  10164. 学生姓名:<span>{{ sStudent.student }}</span>
  10165. </div>
  10166. <div class="evalCss">
  10167. <div class="nav">请选择星星进行评分</div>
  10168. <div class="middleBox" v-if="eScore.eStar">
  10169. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10170. <div class="nameAndrate">
  10171. <div>{{ e.value }}</div>
  10172. <el-rate
  10173. v-model="eScore.eStar[eIndex]"
  10174. :disabled="isStar"
  10175. ></el-rate>
  10176. </div>
  10177. <div v-if="e.detail">{{ e.detail }}</div>
  10178. </div>
  10179. <div class="easy_comment" v-if="false">
  10180. <div
  10181. v-for="(p, pIndex) in PlTextList"
  10182. :key="pIndex"
  10183. @click="fastText(p, 2)"
  10184. >
  10185. {{ p }}
  10186. </div>
  10187. </div>
  10188. <div class="bz">
  10189. <textarea
  10190. :disabled="isStar"
  10191. rows="4"
  10192. class="pj"
  10193. style="
  10194. padding: 10px 5px;
  10195. width: 70%;
  10196. background: #f7f6f9;
  10197. font-size: 14px;
  10198. text-indent: 10px;
  10199. "
  10200. cols
  10201. v-model="eScore.eBzText"
  10202. placeholder="请输入评价内容..."
  10203. ></textarea>
  10204. </div>
  10205. </div>
  10206. </div>
  10207. <div slot="footer">
  10208. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10209. >取 消</el-button
  10210. >
  10211. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10212. >确 定</el-button
  10213. >
  10214. </div>
  10215. </el-dialog>
  10216. <el-dialog
  10217. title="选择匹配"
  10218. :visible.sync="dialogVisibleSelect"
  10219. :append-to-body="true"
  10220. width="90%"
  10221. :before-close="handleClose"
  10222. class="dialog_diy dialog_diy3"
  10223. >
  10224. <div v-if="selectJson">
  10225. <div class="select_box2">
  10226. <div class="select_box2_title">
  10227. <div>选择匹配</div>
  10228. <div>请选择对应的答案进行答题!</div>
  10229. </div>
  10230. <div class="select_box2_box">
  10231. <div class="select_box2_img">
  10232. <img
  10233. :src="selectJson.url"
  10234. @click="previewImg(selectJson.url)"
  10235. alt=""
  10236. />
  10237. </div>
  10238. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10239. <div style="padding-top: 15px">
  10240. <div class="select_answer_title" v-if="isSelect">
  10241. {{ selectAnswer.stu }}
  10242. </div>
  10243. <div class="select_answer_title" v-else>
  10244. 根据题目选择对应答案
  10245. </div>
  10246. <div
  10247. class="select_box2_answer_box"
  10248. v-for="(item2, checkIndex) in selectJson.select"
  10249. :key="checkIndex"
  10250. >
  10251. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10252. <el-select
  10253. :disabled="isSelect"
  10254. v-model="selectAnswer.answer[checkIndex]"
  10255. placeholder="请选择正确答案"
  10256. >
  10257. <el-option
  10258. v-for="(e, eIndex) in selectJson.select"
  10259. :key="eIndex"
  10260. :label="e"
  10261. :value="eIndex"
  10262. >
  10263. </el-option>
  10264. </el-select>
  10265. </div>
  10266. </div>
  10267. <div
  10268. class="rightAnswerCss"
  10269. v-if="isSelect && (tType == 1 || tType == 4)"
  10270. >
  10271. <div
  10272. v-for="(a, aIndex) in selectJson.answer"
  10273. :key="aIndex"
  10274. class="rightAnswer"
  10275. >
  10276. <div
  10277. v-if="selectAnswer.answer[aIndex] === a"
  10278. style="color: #767de1"
  10279. >
  10280. 回答正确
  10281. </div>
  10282. <div v-else>回答错误</div>
  10283. <div
  10284. style="margin-left: 10px"
  10285. v-if="selectAnswer.answer[aIndex] !== a"
  10286. >
  10287. 正确答案:
  10288. </div>
  10289. <div
  10290. :class="
  10291. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10292. "
  10293. >
  10294. {{ selectJson.select[a] }}
  10295. </div>
  10296. </div>
  10297. </div>
  10298. </div>
  10299. <div class="upAnswerCss">
  10300. <el-button
  10301. type="primary"
  10302. @click="addSelectAnswer"
  10303. v-if="!isSelect"
  10304. >提交答案</el-button
  10305. >
  10306. </div>
  10307. </div>
  10308. </div>
  10309. </div>
  10310. </el-dialog>
  10311. <el-dialog
  10312. title="选择匹配"
  10313. :visible.sync="dialogVisibleSelectTeacher"
  10314. :append-to-body="true"
  10315. width="90%"
  10316. :before-close="handleClose"
  10317. class="dialog_diy dialog_diy3"
  10318. >
  10319. <div v-if="selectJson">
  10320. <div class="w_name">
  10321. 学生姓名:<span>{{ sStudent.student }}</span>
  10322. </div>
  10323. <div class="select_box2">
  10324. <div class="select_box2_title">
  10325. <div>选择匹配</div>
  10326. <div>请选择对应的答案进行答题!</div>
  10327. </div>
  10328. <div class="select_box2_box">
  10329. <div class="select_box2_img">
  10330. <img
  10331. :src="selectJson.url"
  10332. @click="previewImg(selectJson.url)"
  10333. alt=""
  10334. />
  10335. </div>
  10336. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10337. <div style="padding-top: 15px">
  10338. <div class="select_answer_title" v-if="isSelect">
  10339. {{ selectAnswer.stu }}
  10340. </div>
  10341. <div class="select_answer_title" v-else>
  10342. 根据题目选择对应答案
  10343. </div>
  10344. <div
  10345. class="select_box2_answer_box"
  10346. v-for="(item2, checkIndex) in selectJson.select"
  10347. :key="checkIndex"
  10348. >
  10349. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10350. <el-select
  10351. :disabled="isSelect"
  10352. v-model="selectAnswer.answer[checkIndex]"
  10353. placeholder="请选择正确答案"
  10354. >
  10355. <el-option
  10356. v-for="(e, eIndex) in selectJson.select"
  10357. :key="eIndex"
  10358. :label="e"
  10359. :value="eIndex"
  10360. >
  10361. </el-option>
  10362. </el-select>
  10363. </div>
  10364. </div>
  10365. <div
  10366. class="rightAnswerCss"
  10367. v-if="isSelect && (tType == 1 || tType == 4)"
  10368. >
  10369. <div
  10370. v-for="(a, aIndex) in selectJson.answer"
  10371. :key="aIndex"
  10372. class="rightAnswer"
  10373. >
  10374. <div
  10375. v-if="selectAnswer.answer[aIndex] === a"
  10376. style="color: #767de1"
  10377. >
  10378. 回答正确
  10379. </div>
  10380. <div v-else>回答错误</div>
  10381. <div
  10382. style="margin-left: 10px"
  10383. v-if="selectAnswer.answer[aIndex] !== a"
  10384. >
  10385. 正确答案:
  10386. </div>
  10387. <div
  10388. :class="
  10389. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10390. "
  10391. >
  10392. {{ selectJson.select[a] }}
  10393. </div>
  10394. </div>
  10395. </div>
  10396. </div>
  10397. <div class="upAnswerCss">
  10398. <el-button
  10399. type="primary"
  10400. @click="addSelectAnswerTeacher"
  10401. v-if="!isSelect"
  10402. >提交答案</el-button
  10403. >
  10404. </div>
  10405. </div>
  10406. </div>
  10407. </div>
  10408. </el-dialog>
  10409. <el-dialog
  10410. title="教师评分"
  10411. :visible.sync="dialogVisibleScore"
  10412. :append-to-body="true"
  10413. width="800px"
  10414. :before-close="handleClose"
  10415. class="dialog_diy"
  10416. >
  10417. <div>
  10418. <div class="studentDetail">
  10419. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10420. <div class="nameAndTime">
  10421. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10422. <div>{{ commentDetail.time }}</div>
  10423. </div>
  10424. </div>
  10425. <div
  10426. class="worksAnswer"
  10427. v-if="commentDetail.works && commentDetail.type == 2"
  10428. >
  10429. {{ JSON.parse(commentDetail.works)[0].answer }}
  10430. </div>
  10431. <div
  10432. class="worksAnswer"
  10433. v-if="commentDetail.works && commentDetail.type == 1"
  10434. >
  10435. <pdf
  10436. v-if="showPDF"
  10437. :pdfUrl="pptImgUrl"
  10438. style="width: 100%; height: 520px; overflow: auto"
  10439. :class="{ fullStyle: full }"
  10440. ></pdf>
  10441. <iframe
  10442. v-else
  10443. :src="pptImgUrl"
  10444. frameborder="0"
  10445. width="100%"
  10446. height="600"
  10447. :class="{ fullStyle: full }"
  10448. ></iframe>
  10449. </div>
  10450. <div
  10451. class="worksAnswer"
  10452. v-if="commentDetail.works && commentDetail.type == 0"
  10453. >
  10454. <img
  10455. :src="commentDetail.works"
  10456. alt=""
  10457. @click="previewImg(commentDetail.works)"
  10458. />
  10459. </div>
  10460. <div
  10461. class="worksAnswer"
  10462. v-if="commentDetail.works && commentDetail.type == 3"
  10463. >
  10464. <video-player
  10465. class="video-player vjs-custom-skin"
  10466. :playsinline="true"
  10467. :options="videoDetail"
  10468. @play="onPlayerPlay($event)"
  10469. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10470. ></video-player>
  10471. </div>
  10472. <div
  10473. class="worksAnswer codeFileBox"
  10474. v-if="commentDetail.works && commentDetail.type == 12"
  10475. @click="downloadFile(commentDetail.works)"
  10476. >
  10477. <img src="../../assets/icon/codeFile.png" />
  10478. <div>点击下载文件</div>
  10479. </div>
  10480. <div
  10481. class="worksAnswer codeFileBox"
  10482. v-if="commentDetail.works && commentDetail.type == 15"
  10483. @click="
  10484. openCocoPi(
  10485. 57,
  10486. commentIndexJson.toolIndex,
  10487. commentDetail.userid,
  10488. commentDetail.sName
  10489. )
  10490. "
  10491. >
  10492. <img src="../../assets/icon/codeFile.png" />
  10493. <div>点击打开CocoPi</div>
  10494. </div>
  10495. <div
  10496. class="worksAnswer"
  10497. v-if="commentDetail.works && commentDetail.type == 13"
  10498. >
  10499. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10500. </div>
  10501. <div class="scoreBox">
  10502. <span class="t">请输入分数</span>
  10503. <el-input-number
  10504. :disabled="courseDetail.userid != userid"
  10505. v-model="wScore"
  10506. :controls="false"
  10507. :min="0"
  10508. :max="100"
  10509. ></el-input-number>
  10510. </div>
  10511. <div class="scoreDetailBox">
  10512. <span class="t">评分评论</span>
  10513. <el-input
  10514. type="textarea"
  10515. :rows="5"
  10516. :disabled="courseDetail.userid != userid"
  10517. resize="none"
  10518. v-model="scoreDetail"
  10519. placeholder="请输入对学生的评价"
  10520. >
  10521. </el-input>
  10522. </div>
  10523. </div>
  10524. <span slot="footer" class="dialog-footer">
  10525. <el-button
  10526. @click="
  10527. (dialogVisibleScore = false),
  10528. (commentIndexJson = {}),
  10529. videoDetail.sources && videoDetail.sources[0]
  10530. ? (videoDetail.sources[0].src = '')
  10531. : ''
  10532. "
  10533. >取 消</el-button
  10534. >
  10535. <el-button
  10536. type="primary"
  10537. v-if="courseDetail.userid == userid"
  10538. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10539. >确 定
  10540. </el-button>
  10541. </span>
  10542. </el-dialog>
  10543. <el-dialog
  10544. title="排序"
  10545. :visible.sync="dialogVisibleSentence"
  10546. :append-to-body="true"
  10547. width="1000px"
  10548. :before-close="handleClose"
  10549. class="dialog_diy dialog_diy3"
  10550. >
  10551. <div>
  10552. <div class="sentenBox">
  10553. <div
  10554. v-for="(st, stIndex) in sentenceList"
  10555. :key="stIndex"
  10556. style="padding-bottom: 20px"
  10557. >
  10558. <div
  10559. style="padding: 15px 0 10px 20px"
  10560. class="sentenceTitle"
  10561. :index="stIndex + 1"
  10562. >
  10563. 题目{{ stIndex + 1 }}:请选择正确顺序
  10564. </div>
  10565. <div class="cardList" v-if="st.chooseSenList">
  10566. <div class="cardBox">
  10567. <div
  10568. v-for="(r, rIndex) in st.chooseSenList"
  10569. :key="rIndex"
  10570. @click="returnCard(r, stIndex, rIndex)"
  10571. >
  10572. <el-tooltip
  10573. class="item"
  10574. effect="light"
  10575. :content="r"
  10576. placement="top"
  10577. v-if="r != '' && r != undefined"
  10578. >
  10579. <div
  10580. :class="{
  10581. isCard: r,
  10582. isChooseCard: r == '' || r == undefined,
  10583. }"
  10584. >
  10585. <div>{{ r }}</div>
  10586. </div>
  10587. </el-tooltip>
  10588. <div
  10589. :class="{
  10590. isCard: r,
  10591. isChooseCard: r == '' || r == undefined,
  10592. }"
  10593. v-else
  10594. >
  10595. <div>{{ r }}</div>
  10596. </div>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. <div class="cardList" v-if="st.addChangeSen">
  10601. <div class="cardBox">
  10602. <div
  10603. v-for="(s, sIndex) in st.addChangeSen"
  10604. :key="sIndex"
  10605. @click="setRightAnswer(s, stIndex, sIndex)"
  10606. >
  10607. <el-tooltip
  10608. class="item"
  10609. effect="light"
  10610. :content="s"
  10611. placement="top"
  10612. v-if="s != '' && s != undefined"
  10613. >
  10614. <div
  10615. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10616. >
  10617. <div>{{ s }}</div>
  10618. </div>
  10619. </el-tooltip>
  10620. <div
  10621. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10622. v-else
  10623. >
  10624. <div>{{ s }}</div>
  10625. </div>
  10626. </div>
  10627. </div>
  10628. </div>
  10629. </div>
  10630. </div>
  10631. </div>
  10632. <span slot="footer" class="dialog-footer">
  10633. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10634. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10635. </span>
  10636. </el-dialog>
  10637. <el-dialog
  10638. title="排序"
  10639. :visible.sync="dialogVisibleSentenceTeacher"
  10640. :append-to-body="true"
  10641. width="1000px"
  10642. :before-close="handleClose"
  10643. class="dialog_diy dialog_diy3"
  10644. >
  10645. <div>
  10646. <div class="w_name">
  10647. 学生姓名:<span>{{ sStudent.student }}</span>
  10648. </div>
  10649. <div class="sentenBox">
  10650. <div
  10651. v-for="(st, stIndex) in sentenceList"
  10652. :key="stIndex"
  10653. style="padding-bottom: 20px"
  10654. >
  10655. <div
  10656. style="padding: 15px 0 10px 20px"
  10657. class="sentenceTitle"
  10658. :index="stIndex + 1"
  10659. >
  10660. 题目{{ stIndex + 1 }}:请选择正确顺序
  10661. </div>
  10662. <div class="cardList" v-if="st.chooseSenList">
  10663. <div class="cardBox">
  10664. <div
  10665. v-for="(r, rIndex) in st.chooseSenList"
  10666. :key="rIndex"
  10667. @click="returnCard(r, stIndex, rIndex)"
  10668. >
  10669. <el-tooltip
  10670. class="item"
  10671. effect="light"
  10672. :content="r"
  10673. placement="top"
  10674. v-if="r != '' && r != undefined"
  10675. >
  10676. <div
  10677. :class="{
  10678. isCard: r,
  10679. isChooseCard: r == '' || r == undefined,
  10680. }"
  10681. >
  10682. <div>{{ r }}</div>
  10683. </div>
  10684. </el-tooltip>
  10685. <div
  10686. :class="{
  10687. isCard: r,
  10688. isChooseCard: r == '' || r == undefined,
  10689. }"
  10690. v-else
  10691. >
  10692. <div>{{ r }}</div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. </div>
  10697. <div class="cardList" v-if="st.addChangeSen">
  10698. <div class="cardBox">
  10699. <div
  10700. v-for="(s, sIndex) in st.addChangeSen"
  10701. :key="sIndex"
  10702. @click="setRightAnswer(s, stIndex, sIndex)"
  10703. >
  10704. <el-tooltip
  10705. class="item"
  10706. effect="light"
  10707. :content="s"
  10708. placement="top"
  10709. v-if="s != '' && s != undefined"
  10710. >
  10711. <div
  10712. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10713. >
  10714. <div>{{ s }}</div>
  10715. </div>
  10716. </el-tooltip>
  10717. <div
  10718. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10719. v-else
  10720. >
  10721. <div>{{ s }}</div>
  10722. </div>
  10723. </div>
  10724. </div>
  10725. </div>
  10726. </div>
  10727. </div>
  10728. </div>
  10729. <span slot="footer" class="dialog-footer">
  10730. <el-button @click="dialogVisibleSentenceTeacher = false"
  10731. >取 消</el-button
  10732. >
  10733. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10734. </span>
  10735. </el-dialog>
  10736. <el-dialog
  10737. title="排序"
  10738. :visible.sync="dialogVisibleSentence1"
  10739. :append-to-body="true"
  10740. width="1000px"
  10741. :before-close="handleClose"
  10742. class="dialog_diy dialog_diy3"
  10743. >
  10744. <div>
  10745. <div class="sentenBox">
  10746. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10747. {{ sentenceList1.stuName }}的作业
  10748. </div>
  10749. <div
  10750. v-for="(st, stIndex) in sentenceList1"
  10751. :key="stIndex"
  10752. style="padding-bottom: 20px"
  10753. >
  10754. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10755. 第{{ stIndex + 1 }}题
  10756. </div>
  10757. <div class="isWrong">
  10758. <div class="cardList1" v-if="st.chooseSenList">
  10759. <div class="cardBox">
  10760. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10761. <el-tooltip
  10762. class="item"
  10763. effect="light"
  10764. :content="s"
  10765. placement="top"
  10766. >
  10767. <div class="isCard">
  10768. <div>{{ s }}</div>
  10769. </div>
  10770. </el-tooltip>
  10771. </div>
  10772. </div>
  10773. <div class="cardAnswerBox">
  10774. 组成句子:{{ st.chooseSenList.join(" ") }}
  10775. </div>
  10776. </div>
  10777. <div v-if="tType == 2" class="isTj">
  10778. <div class="isTjImg">
  10779. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10780. </div>
  10781. <div>已提交</div>
  10782. </div>
  10783. <div
  10784. class="answerRight isTj"
  10785. v-if="
  10786. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10787. (tType == 1 || tType == 4)
  10788. "
  10789. >
  10790. <div class="isTjImg">
  10791. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10792. </div>
  10793. <div>回答正确</div>
  10794. </div>
  10795. <div
  10796. class="answerRight isTj"
  10797. v-if="
  10798. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10799. (tType == 1 || tType == 4)
  10800. "
  10801. >
  10802. <div class="isTjImg">
  10803. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10804. </div>
  10805. <div>回答错误</div>
  10806. </div>
  10807. </div>
  10808. <div
  10809. v-if="
  10810. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10811. (tType == 1 || tType == 4)
  10812. "
  10813. >
  10814. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10815. <div
  10816. class="cardList"
  10817. v-if="st.rightAnswer"
  10818. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10819. >
  10820. <div class="cardBox">
  10821. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10822. <el-tooltip
  10823. class="item"
  10824. effect="light"
  10825. :content="r"
  10826. placement="top"
  10827. >
  10828. <div class="isCard1">
  10829. <div>{{ r }}</div>
  10830. </div>
  10831. </el-tooltip>
  10832. </div>
  10833. </div>
  10834. <div class="cardAnswerBox">
  10835. 组成句子:{{ st.rightAnswer.join(" ") }}
  10836. </div>
  10837. </div>
  10838. </div>
  10839. </div>
  10840. </div>
  10841. </div>
  10842. <span slot="footer" class="dialog-footer">
  10843. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10844. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10845. >确 定</el-button
  10846. >
  10847. </span>
  10848. </el-dialog>
  10849. <el-dialog
  10850. title="教师提交作业"
  10851. :visible.sync="dialogVisibleWorks"
  10852. :append-to-body="true"
  10853. width="500px"
  10854. :before-close="handleClose"
  10855. class="dialog_change"
  10856. >
  10857. <div class="marginT">
  10858. <div class="w_name">
  10859. 学生姓名:<span>{{ sStudent.student }}</span>
  10860. </div>
  10861. <div>上传文件</div>
  10862. <div
  10863. class="chapter_add"
  10864. @click="addImg($event)"
  10865. v-if="studyJuri[0].cover.length == 0"
  10866. >
  10867. <div class="up_photo">
  10868. <img src="../../assets/uploadImg2.png" alt />
  10869. </div>
  10870. <!-- <input
  10871. type="file"
  10872. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10873. style="display: none"
  10874. @change="beforeUpload1($event, 1)"
  10875. /> -->
  10876. <input
  10877. type="file"
  10878. accept="*"
  10879. style="display: none"
  10880. @change="beforeUpload1($event, 1)"
  10881. />
  10882. </div>
  10883. <!-- capture="camera" -->
  10884. <div
  10885. class="chapter_add"
  10886. style="
  10887. display: flex;
  10888. width: 100%;
  10889. flex-direction: row;
  10890. flex-wrap: wrap;
  10891. justify-content: flex-start;
  10892. padding: 15px 0;
  10893. "
  10894. v-if="studyJuri[0].cover.length > 0"
  10895. >
  10896. <div class="upCover">
  10897. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10898. <img :src="word" alt v-else-if="fileType == 1" />
  10899. <img :src="video" alt v-else-if="fileType == 2" />
  10900. <img :src="word2" alt v-else-if="fileType == 3" />
  10901. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10902. <div class="deleteWord" @click="clean(1)">
  10903. <img src="../../assets/icon/deleteWorks.png" alt />
  10904. </div>
  10905. </div>
  10906. </div>
  10907. </div>
  10908. <div
  10909. class="upload_send"
  10910. @click="addCourseWorksTeacher(taskCount)"
  10911. v-if="!proVisible"
  10912. >
  10913. 提交
  10914. </div>
  10915. </el-dialog>
  10916. <ImgDraw
  10917. :drawShow="drawShow"
  10918. @closeDraw="closeDraw"
  10919. @addImgDraw="addImgDraw"
  10920. :bg="bg"
  10921. ></ImgDraw>
  10922. <el-dialog
  10923. title="表格"
  10924. :visible.sync="dialogVisibleTable"
  10925. :append-to-body="true"
  10926. width="95%"
  10927. :before-close="handleClose"
  10928. class="dialog_diy"
  10929. >
  10930. <el-form>
  10931. <div
  10932. style="
  10933. display: flex;
  10934. align-items: center;
  10935. justify-content: space-between;
  10936. "
  10937. >
  10938. <span>表格内容</span>
  10939. <el-button type="primary" size="small" @click="returnTableText"
  10940. >还原模板</el-button
  10941. >
  10942. </div>
  10943. <Table
  10944. v-model="tableJson.text"
  10945. @change="change"
  10946. v-if="dialogVisibleTable"
  10947. ></Table>
  10948. </el-form>
  10949. <span slot="footer" class="dialog-footer">
  10950. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10951. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10952. </span>
  10953. </el-dialog>
  10954. <el-dialog
  10955. title="表格"
  10956. :visible.sync="dialogVisibleTableTeacher"
  10957. :append-to-body="true"
  10958. width="95%"
  10959. :before-close="handleClose"
  10960. class="dialog_diy"
  10961. >
  10962. <el-form>
  10963. <div class="w_name">
  10964. 学生姓名:<span>{{ sStudent.student }}</span>
  10965. </div>
  10966. <div>表格内容</div>
  10967. <Table
  10968. v-model="tableJson.text"
  10969. @change="change"
  10970. v-if="dialogVisibleTableTeacher"
  10971. ></Table>
  10972. </el-form>
  10973. <span slot="footer" class="dialog-footer">
  10974. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10975. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10976. </span>
  10977. </el-dialog>
  10978. <el-dialog
  10979. title="文档"
  10980. :visible.sync="dialogVisibleWord"
  10981. :append-to-body="true"
  10982. width="95%"
  10983. :before-close="handleClose"
  10984. class="dialog_diy"
  10985. >
  10986. <el-form>
  10987. <div
  10988. style="
  10989. display: flex;
  10990. align-items: center;
  10991. justify-content: space-between;
  10992. "
  10993. >
  10994. <span>文档内容</span>
  10995. <el-button type="primary" size="small" @click="returnWordText"
  10996. >还原模板</el-button
  10997. >
  10998. </div>
  10999. <editor-bar
  11000. v-model="wordJson.text"
  11001. v-if="dialogVisibleWord"
  11002. ></editor-bar>
  11003. </el-form>
  11004. <span slot="footer" class="dialog-footer">
  11005. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11006. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11007. </span>
  11008. </el-dialog>
  11009. <el-dialog
  11010. title="文档"
  11011. :visible.sync="dialogVisibleWordTeacher"
  11012. :append-to-body="true"
  11013. width="95%"
  11014. :before-close="handleClose"
  11015. class="dialog_diy"
  11016. >
  11017. <el-form>
  11018. <div class="w_name">
  11019. 学生姓名:<span>{{ sStudent.student }}</span>
  11020. </div>
  11021. <div>文档内容</div>
  11022. <editor-bar
  11023. v-model="wordJson.text"
  11024. v-if="dialogVisibleWordTeacher"
  11025. ></editor-bar>
  11026. </el-form>
  11027. <span slot="footer" class="dialog-footer">
  11028. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11029. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11030. </span>
  11031. </el-dialog>
  11032. <el-dialog
  11033. title="表格"
  11034. :visible.sync="dialogVisibleTable2"
  11035. :append-to-body="true"
  11036. width="95%"
  11037. :before-close="handleClose"
  11038. class="dialog_diy"
  11039. >
  11040. <el-form>
  11041. <div class="cont" v-html="tableJson.text"></div>
  11042. </el-form>
  11043. <span slot="footer" class="dialog-footer">
  11044. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11045. </span>
  11046. </el-dialog>
  11047. <el-dialog
  11048. title="文档"
  11049. :visible.sync="dialogVisibleTable3"
  11050. :append-to-body="true"
  11051. width="95%"
  11052. :before-close="handleClose"
  11053. class="dialog_diy"
  11054. >
  11055. <el-form>
  11056. <div class="cont" v-html="tableJson.text"></div>
  11057. </el-form>
  11058. <span slot="footer" class="dialog-footer">
  11059. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11060. </span>
  11061. </el-dialog>
  11062. <el-dialog
  11063. title="分组设置"
  11064. :visible.sync="dialogVisibleGroup"
  11065. :append-to-body="true"
  11066. width="95%"
  11067. :before-close="handleClose"
  11068. class="dialog_diy"
  11069. >
  11070. <div v-if="dialogVisibleGroup">
  11071. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11072. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11073. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11074. </div>
  11075. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11076. @click="lockChair">
  11077. 锁定位置
  11078. </div>
  11079. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11080. 解锁位置
  11081. </div> -->
  11082. <div class="group_switch">
  11083. <span>开放选座</span>
  11084. <el-switch
  11085. v-model="islock"
  11086. active-text=""
  11087. class="switchCss"
  11088. @change="lockChair"
  11089. ></el-switch>
  11090. </div>
  11091. <div
  11092. type="primary"
  11093. @click="updateGroup"
  11094. class="returnBtn"
  11095. style="background-color: #225bc7"
  11096. >
  11097. 分组设置
  11098. </div>
  11099. </div>
  11100. <div>
  11101. <div
  11102. class="g_d_box"
  11103. v-if="groupJson.group && groupStudent[toolindex]"
  11104. >
  11105. <div
  11106. class="g_d_group"
  11107. v-for="(g, gindex) in groupJson.group"
  11108. :key="gindex"
  11109. >
  11110. <div class="g_d_group_chair">
  11111. <div v-if="groupJson.number > 1">
  11112. <span
  11113. :class="{
  11114. isChair:
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][0],
  11117. updateChair:
  11118. courseDetail.userid == userid &&
  11119. groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][0] &&
  11121. groupJson.islock == 2,
  11122. }"
  11123. ><span
  11124. class="updateChairBtn"
  11125. @click="
  11126. updateGroupChair(
  11127. groupStudent[toolindex][gindex] &&
  11128. groupStudent[toolindex][gindex][0]
  11129. )
  11130. "
  11131. >修改</span
  11132. ></span
  11133. ><span>{{
  11134. groupStudent[toolindex][gindex] &&
  11135. groupStudent[toolindex][gindex][0]
  11136. ? groupStudent[toolindex][gindex] &&
  11137. groupStudent[toolindex][gindex][0].name
  11138. : "空位置"
  11139. }}</span>
  11140. </div>
  11141. <div v-if="groupJson.number > 4">
  11142. <span
  11143. :class="{
  11144. isChair:
  11145. groupStudent[toolindex][gindex] &&
  11146. groupStudent[toolindex][gindex][4],
  11147. updateChair:
  11148. courseDetail.userid == userid &&
  11149. groupStudent[toolindex][gindex] &&
  11150. groupStudent[toolindex][gindex][4] &&
  11151. groupJson.islock == 2,
  11152. }"
  11153. ><span
  11154. class="updateChairBtn"
  11155. @click="
  11156. updateGroupChair(
  11157. groupStudent[toolindex][gindex] &&
  11158. groupStudent[toolindex][gindex][4]
  11159. )
  11160. "
  11161. >修改</span
  11162. ></span
  11163. ><span>{{
  11164. groupStudent[toolindex][gindex] &&
  11165. groupStudent[toolindex][gindex][4]
  11166. ? groupStudent[toolindex][gindex] &&
  11167. groupStudent[toolindex][gindex][4].name
  11168. : "空位置"
  11169. }}</span>
  11170. </div>
  11171. <div v-if="groupJson.number > 8">
  11172. <span
  11173. :class="{
  11174. isChair:
  11175. groupStudent[toolindex][gindex] &&
  11176. groupStudent[toolindex][gindex][8],
  11177. updateChair:
  11178. courseDetail.userid == userid &&
  11179. groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][8] &&
  11181. groupJson.islock == 2,
  11182. }"
  11183. ><span
  11184. class="updateChairBtn"
  11185. @click="
  11186. updateGroupChair(
  11187. groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][8]
  11189. )
  11190. "
  11191. >修改</span
  11192. ></span
  11193. ><span>{{
  11194. groupStudent[toolindex][gindex] &&
  11195. groupStudent[toolindex][gindex][8]
  11196. ? groupStudent[toolindex][gindex] &&
  11197. groupStudent[toolindex][gindex][8].name
  11198. : "空位置"
  11199. }}</span>
  11200. </div>
  11201. </div>
  11202. <div class="g_d_group_tableBox">
  11203. <div class="g_d_group_chair2">
  11204. <div v-if="groupJson.number > 2">
  11205. <span
  11206. :class="{
  11207. isChair:
  11208. groupStudent[toolindex][gindex] &&
  11209. groupStudent[toolindex][gindex][2],
  11210. updateChair:
  11211. courseDetail.userid == userid &&
  11212. groupStudent[toolindex][gindex] &&
  11213. groupStudent[toolindex][gindex][2] &&
  11214. groupJson.islock == 2,
  11215. }"
  11216. ><span
  11217. class="updateChairBtn"
  11218. @click="
  11219. updateGroupChair(
  11220. groupStudent[toolindex][gindex] &&
  11221. groupStudent[toolindex][gindex][2]
  11222. )
  11223. "
  11224. >修改</span
  11225. ></span
  11226. ><span>{{
  11227. groupStudent[toolindex][gindex] &&
  11228. groupStudent[toolindex][gindex][2]
  11229. ? groupStudent[toolindex][gindex] &&
  11230. groupStudent[toolindex][gindex][2].name
  11231. : "空位置"
  11232. }}</span>
  11233. </div>
  11234. <div v-if="groupJson.number > 6">
  11235. <span
  11236. :class="{
  11237. isChair:
  11238. groupStudent[toolindex][gindex] &&
  11239. groupStudent[toolindex][gindex][6],
  11240. updateChair:
  11241. courseDetail.userid == userid &&
  11242. groupStudent[toolindex][gindex] &&
  11243. groupStudent[toolindex][gindex][6] &&
  11244. groupJson.islock == 2,
  11245. }"
  11246. ><span
  11247. class="updateChairBtn"
  11248. @click="
  11249. updateGroupChair(
  11250. groupStudent[toolindex][gindex] &&
  11251. groupStudent[toolindex][gindex][6]
  11252. )
  11253. "
  11254. >修改</span
  11255. ></span
  11256. ><span>{{
  11257. groupStudent[toolindex][gindex] &&
  11258. groupStudent[toolindex][gindex][6]
  11259. ? groupStudent[toolindex][gindex] &&
  11260. groupStudent[toolindex][gindex][6].name
  11261. : "空位置"
  11262. }}</span>
  11263. </div>
  11264. </div>
  11265. <div class="g_d_group_table">
  11266. <div>
  11267. {{ g.name }}
  11268. </div>
  11269. <div>
  11270. <div
  11271. v-if="
  11272. courseDetail.userid == userid && groupJson.islock == 2
  11273. "
  11274. @click="deleteGroupChair(gindex)"
  11275. >
  11276. 移除组员
  11277. </div>
  11278. <div
  11279. @click="selectGroup(gindex)"
  11280. v-else-if="
  11281. groupStudentUid[toolindex] &&
  11282. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11283. "
  11284. >
  11285. 加入分组
  11286. </div>
  11287. <div
  11288. @click="
  11289. exitGroup(
  11290. groupStudent[toolindex][gindex] &&
  11291. groupStudent[toolindex][gindex][
  11292. groupStudentUid[toolindex][gindex].indexOf(userid)
  11293. ].id
  11294. )
  11295. "
  11296. v-else-if="
  11297. groupStudentUid[toolindex] &&
  11298. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11299. "
  11300. >
  11301. 退出分组
  11302. </div>
  11303. </div>
  11304. </div>
  11305. <div class="g_d_group_chair2">
  11306. <div v-if="groupJson.number > 3">
  11307. <span
  11308. :class="{
  11309. isChair:
  11310. groupStudent[toolindex][gindex] &&
  11311. groupStudent[toolindex][gindex][3],
  11312. updateChair:
  11313. courseDetail.userid == userid &&
  11314. groupStudent[toolindex][gindex] &&
  11315. groupStudent[toolindex][gindex][3] &&
  11316. groupJson.islock == 2,
  11317. }"
  11318. ><span
  11319. class="updateChairBtn"
  11320. @click="
  11321. updateGroupChair(
  11322. groupStudent[toolindex][gindex] &&
  11323. groupStudent[toolindex][gindex][3]
  11324. )
  11325. "
  11326. >修改</span
  11327. ></span
  11328. ><span>{{
  11329. groupStudent[toolindex][gindex] &&
  11330. groupStudent[toolindex][gindex][3]
  11331. ? groupStudent[toolindex][gindex] &&
  11332. groupStudent[toolindex][gindex][3].name
  11333. : "空位置"
  11334. }}</span>
  11335. </div>
  11336. <div v-if="groupJson.number > 7">
  11337. <span
  11338. :class="{
  11339. isChair:
  11340. groupStudent[toolindex][gindex] &&
  11341. groupStudent[toolindex][gindex][7],
  11342. updateChair:
  11343. courseDetail.userid == userid &&
  11344. groupStudent[toolindex][gindex] &&
  11345. groupStudent[toolindex][gindex][7] &&
  11346. groupJson.islock == 2,
  11347. }"
  11348. ><span
  11349. class="updateChairBtn"
  11350. @click="
  11351. updateGroupChair(
  11352. groupStudent[toolindex][gindex] &&
  11353. groupStudent[toolindex][gindex][7]
  11354. )
  11355. "
  11356. >修改</span
  11357. ></span
  11358. ><span>{{
  11359. groupStudent[toolindex][gindex] &&
  11360. groupStudent[toolindex][gindex][7]
  11361. ? groupStudent[toolindex][gindex] &&
  11362. groupStudent[toolindex][gindex][7].name
  11363. : "空位置"
  11364. }}</span>
  11365. </div>
  11366. </div>
  11367. </div>
  11368. <div class="g_d_group_chair">
  11369. <div v-if="groupJson.number > 1">
  11370. <span
  11371. :class="{
  11372. isChair:
  11373. groupStudent[toolindex][gindex] &&
  11374. groupStudent[toolindex][gindex][1],
  11375. updateChair:
  11376. courseDetail.userid == userid &&
  11377. groupStudent[toolindex][gindex] &&
  11378. groupStudent[toolindex][gindex][1] &&
  11379. groupJson.islock == 2,
  11380. }"
  11381. ><span
  11382. class="updateChairBtn"
  11383. @click="
  11384. updateGroupChair(
  11385. groupStudent[toolindex][gindex] &&
  11386. groupStudent[toolindex][gindex][1]
  11387. )
  11388. "
  11389. >修改</span
  11390. ></span
  11391. ><span>{{
  11392. groupStudent[toolindex][gindex] &&
  11393. groupStudent[toolindex][gindex][1]
  11394. ? groupStudent[toolindex][gindex] &&
  11395. groupStudent[toolindex][gindex][1].name
  11396. : "空位置"
  11397. }}</span>
  11398. </div>
  11399. <div v-if="groupJson.number > 5">
  11400. <span
  11401. :class="{
  11402. isChair:
  11403. groupStudent[toolindex][gindex] &&
  11404. groupStudent[toolindex][gindex][5],
  11405. updateChair:
  11406. courseDetail.userid == userid &&
  11407. groupStudent[toolindex][gindex] &&
  11408. groupStudent[toolindex][gindex][5] &&
  11409. groupJson.islock == 2,
  11410. }"
  11411. ><span
  11412. class="updateChairBtn"
  11413. @click="
  11414. updateGroupChair(
  11415. groupStudent[toolindex][gindex] &&
  11416. groupStudent[toolindex][gindex][5]
  11417. )
  11418. "
  11419. >修改</span
  11420. ></span
  11421. ><span>{{
  11422. groupStudent[toolindex][gindex] &&
  11423. groupStudent[toolindex][gindex][5]
  11424. ? groupStudent[toolindex][gindex] &&
  11425. groupStudent[toolindex][gindex][5].name
  11426. : "空位置"
  11427. }}</span>
  11428. </div>
  11429. <div v-if="groupJson.number > 9">
  11430. <span
  11431. :class="{
  11432. isChair:
  11433. groupStudent[toolindex][gindex] &&
  11434. groupStudent[toolindex][gindex][9],
  11435. updateChair:
  11436. courseDetail.userid == userid &&
  11437. groupStudent[toolindex][gindex] &&
  11438. groupStudent[toolindex][gindex][9] &&
  11439. groupJson.islock == 2,
  11440. }"
  11441. ><span
  11442. class="updateChairBtn"
  11443. @click="
  11444. updateGroupChair(
  11445. groupStudent[toolindex][gindex] &&
  11446. groupStudent[toolindex][gindex][9]
  11447. )
  11448. "
  11449. >修改</span
  11450. ></span
  11451. ><span>{{
  11452. groupStudent[toolindex][gindex] &&
  11453. groupStudent[toolindex][gindex][9]
  11454. ? groupStudent[toolindex][gindex] &&
  11455. groupStudent[toolindex][gindex][9].name
  11456. : "空位置"
  11457. }}</span>
  11458. </div>
  11459. </div>
  11460. </div>
  11461. </div>
  11462. </div>
  11463. </div>
  11464. <span slot="footer" class="dialog-footer">
  11465. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11466. </span>
  11467. </el-dialog>
  11468. <el-dialog
  11469. title="分组设置"
  11470. :visible.sync="dialogVisibleGroup2"
  11471. :append-to-body="true"
  11472. width="650px"
  11473. :before-close="handleClose"
  11474. class="dialog_diy"
  11475. >
  11476. <div class="groupBox">
  11477. <div v-if="groupJson2.group" class="groupContent">
  11478. <div class="groupTitle">请设置小组数量及名称</div>
  11479. <div
  11480. v-for="(item, index) in groupJson2.group"
  11481. :key="index"
  11482. class="groupName"
  11483. >
  11484. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11485. <el-input
  11486. v-model="item.name"
  11487. placeholder="请输入名称..."
  11488. style="width: 250px"
  11489. ></el-input>
  11490. <!-- <div class="groupBtn">
  11491. <el-button type="primary" size="small" @click="addGroup(index)">
  11492. 添加</el-button>
  11493. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11494. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11495. </div> -->
  11496. </div>
  11497. </div>
  11498. <div class="groupContent">
  11499. <div class="groupTitle">请设置每组人数</div>
  11500. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11501. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11502. <el-input
  11503. v-model="groupJson2.number"
  11504. style="width: 150px"
  11505. placeholder="请输入2-10的数字"
  11506. @change="numberPan"
  11507. ></el-input>
  11508. </div>
  11509. </div>
  11510. <span slot="footer" class="dialog-footer">
  11511. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11512. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11513. </span>
  11514. </el-dialog>
  11515. <el-dialog
  11516. title="作业提交"
  11517. :visible.sync="dialogVisibleGroupWork"
  11518. :append-to-body="true"
  11519. width="500px"
  11520. :before-close="handleClose"
  11521. class="dialog_change"
  11522. >
  11523. <div class="marginT">
  11524. <div>上传文件</div>
  11525. <div
  11526. class="chapter_add"
  11527. @click="addImg($event)"
  11528. v-if="studyJuri[0].cover.length == 0"
  11529. >
  11530. <div class="up_photo">
  11531. <img src="../../assets/icon/uploadImg.png" alt />
  11532. </div>
  11533. <!-- <input
  11534. type="file"
  11535. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11536. style="display: none"
  11537. @change="beforeUpload1($event, 1)"
  11538. /> -->
  11539. <input
  11540. type="file"
  11541. accept="*"
  11542. style="display: none"
  11543. @change="beforeUpload1($event, 1)"
  11544. />
  11545. </div>
  11546. <!-- capture="camera" -->
  11547. <div
  11548. class="chapter_add"
  11549. style="
  11550. display: flex;
  11551. width: 100%;
  11552. flex-direction: row;
  11553. flex-wrap: wrap;
  11554. justify-content: flex-start;
  11555. padding: 15px 0;
  11556. "
  11557. v-if="studyJuri[0].cover.length > 0"
  11558. >
  11559. <div class="upCover">
  11560. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11561. <img :src="word" alt v-else-if="fileType == 1" />
  11562. <img :src="video" alt v-else-if="fileType == 2" />
  11563. <img :src="word2" alt v-else-if="fileType == 3" />
  11564. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11565. <div class="deleteWord" @click="clean(1)">
  11566. <img src="../../assets/icon/deleteWorks.png" alt />
  11567. </div>
  11568. </div>
  11569. </div>
  11570. </div>
  11571. <div
  11572. class="upload_send"
  11573. @click="addCourseWorks2(taskCount)"
  11574. v-if="!proVisible"
  11575. >
  11576. 提交
  11577. </div>
  11578. </el-dialog>
  11579. <el-dialog
  11580. title="修改分组"
  11581. :visible.sync="dialogVisibleUpdateGroup"
  11582. :append-to-body="true"
  11583. width="350px"
  11584. :before-close="handleClose"
  11585. class="dialog_diy"
  11586. >
  11587. <div>
  11588. <h2>
  11589. {{ this.updateGroupUser.name }}
  11590. </h2>
  11591. <div style="color: rgb(171 171 171); margin-top: 10px">
  11592. 请选择要进入的分组
  11593. </div>
  11594. <el-radio-group v-model="checkChair">
  11595. <el-radio
  11596. style="display: block; margin-top: 20px"
  11597. v-for="(item, index) in updateGroupArray"
  11598. :label="item.label"
  11599. :key="index"
  11600. >{{ item.name }}</el-radio
  11601. >
  11602. </el-radio-group>
  11603. </div>
  11604. <span slot="footer" class="dialog-footer">
  11605. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11606. <el-button type="primary" @click="updateChair">确定</el-button>
  11607. </span>
  11608. </el-dialog>
  11609. <el-dialog
  11610. title="移除组员"
  11611. :visible.sync="dialogVisibleDeleteGroup"
  11612. :append-to-body="true"
  11613. width="350px"
  11614. :before-close="handleClose"
  11615. class="dialog_diy"
  11616. >
  11617. <div>
  11618. <h2>
  11619. {{ this.deleteGroupArray.name }}
  11620. </h2>
  11621. <div style="color: rgb(171 171 171); margin-top: 10px">
  11622. 请选择要删除的组员
  11623. </div>
  11624. <el-checkbox-group v-model="checkDeleteGroup">
  11625. <el-checkbox
  11626. style="display: flex; margin-top: 20px"
  11627. v-for="(item, index) in deleteGroupUser"
  11628. :label="item.userid"
  11629. :key="index"
  11630. >{{ item.name }}</el-checkbox
  11631. >
  11632. </el-checkbox-group>
  11633. </div>
  11634. <span slot="footer" class="dialog-footer">
  11635. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11636. <el-button type="primary" @click="deleteChair">确定</el-button>
  11637. </span>
  11638. </el-dialog>
  11639. <el-dialog
  11640. title="批量上传"
  11641. :visible.sync="dialogVisiblePl"
  11642. :append-to-body="true"
  11643. width="700px"
  11644. :before-close="handleClose"
  11645. class="dialog_change"
  11646. >
  11647. <div class="marginT">
  11648. <div class="plworkBox">
  11649. <div
  11650. class="chapter_add"
  11651. style="
  11652. display: flex;
  11653. width: 150px;
  11654. flex-direction: row;
  11655. flex-wrap: wrap;
  11656. justify-content: flex-start;
  11657. margin: 0 10px 10px 0;
  11658. "
  11659. v-for="(item, index) in plworkFile"
  11660. :key="index"
  11661. >
  11662. <div class="upCover2">
  11663. <img
  11664. :src="item.url"
  11665. alt
  11666. v-if="item.fileType == 1"
  11667. @click="previewImg(item.url)"
  11668. />
  11669. <img :src="word" alt v-else-if="item.fileType == 4" />
  11670. <img :src="video" alt v-else />
  11671. <!-- <span class="picName">{{ item.name }}</span> -->
  11672. <!-- <el-input
  11673. v-model="item.username"
  11674. placeholder="请输入学生名字"
  11675. style="margin-top: 10px"
  11676. ></el-input> -->
  11677. <div
  11678. class="pl_select_box"
  11679. @click="
  11680. getUpdateMore(true, checkUpload(), item.username, index)
  11681. "
  11682. >
  11683. {{ getSName(item.username) }}
  11684. </div>
  11685. <!-- <el-select
  11686. style="margin-top: 10px"
  11687. v-model="item.username"
  11688. filterable
  11689. allow-create
  11690. placeholder="请选择学生"
  11691. >
  11692. <el-option
  11693. v-for="item1 in checkUpload()"
  11694. :key="item1.userid"
  11695. :label="item1.name ? item1.name : item1.username"
  11696. :value="item1.userid"
  11697. >
  11698. </el-option>
  11699. </el-select> -->
  11700. <div class="deleteWord" @click="clean2(index)">
  11701. <img src="../../assets/icon/deleteWorks.png" alt />
  11702. </div>
  11703. </div>
  11704. </div>
  11705. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11706. <div class="up_photo2">
  11707. <img src="../../assets/icon/plwork.png" alt />
  11708. <span>点击上传文件</span>
  11709. </div>
  11710. <input
  11711. type="file"
  11712. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11713. multiple="multiple"
  11714. style="display: none"
  11715. @change="beforeUpload3($event, 6)"
  11716. />
  11717. </div>
  11718. </div>
  11719. </div>
  11720. <!-- capture="camera" -->
  11721. <div
  11722. class="upload_send"
  11723. @click="addCourseWorksPl(taskCount)"
  11724. v-if="!proVisible2"
  11725. >
  11726. 提交
  11727. </div>
  11728. </el-dialog>
  11729. <el-dialog
  11730. title="修改名称"
  11731. :visible.sync="dialogVisibleSname"
  11732. width="500px"
  11733. :before-close="handleClose"
  11734. class="dialog_diy"
  11735. center
  11736. >
  11737. <div
  11738. style="
  11739. text-align: center;
  11740. display: flex;
  11741. align-items: center;
  11742. justify-content: center;
  11743. "
  11744. >
  11745. <span class="tian1">名称</span>
  11746. <div
  11747. class="pl_select_box"
  11748. style="margin-left: 10px; width: 200px"
  11749. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11750. >
  11751. {{ getSName(worksSName) }}
  11752. </div>
  11753. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11754. placeholder="请选择学生">
  11755. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11756. :value="item.userid">
  11757. </el-option>
  11758. </el-select> -->
  11759. <!-- <el-input
  11760. v-model="worksSName"
  11761. style="width: 250px; margin: 15px 0px"
  11762. ></el-input> -->
  11763. </div>
  11764. <span slot="footer" class="dialog-footer">
  11765. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11766. <el-button type="primary" @click="updateName">确 定</el-button>
  11767. </span>
  11768. </el-dialog>
  11769. <el-dialog
  11770. title="英语写作"
  11771. :visible.sync="engDialogVisible"
  11772. :append-to-body="true"
  11773. width="800px"
  11774. :before-close="handleClose"
  11775. class="dialog_diy"
  11776. >
  11777. <onlineWrite
  11778. v-if="engDialogVisible"
  11779. :englishList="englishList"
  11780. :myAnswerList1="myAnswerList1"
  11781. ref="engJson"
  11782. ></onlineWrite>
  11783. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11784. <el-button @click="engDialogVisible = false">取 消</el-button>
  11785. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11786. </span>
  11787. </el-dialog>
  11788. <el-dialog
  11789. title="英语写作"
  11790. :visible.sync="engUpdateDialogVisible"
  11791. :append-to-body="true"
  11792. width="800px"
  11793. :before-close="handleClose"
  11794. class="dialog_diy fullStyle"
  11795. >
  11796. <div class="engUpBox">
  11797. <div class="engUpTop">
  11798. <div class="engTitle">
  11799. <div>作文题目:</div>
  11800. <div>{{ englishList1.engTitle }}</div>
  11801. </div>
  11802. <div class="engText">
  11803. <div>作文内容:</div>
  11804. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11805. </div>
  11806. </div>
  11807. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11808. <div class="oldBox">
  11809. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11810. <div class="oldText">
  11811. <div class="detailBox">
  11812. <div class="oldDetail">
  11813. <div>标题:</div>
  11814. <div>{{ oldEnglishJson.engTitle }} </div>
  11815. </div>
  11816. <div class="oldDetail1">
  11817. <div>正文:</div>
  11818. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11819. </div>
  11820. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11821. <div>图片:</div>
  11822. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11823. </div>
  11824. </div>
  11825. </div>
  11826. </div>
  11827. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11828. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11829. <div class="oldText">
  11830. <div class="detailBox" style="position: relative;">
  11831. <div class="oldDetail">
  11832. <div>标题:</div>
  11833. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11834. <div v-else v-html="newEnglishList.engTitle"></div>
  11835. </div>
  11836. <div class="oldDetail">
  11837. <div>正文:</div>
  11838. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11839. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11840. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11841. </div>
  11842. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11843. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11844. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11845. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11846. </div>
  11847. </div>
  11848. </div>
  11849. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11850. <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">
  11851. <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>
  11852. <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>
  11853. </div>
  11854. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11855. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11856. <div class="detailBox" style="position: relative;">
  11857. <div class="oldDetail">
  11858. <div>标题:</div>
  11859. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11860. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11861. </div>
  11862. <div class="oldDetail">
  11863. <div>正文:</div>
  11864. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11865. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11866. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11867. </div>
  11868. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11869. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11870. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11871. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11872. </div>
  11873. </div>
  11874. <div class="oldText" v-else-if="newEngIndex == -1">
  11875. <div class="detailBox" style="position: relative;">
  11876. <div class="oldDetail">
  11877. <div>标题:</div>
  11878. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11879. <div v-else v-html="newEnglishList.engTitle"></div>
  11880. </div>
  11881. <div class="oldDetail">
  11882. <div>正文:</div>
  11883. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11884. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11885. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11886. </div>
  11887. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11888. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11889. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11890. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11891. </div>
  11892. </div>
  11893. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11894. <div class="detailBox" style="position: relative;">
  11895. <div class="oldDetail">
  11896. <div>标题:</div>
  11897. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11898. <div v-else>
  11899. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11900. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11901. </div>
  11902. </div>
  11903. <div class="oldDetail">
  11904. <div>正文:</div>
  11905. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11906. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11907. <div v-else>
  11908. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11909. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11910. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11911. </div>
  11912. </div>
  11913. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11914. <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>
  11915. <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>
  11916. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11917. </div>
  11918. </div>
  11919. </div>
  11920. </div>
  11921. </div>
  11922. <span slot="footer" class="dialog-footer">
  11923. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11924. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11925. </span>
  11926. </el-dialog>
  11927. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11928. <interVideo
  11929. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11930. :videoJson="videoJson"
  11931. :userid="userid"
  11932. :id="id"
  11933. :courseType="courseType"
  11934. :taskCount="taskCount"
  11935. :toolindex="toolindex"
  11936. :videoType="videoType"
  11937. ></interVideo>
  11938. <UpdateMore
  11939. :dialogVisibleMember.sync="dialogVisibleMember"
  11940. :cList="uploadStudentJuri"
  11941. :userid="userid"
  11942. :searchTN="worksSName2"
  11943. @setPlname="setPlname"
  11944. ></UpdateMore>
  11945. <wordCloud
  11946. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11947. :data="wordCloudData"
  11948. ></wordCloud>
  11949. <el-dialog
  11950. title="挑人"
  11951. :visible.sync="dialogVisiblePickPeople"
  11952. width="650px"
  11953. :before-close="handleClose"
  11954. class="dialog_diy"
  11955. center
  11956. >
  11957. <div class="pick_box">
  11958. <div
  11959. class="noWorksName"
  11960. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11961. v-for="(item, index) in uploadStudentJuri"
  11962. :key="index"
  11963. @click="pickStudent(item)"
  11964. >
  11965. {{ item.name }}
  11966. </div>
  11967. </div>
  11968. </el-dialog>
  11969. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11970. :englishVoiceJson='englishVoiceJson'
  11971. :userid="userid"
  11972. :id="id"
  11973. :courseType="courseType"
  11974. :taskCount="taskCount"
  11975. :toolindex="toolindex"
  11976. @selectSWorks="selectSWorks"
  11977. @selectStudent="selectStudent"
  11978. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11979. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11980. :userid="userid"
  11981. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11982. :commentDetail="commentDetail"
  11983. :courseDetail="courseDetail"
  11984. :wScore="wScore"
  11985. :scoreDetail="scoreDetail"
  11986. @selectSWorks="selectSWorks"
  11987. @selectStudent="selectStudent"></checkEnglishVoice>
  11988. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11989. <choseWorksDetailDialog
  11990. ref="choseWorksDetailDialogRef"
  11991. :worksStudentData="this.worksStudent"
  11992. :noWorksSData="noWorksS"
  11993. :chapInfoListData="chapInfoList"
  11994. :courseType="courseType"
  11995. :taskCount="taskCount"
  11996. @deleteWorks="deleteWorks"
  11997. @openTools="openTools"
  11998. @openWord="openWord"
  11999. @openScore="openScore"
  12000. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12001. />
  12002. <el-dialog
  12003. :visible.sync="confirmOpenDig"
  12004. width="500px"
  12005. :modal="false"
  12006. class="confirmOpenDigCss dialog_diyCopy"
  12007. :before-close="handleClose">
  12008. <div style="display: flex;align-items: center;">
  12009. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12010. <span>“{{ courseDetail.title }}”开课啦</span>
  12011. </div>
  12012. <div style="margin: 20px 0 35px;">
  12013. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12014. <div>要认真听讲哦~</div>
  12015. </div>
  12016. <div style="text-align: center;">
  12017. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12018. </div>
  12019. </el-dialog>
  12020. </div>
  12021. </template>
  12022. <script>
  12023. import "../../common/aws-sdk-2.235.1.min.js";
  12024. // import pdf from "../components/pdf3";
  12025. import pdf from "../components/vpdf";
  12026. import AskStatic from "../components/askStatic";
  12027. import AskStatic2 from "../components/askStatic2";
  12028. import AnswerData2 from "../components/answerData2";
  12029. import AnswerData from "../components/answerData";
  12030. import EditorBar from "../tools/wangEnduit.vue";
  12031. import Table from "../tools/table.vue";
  12032. import Time from "../tools/time.vue";
  12033. import Mind from "../tools/jsmind.vue";
  12034. import Sunburst from "../tools/sunburst";
  12035. import SeeBoard from "../tools/seeBoard";
  12036. import * as imageConversion from "image-conversion";
  12037. import Audio from "../components/audio.vue";
  12038. import ImgDraw from "../tools/imgDraw/imgDraw";
  12039. import { Empty } from "element-ui";
  12040. import RecordRTC from "recordrtc";
  12041. import interVideo from "../interVideo/index.vue";
  12042. import UpdateMore from "../updateMore/updateMore.vue";
  12043. import wordCloud from "../wordCloud/index.vue";
  12044. import axios from "axios";
  12045. import JSZip from "jszip";
  12046. import FileSaver from "file-saver";
  12047. import onlineWrite from "./commpont/onlineWrite";
  12048. import englishEva from "../components/englishEva";
  12049. import * as Diff from 'diff'
  12050. import EnglishVoice from '../EnglishVoice2/index.vue'
  12051. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12052. import correctText from '../components/correctText.vue'
  12053. import scoreItem from '../scoreList/scoreItem.vue'
  12054. import scoreZong from '../scoreZong/index.vue'
  12055. import classRoomHelper from '../classRoomHelper/index.vue'
  12056. import MarkdownIt from "markdown-it";
  12057. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12058. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12059. import { v4 as uuidv4 } from "uuid";
  12060. var OpenCC = require("opencc-js");
  12061. let converter = OpenCC.Converter({
  12062. from: "hk",
  12063. to: "cn"
  12064. });
  12065. const getFile = (url) => {
  12066. return new Promise((resolve, reject) => {
  12067. var credentials = {
  12068. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12069. secretAccessKey: "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",
  12070. }; //秘钥形式的登录上传
  12071. window.AWS.config.update(credentials);
  12072. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12073. let url2 = url;
  12074. let _url2 = "";
  12075. if (
  12076. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12077. ) {
  12078. _url2 = url2.split(
  12079. "https://view.officeapps.live.com/op/view.aspx?src="
  12080. )[1];
  12081. } else {
  12082. _url2 = url2;
  12083. }
  12084. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12085. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12086. var params = {
  12087. Bucket: "ccrb",
  12088. Key: name
  12089. };
  12090. s3.getObject(params, function (err, data) {
  12091. if (err) {
  12092. console.log(err, err.stack)
  12093. resolve({ data: 1 });
  12094. }else {
  12095. resolve({ data: data.Body });
  12096. console.log(data);
  12097. } // sxuccessful response
  12098. });
  12099. // axios({
  12100. // method: "get",
  12101. // url,
  12102. // responseType: "blob",
  12103. // })
  12104. // .then((data) => {
  12105. // resolve({ data: data.data });
  12106. // })
  12107. // .catch((error) => {
  12108. // resolve({ data: 1 });
  12109. // // reject(error.toString());
  12110. // });
  12111. });
  12112. };
  12113. export default {
  12114. components: {
  12115. EditorBar,
  12116. Time,
  12117. pdf,
  12118. AskStatic,
  12119. AskStatic2,
  12120. Mind,
  12121. Sunburst,
  12122. SeeBoard,
  12123. AnswerData2,
  12124. AnswerData,
  12125. Audio,
  12126. ImgDraw,
  12127. Table,
  12128. interVideo,
  12129. UpdateMore,
  12130. wordCloud,
  12131. onlineWrite,
  12132. englishEva,
  12133. EnglishVoice,
  12134. checkEnglishVoice,
  12135. correctText,
  12136. scoreItem,
  12137. classRoomHelper,
  12138. scoreZong,
  12139. statisticalAnalysis,
  12140. choseWorksDetailDialog
  12141. },
  12142. data() {
  12143. return {
  12144. bg: null,
  12145. drawShow: false,
  12146. dialogVisible: false,
  12147. dialogVisiblePl: false,
  12148. commentDialogVisible: false,
  12149. dialogVisibleMember: false,
  12150. dialogVisibleWordCloud: false,
  12151. videoVisible: false,
  12152. isStar: false,
  12153. studentEvalDialogVisible: false,
  12154. studentEvalDialogVisibleTeacher: false,
  12155. dialogVisibleSelect: false,
  12156. dialogVisibleSelectTeacher: false,
  12157. dialogVisibleScore: false,
  12158. dialogVisibleENScore: false,
  12159. dialogVisibleSentence: false,
  12160. dialogVisibleSentenceTeacher: false,
  12161. dialogVisibleSentence1: false,
  12162. dialogVisibleWorks: false,
  12163. dialogVisibleTable: false,
  12164. dialogVisibleTableTeacher: false,
  12165. dialogVisibleWord: false,
  12166. dialogVisibleWordTeacher: false,
  12167. dialogVisibleTable2: false,
  12168. dialogVisibleTable3: false,
  12169. dialogVisibleGroupWork: false,
  12170. dialogVisibleUpdateGroup: false,
  12171. dialogVisibleDeleteGroup: false,
  12172. dialogVisibleSname: false,
  12173. dialogVisibleVideo: false,
  12174. dialogVisiblePickPeople: false,
  12175. worksSName: "",
  12176. classJuri: [],
  12177. uploadStudentJuri: [],
  12178. uploadCid: "",
  12179. snameWid: "",
  12180. sStudent: {},
  12181. sTool: "",
  12182. bzText: "",
  12183. commentDetail: [],
  12184. selectAnswer: [],
  12185. videoDetail: {},
  12186. selectJson: {},
  12187. eScore: { eBzText: "", eStar: [] },
  12188. id: this.$route.query.courseId,
  12189. userid: this.$route.query.userid,
  12190. classId: this.$route.query.cid,
  12191. // courseTypeLine: this.$route.query.type,
  12192. oid: this.$route.query.oid,
  12193. org: this.$route.query.org,
  12194. tType: this.$route.query.tType,
  12195. courseType: this.$route.query.type,
  12196. screenType: this.$route.query.screenType,
  12197. tcid2: this.$route.query.tcid,
  12198. tcid: "",
  12199. pptImgUrl: "",
  12200. pptImgUrl1: "",
  12201. commentText: "",
  12202. full: false,
  12203. sIsOpen: false,
  12204. IsLookOpen: false,
  12205. IsFollow: false,
  12206. pzDialog: false,
  12207. contentDialog: false,
  12208. mlDialog: false,
  12209. type: 1,
  12210. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12211. sentenceList1: [],
  12212. tableJson: [],
  12213. tableJsonO: [],
  12214. wordJson: [],
  12215. wordJsonO: [],
  12216. vedio: [],
  12217. text: [],
  12218. textList: [],
  12219. line: [],
  12220. lineList: [],
  12221. chapTools: [],
  12222. chapToolList: [],
  12223. file: [],
  12224. fileC: [],
  12225. vedioTime: [],
  12226. upToolImg: "",
  12227. preTime: 0,
  12228. rateList: {
  12229. ca: 0,
  12230. },
  12231. rateParams: [],
  12232. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12233. studyJuri: [
  12234. {
  12235. content: "",
  12236. cover: [],
  12237. upVedio: [],
  12238. upFile: [],
  12239. },
  12240. ],
  12241. isClose: 0,
  12242. plworkFile: [],
  12243. mr: require("../../assets/vedioPic.png"),
  12244. word: require("../../assets/icon/isWord.png"),
  12245. word2: require("../../assets/icon/word2.png"),
  12246. video: require("../../assets/icon/isVideo.png"),
  12247. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12248. likes: require("../../assets/icon/comment/likes.png"),
  12249. scoreImg: require("../../assets/score.png"),
  12250. courseDetail: {},
  12251. reply: "",
  12252. isSelect: false,
  12253. chapInfo: [],
  12254. chapInfoList: [],
  12255. taskCount: 0,
  12256. imgList: [],
  12257. noImgList: [],
  12258. pzList: [],
  12259. timeWorkList: [],
  12260. PlTextList: [
  12261. "Excellent!",
  12262. "nice!",
  12263. "很有创意!",
  12264. "还不错哦~",
  12265. "继续努力哦~",
  12266. ],
  12267. isClickNav: "",
  12268. navId: "",
  12269. playerOptions: {
  12270. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12271. autoplay: false, //如果true,浏览器准备好时开始回放。
  12272. muted: false, // 默认情况下将会消除任何音频。
  12273. loop: false, // 导致视频一结束就重新开始。
  12274. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12275. language: "zh-CN",
  12276. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12277. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12278. sources: [
  12279. {
  12280. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12281. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12282. },
  12283. ],
  12284. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12285. // poster: dataRes.imgUrl, //你的封面地址
  12286. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12287. controlBar: {
  12288. timeDivider: true, //当前时间和持续时间的分隔符
  12289. durationDisplay: true, //显示持续时间
  12290. remainingTimeDisplay: false, //是否显示剩余时间功能
  12291. fullscreenToggle: true, //全屏按钮
  12292. },
  12293. },
  12294. playerOptions1: {
  12295. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12296. autoplay: false, //如果true,浏览器准备好时开始回放。
  12297. muted: false, // 默认情况下将会消除任何音频。
  12298. loop: false, // 导致视频一结束就重新开始。
  12299. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12300. language: "zh-CN",
  12301. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12302. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12303. sources: [
  12304. {
  12305. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12306. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12307. },
  12308. ],
  12309. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12310. // poster: dataRes.imgUrl, //你的封面地址
  12311. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12312. controlBar: {
  12313. timeDivider: true, //当前时间和持续时间的分隔符
  12314. durationDisplay: true, //显示持续时间
  12315. remainingTimeDisplay: false, //是否显示剩余时间功能
  12316. fullscreenToggle: true, //全屏按钮
  12317. },
  12318. },
  12319. playerO: {},
  12320. noneBtnImg: false,
  12321. proVisible: false,
  12322. proVisible2: false,
  12323. progress: 0,
  12324. isFinishSize: 0,
  12325. isAllSize: 0,
  12326. questionAnswer: "",
  12327. answerQ: "", //问答标题
  12328. rateJson: [],
  12329. wbCount: 0,
  12330. wordCount: 0,
  12331. mindCount: 0,
  12332. askCount: 0,
  12333. noteCount: 0,
  12334. mindNetWorkCount: 0,
  12335. libraryCount: 0,
  12336. workCount: 0,
  12337. timeCount: 0,
  12338. answerCount: 0,
  12339. trainCount: 0,
  12340. evalCount: 0,
  12341. dialogImageUrl: "",
  12342. pictureDialog: false,
  12343. toolTypeList: [],
  12344. dialogVisible1: false,
  12345. dialogVisible2: false,
  12346. dialogVisible3: false,
  12347. dialogVisible6: false,
  12348. dialogVisible4: false,
  12349. isNoHomeWork: false,
  12350. dialogVisible5: false,
  12351. dialogVisible5Teacher: false,
  12352. dialogVisibleChoice: false,
  12353. dialogVisibleChoiceTeacher: false,
  12354. answerDialogVisible: false,
  12355. answerDialogVisibleTeacher: false,
  12356. juriVisible: false,
  12357. timeDialogVisible: false,
  12358. replyDialogVisible: false,
  12359. toolDialogVisible: false,
  12360. engDialogVisible: false,
  12361. engUpdateDialogVisible:false,
  12362. engEvaDialogVisible: false,
  12363. evaEngJson: {
  12364. teacherJson: {},
  12365. studentJson: {},
  12366. message: {},
  12367. },
  12368. isNoUserid:false,
  12369. engListLength:0,
  12370. engWid:"",
  12371. newEnglishList:{
  12372. engTitle:"",
  12373. engText:"",
  12374. },
  12375. newEnglishList1:[],
  12376. oldEnglishJson:{},
  12377. oldEnglishJson1:{},
  12378. englishList1:{},
  12379. englishList:{},
  12380. myAnswerList1:{},
  12381. topHeight:0,
  12382. newEngIndex:-1,
  12383. englishToolIndex:0,
  12384. userMes:{},
  12385. englishToolIndex:0,
  12386. replyIndex: 0,
  12387. replyPid: "",
  12388. radio: [],
  12389. isAsk: false,
  12390. askJson: {
  12391. askCount: 1,
  12392. askTitle: "",
  12393. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12394. },
  12395. testJson: {},
  12396. englishList: {},
  12397. topHeight:0,
  12398. checkJson: [],
  12399. askList: [],
  12400. answerList: [],
  12401. navList: [],
  12402. addPzDialog: false,
  12403. pzConText: "",
  12404. worksStudent: [],
  12405. isCloseList: [],
  12406. workStudent: [],
  12407. groupStudent: [],
  12408. groupStudentUid: [],
  12409. noWorksS: [],
  12410. isWorksS: [],
  12411. noWorksStudent: [],
  12412. toolindex: 0,
  12413. toolDetailIndex: null,
  12414. groupIndex: 0,
  12415. workTypeB: false,
  12416. workTypeC: false,
  12417. isAnswer: false,
  12418. isHovered: false,
  12419. isHovered1: false,
  12420. isHovered2: false,
  12421. commentTagShow:0,
  12422. timer: null,
  12423. timer2: null,
  12424. opertimer: null,
  12425. showType: '',
  12426. fileType: 0,
  12427. showPDF: false,
  12428. noteName: "",
  12429. evaJuri: [],
  12430. evalua: "",
  12431. eTitle: "",
  12432. eName: "",
  12433. eJson: {},
  12434. fid: "", //一级
  12435. sid: "", //二级
  12436. tid: "", //二级
  12437. typeMode: 1,
  12438. eJSONNum: 0,
  12439. Etype: 1,
  12440. data: {
  12441. meta: {
  12442. name: "example",
  12443. author: "dd@163.com",
  12444. version: "0.2",
  12445. },
  12446. format: "node_array",
  12447. data: [{ id: "root", isroot: true, topic: "" }],
  12448. },
  12449. fullDialogVisible: false,
  12450. fulltype: "",
  12451. fullUrl: "",
  12452. commentIndexJson: {},
  12453. Stbodywidth: 0,
  12454. ispzType: 0,
  12455. pzType: 1,
  12456. wScore: 0,
  12457. scoreDetail: "",
  12458. videoStart: false,
  12459. recorder: null,
  12460. groupJson: {},
  12461. islock: false,
  12462. groupJson2: {},
  12463. dialogVisibleGroup: false,
  12464. dialogVisibleGroup2: false,
  12465. updateGroupArray: [],
  12466. updateGroupUser: {},
  12467. deleteGroupUser: [],
  12468. deleteGroupArray: {},
  12469. checkChair: "",
  12470. checkDeleteGroup: [],
  12471. inviteCode: "",
  12472. courseGroupStudent: [],
  12473. courseGroupStudentUid: [],
  12474. courseGroup: {},
  12475. isGroup: false,
  12476. toolIndex: null,
  12477. tool: {},
  12478. isWorkTool: [
  12479. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12480. ], //, 40
  12481. videoJson: {},
  12482. videoType:0,
  12483. toolType: 0,
  12484. checktoolArray: [],
  12485. vChapterData: [],
  12486. isUpdateToolDetail: false,
  12487. isUpdateToolDetail1: false,
  12488. updateToolDetailInner: "",
  12489. checkboxList: [],
  12490. plIndex: "",
  12491. worksSName2: "",
  12492. worksSid: "",
  12493. wordCloudData: [],
  12494. isPickStudent: [],
  12495. pzStype: 1,
  12496. myAnList: {},
  12497. downLoading: false,
  12498. greyType: false,
  12499. correctWord: [],
  12500. EnglishVoiceDialog: false,
  12501. englishVoiceJson: {},
  12502. englishVoiceJsonWork:[],
  12503. scoreList:{
  12504. listdata:[],
  12505. isScoreList:[],
  12506. },
  12507. classRoomHelperWidth: '85px',
  12508. orgArray:[],
  12509. oidArray:[],
  12510. splitScreenData:{
  12511. isOpen:false,
  12512. userId:"",
  12513. uid:"",
  12514. myUid:"",
  12515. loading:false,
  12516. behavior:null,
  12517. },
  12518. confirmOpenDig:false,
  12519. confirmOpenDigData:''
  12520. };
  12521. },
  12522. methods: {
  12523. getAIJ(){
  12524. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12525. let oid = res.data[0];
  12526. let org = res.data[1];
  12527. let oidArray = [];
  12528. let orgArray = [];
  12529. oid.forEach(i=>oidArray.push(i.oid))
  12530. org.forEach(i=>orgArray.push(i.oid))
  12531. this.orgArray = orgArray;
  12532. this.oidArray = oidArray;
  12533. })
  12534. },
  12535. insertMemorandum(_html){//保存行为操作
  12536. //variable
  12537. //btn
  12538. let params = [{
  12539. uid:this.userid,
  12540. courseId:this.id+(this.tcid2?this.tcid2:''),
  12541. content:_html
  12542. }]
  12543. console.log(params)
  12544. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12545. if(res.data==1){
  12546. console.log('保存操作成功')
  12547. }else{
  12548. console.log('保存操作失败')
  12549. }
  12550. }).catch(e=>{
  12551. console.log('保存操作失败')
  12552. console.log(e)
  12553. })
  12554. },
  12555. gx(){
  12556. this.$forceUpdate();
  12557. },
  12558. isUpdateCorrect(t,p){
  12559. if(this.greyType == false){
  12560. this.isUpdateText = t;
  12561. this.greyType = true;
  12562. }else{
  12563. if(p == 1){
  12564. this.newEnglishList.engText = this.isUpdateText;
  12565. }else if(p == 2){
  12566. this.oldEnglishJson1.engText = this.isUpdateText;
  12567. }else if(p == 3){
  12568. this.newEnglishList.engText = this.isUpdateText;
  12569. }else{
  12570. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12571. }
  12572. this.greyType = false
  12573. }
  12574. },
  12575. aiCorrect(t,p){
  12576. let aiText = "";
  12577. const loading = this.$loading.service({
  12578. background: "rgba(255, 255, 255)",
  12579. target: document.querySelectorAll(".loadingText")[0],
  12580. });
  12581. let param = {
  12582. model: "gpt-3.5-turbo",
  12583. temperature: 0,
  12584. max_tokens: 2048,
  12585. top_p: 1,
  12586. frequency_penalty: 0,
  12587. presence_penalty: 0,
  12588. messages: [
  12589. {
  12590. role: "user",
  12591. content:
  12592.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12593. },
  12594. ],
  12595. uid: this.userid,
  12596. stream: false,
  12597. };
  12598. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12599. (res) => {
  12600. if (
  12601. res.data.FunctionResponse &&
  12602. res.data.FunctionResponse.result &&
  12603. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12604. ) {
  12605. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12606. return;
  12607. }
  12608. aiText =
  12609. res.data.FunctionResponse.choices[0].message.content;
  12610. aiText = aiText.replace(/%/g,"%25");
  12611. // let w = "";
  12612. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12613. // for(var k = 0;k<a.length;k++){
  12614. // //diffWordsWithSpace
  12615. // if(a.length > 1){
  12616. // if(a[k].added == true){
  12617. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12618. // }else if(a[k].removed == true){
  12619. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12620. // }else{
  12621. // w += '<span>' + a[k].value + '</span>';
  12622. // }
  12623. // }else{
  12624. // if(p == 1){
  12625. // w = this.newEnglishList.engText;
  12626. // }else if(p == 2){
  12627. // w = this.oldEnglishJson1.engText;
  12628. // }else if(p == 3){
  12629. // w = this.newEnglishList.engText;
  12630. // }else{
  12631. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12632. // }
  12633. // }
  12634. // }
  12635. if(p == 1){
  12636. this.newEnglishList.engText = aiText;
  12637. }else if(p == 2){
  12638. this.oldEnglishJson1.engText = aiText;
  12639. }else if(p == 3){
  12640. this.newEnglishList.engText = aiText;
  12641. }else{
  12642. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12643. }
  12644. loading.close();
  12645. },
  12646. (err) => {
  12647. console.log(err);
  12648. loading.close();
  12649. }
  12650. );
  12651. },
  12652. addToolChoose() {
  12653. if (!this.checktoolArray.length) {
  12654. this.$message.error("请选择要添加的任务");
  12655. return;
  12656. }
  12657. if (
  12658. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12659. this.taskCount
  12660. ].toolChoose[0].tool.length
  12661. ) {
  12662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12663. this.taskCount
  12664. ].toolChoose[0].tool = this.checktoolArray;
  12665. } else {
  12666. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12667. this.taskCount
  12668. ].toolChoose.push({
  12669. tool: this.checktoolArray,
  12670. toolDetail: "",
  12671. toolType: 0,
  12672. askCount: 1,
  12673. askTitle: "",
  12674. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12675. });
  12676. }
  12677. let params = [
  12678. {
  12679. cid: this.id,
  12680. chapters: JSON.stringify(this.chapInfoList),
  12681. uid: this.userid,
  12682. unitIndex: this.courseType,
  12683. },
  12684. ];
  12685. this.ajax
  12686. .post(this.$store.state.api + "updateWorkNew4", params)
  12687. .then((res) => {
  12688. this.$message({
  12689. message: "添加成功",
  12690. type: "success",
  12691. });
  12692. this.checktoolArray = [];
  12693. this.getCourseDetail(2);
  12694. this.checkBz(
  12695. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12696. this.taskCount
  12697. ].toolChoose.length - 1
  12698. );
  12699. this.toolDialogVisible = false;
  12700. this.refreshCourse();
  12701. this.$forceUpdate();
  12702. })
  12703. .catch((err) => {
  12704. console.error(err);
  12705. });
  12706. },
  12707. checkBz(index) {
  12708. this.isUpdateToolDetail = false;
  12709. this.$forceUpdate();
  12710. setTimeout(() => {
  12711. document.scrollingElement.scrollTop =
  12712. document.querySelectorAll(".filebox")[index].offsetTop +
  12713. document.querySelector(".student_body").offsetTop;
  12714. }, 500);
  12715. },
  12716. updateToolDetail(i, type) {
  12717. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12718. this.toolDetailIndex = i
  12719. this.isUpdateToolDetail1 = true;
  12720. setTimeout(() => {
  12721. this.updateToolDetailInner = JSON.parse(
  12722. JSON.stringify(
  12723. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12724. this.taskCount
  12725. ].toolChoose[i].toolDetail
  12726. )
  12727. );
  12728. document.querySelector(".checkTextArea").focus();
  12729. }, 0);
  12730. } else if((this.isUpdateToolDetail1 && type != 2)){
  12731. // this.toolDetailIndex = i;
  12732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12733. this.taskCount
  12734. ].toolChoose[i].toolDetail = JSON.parse(
  12735. JSON.stringify(this.updateToolDetailInner)
  12736. );
  12737. let params = [
  12738. {
  12739. cid: this.id,
  12740. chapters: JSON.stringify(this.chapInfoList),
  12741. uid: this.userid,
  12742. unitIndex: this.courseType,
  12743. },
  12744. ];
  12745. this.ajax
  12746. .post(this.$store.state.api + "updateWorkNew4", params)
  12747. .then((res) => {
  12748. this.isUpdateToolDetail1 = false;
  12749. this.$message({
  12750. message: "修改成功",
  12751. type: "success",
  12752. });
  12753. this.toolDetailIndex = null;
  12754. this.updateToolDetailInner = "";
  12755. this.getCourseDetail(2);
  12756. this.$forceUpdate();
  12757. })
  12758. .catch((err) => {
  12759. console.error(err);
  12760. });
  12761. } else if((this.isUpdateToolDetail1 && type == 2)){
  12762. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12763. this.taskCount
  12764. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12765. JSON.stringify(this.updateToolDetailInner)
  12766. );
  12767. let params = [
  12768. {
  12769. cid: this.id,
  12770. chapters: JSON.stringify(this.chapInfoList),
  12771. uid: this.userid,
  12772. unitIndex: this.courseType,
  12773. },
  12774. ];
  12775. this.ajax
  12776. .post(this.$store.state.api + "updateWorkNew4", params)
  12777. .then((res) => {
  12778. this.$message({
  12779. message: "修改成功",
  12780. type: "success",
  12781. });
  12782. this.toolDetailIndex = i;
  12783. this.isUpdateToolDetail1 = true;
  12784. setTimeout(() => {
  12785. this.updateToolDetailInner = JSON.parse(
  12786. JSON.stringify(
  12787. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12788. this.taskCount
  12789. ].toolChoose[i].toolDetail
  12790. )
  12791. );
  12792. document.querySelector(".checkTextArea").focus();
  12793. }, 0);
  12794. this.getCourseDetail(2);
  12795. this.$forceUpdate();
  12796. })
  12797. .catch((err) => {
  12798. console.error(err);
  12799. });
  12800. }
  12801. },
  12802. jumpGj(i, j, k, l) {
  12803. for (var z = 0; z < this.navList.length; z++) {
  12804. for (var q = 0; q < this.navList[z].task.length; q++) {
  12805. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12806. this.navList[z].task[q].tool[w].isTool = false;
  12807. }
  12808. }
  12809. }
  12810. console.log(this.navList);
  12811. this.navList[i].task[j].tool[k].isTool =
  12812. !this.navList[i].task[j].tool[k].isTool;
  12813. var a = document.scrollingElement;
  12814. let target = document.querySelector(`#gj${k}`);
  12815. if (target) {
  12816. target.scrollIntoView(true);
  12817. setTimeout(() => {
  12818. a.scrollTop = a.scrollTop - 150;
  12819. }, 0);
  12820. }
  12821. this.navId = ""
  12822. let flag = this.courseType == i;
  12823. let flag2 = this.taskCount == j
  12824. if (l) {
  12825. this.courseType = i;
  12826. // this.navId = l;
  12827. this.taskCount = j;
  12828. this.selectPz();
  12829. this.getHomeWork();
  12830. this.getCourseDetail(2);
  12831. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12832. if(flag){
  12833. if(flag2){
  12834. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12835. }else{
  12836. 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>`)
  12837. }
  12838. }else{
  12839. 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>`)
  12840. }
  12841. }
  12842. // var b = this.$refs["bz" + k][0];
  12843. // a.scrollTop = b.offsetTop;
  12844. },
  12845. addTools2(i) {
  12846. if (i == 4) {
  12847. // this.openTools2(4);
  12848. this.$message.error("暂未开放");
  12849. return;
  12850. }
  12851. if (i == 45) {
  12852. // this.openTools2(45);
  12853. this.$message.error("暂未开放");
  12854. return;
  12855. }
  12856. if (i == 47) {
  12857. // this.openTools2(47);
  12858. this.$message.error("暂未开放");
  12859. return;
  12860. }
  12861. if (i == 49) {
  12862. // this.openTools2(49);
  12863. this.$message.error("暂未开放");
  12864. return;
  12865. }
  12866. if (i == 62) {
  12867. // this.openTools(itemTaskIndex, 62, toolIndex);
  12868. this.$message.error("暂未开放");
  12869. return;
  12870. }
  12871. if (i == 15) {
  12872. // this.openTools(itemTaskIndex, 15, toolIndex);
  12873. this.$message.error("暂未开放");
  12874. return;
  12875. }
  12876. if (i == 40) {
  12877. // this.openTools(itemTaskIndex, 40, toolIndex);
  12878. this.$message.error("暂未开放");
  12879. return;
  12880. }
  12881. if (i == 41) {
  12882. // this.openTools(itemTaskIndex, 41, toolIndex);
  12883. this.$message.error("暂未开放");
  12884. return;
  12885. }
  12886. if (i == 42) {
  12887. // this.openTools(itemTaskIndex, 42, toolIndex);
  12888. this.$message.error("暂未开放");
  12889. return;
  12890. }
  12891. if (this.checktoolArray.length > 0) {
  12892. if (this.checktoolArray.indexOf(i) != -1) {
  12893. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12894. } else {
  12895. this.checktoolArray = [];
  12896. this.checktoolArray.push(i);
  12897. }
  12898. } else {
  12899. this.checktoolArray.push(i);
  12900. }
  12901. this.$forceUpdate();
  12902. },
  12903. jump() {
  12904. window.parent.postMessage({ tools: "43" }, "*");
  12905. },
  12906. getUpdateMore(f, checkboxList, searchTN, index) {
  12907. this.dialogVisibleMember = f;
  12908. this.checkboxList = checkboxList;
  12909. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12910. this.plIndex = index;
  12911. },
  12912. setPlname(a) {
  12913. if (this.plworkFile.length) {
  12914. this.plworkFile[this.plIndex].username = a;
  12915. } else {
  12916. this.worksSName = a;
  12917. }
  12918. this.dialogVisibleMember = false;
  12919. },
  12920. previewImg(url,w) {
  12921. this.$hevueImgPreview(url);
  12922. if(w){
  12923. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12924. }
  12925. },
  12926. checkImg(list) {
  12927. if (!list.length) {
  12928. return;
  12929. }
  12930. this.$hevueImgPreview({
  12931. multiple: true, // 开启多图预览模式
  12932. imgList: list, // 需要预览的多图数组
  12933. });
  12934. },
  12935. change(val) {
  12936. console.log(val);
  12937. },
  12938. goTo(path) {
  12939. this.$router.push(path);
  12940. },
  12941. handlePictureCardPreview(url) {
  12942. this.dialogImageUrl = url;
  12943. this.pictureDialog = true;
  12944. },
  12945. clean(type) {
  12946. if (type == 1) {
  12947. this.studyJuri[0].cover.splice(0, 1);
  12948. } else if (type == 2) {
  12949. this.studyJuri[0].upVedio.splice(0, 1);
  12950. } else {
  12951. this.studyJuri[0].upFile.splice(0, 1);
  12952. }
  12953. },
  12954. clean2(index) {
  12955. this.plworkFile.splice(index, 1);
  12956. },
  12957. handleClose(done) {
  12958. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12959. this.videoDetail.sources[0].src = "";
  12960. }
  12961. this.commentIndexJson = {};
  12962. this.changeSplitScreenBehavior({code:99})
  12963. done();
  12964. },
  12965. fullTools() {
  12966. this.full = !this.full;
  12967. },
  12968. imgChange(file, fileList, type) {
  12969. if (type == 1) {
  12970. var _tmp = this.studyJuri[0].cover;
  12971. } else if (type == 2) {
  12972. var _tmp = this.studyJuri[0].upVedio;
  12973. } else {
  12974. var _tmp = this.studyJuri[0].upFile;
  12975. }
  12976. this.noneBtnImg = _tmp.length >= 1;
  12977. },
  12978. setContent(bool) {
  12979. this.contentDialog = bool;
  12980. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12981. document.querySelector(".workd_media").style.height = "650px";
  12982. } else if (document.querySelector(".workd_media")) {
  12983. document.querySelector(".workd_media").style.height = "auto";
  12984. }
  12985. },
  12986. setContent2(bool) {
  12987. this.mlDialog = bool;
  12988. if (
  12989. bool &&
  12990. this.contentDialog &&
  12991. document.querySelector(".workd_media")
  12992. ) {
  12993. document.querySelector(".workd_media").style.height = "650px";
  12994. } else if (document.querySelector(".workd_media")) {
  12995. document.querySelector(".workd_media").style.height = "auto";
  12996. }
  12997. },
  12998. openToolAll() {
  12999. this.toolDialogVisible = true;
  13000. },
  13001. addImg(e) {
  13002. var el = e.currentTarget;
  13003. // this.$message.success('触发上传')
  13004. el.getElementsByTagName("input")[0].click();
  13005. e.target.value = "";
  13006. },
  13007. addSelectAnswer() {
  13008. let params = [
  13009. {
  13010. uid: this.userid,
  13011. cid: this.id,
  13012. stage: this.courseType,
  13013. task: this.taskCount,
  13014. tool: this.toolindex,
  13015. content: this.selectAnswer.answer,
  13016. type: 7,
  13017. },
  13018. ];
  13019. this.ajax
  13020. .post(this.$store.state.api + "addCourseWorks", params)
  13021. .then((res) => {
  13022. this.$message({
  13023. message: "提交成功",
  13024. type: "success",
  13025. });
  13026. this.dialogVisibleSelect = false;
  13027. // this.selectAnswer = {};
  13028. this.selectSWorks();
  13029. this.selectStudent();
  13030. })
  13031. .catch((err) => {
  13032. this.$message.error("提交失败");
  13033. console.error(err);
  13034. });
  13035. },
  13036. addSelectAnswerTeacher() {
  13037. let params = [
  13038. {
  13039. uid: this.sStudent.userid,
  13040. cid: this.id,
  13041. stage: this.courseType,
  13042. task: this.taskCount,
  13043. tool: this.toolindex,
  13044. content: this.selectAnswer.answer,
  13045. type: 7,
  13046. },
  13047. ];
  13048. this.ajax
  13049. .post(this.$store.state.api + "addCourseWorks", params)
  13050. .then((res) => {
  13051. this.$message({
  13052. message: "提交成功",
  13053. type: "success",
  13054. });
  13055. this.dialogVisibleSelectTeacher = false;
  13056. // this.selectAnswer = {};
  13057. this.selectSWorks();
  13058. this.selectStudent();
  13059. })
  13060. .catch((err) => {
  13061. this.$message.error("提交失败");
  13062. console.error(err);
  13063. });
  13064. },
  13065. addSenWorks() {
  13066. for (var i = 0; i < this.sentenceList.length; i++) {
  13067. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13068. if (
  13069. this.sentenceList[i].chooseSenList[j] == undefined ||
  13070. this.sentenceList[i].chooseSenList[j] == ""
  13071. ) {
  13072. this.$message.error("请将答案填写完整!");
  13073. return;
  13074. }
  13075. }
  13076. }
  13077. let params = [
  13078. {
  13079. uid: this.userid,
  13080. cid: this.id,
  13081. stage: this.courseType,
  13082. task: this.taskCount,
  13083. tool: this.toolindex,
  13084. content: JSON.stringify(this.sentenceList),
  13085. type: 9,
  13086. },
  13087. ];
  13088. this.ajax
  13089. .post(this.$store.state.api + "addCourseWorks", params)
  13090. .then((res) => {
  13091. this.$message({
  13092. message: "提交成功",
  13093. type: "success",
  13094. });
  13095. this.dialogVisibleSentence = false;
  13096. // this.selectAnswer = {};
  13097. this.selectSWorks();
  13098. this.selectStudent();
  13099. })
  13100. .catch((err) => {
  13101. this.$message.error("提交失败");
  13102. console.error(err);
  13103. });
  13104. },
  13105. addSenWorksTeacher() {
  13106. for (var i = 0; i < this.sentenceList.length; i++) {
  13107. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13108. if (
  13109. this.sentenceList[i].chooseSenList[j] == undefined ||
  13110. this.sentenceList[i].chooseSenList[j] == ""
  13111. ) {
  13112. this.$message.error("请将答案填写完整!");
  13113. return;
  13114. }
  13115. }
  13116. }
  13117. let params = [
  13118. {
  13119. uid: this.sStudent.userid,
  13120. cid: this.id,
  13121. stage: this.courseType,
  13122. task: this.taskCount,
  13123. tool: this.toolindex,
  13124. content: JSON.stringify(this.sentenceList),
  13125. type: 9,
  13126. },
  13127. ];
  13128. this.ajax
  13129. .post(this.$store.state.api + "addCourseWorks", params)
  13130. .then((res) => {
  13131. this.$message({
  13132. message: "提交成功",
  13133. type: "success",
  13134. });
  13135. this.dialogVisibleSentenceTeacher = false;
  13136. // this.selectAnswer = {};
  13137. this.selectSWorks();
  13138. this.selectStudent();
  13139. })
  13140. .catch((err) => {
  13141. this.$message.error("提交失败");
  13142. console.error(err);
  13143. });
  13144. },
  13145. returnTableText() {
  13146. this.$confirm("确定还原此模板吗?", "提示", {
  13147. confirmButtonText: "确定",
  13148. cancelButtonText: "取消",
  13149. type: "warning",
  13150. })
  13151. .then(() => {
  13152. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13153. })
  13154. .catch(() => {});
  13155. },
  13156. addTableWorks() {
  13157. let params = [
  13158. {
  13159. uid: this.userid,
  13160. cid: this.id,
  13161. stage: this.courseType,
  13162. task: this.taskCount,
  13163. tool: this.toolindex,
  13164. content: JSON.stringify(this.tableJson),
  13165. type: 10,
  13166. },
  13167. ];
  13168. this.ajax
  13169. .post(this.$store.state.api + "addCourseWorks", params)
  13170. .then((res) => {
  13171. this.$message({
  13172. message: "提交成功",
  13173. type: "success",
  13174. });
  13175. this.dialogVisibleTable = false;
  13176. // this.selectAnswer = {};
  13177. this.selectSWorks();
  13178. this.selectStudent();
  13179. })
  13180. .catch((err) => {
  13181. this.$message.error("提交失败");
  13182. console.error(err);
  13183. });
  13184. },
  13185. tableRowClassName({ row, rowIndex }) {
  13186. if ((rowIndex + 1) % 2 === 0) {
  13187. return "even_row";
  13188. } else {
  13189. return "";
  13190. }
  13191. },
  13192. addTableWorksTeacher() {
  13193. let params = [
  13194. {
  13195. uid: this.sStudent.userid,
  13196. cid: this.id,
  13197. stage: this.courseType,
  13198. task: this.taskCount,
  13199. tool: this.toolindex,
  13200. content: JSON.stringify(this.tableJson),
  13201. type: 10,
  13202. },
  13203. ];
  13204. this.ajax
  13205. .post(this.$store.state.api + "addCourseWorks", params)
  13206. .then((res) => {
  13207. this.$message({
  13208. message: "提交成功",
  13209. type: "success",
  13210. });
  13211. this.dialogVisibleTableTeacher = false;
  13212. // this.selectAnswer = {};
  13213. this.selectSWorks();
  13214. this.selectStudent();
  13215. })
  13216. .catch((err) => {
  13217. this.$message.error("提交失败");
  13218. console.error(err);
  13219. });
  13220. },
  13221. returnWordText() {
  13222. this.$confirm("确定还原此模板吗?", "提示", {
  13223. confirmButtonText: "确定",
  13224. cancelButtonText: "取消",
  13225. type: "warning",
  13226. })
  13227. .then(() => {
  13228. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13229. })
  13230. .catch(() => {});
  13231. },
  13232. addWordWorks() {
  13233. let params = [
  13234. {
  13235. uid: this.userid,
  13236. cid: this.id,
  13237. stage: this.courseType,
  13238. task: this.taskCount,
  13239. tool: this.toolindex,
  13240. content: JSON.stringify(this.wordJson),
  13241. type: 13,
  13242. atool: 52,
  13243. },
  13244. ];
  13245. this.ajax
  13246. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13247. .then((res) => {
  13248. this.$message({
  13249. message: "提交成功",
  13250. type: "success",
  13251. });
  13252. this.dialogVisibleWord = false;
  13253. // this.selectAnswer = {};
  13254. this.selectSWorks();
  13255. this.selectStudent();
  13256. })
  13257. .catch((err) => {
  13258. this.$message.error("提交失败");
  13259. console.error(err);
  13260. });
  13261. },
  13262. addWordWorksTeacher() {
  13263. let params = [
  13264. {
  13265. uid: this.sStudent.userid,
  13266. cid: this.id,
  13267. stage: this.courseType,
  13268. task: this.taskCount,
  13269. tool: this.toolindex,
  13270. content: JSON.stringify(this.wordJson),
  13271. type: 13,
  13272. atool: 52,
  13273. },
  13274. ];
  13275. this.ajax
  13276. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13277. .then((res) => {
  13278. this.$message({
  13279. message: "提交成功",
  13280. type: "success",
  13281. });
  13282. this.dialogVisibleWordTeacher = false;
  13283. // this.selectAnswer = {};
  13284. this.selectSWorks();
  13285. this.selectStudent();
  13286. })
  13287. .catch((err) => {
  13288. this.$message.error("提交失败");
  13289. console.error(err);
  13290. });
  13291. },
  13292. addCourseWorks(i) {
  13293. var typesql;
  13294. if (this.fileType === 0) {
  13295. typesql = 1;
  13296. } else if (this.fileType === 1) {
  13297. typesql = 4;
  13298. } else if (this.fileType === 2) {
  13299. typesql = 5;
  13300. } else if (this.fileType === 3) {
  13301. typesql = 12;
  13302. }
  13303. if (!this.studyJuri[0].cover[0].url) {
  13304. this.$message.error("请上传文件");
  13305. return;
  13306. }
  13307. let params = [
  13308. {
  13309. uid: this.userid,
  13310. cid: this.id,
  13311. stage: this.courseType,
  13312. task: i,
  13313. tool: this.toolindex,
  13314. content: this.studyJuri[0].cover[0].url,
  13315. type: typesql,
  13316. },
  13317. ];
  13318. this.ajax
  13319. .post(this.$store.state.api + "addCourseWorksR", params)
  13320. .then((res) => {
  13321. this.$message({
  13322. message: "提交成功",
  13323. type: "success",
  13324. });
  13325. this.studyJuri[0].cover = [];
  13326. this.dialogVisible = false;
  13327. this.getCourseDetail(2);
  13328. })
  13329. .catch((err) => {
  13330. this.$message.error("提交失败");
  13331. console.error(err);
  13332. });
  13333. },
  13334. addCourseWorksPl(i) {
  13335. let _files = this.plworkFile;
  13336. var c = 1;
  13337. for (var k = 0; k < _files.length; k++) {
  13338. if (!_files[k].username) {
  13339. c = 2;
  13340. }
  13341. }
  13342. if (c == 2) {
  13343. this.$message.error("请填写学生姓名");
  13344. return;
  13345. }
  13346. let params = [
  13347. {
  13348. ateacher: this.userid,
  13349. cid: this.id,
  13350. stage: this.courseType,
  13351. task: i,
  13352. tool: this.toolindex,
  13353. content: JSON.stringify(_files),
  13354. },
  13355. ];
  13356. this.ajax
  13357. .post(this.$store.state.api + "addCourseWorksPl", params)
  13358. .then((res) => {
  13359. this.$message({
  13360. message: "提交成功",
  13361. type: "success",
  13362. });
  13363. this.plworkFile = [];
  13364. this.dialogVisiblePl = false;
  13365. this.getCourseDetail(2);
  13366. })
  13367. .catch((err) => {
  13368. this.$message.error("提交失败");
  13369. console.error(err);
  13370. });
  13371. },
  13372. addCourseWorks2(i) {
  13373. var typesql;
  13374. if (this.fileType === 0) {
  13375. typesql = 0;
  13376. } else if (this.fileType === 1) {
  13377. typesql = 1;
  13378. } else if (this.fileType === 2) {
  13379. typesql = 3;
  13380. } else if (this.fileType === 3) {
  13381. typesql = 12;
  13382. }
  13383. if (!this.studyJuri[0].cover[0].url) {
  13384. this.$message.error("请上传文件");
  13385. return;
  13386. }
  13387. let params = [
  13388. {
  13389. uid: this.userid,
  13390. cid: this.id,
  13391. stage: this.courseType,
  13392. task: i,
  13393. tool: this.toolindex,
  13394. content: JSON.stringify({
  13395. type: typesql,
  13396. groupIndex: this.groupIndex,
  13397. url: this.studyJuri[0].cover[0].url,
  13398. }),
  13399. type: 11,
  13400. atool: 49,
  13401. text: "",
  13402. },
  13403. ];
  13404. this.ajax
  13405. .post(this.$store.state.api + "addCourseWorks5", params)
  13406. .then((res) => {
  13407. this.$message({
  13408. message: "提交成功",
  13409. type: "success",
  13410. });
  13411. this.studyJuri[0].cover = [];
  13412. this.dialogVisibleGroupWork = false;
  13413. this.getCourseDetail(2);
  13414. })
  13415. .catch((err) => {
  13416. this.$message.error("提交失败");
  13417. console.error(err);
  13418. });
  13419. },
  13420. addEnglishWork() {
  13421. this.myAnList = this.$refs['engJson'].myAnswerList;
  13422. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13423. this.$message.error("请输入作文标题和正文!");
  13424. return;
  13425. }
  13426. let params = [
  13427. {
  13428. uid: this.userid,
  13429. cid: this.id,
  13430. stage: this.courseType,
  13431. task: this.taskCount,
  13432. tool: this.englishToolIndex,
  13433. content: JSON.stringify(this.myAnList),
  13434. type: 16,
  13435. atool: 69,
  13436. text: "",
  13437. },
  13438. ];
  13439. this.ajax
  13440. .post(this.$store.state.api + "addCourseWorks5", params)
  13441. .then((res) => {
  13442. this.$message({
  13443. message: "提交成功",
  13444. type: "success",
  13445. });
  13446. this.myAnList = {};
  13447. this.englishList = {};
  13448. this.englishToolIndex = 0;
  13449. this.engDialogVisible = false;
  13450. this.selectSWorks();
  13451. this.selectStudent();
  13452. })
  13453. .catch((err) => {
  13454. this.$message.error("提交失败");
  13455. console.error(err);
  13456. });
  13457. },
  13458. addCourseWorksGong(i, data, tool) {
  13459. let params = [
  13460. {
  13461. uid: this.userid,
  13462. cid: this.id,
  13463. stage: this.courseType,
  13464. task: this.taskCount,
  13465. tool: i,
  13466. content: data,
  13467. type: 12,
  13468. atool: tool,
  13469. text: "",
  13470. },
  13471. ];
  13472. this.ajax
  13473. .post(this.$store.state.api + "addCourseWorks5", params)
  13474. .then((res) => {
  13475. this.$message({
  13476. message: "提交成功",
  13477. type: "success",
  13478. });
  13479. this.studyJuri[0].cover = [];
  13480. this.selectSWorks();
  13481. this.selectStudent();
  13482. })
  13483. .catch((err) => {
  13484. this.$message.error("提交失败");
  13485. console.error(err);
  13486. });
  13487. },
  13488. addCourseWorksGongTeacher(i, data, tool) {
  13489. let params = [
  13490. {
  13491. uid: this.sStudent.userid,
  13492. cid: this.id,
  13493. stage: this.courseType,
  13494. task: this.taskCount,
  13495. tool: i,
  13496. content: data,
  13497. type: 12,
  13498. atool: tool,
  13499. text: "",
  13500. },
  13501. ];
  13502. this.ajax
  13503. .post(this.$store.state.api + "addCourseWorks5", params)
  13504. .then((res) => {
  13505. this.$message({
  13506. message: "提交成功",
  13507. type: "success",
  13508. });
  13509. this.studyJuri[0].cover = [];
  13510. this.dialogVisibleWorks = false;
  13511. this.selectSWorks();
  13512. this.selectStudent();
  13513. })
  13514. .catch((err) => {
  13515. this.$message.error("提交失败");
  13516. console.error(err);
  13517. });
  13518. },
  13519. addCourseWorksGongPl(i, data, tool, type) {
  13520. let params = [
  13521. {
  13522. uid: this.sStudent.userid,
  13523. cid: this.id,
  13524. stage: this.courseType,
  13525. task: this.taskCount,
  13526. tool: i,
  13527. content: data,
  13528. type: type,
  13529. atool: tool,
  13530. text: "",
  13531. },
  13532. ];
  13533. this.ajax
  13534. .post(this.$store.state.api + "addCourseWorks5", params)
  13535. .then((res) => {
  13536. this.$message({
  13537. message: "提交成功",
  13538. type: "success",
  13539. });
  13540. this.studyJuri[0].cover = [];
  13541. this.dialogVisibleWorks = false;
  13542. this.selectSWorks();
  13543. this.selectStudent();
  13544. })
  13545. .catch((err) => {
  13546. this.$message.error("提交失败");
  13547. console.error(err);
  13548. });
  13549. },
  13550. addCourseWorksTeacher(i) {
  13551. var typesql;
  13552. if (this.sTool == 32) {
  13553. this.addCourseWorksGongTeacher(
  13554. this.toolindex,
  13555. this.studyJuri[0].cover[0].url,
  13556. this.sTool
  13557. );
  13558. return;
  13559. }
  13560. if (this.fileType === 0) {
  13561. typesql = 1;
  13562. } else if (this.fileType === 1) {
  13563. typesql = 4;
  13564. } else if (this.fileType === 2) {
  13565. typesql = 5;
  13566. } else if (this.fileType === 3) {
  13567. typesql = 12;
  13568. }
  13569. if (this.sTool == 50) {
  13570. this.addCourseWorksGongPl(
  13571. this.toolindex,
  13572. this.studyJuri[0].cover[0].url,
  13573. this.sTool,
  13574. typesql
  13575. );
  13576. return;
  13577. }
  13578. if (!this.studyJuri[0].cover[0].url) {
  13579. this.$message.error("请上传文件");
  13580. return;
  13581. }
  13582. let params = [
  13583. {
  13584. uid: this.sStudent.userid,
  13585. cid: this.id,
  13586. stage: this.courseType,
  13587. task: i,
  13588. tool: this.toolindex,
  13589. content: this.studyJuri[0].cover[0].url,
  13590. type: typesql,
  13591. ateacher: this.userid,
  13592. },
  13593. ];
  13594. this.ajax
  13595. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13596. .then((res) => {
  13597. this.$message({
  13598. message: "提交成功",
  13599. type: "success",
  13600. });
  13601. this.studyJuri[0].cover = [];
  13602. this.dialogVisibleWorks = false;
  13603. this.getCourseDetail(2);
  13604. })
  13605. .catch((err) => {
  13606. this.$message.error("提交失败");
  13607. console.error(err);
  13608. });
  13609. },
  13610. selectUploadStudent(type) {
  13611. const loading = this.$loading.service({
  13612. background: "rgba(255, 255, 255, 0.7)",
  13613. target: document.body,
  13614. });
  13615. let params = {
  13616. cid: this.uploadCid,
  13617. oid: this.oid,
  13618. cn: "",
  13619. };
  13620. this.ajax
  13621. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13622. .then((res) => {
  13623. loading.close();
  13624. var studentK = [];
  13625. if (this.isWorksS[this.toolindex].length > 0) {
  13626. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13627. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13628. }
  13629. studentK = studentK.join(",");
  13630. }
  13631. this.uploadStudentJuri = res.data[0].filter((el) => {
  13632. return studentK.indexOf(el.userid) == -1;
  13633. });
  13634. if (this.worksSName && this.worksSid) {
  13635. this.uploadStudentJuri.push({
  13636. userid: this.worksSid,
  13637. name: this.worksSName,
  13638. });
  13639. }
  13640. if (type == 1) {
  13641. this.plworkFile = [];
  13642. this.dialogVisibleSname = true;
  13643. } else if (type == 2) {
  13644. this.dialogVisiblePl = true;
  13645. }
  13646. })
  13647. .catch((err) => {
  13648. loading.close();
  13649. console.error(err);
  13650. });
  13651. },
  13652. selectPickStudent() {
  13653. const loading = this.$loading.service({
  13654. background: "rgba(255, 255, 255, 0.7)",
  13655. target: document.body,
  13656. });
  13657. let params = {
  13658. cid: this.uploadCid,
  13659. oid: this.oid,
  13660. cn: "",
  13661. };
  13662. this.ajax
  13663. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13664. .then((res) => {
  13665. loading.close();
  13666. this.uploadStudentJuri = res.data[0];
  13667. this.dialogVisiblePickPeople = true;
  13668. })
  13669. .catch((err) => {
  13670. loading.close();
  13671. console.error(err);
  13672. });
  13673. },
  13674. arrayToArray(arrayo, arrayt) {
  13675. let array1 = arrayo;
  13676. let array2 = arrayt;
  13677. let commonElements = [];
  13678. for (let i = 0; i < array1.length; i++) {
  13679. for (let j = 0; j < array2.length; j++) {
  13680. if (array1[i] === array2[j]) {
  13681. commonElements.push(array1[i]);
  13682. }
  13683. }
  13684. }
  13685. return commonElements;
  13686. },
  13687. selectWorksStudent() {
  13688. let params = {
  13689. oid: this.oid,
  13690. cid: this.courseDetail.juri,
  13691. };
  13692. this.ajax
  13693. .get(this.$store.state.api + "selectWorksStudent", params)
  13694. .then((res) => {
  13695. var a = res.data[0];
  13696. for (var i = 0; i < this.isWorksS.length; i++) {
  13697. this.noWorksS[i] = [];
  13698. var studentK = [];
  13699. if (this.isWorksS[i].length > 0) {
  13700. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13701. studentK.push(this.isWorksS[i][z].uid);
  13702. }
  13703. studentK = studentK.join(",");
  13704. for (var j = 0; j < a.length; j++) {
  13705. if (studentK.indexOf(a[j].userid) == -1) {
  13706. if (this.tcid) {
  13707. // a[j].classid.indexOf(this.tcid) != -1
  13708. if (
  13709. this.arrayToArray(
  13710. a[j].classid.split(","),
  13711. this.tcid.split(",")
  13712. ).length
  13713. ) {
  13714. this.noWorksS[i].push({
  13715. student: a[j].name,
  13716. userid: a[j].userid,
  13717. });
  13718. }
  13719. } else {
  13720. this.noWorksS[i].push({
  13721. student: a[j].name,
  13722. userid: a[j].userid,
  13723. });
  13724. }
  13725. }
  13726. }
  13727. } else {
  13728. for (var k = 0; k < a.length; k++) {
  13729. if (this.tcid) {
  13730. if (
  13731. this.arrayToArray(
  13732. a[k].classid.split(","),
  13733. this.tcid.split(",")
  13734. ).length
  13735. ) {
  13736. this.noWorksS[i].push({
  13737. student: a[k].name,
  13738. userid: a[k].userid,
  13739. });
  13740. }
  13741. } else {
  13742. this.noWorksS[i].push({
  13743. student: a[k].name,
  13744. userid: a[k].userid,
  13745. });
  13746. }
  13747. }
  13748. }
  13749. }
  13750. this.$forceUpdate();
  13751. if (
  13752. Object.keys(this.commentDetail).length &&
  13753. Object.keys(this.commentIndexJson).length &&
  13754. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13755. ) {
  13756. let a = 1;
  13757. let c = this.commentIndexJson;
  13758. if (
  13759. this.commentIndexJson.gindex ||
  13760. this.commentIndexJson.gindex === 0
  13761. ) {
  13762. for (
  13763. var i = 0;
  13764. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13765. i++
  13766. ) {
  13767. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13768. groupA: for (var k = 0; k < _el.length; k++) {
  13769. let el = _el[k];
  13770. if (el.wid == this.commentDetail.wid) {
  13771. a = 2;
  13772. this.commentOther(
  13773. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13774. this.commentIndexJson.toolIndex,
  13775. k,
  13776. this.commentIndexJson.gindex
  13777. );
  13778. break groupA;
  13779. }
  13780. }
  13781. }
  13782. if (a === 1) {
  13783. this.commentDetail = [];
  13784. this.commentIndexJson = {};
  13785. this.commentDialogVisible = false;
  13786. this.$message("此作业已被删除");
  13787. }
  13788. } else {
  13789. if (this.isGroup && this.commentIndexJson.gid) {
  13790. groupA: for (
  13791. var i = 0;
  13792. i < this.courseGroup.group.length;
  13793. i++
  13794. ) {
  13795. let _group = this.courseGroup.group[i];
  13796. if (_group.id == this.commentIndexJson.gid) {
  13797. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13798. for (var k = 0; k < _el2.length; k++) {
  13799. let el2 = _el2[k];
  13800. if (el2.wid == this.commentDetail.wid) {
  13801. a = 2;
  13802. this.commentOther(
  13803. _el2[k],
  13804. this.commentIndexJson.toolIndex,
  13805. k,
  13806. null,
  13807. this.commentIndexJson.gid
  13808. );
  13809. break groupA;
  13810. }
  13811. }
  13812. }
  13813. }
  13814. }
  13815. if (a == 1) {
  13816. for (
  13817. var i = 0;
  13818. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13819. i++
  13820. ) {
  13821. let el =
  13822. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13823. if (el.wid == this.commentDetail.wid) {
  13824. a = 2;
  13825. this.commentOther(
  13826. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13827. this.commentIndexJson.toolIndex,
  13828. i
  13829. );
  13830. break;
  13831. }
  13832. }
  13833. }
  13834. if (a === 1) {
  13835. this.commentDetail = [];
  13836. this.commentIndexJson = {};
  13837. this.commentDialogVisible = false;
  13838. this.$message("此作业已被删除");
  13839. }
  13840. }
  13841. }
  13842. })
  13843. .catch((err) => {
  13844. console.error(err);
  13845. });
  13846. },
  13847. selectStudent() {
  13848. //学生查看自己作业
  13849. let params = {
  13850. uid: this.userid,
  13851. cid: this.id,
  13852. s: this.courseType,
  13853. t: this.taskCount,
  13854. };
  13855. this.ajax
  13856. .get(this.$store.state.api + "selectStudentWorks", params)
  13857. .then((res) => {
  13858. var a =
  13859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13860. this.taskCount
  13861. ].toolChoose;
  13862. var b = res.data[0];
  13863. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13864. var y = [
  13865. "AVI",
  13866. "NAVI",
  13867. "MPEG",
  13868. "ASF",
  13869. "MOV",
  13870. "WMV",
  13871. "3GP",
  13872. "RM",
  13873. "RMVB",
  13874. "FLV",
  13875. "F4V",
  13876. "H.264",
  13877. "H.265",
  13878. "REAL VIDEO",
  13879. "MKV",
  13880. "WebM",
  13881. "HDDVD",
  13882. "MP4",
  13883. "MPG",
  13884. "M4V",
  13885. "MGV",
  13886. "OGV",
  13887. "QTM",
  13888. "STR",
  13889. "AMC",
  13890. "DVX",
  13891. "EVO",
  13892. "DAT",
  13893. "OGG",
  13894. "OGM",
  13895. ];
  13896. for (var i = 0; i < a.length; i++) {
  13897. this.workStudent[i] = [];
  13898. for (var j = 0; j < b.length; j++) {
  13899. if (i == b[j].tool) {
  13900. if (
  13901. (b[j].type == 1 ||
  13902. b[j].type == 4 ||
  13903. b[j].type == 5 ||
  13904. b[j].type == 6 ||
  13905. b[j].type == 12 ||
  13906. b[j].type == 7) &&
  13907. a[i].tool[0] != 15 &&
  13908. a[i].tool[0] != 4 &&
  13909. a[i].tool[0] != 45 &&
  13910. a[i].tool[0] != 50 &&
  13911. a[i].tool[0] != 32 &&
  13912. a[i].tool[0] != 57 &&
  13913. a[i].tool[0] != 52 &&
  13914. a[i].tool[0] != 69
  13915. ) {
  13916. if (
  13917. c.indexOf(
  13918. b[j].content
  13919. .split(".")
  13920. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13921. ) != -1 &&
  13922. a[i].tool[0] == 16 &&
  13923. b[j].atool != 50
  13924. ) {
  13925. this.workStudent[i].push({
  13926. works: b[j].content,
  13927. sName: b[j].name,
  13928. score: b[j].score,
  13929. img: b[j].img,
  13930. type: 1,
  13931. time: b[j].time,
  13932. userid: b[j].userid,
  13933. wid: b[j].id,
  13934. });
  13935. } else if (
  13936. y.indexOf(
  13937. b[j].content
  13938. .split(".")
  13939. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13940. ) != -1 &&
  13941. a[i].tool[0] == 16 &&
  13942. b[j].atool != 50
  13943. ) {
  13944. this.workStudent[i].push({
  13945. userid: b[j].userid,
  13946. wid: b[j].id,
  13947. works: b[j].content,
  13948. sName: b[j].name,
  13949. score: b[j].score,
  13950. img: b[j].img,
  13951. type: 3,
  13952. time: b[j].time,
  13953. });
  13954. } else if (b[j].type == 6 && b[j].atool != 50) {
  13955. this.workStudent[i].push({
  13956. userid: b[j].userid,
  13957. wid: b[j].id,
  13958. works: b[j].content,
  13959. sName: b[j].name,
  13960. score: b[j].score,
  13961. img: b[j].img,
  13962. type: 4,
  13963. time: b[j].time,
  13964. });
  13965. } else if (b[j].type == 7 && b[j].atool != 50) {
  13966. this.workStudent[i].push({
  13967. userid: b[j].userid,
  13968. wid: b[j].id,
  13969. works: b[j].content,
  13970. sName: b[j].name,
  13971. score: b[j].score,
  13972. img: b[j].img,
  13973. type: 5,
  13974. time: b[j].time,
  13975. });
  13976. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13977. this.workStudent[i].push({
  13978. works: b[j].content,
  13979. sName: b[j].name,
  13980. score: b[j].score,
  13981. img: b[j].img,
  13982. type: 12,
  13983. time: b[j].time,
  13984. userid: b[j].userid,
  13985. wid: b[j].id,
  13986. });
  13987. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13988. this.workStudent[i].push({
  13989. works: b[j].content,
  13990. sName: b[j].name,
  13991. score: b[j].score,
  13992. img: b[j].img,
  13993. type: 0,
  13994. time: b[j].time,
  13995. userid: b[j].userid,
  13996. wid: b[j].id,
  13997. });
  13998. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13999. this.workStudent[i].push({
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. score: b[j].score,
  14003. img: b[j].img,
  14004. type: 0,
  14005. time: b[j].time,
  14006. userid: b[j].userid,
  14007. wid: b[j].id,
  14008. });
  14009. }
  14010. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14011. this.workStudent[i].push({
  14012. works: b[j].content,
  14013. sName: b[j].name,
  14014. score: b[j].score,
  14015. img: b[j].img,
  14016. type: 2,
  14017. time: b[j].time,
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. });
  14021. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14022. //问卷
  14023. this.workStudent[i].push({
  14024. works: b[j].content,
  14025. sName: b[j].name,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. type: 2,
  14029. time: b[j].time,
  14030. userid: b[j].userid,
  14031. wid: b[j].id,
  14032. });
  14033. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14034. //选择题
  14035. this.workStudent[i].push({
  14036. works: b[j].content,
  14037. sName: b[j].name,
  14038. score: b[j].score,
  14039. img: b[j].img,
  14040. type: 8,
  14041. time: b[j].time,
  14042. userid: b[j].userid,
  14043. wid: b[j].id,
  14044. });
  14045. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14046. //选择题
  14047. this.workStudent[i].push({
  14048. works: b[j].content,
  14049. sName: b[j].name,
  14050. score: b[j].score,
  14051. img: b[j].img,
  14052. type: 9,
  14053. time: b[j].time,
  14054. userid: b[j].userid,
  14055. wid: b[j].id,
  14056. });
  14057. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14058. //选择题
  14059. this.workStudent[i].push({
  14060. works: b[j].content,
  14061. sName: b[j].name,
  14062. score: b[j].score,
  14063. img: b[j].img,
  14064. type: 10,
  14065. time: b[j].time,
  14066. userid: b[j].userid,
  14067. wid: b[j].id,
  14068. });
  14069. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14070. //选择题
  14071. this.workStudent[i].push({
  14072. works: b[j].content,
  14073. sName: b[j].name,
  14074. score: b[j].score,
  14075. img: b[j].img,
  14076. type: 13,
  14077. time: b[j].time,
  14078. userid: b[j].userid,
  14079. wid: b[j].id,
  14080. });
  14081. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14082. //选择题
  14083. this.workStudent[i].push({
  14084. works: b[j].content,
  14085. sName: b[j].name,
  14086. score: b[j].score,
  14087. img: b[j].img,
  14088. type: 12,
  14089. time: b[j].time,
  14090. userid: b[j].userid,
  14091. wid: b[j].id,
  14092. });
  14093. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14094. //选择题
  14095. this.workStudent[i].push({
  14096. works: b[j].content,
  14097. sName: b[j].name,
  14098. score: b[j].score,
  14099. img: b[j].img,
  14100. type: 12,
  14101. time: b[j].time,
  14102. userid: b[j].userid,
  14103. wid: b[j].id,
  14104. });
  14105. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14106. //选择题
  14107. this.workStudent[i].push({
  14108. works: b[j].content,
  14109. sName: b[j].name,
  14110. score: b[j].score,
  14111. img: b[j].img,
  14112. type: 15,
  14113. time: b[j].time,
  14114. userid: b[j].userid,
  14115. wid: b[j].id,
  14116. });
  14117. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14118. //英语写作
  14119. this.workStudent[i].push({
  14120. works: b[j].content,
  14121. sName: b[j].name,
  14122. score: b[j].score,
  14123. img: b[j].img,
  14124. type: 16,
  14125. time: b[j].time,
  14126. userid: b[j].userid,
  14127. wid: b[j].id,
  14128. aiCode: b[j].aiCode,
  14129. teacherCode: b[j].teacherCode
  14130. });
  14131. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14132. //英语口语
  14133. this.workStudent[i].push({
  14134. works: b[j].content,
  14135. sName: b[j].name,
  14136. score: b[j].score,
  14137. img: b[j].img,
  14138. type: 17,
  14139. time: b[j].time,
  14140. userid: b[j].userid,
  14141. wid: b[j].id,
  14142. });
  14143. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14144. //交互视频
  14145. this.workStudent[i].push({
  14146. works: b[j].content,
  14147. sName: b[j].name,
  14148. score: b[j].score,
  14149. img: b[j].img,
  14150. type: 14,
  14151. time: b[j].time,
  14152. userid: b[j].userid,
  14153. wid: b[j].id,
  14154. });
  14155. }
  14156. }
  14157. }
  14158. }
  14159. })
  14160. .catch((err) => {
  14161. console.error(err);
  14162. });
  14163. },
  14164. openVideo(w) {
  14165. this.videoDetail = {};
  14166. this.playerOptions1.sources[0].src = w.works;
  14167. this.videoDetail = this.playerOptions1;
  14168. this.videoVisible = true;
  14169. },
  14170. isLikes(wid, uid, t, c, isLikes,sName) {
  14171. if (isLikes == false) {
  14172. let params = [
  14173. {
  14174. wid: wid,
  14175. lid: uid,
  14176. t: t,
  14177. c: c,
  14178. },
  14179. ];
  14180. this.ajax
  14181. .post(this.$store.state.api + "insertComment", params)
  14182. .then((res) => {
  14183. this.$message({
  14184. message: "点赞成功",
  14185. type: "success",
  14186. });
  14187. this.selectSWorks();
  14188. this.selectStudent();
  14189. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14190. })
  14191. .catch((err) => {
  14192. this.$message.error("点赞失败");
  14193. console.error(err);
  14194. });
  14195. } else {
  14196. let params = {
  14197. wid: wid,
  14198. lid: uid,
  14199. type: t,
  14200. };
  14201. this.ajax
  14202. .get(this.$store.state.api + "deleteComment", params)
  14203. .then((res) => {
  14204. this.$message({
  14205. message: "取消点赞成功",
  14206. type: "success",
  14207. });
  14208. this.selectSWorks();
  14209. this.selectStudent();
  14210. })
  14211. .catch((err) => {
  14212. console.error(err);
  14213. });
  14214. }
  14215. },
  14216. deleteComment(wid) {
  14217. this.$confirm("确定删除此评论吗?", "提示", {
  14218. confirmButtonText: "确定",
  14219. cancelButtonText: "取消",
  14220. type: "warning",
  14221. })
  14222. .then(() => {
  14223. let params = {
  14224. id: wid,
  14225. };
  14226. this.ajax
  14227. .get(this.$store.state.api + "deleteComment2", params)
  14228. .then((res) => {
  14229. this.$message({
  14230. message: "删除评论成功",
  14231. type: "success",
  14232. });
  14233. this.selectSWorks();
  14234. this.selectStudent();
  14235. })
  14236. .catch((err) => {
  14237. console.error(err);
  14238. });
  14239. })
  14240. .catch(() => {});
  14241. },
  14242. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14243. this.commentIndexJson = {
  14244. toolIndex: toolIndex,
  14245. wIndex: wIndex,
  14246. gindex: gindex,
  14247. gid: gid,
  14248. };
  14249. this.commentDetail = [];
  14250. this.commentDialogVisible = true;
  14251. this.commentDetail = w;
  14252. if (w.works && w.type == 1) {
  14253. // this.pptImgUrl = "";
  14254. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14255. if (
  14256. a.indexOf(
  14257. w.works
  14258. .split(".")
  14259. [w.works.split(".").length - 1].toLocaleUpperCase()
  14260. ) != -1
  14261. ) {
  14262. let _uuurl = await this.checkLink(w.works);
  14263. console.log(_uuurl)
  14264. this.pptImgUrl =
  14265. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14266. this.showPDF = false;
  14267. } else if (
  14268. w.works
  14269. .split(".")
  14270. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14271. ) {
  14272. this.pptImgUrl = w.works;
  14273. this.showPDF = true;
  14274. }
  14275. } else if (w.works && w.type == 3) {
  14276. this.videoDetail = {};
  14277. this.playerOptions1.sources[0].src = w.works;
  14278. this.videoDetail = this.playerOptions1;
  14279. // this.videoVisible = true;
  14280. } else if (w.works && w.type == 4) {
  14281. this.eScore = JSON.parse(w.works);
  14282. this.rateJson =
  14283. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14284. this.taskCount
  14285. ].toolChoose[toolIndex].rateJson;
  14286. } else if (w.works && w.type == 10) {
  14287. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14288. } else if (w.works && w.type == 13) {
  14289. this.wordJson =
  14290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14291. this.taskCount
  14292. ].toolChoose[toolIndex].wordJson;
  14293. }
  14294. },
  14295. async openScore(w, index) {
  14296. this.wScore = 0;
  14297. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14298. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14299. this.commentDetail = [];
  14300. if(w.type == 17){
  14301. this.dialogVisibleENScore = true;
  14302. }else{
  14303. this.dialogVisibleScore = true;
  14304. }
  14305. this.commentDetail = w;
  14306. if (w.works && w.type == 1) {
  14307. this.pptImgUrl = "";
  14308. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14309. if (
  14310. a.indexOf(
  14311. w.works
  14312. .split(".")
  14313. [w.works.split(".").length - 1].toLocaleUpperCase()
  14314. ) != -1
  14315. ) {
  14316. let _uuurl = await this.checkLink(w.works);
  14317. console.log(_uuurl)
  14318. this.pptImgUrl =
  14319. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14320. this.showPDF = false;
  14321. } else if (
  14322. w.works
  14323. .split(".")
  14324. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14325. ) {
  14326. this.pptImgUrl = w.works;
  14327. this.showPDF = true;
  14328. }
  14329. } else if (w.works && w.type == 3) {
  14330. this.videoDetail = {};
  14331. this.playerOptions1.sources[0].src = w.works;
  14332. this.videoDetail = this.playerOptions1;
  14333. }else if(w.type == 17){
  14334. let englishVoiceJson = {}
  14335. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14336. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14337. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14338. .toolChoose[index].englishVoiceJson
  14339. : {};
  14340. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14341. }
  14342. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14343. },
  14344. addComment(wid, uid, t,detail) {
  14345. if (this.commentText == "") {
  14346. this.$message.error("请输入评论");
  14347. return;
  14348. }
  14349. let params2 = [
  14350. {
  14351. wid: wid,
  14352. lid: uid,
  14353. t: t,
  14354. },
  14355. ];
  14356. this.ajax
  14357. .post(this.$store.state.api + "getComment", params2)
  14358. .then((res) => {
  14359. if (res.data[0].length > 0) {
  14360. this.$message.error("一个作业只能评论一条");
  14361. } else {
  14362. let params = [
  14363. {
  14364. wid: wid,
  14365. lid: uid,
  14366. t: t,
  14367. c: this.commentText,
  14368. },
  14369. ];
  14370. this.ajax
  14371. .post(this.$store.state.api + "insertComment", params)
  14372. .then((res) => {
  14373. this.$message({
  14374. message: "评论成功",
  14375. type: "success",
  14376. });
  14377. this.commentText = "";
  14378. this.selectSWorks();
  14379. this.selectStudent();
  14380. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14381. })
  14382. .catch((err) => {
  14383. this.$message.error("评论失败");
  14384. console.error(err);
  14385. });
  14386. }
  14387. })
  14388. .catch((err) => {
  14389. // this.$message.error("评论失败");
  14390. console.error(err);
  14391. });
  14392. },
  14393. scoreWork(wid,sName) {
  14394. if (this.wScore == 0) {
  14395. this.$message.error("请评分");
  14396. return;
  14397. }
  14398. let params = [
  14399. {
  14400. wid: wid,
  14401. score: JSON.stringify({
  14402. wScore: this.wScore,
  14403. detail: this.scoreDetail,
  14404. }),
  14405. },
  14406. ];
  14407. this.ajax
  14408. .post(this.$store.state.api + "scoreWork", params)
  14409. .then((res) => {
  14410. this.$message({
  14411. message: "评分成功",
  14412. type: "success",
  14413. });
  14414. this.wScore = 0;
  14415. this.scoreDetail = "";
  14416. this.dialogVisibleScore = false;
  14417. this.selectSWorks();
  14418. this.selectStudent();
  14419. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14420. })
  14421. .catch((err) => {
  14422. this.$message.error("评分失败");
  14423. console.error(err);
  14424. });
  14425. },
  14426. openXz(w, i) {
  14427. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14428. .taskJson[this.taskCount].toolChoose[i].selectJson
  14429. ? JSON.parse(
  14430. JSON.stringify(
  14431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14432. this.taskCount
  14433. ].toolChoose[i].selectJson
  14434. )
  14435. )
  14436. : { url: "", select: [], answer: [] };
  14437. var a = w.works.split(",");
  14438. for (var k = 0; k < a.length; k++) {
  14439. a[k] = parseInt(a[k]);
  14440. }
  14441. this.selectAnswer = { answer: a, stu: w.sName };
  14442. this.isSelect = true;
  14443. this.dialogVisibleSelect = true;
  14444. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14445. },
  14446. openSen(w, i) {
  14447. this.sentenceList1 = JSON.parse(w.works);
  14448. this.sentenceList1.stuName = w.sName;
  14449. this.dialogVisibleSentence1 = true;
  14450. },
  14451. openPj(w, toolindex) {
  14452. this.isStar = true;
  14453. this.eScore = JSON.parse(w);
  14454. this.rateJson =
  14455. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14456. this.taskCount
  14457. ].toolChoose[toolindex].rateJson;
  14458. this.studentEvalDialogVisible = true;
  14459. },
  14460. openEnglishEva(id,i){
  14461. let params = {
  14462. wid: id
  14463. };
  14464. this.ajax
  14465. .get(this.$store.state.api + "selectEngWork", params)
  14466. .then((res) => {
  14467. this.evaEngJson.message = res.data[0][0];
  14468. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14469. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14470. .toolChoose[i].englishList;
  14471. this.engEvaDialogVisible = true;
  14472. })
  14473. .catch((err) => {
  14474. console.error(err);
  14475. });
  14476. },
  14477. deleteWorks(id) {
  14478. this.$confirm("确定删除此作业吗?", "提示", {
  14479. confirmButtonText: "确定",
  14480. cancelButtonText: "取消",
  14481. type: "warning",
  14482. })
  14483. .then(() => {
  14484. let params = [
  14485. {
  14486. id: id,
  14487. },
  14488. ];
  14489. this.ajax
  14490. .post(this.$store.state.api + "deleteCourseWork", params)
  14491. .then((res) => {
  14492. this.$message({
  14493. message: "删除成功",
  14494. type: "success",
  14495. });
  14496. this.selectStudent();
  14497. this.selectSWorks();
  14498. this.selectSLook();
  14499. })
  14500. .catch((err) => {
  14501. this.$message.error("网络异常");
  14502. console.error(err);
  14503. });
  14504. })
  14505. .catch(() => {});
  14506. },
  14507. selectSWorks(gindex) {
  14508. //教师查看全部作业
  14509. let params = {
  14510. cid: this.id,
  14511. s: this.courseType,
  14512. t: this.taskCount,
  14513. };
  14514. this.ajax
  14515. .get(this.$store.state.api + "selectSWorks", params)
  14516. .then((res) => {
  14517. var a =
  14518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14519. this.taskCount
  14520. ].toolChoose;
  14521. var b = res.data[0];
  14522. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14523. var y = [
  14524. "AVI",
  14525. "NAVI",
  14526. "MPEG",
  14527. "ASF",
  14528. "MOV",
  14529. "WMV",
  14530. "3GP",
  14531. "RM",
  14532. "RMVB",
  14533. "FLV",
  14534. "F4V",
  14535. "H.264",
  14536. "H.265",
  14537. "REAL VIDEO",
  14538. "MKV",
  14539. "WebM",
  14540. "HDDVD",
  14541. "MP4",
  14542. "MPG",
  14543. "M4V",
  14544. "MGV",
  14545. "OGV",
  14546. "QTM",
  14547. "STR",
  14548. "AMC",
  14549. "DVX",
  14550. "EVO",
  14551. "DAT",
  14552. "OGG",
  14553. "OGM",
  14554. ];
  14555. var d = res.data[1];
  14556. var e = res.data[2];
  14557. var f = res.data[3];
  14558. let _worksStudent = [];
  14559. var _worksStudent2 = [];
  14560. for (var i = 0; i < a.length; i++) {
  14561. _worksStudent[i] = [];
  14562. _worksStudent2[i] = [];
  14563. if (
  14564. !this.isCloseList[i] ||
  14565. this.isCloseList[i].isClose == undefined
  14566. ) {
  14567. this.isCloseList[i] = { isClose: 0 };
  14568. }
  14569. this.groupStudent[i] = [];
  14570. this.groupStudentUid[i] = [];
  14571. if (this.isGroup) {
  14572. for (
  14573. var groupI = 0;
  14574. groupI < this.courseGroup.group.length;
  14575. groupI++
  14576. ) {
  14577. this.courseGroup.group[groupI].works[i] = [];
  14578. }
  14579. }
  14580. this.isWorksS[i] = [];
  14581. this.checkJson[i] = [];
  14582. if (a[i].tool[0] == 49) {
  14583. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14584. this.groupStudent[i][gA] = [];
  14585. this.groupStudentUid[i][gA] = [];
  14586. _worksStudent[i][gA] = [];
  14587. _worksStudent2[i][gA] = [];
  14588. this.isCloseList[i][gA] = [];
  14589. for (var g = 0; g < f.length; g++) {
  14590. if (
  14591. f[g].ttype == 2 &&
  14592. this.tcid &&
  14593. this.arrayToArray(
  14594. (f[g].classid ? f[g].classid.split(",") : []),
  14595. this.tcid.split(",")
  14596. ).length == 0
  14597. ) {
  14598. continue;
  14599. }
  14600. let _classId = this.arrayToArray(
  14601. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14602. this.classId ? this.classId.split(",") : []
  14603. )
  14604. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14605. (f[g].classid ? f[g].classid.split(",") : []),
  14606. this.tcid.split(",")
  14607. ).length !== 0 || this.arrayToArray(
  14608. (f[g].classid ? f[g].classid.split(",") : []),
  14609. _classId
  14610. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14611. this.groupStudent[i][gA].push(f[g]);
  14612. this.groupStudentUid[i][gA].push(f[g].userid);
  14613. }
  14614. }
  14615. }
  14616. this.$forceUpdate();
  14617. }
  14618. for (var j = 0; j < b.length; j++) {
  14619. if (
  14620. b[j].ttype == 2 &&
  14621. this.tcid &&
  14622. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14623. .length == 0
  14624. ) {
  14625. continue;
  14626. }
  14627. var likesCount = 0;
  14628. var commentCount = 0;
  14629. var isLikes = false;
  14630. var commentJson = [];
  14631. var likeJson = [];
  14632. var data = b[j];
  14633. if (i == b[j].tool) {
  14634. if (data.type == 2 && a[i].tool[0] == 4) {
  14635. // if(JSON.parse(data.content)[0].anwer){
  14636. var checkL =
  14637. JSON.parse(data.content)[0].anwer instanceof Array
  14638. ? JSON.parse(data.content)[0].anwer
  14639. : JSON.parse(data.content)[0].anwer.split(",");
  14640. for (var z = 0; z < checkL.length; z++) {
  14641. if (!this.checkJson[i][z]) {
  14642. this.checkJson[i].push({
  14643. checkCount: [],
  14644. checkPerson: [],
  14645. rightPerson: [],
  14646. });
  14647. }
  14648. if (!this.checkJson[i][z].checkCount.length) {
  14649. this.checkJson[i][z].checkCount = [];
  14650. let _askItemCount = JSON.parse(data.content)[0].askJson
  14651. .askJson[z].askItem;
  14652. for (var aic = 0; aic < _askItemCount; aic++) {
  14653. this.checkJson[i][z].checkCount.push(0);
  14654. }
  14655. }
  14656. if (checkL[z] instanceof Array) {
  14657. if (
  14658. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14659. checkL[z].sort().join(",")
  14660. ) {
  14661. this.checkJson[i][z].rightPerson.push(data.name);
  14662. }
  14663. for (var q = 0; q < checkL[z].length; q++) {
  14664. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14665. ? this.checkJson[i][z].checkPerson[
  14666. parseInt(checkL[z][q])
  14667. ].push(data.name)
  14668. : (this.checkJson[i][z].checkPerson[
  14669. parseInt(checkL[z][q])
  14670. ] = [data.name]);
  14671. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14672. ? this.checkJson[i][z].checkCount[
  14673. parseInt(checkL[z][q])
  14674. ]++
  14675. : (this.checkJson[i][z].checkCount[
  14676. parseInt(checkL[z][q])
  14677. ] = 1);
  14678. }
  14679. } else {
  14680. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14681. this.checkJson[i][z].rightPerson.push(data.name);
  14682. }
  14683. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14684. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14685. ? this.checkJson[i][z].checkPerson[
  14686. parseInt(checkL[z])
  14687. ].push(data.name)
  14688. : (this.checkJson[i][z].checkPerson[
  14689. parseInt(checkL[z])
  14690. ] = [data.name]);
  14691. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14692. ? this.checkJson[i][z].checkCount[
  14693. parseInt(checkL[z])
  14694. ]++
  14695. : (this.checkJson[i][z].checkCount[
  14696. parseInt(checkL[z])
  14697. ] = 1);
  14698. }
  14699. }
  14700. }
  14701. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14702. var checkL = JSON.parse(data.content)[0].anwer;
  14703. for (var z = 0; z < checkL.length; z++) {
  14704. if (!this.checkJson[i][z]) {
  14705. this.checkJson[i].push({
  14706. checkCount: [],
  14707. checkPerson: [],
  14708. rightPerson: [],
  14709. });
  14710. }
  14711. if (!this.checkJson[i][z].checkCount.length) {
  14712. this.checkJson[i][z].checkCount = [];
  14713. let _askItemCount = JSON.parse(data.content)[0].testJson
  14714. .testJson[z].testItem;
  14715. for (var aic = 0; aic < _askItemCount; aic++) {
  14716. this.checkJson[i][z].checkCount.push(0);
  14717. }
  14718. }
  14719. if (checkL[z] instanceof Array) {
  14720. if (
  14721. JSON.parse(data.content)[0]
  14722. .testJson.testJson[z].answer.sort()
  14723. .join(",") == checkL[z].sort().join(",")
  14724. ) {
  14725. this.checkJson[i][z].rightPerson.push(data.name);
  14726. }
  14727. for (var q = 0; q < checkL[z].length; q++) {
  14728. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14729. ? this.checkJson[i][z].checkPerson[
  14730. parseInt(checkL[z][q])
  14731. ].push(data.name)
  14732. : (this.checkJson[i][z].checkPerson[
  14733. parseInt(checkL[z][q])
  14734. ] = [data.name]);
  14735. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14736. ? this.checkJson[i][z].checkCount[
  14737. parseInt(checkL[z][q])
  14738. ]++
  14739. : (this.checkJson[i][z].checkCount[
  14740. parseInt(checkL[z][q])
  14741. ] = 1);
  14742. }
  14743. } else {
  14744. if (
  14745. JSON.parse(data.content)[0].testJson.testJson[z]
  14746. .answer == checkL[z]
  14747. ) {
  14748. this.checkJson[i][z].rightPerson.push(data.name);
  14749. }
  14750. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14751. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14752. ? this.checkJson[i][z].checkPerson[
  14753. parseInt(checkL[z])
  14754. ].push(data.name)
  14755. : (this.checkJson[i][z].checkPerson[
  14756. parseInt(checkL[z])
  14757. ] = [data.name]);
  14758. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14759. ? this.checkJson[i][z].checkCount[
  14760. parseInt(checkL[z])
  14761. ]++
  14762. : (this.checkJson[i][z].checkCount[
  14763. parseInt(checkL[z])
  14764. ] = 1);
  14765. }
  14766. }
  14767. }
  14768. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14769. var checkL = JSON.parse(data.content);
  14770. for (var z = 0; z < checkL.length; z++) {
  14771. if (!this.checkJson[i][z]) {
  14772. this.checkJson[i].push({
  14773. checkCount: [],
  14774. checkPerson: [],
  14775. rightPerson: [],
  14776. });
  14777. }
  14778. this.checkJson[i][z].checkPerson.push(data.name);
  14779. if (
  14780. checkL[z].chooseSenList.toString() ==
  14781. checkL[z].rightAnswer.toString()
  14782. ) {
  14783. this.checkJson[i][z].rightPerson.push(data.name);
  14784. }
  14785. }
  14786. }
  14787. for (var k = 0; k < d.length; k++) {
  14788. //点赞
  14789. if (d[k].workId == b[j].id) {
  14790. likesCount++;
  14791. likeJson.push(d[k])
  14792. if (d[k].likesId == this.userid) {
  14793. isLikes = true;
  14794. }
  14795. }
  14796. }
  14797. for (var l = 0; l < e.length; l++) {
  14798. //评论
  14799. if (e[l].workId == b[j].id) {
  14800. if (e[l].comment != "") {
  14801. commentCount++;
  14802. commentJson.push({
  14803. commentText: e[l].comment,
  14804. commentTime: e[l].commentTime,
  14805. commentPeople: e[l].commentPeople,
  14806. userid: e[l].userid,
  14807. wid: e[l].id,
  14808. });
  14809. }
  14810. }
  14811. }
  14812. if (
  14813. (b[j].type == 1 ||
  14814. b[j].type == 4 ||
  14815. b[j].type == 5 ||
  14816. b[j].type == 6 ||
  14817. b[j].type == 12 ||
  14818. b[j].type == 7) &&
  14819. a[i].tool[0] != 15 &&
  14820. a[i].tool[0] != 4 &&
  14821. a[i].tool[0] != 45 &&
  14822. a[i].tool[0] != 50 &&
  14823. a[i].tool[0] != 32 &&
  14824. a[i].tool[0] != 57 &&
  14825. a[i].tool[0] != 52
  14826. ) {
  14827. if (
  14828. c.indexOf(
  14829. b[j].content
  14830. .split(".")
  14831. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14832. ) != -1 &&
  14833. a[i].tool[0] == 16 &&
  14834. b[j].atool != 50
  14835. ) {
  14836. let _works = {
  14837. userid: b[j].userid,
  14838. ateacher: b[j].ateacher,
  14839. wid: b[j].id,
  14840. works: b[j].content,
  14841. sName: b[j].name,
  14842. type: 1,
  14843. ttype:b[j].ttype,
  14844. time: b[j].time,
  14845. score: b[j].score,
  14846. img: b[j].img,
  14847. likesCount: likesCount,
  14848. commentCount: commentCount,
  14849. isLikes: isLikes,
  14850. commentJson: commentJson,
  14851. likeJson:likeJson
  14852. };
  14853. if (this.isGroup) {
  14854. let isGw = 1;
  14855. for (
  14856. var groupI = 0;
  14857. groupI < this.courseGroup.group.length;
  14858. groupI++
  14859. ) {
  14860. let gid = this.courseGroup.group[groupI].id;
  14861. if (
  14862. this.courseGroupStudentUid[gid].indexOf(
  14863. b[j].userid
  14864. ) != -1
  14865. ) {
  14866. isGw = 2;
  14867. this.courseGroup.group[groupI].works[i].push(_works);
  14868. break;
  14869. }
  14870. }
  14871. if (isGw == 1) {
  14872. _worksStudent[i].push(_works);
  14873. }
  14874. } else {
  14875. _worksStudent[i].push(_works);
  14876. }
  14877. _worksStudent2[i].push(_works);
  14878. this.isWorksS[i].push({
  14879. uid: b[j].userid,
  14880. sName: b[j].name,
  14881. });
  14882. } else if (
  14883. y.indexOf(
  14884. b[j].content
  14885. .split(".")
  14886. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14887. ) != -1 &&
  14888. a[i].tool[0] == 16 &&
  14889. b[j].atool != 50
  14890. ) {
  14891. let _works = {
  14892. userid: b[j].userid,
  14893. ateacher: b[j].ateacher,
  14894. wid: b[j].id,
  14895. works: b[j].content,
  14896. sName: b[j].name,
  14897. type: 3,
  14898. ttype:b[j].ttype,
  14899. time: b[j].time,
  14900. score: b[j].score,
  14901. img: b[j].img,
  14902. likesCount: likesCount,
  14903. commentCount: commentCount,
  14904. isLikes: isLikes,
  14905. commentJson: commentJson,
  14906. likeJson:likeJson
  14907. };
  14908. if (this.isGroup) {
  14909. let isGw = 1;
  14910. for (
  14911. var groupI = 0;
  14912. groupI < this.courseGroup.group.length;
  14913. groupI++
  14914. ) {
  14915. let gid = this.courseGroup.group[groupI].id;
  14916. if (
  14917. this.courseGroupStudentUid[gid].indexOf(
  14918. b[j].userid
  14919. ) != -1
  14920. ) {
  14921. isGw = 2;
  14922. this.courseGroup.group[groupI].works[i].push(_works);
  14923. break;
  14924. }
  14925. }
  14926. if (isGw == 1) {
  14927. _worksStudent[i].push(_works);
  14928. }
  14929. } else {
  14930. _worksStudent[i].push(_works);
  14931. }
  14932. _worksStudent2[i].push(_works);
  14933. this.isWorksS[i].push({
  14934. uid: b[j].userid,
  14935. sName: b[j].name,
  14936. });
  14937. } else if (b[j].type == 6 && b[j].atool != 50) {
  14938. let _works = {
  14939. userid: b[j].userid,
  14940. ateacher: b[j].ateacher,
  14941. wid: b[j].id,
  14942. works: b[j].content,
  14943. sName: b[j].name,
  14944. type: 4,
  14945. ttype:b[j].ttype,
  14946. time: b[j].time,
  14947. score: b[j].score,
  14948. img: b[j].img,
  14949. likesCount: likesCount,
  14950. commentCount: commentCount,
  14951. isLikes: isLikes,
  14952. commentJson: commentJson,
  14953. likeJson:likeJson
  14954. };
  14955. _worksStudent[i].push(_works);
  14956. _worksStudent2[i].push(_works);
  14957. this.isWorksS[i].push({
  14958. uid: b[j].userid,
  14959. sName: b[j].name,
  14960. });
  14961. } else if (b[j].type == 7 && b[j].atool != 50) {
  14962. let _work = {
  14963. userid: b[j].userid,
  14964. ateacher: b[j].ateacher,
  14965. wid: b[j].id,
  14966. works: b[j].content,
  14967. sName: b[j].name,
  14968. type: 5,
  14969. ttype:b[j].ttype,
  14970. time: b[j].time,
  14971. score: b[j].score,
  14972. img: b[j].img,
  14973. likesCount: likesCount,
  14974. commentCount: commentCount,
  14975. isLikes: isLikes,
  14976. commentJson: commentJson,
  14977. likeJson:likeJson
  14978. };
  14979. _worksStudent[i].push(_work);
  14980. _worksStudent2[i].push(_work);
  14981. this.isWorksS[i].push({
  14982. uid: b[j].userid,
  14983. sName: b[j].name,
  14984. });
  14985. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14986. let _works = {
  14987. userid: b[j].userid,
  14988. ateacher: b[j].ateacher,
  14989. wid: b[j].id,
  14990. works: b[j].content,
  14991. sName: b[j].name,
  14992. type: 12,
  14993. ttype:b[j].ttype,
  14994. time: b[j].time,
  14995. score: b[j].score,
  14996. img: b[j].img,
  14997. likesCount: likesCount,
  14998. commentCount: commentCount,
  14999. isLikes: isLikes,
  15000. commentJson: commentJson,
  15001. likeJson:likeJson
  15002. };
  15003. if (this.isGroup) {
  15004. let isGw = 1;
  15005. for (
  15006. var groupI = 0;
  15007. groupI < this.courseGroup.group.length;
  15008. groupI++
  15009. ) {
  15010. let gid = this.courseGroup.group[groupI].id;
  15011. if (
  15012. this.courseGroupStudentUid[gid].indexOf(
  15013. b[j].userid
  15014. ) != -1
  15015. ) {
  15016. isGw = 2;
  15017. this.courseGroup.group[groupI].works[i].push(_works);
  15018. break;
  15019. }
  15020. }
  15021. if (isGw == 1) {
  15022. _worksStudent[i].push(_works);
  15023. }
  15024. } else {
  15025. _worksStudent[i].push(_works);
  15026. }
  15027. _worksStudent2[i].push(_works);
  15028. this.isWorksS[i].push({
  15029. uid: b[j].userid,
  15030. sName: b[j].name,
  15031. });
  15032. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15033. let _works = {
  15034. userid: b[j].userid,
  15035. ateacher: b[j].ateacher,
  15036. wid: b[j].id,
  15037. works: b[j].content,
  15038. sName: b[j].name,
  15039. type: 0,
  15040. ttype:b[j].ttype,
  15041. time: b[j].time,
  15042. score: b[j].score,
  15043. img: b[j].img,
  15044. likesCount: likesCount,
  15045. commentCount: commentCount,
  15046. isLikes: isLikes,
  15047. commentJson: commentJson,
  15048. likeJson:likeJson
  15049. };
  15050. if (this.isGroup) {
  15051. let isGw = 1;
  15052. for (
  15053. var groupI = 0;
  15054. groupI < this.courseGroup.group.length;
  15055. groupI++
  15056. ) {
  15057. let gid = this.courseGroup.group[groupI].id;
  15058. if (
  15059. this.courseGroupStudentUid[gid].indexOf(
  15060. b[j].userid
  15061. ) != -1
  15062. ) {
  15063. isGw = 2;
  15064. this.courseGroup.group[groupI].works[i].push(_works);
  15065. break;
  15066. }
  15067. }
  15068. if (isGw == 1) {
  15069. _worksStudent[i].push(_works);
  15070. }
  15071. } else {
  15072. _worksStudent[i].push(_works);
  15073. }
  15074. _worksStudent2[i].push(_works);
  15075. this.isWorksS[i].push({
  15076. uid: b[j].userid,
  15077. sName: b[j].name,
  15078. });
  15079. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15080. let _works = {
  15081. userid: b[j].userid,
  15082. ateacher: b[j].ateacher,
  15083. wid: b[j].id,
  15084. works: b[j].content,
  15085. sName: b[j].name,
  15086. type: 0,
  15087. ttype:b[j].ttype,
  15088. time: b[j].time,
  15089. score: b[j].score,
  15090. img: b[j].img,
  15091. likesCount: likesCount,
  15092. commentCount: commentCount,
  15093. isLikes: isLikes,
  15094. commentJson: commentJson,
  15095. likeJson:likeJson
  15096. };
  15097. if (this.isGroup) {
  15098. let isGw = 1;
  15099. for (
  15100. var groupI = 0;
  15101. groupI < this.courseGroup.group.length;
  15102. groupI++
  15103. ) {
  15104. let gid = this.courseGroup.group[groupI].id;
  15105. if (
  15106. this.courseGroupStudentUid[gid].indexOf(
  15107. b[j].userid
  15108. ) != -1
  15109. ) {
  15110. isGw = 2;
  15111. this.courseGroup.group[groupI].works[i].push(_works);
  15112. break;
  15113. }
  15114. }
  15115. if (isGw == 1) {
  15116. _worksStudent[i].push(_works);
  15117. }
  15118. } else {
  15119. _worksStudent[i].push(_works);
  15120. }
  15121. _worksStudent2[i].push(_works);
  15122. this.isWorksS[i].push({
  15123. uid: b[j].userid,
  15124. sName: b[j].name,
  15125. });
  15126. }
  15127. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15128. let _works = {
  15129. userid: b[j].userid,
  15130. ateacher: b[j].ateacher,
  15131. wid: b[j].id,
  15132. works: b[j].content,
  15133. sName: b[j].name,
  15134. type: 2,
  15135. ttype:b[j].ttype,
  15136. time: b[j].time,
  15137. score: b[j].score,
  15138. img: b[j].img,
  15139. likesCount: likesCount,
  15140. commentCount: commentCount,
  15141. isLikes: isLikes,
  15142. commentJson: commentJson,
  15143. likeJson:likeJson
  15144. };
  15145. if (this.isGroup) {
  15146. let isGw = 1;
  15147. for (
  15148. var groupI = 0;
  15149. groupI < this.courseGroup.group.length;
  15150. groupI++
  15151. ) {
  15152. let gid = this.courseGroup.group[groupI].id;
  15153. if (
  15154. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15155. -1
  15156. ) {
  15157. isGw = 2;
  15158. this.courseGroup.group[groupI].works[i].push(_works);
  15159. break;
  15160. }
  15161. }
  15162. if (isGw == 1) {
  15163. _worksStudent[i].push(_works);
  15164. }
  15165. } else {
  15166. _worksStudent[i].push(_works);
  15167. }
  15168. _worksStudent2[i].push(_works);
  15169. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15170. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15171. //问卷
  15172. let _work = {
  15173. userid: b[j].userid,
  15174. ateacher: b[j].ateacher,
  15175. wid: b[j].id,
  15176. works: b[j].content,
  15177. sName: b[j].name,
  15178. type: 2,
  15179. ttype:b[j].ttype,
  15180. time: b[j].time,
  15181. score: b[j].score,
  15182. img: b[j].img,
  15183. likesCount: likesCount,
  15184. commentCount: commentCount,
  15185. isLikes: isLikes,
  15186. commentJson: commentJson,
  15187. likeJson:likeJson
  15188. };
  15189. _worksStudent[i].push(_work);
  15190. _worksStudent2[i].push(_work);
  15191. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15192. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15193. //选择题
  15194. let _work = {
  15195. userid: b[j].userid,
  15196. ateacher: b[j].ateacher,
  15197. wid: b[j].id,
  15198. works: b[j].content,
  15199. sName: b[j].name,
  15200. type: 8,
  15201. ttype:b[j].ttype,
  15202. time: b[j].time,
  15203. score: b[j].score,
  15204. img: b[j].img,
  15205. likesCount: likesCount,
  15206. commentCount: commentCount,
  15207. isLikes: isLikes,
  15208. commentJson: commentJson,
  15209. likeJson:likeJson
  15210. };
  15211. _worksStudent[i].push(_work);
  15212. _worksStudent2[i].push(_work);
  15213. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15214. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15215. //选择题
  15216. let _work = {
  15217. userid: b[j].userid,
  15218. ateacher: b[j].ateacher,
  15219. wid: b[j].id,
  15220. works: b[j].content,
  15221. sName: b[j].name,
  15222. type: 9,
  15223. ttype:b[j].ttype,
  15224. time: b[j].time,
  15225. score: b[j].score,
  15226. img: b[j].img,
  15227. likesCount: likesCount,
  15228. commentCount: commentCount,
  15229. isLikes: isLikes,
  15230. commentJson: commentJson,
  15231. likeJson:likeJson
  15232. };
  15233. _worksStudent[i].push(_work);
  15234. _worksStudent2[i].push(_work);
  15235. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15236. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15237. //选择题
  15238. let _work = {
  15239. userid: b[j].userid,
  15240. ateacher: b[j].ateacher,
  15241. wid: b[j].id,
  15242. works: b[j].content,
  15243. sName: b[j].name,
  15244. type: 10,
  15245. ttype:b[j].ttype,
  15246. time: b[j].time,
  15247. score: b[j].score,
  15248. img: b[j].img,
  15249. likesCount: likesCount,
  15250. commentCount: commentCount,
  15251. isLikes: isLikes,
  15252. commentJson: commentJson,
  15253. likeJson:likeJson
  15254. };
  15255. _worksStudent[i].push(_work);
  15256. _worksStudent2[i].push(_work);
  15257. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15258. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15259. //选择题
  15260. let _work = {
  15261. userid: b[j].userid,
  15262. ateacher: b[j].ateacher,
  15263. wid: b[j].id,
  15264. works: b[j].content,
  15265. sName: b[j].name,
  15266. type: 13,
  15267. ttype:b[j].ttype,
  15268. time: b[j].time,
  15269. score: b[j].score,
  15270. img: b[j].img,
  15271. likesCount: likesCount,
  15272. commentCount: commentCount,
  15273. isLikes: isLikes,
  15274. commentJson: commentJson,
  15275. likeJson:likeJson
  15276. };
  15277. _worksStudent[i].push(_work);
  15278. _worksStudent2[i].push(_work);
  15279. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15280. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15281. //选择题
  15282. let _work = {
  15283. userid: b[j].userid,
  15284. ateacher: b[j].ateacher,
  15285. wid: b[j].id,
  15286. works: b[j].content,
  15287. sName: b[j].name,
  15288. type: 16,
  15289. ttype:b[j].ttype,
  15290. time: b[j].time,
  15291. score: b[j].score,
  15292. img: b[j].img,
  15293. likesCount: likesCount,
  15294. commentCount: commentCount,
  15295. isLikes: isLikes,
  15296. commentJson: commentJson,
  15297. aiCode: b[j].aiCode,
  15298. teacherCode: b[j].teacherCode,
  15299. likeJson:likeJson
  15300. };
  15301. _worksStudent[i].push(_work);
  15302. _worksStudent2[i].push(_work);
  15303. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15304. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15305. //英语口语
  15306. let _work = {
  15307. userid: b[j].userid,
  15308. ateacher: b[j].ateacher,
  15309. wid: b[j].id,
  15310. works: b[j].content,
  15311. sName: b[j].name,
  15312. type: 17,
  15313. ttype:b[j].ttype,
  15314. time: b[j].time,
  15315. score: b[j].score,
  15316. img: b[j].img,
  15317. likesCount: likesCount,
  15318. commentCount: commentCount,
  15319. isLikes: isLikes,
  15320. commentJson: commentJson,
  15321. likeJson:likeJson
  15322. };
  15323. _worksStudent[i].push(_work);
  15324. _worksStudent2[i].push(_work);
  15325. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15326. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15327. //交互视频
  15328. let _work = {
  15329. userid: b[j].userid,
  15330. ateacher: b[j].ateacher,
  15331. wid: b[j].id,
  15332. works: b[j].content,
  15333. sName: b[j].name,
  15334. type: 14,
  15335. ttype:b[j].ttype,
  15336. time: b[j].time,
  15337. score: b[j].score,
  15338. img: b[j].img,
  15339. likesCount: likesCount,
  15340. commentCount: commentCount,
  15341. isLikes: isLikes,
  15342. commentJson: commentJson,
  15343. likeJson:likeJson
  15344. };
  15345. _worksStudent[i].push(_work);
  15346. _worksStudent2[i].push(_work);
  15347. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15348. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15349. let _gindex = JSON.parse(b[j].content);
  15350. if (
  15351. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15352. b[j].userid
  15353. ) != -1
  15354. ) {
  15355. let _work = {
  15356. userid: b[j].userid,
  15357. ateacher: b[j].ateacher,
  15358. wid: b[j].id,
  15359. works: _gindex.url,
  15360. sName: b[j].name,
  15361. type: _gindex.type,
  15362. ttype:b[j].ttype,
  15363. time: b[j].time,
  15364. score: b[j].score,
  15365. img: b[j].img,
  15366. likesCount: likesCount,
  15367. commentCount: commentCount,
  15368. isLikes: isLikes,
  15369. commentJson: commentJson,
  15370. likeJson:likeJson
  15371. };
  15372. _worksStudent[i][_gindex.groupIndex].push(_work);
  15373. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15374. }
  15375. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15376. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15377. let _work = {
  15378. userid: b[j].userid,
  15379. ateacher: b[j].ateacher,
  15380. wid: b[j].id,
  15381. works: b[j].content,
  15382. sName: b[j].name ? b[j].name : b[j].userid,
  15383. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15384. ttype:b[j].ttype,
  15385. time: b[j].time,
  15386. score: b[j].score,
  15387. img: b[j].img,
  15388. likesCount: likesCount,
  15389. commentCount: commentCount,
  15390. isLikes: isLikes,
  15391. commentJson: commentJson,
  15392. likeJson:likeJson
  15393. };
  15394. _worksStudent[i].push(_work);
  15395. _worksStudent2[i].push(_work);
  15396. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15397. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15398. let _work = {
  15399. userid: b[j].userid,
  15400. ateacher: b[j].ateacher,
  15401. wid: b[j].id,
  15402. works: b[j].content,
  15403. sName: b[j].name ? b[j].name : b[j].userid,
  15404. type: 12,
  15405. ttype:b[j].ttype,
  15406. time: b[j].time,
  15407. score: b[j].score,
  15408. img: b[j].img,
  15409. likesCount: likesCount,
  15410. commentCount: commentCount,
  15411. isLikes: isLikes,
  15412. commentJson: commentJson,
  15413. likeJson:likeJson
  15414. };
  15415. _worksStudent[i].push(_work);
  15416. _worksStudent2[i].push(_work);
  15417. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15418. } else if (
  15419. a[i].tool[0] == 57 &&
  15420. b[j].atool == 57 &&
  15421. b[j].type == 12
  15422. ) {
  15423. let _work = {
  15424. userid: b[j].userid,
  15425. ateacher: b[j].ateacher,
  15426. wid: b[j].id,
  15427. works: b[j].content,
  15428. sName: b[j].name ? b[j].name : b[j].userid,
  15429. type: 12,
  15430. ttype:b[j].ttype,
  15431. time: b[j].time,
  15432. score: b[j].score,
  15433. img: b[j].img,
  15434. likesCount: likesCount,
  15435. commentCount: commentCount,
  15436. isLikes: isLikes,
  15437. commentJson: commentJson,
  15438. likeJson:likeJson
  15439. };
  15440. _worksStudent[i].push(_work);
  15441. _worksStudent2[i].push(_work);
  15442. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15443. } else if (
  15444. a[i].tool[0] == 57 &&
  15445. b[j].atool == 57 &&
  15446. b[j].type == 15
  15447. ) {
  15448. let _work = {
  15449. userid: b[j].userid,
  15450. ateacher: b[j].ateacher,
  15451. wid: b[j].id,
  15452. works: b[j].content,
  15453. sName: b[j].name ? b[j].name : b[j].userid,
  15454. type: 15,
  15455. ttype:b[j].ttype,
  15456. time: b[j].time,
  15457. score: b[j].score,
  15458. img: b[j].img,
  15459. likesCount: likesCount,
  15460. commentCount: commentCount,
  15461. isLikes: isLikes,
  15462. commentJson: commentJson,
  15463. likeJson:likeJson
  15464. };
  15465. _worksStudent[i].push(_work);
  15466. _worksStudent2[i].push(_work);
  15467. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15468. }
  15469. }
  15470. }
  15471. if (_worksStudent[i] && _worksStudent[i].length) {
  15472. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15473. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15474. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15475. var scoreA = parseFloat(jscoreA);
  15476. var scoreB = parseFloat(jscoreB);
  15477. if (scoreA == scoreB) {
  15478. return b.likesCount - a.likesCount;
  15479. }
  15480. return scoreB - scoreA;
  15481. });
  15482. if (this.isGroup) {
  15483. for (
  15484. var groupI = 0;
  15485. groupI < this.courseGroup.group.length;
  15486. groupI++
  15487. ) {
  15488. this.courseGroup.group[groupI].works[i] =
  15489. this.courseGroup.group[groupI].works[i].sort(function (
  15490. a,
  15491. b
  15492. ) {
  15493. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15494. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15495. var scoreA = parseFloat(jscoreA);
  15496. var scoreB = parseFloat(jscoreB);
  15497. if (scoreA == scoreB) {
  15498. return b.likesCount - a.likesCount;
  15499. }
  15500. return scoreB - scoreA;
  15501. });
  15502. }
  15503. }
  15504. }
  15505. }
  15506. this.timeWorkList = _worksStudent2;
  15507. for (var i = 0; i < a.length; i++) {
  15508. for (var j = 0; j < b.length; j++) {
  15509. var data = b[j];
  15510. if (i == b[j].tool) {
  15511. if (data.type == 2 || data.type == 8) {
  15512. for (var z = 0; z < this.checkJson[i].length; z++) {
  15513. this.checkJson[i][z].checkPerent = [];
  15514. this.checkJson[i][z].right = Math.round(
  15515. (this.checkJson[i][z].rightPerson.length /
  15516. parseInt(_worksStudent[i].length)) *
  15517. 100
  15518. );
  15519. let aaaa = this.checkJson[i][z];
  15520. for (
  15521. var k = 0;
  15522. k < this.checkJson[i][z].checkCount.length;
  15523. k++
  15524. ) {
  15525. this.checkJson[i][z].checkPerent.push(
  15526. Math.round(
  15527. (this.checkJson[i][z].checkCount[k] /
  15528. parseInt(_worksStudent[i].length)) *
  15529. 100
  15530. )
  15531. );
  15532. }
  15533. }
  15534. } else if (data.type == 9) {
  15535. for (var z = 0; z < this.checkJson[i].length; z++) {
  15536. this.checkJson[i][z].checkPerent = [];
  15537. this.checkJson[i][z].right = Math.round(
  15538. (this.checkJson[i][z].rightPerson.length /
  15539. this.checkJson[i][z].checkPerson.length) *
  15540. 100
  15541. );
  15542. }
  15543. }
  15544. }
  15545. }
  15546. }
  15547. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15548. this.joinGroup(gindex);
  15549. }
  15550. this.worksStudent = _worksStudent;
  15551. this.selectWorksStudent();
  15552. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15553. this.$nextTick(()=>{
  15554. setTimeout(()=>{
  15555. setTimeout(()=>{
  15556. this.panToolHeight('tool-'+ci);
  15557. }, 500)
  15558. }, 0)
  15559. })
  15560. }
  15561. })
  15562. .catch((err) => {
  15563. console.error(err);
  15564. });
  15565. },
  15566. pngToWhiteBg(file) {
  15567. const _file = file;
  15568. let read = new FileReader();
  15569. read.readAsDataURL(file); // 文件转base64
  15570. return new Promise((resolve, reject) => {
  15571. read.onload = (e) => {
  15572. let img = new Image();
  15573. img.src = e.target.result;
  15574. img.onload = async () => {
  15575. // 生成canvas
  15576. let canvas = document.createElement("canvas");
  15577. let context = canvas.getContext("2d");
  15578. // 绘制图片到canvas上
  15579. canvas.width = img.width;
  15580. canvas.height = img.height;
  15581. // 在canvas绘制前填充白色背景
  15582. context.fillStyle = "#fff";
  15583. context.fillRect(0, 0, canvas.width, canvas.height);
  15584. context.drawImage(img, 0, 0);
  15585. let base64 = canvas.toDataURL(file["type"], 1);
  15586. let newFile = this.dataUrlToFile(base64, _file);
  15587. resolve(newFile);
  15588. };
  15589. };
  15590. });
  15591. },
  15592. dataUrlToFile(dataurl, file) {
  15593. let arr = dataurl.split(","),
  15594. mime = arr[0].match(/:(.*?);/)[1],
  15595. bstr = atob(arr[1]),
  15596. n = bstr.length,
  15597. u8arr = new Uint8Array(n);
  15598. while (n--) {
  15599. u8arr[n] = bstr.charCodeAt(n);
  15600. }
  15601. // return new Blob([u8arr], { type: mime });
  15602. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15603. type: mime,
  15604. });
  15605. },
  15606. async beforeUpload1(event, type, i) {
  15607. // this.$message.success('进入上传')
  15608. var file = "";
  15609. if (type == 5) {
  15610. file = event;
  15611. } else {
  15612. file = event.target.files[0];
  15613. }
  15614. var credentials = {
  15615. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15616. secretAccessKey: "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",
  15617. }; //秘钥形式的登录上传
  15618. window.AWS.config.update(credentials);
  15619. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15620. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15621. var _this = this;
  15622. _this.progress = 0;
  15623. _this.proVisible = true;
  15624. _this.isFinishSize = 0;
  15625. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15626. var b = [
  15627. "DOC",
  15628. "DOCX",
  15629. "DOCM",
  15630. "DOTM",
  15631. "DOTX",
  15632. "PPTX",
  15633. "PPSX",
  15634. "PPT",
  15635. "PPS",
  15636. "PPTM",
  15637. "POTM",
  15638. "PPAM",
  15639. "POTX",
  15640. "PPSM",
  15641. ];
  15642. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15643. var photoA = [
  15644. "BMP",
  15645. "GIF",
  15646. "PNG",
  15647. "JPEG",
  15648. "JPEG",
  15649. "JPG",
  15650. "TIF",
  15651. "PCX",
  15652. "TGA",
  15653. "EXIF",
  15654. "FPX",
  15655. "SVG",
  15656. "APNG",
  15657. ];
  15658. // if (
  15659. // b.indexOf(
  15660. // file.name
  15661. // .split(".")
  15662. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15663. // ) != -1
  15664. // ) {
  15665. // if (file.size / 1024 / 1024 > 10) {
  15666. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15667. // return;
  15668. // }
  15669. // } else if (
  15670. // excelA.indexOf(
  15671. // file.name
  15672. // .split(".")
  15673. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15674. // ) != "-1"
  15675. // ) {
  15676. // if (file.size / 1024 / 1024 > 5) {
  15677. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15678. // return;
  15679. // }
  15680. // }
  15681. if (
  15682. photoA.indexOf(
  15683. file.name
  15684. .split(".")
  15685. [file.name.split(".").length - 1].toLocaleUpperCase()
  15686. ) != -1 &&
  15687. type != 4
  15688. ) {
  15689. // const blob = await imageConversion.compress(file, 0.8)
  15690. file = await this.pngToWhiteBg(file);
  15691. const blob = await imageConversion.compressAccurately(file, 256);
  15692. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15693. file = new File([blob], file.name, { type: file.type });
  15694. }
  15695. if (file) {
  15696. var params = {
  15697. Key:
  15698. file.name.split(".")[0] +
  15699. new Date().getTime() +
  15700. "." +
  15701. file.name.split(".")[file.name.split(".").length - 1],
  15702. ContentType: file.type,
  15703. Body: file,
  15704. "Access-Control-Allow-Credentials": "*",
  15705. ACL: "public-read",
  15706. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15707. var options = {
  15708. // partSize: 2048 * 1024 * 1024,
  15709. partSize: 1024 * 1024 * 1024,
  15710. queueSize: 2,
  15711. leavePartsOnError: true,
  15712. };
  15713. bucket
  15714. .upload(params, options)
  15715. .on("httpUploadProgress", function (evt) {
  15716. //这里可以写进度条
  15717. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15718. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15719. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15720. })
  15721. .send(function (err, data) {
  15722. _this.progress = 100;
  15723. _this.isFinishSize = _this.isAllSize;
  15724. setTimeout(() => {
  15725. _this.proVisible = false;
  15726. }, 1000);
  15727. if (err) {
  15728. var a = _this.$refs.upload1.uploadFiles;
  15729. a.splice(a.length - 1, a.length);
  15730. _this.$message.error("上传失败");
  15731. } else {
  15732. // _this.$message.success('上传成功')
  15733. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15734. var c = [
  15735. "AVI",
  15736. "NAVI",
  15737. "MPEG",
  15738. "ASF",
  15739. "MOV",
  15740. "WMV",
  15741. "3GP",
  15742. "RM",
  15743. "RMVB",
  15744. "FLV",
  15745. "F4V",
  15746. "H.264",
  15747. "H.265",
  15748. "REAL VIDEO",
  15749. "MKV",
  15750. "WebM",
  15751. "HDDVD",
  15752. "MP4",
  15753. "MPG",
  15754. "M4V",
  15755. "MGV",
  15756. "OGV",
  15757. "QTM",
  15758. "STR",
  15759. "AMC",
  15760. "DVX",
  15761. "EVO",
  15762. "DAT",
  15763. "OGG",
  15764. "OGM",
  15765. ];
  15766. if (type == 1) {
  15767. _this.studyJuri[0].cover.push({
  15768. name: file.name,
  15769. url: data.Location,
  15770. uid: file.uid,
  15771. });
  15772. if (
  15773. c.indexOf(
  15774. _this.studyJuri[0].cover[0].url
  15775. .split(".")
  15776. [
  15777. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15778. ].toLocaleUpperCase()
  15779. ) != -1
  15780. ) {
  15781. _this.fileType = 2;
  15782. } else if (
  15783. b.indexOf(
  15784. _this.studyJuri[0].cover[0].url
  15785. .split(".")
  15786. [
  15787. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15788. ].toLocaleUpperCase()
  15789. ) != -1
  15790. ) {
  15791. _this.fileType = 1;
  15792. } else if (
  15793. photoA.indexOf(
  15794. _this.studyJuri[0].cover[0].url
  15795. .split(".")
  15796. [
  15797. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15798. ].toLocaleUpperCase()
  15799. ) != -1
  15800. ) {
  15801. _this.fileType = 0;
  15802. } else {
  15803. _this.fileType = 3;
  15804. }
  15805. _this.imgChange(null, null, type);
  15806. } else if (type == 2) {
  15807. _this.upToolImg = data.Location;
  15808. _this.imgChange(null, null, type);
  15809. _this.addCourseWorks(i);
  15810. } else if (type == 4) {
  15811. _this.addPz("3", data.Location);
  15812. } else if (type == 5) {
  15813. _this.addImgDrawImG(data.Location);
  15814. } else if (type == 6) {
  15815. var _ftype = 1;
  15816. if (
  15817. c.indexOf(
  15818. data.Location.split(".")[
  15819. data.Location.split(".").length - 1
  15820. ].toLocaleUpperCase()
  15821. ) != -1
  15822. ) {
  15823. _ftype = 5;
  15824. } else if (
  15825. b.indexOf(
  15826. data.Location.split(".")[
  15827. data.Location.split(".").length - 1
  15828. ].toLocaleUpperCase()
  15829. ) != -1
  15830. ) {
  15831. _ftype = 4;
  15832. } else {
  15833. _ftype = 1;
  15834. }
  15835. _this.plworkFile.push({
  15836. name: file.name,
  15837. url: data.Location,
  15838. uid: file.uid,
  15839. fileType: _ftype,
  15840. username:
  15841. _this.plworkFile.length > 10
  15842. ? _this.plworkFile.length + 1
  15843. : "0" + (_this.plworkFile.length + 1),
  15844. });
  15845. } else if (type == 7) {
  15846. _this.addCourseWorksGong(i, data.Location, 32);
  15847. } else if (type == 8) {
  15848. _this.addCourseWorksGong(i, data.Location, 57);
  15849. }
  15850. _this.imgChange(null, null, type);
  15851. console.log(data.Location);
  15852. // _this.$message.success('上传成功'+data.Location)
  15853. }
  15854. });
  15855. }
  15856. },
  15857. async beforeUpload3(event, type, i) {
  15858. // this.$message.success('进入上传')
  15859. let file = "";
  15860. let cfindex2 = 0;
  15861. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15862. file = event.target.files[cfindex];
  15863. var credentials = {
  15864. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15865. secretAccessKey: "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",
  15866. }; //秘钥形式的登录上传
  15867. window.AWS.config.update(credentials);
  15868. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15869. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15870. var _this = this;
  15871. // _this.progress = 0;
  15872. _this.proVisible2 = true;
  15873. var b = [
  15874. "DOC",
  15875. "DOCX",
  15876. "DOCM",
  15877. "DOTM",
  15878. "DOTX",
  15879. "PPTX",
  15880. "PPSX",
  15881. "PPT",
  15882. "PPS",
  15883. "PPTM",
  15884. "POTM",
  15885. "PPAM",
  15886. "POTX",
  15887. "PPSM",
  15888. ];
  15889. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15890. var photoA = [
  15891. "BMP",
  15892. "GIF",
  15893. "PNG",
  15894. "JPEG",
  15895. "JPG",
  15896. "TIF",
  15897. "PCX",
  15898. "TGA",
  15899. "EXIF",
  15900. "FPX",
  15901. "SVG",
  15902. "APNG",
  15903. ];
  15904. if (
  15905. photoA.indexOf(
  15906. file.name
  15907. .split(".")
  15908. [file.name.split(".").length - 1].toLocaleUpperCase()
  15909. ) != -1 &&
  15910. type != 4
  15911. ) {
  15912. // const blob = await imageConversion.compress(file, 0.8)
  15913. file = await this.pngToWhiteBg(file);
  15914. const blob = await imageConversion.compressAccurately(file, 256);
  15915. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15916. file = new File([blob], file.name, { type: file.type });
  15917. }
  15918. if (file) {
  15919. var params = {
  15920. Key:
  15921. file.name.split(".")[0] +
  15922. new Date().getTime() +
  15923. "." +
  15924. file.name.split(".")[file.name.split(".").length - 1],
  15925. ContentType: file.type,
  15926. Body: file,
  15927. "Access-Control-Allow-Credentials": "*",
  15928. ACL: "public-read",
  15929. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15930. var options = {
  15931. // partSize: 2048 * 1024 * 1024,
  15932. partSize: 1024 * 1024 * 1024,
  15933. queueSize: 2,
  15934. leavePartsOnError: true,
  15935. };
  15936. bucket
  15937. .upload(params, options)
  15938. .on("httpUploadProgress", function (evt) {
  15939. //这里可以写进度条
  15940. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15941. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15942. })
  15943. .send(function (err, data) {
  15944. // _this.progress = 100;
  15945. cfindex2++;
  15946. setTimeout(() => {
  15947. if (
  15948. cfindex2 == event.target.files.length - 1 ||
  15949. cfindex2 > event.target.files.length - 1
  15950. ) {
  15951. _this.proVisible2 = false;
  15952. }
  15953. }, 1000);
  15954. if (err) {
  15955. var a = _this.$refs.upload1.uploadFiles;
  15956. a.splice(a.length - 1, a.length);
  15957. _this.$message.error("上传失败");
  15958. } else {
  15959. // _this.$message.success('上传成功')
  15960. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15961. var c = [
  15962. "AVI",
  15963. "NAVI",
  15964. "MPEG",
  15965. "ASF",
  15966. "MOV",
  15967. "WMV",
  15968. "3GP",
  15969. "RM",
  15970. "RMVB",
  15971. "FLV",
  15972. "F4V",
  15973. "H.264",
  15974. "H.265",
  15975. "REAL VIDEO",
  15976. "MKV",
  15977. "WebM",
  15978. "HDDVD",
  15979. "MP4",
  15980. "MPG",
  15981. "M4V",
  15982. "MGV",
  15983. "OGV",
  15984. "QTM",
  15985. "STR",
  15986. "AMC",
  15987. "DVX",
  15988. "EVO",
  15989. "DAT",
  15990. "OGG",
  15991. "OGM",
  15992. ];
  15993. if (type == 1) {
  15994. _this.studyJuri[0].cover.push({
  15995. name: file.name,
  15996. url: data.Location,
  15997. uid: file.uid,
  15998. });
  15999. if (
  16000. c.indexOf(
  16001. _this.studyJuri[0].cover[0].url
  16002. .split(".")
  16003. [
  16004. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16005. ].toLocaleUpperCase()
  16006. ) != -1
  16007. ) {
  16008. _this.fileType = 2;
  16009. } else if (
  16010. b.indexOf(
  16011. _this.studyJuri[0].cover[0].url
  16012. .split(".")
  16013. [
  16014. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16015. ].toLocaleUpperCase()
  16016. ) != -1
  16017. ) {
  16018. _this.fileType = 1;
  16019. } else {
  16020. _this.fileType = 0;
  16021. }
  16022. _this.imgChange(null, null, type);
  16023. } else if (type == 2) {
  16024. _this.upToolImg = data.Location;
  16025. _this.imgChange(null, null, type);
  16026. _this.addCourseWorks(i);
  16027. } else if (type == 4) {
  16028. _this.addPz("3", data.Location);
  16029. } else if (type == 5) {
  16030. _this.addImgDrawImG(data.Location);
  16031. } else if (type == 6) {
  16032. var _ftype = 1;
  16033. if (
  16034. c.indexOf(
  16035. data.Location.split(".")[
  16036. data.Location.split(".").length - 1
  16037. ].toLocaleUpperCase()
  16038. ) != -1
  16039. ) {
  16040. _ftype = 5;
  16041. } else if (
  16042. b.indexOf(
  16043. data.Location.split(".")[
  16044. data.Location.split(".").length - 1
  16045. ].toLocaleUpperCase()
  16046. ) != -1
  16047. ) {
  16048. _ftype = 4;
  16049. } else {
  16050. _ftype = 1;
  16051. }
  16052. _this.plworkFile.push({
  16053. name: file.name,
  16054. url: data.Location,
  16055. uid: file.uid,
  16056. fileType: _ftype,
  16057. username:
  16058. _this.plworkFile.length + 1 > 9
  16059. ? _this.plworkFile.length + 1
  16060. : "0" + (_this.plworkFile.length + 1),
  16061. });
  16062. }
  16063. _this.imgChange(null, null, type);
  16064. console.log(data.Location);
  16065. // _this.$message.success('上传成功'+data.Location)
  16066. }
  16067. });
  16068. }
  16069. }
  16070. },
  16071. beforeUpload2(event, type) {
  16072. var file = event.target.files[0];
  16073. var credentials = {
  16074. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16075. secretAccessKey: "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",
  16076. }; //秘钥形式的登录上传
  16077. window.AWS.config.update(credentials);
  16078. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16079. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16080. var _this = this;
  16081. _this.progress = 0;
  16082. _this.proVisible = true;
  16083. if (file) {
  16084. var params = {
  16085. Key:
  16086. file.name.split(".")[0] +
  16087. new Date().getTime() +
  16088. "." +
  16089. file.name.split(".")[file.name.split(".").length - 1],
  16090. ContentType: file.type,
  16091. Body: file,
  16092. "Access-Control-Allow-Credentials": "*",
  16093. ACL: "public-read",
  16094. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16095. var options = {
  16096. partSize: 2048 * 1024 * 1024,
  16097. queueSize: 2,
  16098. leavePartsOnError: true,
  16099. };
  16100. bucket
  16101. .upload(params, options)
  16102. .on("httpUploadProgress", function (evt) {
  16103. //这里可以写进度条
  16104. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16105. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16106. })
  16107. .send(function (err, data) {
  16108. _this.progress = 100;
  16109. setTimeout(() => {
  16110. _this.proVisible = false;
  16111. }, 1000);
  16112. if (err) {
  16113. var a = _this.$refs.upload1.uploadFiles;
  16114. a.splice(a.length - 1, a.length);
  16115. _this.$message.error("上传失败");
  16116. } else {
  16117. if (type == 2) {
  16118. _this.studyJuri[0].upVedio.push({
  16119. name: file.name,
  16120. url: data.Location,
  16121. uid: file.uid,
  16122. });
  16123. _this.imgChange(null, null, type);
  16124. } else if (type == 3) {
  16125. _this.studyJuri[0].upFile.push({
  16126. name: file.name,
  16127. url: data.Location,
  16128. uid: file.uid,
  16129. });
  16130. _this.imgChange(null, null, type);
  16131. }
  16132. console.log(data.Location);
  16133. }
  16134. });
  16135. }
  16136. },
  16137. allScrell() {
  16138. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16139. },
  16140. nextOrpreSteps(t) {
  16141. if (this.IsFollow && this.tType == 2) {
  16142. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16143. return;
  16144. }
  16145. var b = this.chapInfoList.length - 1;
  16146. if (t == 0) {
  16147. if (this.courseType == 0) {
  16148. if (this.taskCount == 0) {
  16149. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16150. if (this.IsLookOpen) {
  16151. if (
  16152. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16153. ) {
  16154. if (
  16155. this.courseDetail.userid != this.userid &&
  16156. (!this.courseDetail.course_teacher ||
  16157. (this.courseDetail.course_teacher &&
  16158. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16159. ) {
  16160. this.$message.error("任务未解锁");
  16161. } else {
  16162. this.$message.error("上一任务未解锁");
  16163. }
  16164. return;
  16165. }
  16166. }
  16167. this.navList[this.courseType].isOpen = false;
  16168. this.courseType = b;
  16169. this.taskCount =
  16170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16171. .length - 1;
  16172. this.navList[this.courseType].isOpen = true;
  16173. } else {
  16174. this.taskCount--;
  16175. }
  16176. } else {
  16177. if (this.taskCount == 0) {
  16178. this.navList[this.courseType].isOpen = false;
  16179. this.courseType--;
  16180. this.taskCount =
  16181. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16182. .length - 1;
  16183. this.navList[this.courseType].isOpen = true;
  16184. } else {
  16185. this.taskCount--;
  16186. }
  16187. }
  16188. } else {
  16189. if (this.courseType == b) {
  16190. if (
  16191. this.taskCount ==
  16192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16193. 1
  16194. ) {
  16195. this.navList[this.courseType].isOpen = false;
  16196. this.courseType = 0;
  16197. this.taskCount = 0;
  16198. this.navList[this.courseType].isOpen = true;
  16199. } else {
  16200. var bbb = parseInt(this.taskCount) + 1;
  16201. if (
  16202. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16203. .isLook &&
  16204. this.courseDetail.userid != this.userid &&
  16205. (!this.courseDetail.course_teacher ||
  16206. (this.courseDetail.course_teacher &&
  16207. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16208. this.IsLookOpen
  16209. ) {
  16210. this.$message.error("任务未解锁");
  16211. return;
  16212. }
  16213. this.taskCount++;
  16214. if (this.IsLookOpen) {
  16215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16216. this.taskCount
  16217. ].isLook = true;
  16218. this.addCourseState(3);
  16219. }
  16220. }
  16221. } else {
  16222. if (
  16223. this.taskCount ==
  16224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16225. 1
  16226. ) {
  16227. var bbb = parseInt(this.courseType) + 1;
  16228. if (
  16229. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16230. this.courseDetail.userid != this.userid &&
  16231. (!this.courseDetail.course_teacher ||
  16232. (this.courseDetail.course_teacher &&
  16233. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16234. this.IsLookOpen
  16235. ) {
  16236. this.$message.error("任务未解锁");
  16237. return;
  16238. }
  16239. this.navList[this.courseType].isOpen = false;
  16240. this.courseType++;
  16241. this.taskCount = 0;
  16242. this.navList[this.courseType].isOpen = true;
  16243. } else {
  16244. var bbb = parseInt(this.taskCount) + 1;
  16245. if (
  16246. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16247. .isLook &&
  16248. this.courseDetail.userid != this.userid &&
  16249. (!this.courseDetail.course_teacher ||
  16250. (this.courseDetail.course_teacher &&
  16251. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16252. this.IsLookOpen
  16253. ) {
  16254. this.$message.error("任务未解锁");
  16255. return;
  16256. }
  16257. this.taskCount++;
  16258. }
  16259. if (this.IsLookOpen) {
  16260. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16261. this.taskCount
  16262. ].isLook = true;
  16263. this.addCourseState(3);
  16264. }
  16265. }
  16266. // if (
  16267. // this.taskCount ==
  16268. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16269. // ) {
  16270. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16271. // } else {
  16272. // this.taskCount++;
  16273. // }
  16274. }
  16275. document.scrollingElement.scrollTop = 0;
  16276. // this.showType = 7;
  16277. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16278. // if (this.vedio[this.taskCount].length > 0) {
  16279. // var a =
  16280. // document.getElementsByClassName("box_course")[this.taskCount]
  16281. // .offsetHeight;
  16282. // document.getElementsByClassName("vedioList")[
  16283. // this.taskCount
  16284. // ].style.height = a + "px";
  16285. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16286. // a - 40 + "px";
  16287. // }
  16288. this.isNoHomeWork = false;
  16289. (this.studyJuri = [
  16290. {
  16291. content: "",
  16292. cover: [],
  16293. upVedio: [],
  16294. upFile: [],
  16295. },
  16296. ]),
  16297. (this.radio = []);
  16298. this.isClickNav = "";
  16299. this.selectPz();
  16300. this.getHomeWork();
  16301. this.getCourseDetail(2);
  16302. this.$forceUpdate();
  16303. },
  16304. openTask(s, n, i) {
  16305. if (this.IsFollow && this.tType == 2) {
  16306. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16307. return;
  16308. }
  16309. if (this.IsLookOpen) {
  16310. if (
  16311. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16312. this.courseDetail.userid != this.userid &&
  16313. (!this.courseDetail.course_teacher ||
  16314. (this.courseDetail.course_teacher &&
  16315. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16316. ) {
  16317. this.$message.error("任务未解锁");
  16318. return;
  16319. }
  16320. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16321. if (
  16322. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16323. .isLook
  16324. ) {
  16325. this.$message.error("上一任务未解锁");
  16326. return;
  16327. }
  16328. } else if (s > this.courseType) {
  16329. if (n > 0) {
  16330. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16331. this.$message.error("上一任务未解锁");
  16332. return;
  16333. }
  16334. } else {
  16335. if (
  16336. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16337. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16338. ].isLook
  16339. ) {
  16340. this.$message.error("上一任务未解锁");
  16341. return;
  16342. }
  16343. }
  16344. }
  16345. }
  16346. if (this.navList[s].task[n].isOpen == true) {
  16347. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16348. return;
  16349. }
  16350. let flag = this.courseType==s;
  16351. this.courseType = s;
  16352. this.navId = i;
  16353. this.taskCount = n;
  16354. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16355. this.navList[this.courseType].task[this.taskCount].isOpen =
  16356. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16357. if (this.IsLookOpen) {
  16358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16359. this.taskCount
  16360. ].isLook = true;
  16361. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16362. this.addCourseState(3,yym);
  16363. }
  16364. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16365. this.isCloseList[ci].isClose = 0;
  16366. this.isCloseList[ci].isCloseBoolean = false;
  16367. this.$nextTick(()=>{
  16368. setTimeout(()=>{
  16369. setTimeout(()=>{
  16370. this.panToolHeight('tool-'+ci);
  16371. }, 0)
  16372. }, 0)
  16373. })
  16374. }
  16375. // this.showType = 7;
  16376. this.isNoHomeWork = false;
  16377. (this.studyJuri = [
  16378. {
  16379. content: "",
  16380. cover: [],
  16381. upVedio: [],
  16382. upFile: [],
  16383. },
  16384. ]),
  16385. (this.radio = []);
  16386. document.scrollingElement.scrollTop = 0;
  16387. // setTimeout(() => {
  16388. // let a = document.getElementById(i);
  16389. // if (a.offsetTop - 110 == 0) {
  16390. // window.scrollTo(0, 0);
  16391. // } else {
  16392. // window.scrollTo(0, a.offsetTop);
  16393. // }
  16394. // }, 0);
  16395. for (var z = 0; z < this.navList.length; z++) {
  16396. for (var q = 0; q < this.navList[z].task.length; q++) {
  16397. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16398. this.navList[z].task[q].tool[w].isTool = false;
  16399. }
  16400. }
  16401. }
  16402. this.selectPz();
  16403. this.getHomeWork();
  16404. this.getCourseDetail(2);
  16405. if(flag){
  16406. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16407. }else{
  16408. 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>`)
  16409. }
  16410. },
  16411. get(i) {
  16412. if (this.IsFollow && this.tType == 2) {
  16413. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16414. return;
  16415. }
  16416. // for(var k=0;k<this.navList.length;k++){
  16417. // this.navList[k].isOpen = false;
  16418. // }
  16419. // this.navList[i].isOpen = true;
  16420. this.navList[i].isOpen = !this.navList[i].isOpen;
  16421. if (this.navList[i].isOpen) {
  16422. this.openTask(i, 0, i + "-0");
  16423. }
  16424. },
  16425. addQuestion() {
  16426. this.answerList.push({
  16427. answerTitle: this.answerQ,
  16428. answer: this.questionAnswer,
  16429. });
  16430. let params = [
  16431. {
  16432. uid: this.userid,
  16433. cid: this.id,
  16434. stage: this.courseType,
  16435. task: this.taskCount,
  16436. tool: this.toolindex,
  16437. content: JSON.stringify(this.answerList),
  16438. type: 3,
  16439. },
  16440. ];
  16441. this.ajax
  16442. .post(this.$store.state.api + "addCourseWorks", params)
  16443. .then((res) => {
  16444. this.$message({
  16445. message: "提交成功",
  16446. type: "success",
  16447. });
  16448. this.answerList = [];
  16449. this.answerDialogVisible = false;
  16450. this.selectStudent();
  16451. this.selectSWorks();
  16452. this.selectSLook();
  16453. })
  16454. .catch((err) => {
  16455. this.$message.error("提交失败");
  16456. console.error(err);
  16457. });
  16458. },
  16459. addQuestionTeacher() {
  16460. this.answerList.push({
  16461. answerTitle: this.answerQ,
  16462. answer: this.questionAnswer,
  16463. });
  16464. let params = [
  16465. {
  16466. uid: this.sStudent.userid,
  16467. cid: this.id,
  16468. stage: this.courseType,
  16469. task: this.taskCount,
  16470. tool: this.toolindex,
  16471. content: JSON.stringify(this.answerList),
  16472. type: 3,
  16473. ateacher: this.userid,
  16474. },
  16475. ];
  16476. this.ajax
  16477. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16478. .then((res) => {
  16479. this.$message({
  16480. message: "提交成功",
  16481. type: "success",
  16482. });
  16483. this.answerList = [];
  16484. this.questionAnswer = "";
  16485. this.answerDialogVisibleTeacher = false;
  16486. this.selectStudent();
  16487. this.selectSWorks();
  16488. this.selectSLook();
  16489. })
  16490. .catch((err) => {
  16491. this.$message.error("提交失败");
  16492. console.error(err);
  16493. });
  16494. },
  16495. refreshCourse() {
  16496. // window.location.reload();
  16497. this.navList = [];
  16498. this.getCourseDetail(1);
  16499. },
  16500. getCourseDetail(type, gindex) {
  16501. let loading;
  16502. if (type != 2) {
  16503. loading = this.$loading.service({
  16504. background: "rgba(255, 255, 255, 0.7)",
  16505. target: document.querySelector(".student_table"),
  16506. });
  16507. }
  16508. this.downLoading = false
  16509. // this.navList[0].isOpen = false;
  16510. // this.navList[this.courseType].isOpen = true;
  16511. // this.courseType = this.courseTypeLine;
  16512. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16513. let params = {
  16514. courseId: this.id,
  16515. };
  16516. this.ajax
  16517. .get(this.$store.state.api + "selectCourseDetail3", params)
  16518. .then((res) => {
  16519. if (type != 2) {
  16520. loading.close();
  16521. if (
  16522. this.courseType >
  16523. JSON.parse(res.data[0][0].chapters).length - 1
  16524. ) {
  16525. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16526. }
  16527. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16528. .chapterInfo[0].taskJson;
  16529. var b = [
  16530. "AVI",
  16531. "NAVI",
  16532. "MPEG",
  16533. "ASF",
  16534. "MOV",
  16535. "WMV",
  16536. "3GP",
  16537. "RM",
  16538. "RMVB",
  16539. "FLV",
  16540. "F4V",
  16541. "H.264",
  16542. "H.265",
  16543. "REAL VIDEO",
  16544. "MKV",
  16545. "WebM",
  16546. "HDDVD",
  16547. "MP4",
  16548. "MPG",
  16549. "M4V",
  16550. "MGV",
  16551. "OGV",
  16552. "QTM",
  16553. "STR",
  16554. "AMC",
  16555. "DVX",
  16556. "EVO",
  16557. "DAT",
  16558. "OGG",
  16559. "OGM",
  16560. "MP3",
  16561. ];
  16562. let _chapterData = [];
  16563. for (var i = 0; i < a.length; i++) {
  16564. var c = a[i].chapterData;
  16565. this.vedio[i] = [];
  16566. this.textList[i] = [];
  16567. this.lineList[i] = [];
  16568. this.chapToolList[i] = [];
  16569. this.file[i] = [];
  16570. this.fileC[i] = [];
  16571. _chapterData[i] = c.filter((el) => {
  16572. return el.type != 12;
  16573. });
  16574. this.fileC[i] = c.filter((el) => {
  16575. return el.type == 12;
  16576. });
  16577. if (this.tType == 2) {
  16578. if (this.fileC[i].length) {
  16579. let yym1 = this.fileC[i].filter(e=>{
  16580. if(!converter(e.name).includes(converter("教案"))){
  16581. return e
  16582. }
  16583. })
  16584. this.fileC[i] = yym1
  16585. }
  16586. }
  16587. // else if (c[j].type == 12) {
  16588. // this.fileC[i].push(c[j]);
  16589. // }
  16590. for (var j = 0; j < c.length; j++) {
  16591. if (c[j].type == 7) {
  16592. this.chapToolList[i].push(c[j]);
  16593. } else if (c[j].type == 8 || c[j].type == 14) {
  16594. this.lineList[i].push(c[j]);
  16595. } else if (c[j].type == 6) {
  16596. this.textList[i].push(c[j]);
  16597. } else {
  16598. if (
  16599. b.indexOf(
  16600. c[j].url
  16601. .split(".")
  16602. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16603. ) != -1
  16604. ) {
  16605. this.vedio[i].push(c[j]);
  16606. } else {
  16607. this.file[i].push(c[j]);
  16608. }
  16609. }
  16610. }
  16611. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16612. d.sources[0].src =
  16613. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16614. this.playerO[i] = d;
  16615. }
  16616. this.courseDetail = res.data[0][0];
  16617. this.tcid = this.arrayToArray(
  16618. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16619. this.tcid2 ? this.tcid2.split(",") : []
  16620. ).join(",");
  16621. this.evalua = res.data[0][0].evaId;
  16622. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16623. this.courseType
  16624. ];
  16625. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16626. if (this.tcid && res.data[1].length) {
  16627. let _inviteA = [];
  16628. for (var ik = 0; ik < res.data[1].length; ik++) {
  16629. _inviteA.push({
  16630. cid: res.data[1][ik].classid,
  16631. ic: res.data[1][ik].code,
  16632. });
  16633. }
  16634. for (var ik = 0; ik < _inviteA.length; ik++) {
  16635. if (
  16636. this.arrayToArray(
  16637. _inviteA[ik].cid.split(","),
  16638. this.tcid.split(",")
  16639. ).length
  16640. ) {
  16641. this.inviteCode = _inviteA[ik].ic;
  16642. break;
  16643. }
  16644. }
  16645. }
  16646. for (var l = 0; l < this.chapInfoList.length; l++) {
  16647. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16648. for (var m = 0; m < w.length; m++) {
  16649. w[m].id = l + "-" + m;
  16650. }
  16651. }
  16652. let taskCount = 0;
  16653. if (
  16654. _chapterData[taskCount].length &&
  16655. _chapterData[taskCount][0].type == 2
  16656. ) {
  16657. this.showType = 0;
  16658. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16659. } else {
  16660. if (_chapterData[taskCount].length > 0) {
  16661. let _url = _chapterData[taskCount][0].url;
  16662. if (
  16663. _chapterData[taskCount][0].type == 8 ||
  16664. _chapterData[taskCount][0].type == 14
  16665. ) {
  16666. this.showType = 2;
  16667. if (
  16668. _url.indexOf("https://") == -1 &&
  16669. _url.indexOf("http://") == -1
  16670. ) {
  16671. _url = "https://" + _url;
  16672. }
  16673. this.pptImgUrl1 = _url;
  16674. } else if (_chapterData[taskCount][0].type == 3) {
  16675. if (
  16676. _url
  16677. .split(".")
  16678. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16679. ) {
  16680. this.showType = 3;
  16681. this.pptImgUrl1 = _url;
  16682. } else if (
  16683. this.isAssetTypeAnImage(
  16684. _url
  16685. .split(".")
  16686. [_url.split(".").length - 1].toLocaleLowerCase()
  16687. )
  16688. ) {
  16689. this.showType = 4;
  16690. this.pptImgUrl1 = _url;
  16691. } else {
  16692. this.showType = 2;
  16693. this.pptImgUrl1 =
  16694. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16695. encodeURIComponent(_url);
  16696. }
  16697. } else if (_chapterData[taskCount][0].type == 13) {
  16698. this.showType = 4;
  16699. this.pptImgUrl1 = _url;
  16700. } else if (_chapterData[taskCount][0].type == 6) {
  16701. this.showType = 1;
  16702. this.text = this.textList[taskCount][0];
  16703. }
  16704. }
  16705. }
  16706. this.isClickNav = 0;
  16707. if (
  16708. !_chapterData[taskCount].length ||
  16709. _chapterData[taskCount][0].type == 12
  16710. ) {
  16711. this.isClickNav = "";
  16712. this.showType = "";
  16713. }
  16714. if (this.tType == 2) {
  16715. _chapterData.forEach((e,i)=>{
  16716. if (e.length) {
  16717. let yym = e.filter(k=>{
  16718. if(!converter(k.name).includes(converter("教案"))){
  16719. return k
  16720. }
  16721. })
  16722. _chapterData[i] = yym
  16723. }
  16724. })
  16725. }
  16726. this.vChapterData = _chapterData;
  16727. } else {
  16728. // this.showType = 0;
  16729. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16730. .chapterInfo[0].taskJson;
  16731. var b = [
  16732. "AVI",
  16733. "NAVI",
  16734. "MPEG",
  16735. "ASF",
  16736. "MOV",
  16737. "WMV",
  16738. "3GP",
  16739. "RM",
  16740. "RMVB",
  16741. "FLV",
  16742. "F4V",
  16743. "H.264",
  16744. "H.265",
  16745. "REAL VIDEO",
  16746. "MKV",
  16747. "WebM",
  16748. "HDDVD",
  16749. "MP4",
  16750. "MPG",
  16751. "M4V",
  16752. "MGV",
  16753. "OGV",
  16754. "QTM",
  16755. "STR",
  16756. "AMC",
  16757. "DVX",
  16758. "EVO",
  16759. "DAT",
  16760. "OGG",
  16761. "OGM",
  16762. "MP3",
  16763. ];
  16764. let _chapterData = [];
  16765. for (var i = 0; i < a.length; i++) {
  16766. var c = a[i].chapterData;
  16767. this.vedio[i] = [];
  16768. this.textList[i] = [];
  16769. this.lineList[i] = [];
  16770. this.chapToolList[i] = [];
  16771. this.file[i] = [];
  16772. this.fileC[i] = [];
  16773. _chapterData[i] = c.filter((el) => {
  16774. return el.type != 12;
  16775. });
  16776. this.fileC[i] = c.filter((el) => {
  16777. return el.type == 12;
  16778. });
  16779. if (this.tType == 2) {
  16780. if (this.fileC[i].length) {
  16781. let yym1 = this.fileC[i].filter(e=>{
  16782. if(!converter(e.name).includes(converter("教案"))){
  16783. return e
  16784. }
  16785. })
  16786. this.fileC[i] = yym1
  16787. }
  16788. }
  16789. for (var j = 0; j < c.length; j++) {
  16790. if (c[j].type == 7) {
  16791. this.chapToolList[i].push(c[j]);
  16792. } else if (c[j].type == 8 || c[j].type == 14) {
  16793. this.lineList[i].push(c[j]);
  16794. } else if (c[j].type == 6) {
  16795. this.textList[i].push(c[j]);
  16796. } else {
  16797. if (
  16798. b.indexOf(
  16799. c[j].url
  16800. .split(".")
  16801. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16802. ) != -1
  16803. ) {
  16804. this.vedio[i].push(c[j]);
  16805. } else {
  16806. this.file[i].push(c[j]);
  16807. }
  16808. }
  16809. }
  16810. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16811. d.sources[0].src =
  16812. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16813. this.playerO[i] = d;
  16814. }
  16815. let taskCount = 0;
  16816. if (
  16817. _chapterData[taskCount].length &&
  16818. _chapterData[taskCount][0].type == 2
  16819. ) {
  16820. // this.showType = 0;
  16821. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16822. } else {
  16823. if (_chapterData[taskCount].length > 0) {
  16824. let _url = _chapterData[taskCount][0].url;
  16825. if (
  16826. _chapterData[taskCount][0].type == 8 ||
  16827. _chapterData[taskCount][0].type == 14
  16828. ) {
  16829. // this.showType = 2;
  16830. if (
  16831. _url.indexOf("https://") == -1 &&
  16832. _url.indexOf("http://") == -1
  16833. ) {
  16834. _url = "https://" + _url;
  16835. }
  16836. // this.pptImgUrl1 = _url;
  16837. } else if (_chapterData[taskCount][0].type == 3) {
  16838. if (
  16839. _url
  16840. .split(".")
  16841. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16842. ) {
  16843. // this.showType = 3;
  16844. // this.pptImgUrl1 = _url;
  16845. } else if (
  16846. this.isAssetTypeAnImage(
  16847. _url
  16848. .split(".")
  16849. [_url.split(".").length - 1].toLocaleLowerCase()
  16850. )
  16851. ) {
  16852. // this.showType = 4;
  16853. // this.pptImgUrl1 = _url;
  16854. } else {
  16855. // this.showType = 2;
  16856. // this.pptImgUrl1 =
  16857. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  16858. // encodeURIComponent(_url);
  16859. }
  16860. } else if (_chapterData[taskCount][0].type == 13) {
  16861. // this.showType = 4;
  16862. // this.pptImgUrl1 = _url;
  16863. } else if (_chapterData[taskCount][0].type == 6) {
  16864. this.showType = 1;
  16865. this.text = this.textList[taskCount][0];
  16866. }
  16867. }
  16868. }
  16869. this.isClickNav = 0;
  16870. if (
  16871. !_chapterData[taskCount].length ||
  16872. _chapterData[taskCount][0].type == 12
  16873. ) {
  16874. this.isClickNav = "";
  16875. // this.showType = "";
  16876. }
  16877. if (this.tType == 2) {
  16878. _chapterData.forEach((e,i)=>{
  16879. if (e.length) {
  16880. let yym = e.filter(k=>{
  16881. if(!converter(k.name).includes(converter("教案"))){
  16882. return k
  16883. }
  16884. })
  16885. _chapterData[i] = yym
  16886. }
  16887. })
  16888. }
  16889. this.vChapterData = _chapterData;
  16890. this.$forceUpdate();
  16891. }
  16892. // else {
  16893. // this.courseDetail = res.data[0][0];
  16894. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16895. // }
  16896. let _this = this;
  16897. if (_this.timer) {
  16898. clearInterval(_this.timer);
  16899. _this.timer = null;
  16900. }
  16901. if (_this.tcid) {
  16902. _this.getCourseGroup(gindex);
  16903. } else {
  16904. _this.selectSWorks(gindex);
  16905. }
  16906. _this.selectStudent();
  16907. _this.selectSLook();
  16908. _this.getPick();
  16909. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16910. _this.setCTask();
  16911. }
  16912. if (_this.dialogVisibleGroup) {
  16913. _this.groupJson =
  16914. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16915. _this.taskCount
  16916. ].toolChoose[_this.toolindex].groupJson;
  16917. }
  16918. _this.$nextTick(() => {
  16919. setTimeout(() => {
  16920. _this.checkEva();
  16921. }, 1000);
  16922. });
  16923. _this.timer = setInterval(function () {
  16924. // _this.getCourseDetail(2);
  16925. if (_this.tcid) {
  16926. _this.getCourseGroup(gindex);
  16927. } else {
  16928. _this.selectSWorks(gindex);
  16929. }
  16930. _this.selectStudent();
  16931. _this.selectSLook();
  16932. _this.getPick();
  16933. // _this.getSplitScreenData();//获取分屏数据
  16934. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16935. _this.setCTask();
  16936. }
  16937. if (_this.dialogVisibleGroup) {
  16938. _this.groupJson =
  16939. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16940. _this.taskCount
  16941. ].toolChoose[_this.toolindex].groupJson;
  16942. }
  16943. if (_this.tType == 4 || _this.ispzType == 4) {
  16944. _this.selectPz();
  16945. }
  16946. }, 5000);
  16947. if (_this.timer2 == null) {
  16948. _this.timer2 = setInterval(()=> {
  16949. _this.getSplitScreenData();//获取分屏数据
  16950. }, 5000);
  16951. }
  16952. _this.$nextTick(function () {
  16953. setTimeout(() => {
  16954. // var a =
  16955. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16956. // document.getElementsByClassName("vedioList")[0].style.height =
  16957. // a + "px";
  16958. // document.getElementsByClassName("navBox")[0].style.height =
  16959. // a - 40 + "px";
  16960. // if (_this.vedio[_this.taskCount].length > 0) {
  16961. // _this.vedioTime = [];
  16962. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16963. // _this.vedioTime[i] = document.getElementsByClassName(
  16964. // "vjs-duration-display"
  16965. // )[i].textContent;
  16966. // }
  16967. // }
  16968. }, 1000);
  16969. });
  16970. })
  16971. .catch((err) => {
  16972. loading.close();
  16973. console.error(err);
  16974. });
  16975. },
  16976. getCourseGroup(gindex) {
  16977. let params = {
  16978. cid: this.id,
  16979. classid: this.tcid ? this.tcid : "1",
  16980. };
  16981. this.ajax
  16982. .get(this.$store.state.api + "getCourseGroup", params)
  16983. .then((res) => {
  16984. if (res.data && res.data[0].length) {
  16985. if (!this.isGroup) {
  16986. let courseGroup = JSON.parse(res.data[0][0].group);
  16987. courseGroup.group = courseGroup.group.filter((el) => {
  16988. el.works = [];
  16989. return el;
  16990. });
  16991. if (courseGroup.isopen == 2) {
  16992. this.isGroup = false;
  16993. this.selectSWorks(gindex);
  16994. return;
  16995. }
  16996. this.courseGroup = courseGroup;
  16997. let groupPerson = res.data[1];
  16998. let group = JSON.parse(res.data[0][0].group).group;
  16999. let courseGroupStudent = {};
  17000. let courseGroupStudentUid = {};
  17001. for (var i = 0; i < group.length; i++) {
  17002. courseGroupStudent[group[i].id] = [];
  17003. courseGroupStudentUid[group[i].id] = [];
  17004. for (var j = 0; j < groupPerson.length; j++) {
  17005. if (groupPerson[j].groupCid == group[i].id) {
  17006. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17007. courseGroupStudentUid[group[i].id].push(
  17008. groupPerson[j].userid
  17009. );
  17010. }
  17011. }
  17012. }
  17013. this.courseGroupStudent = courseGroupStudent;
  17014. this.courseGroupStudentUid = courseGroupStudentUid;
  17015. }
  17016. if (this.courseGroup.isopen == 2) {
  17017. this.isGroup = false;
  17018. } else {
  17019. this.isGroup = true;
  17020. }
  17021. this.selectSWorks(gindex);
  17022. } else {
  17023. this.selectSWorks(gindex);
  17024. this.isGroup = false;
  17025. }
  17026. })
  17027. .catch((err) => {
  17028. // this.$message.error("网络不佳");
  17029. console.error(err);
  17030. });
  17031. },
  17032. setOperationTime() {
  17033. let _this = this;
  17034. if (_this.opertimer) {
  17035. clearInterval(_this.opertimer);
  17036. _this.opertimer = null;
  17037. }
  17038. _this.opertimer = setInterval(() => {
  17039. _this.setoTime("600");
  17040. }, 600000);
  17041. },
  17042. setoTime(time) {
  17043. let params = [
  17044. {
  17045. uid: this.userid,
  17046. cid: this.id,
  17047. type: "2",
  17048. time: time,
  17049. },
  17050. ];
  17051. this.ajax
  17052. .post(this.$store.state.api + "addOperationTimeT2", params)
  17053. .then((res) => {})
  17054. .catch((err) => {
  17055. console.error(err);
  17056. });
  17057. },
  17058. addPz(type, content) {
  17059. if (type == "1" && this.pzConText == "") {
  17060. this.$message.error("评论不能为空!");
  17061. return;
  17062. }
  17063. let params = [
  17064. {
  17065. cid: this.id,
  17066. uid: this.userid,
  17067. s: this.courseType,
  17068. t: this.taskCount,
  17069. c: type == "1" ? this.pzConText : content,
  17070. type: type,
  17071. },
  17072. ];
  17073. this.ajax
  17074. .post(this.$store.state.api + "addPz2", params)
  17075. .then((res) => {
  17076. this.$message({
  17077. message: "添加成功",
  17078. type: "success",
  17079. });
  17080. this.pzConText = "";
  17081. this.addPzDialog = false;
  17082. this.selectPz();
  17083. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17084. })
  17085. .catch((err) => {
  17086. this.$message.error("添加失败");
  17087. console.error(err);
  17088. });
  17089. },
  17090. setReplyIndex(id, i) {
  17091. this.replyIndex = i;
  17092. this.replyPid = id;
  17093. this.replyDialogVisible = true;
  17094. },
  17095. addHf() {
  17096. if (this.reply == "") {
  17097. this.$message.error("回复不能为空!");
  17098. return;
  17099. }
  17100. let params = [
  17101. {
  17102. cid: this.id,
  17103. uid: this.userid,
  17104. s: this.courseType,
  17105. t: this.taskCount,
  17106. type: "1",
  17107. ct: 2,
  17108. pid: this.replyPid,
  17109. c: this.reply,
  17110. },
  17111. ];
  17112. this.ajax
  17113. .post(this.$store.state.api + "addHf", params)
  17114. .then((res) => {
  17115. this.reply = "";
  17116. this.$message({
  17117. message: "回复成功",
  17118. type: "success",
  17119. });
  17120. this.replyDialogVisible = false;
  17121. this.selectPz();
  17122. })
  17123. .catch((err) => {
  17124. this.$message.error("回复失败");
  17125. console.error(err);
  17126. });
  17127. },
  17128. deletePz(id) {
  17129. this.$confirm("确定删除此评论吗?", "提示", {
  17130. confirmButtonText: "确定",
  17131. cancelButtonText: "取消",
  17132. type: "warning",
  17133. })
  17134. .then(() => {
  17135. let params = [
  17136. {
  17137. id: id,
  17138. },
  17139. ];
  17140. this.ajax
  17141. .post(this.$store.state.api + "deletePz", params)
  17142. .then((res) => {
  17143. this.$message({
  17144. message: "删除成功",
  17145. type: "success",
  17146. });
  17147. this.selectPz();
  17148. })
  17149. .catch((err) => {
  17150. this.$message.error("网络异常");
  17151. console.error(err);
  17152. });
  17153. })
  17154. .catch(() => {});
  17155. },
  17156. deleteReply(id) {
  17157. this.$confirm("确定删除此回复吗?", "提示", {
  17158. confirmButtonText: "确定",
  17159. cancelButtonText: "取消",
  17160. type: "warning",
  17161. })
  17162. .then(() => {
  17163. let params = [
  17164. {
  17165. id: id,
  17166. },
  17167. ];
  17168. this.ajax
  17169. .post(this.$store.state.api + "deleteReply", params)
  17170. .then((res) => {
  17171. this.$message({
  17172. message: "删除成功",
  17173. type: "success",
  17174. });
  17175. this.selectPz();
  17176. })
  17177. .catch((err) => {
  17178. this.$message.error("网络异常");
  17179. console.error(err);
  17180. });
  17181. })
  17182. .catch(() => {});
  17183. },
  17184. setPz() {
  17185. if (this.ispzType == 4) {
  17186. this.ispzType = 0;
  17187. this.pzDialog = false;
  17188. return;
  17189. }
  17190. this.ispzType = 4;
  17191. this.pzDialog = true;
  17192. this.selectPz();
  17193. },
  17194. selectPz() {
  17195. let params = {
  17196. cid: this.id,
  17197. s: this.courseType,
  17198. t: this.taskCount,
  17199. type: this.pzStype,
  17200. uid: this.userid,
  17201. };
  17202. this.ajax
  17203. .get(this.$store.state.api + "selectPzListType", params)
  17204. .then((res) => {
  17205. this.pzList = res.data[0];
  17206. var a = res.data[1];
  17207. for (var i = 0; i < a.length; i++) {
  17208. for (var j = 0; j < this.pzList.length; j++) {
  17209. if (!this.pzList[j].hfList) {
  17210. this.pzList[j].hfList = [];
  17211. }
  17212. if (a[i].pid == this.pzList[j].id) {
  17213. this.pzList[j].hfList.push(a[i]);
  17214. }
  17215. }
  17216. }
  17217. })
  17218. .catch((err) => {
  17219. console.error(err);
  17220. });
  17221. },
  17222. // selectHf() {
  17223. // let params = {
  17224. // cid: this.id,
  17225. // s: this.courseType,
  17226. // t: this.taskCount,
  17227. // };
  17228. // this.ajax
  17229. // .get(this.$store.state.api + "selectHfList", params)
  17230. // .then((res) => {
  17231. // var a = res.data[0];
  17232. // for (var i = 0; i < a.length; i++) {
  17233. // for (var j = 0; j < this.pzList.length; j++) {
  17234. // if (!this.pzList[i].hfList) {
  17235. // this.pzList[i].hfList = [];
  17236. // }
  17237. // if (a[i].pid == this.pzList[j].id) {
  17238. // this.pzList[i].hfList.push(a[i]);
  17239. // }
  17240. // }
  17241. // }
  17242. // })
  17243. // .catch((err) => {
  17244. // console.error(err);
  17245. // });
  17246. // },
  17247. updateSLook() {
  17248. let params = {
  17249. sopen: this.sIsOpen == false ? 1 : 2,
  17250. cid: this.id,
  17251. };
  17252. this.ajax
  17253. .get(this.$store.state.api + "updateCourseSLook", params)
  17254. .then((res) => {
  17255. if (this.sIsOpen == true) {
  17256. this.$message({
  17257. message: "权限设置成功",
  17258. type: "success",
  17259. });
  17260. } else {
  17261. this.$message({
  17262. message: "权限关闭成功",
  17263. type: "success",
  17264. });
  17265. }
  17266. })
  17267. .catch((err) => {
  17268. console.error(err);
  17269. });
  17270. },
  17271. updateFollow() {
  17272. let params = [
  17273. {
  17274. sopen: this.IsFollow == false ? 1 : 2,
  17275. cid: this.id,
  17276. },
  17277. ];
  17278. this.ajax
  17279. .post(this.$store.state.api + "updateCourseFollow", params)
  17280. .then((res) => {
  17281. if (this.IsFollow == true) {
  17282. this.$message({
  17283. message: "开启成功",
  17284. type: "success",
  17285. });
  17286. } else {
  17287. this.$message({
  17288. message: "关闭成功",
  17289. type: "success",
  17290. });
  17291. }
  17292. this.setCTask();
  17293. })
  17294. .catch((err) => {
  17295. console.error(err);
  17296. });
  17297. },
  17298. setCTask() {
  17299. let params = [
  17300. {
  17301. sopen: this.courseType + "-" + this.taskCount,
  17302. cid: this.id,
  17303. },
  17304. ];
  17305. this.ajax
  17306. .post(this.$store.state.api + "updateCourseFollowC", params)
  17307. .then((res) => {})
  17308. .catch((err) => {
  17309. console.error(err);
  17310. });
  17311. },
  17312. updateLookOpen() {
  17313. let params = [
  17314. {
  17315. sopen: this.IsLookOpen == false ? 1 : 2,
  17316. cid: this.id,
  17317. },
  17318. ];
  17319. this.ajax
  17320. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17321. .then((res) => {
  17322. if (this.IsLookOpen == true) {
  17323. // if (this.courseType != 0 && this.taskCount != 0) {
  17324. // this.openTask(0, 0, "0-0");
  17325. // }
  17326. this.$message({
  17327. message: "权限设置成功",
  17328. type: "success",
  17329. });
  17330. } else {
  17331. this.$message({
  17332. message: "权限关闭成功",
  17333. type: "success",
  17334. });
  17335. }
  17336. this.getCourseState(2);
  17337. })
  17338. .catch((err) => {
  17339. console.error(err);
  17340. });
  17341. },
  17342. selectSLook() {
  17343. let params = {
  17344. cid: this.id,
  17345. };
  17346. this.ajax
  17347. .get(this.$store.state.api + "selectCourseSLook", params)
  17348. .then((res) => {
  17349. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17350. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17351. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17352. if (!this.IsLookOpen) {
  17353. this.setNavList();
  17354. } else {
  17355. this.getCourseState(1);
  17356. }
  17357. if ((this.IsFollow && this.tType == 2)) {
  17358. this.setContent2(false);
  17359. let _followC = res.data[0][0].followC.split("-");
  17360. if (
  17361. this.courseType != _followC[0] ||
  17362. this.taskCount != _followC[1]
  17363. ) {
  17364. this.navList[this.courseType].isOpen = false;
  17365. this.courseType = _followC[0];
  17366. this.navList[this.courseType].isOpen = true;
  17367. this.taskCount = parseInt(_followC[1]);
  17368. this.navId = res.data[0][0].followC;
  17369. document.scrollingElement.scrollTop = 0;
  17370. this.getCourseDetail(2);
  17371. }
  17372. }
  17373. })
  17374. .catch((err) => {
  17375. console.error(err);
  17376. });
  17377. },
  17378. setNavList() {
  17379. if (this.navList.length == 0) {
  17380. this.navList = [];
  17381. var copyList = [];
  17382. for (var l = 0; l < this.chapInfoList.length; l++) {
  17383. var q = this.chapInfoList[l].dyName;
  17384. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17385. var e;
  17386. copyList.push({
  17387. dyName: q,
  17388. isOpen: l === 0 ? true : false,
  17389. task: [],
  17390. });
  17391. for (var r = 0; r < w.length; r++) {
  17392. e = w[r].task;
  17393. if (this.chapInfoList[l].easy == 1) {
  17394. copyList[l].task.push({
  17395. taskName: q,
  17396. id: l + "-" + r,
  17397. isLook: w[r].isLook,
  17398. isOpen: r === 0 ? true : false,
  17399. tool: [],
  17400. });
  17401. } else {
  17402. copyList[l].task.push({
  17403. taskName: e,
  17404. id: l + "-" + r,
  17405. isLook: w[r].isLook,
  17406. isOpen: r === 0 ? true : false,
  17407. tool: [],
  17408. });
  17409. }
  17410. var t = w[r].toolChoose;
  17411. for (var k = 0; k < t.length; k++) {
  17412. var tool = t[k].tool[0];
  17413. copyList[l].task[r].tool.push({
  17414. tool: tool,
  17415. isTool: false,
  17416. });
  17417. }
  17418. // this.navId = this.navId ? this.navId : l + "-" + r;
  17419. // this.navId = l + "-" + r;
  17420. }
  17421. }
  17422. this.navList = copyList;
  17423. this.navList[0].isOpen = false;
  17424. this.navList[this.courseType].isOpen = true;
  17425. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17426. } else {
  17427. this.setNavList2();
  17428. }
  17429. },
  17430. setNavList2() {
  17431. for (var l = 0; l < this.chapInfoList.length; l++) {
  17432. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17433. for (var r = 0; r < w.length; r++) {
  17434. this.navList[l].task[r].isLook = w[r].isLook;
  17435. }
  17436. }
  17437. if (
  17438. this.IsLookOpen &&
  17439. !this.navList[this.courseType].task[this.taskCount].isLook
  17440. ) {
  17441. this.openTask(0, 0, "0-0");
  17442. }
  17443. this.$forceUpdate();
  17444. },
  17445. getCourseState(type) {
  17446. let params = {
  17447. cid: this.id,
  17448. };
  17449. this.ajax
  17450. .get(this.$store.state.api + "getCourseState", params)
  17451. .then((res) => {
  17452. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17453. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17454. this.setNavList();
  17455. this.$forceUpdate();
  17456. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17457. this.addCourseState(2);
  17458. } else {
  17459. this.addCourseState(1);
  17460. }
  17461. })
  17462. .catch((err) => {
  17463. console.error(err);
  17464. });
  17465. },
  17466. addCourseState(type,val = '') {
  17467. let _state = val ? val : this.chapInfoList;
  17468. // this.courseType this.taskCount
  17469. if (type == 1 || type == 2) {
  17470. for (var i = 0; i < _state.length; i++) {
  17471. let el = _state[i].chapterInfo[0].taskJson;
  17472. for (var j = 0; j < el.length; j++) {
  17473. // if (i == 0 && j == 0) {
  17474. // el[j].isLook = true;
  17475. // } else {
  17476. // el[j].isLook = false;
  17477. // }
  17478. if (
  17479. this.courseType > i ||
  17480. (this.courseType == i && this.taskCount + 1 > j)
  17481. ) {
  17482. el[j].isLook = true;
  17483. } else {
  17484. el[j].isLook = false;
  17485. }
  17486. }
  17487. }
  17488. }
  17489. let params = [
  17490. {
  17491. cid: this.id,
  17492. state: JSON.stringify(_state),
  17493. },
  17494. ];
  17495. this.ajax
  17496. .post(
  17497. this.$store.state.api +
  17498. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17499. params
  17500. )
  17501. .then((res) => {
  17502. if (this.IsLookOpen) {
  17503. this.setNavList();
  17504. }
  17505. if (type == 3 && type == 2) {
  17506. this.getCourseState(1);
  17507. }
  17508. })
  17509. .catch((err) => {
  17510. console.error(err);
  17511. });
  17512. },
  17513. getHomeWork() {
  17514. let params = {
  17515. cid: this.id,
  17516. stage: this.courseType,
  17517. task: this.taskCount,
  17518. uid: this.userid,
  17519. };
  17520. this.ajax
  17521. .get(this.$store.state.api + "selectWork", params)
  17522. .then((res) => {
  17523. if (res.data[0].length > 0) {
  17524. this.studyJuri = JSON.parse(res.data[0][0].content);
  17525. this.isNoHomeWork = true;
  17526. }
  17527. })
  17528. .catch((err) => {
  17529. console.error(err);
  17530. });
  17531. },
  17532. isAssetTypeAnImage(ext) {
  17533. return (
  17534. [
  17535. "png",
  17536. "jpg",
  17537. "jpeg",
  17538. "bmp",
  17539. "gif",
  17540. "webp",
  17541. "psd",
  17542. "svg",
  17543. "tiff",
  17544. ].indexOf(ext) !== -1
  17545. );
  17546. },
  17547. switchVideo(media) {
  17548. this.playerO = {};
  17549. this.playerOptions.poster = "";
  17550. this.playerOptions.sources[0].src = media;
  17551. this.playerO = this.playerOptions;
  17552. },
  17553. onPlayerPlay() {},
  17554. onPlayerTimeupdate(player) {
  17555. let gklog = player.cache_.currentTime; //当前播放的秒数
  17556. let a = player.cache_.duration; //视频的总时长
  17557. let gklog2 = parseInt(gklog);
  17558. // if(gklog2 == '3'){
  17559. // player.pause()
  17560. // setTimeout(()=>{
  17561. // player.currentTime(gklog2+1)
  17562. // player.play()
  17563. // },1000)
  17564. // }
  17565. console.log(" onPlayerTimeupdate!", gklog);
  17566. console.log(" onPlayerTimeupdate!", gklog2);
  17567. },
  17568. lookVedio(u, i) {
  17569. this.isClickNav = "";
  17570. // this.playerOptions.sources[0].src = u;
  17571. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17572. d.sources[0].src = u;
  17573. this.playerO[0] = d;
  17574. this.showType = 0;
  17575. // this.isClickNav = "video" + i;
  17576. this.isClickNav = i;
  17577. this.$forceUpdate();
  17578. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17579. },
  17580. lookText(i, t) {
  17581. this.isClickNav = "";
  17582. // this.text = this.textList[i][t];
  17583. this.text = this.vChapterData[i][t];
  17584. // this.dialogVisible1 = true;
  17585. this.showType = 1;
  17586. // this.isClickNav = "text" + t;
  17587. this.isClickNav = t;
  17588. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17589. },
  17590. lookTools(i, t) {
  17591. this.chapTools = this.chapToolList[i][t];
  17592. this.dialogVisible2 = true;
  17593. },
  17594. async openFile(f) {
  17595. this.pptImgUrl = "";
  17596. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17597. if (
  17598. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17599. -1
  17600. ) {
  17601. let _uuurl = await this.checkLink(f);
  17602. console.log(_uuurl)
  17603. this.pptImgUrl =
  17604. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17605. this.showPDF = false;
  17606. this.dialogVisible3 = true;
  17607. } else if (
  17608. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17609. ) {
  17610. this.pptImgUrl = f;
  17611. this.showPDF = true;
  17612. this.dialogVisible3 = true;
  17613. }
  17614. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17615. },
  17616. openTable(f) {
  17617. this.tableJson = JSON.parse(f.works);
  17618. this.dialogVisibleTable2 = true;
  17619. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17620. },
  17621. openWord(f) {
  17622. this.tableJson = JSON.parse(f.works);
  17623. this.dialogVisibleTable3 = true;
  17624. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17625. },
  17626. doUrl(url, i) {
  17627. this.isClickNav = "";
  17628. this.pptImgUrl1 = "";
  17629. this.showType = 2;
  17630. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17631. url = "https://" + url;
  17632. }
  17633. this.pptImgUrl1 = "";
  17634. setTimeout(() => {
  17635. this.pptImgUrl1 = url;
  17636. }, 500);
  17637. // this.isClickNav = "line" + i;
  17638. this.isClickNav = i;
  17639. this.$forceUpdate();
  17640. },
  17641. checkPhoto(f, i) {
  17642. this.showType = 4;
  17643. this.pptImgUrl1 = f.url;
  17644. this.isClickNav = i;
  17645. this.$forceUpdate();
  17646. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17647. },
  17648. async downFile(f, i) {
  17649. this.isClickNav = "";
  17650. this.pptImgUrl1 = "";
  17651. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17652. if (
  17653. a.indexOf(
  17654. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17655. ) != -1
  17656. ) {
  17657. let _uuurl = await this.checkLink(f.url);
  17658. console.log(_uuurl)
  17659. this.pptImgUrl1 =
  17660. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17661. // this.dialogVisible3 = true;
  17662. this.showType = 2;
  17663. } else if (
  17664. this.isAssetTypeAnImage(
  17665. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17666. )
  17667. ) {
  17668. this.showType = 4;
  17669. this.pptImgUrl1 = f.url;
  17670. } else if (
  17671. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17672. "PDF"
  17673. ) {
  17674. this.pptImgUrl1 = f.url;
  17675. // this.dialogVisible3 = true;
  17676. this.showType = 3;
  17677. } else {
  17678. window.open(this.file[i].url);
  17679. }
  17680. // this.isClickNav = "word" + i;
  17681. this.isClickNav = i;
  17682. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17683. },
  17684. downFileList(i) {
  17685. window.open(this.noImgList[i].url);
  17686. },
  17687. openAddWork() {
  17688. this.dialogVisible = true;
  17689. },
  17690. addBzWorks() {
  17691. let params = [
  17692. {
  17693. uid: this.userid,
  17694. cid: this.id,
  17695. stage: this.courseType,
  17696. task: this.taskCount,
  17697. tool: this.toolindex,
  17698. content: JSON.stringify(this.eScore),
  17699. type: 6,
  17700. },
  17701. ];
  17702. this.ajax
  17703. .post(this.$store.state.api + "addCourseWorks", params)
  17704. .then((res) => {
  17705. this.$message({
  17706. message: "提交成功",
  17707. type: "success",
  17708. });
  17709. this.eScore = { eBzText: "", eStar: [] };
  17710. this.studentEvalDialogVisible = false;
  17711. this.selectSWorks();
  17712. })
  17713. .catch((err) => {
  17714. this.$message.error("提交失败");
  17715. console.error(err);
  17716. });
  17717. },
  17718. addBzWorksTeacher() {
  17719. let params = [
  17720. {
  17721. uid: this.sStudent.userid,
  17722. cid: this.id,
  17723. stage: this.courseType,
  17724. task: this.taskCount,
  17725. tool: this.toolindex,
  17726. content: JSON.stringify(this.eScore),
  17727. type: 6,
  17728. },
  17729. ];
  17730. this.ajax
  17731. .post(this.$store.state.api + "addCourseWorks", params)
  17732. .then((res) => {
  17733. this.$message({
  17734. message: "提交成功",
  17735. type: "success",
  17736. });
  17737. this.eScore = { eBzText: "", eStar: [] };
  17738. this.studentEvalDialogVisibleTeacher = false;
  17739. this.selectSWorks();
  17740. })
  17741. .catch((err) => {
  17742. this.$message.error("提交失败");
  17743. console.error(err);
  17744. });
  17745. },
  17746. addStudentAsk() {
  17747. if (!this.radio.length) {
  17748. this.$message.error("请选择选项");
  17749. return;
  17750. }
  17751. for (var i = 0; i < this.askJson.askCount; i++) {
  17752. if (
  17753. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17754. (this.radio[i] !== 0 && !this.radio[i])
  17755. ) {
  17756. this.$message.error("请选择选项");
  17757. return;
  17758. }
  17759. }
  17760. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17761. let params = [
  17762. {
  17763. uid: this.userid,
  17764. cid: this.id,
  17765. stage: this.courseType,
  17766. task: this.taskCount,
  17767. tool: this.toolindex,
  17768. content: JSON.stringify(this.askList),
  17769. type: 2,
  17770. },
  17771. ];
  17772. this.ajax
  17773. .post(this.$store.state.api + "addCourseWorks", params)
  17774. .then((res) => {
  17775. this.$message({
  17776. message: "提交成功",
  17777. type: "success",
  17778. });
  17779. this.askList = [];
  17780. this.dialogVisible5 = false;
  17781. this.selectStudent();
  17782. this.selectSWorks();
  17783. this.selectSLook();
  17784. })
  17785. .catch((err) => {
  17786. this.$message.error("提交失败");
  17787. console.error(err);
  17788. });
  17789. },
  17790. addStudentAskTeacher() {
  17791. if (!this.radio.length) {
  17792. this.$message.error("请选择选项");
  17793. return;
  17794. }
  17795. for (var i = 0; i < this.askJson.askCount; i++) {
  17796. if (
  17797. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17798. (this.radio[i] !== 0 && !this.radio[i])
  17799. ) {
  17800. this.$message.error("请选择选项");
  17801. return;
  17802. }
  17803. }
  17804. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17805. let params = [
  17806. {
  17807. uid: this.sStudent.userid,
  17808. cid: this.id,
  17809. stage: this.courseType,
  17810. task: this.taskCount,
  17811. tool: this.toolindex,
  17812. content: JSON.stringify(this.askList),
  17813. type: 2,
  17814. },
  17815. ];
  17816. this.ajax
  17817. .post(this.$store.state.api + "addCourseWorks", params)
  17818. .then((res) => {
  17819. this.$message({
  17820. message: "提交成功",
  17821. type: "success",
  17822. });
  17823. this.askList = [];
  17824. this.dialogVisible5Teacher = false;
  17825. this.selectStudent();
  17826. this.selectSWorks();
  17827. this.selectSLook();
  17828. })
  17829. .catch((err) => {
  17830. this.$message.error("提交失败");
  17831. console.error(err);
  17832. });
  17833. },
  17834. addStudentTest() {
  17835. if (!this.radio.length) {
  17836. this.$message.error("请选择选项");
  17837. return;
  17838. }
  17839. for (var i = 0; i < this.testJson.testCount; i++) {
  17840. if (
  17841. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17842. (this.radio[i] !== 0 && !this.radio[i])
  17843. ) {
  17844. this.$message.error("请选择选项");
  17845. return;
  17846. }
  17847. }
  17848. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17849. let params = [
  17850. {
  17851. uid: this.userid,
  17852. cid: this.id,
  17853. stage: this.courseType,
  17854. task: this.taskCount,
  17855. tool: this.toolindex,
  17856. content: JSON.stringify(this.askList),
  17857. type: 8,
  17858. },
  17859. ];
  17860. this.ajax
  17861. .post(this.$store.state.api + "addCourseWorks", params)
  17862. .then((res) => {
  17863. this.$message({
  17864. message: "提交成功",
  17865. type: "success",
  17866. });
  17867. this.askList = [];
  17868. this.dialogVisibleChoice = false;
  17869. this.selectStudent();
  17870. this.selectSWorks();
  17871. this.selectSLook();
  17872. })
  17873. .catch((err) => {
  17874. this.$message.error("提交失败");
  17875. console.error(err);
  17876. });
  17877. },
  17878. addStudentTestTeacher() {
  17879. if (!this.radio.length) {
  17880. this.$message.error("请选择选项");
  17881. return;
  17882. }
  17883. for (var i = 0; i < this.testJson.testCount; i++) {
  17884. if (
  17885. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17886. (this.radio[i] !== 0 && !this.radio[i])
  17887. ) {
  17888. this.$message.error("请选择选项");
  17889. return;
  17890. }
  17891. }
  17892. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17893. let params = [
  17894. {
  17895. uid: this.sStudent.userid,
  17896. cid: this.id,
  17897. stage: this.courseType,
  17898. task: this.taskCount,
  17899. tool: this.toolindex,
  17900. content: JSON.stringify(this.askList),
  17901. type: 8,
  17902. },
  17903. ];
  17904. this.ajax
  17905. .post(this.$store.state.api + "addCourseWorks", params)
  17906. .then((res) => {
  17907. this.$message({
  17908. message: "提交成功",
  17909. type: "success",
  17910. });
  17911. this.askList = [];
  17912. this.dialogVisibleChoiceTeacher = false;
  17913. this.selectStudent();
  17914. this.selectSWorks();
  17915. this.selectSLook();
  17916. })
  17917. .catch((err) => {
  17918. this.$message.error("提交失败");
  17919. console.error(err);
  17920. });
  17921. },
  17922. addWork() {
  17923. if (this.studyJuri[0].content == "") {
  17924. this.$message.error("请将信息填写完整");
  17925. return;
  17926. } else if (this.studyJuri[0].cover.length == 0) {
  17927. this.$message.error("请将信息填写完整");
  17928. return;
  17929. } else if (this.studyJuri[0].upVedio.length == 0) {
  17930. this.$message.error("请将信息填写完整");
  17931. return;
  17932. }
  17933. if (this.isNoHomeWork) {
  17934. this.$confirm(
  17935. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17936. "提示",
  17937. {
  17938. confirmButtonText: "确定",
  17939. cancelButtonText: "取消",
  17940. type: "warning",
  17941. }
  17942. )
  17943. .then(() => {
  17944. let params = [
  17945. {
  17946. uid: this.userid,
  17947. cid: this.id,
  17948. stage: this.courseType,
  17949. task: this.taskCount,
  17950. content: JSON.stringify(this.studyJuri),
  17951. },
  17952. ];
  17953. this.ajax
  17954. .post(this.$store.state.api + "addWorks", params)
  17955. .then((res) => {
  17956. this.$message({
  17957. message: "提交成功",
  17958. type: "success",
  17959. });
  17960. this.isNoHomeWork = true;
  17961. this.dialogVisible = false;
  17962. })
  17963. .catch((err) => {
  17964. this.$message.error("提交失败");
  17965. console.error(err);
  17966. });
  17967. })
  17968. .catch(() => {});
  17969. } else {
  17970. let params = [
  17971. {
  17972. uid: this.userid,
  17973. cid: this.id,
  17974. stage: this.courseType,
  17975. task: this.taskCount,
  17976. content: JSON.stringify(this.studyJuri),
  17977. },
  17978. ];
  17979. this.ajax
  17980. .post(this.$store.state.api + "addWorks", params)
  17981. .then((res) => {
  17982. this.$message({
  17983. message: "提交成功",
  17984. type: "success",
  17985. });
  17986. this.isNoHomeWork = true;
  17987. this.dialogVisible = false;
  17988. })
  17989. .catch((err) => {
  17990. this.$message.error("提交失败");
  17991. console.error(err);
  17992. });
  17993. }
  17994. },
  17995. selectCount() {
  17996. let params = {
  17997. cid: this.id,
  17998. chid: this.courseType,
  17999. uid: this.userid,
  18000. };
  18001. this.ajax
  18002. .get(this.$store.state.api + "selectToolsCount", params)
  18003. .then((res) => {
  18004. for (var i = 0; i < res.data[0].length; i++) {
  18005. if (res.data[0][i].tools == 1) {
  18006. this.wbCount = res.data[0][i].count;
  18007. } else if (res.data[0][i].tools == 2) {
  18008. this.wordCount = res.data[0][i].count;
  18009. } else if (res.data[0][i].tools == 3) {
  18010. this.mindCount = res.data[0][i].count;
  18011. } else if (res.data[0][i].tools == 4) {
  18012. this.askCount = res.data[0][i].count;
  18013. } else if (res.data[0][i].tools == 6) {
  18014. this.noteCount = res.data[0][i].count;
  18015. } else if (res.data[0][i].tools == 7) {
  18016. this.mindNetWorkCount = res.data[0][i].count;
  18017. } else if (res.data[0][i].tools == 8) {
  18018. this.libraryCount = res.data[0][i].count;
  18019. } else if (res.data[0][i].tools == 16) {
  18020. this.workCount = res.data[0][i].count;
  18021. } else if (res.data[0][i].tools == 10) {
  18022. this.timeCount = res.data[0][i].count;
  18023. } else if (res.data[0][i].tools == 15) {
  18024. this.answerCount = res.data[0][i].count;
  18025. } else if (res.data[0][i].tools == 18) {
  18026. this.trainCount = res.data[0][i].count;
  18027. }
  18028. }
  18029. })
  18030. .catch((err) => {
  18031. console.error(err);
  18032. });
  18033. },
  18034. openTools(t, i, index, c, sName,id) {
  18035. var z = JSON.parse(c);
  18036. this.noteName = sName;
  18037. if (t == 4) {
  18038. this.radio = [];
  18039. this.isAnswer = false;
  18040. let b = z[0].anwer;
  18041. this.radio = b;
  18042. this.askJson = z[0].askJson;
  18043. this.isAnswer = true;
  18044. this.dialogVisible5 = true;
  18045. } else if (t == 45) {
  18046. this.radio = [];
  18047. this.isAnswer = false;
  18048. let b = z[0].anwer;
  18049. this.radio = b;
  18050. this.testJson = z[0].testJson;
  18051. this.isAnswer = true;
  18052. this.dialogVisibleChoice = true;
  18053. }else if(t == 69){
  18054. this.oldEnglishJson1 = {}
  18055. this.oldEnglishJson = {}
  18056. this.englishList1 = {}
  18057. this.newEngIndex = -1;
  18058. this.isNoUserid = false;
  18059. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18060. .toolChoose[i].englishList;
  18061. this.oldEnglishJson = z;
  18062. this.engWid = id;
  18063. this.newEnglishList = { engTitle:"",engText:"" }
  18064. this.newEnglishList1 = []
  18065. this.selectEngC(id,z);
  18066. }else if(t == 62){
  18067. this.videoType = 1;
  18068. this.videoJson = {};
  18069. this.videoJson = JSON.parse(c);
  18070. // this.videoJson =
  18071. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18072. // index
  18073. // ].toolChoose[i].videoJson;
  18074. this.dialogVisibleVideo = true;
  18075. }
  18076. // else if (t == 15) {
  18077. // this.answerQ = "";
  18078. // this.questionAnswer = "";
  18079. // this.answerQ = z[0].answerTitle;
  18080. // this.questionAnswer = z[0].answer;
  18081. // this.answerDialogVisible = true;
  18082. // }
  18083. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18084. },
  18085. fastText(p, t) {
  18086. if (t == 1) {
  18087. this.commentText += p;
  18088. } else {
  18089. this.eScore.eBzText += p;
  18090. }
  18091. },
  18092. addTools(t, i, index) {
  18093. var a = 0;
  18094. // this.taskCount = index;
  18095. this.toolindex = i;
  18096. if (t == 1) {
  18097. if (this.wbCount > 0) {
  18098. this.updateCount(this.wbCount, t);
  18099. } else {
  18100. this.wbCount++;
  18101. a = this.wbCount;
  18102. this.toolsCount(a, t);
  18103. }
  18104. window.parent.postMessage(
  18105. {
  18106. tools: "1",
  18107. cid: this.id,
  18108. stage: this.courseType,
  18109. task: this.taskCount,
  18110. tool: i,
  18111. },
  18112. "*"
  18113. );
  18114. } else if (t == 2) {
  18115. if (this.wordCount > 0) {
  18116. this.updateCount(this.wordCount, t);
  18117. } else {
  18118. this.wordCount++;
  18119. a = this.wordCount;
  18120. this.toolsCount(a, t);
  18121. }
  18122. window.parent.postMessage({ tools: "2" }, "*");
  18123. } else if (t == 3) {
  18124. if (this.mindCount > 0) {
  18125. this.updateCount(this.mindCount, t);
  18126. } else {
  18127. this.mindCount++;
  18128. a = this.mindCount;
  18129. this.toolsCount(a, t);
  18130. }
  18131. window.parent.postMessage(
  18132. {
  18133. tools: "3",
  18134. cid: this.id,
  18135. stage: this.courseType,
  18136. task: this.taskCount,
  18137. tool: i,
  18138. },
  18139. "*"
  18140. );
  18141. } else if (t == 4) {
  18142. this.radio = [];
  18143. this.noteName = "";
  18144. this.isAnswer = false;
  18145. if (this.askCount > 0) {
  18146. this.updateCount(this.askCount, t);
  18147. } else {
  18148. this.askCount++;
  18149. a = this.askCount;
  18150. this.toolsCount(a, t);
  18151. }
  18152. if (!this.dialogVisible2) {
  18153. this.askJson.askJson =
  18154. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18155. index
  18156. ].toolChoose[i].askJson;
  18157. this.askJson.askTitle =
  18158. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18159. index
  18160. ].toolChoose[i].askTitle;
  18161. this.askJson.askCount =
  18162. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18163. index
  18164. ].toolChoose[i].askCount;
  18165. } else {
  18166. this.askJson.askJson = this.chapTools.askJson.askJson;
  18167. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18168. this.askJson.askCount = this.chapTools.askJson.askCount;
  18169. }
  18170. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18171. if (this.askJson.askJson[k].type == "2") {
  18172. this.radio.push([]);
  18173. } else {
  18174. this.radio.push("");
  18175. }
  18176. }
  18177. this.dialogVisible5 = true;
  18178. // window.parent.postMessage({ tools: "4" }, "*");
  18179. } else if (t == 45) {
  18180. this.noteName = "";
  18181. this.radio = [];
  18182. this.isAnswer = false;
  18183. if (this.askCount > 0) {
  18184. this.updateCount(this.askCount, t);
  18185. } else {
  18186. this.askCount++;
  18187. a = this.askCount;
  18188. this.toolsCount(a, t);
  18189. }
  18190. this.testJson =
  18191. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18192. index
  18193. ].toolChoose[i].testJson;
  18194. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18195. if (this.testJson.testJson[k].type == "2") {
  18196. this.radio.push([]);
  18197. } else {
  18198. this.radio.push("");
  18199. }
  18200. }
  18201. this.dialogVisibleChoice = true;
  18202. // window.parent.postMessage({ tools: "4" }, "*");
  18203. } else if (t == 5) {
  18204. if (this.scoreCount > 0) {
  18205. this.updateCount(this.scoreCount, t);
  18206. } else {
  18207. this.scoreCount++;
  18208. a = this.scoreCount;
  18209. this.toolsCount(a, t);
  18210. }
  18211. this.dialogVisible4 = true;
  18212. // window.parent.postMessage({ tools: "5" }, "*");
  18213. } else if (t == 6) {
  18214. if (this.noteCount > 0) {
  18215. this.updateCount(this.noteCount, t);
  18216. } else {
  18217. this.noteCount++;
  18218. a = this.noteCount;
  18219. this.toolsCount(a, t);
  18220. }
  18221. window.parent.postMessage(
  18222. {
  18223. tools: "6",
  18224. cid: this.id,
  18225. stage: this.courseType,
  18226. task: this.taskCount,
  18227. tool: i,
  18228. },
  18229. "*"
  18230. );
  18231. } else if (t == 7) {
  18232. if (this.mindNetWorkCount > 0) {
  18233. this.updateCount(this.mindNetWorkCount, t);
  18234. } else {
  18235. this.mindNetWorkCount++;
  18236. a = this.mindNetWorkCount;
  18237. this.toolsCount(a, t);
  18238. }
  18239. window.parent.postMessage(
  18240. {
  18241. tools: "7",
  18242. cid: this.id,
  18243. stage: this.courseType,
  18244. task: this.taskCount,
  18245. tool: i,
  18246. },
  18247. "*"
  18248. );
  18249. } else if (t == 16) {
  18250. if (this.workCount > 0) {
  18251. this.updateCount(this.workCount, t);
  18252. } else {
  18253. this.workCount++;
  18254. a = this.workCount;
  18255. this.toolsCount(a, t);
  18256. }
  18257. this.dialogVisible = true;
  18258. } else if (t == 50) {
  18259. if (this.tType == 2) {
  18260. this.$message.error("不支持学生使用");
  18261. return;
  18262. }
  18263. this.plworkFile = [];
  18264. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18265. if (!this.uploadCid) {
  18266. this.$message.error(
  18267. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18268. );
  18269. return;
  18270. }
  18271. // this.uploadCid =
  18272. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18273. // index
  18274. // ].toolChoose[i].uploadJson[0];
  18275. this.selectUploadStudent(2);
  18276. } else if (t == 8) {
  18277. if (this.libraryCount > 0) {
  18278. this.updateCount(this.libraryCount, t);
  18279. } else {
  18280. this.libraryCount++;
  18281. a = this.libraryCount;
  18282. this.toolsCount(a, t);
  18283. }
  18284. window.parent.postMessage({ tools: "8" }, "*");
  18285. } else if (t == 17) {
  18286. if (this.libraryCount > 0) {
  18287. this.updateCount(this.libraryCount, t);
  18288. } else {
  18289. this.libraryCount++;
  18290. a = this.libraryCount;
  18291. this.toolsCount(a, t);
  18292. }
  18293. window.parent.postMessage({ tools: "17" }, "*");
  18294. } else if (t == 18) {
  18295. if (this.trainCount > 0) {
  18296. this.updateCount(this.trainCount, t);
  18297. } else {
  18298. this.trainCount++;
  18299. a = this.trainCount;
  18300. this.toolsCount(a, t);
  18301. }
  18302. window.parent.postMessage({ tools: "18" }, "*");
  18303. } else if (t == 10) {
  18304. if (this.timeCount > 0) {
  18305. this.updateCount(this.timeCount, t);
  18306. } else {
  18307. this.timeCount++;
  18308. a = this.timeCount;
  18309. this.toolsCount(a, t);
  18310. }
  18311. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18312. .taskJson[index].toolChoose[i].preTime
  18313. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18314. .toolChoose[i].preTime
  18315. : "";
  18316. this.timeDialogVisible = true;
  18317. } else if (t == 15) {
  18318. this.answerQ = "";
  18319. this.questionAnswer = "";
  18320. if (this.answerCount > 0) {
  18321. this.updateCount(this.answerCount, t);
  18322. } else {
  18323. this.answerCount++;
  18324. a = this.answerCount;
  18325. this.toolsCount(a, t);
  18326. }
  18327. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18328. .taskJson[index].toolChoose[i].answerQ
  18329. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18330. .toolChoose[i].answerQ
  18331. : "";
  18332. this.answerDialogVisible = true;
  18333. } else if (t == 21) {
  18334. window.parent.postMessage({ tools: "21" }, "*");
  18335. } else if (t == 22) {
  18336. window.parent.postMessage({ tools: "22" }, "*");
  18337. } else if (t == 23) {
  18338. window.parent.postMessage({ tools: "23" }, "*");
  18339. } else if (t == 24) {
  18340. window.parent.postMessage({ tools: "24" }, "*");
  18341. } else if (t == 25) {
  18342. window.parent.postMessage({ tools: "25" }, "*");
  18343. } else if (t == 31) {
  18344. window.parent.postMessage({ tools: "31" }, "*");
  18345. } else if (t == 28) {
  18346. window.parent.postMessage({ tools: "28" }, "*");
  18347. } else if (t == 37) {
  18348. window.parent.postMessage({ tools: "37" }, "*");
  18349. } else if (t == 38) {
  18350. window.parent.postMessage({ tools: "38" }, "*");
  18351. } else if (t == 39) {
  18352. window.parent.postMessage({ tools: "39" }, "*");
  18353. } else if (t == 32) {
  18354. window.parent.postMessage({ tools: "32" }, "*");
  18355. } else if (t == 66) {
  18356. window.parent.postMessage({ tools: "66" }, "*");
  18357. } else if (t == 67) {
  18358. window.parent.postMessage({ tools: "67" }, "*");
  18359. } else if (t == 68) {
  18360. window.parent.postMessage({ tools: "68" }, "*");
  18361. } else if (t == 57) {
  18362. // window.parent.postMessage({ tools: "57" }, "*");
  18363. window.parent.postMessage(
  18364. {
  18365. tools: "57u",
  18366. cid: this.id,
  18367. stage: this.courseType,
  18368. task: this.taskCount,
  18369. tool: i,
  18370. },
  18371. "*"
  18372. );
  18373. } else if (t == 58) {
  18374. window.parent.postMessage({ tools: "58" }, "*");
  18375. } else if (t == 59) {
  18376. window.parent.postMessage({ tools: "59" }, "*");
  18377. } else if (t == 60) {
  18378. window.parent.postMessage({ tools: "60" }, "*");
  18379. } else if (t == 61) {
  18380. window.parent.postMessage({ tools: "61" }, "*");
  18381. } else if (t == 63) {
  18382. window.parent.postMessage({ tools: "63" }, "*");
  18383. } else if (t == 71) {
  18384. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18385. // this.$message.error("该工具不可使用");
  18386. // return
  18387. // }
  18388. window.parent.postMessage({ tools: "71" }, "*");
  18389. } else if (t == 69) {
  18390. if (this.worksStudent[i].length) {
  18391. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18392. if (this.userid == this.worksStudent[i][k].userid) {
  18393. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18394. break;
  18395. } else {
  18396. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18397. }
  18398. }
  18399. } else {
  18400. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18401. }
  18402. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18403. .taskJson[index].toolChoose[i].englishList
  18404. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18405. .toolChoose[i].englishList
  18406. : {};
  18407. this.englishToolIndex = i;
  18408. this.myAnList = this.myAnswerList1;
  18409. this.engDialogVisible = true;
  18410. } else if (t == 70) {
  18411. if (this.worksStudent[i].length) {
  18412. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18413. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18414. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18415. break;
  18416. } else {
  18417. this.englishVoiceJsonWork = [];
  18418. }
  18419. }
  18420. } else {
  18421. this.englishVoiceJsonWork = [];
  18422. }
  18423. let englishVoiceJson = {}
  18424. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18425. .taskJson[index].toolChoose[i].englishVoiceJson
  18426. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18427. .toolChoose[i].englishVoiceJson
  18428. : {};
  18429. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18430. this.EnglishVoiceDialog = true;
  18431. } else if (t == 65) {
  18432. if (this.tType == 2) {
  18433. this.$message.error("不支持学生使用");
  18434. return;
  18435. }
  18436. this.uploadCid = this.tcid;
  18437. if (!this.uploadCid) {
  18438. this.$message.error(
  18439. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18440. );
  18441. return;
  18442. }
  18443. this.selectPickStudent();
  18444. } else if (t == 26) {
  18445. window.parent.postMessage(
  18446. {
  18447. tools: "26",
  18448. cid: this.id,
  18449. stage: this.courseType,
  18450. task: this.taskCount,
  18451. tool: i,
  18452. },
  18453. "*"
  18454. );
  18455. } else if (t == 40) {
  18456. if (this.evalCount > 0) {
  18457. this.updateCount(this.evalCount, t);
  18458. } else {
  18459. this.evalCount++;
  18460. a = this.evalCount;
  18461. this.toolsCount(a, t);
  18462. }
  18463. this.eScore = { eBzText: "", eStar: [] };
  18464. if (this.worksStudent[i].length) {
  18465. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18466. if (this.userid == this.worksStudent[i][k].userid) {
  18467. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18468. this.rateJson =
  18469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18470. index
  18471. ].toolChoose[i].rateJson;
  18472. break;
  18473. } else {
  18474. this.rateJson =
  18475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18476. index
  18477. ].toolChoose[i].rateJson;
  18478. }
  18479. }
  18480. } else {
  18481. this.rateJson =
  18482. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18483. index
  18484. ].toolChoose[i].rateJson;
  18485. }
  18486. this.isStar = false;
  18487. this.studentEvalDialogVisible = true;
  18488. } else if (t == 41) {
  18489. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18490. .taskJson[index].toolChoose[i].selectJson
  18491. ? JSON.parse(
  18492. JSON.stringify(
  18493. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18494. index
  18495. ].toolChoose[i].selectJson
  18496. )
  18497. )
  18498. : { url: "", select: [], answer: [] };
  18499. if (this.worksStudent[i].length) {
  18500. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18501. if (this.userid == this.worksStudent[i][k].userid) {
  18502. var a = this.worksStudent[i][k].works.split(",");
  18503. for (var ki = 0; ki < a.length; ki++) {
  18504. a[ki] = parseInt(a[ki]);
  18505. }
  18506. this.selectAnswer = {
  18507. answer: a,
  18508. stu: this.worksStudent[i][k].sName,
  18509. };
  18510. break;
  18511. } else {
  18512. this.selectAnswer = { answer: [], stu: "" };
  18513. }
  18514. }
  18515. } else {
  18516. this.selectAnswer = { answer: [], stu: "" };
  18517. }
  18518. this.isSelect = false;
  18519. this.dialogVisibleSelect = true;
  18520. } else if (t == 44) {
  18521. window.parent.postMessage({ tools: "44" }, "*");
  18522. } else if (t == 47) {
  18523. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18524. .taskJson[index].toolChoose[i].sentenceList
  18525. ? JSON.parse(
  18526. JSON.stringify(
  18527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18528. index
  18529. ].toolChoose[i].sentenceList
  18530. )
  18531. )
  18532. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18533. for (var q = 0; q < this.sentenceList.length; q++) {
  18534. this.sentenceList[q].chooseSenList = [];
  18535. this.sentenceList[q].addChangeSen = [];
  18536. this.sentenceList[q].addChangeSen = JSON.parse(
  18537. JSON.stringify(this.sentenceList[q].addSentence)
  18538. );
  18539. this.sentenceList[q].chooseSenList.length =
  18540. this.sentenceList[q].rightAnswer.length;
  18541. }
  18542. this.dialogVisibleSentence = true;
  18543. } else if (t == 48) {
  18544. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18545. .taskJson[index].toolChoose[i].tableJson
  18546. ? JSON.parse(
  18547. JSON.stringify(
  18548. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18549. index
  18550. ].toolChoose[i].tableJson
  18551. )
  18552. )
  18553. : { text: "" };
  18554. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18555. if (this.worksStudent[i].length) {
  18556. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18557. if (this.userid == this.worksStudent[i][k].userid) {
  18558. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18559. break;
  18560. }
  18561. }
  18562. }
  18563. this.dialogVisibleTable = true;
  18564. } else if (t == 52) {
  18565. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18566. .taskJson[index].toolChoose[i].wordJson
  18567. ? JSON.parse(
  18568. JSON.stringify(
  18569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18570. index
  18571. ].toolChoose[i].wordJson
  18572. )
  18573. )
  18574. : { text: "" };
  18575. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18576. if (this.worksStudent[i].length) {
  18577. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18578. if (this.userid == this.worksStudent[i][k].userid) {
  18579. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18580. break;
  18581. }
  18582. }
  18583. }
  18584. this.dialogVisibleWord = true;
  18585. } else if (t == 49) {
  18586. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18587. return
  18588. }
  18589. this.groupJson =
  18590. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18591. index
  18592. ].toolChoose[i].groupJson;
  18593. this.islock = this.groupJson.islock == 1 ? true : false;
  18594. this.dialogVisibleGroup = true;
  18595. } else if (t == 62) {
  18596. this.videoType = 0;
  18597. this.videoJson = {};
  18598. this.videoJson =
  18599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18600. index
  18601. ].toolChoose[i].videoJson;
  18602. this.dialogVisibleVideo = true;
  18603. }
  18604. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18605. },
  18606. teacherWorkSubmit(t, i, index, s) {
  18607. this.sStudent = s;
  18608. this.toolindex = i;
  18609. this.sTool = t;
  18610. if (this.tType !== "1" && this.tType !== "4") {
  18611. return;
  18612. }
  18613. if (t == 16 || t == 32 || t == 50) {
  18614. this.dialogVisibleWorks = true;
  18615. } else if (t == 15) {
  18616. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18617. .taskJson[index].toolChoose[i].answerQ
  18618. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18619. .toolChoose[i].answerQ
  18620. : "";
  18621. this.questionAnswer = "";
  18622. this.answerDialogVisibleTeacher = true; //问答
  18623. } else if (t == 52) {
  18624. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18625. .taskJson[index].toolChoose[i].wordJson
  18626. ? JSON.parse(
  18627. JSON.stringify(
  18628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18629. index
  18630. ].toolChoose[i].wordJson
  18631. )
  18632. )
  18633. : { text: "" };
  18634. if (this.worksStudent[i].length) {
  18635. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18636. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18637. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18638. break;
  18639. }
  18640. }
  18641. }
  18642. this.dialogVisibleWordTeacher = true; //文档
  18643. } else if (t == 4) {
  18644. this.radio = [];
  18645. this.noteName = "";
  18646. this.isAnswer = false;
  18647. if (this.askCount > 0) {
  18648. this.updateCount(this.askCount, t);
  18649. } else {
  18650. this.askCount++;
  18651. a = this.askCount;
  18652. this.toolsCount(a, t);
  18653. }
  18654. if (!this.dialogVisible2) {
  18655. this.askJson.askJson =
  18656. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18657. index
  18658. ].toolChoose[i].askJson;
  18659. this.askJson.askTitle =
  18660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18661. index
  18662. ].toolChoose[i].askTitle;
  18663. this.askJson.askCount =
  18664. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18665. index
  18666. ].toolChoose[i].askCount;
  18667. } else {
  18668. this.askJson.askJson = this.chapTools.askJson.askJson;
  18669. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18670. this.askJson.askCount = this.chapTools.askJson.askCount;
  18671. }
  18672. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18673. if (this.askJson.askJson[k].type == "2") {
  18674. this.radio.push([]);
  18675. } else {
  18676. this.radio.push("");
  18677. }
  18678. }
  18679. this.dialogVisible5Teacher = true;
  18680. } else if (t == 45) {
  18681. this.noteName = "";
  18682. this.radio = [];
  18683. this.isAnswer = false;
  18684. if (this.askCount > 0) {
  18685. this.updateCount(this.askCount, t);
  18686. } else {
  18687. this.askCount++;
  18688. a = this.askCount;
  18689. this.toolsCount(a, t);
  18690. }
  18691. this.testJson =
  18692. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18693. index
  18694. ].toolChoose[i].testJson;
  18695. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18696. if (this.testJson.testJson[k].type == "2") {
  18697. this.radio.push([]);
  18698. } else {
  18699. this.radio.push("");
  18700. }
  18701. }
  18702. this.dialogVisibleChoiceTeacher = true;
  18703. } else if (t == 41) {
  18704. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18705. .taskJson[index].toolChoose[i].selectJson
  18706. ? JSON.parse(
  18707. JSON.stringify(
  18708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18709. index
  18710. ].toolChoose[i].selectJson
  18711. )
  18712. )
  18713. : { url: "", select: [], answer: [] };
  18714. if (this.worksStudent[i].length) {
  18715. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18716. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18717. var a = this.worksStudent[i][k].works.split(",");
  18718. for (var ki = 0; ki < a.length; ki++) {
  18719. a[ki] = parseInt(a[ki]);
  18720. }
  18721. this.selectAnswer = {
  18722. answer: a,
  18723. stu: this.worksStudent[i][k].sName,
  18724. };
  18725. break;
  18726. } else {
  18727. this.selectAnswer = { answer: [], stu: "" };
  18728. }
  18729. }
  18730. } else {
  18731. this.selectAnswer = { answer: [], stu: "" };
  18732. }
  18733. this.isSelect = false;
  18734. this.dialogVisibleSelectTeacher = true;
  18735. } else if (t == 47) {
  18736. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18737. .taskJson[index].toolChoose[i].sentenceList
  18738. ? JSON.parse(
  18739. JSON.stringify(
  18740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18741. index
  18742. ].toolChoose[i].sentenceList
  18743. )
  18744. )
  18745. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18746. for (var q = 0; q < this.sentenceList.length; q++) {
  18747. this.sentenceList[q].chooseSenList = [];
  18748. this.sentenceList[q].addChangeSen = [];
  18749. this.sentenceList[q].addChangeSen = JSON.parse(
  18750. JSON.stringify(this.sentenceList[q].addSentence)
  18751. );
  18752. this.sentenceList[q].chooseSenList.length =
  18753. this.sentenceList[q].rightAnswer.length;
  18754. }
  18755. this.dialogVisibleSentenceTeacher = true;
  18756. } else if (t == 48) {
  18757. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18758. .taskJson[index].toolChoose[i].tableJson
  18759. ? JSON.parse(
  18760. JSON.stringify(
  18761. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18762. index
  18763. ].toolChoose[i].tableJson
  18764. )
  18765. )
  18766. : { text: "" };
  18767. if (this.worksStudent[i].length) {
  18768. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18769. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18770. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18771. break;
  18772. }
  18773. }
  18774. }
  18775. this.dialogVisibleTableTeacher = true;
  18776. } else if (t == 40) {
  18777. if (this.evalCount > 0) {
  18778. this.updateCount(this.evalCount, t);
  18779. } else {
  18780. this.evalCount++;
  18781. a = this.evalCount;
  18782. this.toolsCount(a, t);
  18783. }
  18784. this.eScore = { eBzText: "", eStar: [] };
  18785. if (this.worksStudent[i].length) {
  18786. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18787. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18788. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18789. this.rateJson =
  18790. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18791. index
  18792. ].toolChoose[i].rateJson;
  18793. break;
  18794. } else {
  18795. this.rateJson =
  18796. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18797. index
  18798. ].toolChoose[i].rateJson;
  18799. }
  18800. }
  18801. } else {
  18802. this.rateJson =
  18803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18804. index
  18805. ].toolChoose[i].rateJson;
  18806. }
  18807. this.isStar = false;
  18808. this.studentEvalDialogVisibleTeacher = true;
  18809. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18810. window.parent.postMessage(
  18811. {
  18812. tools: t + "teacher",
  18813. cid: this.id,
  18814. stage: this.courseType,
  18815. task: this.taskCount,
  18816. tool: i,
  18817. student: this.sStudent,
  18818. },
  18819. "*"
  18820. );
  18821. }
  18822. },
  18823. openCocoPi(tool, i, uid, uname) {
  18824. let student = {
  18825. userid: uid,
  18826. student: uname,
  18827. };
  18828. if (tool == 57) {
  18829. window.parent.postMessage(
  18830. {
  18831. tools: tool + "teacher",
  18832. cid: this.id,
  18833. stage: this.courseType,
  18834. task: this.taskCount,
  18835. tool: i,
  18836. student: student,
  18837. },
  18838. "*"
  18839. );
  18840. }
  18841. },
  18842. setRightAnswer(s, i, j) {
  18843. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18844. if (
  18845. this.sentenceList[i].chooseSenList[q] == undefined ||
  18846. this.sentenceList[i].chooseSenList[q] == ""
  18847. ) {
  18848. this.sentenceList[i].chooseSenList[q] = s;
  18849. this.sentenceList[i].addChangeSen[j] = "";
  18850. break;
  18851. }
  18852. }
  18853. this.$forceUpdate();
  18854. },
  18855. returnCard(r, i, j) {
  18856. var a = this.sentenceList[i].addSentence.indexOf(r);
  18857. this.sentenceList[i].chooseSenList[j] = "";
  18858. this.sentenceList[i].addChangeSen[a] = r;
  18859. this.$forceUpdate();
  18860. },
  18861. // addSentenceTool() {
  18862. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18863. // this.taskCount
  18864. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18865. // this.sentenceList = [
  18866. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18867. // ];
  18868. // this.dialogVisibleSentence = false;
  18869. // },
  18870. toolsCount(a, t) {
  18871. let params = {
  18872. cid: this.id,
  18873. chid: this.courseType,
  18874. uid: this.userid,
  18875. tid: t,
  18876. count: a,
  18877. };
  18878. this.ajax
  18879. .get(this.$store.state.api + "insertToolsCount", params)
  18880. .then((res) => {
  18881. this.selectCount();
  18882. })
  18883. .catch((err) => {
  18884. console.error(err);
  18885. });
  18886. },
  18887. updateCount(c, t) {
  18888. c++;
  18889. let params = {
  18890. cid: this.id,
  18891. chid: this.courseType,
  18892. uid: this.userid,
  18893. tid: t,
  18894. count: c,
  18895. };
  18896. this.ajax
  18897. .get(this.$store.state.api + "updateToolsCount", params)
  18898. .then((res) => {
  18899. this.selectCount();
  18900. })
  18901. .catch((err) => {
  18902. console.error(err);
  18903. });
  18904. },
  18905. checkEva() {
  18906. if (this.evalua != "") {
  18907. for (var i = 0; i < this.evaJuri.length; i++) {
  18908. if (this.evalua == this.evaJuri[i].id) {
  18909. this.eTitle = this.evaJuri[i].title;
  18910. this.eJson = JSON.parse(this.evaJuri[i].content);
  18911. }
  18912. }
  18913. this.$forceUpdate();
  18914. setTimeout(() => {
  18915. this.setMindData();
  18916. }, 0);
  18917. }
  18918. },
  18919. selectEva() {
  18920. let params = {
  18921. oid: this.oid,
  18922. };
  18923. this.ajax
  18924. .get(this.$store.state.api + "selectAllEvaluation", params)
  18925. .then((res) => {
  18926. this.evaJuri = res.data[0];
  18927. })
  18928. .catch((err) => {
  18929. console.error(err);
  18930. });
  18931. },
  18932. setMindData() {
  18933. this.data.data = [];
  18934. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18935. let _eJson = Object.keys(this.eJson);
  18936. let _e = this.eJson;
  18937. for (let i = 0; i < _eJson.length; i++) {
  18938. let element = _e[_eJson[i]];
  18939. this.data.data.push({
  18940. id: element.id,
  18941. parentid: "root",
  18942. topic: element.name,
  18943. });
  18944. let _eJsonc = Object.keys(element.child);
  18945. let _e2 = element.child;
  18946. for (let j = 0; j < _eJsonc.length; j++) {
  18947. let _ec = _e2[_eJsonc[j]];
  18948. this.data.data.push({
  18949. id: _ec.id,
  18950. parentid: element.id,
  18951. topic: _ec.name,
  18952. });
  18953. let _eJsonz = Object.keys(_ec.child);
  18954. let _e3 = _ec.child;
  18955. for (let z = 0; z < _eJsonz.length; z++) {
  18956. let _ez = _e3[_eJsonz[z]];
  18957. this.data.data.push({
  18958. id: _ez.id,
  18959. parentid: _ec.id,
  18960. topic: _ez.name,
  18961. });
  18962. }
  18963. }
  18964. }
  18965. this.$forceUpdate();
  18966. },
  18967. checkFileFull(type, url) {
  18968. this.fullDialogVisible = true;
  18969. this.fulltype = type;
  18970. this.fullUrl = url;
  18971. },
  18972. async checkFileFull1(t, f) {
  18973. this.fullDialogVisible = true;
  18974. if (t == 6) {
  18975. this.fulltype = 1;
  18976. this.fullUrl = JSON.parse(JSON.stringify(f));
  18977. } else if (t == 8) {
  18978. this.fulltype = 2;
  18979. this.fullUrl = f.url;
  18980. } else if (
  18981. t == 3 &&
  18982. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18983. "PDF"
  18984. ) {
  18985. this.fulltype = 3;
  18986. this.fullUrl = f.url;
  18987. } else if (t == 3) {
  18988. this.fulltype = 2;
  18989. let _uuurl = await this.checkLink(f.url);
  18990. console.log(_uuurl)
  18991. this.fullUrl =
  18992. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18993. }
  18994. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  18995. },
  18996. openSname(n, id, i, uid) {
  18997. this.snameWid = id;
  18998. this.worksSName = n;
  18999. this.worksSid = uid == n ? "" : uid;
  19000. this.toolindex = i;
  19001. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19002. if (!this.uploadCid) {
  19003. this.$message.error(
  19004. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19005. );
  19006. return;
  19007. }
  19008. this.selectUploadStudent(1);
  19009. },
  19010. updateName() {
  19011. let params = {
  19012. n: this.worksSName,
  19013. cid: this.snameWid,
  19014. };
  19015. this.ajax
  19016. .get(this.$store.state.api + "updateCourseWorksName", params)
  19017. .then((res) => {
  19018. this.$message({
  19019. message: "修改成功",
  19020. type: "success",
  19021. });
  19022. this.dialogVisibleSname = false;
  19023. this.getCourseDetail(2);
  19024. this.snameWid = "";
  19025. this.worksSName = "";
  19026. })
  19027. .catch((err) => {
  19028. console.error(err);
  19029. });
  19030. },
  19031. downloadFile2(f) {
  19032. // const loading = this.$loading.service({
  19033. // background: "rgba(255, 255, 255, 0.7)",
  19034. // target: document.body,
  19035. // text: "文件加载中...",
  19036. // });
  19037. // let url2 = f.url;
  19038. // let _url2 = "";
  19039. // if (
  19040. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19041. // ) {
  19042. // _url2 = url2.split(
  19043. // "https://view.officeapps.live.com/op/view.aspx?src="
  19044. // )[1];
  19045. // } else {
  19046. // _url2 = url2;
  19047. // }
  19048. // let params = {
  19049. // url: _url2,
  19050. // name: f.name,
  19051. // };
  19052. // this.ajax
  19053. // .get(this.$store.state.api + "download", params)
  19054. // .then((res) => {
  19055. // loading.close();
  19056. // let content = res.data.data.data;
  19057. // let ab = new ArrayBuffer(content.length);
  19058. // let view = new Uint8Array(ab);
  19059. // for (var i = 0; i < content.length; ++i) {
  19060. // view[i] = content[i];
  19061. // }
  19062. // let elink = document.createElement("a");
  19063. // elink.download = f.name;
  19064. // elink.style.display = "none";
  19065. // let blob = new Blob([ab], {
  19066. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19067. // });
  19068. // elink.href = URL.createObjectURL(blob);
  19069. // document.body.appendChild(elink);
  19070. // elink.click();
  19071. // document.body.removeChild(elink);
  19072. // })
  19073. // .catch((err) => {
  19074. // loading.close();
  19075. // console.error(err);
  19076. // });
  19077. var credentials = {
  19078. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19079. secretAccessKey: "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",
  19080. }; //秘钥形式的登录上传
  19081. window.AWS.config.update(credentials);
  19082. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19083. let url2 = f.url;
  19084. let _url2 = "";
  19085. if (
  19086. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19087. ) {
  19088. _url2 = url2.split(
  19089. "https://view.officeapps.live.com/op/view.aspx?src="
  19090. )[1];
  19091. } else {
  19092. _url2 = url2;
  19093. }
  19094. let _this = this;
  19095. _this.downLoading = true
  19096. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19097. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19098. var params = {
  19099. Bucket: "ccrb",
  19100. Key: name
  19101. };
  19102. s3.getObject(params, function (err, data) {
  19103. _this.downLoading = false
  19104. if (err) console.log(err, err.stack); // an error occurred
  19105. else {
  19106. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19107. let a = document.createElement("a");
  19108. a.name = f.name;
  19109. a.href = url;
  19110. a.download = f.name;
  19111. a.click();
  19112. console.log(data);
  19113. } // sxuccessful response
  19114. });
  19115. return;
  19116. let url = f.url;
  19117. let _url = "";
  19118. if (
  19119. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19120. ) {
  19121. _url = url.split(
  19122. "https://view.officeapps.live.com/op/view.aspx?src="
  19123. )[1];
  19124. } else {
  19125. _url = url;
  19126. }
  19127. _this.downLoading = true
  19128. // const loading = _this.$loading.service({
  19129. // background: "rgba(255, 255, 255, 0.7)",
  19130. // target: document.body,
  19131. // text: "文件加载中...",
  19132. // });
  19133. let x = new XMLHttpRequest();
  19134. x.open("GET", _url, true);
  19135. x.responseType = "blob";
  19136. x.onload = function () {
  19137. _this.downLoading = false
  19138. // loading.close();
  19139. let url = window.URL.createObjectURL(new Blob([x.response]));
  19140. let a = document.createElement("a");
  19141. a.name = f.name;
  19142. a.href = url;
  19143. a.download = f.name;
  19144. a.click();
  19145. };
  19146. x.send();
  19147. },
  19148. downloadFile(url) {
  19149. var credentials = {
  19150. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19151. secretAccessKey: "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",
  19152. }; //秘钥形式的登录上传
  19153. window.AWS.config.update(credentials);
  19154. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19155. let url2 = url;
  19156. let _url2 = "";
  19157. if (
  19158. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19159. ) {
  19160. _url2 = url2.split(
  19161. "https://view.officeapps.live.com/op/view.aspx?src="
  19162. )[1];
  19163. } else {
  19164. _url2 = url2;
  19165. }
  19166. const loading2 = this.$loading.service({
  19167. background: "rgba(255, 255, 255, 0.7)",
  19168. target: document.body,
  19169. text: "文件加载中...",
  19170. });
  19171. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19172. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19173. var params = {
  19174. Bucket: "ccrb",
  19175. Key: name
  19176. };
  19177. s3.getObject(params, function (err, data) {
  19178. loading2.close();
  19179. if (err) console.log(err, err.stack); // an error occurred
  19180. else {
  19181. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19182. let a = document.createElement("a");
  19183. a.name = name;
  19184. a.href = url;
  19185. a.download = name;
  19186. a.click();
  19187. console.log(data);
  19188. } // sxuccessful response
  19189. });
  19190. return;
  19191. let _this = this;
  19192. let _url = "";
  19193. if (
  19194. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19195. ) {
  19196. _url = url.split(
  19197. "https://view.officeapps.live.com/op/view.aspx?src="
  19198. )[1];
  19199. } else {
  19200. _url = url;
  19201. }
  19202. const x = new XMLHttpRequest();
  19203. x.open("GET", _url, true);
  19204. x.responseType = "blob";
  19205. // this.downLoading = true
  19206. const loading = _this.$loading.service({
  19207. background: "rgba(255, 255, 255, 0.7)",
  19208. target: document.body,
  19209. text: "文件加载中...",
  19210. });
  19211. // _this.$message.success("文件下载中...");
  19212. x.onload = function (e) {
  19213. this.downLoading = false
  19214. loading.close();
  19215. let content = x.response;
  19216. let elink = document.createElement("a");
  19217. elink.download = decodeURI(
  19218. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19219. );
  19220. elink.style.display = "none";
  19221. let blob = new Blob([content]);
  19222. elink.href = URL.createObjectURL(blob);
  19223. document.body.appendChild(elink);
  19224. elink.click();
  19225. document.body.removeChild(elink);
  19226. };
  19227. x.send();
  19228. },
  19229. openLine(url) {
  19230. window.open(url);
  19231. },
  19232. resize() {
  19233. if (document.getElementsByClassName("box_course").length) {
  19234. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19235. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19236. if (this.showType == 2 || this.showType == 3) {
  19237. document.getElementsByClassName("navBox")[0].style.height =
  19238. a - 40 + 0+ "px";
  19239. } else {
  19240. document.getElementsByClassName("navBox")[0].style.height =
  19241. a - 40 + "px";
  19242. }
  19243. }
  19244. this.Stbodywidth =
  19245. document.getElementsByClassName("student_body").length &&
  19246. document.getElementsByClassName("student_body")[0].offsetWidth;
  19247. },
  19248. closeDraw() {
  19249. this.bg = null;
  19250. this.drawShow = false;
  19251. },
  19252. showPicturePaint(url) {
  19253. let params = {
  19254. img: url,
  19255. };
  19256. this.ajax
  19257. .get(this.$store.state.api + "imgToBase64", params)
  19258. .then((res) => {
  19259. this.drawShow = true;
  19260. this.bg = res.data[0].img;
  19261. })
  19262. .catch((err) => {
  19263. console.error(err);
  19264. });
  19265. },
  19266. addImgDraw(base64) {
  19267. let file = { name: "批注图.png" };
  19268. let img = this.dataUrlToFile(base64, file);
  19269. this.beforeUpload1(img, 5);
  19270. },
  19271. addImgDrawImG(url) {
  19272. // console.log(url);
  19273. let params = [
  19274. {
  19275. wid: this.commentDetail.wid,
  19276. img: url,
  19277. },
  19278. ];
  19279. this.ajax
  19280. .post(this.$store.state.api + "updateCourseWorks", params)
  19281. .then((res) => {
  19282. this.$message({
  19283. message: "提交成功",
  19284. type: "success",
  19285. });
  19286. this.drawShow = false;
  19287. this.bg = "";
  19288. this.selectSWorks();
  19289. this.selectStudent();
  19290. })
  19291. .catch((err) => {
  19292. this.$message.error("提交失败");
  19293. console.error(err);
  19294. });
  19295. },
  19296. deletePicturePaint() {
  19297. this.$confirm("确定删除此批注吗?", "提示", {
  19298. confirmButtonText: "确定",
  19299. cancelButtonText: "取消",
  19300. type: "warning",
  19301. })
  19302. .then(() => {
  19303. let params = [
  19304. {
  19305. wid: this.commentDetail.wid,
  19306. img: "",
  19307. },
  19308. ];
  19309. this.ajax
  19310. .post(this.$store.state.api + "updateCourseWorks", params)
  19311. .then((res) => {
  19312. this.$message({
  19313. message: "删除成功",
  19314. type: "success",
  19315. });
  19316. this.selectSWorks();
  19317. this.selectStudent();
  19318. })
  19319. .catch((err) => {
  19320. this.$message.error("删除失败");
  19321. console.error(err);
  19322. });
  19323. })
  19324. .catch(() => {});
  19325. },
  19326. getAudioVideo(constraintsData) {
  19327. if (navigator.mediaDevices === undefined) {
  19328. navigator.mediaDevices = {};
  19329. }
  19330. if (navigator.mediaDevices.getUserMedia === undefined) {
  19331. navigator.mediaDevices.getUserMedia = function (constraints) {
  19332. // 首先,如果有getUserMedia的话,就获得它
  19333. var getUserMedia =
  19334. navigator.getUserMedia ||
  19335. navigator.webkitGetUserMedia ||
  19336. navigator.mozGetUserMedia ||
  19337. navigator.msGetUserMedia;
  19338. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19339. if (!getUserMedia) {
  19340. return Promise.reject({ code: 404 });
  19341. }
  19342. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19343. return new Promise(function (resolve, reject) {
  19344. getUserMedia.call(navigator, constraints, resolve, reject);
  19345. });
  19346. };
  19347. }
  19348. return navigator.mediaDevices.getUserMedia(constraintsData);
  19349. },
  19350. /**
  19351. * 开始录制
  19352. */
  19353. startRecording(callback) {
  19354. let _function = (screenStream) => {
  19355. this.addStreamStopListener(screenStream, () => {
  19356. console.log("流停止监听");
  19357. this.stopRecording();
  19358. this.$emit("streamStop", {});
  19359. // this.stopRecording();
  19360. });
  19361. var options = {
  19362. type: "video",
  19363. mimeType: "video/webm",
  19364. disableLogs: false,
  19365. getNativeBlob: false, // enable it for longer recordings
  19366. ignoreMutedMedia: false,
  19367. };
  19368. // this.video.srcObject = screenStream;
  19369. this.recorder = RecordRTC(screenStream, options);
  19370. this.recorder.startRecording();
  19371. this.recorder.screen = screenStream;
  19372. this.videoStart = true;
  19373. // callback(true);
  19374. };
  19375. this.getAudioVideo({ audio: true })
  19376. .then((res) => {
  19377. this.captureScreen(_function, true);
  19378. console.log("已点击允许,开启成功");
  19379. })
  19380. .catch((err) => {
  19381. // console.log('浏览器不支持,请更换浏览器')
  19382. // } else {
  19383. this.captureScreen(_function, false);
  19384. console.log("请检查是否存在麦克风");
  19385. });
  19386. },
  19387. /**
  19388. * 停止录制
  19389. */
  19390. stopRecording(callback) {
  19391. this.recorder.stopRecording(() => {
  19392. // this.video.src = this.video.srcObject = null;
  19393. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19394. const url = URL.createObjectURL(this.recorder.getBlob());
  19395. const a = document.createElement("a"); //this.fileName+
  19396. let videoFile = new File(
  19397. [this.recorder.getBlob()],
  19398. this.courseDetail.title + "录屏.mp4",
  19399. {
  19400. type: "video/mp4",
  19401. }
  19402. );
  19403. let downloadUrl = URL.createObjectURL(videoFile);
  19404. if(this.$refs.classRoomHelperRef){
  19405. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19406. }
  19407. document.body.appendChild(a);
  19408. a.style.display = "none";
  19409. a.href = url;
  19410. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19411. a.click();
  19412. this.recorder.screen.stop();
  19413. this.recorder.destroy();
  19414. this.recorder = null;
  19415. this.videoStart = false;
  19416. // callback(false);
  19417. });
  19418. },
  19419. //初始化
  19420. captureScreen(callback, type) {
  19421. if (navigator.getDisplayMedia) {
  19422. //录制结束,文件下载
  19423. navigator
  19424. .getDisplayMedia({
  19425. video: true,
  19426. })
  19427. .then((screenStream) => {
  19428. if (type) {
  19429. navigator.mediaDevices
  19430. .getUserMedia({ audio: true })
  19431. .then((mic) => {
  19432. screenStream.addTrack(mic.getTracks()[0]);
  19433. callback(screenStream);
  19434. });
  19435. } else {
  19436. callback(screenStream);
  19437. }
  19438. })
  19439. .catch(function (error) {
  19440. console.log("error", error);
  19441. });
  19442. } else if (navigator.mediaDevices.getDisplayMedia) {
  19443. navigator.mediaDevices
  19444. .getDisplayMedia({
  19445. video: true,
  19446. })
  19447. .then((screenStream) => {
  19448. if (type) {
  19449. navigator.mediaDevices
  19450. .getUserMedia({ audio: true })
  19451. .then((mic) => {
  19452. screenStream.addTrack(mic.getTracks()[0]);
  19453. callback(screenStream);
  19454. });
  19455. } else {
  19456. callback(screenStream);
  19457. }
  19458. })
  19459. .catch(function (error) {
  19460. console.log("error", error);
  19461. });
  19462. } else {
  19463. var error = "getDisplayMedia API are not supported in this browser.";
  19464. console.log("error", error);
  19465. alert(error);
  19466. }
  19467. },
  19468. //流监听
  19469. addStreamStopListener(stream, callback) {
  19470. stream.addEventListener(
  19471. "ended",
  19472. function () {
  19473. callback();
  19474. callback = function () {};
  19475. },
  19476. false
  19477. );
  19478. stream.addEventListener(
  19479. "inactive",
  19480. function () {
  19481. callback();
  19482. callback = function () {};
  19483. },
  19484. false
  19485. );
  19486. stream.getTracks().forEach(function (track) {
  19487. track.addEventListener(
  19488. "ended",
  19489. function () {
  19490. callback();
  19491. callback = function () {};
  19492. },
  19493. false
  19494. );
  19495. track.addEventListener(
  19496. "inactive",
  19497. function () {
  19498. callback();
  19499. callback = function () {};
  19500. },
  19501. false
  19502. );
  19503. });
  19504. },
  19505. updateGroup() {
  19506. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19507. this.dialogVisibleGroup2 = true;
  19508. },
  19509. numberPan() {
  19510. if (
  19511. /[^\d]/.test(this.groupJson.number) ||
  19512. this.groupJson.number < 2 ||
  19513. this.groupJson.number > 10
  19514. ) {
  19515. this.$message.error("请输入2-10的数字");
  19516. this.groupJson.number = "";
  19517. }
  19518. },
  19519. updateGroupJson() {
  19520. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19521. if (
  19522. this.groupStudentUid[this.toolindex][i].length >
  19523. this.groupJson2.number
  19524. ) {
  19525. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19526. return;
  19527. }
  19528. }
  19529. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19530. this.islock = this.groupJson.islock == 1 ? true : false;
  19531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19532. this.taskCount
  19533. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19534. let params = [
  19535. {
  19536. cid: this.id,
  19537. chapters: JSON.stringify(this.chapInfoList),
  19538. uid: this.userid,
  19539. unitIndex: this.courseType,
  19540. },
  19541. ];
  19542. this.ajax
  19543. .post(this.$store.state.api + "updateWorkNew4", params)
  19544. .then((res) => {
  19545. this.$message.success("设置成功");
  19546. this.getCourseDetail(2);
  19547. this.dialogVisibleGroup2 = false;
  19548. this.groupJson2 = {};
  19549. this.$forceUpdate();
  19550. })
  19551. .catch((err) => {
  19552. this.$message.error("网络不佳");
  19553. console.error(err);
  19554. });
  19555. },
  19556. lockChair() {
  19557. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19558. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19559. this.updateGroupJson();
  19560. },
  19561. selectGroup(index) {
  19562. this.getCourseDetail(2, index);
  19563. },
  19564. joinGroup(index) {
  19565. if (this.groupJson.islock == 2) {
  19566. this.$message.error("位置已被锁定,无法加入");
  19567. return;
  19568. }
  19569. if (
  19570. this.groupStudent[this.toolindex][index].length >
  19571. this.groupJson.number ||
  19572. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19573. ) {
  19574. this.$message.error("位置已满,无法加入");
  19575. return;
  19576. }
  19577. let params = [
  19578. {
  19579. cid: this.id,
  19580. stage: this.courseType,
  19581. task: this.taskCount,
  19582. tool: this.toolindex,
  19583. g: index,
  19584. uid: this.userid,
  19585. },
  19586. ];
  19587. this.ajax
  19588. .post(this.$store.state.api + "joinGroup", params)
  19589. .then((res) => {
  19590. this.$message.success("加入成功");
  19591. this.getCourseDetail(2);
  19592. })
  19593. .catch((err) => {
  19594. this.$message.error("网络不佳");
  19595. console.error(err);
  19596. });
  19597. },
  19598. exitGroup(id) {
  19599. if (this.groupJson.islock == 2) {
  19600. this.$message.error("位置已被锁定,无法退出");
  19601. return;
  19602. }
  19603. let params = [
  19604. {
  19605. gid: id,
  19606. },
  19607. ];
  19608. this.ajax
  19609. .post(this.$store.state.api + "exitGroup", params)
  19610. .then((res) => {
  19611. this.$message.success("退出成功");
  19612. this.getCourseDetail(2);
  19613. })
  19614. .catch((err) => {
  19615. this.$message.error("网络不佳");
  19616. console.error(err);
  19617. });
  19618. },
  19619. groupUpload(index, task, gindex) {
  19620. this.taskCount = task;
  19621. this.toolindex = index;
  19622. this.groupIndex = gindex;
  19623. this.dialogVisibleGroupWork = true;
  19624. },
  19625. updateGroupChair(user) {
  19626. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19627. el.label = index;
  19628. return index != user.group;
  19629. });
  19630. this.updateGroupUser = user;
  19631. this.dialogVisibleUpdateGroup = true;
  19632. },
  19633. updateChair() {
  19634. if (
  19635. this.groupStudent[this.toolindex][this.checkChair].length >
  19636. this.groupJson.number ||
  19637. this.groupStudent[this.toolindex][this.checkChair].length ==
  19638. this.groupJson.number
  19639. ) {
  19640. this.$message.error("位置已满,无法加入");
  19641. return;
  19642. }
  19643. let params = [
  19644. {
  19645. cid: this.id,
  19646. stage: this.courseType,
  19647. task: this.taskCount,
  19648. tool: this.toolindex,
  19649. g: this.checkChair,
  19650. uid: this.updateGroupUser.userid,
  19651. },
  19652. ];
  19653. this.ajax
  19654. .post(this.$store.state.api + "joinGroup", params)
  19655. .then((res) => {
  19656. this.$message.success("修改成功");
  19657. this.updateGroupUser = {};
  19658. this.checkChair = "";
  19659. this.updateGroupArray = {};
  19660. this.dialogVisibleUpdateGroup = false;
  19661. this.getCourseDetail(2);
  19662. })
  19663. .catch((err) => {
  19664. this.$message.error("网络不佳");
  19665. console.error(err);
  19666. });
  19667. },
  19668. deleteGroupChair(gindex) {
  19669. this.checkDeleteGroup = [];
  19670. this.deleteGroupUser = JSON.parse(
  19671. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19672. );
  19673. this.deleteGroupArray = this.groupJson.group[gindex];
  19674. this.groupIndex = gindex;
  19675. this.dialogVisibleDeleteGroup = true;
  19676. },
  19677. async deleteChair() {
  19678. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19679. const gid =
  19680. this.groupStudent[this.toolindex][this.groupIndex][
  19681. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19682. this.checkDeleteGroup[i]
  19683. )
  19684. ];
  19685. let params = [
  19686. {
  19687. gid: gid.id,
  19688. },
  19689. ];
  19690. var a = await this.deleteChairA(params);
  19691. if (i == this.checkDeleteGroup.length - 1) {
  19692. this.$message.success("退出成功");
  19693. this.dialogVisibleDeleteGroup = false;
  19694. this.deleteGroupUser = [];
  19695. this.deleteGroupArray = {};
  19696. this.groupIndex = "";
  19697. this.checkDeleteGroup = [];
  19698. this.getCourseDetail(2);
  19699. }
  19700. }
  19701. },
  19702. deleteChairA(params) {
  19703. return new Promise((resolve, reject) => {
  19704. this.ajax
  19705. .post(this.$store.state.api + "exitGroup", params)
  19706. .then((res) => {
  19707. resolve(1);
  19708. })
  19709. .catch((err) => {
  19710. this.$message.error("网络不佳");
  19711. console.error(err);
  19712. });
  19713. });
  19714. },
  19715. contract(i) {
  19716. if (this.isCloseList[i].isClose == 0) {
  19717. this.isCloseList[i].isClose = 1;
  19718. } else {
  19719. this.isCloseList[i].isClose = 0;
  19720. }
  19721. this.$forceUpdate();
  19722. },
  19723. openWordCloud(toolindex) {
  19724. let array = [];
  19725. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19726. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19727. array.push({ name: works });
  19728. }
  19729. if (this.isGroup) {
  19730. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19731. let works = this.courseGroup.group[i].works[toolindex];
  19732. for (var j = 0; j < works.length; j++) {
  19733. let answer = JSON.parse(works[j].works)[0].answer;
  19734. array.push({ name: answer });
  19735. }
  19736. }
  19737. }
  19738. this.wordCloudData = array;
  19739. this.dialogVisibleWordCloud = true;
  19740. },
  19741. uploadWorks(i) {
  19742. this.$confirm("确定导出作业吗?", "提示", {
  19743. confirmButtonText: "确定",
  19744. cancelButtonText: "取消",
  19745. type: "warning",
  19746. })
  19747. .then(() => {
  19748. const loading = this.$loading.service({
  19749. background: "rgba(255, 255, 255, 0.7)",
  19750. target: document.body,
  19751. text: "文件加载中...",
  19752. });
  19753. const _worksStudent = this.worksStudent;
  19754. let url = [];
  19755. var counts = {};
  19756. for (var l = 0; l < _worksStudent[i].length; l++) {
  19757. var item = _worksStudent[i][l];
  19758. var name = item.sName;
  19759. if (!counts.hasOwnProperty(name)) {
  19760. counts[name] = 0;
  19761. } else {
  19762. counts[name]++;
  19763. }
  19764. if (counts[name] > 0) {
  19765. item.sName += " (" + counts[name] + ")";
  19766. }
  19767. }
  19768. for (var l = 0; l < _worksStudent[i].length; l++) {
  19769. var item = _worksStudent[i][l];
  19770. if (
  19771. item.works.indexOf(
  19772. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19773. ) !== -1 &&
  19774. item.works.indexOf("img") === -1
  19775. ) {
  19776. url.push({ name: item.sName, url: item.works });
  19777. }
  19778. }
  19779. // var toolList = [
  19780. // { name: "电子白板", tool: 1 },
  19781. // { name: "思维导图", tool: 3 },
  19782. // { name: "协同文档", tool: 6 },
  19783. // { name: "思维网格", tool: 7 },
  19784. // { name: "素材库", tool: 8 },
  19785. // { name: "学习资料", tool: 17 },
  19786. // { name: "便签", tool: 2 },
  19787. // { name: "问卷调查", tool: 4 },
  19788. // { name: "选择题", tool: 45 },
  19789. // { name: "倒计时", tool: 10 },
  19790. // { name: "问答", tool: 15 },
  19791. // { name: "课程设计", tool: 26 },
  19792. // { name: "训练服务器", tool: 18 },
  19793. // { name: "作业提交", tool: 16 },
  19794. // { name: "批量上传", tool: 50 },
  19795. // { name: "AIoT Blockly", tool: 21 },
  19796. // { name: "AI Python", tool: 23 },
  19797. // { name: "AI Blockly", tool: 24 },
  19798. // { name: "目标管理", tool: 25 },
  19799. // { name: "数学画板", tool: 31 },
  19800. // { name: "翻译", tool: 28 },
  19801. // { name: "魔盒识字", tool: 37 },
  19802. // { name: "数学画板", tool: 31 },
  19803. // { name: "24点", tool: 38 },
  19804. // { name: "GeoGebra", tool: 39 },
  19805. // { name: "源码编辑", tool: 32 },
  19806. // { name: "个人评价", tool: 40 },
  19807. // { name: "选择匹配", tool: 41 },
  19808. // { name: "汉字宫", tool: 44 },
  19809. // { name: "排序", tool: 47 },
  19810. // { name: "表格", tool: 48 },
  19811. // { name: "文档", tool: 52 },
  19812. // { name: "学生分组", tool: 49 },
  19813. // { name: "CocoPi", tool: 57 },
  19814. // { name: "模拟驾驶", tool: 58 },
  19815. // { name: "路径搜索", tool: 59 },
  19816. // { name: "深度学习", tool: 60 },
  19817. // { name: "全历史", tool: 61 },
  19818. // { name: "交互视频", tool: 62 },
  19819. // { name: "海龟编程", tool: 63 },
  19820. // { name: "挑人", tool: 65 },
  19821. // { name: "公式编辑", tool: 66 },
  19822. // { name: "分子结构", tool: 67 },
  19823. // { name: "时间轴", tool: 68 },
  19824. // ];
  19825. // var toolName = "";
  19826. // for(var w = 0;w<toolList.length;w++){
  19827. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19828. // toolName = toolList[w].name;
  19829. // }
  19830. // }
  19831. console.log(url);
  19832. this.downLoadAll(url, loading);
  19833. })
  19834. .catch(() => {});
  19835. },
  19836. downLoadAll(url, loading) {
  19837. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19838. const zip = new JSZip();
  19839. const cache = {};
  19840. const promises = [];
  19841. data.forEach((item) => {
  19842. const promise = getFile(item.url).then((data) => {
  19843. if (data.data != 1) {
  19844. // 下载文件, 并存成ArrayBuffer对象
  19845. const file_name =
  19846. item.name +
  19847. "." +
  19848. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19849. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19850. cache[file_name] = data.data;
  19851. }
  19852. });
  19853. promises.push(promise);
  19854. });
  19855. Promise.all(promises).then(() => {
  19856. zip.generateAsync({ type: "blob" }).then((content) => {
  19857. // 生成二进制流
  19858. FileSaver.saveAs(
  19859. content,
  19860. this.courseDetail.title + "-" + "作业提交工具.zip"
  19861. ); // 利用file-saver保存文件 自定义文件名
  19862. setTimeout(() => {
  19863. loading.close();
  19864. }, 2000);
  19865. });
  19866. });
  19867. },
  19868. pickStudent(stu) {
  19869. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19870. return;
  19871. }
  19872. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19873. confirmButtonText: "确定",
  19874. cancelButtonText: "取消",
  19875. type: "warning",
  19876. })
  19877. .then(() => {
  19878. let params = [
  19879. {
  19880. uid: stu.userid,
  19881. cid: this.id,
  19882. stage: this.courseType,
  19883. task: this.taskCount,
  19884. tool: this.toolindex,
  19885. },
  19886. ];
  19887. this.ajax
  19888. .post(this.$store.state.api + "updateCoursePick", params)
  19889. .then((res) => {
  19890. this.$message.success("操作成功");
  19891. this.getPick();
  19892. })
  19893. .catch((err) => {
  19894. this.$message.error("网络不佳");
  19895. console.error(err);
  19896. });
  19897. })
  19898. .catch(() => {});
  19899. },
  19900. selectUser(){
  19901. let params = {
  19902. userid: this.userid,
  19903. };
  19904. this.ajax
  19905. .get(this.$store.state.api + "selectUser", params)
  19906. .then((res) => {
  19907. this.userMes = res.data[0];
  19908. })
  19909. .catch((err) => {
  19910. console.error(err);
  19911. });
  19912. },
  19913. setEngText(i){
  19914. this.newEngIndex = i;
  19915. this.$forceUpdate();
  19916. },
  19917. addCorrect(){
  19918. this.$confirm("你确定提交批改嘛?", "提示", {
  19919. confirmButtonText: "确定",
  19920. showCancelButton: false,
  19921. closeOnClickModal: false,
  19922. type: "warning",
  19923. })
  19924. .then(() => {
  19925. let params = {
  19926. cid: this.id,
  19927. s: parseInt(this.courseType),
  19928. t: this.taskCount,
  19929. tool: this.toolindex,
  19930. wid: this.engWid,
  19931. c: this.userid,
  19932. 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) : "",
  19933. };
  19934. this.ajax
  19935. .get(this.$store.state.api + "addEngC", params)
  19936. .then((res) => {
  19937. this.$message.success("提交成功");
  19938. this.engUpdateDialogVisible = false;
  19939. })
  19940. .catch((err) => {
  19941. console.error(err);
  19942. });
  19943. })
  19944. .catch(() => {});
  19945. },
  19946. selectEngC(id,z){
  19947. let params = {
  19948. workid: id,
  19949. };
  19950. this.ajax
  19951. .get(this.$store.state.api + "selectEngC", params)
  19952. .then((res) => {
  19953. if(res.data[0].length == 0){
  19954. this.newEnglishList.engTitle = z.engTitle;
  19955. this.newEnglishList.engText = z.engText;
  19956. }else{
  19957. var a = res.data[0];
  19958. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19959. if(this.userMes[0].type == 2){
  19960. var snum = 0;
  19961. for(var i = 0;i<a.length;i++){
  19962. if(this.userMes[0].userid == a[i].correct){
  19963. this.newEnglishList = JSON.parse(a[i].cWork);
  19964. snum = 1;
  19965. }
  19966. }
  19967. if(snum == 0){
  19968. this.newEnglishList = { engTitle:"",engText:"" };
  19969. this.newEnglishList.engTitle = z.engTitle;
  19970. this.newEnglishList.engText = z.engText;
  19971. }
  19972. }else if(this.userMes[0].type == 1){
  19973. var num = 0;
  19974. for(var w= 0;w<a.length;w++){
  19975. if(this.userMes[0].userid == a[w].correct){
  19976. num = 1;
  19977. }
  19978. }
  19979. if(num == 0){
  19980. this.isNoUserid = true;
  19981. var c = JSON.parse(JSON.stringify(z));
  19982. this.oldEnglishJson1 = c;
  19983. }else{
  19984. this.isNoUserid = false;
  19985. }
  19986. var b = a.sort((item, index) => {
  19987. console.log(item)
  19988. if (item.correct === this.userMes[0].userid) {
  19989. return -1; // 将a移到前面
  19990. } else if (index.correct === this.userMes[0].userid) {
  19991. return 1; // 将b移到前面
  19992. } else {
  19993. return 0; // 保持默认顺序
  19994. }
  19995. });
  19996. for(var p = 0;p<b.length;p++){
  19997. for(var y = 0;y<ppp.length;y++){
  19998. if(b[p].id == ppp[y].id){
  19999. b[p].cWork = JSON.parse(ppp[y].cWork);
  20000. break
  20001. }
  20002. }
  20003. }
  20004. this.newEnglishList1 = b;
  20005. }
  20006. }
  20007. this.greyType = false;
  20008. setTimeout(() => {
  20009. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20010. if(this.newEnglishList1.length > 0){
  20011. if(this.isNoUserid == true){
  20012. this.engListLength = this.newEnglishList1.length + 1;
  20013. this.newEngIndex = -1;
  20014. }else{
  20015. this.engListLength = this.newEnglishList1.length;
  20016. this.newEngIndex = 0;
  20017. }
  20018. }
  20019. if(this.userMes[0].type == 2){
  20020. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20021. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20022. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20023. }else if(this.newEngIndex == -1){
  20024. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20025. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20026. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20027. }
  20028. }, 500);
  20029. this.engUpdateDialogVisible = true;
  20030. this.$forceUpdate();
  20031. })
  20032. .catch((err) => {
  20033. console.error(err);
  20034. });
  20035. },
  20036. getPick() {
  20037. let params = {
  20038. cid: this.id,
  20039. };
  20040. this.ajax
  20041. .get(this.$store.state.api + "getPick", params)
  20042. .then((res) => {
  20043. let array = [];
  20044. for (var i = 0; i < res.data[0].length; i++) {
  20045. array.push(res.data[0][i].userid);
  20046. }
  20047. this.isPickStudent = array;
  20048. if (array.indexOf(this.userid) !== -1) {
  20049. this.$confirm("你被老师选到啦!", "提示", {
  20050. confirmButtonText: "确定",
  20051. showCancelButton: false,
  20052. closeOnClickModal: false,
  20053. type: "warning",
  20054. })
  20055. .then(() => {
  20056. let pa = [
  20057. {
  20058. uid: this.userid,
  20059. cid: this.id,
  20060. },
  20061. ];
  20062. this.ajax
  20063. .post(this.$store.state.api + "deletePick", pa)
  20064. .then((res) => {
  20065. this.getPick();
  20066. })
  20067. .catch((err) => {
  20068. this.$message.error("网络不佳");
  20069. console.error(err);
  20070. });
  20071. })
  20072. .catch(() => {});
  20073. }
  20074. })
  20075. .catch((err) => {
  20076. this.$message.error("网络不佳");
  20077. console.error(err);
  20078. });
  20079. },
  20080. foldEva() {
  20081. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20082. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20083. } else {
  20084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20085. setTimeout(() => {
  20086. this.checkEva();
  20087. setTimeout(() => {
  20088. this.checkEva();
  20089. }, 500);
  20090. }, 0);
  20091. }
  20092. this.$forceUpdate();
  20093. },
  20094. panToolHeight(tool) {
  20095. var _tool = document.querySelectorAll('#'+tool)[0]
  20096. var _toolA = _tool ? _tool.offsetHeight : 0
  20097. var _toolC = 0
  20098. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20099. let boolean2 = (_toolA > _toolC) ? true : false
  20100. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20101. this.$forceUpdate();
  20102. },
  20103. async checkLink(url) {
  20104. // console.log(url)
  20105. let _url = url
  20106. try {
  20107. const response = await fetch(url);
  20108. if(!response.ok){
  20109. _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]))
  20110. }
  20111. // console.log(response.ok)
  20112. } catch (error) {
  20113. console.error('Error checking link:', error);
  20114. // console.log(false)
  20115. _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]))
  20116. }
  20117. // console.log(_url)
  20118. return _url
  20119. },
  20120. getScoreList(){
  20121. let params = {
  20122. cid: this.id,
  20123. };
  20124. this.ajax
  20125. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20126. .then((res) => {
  20127. let result = res.data;
  20128. this.scoreList.datalist = result[0];
  20129. this.scoreList.isScoreList = result[1];
  20130. })
  20131. .catch((err) => {
  20132. console.error(err);
  20133. });
  20134. },
  20135. setClassRoomHelperWidth(width){
  20136. this.classRoomHelperWidth = width
  20137. },
  20138. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20139. this.$refs.choseWorksDetailDialogRef.open({
  20140. toolType:tooc,
  20141. tType: this.tType,
  20142. toolIndex: toolIndex
  20143. });
  20144. this.changeSplitScreenBehavior({
  20145. code: 1,
  20146. form: {
  20147. toolType:tooc,
  20148. toolIndex: toolIndex,
  20149. courseType: this.courseType,
  20150. taskCount: this.taskCount,
  20151. type: 0
  20152. }
  20153. });
  20154. },
  20155. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20156. this.$refs.statisticalAnalysisRef.open({
  20157. worksStudent: this.worksStudent[toolIndex],
  20158. tType: this.tType,
  20159. toolIndex: toolIndex
  20160. });
  20161. this.changeSplitScreenBehavior({
  20162. code: 2,
  20163. form: {
  20164. toolType:4,
  20165. courseType: this.courseType,
  20166. taskCount: this.taskCount,
  20167. toolIndex: toolIndex,
  20168. type: 0
  20169. }
  20170. });
  20171. },
  20172. statisticalAnalysisRefresh(toolIndex) {
  20173. this.$refs.statisticalAnalysisRef.refreshData({
  20174. worksStudent: this.worksStudent[toolIndex],
  20175. tType: this.tType,
  20176. toolIndex: toolIndex
  20177. });
  20178. },
  20179. async splitScreenBehavior(type = 0) {
  20180. // return;
  20181. if (this.splitScreenData.loading)
  20182. return this.$message.info("操作过快,请稍等");
  20183. if (type == 0) {
  20184. //关闭分屏
  20185. this.splitScreenData.isOpen = false;
  20186. // this.splitScreenData.userId = "";
  20187. // this.splitScreenData.uid = "";
  20188. this.splitScreenData.behavior = null;
  20189. await this.updateSplitScreenData(1);
  20190. this.$message.success("已关闭分屏模式");
  20191. this.studentFreePreview(false);
  20192. this.OpenJobPreview(false);
  20193. // this.followingMode(false);
  20194. } else if (type == 1) {
  20195. //开启分屏
  20196. this.splitScreenData.isOpen = true;
  20197. this.splitScreenData.userId = this.userid;
  20198. this.splitScreenData.uid = this.splitScreenData.myUid;
  20199. this.splitScreenData.behavior = null;
  20200. let status = await this.updateSplitScreenData(0);
  20201. this.changeSplitScreenBehavior({form:{}})
  20202. if (status == 1) {
  20203. this.$message.success("已开启分屏");
  20204. this.studentFreePreview(true);
  20205. this.OpenJobPreview(true);
  20206. // this.followingMode(true);
  20207. } else {
  20208. this.splitScreenData.isOpen = false;
  20209. this.splitScreenData.userId = "";
  20210. this.splitScreenData.uid = "";
  20211. this.splitScreenData.behavior = null;
  20212. this.$message.success("分屏开启失败");
  20213. }
  20214. }
  20215. },
  20216. enterFullScreen() {
  20217. let element = document.documentElement;
  20218. if (element.requestFullscreen) {
  20219. element.requestFullscreen();
  20220. } else if (element.mozRequestFullScreen) { /* Firefox */
  20221. element.mozRequestFullScreen();
  20222. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20223. element.webkitRequestFullscreen();
  20224. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20225. element.msRequestFullscreen();
  20226. }
  20227. },
  20228. exitFullScreen() {
  20229. if (document.exitFullscreen) {
  20230. document.exitFullscreen();
  20231. } else if (document.mozCancelFullScreen) { /* Firefox */
  20232. document.mozCancelFullScreen();
  20233. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20234. document.webkitExitFullscreen();
  20235. } else if (document.msExitFullscreen) { /* IE/Edge */
  20236. document.msExitFullscreen();
  20237. }
  20238. },
  20239. confirmOpen(){
  20240. this.splitScreenData.isOpen = true;
  20241. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20242. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20243. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20244. this.confirmOpenDig = false
  20245. if (!document.fullscreenElement) {
  20246. this.enterFullScreen();
  20247. }
  20248. if (this.timer2) {
  20249. clearInterval(this.timer2);
  20250. this.timer2 = null;
  20251. }
  20252. this.timer2 = setInterval(()=> {
  20253. this.getSplitScreenData();//获取分屏数据
  20254. }, 1000);
  20255. this.$message.success("分屏模式已开启");
  20256. },
  20257. getSplitScreenData() {
  20258. // return;
  20259. if (this.tType != 1) return;
  20260. let params = {
  20261. cid: this.id
  20262. };
  20263. this.ajax
  20264. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20265. .then(async res => {
  20266. let data = res.data[0][0]["splitScreenData"];
  20267. console.log("获取了分屏数:", data);
  20268. if (data) {
  20269. data = JSON.parse(data);
  20270. if (
  20271. !this.splitScreenData.isOpen &&
  20272. data.isOpen &&
  20273. this.splitScreenData.myUid == data.uid
  20274. ) {
  20275. this.splitScreenData.isOpen = false;
  20276. this.splitScreenData.userId = "";
  20277. this.splitScreenData.uid = "";
  20278. this.splitScreenData.behavior = null;
  20279. await this.updateSplitScreenData(1);
  20280. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20281. this.confirmOpenDig = true
  20282. this.confirmOpenDigData = data
  20283. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20284. this.splitScreenData.isOpen = false;
  20285. this.splitScreenData.userId = "";
  20286. this.splitScreenData.uid = "";
  20287. this.splitScreenData.behavior = null;
  20288. this.$message.error("已结束分屏模式");
  20289. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20290. this.splitScreenData.isOpen = true;
  20291. this.splitScreenData.uid = data.uid;
  20292. this.splitScreenData.userId = data.userId;
  20293. this.splitScreenData.behavior = data.behavior;
  20294. }
  20295. this.doSplitScreenBehavior();
  20296. } else {
  20297. if (this.splitScreenData.isOpen) {
  20298. this.splitScreenData.isOpen = false;
  20299. this.splitScreenData.userId = "";
  20300. this.splitScreenData.uid = "";
  20301. this.splitScreenData.behavior = null;
  20302. this.$message.error("已结束分屏模式");
  20303. if (this.timer2) {
  20304. clearInterval(this.timer2);
  20305. this.timer2 = null;
  20306. }
  20307. this.timer2 = setInterval(()=> {
  20308. this.getSplitScreenData();//获取分屏数据
  20309. }, 5000);
  20310. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20311. confirmButtonText: '确定', //确认按钮的文字
  20312. showCancelButton: false, //是否显示取消按钮
  20313. showClose: false, //是否显示关闭按钮
  20314. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20315. type: "warning",
  20316. })
  20317. .then(() => {
  20318. if (document.fullscreenElement) {
  20319. this.exitFullScreen();
  20320. }
  20321. })
  20322. .catch(() => {});
  20323. }
  20324. }
  20325. })
  20326. .catch(e => {
  20327. console.log("获取分屏数出错:", e);
  20328. });
  20329. },
  20330. doSplitScreenBehavior() {
  20331. if (
  20332. this.splitScreenData.isOpen &&
  20333. this.splitScreenData.uid != this.splitScreenData.myUid
  20334. ) {
  20335. let behavior = this.splitScreenData.behavior;
  20336. if (behavior) {
  20337. if (behavior.code === 99) {
  20338. //初始化
  20339. this.fullDialogVisible = false;
  20340. if(this.$refs.choseWorksDetailDialogRef.show){
  20341. this.$refs.choseWorksDetailDialogRef.close();
  20342. }
  20343. if(this.$refs.statisticalAnalysisRef.show){
  20344. this.$refs.statisticalAnalysisRef.close();
  20345. }
  20346. }
  20347. if (behavior.code === 0) {
  20348. //开启内容列表弹窗
  20349. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20350. }else{
  20351. this.fullDialogVisible = false;
  20352. }
  20353. if (behavior.code === 1) {
  20354. //关于选择题的作业详细的操作
  20355. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20356. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20357. this.courseType = behavior.form.courseType;
  20358. this.taskCount = behavior.form.taskCount;
  20359. }
  20360. this.$nextTick(() => {
  20361. if (this.$refs.choseWorksDetailDialogRef.show) {
  20362. //已经打开了
  20363. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20364. } else {
  20365. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20366. }
  20367. });
  20368. }else{
  20369. this.$refs.choseWorksDetailDialogRef.close()
  20370. }
  20371. if(behavior.code === 2){
  20372. if(this.$refs.statisticalAnalysisRef.show){
  20373. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20374. }else{
  20375. this.$refs.statisticalAnalysisRef.open({
  20376. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20377. tType: this.tType,
  20378. toolIndex: behavior.form.toolIndex
  20379. });
  20380. }
  20381. }else{
  20382. this.$refs.statisticalAnalysisRef.close();
  20383. }
  20384. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20385. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20386. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20387. if(this.courseType !=behavior.form.courseType){
  20388. this.courseType = behavior.form.courseType;
  20389. }
  20390. if(this.taskCount !=behavior.form.taskCount){
  20391. this.taskCount = behavior.form.taskCount;
  20392. }
  20393. var a = document.scrollingElement;
  20394. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20395. if (target) {
  20396. target.scrollIntoView(true);
  20397. setTimeout(() => {
  20398. a.scrollTop = 0
  20399. }, 0);
  20400. }
  20401. // if(behavior.form.navId){
  20402. // this.navId = behavior.form.navId
  20403. // }
  20404. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20405. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20406. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20407. this.getCourseDetail()
  20408. }
  20409. this.setContent2(false)
  20410. }
  20411. } else {
  20412. }
  20413. }
  20414. },
  20415. updateSplitScreenData(empty = 0) {
  20416. return new Promise(resolve => {
  20417. if(this.userid!==this.courseDetail.userid){
  20418. if(!this.courseDetail.userid){
  20419. return setTimeout(()=>{
  20420. this.updateSplitScreenData(empty)
  20421. },2000)
  20422. }
  20423. return;
  20424. };
  20425. if (
  20426. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20427. this.splitScreenData.userId == this.userid
  20428. ) {
  20429. this.splitScreenData.loading = true;
  20430. let params = [
  20431. {
  20432. cid: this.id,
  20433. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20434. }
  20435. ];
  20436. this.ajax
  20437. .post(
  20438. this.$store.state.api + "update_courseSplitScreenData",
  20439. params
  20440. )
  20441. .then(res => {
  20442. this.splitScreenData.loading = false;
  20443. if (res.data == 1) {
  20444. resolve(1);
  20445. console.log("修改分屏数据成功");
  20446. }
  20447. })
  20448. .catch(e => {
  20449. this.splitScreenData.loading = false;
  20450. console.log("修改分屏数据失败", e);
  20451. resoleve(0);
  20452. });
  20453. } else if (empty == 2 && this.tType == 1) {
  20454. let params = [
  20455. {
  20456. cid: this.id,
  20457. nData: ""
  20458. }
  20459. ];
  20460. return this.ajax
  20461. .post(
  20462. this.$store.state.api + "update_courseSplitScreenData",
  20463. params
  20464. )
  20465. .then(_ => resolve(1))
  20466. .catch(_ => resolve(0));
  20467. } else {
  20468. return resolve(0);
  20469. }
  20470. });
  20471. },
  20472. changeSplitScreenBehavior(newValue) {
  20473. if (
  20474. this.splitScreenData.isOpen &&
  20475. this.splitScreenData.uid == this.splitScreenData.myUid
  20476. ) {
  20477. let _behavior = null;
  20478. if(!newValue){
  20479. _behavior = {}
  20480. }else{
  20481. _behavior = newValue
  20482. }
  20483. if(_behavior.form){
  20484. _behavior.form.taskCount = this.taskCount;
  20485. _behavior.form.courseType = this.courseType
  20486. }else{
  20487. _behavior.form = {
  20488. taskCount:this.taskCount,
  20489. courseType:this.courseType
  20490. }
  20491. }
  20492. this.splitScreenData.behavior = _behavior;
  20493. this.updateSplitScreenData(0);
  20494. }
  20495. },
  20496. studentFreePreview(flag) {
  20497. this.IsLookOpen = flag;
  20498. this.followingMode(flag)
  20499. this.updateLookOpen();
  20500. },
  20501. OpenJobPreview(flag) {
  20502. this.sIsOpen = flag;
  20503. this.updateSLook();
  20504. },
  20505. followingMode(flag) {
  20506. this.IsFollow = flag;
  20507. this.updateFollow();
  20508. }
  20509. },
  20510. directives: {
  20511. // 使用局部注册指令的方式
  20512. resize: {
  20513. // 指令的名称
  20514. bind(el, binding) {
  20515. // el为绑定的元素,binding为绑定给指令的对象
  20516. let width = "",
  20517. height = "";
  20518. function isReize() {
  20519. const style = document.defaultView.getComputedStyle(el);
  20520. if (width !== style.width || height !== style.height) {
  20521. binding.value(); // 关键
  20522. }
  20523. width = style.width;
  20524. height = style.height;
  20525. }
  20526. el.__vueSetInterval__ = setInterval(isReize, 300);
  20527. },
  20528. unbind(el) {
  20529. clearInterval(el.__vueSetInterval__);
  20530. },
  20531. },
  20532. autoHeight: {
  20533. update(el, binding) {
  20534. const { value } = binding
  20535. if (value && typeof value === 'number') {
  20536. el.style.height = `${value}px`
  20537. } else {
  20538. el.style.height = 'auto'
  20539. }
  20540. },
  20541. componentUpdated(el) {
  20542. el.style.height = `${el.scrollHeight + 5}px`
  20543. },
  20544. },
  20545. },
  20546. beforeDestroy() {
  20547. window.onresize = null;
  20548. clearInterval(this.timer);
  20549. this.timer = null;
  20550. clearInterval(this.timer2);
  20551. this.timer2 = null;
  20552. clearInterval(this.opertimer);
  20553. this.opertimer = null;
  20554. this.updateSplitScreenData(1);
  20555. },
  20556. computed: {
  20557. getHeight(){
  20558. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20559. },
  20560. contentConvent() {
  20561. return function (c) {
  20562. return c
  20563. ? c
  20564. .replaceAll(/\r\n/g, "<br/>")
  20565. .replaceAll(/\n/g, "<br/>")
  20566. .replaceAll(/\s/g, " &nbsp")
  20567. : "";
  20568. };
  20569. },
  20570. MarkdownT() {
  20571. return function (c) {
  20572. let md = new MarkdownIt();
  20573. return c
  20574. ? md.render(c) : "";
  20575. };
  20576. },
  20577. commentRight(){
  20578. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20579. return "35px";
  20580. }
  20581. return `calc(${this.classRoomHelperWidth} + 5px)`
  20582. // if(this.$refs["classRoomHelperRef"].type==0){
  20583. // return "100px";
  20584. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20585. // return "502px"
  20586. // }else{
  20587. // return "0px"
  20588. // }
  20589. },
  20590. checkUpload() {
  20591. return function () {
  20592. var studentK = [];
  20593. if (this.plworkFile.length > 0) {
  20594. for (var z = 0; z < this.plworkFile.length; z++) {
  20595. studentK.push(this.plworkFile[z].username);
  20596. }
  20597. studentK = studentK.join(",");
  20598. }
  20599. var a = this.uploadStudentJuri.filter((el) => {
  20600. return studentK.indexOf(el.userid) == -1;
  20601. });
  20602. return a;
  20603. };
  20604. },
  20605. getSName() {
  20606. return function (name) {
  20607. var check = name;
  20608. this.uploadStudentJuri.forEach((el) => {
  20609. if (el.userid == check) {
  20610. check = el.name ? el.name : el.username;
  20611. }
  20612. });
  20613. return check;
  20614. };
  20615. },
  20616. getImgList() {
  20617. return function (val) {
  20618. let srcList = []; // 定义一个数组用来接收后面的img地址
  20619. val.replace(
  20620. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20621. function (match, capture) {
  20622. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20623. srcList.push(capture);
  20624. }
  20625. );
  20626. return srcList;
  20627. };
  20628. },
  20629. retrnToolHeight(){
  20630. return function (tool) {
  20631. var _tool = document.querySelectorAll('#'+tool)[0]
  20632. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20633. };
  20634. },
  20635. Correct() {
  20636. return function (c,d) {
  20637. let w = "";
  20638. let a = this.correctWord;
  20639. for(var k = 0;k<a.length;k++){
  20640. //diffWordsWithSpace
  20641. if(a.length > 1){
  20642. if(a[k].added == true){
  20643. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20644. }else if(a[k].removed == true){
  20645. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20646. }else{
  20647. w += '<span>' + a[k].value + '</span>';
  20648. }
  20649. }else{
  20650. w = c
  20651. }
  20652. console.log("👇👇!+++==")
  20653. console.log(w)
  20654. //diffChars方法
  20655. // if(w == ""){
  20656. // if(a.length > 1){
  20657. // if(a[k].added == true){
  20658. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20659. // }else if(a[k].removed == true){
  20660. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20661. // }
  20662. // }else{
  20663. // w = c
  20664. // }
  20665. // }else{
  20666. // if(k == a.length - 1){
  20667. // if(a[k].added == true){
  20668. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20669. // }else if(a[k].removed == true){
  20670. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20671. // }
  20672. // }else{
  20673. // if(a[k].added == true){
  20674. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20675. // }else if(a[k].removed == true){
  20676. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20677. // }
  20678. // }
  20679. // }
  20680. }
  20681. c = w;
  20682. return c;
  20683. };
  20684. },
  20685. },
  20686. mounted() {
  20687. document.body.addEventListener("click", (e) => {
  20688. if (this.isUpdateToolDetail1) {
  20689. this.updateToolDetail(this.toolDetailIndex);
  20690. }
  20691. });
  20692. if (this.screenType == 2) {
  20693. window.parent.postMessage({ allScreen: 4 }, "*");
  20694. } else if (this.screenType == 3) {
  20695. window.parent.postMessage({ allScreen: 5 }, "*");
  20696. } else if (this.screenType == 1) {
  20697. window.parent.postMessage({ allScreen: 6 }, "*");
  20698. }
  20699. this.setOperationTime();
  20700. this.selectEva();
  20701. this.getCourseDetail();
  20702. this.selectCount();
  20703. this.getHomeWork();
  20704. this.selectUser();
  20705. this.getAIJ();
  20706. this.contentDialog = true;
  20707. this.setContent2(true);
  20708. if (this.tType == 4) {
  20709. this.pzDialog = true;
  20710. this.selectPz();
  20711. }
  20712. // 获取评分列表
  20713. this.getScoreList()
  20714. this.updateSplitScreenData(2);
  20715. this.splitScreenData.myUid = uuidv4();
  20716. document.scrollingElement.scrollTop = 0;
  20717. window.addEventListener("resize", () => {
  20718. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20719. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20720. if (this.showType == 2 || this.showType == 3) {
  20721. document.getElementsByClassName("navBox")[0].style.height =
  20722. a - 40 + 0+ "px";
  20723. } else {
  20724. document.getElementsByClassName("navBox")[0].style.height =
  20725. a - 40 + "px";
  20726. }
  20727. });
  20728. let _this = this;
  20729. setTimeout(() => {
  20730. // _this.vedioTime = [];
  20731. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20732. // _this.vedioTime[i] = document.getElementsByClassName(
  20733. // "vjs-duration-display"
  20734. // )[i].textContent;
  20735. // }
  20736. }, 1000);
  20737. },
  20738. };
  20739. </script>
  20740. <style scoped>
  20741. @media screen and (max-width: 1280px) {
  20742. /* .courseIndex > div:first-child(2) {
  20743. width: 15% !important;
  20744. } */
  20745. /* .navText {
  20746. width: 120px !important;
  20747. } */
  20748. .evaCss {
  20749. flex-direction: column !important;
  20750. align-items: center !important;
  20751. }
  20752. .elist_input {
  20753. width: 90% !important;
  20754. }
  20755. .dialog_diy1 >>> .el-dialog {
  20756. width: 100% !important;
  20757. }
  20758. .rightWidthCss {
  20759. width: 100% !important;
  20760. }
  20761. .dialog_diy3 >>> .el-dialog {
  20762. width: 100% !important;
  20763. }
  20764. .addToolCss {
  20765. right: 0 !important;
  20766. width: 100% !important;
  20767. min-width: unset !important;
  20768. }
  20769. }
  20770. .evaCssMax {
  20771. flex-direction: column !important;
  20772. align-items: center !important;
  20773. }
  20774. .dialog_diy >>> .el-dialog {
  20775. margin-top: 10vh !important;
  20776. }
  20777. .body_student {
  20778. width: 77%;
  20779. height: 100%;
  20780. position: absolute;
  20781. left: 22%;
  20782. top: 0;
  20783. }
  20784. .student_head {
  20785. width: 100%;
  20786. margin: 20px auto 0;
  20787. padding-bottom: 20px;
  20788. display: flex;
  20789. flex-direction: column;
  20790. flex-wrap: nowrap;
  20791. align-items: flex-start;
  20792. justify-content: flex-start;
  20793. }
  20794. .pb_left {
  20795. width: 20%;
  20796. margin-right: 10px;
  20797. background: rgb(255, 255, 255);
  20798. position: fixed;
  20799. height: calc(100% - 40px);
  20800. border-radius: 20px;
  20801. padding-bottom: 15px;
  20802. box-sizing: border-box;
  20803. }
  20804. .wheel > img,
  20805. .project > img,
  20806. .star > img,
  20807. .evaluate > img,
  20808. .up_photo > img,
  20809. .chapter_add > img,
  20810. .deleteWord > img,
  20811. .question > img,
  20812. .homework > img {
  20813. width: 100%;
  20814. height: 100%;
  20815. }
  20816. .upCover > img {
  20817. width: 131px;
  20818. height: 69px;
  20819. object-fit: cover;
  20820. }
  20821. .upCover {
  20822. width: calc(100% / 3.5);
  20823. position: relative;
  20824. margin: 0 15px 10px 0;
  20825. display: flex;
  20826. flex-direction: column;
  20827. flex-wrap: nowrap;
  20828. justify-content: center;
  20829. align-content: center;
  20830. align-items: center;
  20831. height: fit-content;
  20832. }
  20833. .upCover2 {
  20834. width: 100%;
  20835. position: relative;
  20836. margin: 0 15px 10px 0;
  20837. display: flex;
  20838. flex-direction: column;
  20839. flex-wrap: nowrap;
  20840. justify-content: center;
  20841. align-content: center;
  20842. align-items: center;
  20843. }
  20844. .upCover2 > img {
  20845. width: 100%;
  20846. height: 90px;
  20847. object-fit: contain;
  20848. }
  20849. .chapter_add {
  20850. width: 120px;
  20851. position: relative;
  20852. text-align: center;
  20853. }
  20854. .isAddThings {
  20855. margin-top: 20px;
  20856. position: relative;
  20857. text-align: center;
  20858. background: #f7f8fa;
  20859. height: 90px;
  20860. width: 90px;
  20861. display: flex;
  20862. flex-direction: column;
  20863. justify-content: center;
  20864. }
  20865. .deleteWord {
  20866. width: 22px;
  20867. height: 22px;
  20868. position: absolute;
  20869. right: -5px;
  20870. top: -5px;
  20871. cursor: pointer;
  20872. }
  20873. .box_course {
  20874. /* width: 60%; */
  20875. width: calc(100% - 300px);
  20876. }
  20877. .wheel {
  20878. width: 100%;
  20879. /* height: 100%; */
  20880. height: 650px;
  20881. }
  20882. .right_box {
  20883. display: flex;
  20884. flex-direction: column;
  20885. margin-left: 30px;
  20886. justify-content: space-around;
  20887. }
  20888. .right_box_title {
  20889. font-size: 23px;
  20890. }
  20891. .people {
  20892. display: flex;
  20893. }
  20894. .student_body {
  20895. width: 100%;
  20896. margin: 0 auto;
  20897. margin-top: 10px;
  20898. padding: 0 0 20px;
  20899. }
  20900. .study_top {
  20901. margin-top: 100px;
  20902. width: 100%;
  20903. height: auto;
  20904. padding-bottom: 20px;
  20905. margin-left: 2px;
  20906. min-height: 90%;
  20907. }
  20908. .study_top .checkbox {
  20909. display: flex;
  20910. align-items: center;
  20911. padding: 15px 0 15px 30px;
  20912. flex: 0 0 auto;
  20913. font-weight: bold;
  20914. border-bottom: 1px solid #eee;
  20915. }
  20916. .study_top .check {
  20917. padding-bottom: 5px;
  20918. text-align: center;
  20919. cursor: pointer;
  20920. height: 30px;
  20921. box-sizing: border-box;
  20922. display: flex;
  20923. }
  20924. .study_top .checked {
  20925. border-bottom: 4px solid #3fc6a0;
  20926. padding-bottom: 5px;
  20927. color: #3fc6a0;
  20928. display: flex;
  20929. height: 35px;
  20930. }
  20931. .study_top .checked > div,
  20932. .study_top .check > div {
  20933. margin-right: 5px;
  20934. }
  20935. .videoTop {
  20936. display: flex;
  20937. flex-direction: row;
  20938. justify-content: space-between;
  20939. background: #fff;
  20940. align-items: center;
  20941. width: 95%;
  20942. padding: 20px;
  20943. }
  20944. .filebox {
  20945. display: flex;
  20946. flex-wrap: wrap;
  20947. flex-direction: column;
  20948. padding: 0 0 5px;
  20949. position: relative;
  20950. }
  20951. .filebox:before {
  20952. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20953. position: absolute;
  20954. top: 20px;
  20955. left: 13px;
  20956. border-left: 2px dotted #cad1dc;
  20957. height: calc(100% - 15px);
  20958. }
  20959. .toolHeng2 > div:last-child::before {
  20960. height: calc(100% - 43px);
  20961. }
  20962. .filebox .tooldetail {
  20963. width: calc(100%);
  20964. margin: 0px 12px;
  20965. padding: 12px;
  20966. line-height: 30px;
  20967. word-break: break-word;
  20968. background: #ffffff;
  20969. border-radius: 8px 8px 8px 8px;
  20970. opacity: 1;
  20971. border: 1px solid #cad1dc;
  20972. overflow:hidden;
  20973. box-sizing:border-box;
  20974. }
  20975. .file {
  20976. display: flex;
  20977. flex-direction: column;
  20978. align-items: center;
  20979. justify-content: center;
  20980. cursor: pointer;
  20981. width: 200px;
  20982. }
  20983. .file div {
  20984. margin-top: 10px;
  20985. width: 150px;
  20986. text-align: center;
  20987. overflow: hidden;
  20988. white-space: nowrap;
  20989. text-overflow: ellipsis;
  20990. }
  20991. .media {
  20992. display: flex;
  20993. flex-direction: column;
  20994. align-items: center;
  20995. justify-content: center;
  20996. margin: 0 20px 20px 0;
  20997. cursor: pointer;
  20998. margin: 12px 0 5px 15px;
  20999. overflow: hidden;
  21000. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21001. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21002. box-sizing: border-box;
  21003. }
  21004. .media img {
  21005. height: 90px;
  21006. width: 160px;
  21007. object-fit: cover;
  21008. }
  21009. .media .title {
  21010. padding: 5px;
  21011. text-align: left;
  21012. width: 100%;
  21013. box-sizing: border-box;
  21014. }
  21015. .media .btn {
  21016. width: 100%;
  21017. height: 35px;
  21018. line-height: 35px;
  21019. color: #fff;
  21020. background: #606060;
  21021. text-align: center;
  21022. overflow: hidden;
  21023. white-space: nowrap;
  21024. text-overflow: ellipsis;
  21025. }
  21026. .detail_content_top {
  21027. width: 100%;
  21028. padding: 25px 0 25px 0;
  21029. }
  21030. .detail_title {
  21031. text-align: center;
  21032. font-size: 24px;
  21033. }
  21034. .detail_time {
  21035. font-size: 13px;
  21036. padding: 15px 0 0 40px;
  21037. }
  21038. .detail_content {
  21039. line-height: 2pc;
  21040. width: 90%;
  21041. margin: 0 auto;
  21042. padding-top: 30px;
  21043. text-indent: 30px;
  21044. overflow: auto;
  21045. height: 200px;
  21046. }
  21047. .score_box >>> .el-rate {
  21048. margin-left: 10px;
  21049. }
  21050. .dialog_change >>> .el-dialog {
  21051. border-radius: 5px;
  21052. }
  21053. .dialog_change >>> .el-dialog__header {
  21054. background: #f2f2f2;
  21055. text-align: center;
  21056. }
  21057. .dialog_change >>> .el-dialog__title {
  21058. line-height: 5px;
  21059. }
  21060. .dialog_change >>> .el-dialog__body {
  21061. background: #fff;
  21062. padding: 10px 20px;
  21063. }
  21064. .score_box {
  21065. display: flex;
  21066. align-items: center;
  21067. margin-bottom: 18px;
  21068. margin-top: 20px;
  21069. }
  21070. .up_photo {
  21071. width: 120px;
  21072. cursor: pointer;
  21073. margin-top: 10px;
  21074. }
  21075. .up_photo2 {
  21076. width: 180px;
  21077. box-sizing: border-box;
  21078. min-width: 180px;
  21079. height: 180px;
  21080. max-height: 180px;
  21081. min-height: 180px;
  21082. cursor: pointer;
  21083. display: flex;
  21084. flex-direction: column;
  21085. align-items: center;
  21086. justify-content: center;
  21087. background: rgb(242, 246, 255);
  21088. /* padding: 25px; */
  21089. margin-bottom: 10px;
  21090. }
  21091. .up_photo2 img {
  21092. width: 50%;
  21093. height: auto;
  21094. }
  21095. .up_photo2 span {
  21096. color: #898989;
  21097. }
  21098. .plworkBox {
  21099. display: flex;
  21100. align-items: center;
  21101. margin-top: 10px;
  21102. flex-wrap: wrap;
  21103. }
  21104. .upload_send {
  21105. margin: 30px auto 30px;
  21106. width: 60%;
  21107. background: #3681fc;
  21108. text-align: center;
  21109. height: 35px;
  21110. line-height: 35px;
  21111. color: #fff;
  21112. border-radius: 5px;
  21113. cursor: pointer;
  21114. }
  21115. .marginT {
  21116. margin-top: 20px;
  21117. }
  21118. .cd_content_steps {
  21119. display: flex;
  21120. width: 90%;
  21121. justify-content: space-around;
  21122. border-top: 1px solid #eeeeee;
  21123. }
  21124. .cd_steps_box {
  21125. display: flex;
  21126. justify-content: center;
  21127. align-items: center;
  21128. flex-direction: column;
  21129. cursor: pointer;
  21130. }
  21131. .first {
  21132. display: flex;
  21133. align-items: center;
  21134. margin: 15px 0 20px 0;
  21135. font-size: 20px;
  21136. }
  21137. .first > div:nth-child(2) {
  21138. font-size: 16px !important;
  21139. padding-left: 10px;
  21140. line-height: 26px;
  21141. box-sizing: border-box;
  21142. }
  21143. .blue_box_one {
  21144. text-align: center;
  21145. color: #fff;
  21146. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21147. border-radius: 7px;
  21148. margin: 10px;
  21149. cursor: pointer;
  21150. width: 95%;
  21151. height: 45px;
  21152. display: flex;
  21153. flex-direction: row;
  21154. justify-content: flex-start;
  21155. align-items: center;
  21156. }
  21157. .blue_box_one > div:nth-child(1) {
  21158. line-height: 30px;
  21159. margin: 0 5px 0 10px;
  21160. width: 30%;
  21161. min-width: 70px;
  21162. border-radius: 4px;
  21163. }
  21164. .blue_box_one > div:nth-child(2) {
  21165. white-space: nowrap;
  21166. text-overflow: ellipsis;
  21167. overflow: hidden;
  21168. word-break: break-all;
  21169. width: 70%;
  21170. text-align: left;
  21171. margin-right: 10px;
  21172. max-width: calc(100% - 85px);
  21173. }
  21174. .blue_box_one > div:nth-child(2):hover {
  21175. overflow: hidden;
  21176. text-overflow: ellipsis;
  21177. white-space: nowrap;
  21178. cursor: pointer;
  21179. }
  21180. .upFile {
  21181. margin: 0 auto;
  21182. width: 120px;
  21183. background: #3681fc;
  21184. color: #fff;
  21185. height: 30px;
  21186. text-align: center;
  21187. line-height: 30px;
  21188. border-radius: 5px;
  21189. font-size: 14px;
  21190. cursor: pointer;
  21191. }
  21192. .courseTitle {
  21193. width: 85%;
  21194. margin: 10px auto 26px auto;
  21195. display: flex;
  21196. flex-direction: row;
  21197. align-items: center;
  21198. justify-content: space-between;
  21199. text-align: center;
  21200. }
  21201. .courseTitle .ctitle {
  21202. font-size: 20px;
  21203. font-weight: bold;
  21204. color: #0e1e33;
  21205. white-space: nowrap;
  21206. overflow: hidden;
  21207. text-overflow: ellipsis;
  21208. }
  21209. .inviteBox {
  21210. font-size: 14px;
  21211. /* margin-top: 5px; */
  21212. color: #00000099;
  21213. text-align: center;
  21214. }
  21215. .courseTitle >>> .el-tooltip {
  21216. width: 100%;
  21217. white-space: nowrap;
  21218. overflow: hidden;
  21219. text-overflow: ellipsis;
  21220. word-break: break-word;
  21221. }
  21222. .ml {
  21223. margin-left: 20px;
  21224. color: #5b7dba;
  21225. border-left: 3px solid #5b7dba;
  21226. padding-left: 5px;
  21227. font-weight: bold;
  21228. }
  21229. .return {
  21230. width: 2rem;
  21231. height: 2rem;
  21232. cursor: pointer;
  21233. }
  21234. .return > img {
  21235. width: 100%;
  21236. height: 100%;
  21237. }
  21238. .returnBtn {
  21239. width: 86px;
  21240. height: 36px;
  21241. background: #3681fc;
  21242. border-radius: 4px;
  21243. color: #fff;
  21244. text-align: center;
  21245. line-height: 36px;
  21246. margin-right: 20px;
  21247. cursor: pointer;
  21248. font-size: 14px;
  21249. font-weight: 400;
  21250. display: flex;
  21251. flex-direction: row;
  21252. flex-wrap: nowrap;
  21253. align-items: center;
  21254. justify-content: center;
  21255. }
  21256. .reBtnIcon,
  21257. .commentIcon,
  21258. .vedioIcon,
  21259. .vedioIcon1 {
  21260. /* width: 36px; */
  21261. height: 36px;
  21262. border-radius: 4px;
  21263. position: relative;
  21264. /* background: #e0eafb; */
  21265. background: #0061ff;
  21266. cursor: pointer;
  21267. margin-right: 12px;
  21268. display: flex;
  21269. align-items: center;
  21270. padding: 0 10px;
  21271. box-sizing: border-box;
  21272. font-size: 14px;
  21273. color: #fff;
  21274. }
  21275. .reBtnIcon::before,
  21276. .commentIcon::before,
  21277. .vedioIcon::before,
  21278. .vedioIcon1::before {
  21279. content: "";
  21280. display: block;
  21281. background-size: 100% 100%;
  21282. background-repeat: no-repeat;
  21283. width: 20px;
  21284. height: 20px;
  21285. margin-right: 5px;
  21286. /* position: absolute; */
  21287. /* top: 8px;
  21288. left: 8px; */
  21289. }
  21290. .vedioIcon1 {
  21291. background: #f63564;
  21292. }
  21293. .reBtnIcon::before {
  21294. background-image: url("../../assets/icon/newIcons/refresh.png");
  21295. }
  21296. .commentIcon::before {
  21297. background-image: url("../../assets/icon/newIcons/comment.png");
  21298. }
  21299. .vedioIcon::before {
  21300. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21301. }
  21302. .vedioIcon1::before {
  21303. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21304. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21305. }
  21306. .tool {
  21307. display: flex;
  21308. flex-direction: column;
  21309. flex-wrap: nowrap;
  21310. width: 13%;
  21311. margin: 0 30px;
  21312. align-items: center;
  21313. position: relative;
  21314. padding: 10px 25px;
  21315. cursor: pointer;
  21316. }
  21317. .whiteBIcon {
  21318. width: 150px;
  21319. }
  21320. .whiteBIcon > img {
  21321. width: 100%;
  21322. height: 100%;
  21323. }
  21324. .mask {
  21325. background-color: rgba(0, 0, 0, 0);
  21326. position: fixed;
  21327. top: 0;
  21328. left: 0;
  21329. width: 100%;
  21330. height: 100%;
  21331. z-index: 20000;
  21332. display: flex;
  21333. align-items: center;
  21334. justify-content: center;
  21335. }
  21336. .progressBox {
  21337. width: 500px;
  21338. height: 180px;
  21339. background: #fff;
  21340. border-radius: 10px;
  21341. box-shadow: 0 0 6px 1px #bfbfbf;
  21342. display: flex;
  21343. align-items: center;
  21344. justify-content: center;
  21345. flex-direction: column;
  21346. position: relative;
  21347. color: #6c6c6c;
  21348. }
  21349. .progressBox >>> .el-progress-bar__outer {
  21350. background-color: #d1dfff !important;
  21351. }
  21352. .progressBox .lbox {
  21353. height: 50px;
  21354. font-size: 19px;
  21355. display: flex;
  21356. align-items: center;
  21357. color: #747474;
  21358. }
  21359. .progressBox .lbox img {
  21360. width: 40px;
  21361. margin-right: 20px;
  21362. }
  21363. .closeCss {
  21364. position: absolute;
  21365. top: 8px;
  21366. right: 8px;
  21367. cursor: pointer;
  21368. width: 20px;
  21369. height: 20px;
  21370. }
  21371. .closeCss > img {
  21372. width: 100%;
  21373. height: 100%;
  21374. }
  21375. .uploadVedio {
  21376. display: flex;
  21377. flex-direction: column;
  21378. flex-wrap: nowrap;
  21379. justify-content: center;
  21380. align-items: center;
  21381. margin: 0 15px 10px 0;
  21382. }
  21383. .uploadVedio > img {
  21384. width: 30px;
  21385. height: 30px;
  21386. }
  21387. .uploadVedio > span {
  21388. white-space: nowrap;
  21389. overflow: hidden;
  21390. text-overflow: ellipsis;
  21391. width: 75px;
  21392. margin-top: 7px;
  21393. }
  21394. .picName {
  21395. white-space: nowrap;
  21396. overflow: hidden;
  21397. text-overflow: ellipsis;
  21398. width: 75px;
  21399. margin-top: 7px;
  21400. }
  21401. .new_top {
  21402. display: flex;
  21403. background: #fff;
  21404. flex-direction: row;
  21405. justify-content: flex-start;
  21406. align-items: center;
  21407. height: 60px;
  21408. position: fixed;
  21409. top: 20px;
  21410. left: 22%;
  21411. width: 77%;
  21412. z-index: 999;
  21413. border-radius: 12px 12px 0 0;
  21414. border-bottom: 1px solid #cad1dc;
  21415. padding: 10px 0;
  21416. }
  21417. .new_topFixed {
  21418. width: 100%;
  21419. height: 40px;
  21420. position: fixed;
  21421. top: 0px;
  21422. display: block;
  21423. background: #f2f2f2;
  21424. z-index: 998;
  21425. }
  21426. .before {
  21427. position: absolute;
  21428. background: #c3dad4;
  21429. width: 6px;
  21430. height: 100%;
  21431. }
  21432. .courseIndex {
  21433. display: flex;
  21434. flex-direction: row;
  21435. align-items: center;
  21436. width: calc(100% - 745px);
  21437. }
  21438. .courseIndex > div:nth-child(1) {
  21439. margin: 0 0 0 10px;
  21440. font-size: 20px;
  21441. min-width: 100px;
  21442. font-weight: bold;
  21443. border-left: 4px solid #3363b9;
  21444. height: 32px;
  21445. text-align: center;
  21446. line-height: 35px;
  21447. }
  21448. .courseIndex > div:nth-child(2) {
  21449. font-size: 20px;
  21450. /* width: 300px; */
  21451. max-width: calc(100% - 105px);
  21452. white-space: nowrap;
  21453. overflow: hidden;
  21454. text-overflow: ellipsis;
  21455. }
  21456. .courseIndex > div:nth-child(3) {
  21457. border-bottom: 1px solid #d7d7d7;
  21458. padding-bottom: 5px;
  21459. background: #3681fc;
  21460. width: 55px;
  21461. min-width: 55px;
  21462. border-radius: 5px;
  21463. color: #fff;
  21464. text-align: center;
  21465. height: 20px;
  21466. line-height: 26px;
  21467. font-size: 14px;
  21468. margin: 0 0 0 10px;
  21469. }
  21470. .course_text {
  21471. padding: 20px 0 0 15px;
  21472. text-indent: 30px;
  21473. width: 80%;
  21474. min-height: 20px;
  21475. }
  21476. .vedioList {
  21477. background: #f2f2f2;
  21478. border: 1px solid #ececec;
  21479. /* width: 38.8%; */
  21480. /* width: 300px; */
  21481. width: 100%;
  21482. height: 445px;
  21483. border-radius: 10px;
  21484. overflow: hidden;
  21485. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21486. }
  21487. .vedioNav {
  21488. margin: 10px 0 0 15px;
  21489. border-bottom: 1px solid #d7d7d7;
  21490. padding-bottom: 5px;
  21491. background: #3681fc;
  21492. width: 55px;
  21493. min-width: 55px;
  21494. border-radius: 5px;
  21495. color: #fff;
  21496. text-align: center;
  21497. height: 20px;
  21498. line-height: 26px;
  21499. font-size: 14px;
  21500. }
  21501. .queTop {
  21502. display: flex;
  21503. padding: 20px 0 20px 30px;
  21504. width: 100%;
  21505. flex-direction: row;
  21506. justify-content: flex-start;
  21507. align-items: center;
  21508. box-sizing: border-box;
  21509. }
  21510. .queTopTitle {
  21511. display: flex;
  21512. flex-direction: row;
  21513. flex-wrap: nowrap;
  21514. align-items: center;
  21515. font-weight: bold;
  21516. font-size: 20px;
  21517. color: rgb(14, 30, 51);
  21518. }
  21519. .queTopTitle::before {
  21520. content: "";
  21521. width: 2px;
  21522. height: 22px;
  21523. background: #3681fc;
  21524. border-radius: 3px;
  21525. display: block;
  21526. margin: 2px 6px 0 0;
  21527. }
  21528. .queTopRight {
  21529. display: flex;
  21530. flex-direction: row;
  21531. flex-wrap: nowrap;
  21532. align-items: center;
  21533. }
  21534. .queTopClose {
  21535. margin-right: 20px;
  21536. cursor: pointer;
  21537. position: relative;
  21538. display: flex;
  21539. }
  21540. .closeImg,
  21541. .openImg {
  21542. width: 25px;
  21543. height: 25px;
  21544. position: absolute;
  21545. left: -20px;
  21546. top: -1px;
  21547. }
  21548. .closeImg > img,
  21549. .openImg > img {
  21550. width: 100%;
  21551. height: 100%;
  21552. }
  21553. .question {
  21554. width: 40px;
  21555. margin-right: 10px;
  21556. margin-top: 7px;
  21557. }
  21558. .queTitle {
  21559. margin-left: 5px;
  21560. font-size: 25px;
  21561. display: flex;
  21562. align-items: center;
  21563. }
  21564. .addEditor {
  21565. width: 100px;
  21566. height: 30px;
  21567. background: #42cda6;
  21568. color: #fff;
  21569. border-radius: 5px;
  21570. text-align: center;
  21571. line-height: 30px;
  21572. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21573. cursor: pointer;
  21574. }
  21575. /* .vedioName {
  21576. cursor: pointer;
  21577. margin: 0px 0px 10px 5px;
  21578. white-space: nowrap;
  21579. overflow: hidden;
  21580. text-overflow: ellipsis;
  21581. width: 100%;
  21582. } */
  21583. .vedioTime {
  21584. width: 35px;
  21585. position: absolute;
  21586. color: #fff;
  21587. bottom: 0px;
  21588. right: 0px;
  21589. text-align: center;
  21590. background: #46411f;
  21591. height: 20px;
  21592. font-size: 14px;
  21593. line-height: 20px;
  21594. }
  21595. .homework {
  21596. width: 200px;
  21597. display: flex;
  21598. flex-direction: column;
  21599. flex-wrap: nowrap;
  21600. align-items: center;
  21601. cursor: pointer;
  21602. }
  21603. .homebox {
  21604. display: flex;
  21605. flex-wrap: wrap;
  21606. flex-direction: row;
  21607. justify-content: flex-start;
  21608. align-items: center;
  21609. padding: 15px 0;
  21610. }
  21611. .isChooseActive {
  21612. color: #3681fc !important;
  21613. font-weight: bold !important;
  21614. }
  21615. .chooseWho {
  21616. display: flex;
  21617. width: 100%;
  21618. flex-direction: row;
  21619. flex-wrap: nowrap;
  21620. justify-content: flex-start;
  21621. padding-bottom: 10px;
  21622. }
  21623. .chooseWho > div {
  21624. cursor: pointer;
  21625. padding-bottom: 10px;
  21626. margin: 0 30px 0 0;
  21627. font-weight: 400;
  21628. color: #0e1e33;
  21629. }
  21630. .addPoint > div > img {
  21631. cursor: pointer;
  21632. width: 85px;
  21633. border-radius: 15px;
  21634. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21635. }
  21636. .addPoint > div {
  21637. display: flex;
  21638. flex-direction: column;
  21639. flex-wrap: nowrap;
  21640. align-items: center;
  21641. }
  21642. .isBorder > div {
  21643. margin: 0 0 10px 0;
  21644. align-items: flex-start !important;
  21645. }
  21646. .noiframeBox {
  21647. display: flex;
  21648. flex-wrap: wrap;
  21649. }
  21650. .iframeBox iframe {
  21651. width: 100%;
  21652. height: 800px;
  21653. border: none;
  21654. margin-bottom: 20px;
  21655. border: 1px solid #ccc;
  21656. }
  21657. .upload_toolBtn {
  21658. background: #3681fc;
  21659. color: #fff;
  21660. width: 110px;
  21661. text-align: center;
  21662. height: 35px;
  21663. line-height: 35px;
  21664. font-size: 14px;
  21665. border-radius: 5px;
  21666. cursor: pointer;
  21667. position: absolute;
  21668. right: 10px;
  21669. bottom: 0;
  21670. }
  21671. .binfo_input,
  21672. .pj {
  21673. font: inherit;
  21674. color: currentColor;
  21675. width: 100%;
  21676. margin: 0;
  21677. padding: 15px 14px;
  21678. display: block;
  21679. min-width: 0;
  21680. outline: none;
  21681. box-sizing: content-box;
  21682. background: none;
  21683. -webkit-tap-highlight-color: transparent;
  21684. border: 1px solid rgba(0, 0, 0, 0.23);
  21685. border-radius: 4px;
  21686. box-sizing: border-box;
  21687. resize: none;
  21688. }
  21689. .binfo_input:focus-visible {
  21690. border: 1px solid rgba(61, 103, 188);
  21691. }
  21692. .dialog_diy >>> .el-dialog__header,
  21693. .dialog_diy1 >>> .el-dialog__header {
  21694. background: #454545 !important;
  21695. padding: 15px 20px;
  21696. }
  21697. .dialog_diy >>> .el-dialog__title,
  21698. .dialog_diy1 >>> .el-dialog__title {
  21699. color: #fff;
  21700. }
  21701. .dialog_diy >>> .el-dialog__headerbtn,
  21702. .dialog_diy1 >>> .el-dialog__headerbtn {
  21703. top: 19px;
  21704. }
  21705. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21706. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21707. color: #fff;
  21708. }
  21709. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21710. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21711. color: #fff;
  21712. }
  21713. .dialog_diy1 >>> .el-dialog__body {
  21714. padding: 0;
  21715. }
  21716. .dialog_diy >>> .el-dialog__body,
  21717. .dialog_diy >>> .el-dialog__footer,
  21718. .dialog_diy1 >>> .el-dialog__footer {
  21719. background: #fafafa;
  21720. }
  21721. .a_addBox {
  21722. padding: 0 0 0 15px;
  21723. }
  21724. .a_add_box {
  21725. padding: 10px;
  21726. background: #fff;
  21727. margin-bottom: 10px;
  21728. border-radius: 5px;
  21729. box-shadow: 0 0 5px 0 #d5d5d5;
  21730. }
  21731. .a_add_head {
  21732. display: flex;
  21733. align-items: flex-start;
  21734. /* justify-content: space-between; */
  21735. flex-direction: column;
  21736. /* flex-direction: row; */
  21737. margin: 10px 0 20px 0;
  21738. font-size: 18px;
  21739. width: 100%;
  21740. }
  21741. .askIndex {
  21742. background: #3681fc;
  21743. border-radius: 50%;
  21744. color: #fff;
  21745. width: 25px;
  21746. height: 25px;
  21747. min-width: 25px;
  21748. min-height: 25px;
  21749. text-align: center;
  21750. line-height: 25px;
  21751. margin-right: 5px;
  21752. }
  21753. .a_add_head .a_add_head_input {
  21754. width: 300px;
  21755. }
  21756. .a_add_head .a_add_head_div {
  21757. display: flex;
  21758. align-items: center;
  21759. justify-content: space-between;
  21760. }
  21761. .a_add_body {
  21762. display: flex;
  21763. align-items: center;
  21764. }
  21765. .a_add_input {
  21766. display: flex;
  21767. align-items: center;
  21768. flex-wrap: wrap;
  21769. width: 100%;
  21770. }
  21771. .a_add_input >>> .el-radio-group,
  21772. .a_add_input >>> .el-checkbox-group {
  21773. width: 100%;
  21774. }
  21775. .a_add_input >>> .el-radio,
  21776. .a_add_input >>> .el-checkbox {
  21777. display: flex;
  21778. flex-direction: row;
  21779. flex-wrap: nowrap;
  21780. align-items: center;
  21781. padding: 15px 0;
  21782. }
  21783. .a_add_input >>> .el-radio:not(:last-child),
  21784. .a_add_input >>> .el-checkbox:not(:last-child) {
  21785. width: 100%;
  21786. border-bottom: 1px solid #efefef;
  21787. }
  21788. .redioStyle >>> .el-radio__label {
  21789. font-size: 18px;
  21790. }
  21791. .redioStyle >>> .el-radio__label > span,
  21792. .redioStyle >>> .el-checkbox__label > span {
  21793. word-break: break-all;
  21794. white-space: normal;
  21795. }
  21796. .redioStyle >>> .el-checkbox__label {
  21797. font-size: 18px;
  21798. }
  21799. .toolHeng2 {
  21800. width: 100%;
  21801. padding-left: 15px;
  21802. box-sizing: border-box;
  21803. }
  21804. .workNav {
  21805. font-size: 20px;
  21806. font-weight: bold;
  21807. color: #0e1e33;
  21808. display: flex;
  21809. flex-direction: row;
  21810. flex-wrap: nowrap;
  21811. align-items: center;
  21812. padding: 15px 0 15px 0;
  21813. }
  21814. .workNav::before {
  21815. content: "";
  21816. width: 2px;
  21817. height: 22px;
  21818. background: #3681fc;
  21819. border-radius: 3px;
  21820. display: block;
  21821. margin: 2px 6px 0 0;
  21822. }
  21823. .toolHeng {
  21824. display: flex;
  21825. flex-direction: row;
  21826. flex-wrap: wrap;
  21827. justify-content: flex-start;
  21828. align-items: center;
  21829. width: 100%;
  21830. }
  21831. .toolHeng > div {
  21832. padding-left: 20px;
  21833. }
  21834. .isWidth {
  21835. width: 20%;
  21836. }
  21837. .textTitle {
  21838. display: flex;
  21839. flex-direction: row;
  21840. flex-wrap: nowrap;
  21841. align-items: center;
  21842. width: 95%;
  21843. }
  21844. .textTitle >>> .el-form-item__label {
  21845. font-size: 22px;
  21846. color: #918f8f;
  21847. width: 100px;
  21848. }
  21849. .textTitle >>> .el-form-item__content {
  21850. width: calc(100% - 100px);
  21851. }
  21852. .textCss >>> .el-dialog {
  21853. width: 800px !important;
  21854. height: 400px;
  21855. background: #fafafa;
  21856. }
  21857. .textCss >>> .el-dialog__body {
  21858. margin: 55px 8% 0 8%;
  21859. padding: 0 !important;
  21860. }
  21861. .textCss >>> .el-dialog__footer {
  21862. padding-top: 38px;
  21863. }
  21864. .toolsCss >>> .el-dialog__body {
  21865. padding: 20px;
  21866. }
  21867. .lineCss >>> .el-dialog__body {
  21868. display: flex;
  21869. flex-direction: row;
  21870. align-items: center;
  21871. justify-content: center;
  21872. }
  21873. .newNav {
  21874. display: flex;
  21875. flex-direction: row;
  21876. align-items: baseline;
  21877. justify-content: flex-start;
  21878. }
  21879. .navListItem {
  21880. width: calc(100% - 20px);
  21881. height: 50px;
  21882. margin: 0px auto 10px;
  21883. display: flex;
  21884. flex-direction: row;
  21885. flex-wrap: nowrap;
  21886. align-items: center;
  21887. justify-content: space-between;
  21888. background: #f0f4fa;
  21889. border-radius: 6px 6px 6px 6px;
  21890. }
  21891. .navText {
  21892. cursor: pointer;
  21893. white-space: nowrap;
  21894. overflow: hidden;
  21895. text-overflow: ellipsis;
  21896. width: 220px;
  21897. padding: 0 10px;
  21898. font-weight: 400;
  21899. color: #0e1e33;
  21900. }
  21901. .downIcon {
  21902. width: 20px;
  21903. min-width: 20px;
  21904. height: 20px;
  21905. margin-right: 15px;
  21906. cursor: pointer;
  21907. }
  21908. .downIcon > img {
  21909. width: 100%;
  21910. height: 100%;
  21911. }
  21912. .noVedio {
  21913. display: flex;
  21914. flex-direction: row;
  21915. justify-content: center;
  21916. align-content: center;
  21917. }
  21918. .noNavText {
  21919. cursor: pointer;
  21920. margin: 0px 0px 10px 5px;
  21921. width: 112px;
  21922. }
  21923. .listNoVedio {
  21924. margin: 0 0 0 30px;
  21925. width: 97%;
  21926. }
  21927. .video-player >>> .video-js {
  21928. height: 100%;
  21929. }
  21930. .hangVedioList {
  21931. width: 90% !important;
  21932. height: 150px !important;
  21933. margin: 20px 0 0 30px;
  21934. }
  21935. .hangVedio {
  21936. width: 100%;
  21937. height: 170px !important;
  21938. align-items: flex-start !important;
  21939. }
  21940. .hangHand {
  21941. height: 150px !important;
  21942. }
  21943. .twoChild {
  21944. width: 95%;
  21945. margin: 10px;
  21946. border-radius: 5px;
  21947. background: #f2f2f2;
  21948. display: flex;
  21949. flex-direction: column;
  21950. flex-wrap: nowrap;
  21951. justify-content: flex-start;
  21952. align-items: flex-start;
  21953. transition: all 0.5s;
  21954. overflow: hidden;
  21955. height: 0;
  21956. background: #e7f3ff;
  21957. }
  21958. .twoChild > div:nth-child(1) {
  21959. margin-top: 5px;
  21960. }
  21961. .navChild {
  21962. width: 100%;
  21963. cursor: pointer;
  21964. margin-bottom: 10px;
  21965. position: relative;
  21966. }
  21967. .navChild img {
  21968. position: absolute;
  21969. right: 11px;
  21970. width: 15px;
  21971. top: 50%;
  21972. transform: translateY(-50%);
  21973. }
  21974. .navActive,
  21975. .toolActive {
  21976. height: auto !important;
  21977. overflow: auto !important;
  21978. /* padding-bottom: 16px; */
  21979. }
  21980. .toolActive {
  21981. padding: 0;
  21982. }
  21983. .navTask {
  21984. display: flex;
  21985. flex-direction: row;
  21986. flex-wrap: nowrap;
  21987. align-items: center;
  21988. align-content: flex-start;
  21989. height: 40px;
  21990. justify-content: flex-start;
  21991. padding: 0 10px;
  21992. width: 100%;
  21993. box-sizing: border-box;
  21994. }
  21995. .navTaskname {
  21996. white-space: nowrap;
  21997. text-overflow: ellipsis;
  21998. overflow: hidden;
  21999. word-break: break-all;
  22000. padding-left: 5px;
  22001. }
  22002. .openTaskActive {
  22003. /* background-color: #e0eafb !important;
  22004. color: #0061ff; */
  22005. color:#fff;
  22006. background: rgb(55, 129, 252) !important;
  22007. }
  22008. .iframeName {
  22009. margin: 5px 0;
  22010. border-left: 4px solid #41c4a4;
  22011. padding-left: 4px;
  22012. }
  22013. .toolTitle {
  22014. margin: 0px 0px 20px;
  22015. font-size: 20px;
  22016. font-weight: 500;
  22017. border-left: 4px solid #41c4a4;
  22018. padding-left: 4px;
  22019. }
  22020. .cru_selectBox {
  22021. overflow: auto;
  22022. width: 95%;
  22023. margin: 17px auto 0;
  22024. height: calc(100% - 40px - 21px - 20px - 17px);
  22025. background: #fff;
  22026. border-radius: 8px;
  22027. }
  22028. .cru_selectBox::-webkit-scrollbar,
  22029. .study_top::-webkit-scrollbar,
  22030. .textContent::-webkit-scrollbar {
  22031. /*滚动条整体样式*/
  22032. width: 6px;
  22033. /*高宽分别对应横竖滚动条的尺寸*/
  22034. height: 6px;
  22035. }
  22036. /*定义滚动条轨道 内阴影+圆角*/
  22037. .cru_selectBox::-webkit-scrollbar-track,
  22038. .study_top::-webkit-scrollbar-track,
  22039. .textContent::-webkit-scrollbar {
  22040. border-radius: 10px;
  22041. background-color: #b8bdc9;
  22042. }
  22043. /*定义滑块 内阴影+圆角*/
  22044. .cru_selectBox::-webkit-scrollbar-thumb,
  22045. .study_top::-webkit-scrollbar-thumb,
  22046. .textContent::-webkit-scrollbar-thumb {
  22047. border-radius: 10px;
  22048. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22049. background-color: #2c5ab3;
  22050. }
  22051. .vedioBox {
  22052. border-radius: 0 0 20px 20px;
  22053. background: #fff;
  22054. overflow: auto;
  22055. }
  22056. .taskBox {
  22057. width: 98%;
  22058. background: #f0f4fa;
  22059. margin: 10px auto;
  22060. padding: 0 10px;
  22061. border-radius: 4px;
  22062. box-sizing: border-box;
  22063. }
  22064. .vedioTaskBox {
  22065. width: 100%;
  22066. display: flex;
  22067. flex-direction: row;
  22068. flex-wrap: nowrap;
  22069. align-items: flex-start;
  22070. position: relative;
  22071. }
  22072. .toolBox {
  22073. margin: 15px 0 0 25px;
  22074. display: flex;
  22075. position: relative;
  22076. padding: 18px 20px;
  22077. border-top-left-radius: 5px;
  22078. border-top-right-radius: 5px;
  22079. width: 90%;
  22080. }
  22081. .btnAll {
  22082. position: absolute;
  22083. right: 0;
  22084. display: flex;
  22085. flex-direction: row;
  22086. flex-wrap: nowrap;
  22087. align-items: center;
  22088. }
  22089. .btnLeft,
  22090. .btnRight {
  22091. display: flex;
  22092. flex-direction: row;
  22093. flex-wrap: nowrap;
  22094. align-items: center;
  22095. padding: 5px 0;
  22096. }
  22097. .btnLeft {
  22098. border-right: 1px solid #cad1dc;
  22099. }
  22100. .btnLeft > .custom-tooltip {
  22101. background: #3681fc;
  22102. color: #fff;
  22103. }
  22104. .last:hover {
  22105. background: #3383fa !important;
  22106. color: #fff;
  22107. border: 1px solid #3383fa !important;
  22108. }
  22109. .last,
  22110. .returnBtn1 {
  22111. width: 90px;
  22112. height: 36px;
  22113. background: #ffffff;
  22114. border-radius: 4px;
  22115. border: 1px solid #0061ff;
  22116. color: #0061ff;
  22117. cursor: pointer;
  22118. display: flex;
  22119. flex-direction: row;
  22120. flex-wrap: nowrap;
  22121. align-items: center;
  22122. justify-content: center;
  22123. margin-left: 12px;
  22124. }
  22125. .returnBtn1 {
  22126. background: #f0f4fa;
  22127. border-radius: 4px;
  22128. border: 1px solid #cad1dc;
  22129. margin: 0 12px;
  22130. }
  22131. .lastImg {
  22132. min-width: 15px;
  22133. width: 15px;
  22134. height: 15px;
  22135. display: flex;
  22136. }
  22137. .lastText {
  22138. padding: 0 5px 0 5px;
  22139. box-sizing: border-box;
  22140. font-size: 14px;
  22141. }
  22142. .lastImg > img {
  22143. width: 100%;
  22144. height: 100%;
  22145. }
  22146. /* .vedioTimeBox {
  22147. display: flex;
  22148. flex-direction: row;
  22149. align-items: center;
  22150. flex-wrap: nowrap;
  22151. position: relative;
  22152. } */
  22153. .navBox {
  22154. background: #fff;
  22155. height: calc(100% - 40px);
  22156. overflow-y: auto;
  22157. overflow-x: hidden;
  22158. }
  22159. .worksBox {
  22160. margin: 0 0 10px 25px;
  22161. border-bottom: 1px solid #eeeeee;
  22162. padding: 18px 20px;
  22163. border-radius: 4px;
  22164. width: 90%;
  22165. }
  22166. .worksBTitle {
  22167. font-size: 20px;
  22168. padding-bottom: 15px;
  22169. border-bottom: 1px solid #eeeeee;
  22170. display: flex;
  22171. align-items: center;
  22172. }
  22173. .greenBox {
  22174. width: 5px;
  22175. height: 30px;
  22176. background: #63b6fa;
  22177. margin-right: 5px;
  22178. }
  22179. .worksDetailBox {
  22180. display: flex;
  22181. width: 100%;
  22182. flex-direction: row;
  22183. flex-wrap: wrap;
  22184. align-items: flex-end;
  22185. justify-content: flex-start;
  22186. padding: 15px 5px;
  22187. box-sizing: border-box;
  22188. }
  22189. .works {
  22190. display: flex;
  22191. flex-direction: column;
  22192. flex-wrap: nowrap;
  22193. align-items: flex-start;
  22194. justify-content: flex-start;
  22195. align-content: center;
  22196. max-width: 240px;
  22197. width: calc(100% / 3 - 10px);
  22198. height: auto;
  22199. margin-right: 10px;
  22200. margin-bottom: 10px;
  22201. overflow: hidden;
  22202. height: 140px;
  22203. box-shadow: 0 0 6px 1px #dfdada;
  22204. border-radius: 15px;
  22205. }
  22206. .workImg {
  22207. width: 100%;
  22208. /* height: calc(100% - 40px); */
  22209. height: 105px;
  22210. position: relative;
  22211. }
  22212. .workImg > img {
  22213. width: 100%;
  22214. height: 100%;
  22215. object-fit: contain;
  22216. cursor: pointer;
  22217. }
  22218. .worksName {
  22219. height: 40px;
  22220. line-height: 40px;
  22221. display: flex;
  22222. width: 100%;
  22223. flex-direction: row;
  22224. flex-wrap: nowrap;
  22225. justify-content: space-between;
  22226. align-items: center;
  22227. margin: 0 0 0 10px;
  22228. }
  22229. .worksName > div:nth-child(1) {
  22230. width: 110px;
  22231. white-space: nowrap;
  22232. overflow: hidden;
  22233. text-overflow: ellipsis;
  22234. }
  22235. .worksName > div:nth-child(2) {
  22236. color: #b7b4b5;
  22237. }
  22238. .noWorksS {
  22239. padding: 15px 0;
  22240. display: flex;
  22241. flex-direction: row;
  22242. flex-wrap: wrap;
  22243. align-items: center;
  22244. justify-content: flex-start;
  22245. }
  22246. .noWorksName,
  22247. .isWorksName,
  22248. .isWorksName2 {
  22249. background: #ddebf8;
  22250. color: #000;
  22251. width: 90px;
  22252. height: 25px;
  22253. text-align: center;
  22254. line-height: 25px;
  22255. border-radius: 4px;
  22256. margin: 10px 15px 10px 0;
  22257. white-space: nowrap;
  22258. overflow: hidden;
  22259. padding: 5px;
  22260. text-overflow: ellipsis;
  22261. cursor: pointer;
  22262. border: 1px solid #ddebf8;
  22263. }
  22264. .noWorksName {
  22265. background: #fff;
  22266. color: #0061ff;
  22267. border: 1px solid #0061ff;
  22268. }
  22269. .noWorksName > span{
  22270. max-width: 100%;
  22271. display: block;
  22272. overflow: hidden;
  22273. text-overflow: ellipsis;
  22274. white-space: nowrap;
  22275. }
  22276. .isWorksName2 {
  22277. width: 100px;
  22278. height: 40px;
  22279. line-height: 40px;
  22280. position: relative;
  22281. background: #dae6f9;
  22282. }
  22283. .isWorksName {
  22284. background: #e7ebf1 !important;
  22285. width: 100px;
  22286. height: 40px;
  22287. line-height: 40px;
  22288. position: relative;
  22289. color: #acb4bf;
  22290. border: 1px solid #cad1dc !important;
  22291. }
  22292. .isSelectName,
  22293. .noWorksName:hover {
  22294. background: #3383fa !important;
  22295. color: #fff !important;
  22296. border: 1px solid #3383fa !important;
  22297. }
  22298. .title {
  22299. background: #1e5cc9;
  22300. /* width: 98%; */
  22301. height: 45px;
  22302. color: #fff;
  22303. line-height: 45px;
  22304. padding-left: 20px;
  22305. box-sizing: border-box;
  22306. }
  22307. .textBox {
  22308. font-size: 20px;
  22309. width: 90%;
  22310. display: flex;
  22311. flex-direction: column;
  22312. align-items: center;
  22313. margin: 20px auto 0;
  22314. max-height: calc(100% - 75px);
  22315. overflow: auto;
  22316. }
  22317. .textContent {
  22318. font-size: 18px;
  22319. width: 95%;
  22320. max-width: 95%;
  22321. }
  22322. .answerBg {
  22323. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22324. background-size: 100% 100%;
  22325. width: 100%;
  22326. height: 100%;
  22327. color: #fff;
  22328. text-align: center;
  22329. display: flex;
  22330. flex-direction: column;
  22331. flex-wrap: nowrap;
  22332. align-items: center;
  22333. position: relative;
  22334. justify-content: center;
  22335. }
  22336. .answerBg > div:nth-child(1) {
  22337. /* font-size: 22px;
  22338. padding: 25px 0 10px; */
  22339. }
  22340. .answerContent {
  22341. width: 215px;
  22342. max-height: 60px;
  22343. word-break: break-all;
  22344. text-align: center;
  22345. /* white-space: nowrap; */
  22346. overflow: hidden;
  22347. text-overflow: ellipsis;
  22348. /* padding: 23px 0 0; */
  22349. -webkit-line-clamp: 3;
  22350. -webkit-box-orient: vertical;
  22351. display: -webkit-box;
  22352. font-size: 15px;
  22353. cursor: pointer;
  22354. }
  22355. .elist_input_box {
  22356. display: flex;
  22357. align-items: flex-start;
  22358. flex-wrap: nowrap;
  22359. padding: 10px 0 15px 30px;
  22360. flex-direction: column;
  22361. }
  22362. .elist_input {
  22363. /* width: 40%; */
  22364. width: 45%;
  22365. margin: 20px;
  22366. }
  22367. .elist_input .elist_input_box input {
  22368. font: inherit;
  22369. color: currentColor;
  22370. width: 200px;
  22371. padding: 8px 14px;
  22372. display: block;
  22373. min-width: 0;
  22374. outline: none;
  22375. border: 1px solid rgba(0, 0, 0, 0.23);
  22376. border-radius: 4px;
  22377. box-sizing: border-box;
  22378. background: #fff;
  22379. margin: 0 20px 0 0;
  22380. }
  22381. .elist_input .elist_input_box span {
  22382. height: 36px;
  22383. line-height: 36px;
  22384. color: rgb(82, 82, 82);
  22385. }
  22386. .elist_input .elist_input_box .remove {
  22387. height: 20px;
  22388. width: 20px;
  22389. background-size: 100% 100%;
  22390. background-position: unset;
  22391. margin-left: 5px;
  22392. }
  22393. .elist_input_box >>> .el-rate {
  22394. display: flex;
  22395. height: 36px;
  22396. align-items: center;
  22397. }
  22398. .elist_input_box .elist_inptu_text {
  22399. min-height: 50px;
  22400. /* width: 500px;
  22401. max-height: 150px; */
  22402. width: 100%;
  22403. line-height: 50px;
  22404. color: rgb(82, 82, 82);
  22405. overflow: auto;
  22406. text-indent: 5px;
  22407. background: #f7f6f9;
  22408. border-radius: 10px;
  22409. }
  22410. .elist_input_box .elist_inptu_text input {
  22411. width: 500px;
  22412. }
  22413. .elist_input_box >>> .el-rate__icon {
  22414. font-size: 24px;
  22415. }
  22416. .isClick {
  22417. background: #4d9def;
  22418. }
  22419. .bzBox {
  22420. display: flex;
  22421. flex-direction: row;
  22422. align-items: center;
  22423. }
  22424. .bzBox .yCss {
  22425. width: 7px;
  22426. height: 7px;
  22427. background: #fff;
  22428. margin: 0 16px 0 6px;
  22429. border-radius: 50%;
  22430. border: 5px solid #3681fc;
  22431. z-index: 99;
  22432. }
  22433. .bzBox > div:nth-child(2) {
  22434. font-size: 18px;
  22435. font-weight: bold;
  22436. color: #0e1e33;
  22437. }
  22438. .navTitile {
  22439. padding: 0 0px 0 15px;
  22440. font-size: 16px;
  22441. font-weight: bold;
  22442. color: #0e1e33;
  22443. height: 40px;
  22444. line-height: 40px;
  22445. }
  22446. .isTypeOne {
  22447. width: 240px;
  22448. height: 170px;
  22449. /* border: 1px solid #f8f8f8; */
  22450. border-radius: 10px;
  22451. box-shadow: 0 0 6px 1px #dfdada;
  22452. }
  22453. .e_add_top {
  22454. display: flex;
  22455. justify-content: space-between;
  22456. padding: 10px 20px;
  22457. border-radius: 3px;
  22458. background: #fff;
  22459. }
  22460. .e_add_title2 {
  22461. display: flex;
  22462. align-items: center;
  22463. }
  22464. .e_add_title2 span {
  22465. width: 40px;
  22466. }
  22467. .e_add_title {
  22468. display: flex;
  22469. align-items: center;
  22470. color: #b8b8b8;
  22471. font-size: 18px;
  22472. position: relative;
  22473. height: 40px;
  22474. }
  22475. .e_add_title span {
  22476. margin-right: 10px;
  22477. }
  22478. .e_add_title .el_input {
  22479. width: 300px;
  22480. }
  22481. .e_add_title >>> .el-input__inner {
  22482. width: 400px;
  22483. }
  22484. .e_add_btn {
  22485. }
  22486. .e_add_content {
  22487. display: flex;
  22488. width: 100%;
  22489. max-width: 650px;
  22490. height: 550px;
  22491. }
  22492. .e_add_list {
  22493. background: #fff;
  22494. height: 500px;
  22495. width: 210px;
  22496. position: relative;
  22497. margin: 15px 5px 0 0;
  22498. flex-shrink: 0;
  22499. display: flex;
  22500. flex-direction: column;
  22501. }
  22502. .e_add_list_title {
  22503. font-size: 20px;
  22504. width: 100%;
  22505. box-sizing: border-box;
  22506. padding: 15px 40px;
  22507. text-align: center;
  22508. border-bottom: 1px solid #eaeaea;
  22509. position: relative;
  22510. display: flex;
  22511. align-items: center;
  22512. justify-content: center;
  22513. height: 57px;
  22514. background: #f6f6f6;
  22515. }
  22516. .e_add_list_title span {
  22517. overflow: hidden;
  22518. white-space: nowrap;
  22519. text-overflow: ellipsis;
  22520. }
  22521. .e_add_list_title img {
  22522. position: absolute;
  22523. right: 15px;
  22524. width: 25px;
  22525. cursor: pointer;
  22526. top: 50%;
  22527. transform: translateY(-50%);
  22528. }
  22529. .e_add_list_body {
  22530. height: calc(100% - 187px);
  22531. overflow: auto;
  22532. }
  22533. .e_add_list_child {
  22534. width: 100%;
  22535. display: flex;
  22536. align-items: center;
  22537. justify-content: center;
  22538. position: relative;
  22539. box-sizing: border-box;
  22540. padding: 15px 40px;
  22541. text-align: center;
  22542. }
  22543. .e_add_list_child span {
  22544. overflow: hidden;
  22545. white-space: nowrap;
  22546. text-overflow: ellipsis;
  22547. cursor: pointer;
  22548. }
  22549. .e_add_list_child img {
  22550. position: absolute;
  22551. right: 10px;
  22552. width: 21px;
  22553. cursor: pointer;
  22554. top: 50%;
  22555. transform: translateY(-50%);
  22556. }
  22557. .e_add_list_child + .e_add_list_child {
  22558. border-top: 1px solid #eaeaea;
  22559. }
  22560. .e_add_list_child .active {
  22561. color: #409eff;
  22562. }
  22563. .e_add_list_btn {
  22564. position: absolute;
  22565. bottom: 0;
  22566. height: 50px;
  22567. background: rgb(120, 120, 254);
  22568. width: 100%;
  22569. color: #fff;
  22570. font-size: 16px;
  22571. text-align: center;
  22572. line-height: 50px;
  22573. cursor: pointer;
  22574. }
  22575. .e_add_list_detail {
  22576. position: absolute;
  22577. bottom: 0;
  22578. height: 130px;
  22579. background: rgb(120, 120, 254);
  22580. width: 100%;
  22581. color: #fff;
  22582. font-size: 16px;
  22583. display: flex;
  22584. align-items: center;
  22585. justify-content: center;
  22586. }
  22587. .e_add_list_detail textarea {
  22588. height: 90%;
  22589. width: 95%;
  22590. border: none;
  22591. resize: none;
  22592. outline: none;
  22593. padding: 5px;
  22594. box-sizing: border-box;
  22595. }
  22596. .e_add_list_pbox {
  22597. width: 100%;
  22598. max-width: 650px;
  22599. /* height: 600px; */
  22600. }
  22601. .e_add_list_pbox_title {
  22602. height: 50px;
  22603. background: #fff;
  22604. display: flex;
  22605. align-items: center;
  22606. width: 100%;
  22607. box-sizing: border-box;
  22608. padding: 0 20px;
  22609. }
  22610. .type_title {
  22611. font-size: 18px;
  22612. font-weight: 700;
  22613. }
  22614. .type_content {
  22615. font-size: 16px;
  22616. /* margin-left: 30px; */
  22617. }
  22618. .type_content span + span {
  22619. margin-left: 20px;
  22620. }
  22621. .type_content span {
  22622. cursor: pointer;
  22623. padding-bottom: 5px;
  22624. box-sizing: border-box;
  22625. }
  22626. .type_content .active {
  22627. color: #409eff;
  22628. border-bottom: 2px solid #409eff;
  22629. }
  22630. .e_add_list_pbox_content {
  22631. height: calc(100% - 50px);
  22632. display: flex;
  22633. align-items: center;
  22634. width: 100%;
  22635. background: #fff;
  22636. }
  22637. .evaCss {
  22638. display: flex;
  22639. flex-direction: row;
  22640. flex-wrap: nowrap;
  22641. align-items: flex-start;
  22642. padding: 0 0 20px;
  22643. }
  22644. .cru_line {
  22645. position: absolute;
  22646. bottom: 0px;
  22647. transition: all 0.5s;
  22648. left: 0px;
  22649. width: 125px;
  22650. margin-left: -25px;
  22651. }
  22652. .isNoMessage {
  22653. width: 20%;
  22654. margin: 25% auto 0;
  22655. }
  22656. .isNoMessage > img {
  22657. width: 100%;
  22658. height: 100%;
  22659. }
  22660. .fullStyle >>> .el-dialog__body {
  22661. height: 100% !important;
  22662. }
  22663. .fullStyle >>> .el-dialog,
  22664. .fullStyle {
  22665. width: 100% !important;
  22666. max-width: 100% !important;
  22667. height: 100% !important;
  22668. margin: 0 !important;
  22669. }
  22670. .full_diy >>> .el-dialog {
  22671. margin: 0 !important;
  22672. height: 100%;
  22673. padding: 4px;
  22674. }
  22675. .full_diy >>> .el-dialog__body {
  22676. height: calc(100% - 100px);
  22677. }
  22678. .full_diy2 >>> .el-dialog__body {
  22679. height: calc(100% - 50px);
  22680. padding: 0;
  22681. }
  22682. .switchCss {
  22683. /* width: 100%; */
  22684. display: flex;
  22685. flex-direction: row;
  22686. flex-wrap: nowrap;
  22687. align-items: center;
  22688. /* justify-content: center; */
  22689. }
  22690. .isClickNav {
  22691. /* color: #499eef; */
  22692. color: #000;
  22693. }
  22694. .commentImg {
  22695. width: 25px;
  22696. height: 25px;
  22697. cursor: pointer;
  22698. }
  22699. .commentImg > img {
  22700. width: 100%;
  22701. height: 100%;
  22702. }
  22703. .comment {
  22704. background: #f9f9f9;
  22705. border-radius: 0 0 4px 4px;
  22706. display: flex;
  22707. flex-direction: row;
  22708. flex-wrap: nowrap;
  22709. align-items: center;
  22710. justify-content: flex-end;
  22711. height: 35px;
  22712. }
  22713. .commentList {
  22714. display: flex;
  22715. flex-direction: row;
  22716. flex-wrap: nowrap;
  22717. align-items: center;
  22718. justify-content: center;
  22719. align-content: center;
  22720. /* margin-left: 15px; */
  22721. /* margin-left: 8px; */
  22722. }
  22723. .scoreImg {
  22724. width: 17px;
  22725. height: 17px;
  22726. }
  22727. .studentDetail {
  22728. display: flex;
  22729. flex-direction: row;
  22730. flex-wrap: nowrap;
  22731. /* align-items: center; */
  22732. align-items: flex-start;
  22733. }
  22734. .tx {
  22735. width: 50px;
  22736. }
  22737. .tx > img {
  22738. width: 100%;
  22739. height: 100%;
  22740. }
  22741. .nameAndTime {
  22742. display: flex;
  22743. flex-direction: column;
  22744. flex-wrap: nowrap;
  22745. align-items: flex-start;
  22746. margin-left: 10px;
  22747. }
  22748. .worksAnswer {
  22749. color: #4078dd;
  22750. margin: 10px 0;
  22751. font-size: 16px;
  22752. position: relative;
  22753. }
  22754. .worksAnswer > img {
  22755. width: 500px;
  22756. height: 300px;
  22757. object-fit: contain;
  22758. margin: 0 auto;
  22759. display: block;
  22760. }
  22761. .commentTop {
  22762. border-bottom: 1px solid #eaeaea;
  22763. padding-bottom: 10px;
  22764. }
  22765. .commentBox {
  22766. padding-top: 15px;
  22767. }
  22768. .pl {
  22769. font-size: 18px;
  22770. }
  22771. .plPerson {
  22772. width: 100%;
  22773. }
  22774. .plName {
  22775. display: flex;
  22776. flex-direction: row;
  22777. flex-wrap: nowrap;
  22778. align-items: baseline;
  22779. color: #78787a;
  22780. width: 100%;
  22781. }
  22782. .deleteComment {
  22783. cursor: pointer;
  22784. margin-left: auto;
  22785. color: #237ade;
  22786. }
  22787. .plContent {
  22788. margin-top: 5px;
  22789. }
  22790. .evalCss {
  22791. background: #fff;
  22792. font-size: 18px;
  22793. }
  22794. .nav {
  22795. color: #9d9d9d;
  22796. padding: 5px 0 15px 20px;
  22797. }
  22798. .middleBox {
  22799. padding: 5px 0 15px 20px;
  22800. }
  22801. .pfBox {
  22802. padding-bottom: 30px;
  22803. }
  22804. .nameAndrate {
  22805. display: flex;
  22806. flex-direction: row;
  22807. flex-wrap: nowrap;
  22808. align-items: center;
  22809. padding-bottom: 10px;
  22810. height: 30px;
  22811. line-height: 30px;
  22812. }
  22813. .nameAndrate > div {
  22814. margin-left: 10px;
  22815. color: #000;
  22816. height: 30px;
  22817. }
  22818. .nameAndrate >>> .el-rate__icon {
  22819. font-size: 28px !important;
  22820. }
  22821. .pfBox > div:nth-child(2) {
  22822. background: #f7f6f9;
  22823. width: 400px;
  22824. min-height: 45px;
  22825. border-radius: 10px;
  22826. font-size: 16px;
  22827. display: flex;
  22828. flex-wrap: wrap;
  22829. align-items: center;
  22830. padding: 10px 20px;
  22831. box-sizing: border-box;
  22832. color: #000;
  22833. }
  22834. .bz {
  22835. display: flex;
  22836. flex-direction: row;
  22837. flex-wrap: nowrap;
  22838. align-items: flex-start;
  22839. }
  22840. .bz > div {
  22841. padding: 0 10px;
  22842. }
  22843. .select_box2_title {
  22844. background: #fff;
  22845. border-radius: 5px;
  22846. padding: 15px 10px;
  22847. box-sizing: border-box;
  22848. margin-bottom: 10px;
  22849. display: flex;
  22850. flex-direction: row;
  22851. flex-wrap: nowrap;
  22852. align-items: center;
  22853. }
  22854. .select_box2_title > div:nth-child(2) {
  22855. margin-left: 10px;
  22856. color: #c4c4c4;
  22857. }
  22858. .select_box2_box {
  22859. display: flex;
  22860. height: 500px;
  22861. }
  22862. .select_box2_img {
  22863. width: calc(100% - 310px);
  22864. height: 100%;
  22865. overflow: auto;
  22866. background: #fff;
  22867. border-radius: 5px;
  22868. }
  22869. .select_box2_img img {
  22870. width: 100%;
  22871. }
  22872. .select_box2_answer {
  22873. background: #fff;
  22874. margin-left: 10px;
  22875. border-radius: 5px;
  22876. width: 300px;
  22877. overflow: auto;
  22878. height: 90%;
  22879. display: flex;
  22880. flex-direction: column;
  22881. align-items: flex-start;
  22882. padding-top: 10px;
  22883. box-sizing: border-box;
  22884. position: relative;
  22885. }
  22886. .select_answer_title {
  22887. padding: 0 0 15px 20px;
  22888. color: #c4c4c4;
  22889. }
  22890. .select_box2_answer_box {
  22891. margin: 0 0 10px 20px;
  22892. width: 85%;
  22893. display: flex;
  22894. flex-direction: row;
  22895. flex-wrap: nowrap;
  22896. align-items: center;
  22897. }
  22898. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22899. color: #000;
  22900. }
  22901. .upAnswerCss {
  22902. position: absolute;
  22903. bottom: 15px;
  22904. right: 15px;
  22905. }
  22906. .upAnswerCss >>> .el-button {
  22907. width: 95px;
  22908. height: 35px;
  22909. line-height: 35px;
  22910. padding: 0;
  22911. }
  22912. .rightWidthCss {
  22913. width: 60%;
  22914. display: flex;
  22915. flex-direction: row;
  22916. align-items: flex-start;
  22917. }
  22918. .rightAnswer {
  22919. display: flex;
  22920. flex-direction: row;
  22921. flex-wrap: nowrap;
  22922. align-items: center;
  22923. color: red;
  22924. margin-bottom: 31px;
  22925. }
  22926. .rightAnswerCss {
  22927. display: flex;
  22928. flex-direction: column;
  22929. flex-wrap: nowrap;
  22930. padding-top: 60px;
  22931. }
  22932. .blueCss {
  22933. color: #767de1;
  22934. margin-left: 10px;
  22935. }
  22936. .redCss {
  22937. color: red;
  22938. }
  22939. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22940. color: rgb(0 123 255) !important;
  22941. }
  22942. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22943. color: rgb(0 123 255) !important;
  22944. }
  22945. .zuoyeYulan {
  22946. padding-top: 0;
  22947. font-size: 18px;
  22948. display: flex;
  22949. align-items: flex-end;
  22950. }
  22951. .buttonA {
  22952. margin-left: 10px;
  22953. padding: 0;
  22954. }
  22955. .displayBox {
  22956. margin-bottom: 10px;
  22957. display: block;
  22958. border-bottom: 3px solid #eee;
  22959. display: flex;
  22960. align-items: center;
  22961. }
  22962. .easy_comment {
  22963. width: calc(100% - 90px);
  22964. margin-left: 10px;
  22965. display: flex;
  22966. flex-wrap: wrap;
  22967. }
  22968. .easy_comment > div {
  22969. border: 1px solid #4a4a4a;
  22970. color: #666;
  22971. border-radius: 15px;
  22972. padding: 5px 10px;
  22973. font-size: 16px;
  22974. margin-bottom: 10px;
  22975. margin-right: 5px;
  22976. cursor: pointer;
  22977. }
  22978. .easy_comment div:hover {
  22979. border: 1px solid #f7ba2a;
  22980. color: #c69217;
  22981. }
  22982. .xuan_right_box {
  22983. padding: 10px 0;
  22984. background: #f0f4fa;
  22985. margin: 0 15px 0 25px;
  22986. border-bottom-left-radius: 5px;
  22987. border-bottom-right-radius: 5px;
  22988. width: 91.5%;
  22989. }
  22990. .tool_right_box {
  22991. display: flex;
  22992. align-items: center;
  22993. }
  22994. .tool_right_box + .tool_right_box {
  22995. margin-top: 10px;
  22996. }
  22997. .right_box_xuan {
  22998. border-radius: 5px;
  22999. padding: 5px;
  23000. margin-left: 10px;
  23001. min-width: 85px;
  23002. background: #fff;
  23003. color: #0061ff;
  23004. border: 1px solid #0061ff;
  23005. font-size: 14px;
  23006. }
  23007. .pButton:hover {
  23008. opacity: 1 !important;
  23009. }
  23010. .pButton {
  23011. position: fixed;
  23012. text-align: center;
  23013. cursor: pointer;
  23014. z-index: 999;
  23015. right: 20px;
  23016. top: 110px;
  23017. width: 50px;
  23018. height: 50px;
  23019. display: flex;
  23020. align-items: center;
  23021. justify-content: center;
  23022. border-radius: 5px;
  23023. }
  23024. .pzClass {
  23025. width: calc(100% - 340px);
  23026. }
  23027. .newDialogCss {
  23028. /* position: fixed;
  23029. right: 5%;
  23030. top: 50%;
  23031. width: 340px;
  23032. transform: translateY(-50%);
  23033. height: 60%;
  23034. box-shadow: 0px 0 8px 0px #555555;
  23035. border-radius: 15px;
  23036. z-index: 999; */
  23037. position: fixed;
  23038. right: 20px;
  23039. top: 101px;
  23040. width: 330px;
  23041. height: calc(100% - 80px);
  23042. z-index: 999;
  23043. background: #fff;
  23044. border-top-right-radius: 0px;
  23045. border-bottom-right-radius: 0px;
  23046. overflow: hidden;
  23047. }
  23048. .newDialogCss>.scoreList{
  23049. width:100%;
  23050. height:100%;
  23051. box-sizing:border-box;
  23052. padding:10px 15px;
  23053. overflow:auto;
  23054. padding-bottom:80px;
  23055. }
  23056. .pzTop {
  23057. color: #fff;
  23058. background: #000;
  23059. display: flex;
  23060. flex-direction: row;
  23061. flex-wrap: nowrap;
  23062. align-items: center;
  23063. justify-content: space-between;
  23064. height: 40px;
  23065. border-radius: 15px 15px 0 0;
  23066. user-select: none;
  23067. }
  23068. .pzTop2 .checkbox {
  23069. display: flex;
  23070. align-items: center;
  23071. padding: 5px 10px;
  23072. flex: 0 0 auto;
  23073. font-weight: bold;
  23074. border-bottom: 1px solid #eee;
  23075. justify-content: space-between;
  23076. }
  23077. .checkbox>.cb-tabList{
  23078. display:flex;
  23079. align-items:center;
  23080. }
  23081. .cb-tabList>div{
  23082. margin-right:20px;
  23083. font-weight:400;
  23084. cursor:pointer;
  23085. }
  23086. .cb-tabList>.cb-tabItem{
  23087. color:#1684FC;
  23088. position:relative;
  23089. }
  23090. .cb-tabItem::after{
  23091. content:"";
  23092. width:100%;
  23093. height:2px;
  23094. background:#1684FC;
  23095. position:absolute;
  23096. bottom:-5px;
  23097. left:0
  23098. }
  23099. .pzTop2 .check {
  23100. text-align: center;
  23101. cursor: pointer;
  23102. box-sizing: border-box;
  23103. display: flex;
  23104. }
  23105. .pzTop2 img {
  23106. width: 25px;
  23107. cursor: pointer;
  23108. }
  23109. .pzTop > div:nth-child(1) {
  23110. padding-left: 10px;
  23111. }
  23112. .pzTop > div:nth-child(2) {
  23113. width: 15px;
  23114. height: 15px;
  23115. padding-right: 10px;
  23116. cursor: pointer;
  23117. }
  23118. .pzTop > div:nth-child(2) > img {
  23119. width: 100%;
  23120. height: 100%;
  23121. }
  23122. .pzBox,
  23123. .noPzBox {
  23124. height: calc(100% - 60px);
  23125. /* background: #ededed; */
  23126. background: #fff;
  23127. /* border-radius: 0 0 15px 15px; */
  23128. }
  23129. .noPzBox {
  23130. display: flex;
  23131. flex-direction: column;
  23132. flex-wrap: nowrap;
  23133. justify-content: center;
  23134. align-items: center;
  23135. }
  23136. .pzList {
  23137. background: #f7f7f7;
  23138. width: 90%;
  23139. margin: 0 auto 15px;
  23140. border-radius: 5px;
  23141. }
  23142. .pzNavTop {
  23143. display: flex;
  23144. flex-direction: row;
  23145. flex-wrap: nowrap;
  23146. padding: 10px 10px 0 10px;
  23147. align-items: center;
  23148. }
  23149. .pzDelete {
  23150. cursor: pointer;
  23151. margin-left: auto;
  23152. font-size: 14px;
  23153. color: #afafaf;
  23154. }
  23155. .pzNavTop > div:nth-child(1) {
  23156. background: #3760af;
  23157. width: 35px;
  23158. height: 35px;
  23159. color: #fff;
  23160. text-align: center;
  23161. line-height: 35px;
  23162. border-radius: 50%;
  23163. font-size: 14px;
  23164. }
  23165. .pzNavTop > div:nth-child(2) {
  23166. font-size: 18px;
  23167. color: #959595;
  23168. margin-left: 5px;
  23169. }
  23170. .pzContent {
  23171. padding: 10px;
  23172. word-break: break-word;
  23173. }
  23174. .pzContent audio {
  23175. width: 100%;
  23176. }
  23177. .pzContent audio::-webkit-media-controls-panel {
  23178. background: #fff;
  23179. }
  23180. .pzContent >>> img {
  23181. max-width: 100%;
  23182. }
  23183. .pzListBox {
  23184. padding-top: 15px;
  23185. height: calc(100% - 110px);
  23186. overflow: auto;
  23187. }
  23188. .addPzButton {
  23189. position: relative;
  23190. margin-top: 3px;
  23191. width: 100%;
  23192. }
  23193. .addPzButton .img1 {
  23194. position: absolute;
  23195. top: 50%;
  23196. right: 25px;
  23197. transform: translateY(-50%);
  23198. height: 100%;
  23199. display: flex;
  23200. align-items: center;
  23201. }
  23202. .addPzButton .img1 div {
  23203. display: flex;
  23204. }
  23205. .addPzButton .img1 div img {
  23206. width: 28px;
  23207. margin-left: 10px;
  23208. cursor: pointer;
  23209. }
  23210. .addPzButton .img1 div span {
  23211. font-size: 14px;
  23212. margin: 4px 0 0 3px;
  23213. color: #afafaf;
  23214. }
  23215. .addPz {
  23216. background: #4b79ce;
  23217. width: 100px;
  23218. color: #fff;
  23219. font-size: 12px;
  23220. height: 30px;
  23221. margin: 0 auto;
  23222. text-align: center;
  23223. line-height: 30px;
  23224. border-radius: 10px;
  23225. cursor: pointer;
  23226. }
  23227. .addDialogCss {
  23228. position: fixed;
  23229. width: 600px;
  23230. height: 70%;
  23231. min-height: 450px;
  23232. box-shadow: 0px 0 8px 0px #555555;
  23233. border-radius: 15px;
  23234. z-index: 999;
  23235. left: 50%;
  23236. top: 50%;
  23237. margin: -18% 0 0 -300px;
  23238. }
  23239. .teacherPz {
  23240. display: flex;
  23241. flex-direction: row;
  23242. align-items: center;
  23243. flex-wrap: nowrap;
  23244. }
  23245. .teacherPzImg {
  23246. width: 30px;
  23247. height: 30px;
  23248. }
  23249. .teacherPzImg > img {
  23250. width: 100%;
  23251. height: 100%;
  23252. }
  23253. .addPzBox {
  23254. height: calc(100% - 40px);
  23255. background: #ededed;
  23256. border-bottom-left-radius: 15px;
  23257. border-bottom-right-radius: 15px;
  23258. }
  23259. .pzAudioClass {
  23260. margin: 15px 14px;
  23261. background: #fff;
  23262. height: 100%;
  23263. display: flex;
  23264. justify-content: center;
  23265. align-items: center;
  23266. }
  23267. .pzConText {
  23268. width: 95%;
  23269. height: 100%;
  23270. margin: 10px auto 0;
  23271. border: none;
  23272. background: #fff;
  23273. border-radius: 0px;
  23274. }
  23275. .pzConText >>> .text {
  23276. height: calc(100% - 82px);
  23277. }
  23278. .addTextCss {
  23279. background: #4b79ce;
  23280. width: 80px;
  23281. height: 30px;
  23282. text-align: center;
  23283. color: #fff;
  23284. line-height: 30px;
  23285. border-radius: 10px;
  23286. margin: 10px auto 0;
  23287. cursor: pointer;
  23288. }
  23289. .pzConText:focus-visible {
  23290. border: none !important;
  23291. }
  23292. .maxWidth {
  23293. width: 1000px;
  23294. }
  23295. .noPz {
  23296. width: 150px;
  23297. margin: 0 auto 20%;
  23298. }
  23299. .noPz > img {
  23300. width: 100%;
  23301. height: 100%;
  23302. }
  23303. .timeAndReply {
  23304. display: flex;
  23305. flex-direction: row;
  23306. flex-wrap: nowrap;
  23307. justify-content: space-between;
  23308. align-items: center;
  23309. font-size: 14px;
  23310. box-sizing: border-box;
  23311. padding: 0 10px 10px 0px;
  23312. }
  23313. .timeAndReply .time {
  23314. color: #bfbfbf;
  23315. padding: 0 0 0 10px;
  23316. box-sizing: border-box;
  23317. }
  23318. .timeAndReply > div:last-child {
  23319. cursor: pointer;
  23320. color: #777;
  23321. }
  23322. /* table 样式 */
  23323. .cont >>> table {
  23324. border-top: 1px solid #ccc;
  23325. border-left: 1px solid #ccc;
  23326. }
  23327. .cont >>> table td,
  23328. .cont >>> table th {
  23329. border-bottom: 1px solid #ccc;
  23330. border-right: 1px solid #ccc;
  23331. /* padding: 20px 5px; */
  23332. padding: 5px 10px;
  23333. max-width: 0px;
  23334. height: 30px;
  23335. vertical-align: baseline;
  23336. box-sizing: border-box;
  23337. }
  23338. .cont >>> table th {
  23339. border-bottom: 2px solid #ccc;
  23340. text-align: center;
  23341. }
  23342. /* blockquote 样式 */
  23343. .cont >>> blockquote {
  23344. display: block;
  23345. border-left: 8px solid #d0e5f2;
  23346. padding: 5px 10px;
  23347. margin: 10px 0;
  23348. line-height: 1.4;
  23349. font-size: 100%;
  23350. background-color: #f1f1f1;
  23351. }
  23352. /* code 样式 */
  23353. .cont >>> code {
  23354. display: inline-block;
  23355. /* *display: inline; */
  23356. zoom: 1;
  23357. background-color: #f1f1f1;
  23358. border-radius: 3px;
  23359. padding: 3px 5px;
  23360. margin: 0 3px;
  23361. }
  23362. .cont >>> pre code {
  23363. display: block;
  23364. }
  23365. /* ul ol 样式 */
  23366. .cont >>> ul,
  23367. ol {
  23368. margin: 10px 0 10px 20px;
  23369. }
  23370. .addPzCheck {
  23371. display: flex;
  23372. flex-direction: row;
  23373. flex-wrap: nowrap;
  23374. padding: 10px 15px 0;
  23375. }
  23376. .addPzCheck span {
  23377. cursor: pointer;
  23378. padding-bottom: 5px;
  23379. font-weight: bold;
  23380. }
  23381. .addPzCheck span + span {
  23382. margin-left: 10px;
  23383. }
  23384. .addPzCheck .isChooseActive {
  23385. color: #3e88f4;
  23386. border-bottom: 2px solid #2f80f3;
  23387. }
  23388. /* code 样式 */
  23389. .cont {
  23390. /* -webkit-user-modify: read-write; */
  23391. overflow-wrap: break-word;
  23392. -webkit-line-break: after-white-space;
  23393. word-break: break-word;
  23394. white-space: pre-line;
  23395. }
  23396. .scoreBox,
  23397. .scoreDetailBox {
  23398. display: flex;
  23399. align-items: center;
  23400. justify-content: flex-start;
  23401. margin-top: 20px;
  23402. font-size: 18px;
  23403. width: 100%;
  23404. }
  23405. .scoreBox .t,
  23406. .scoreDetailBox .t {
  23407. margin-right: 10px;
  23408. width: 100px;
  23409. text-align: right;
  23410. }
  23411. .scoreDetailBox {
  23412. align-items: flex-start;
  23413. }
  23414. .scoreDetailBox >>> .el-textarea {
  23415. width: calc(100% - 200px);
  23416. }
  23417. .scoreBox >>> .el-input {
  23418. width: 130px;
  23419. font-size: 38px;
  23420. }
  23421. .scoreBox >>> .el-input__inner {
  23422. height: 60px;
  23423. }
  23424. .answerScore {
  23425. position: absolute;
  23426. top: 10px;
  23427. right: 10px;
  23428. background: #0000008f;
  23429. border-radius: 5px;
  23430. padding: 3px 5px;
  23431. font-size: 14px;
  23432. color: #fff;
  23433. cursor: pointer;
  23434. }
  23435. .open_box .switch_box {
  23436. width: 100%;
  23437. margin: 0 auto;
  23438. display: flex;
  23439. justify-content: space-between;
  23440. }
  23441. .open_box .switch_box + .switch_box {
  23442. margin-top: 10px;
  23443. }
  23444. .deleteImg,.deleteImg1 {
  23445. width: 25px !important;
  23446. height: 25px !important;
  23447. cursor: pointer;
  23448. position: absolute;
  23449. top: 10px;
  23450. right: 10px;
  23451. }
  23452. .deleteImg2 {
  23453. width: 23px !important;
  23454. height: 23px !important;
  23455. top: 5px;
  23456. right: 5px;
  23457. }
  23458. .deleteImg1{
  23459. width: 23px !important;
  23460. height: 23px !important;
  23461. top: 5px !important;
  23462. right: 30px !important;
  23463. }
  23464. .rightW {
  23465. right: 40px;
  23466. }
  23467. .drawPBox {
  23468. display: flex;
  23469. flex-direction: column;
  23470. position: relative;
  23471. }
  23472. .drawPBox span {
  23473. font-size: 18px;
  23474. color: #606266;
  23475. padding-bottom: 10px;
  23476. margin: 10px 0;
  23477. border-bottom: 1px solid #eaeaea;
  23478. }
  23479. .drawPBox img {
  23480. width: 500px;
  23481. height: 300px;
  23482. object-fit: contain;
  23483. cursor: pointer;
  23484. margin: 0 auto;
  23485. }
  23486. .sentenBox {
  23487. background: #fff;
  23488. height: 450px;
  23489. overflow: auto;
  23490. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23491. background-position: 102%;
  23492. background-repeat: no-repeat;
  23493. background-size: 60%;
  23494. }
  23495. .addSen {
  23496. background: #409efe;
  23497. width: 90px;
  23498. color: #fff;
  23499. height: 35px;
  23500. text-align: center;
  23501. line-height: 35px;
  23502. border-radius: 5px;
  23503. float: right;
  23504. margin: 10px 20px 0 0;
  23505. cursor: pointer;
  23506. }
  23507. .sentenTop {
  23508. display: flex;
  23509. flex-direction: row;
  23510. flex-wrap: nowrap;
  23511. align-items: center;
  23512. padding: 55px 0 0 20px;
  23513. box-sizing: border-box;
  23514. }
  23515. .sentenTop > div:nth-child(2) {
  23516. width: 300px;
  23517. margin: 0 15px;
  23518. }
  23519. .sentenTop > div:nth-child(3) {
  23520. background: #409efe;
  23521. color: #fff;
  23522. width: 65px;
  23523. height: 35px;
  23524. text-align: center;
  23525. line-height: 35px;
  23526. border-radius: 5px;
  23527. cursor: pointer;
  23528. }
  23529. .cardList,
  23530. .cardList1 {
  23531. padding: 10px 0 10px 0;
  23532. display: flex;
  23533. flex-direction: row;
  23534. flex-wrap: wrap;
  23535. align-items: center;
  23536. box-sizing: border-box;
  23537. border-bottom: 1px solid #f4f4f4;
  23538. width: 98%;
  23539. margin: 0 auto;
  23540. min-width: 60%;
  23541. max-width: 85%;
  23542. }
  23543. .cardList1 {
  23544. padding: 10px 0 10px 10px !important;
  23545. margin: 0 !important;
  23546. }
  23547. .cardBox {
  23548. display: flex;
  23549. flex-direction: row;
  23550. flex-wrap: wrap;
  23551. align-items: center;
  23552. align-content: center;
  23553. }
  23554. .cardBox > div {
  23555. margin-bottom: 10px;
  23556. }
  23557. .isCard,
  23558. .isChooseCard,
  23559. .noCard,
  23560. .isCard1 {
  23561. min-width: 130px;
  23562. width: auto;
  23563. height: 60px;
  23564. text-align: center;
  23565. line-height: 60px;
  23566. font-size: 20px;
  23567. cursor: pointer;
  23568. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23569. background-size: cover;
  23570. transition: all 2s;
  23571. margin-right: 20px;
  23572. background-size: 100% 100%;
  23573. padding: 0 20px;
  23574. box-sizing: border-box;
  23575. }
  23576. .isCard > div,
  23577. .noCard > div,
  23578. .isCard1 > div {
  23579. white-space: nowrap;
  23580. overflow: hidden;
  23581. text-overflow: ellipsis;
  23582. width: 100%;
  23583. margin: 0 auto;
  23584. }
  23585. .noCard {
  23586. background-image: none;
  23587. }
  23588. .isCard1 {
  23589. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23590. }
  23591. .isChooseCard {
  23592. background-image: none;
  23593. border: 1px dashed #b9b9b9;
  23594. border-radius: 10px;
  23595. }
  23596. .card {
  23597. width: 130px;
  23598. height: 60px;
  23599. }
  23600. .card > img {
  23601. width: 100%;
  23602. height: 100%;
  23603. }
  23604. .rightCardBox {
  23605. margin: 10px 0 0 10px;
  23606. }
  23607. .rightCardBox > div:nth-child(1) {
  23608. margin-bottom: 10px;
  23609. }
  23610. .cardCss {
  23611. display: flex;
  23612. flex-direction: column;
  23613. flex-wrap: nowrap;
  23614. align-items: center;
  23615. border-bottom: 3px solid #b4c3d3;
  23616. padding: 0 0 5px 0;
  23617. margin-right: 10px;
  23618. }
  23619. .cardCss > div:nth-child(2) {
  23620. background: #5b7b9d;
  23621. color: #fff;
  23622. width: 20px;
  23623. height: 20px;
  23624. border-radius: 50%;
  23625. text-align: center;
  23626. line-height: 20px;
  23627. }
  23628. .isWrong {
  23629. display: flex;
  23630. flex-direction: row;
  23631. flex-wrap: nowrap;
  23632. align-content: center;
  23633. align-items: center;
  23634. }
  23635. .answerRight {
  23636. width: 25%;
  23637. }
  23638. .isTj {
  23639. display: flex;
  23640. flex-direction: row;
  23641. flex-wrap: nowrap;
  23642. align-items: center;
  23643. }
  23644. .isTj > div:nth-child(2) {
  23645. color: #727070;
  23646. margin-left: 10px;
  23647. }
  23648. .isTjImg {
  23649. width: 30px;
  23650. height: 30px;
  23651. }
  23652. .isTjImg > img {
  23653. width: 100%;
  23654. height: 100%;
  23655. }
  23656. .cardAnswerBox {
  23657. font-size: 18px;
  23658. width: 97%;
  23659. border: 5px;
  23660. padding: 0;
  23661. border-radius: 5px;
  23662. margin: 10px auto;
  23663. word-break: break-word;
  23664. }
  23665. .w_name {
  23666. margin-bottom: 10px;
  23667. }
  23668. .w_name span {
  23669. font-size: 16px;
  23670. }
  23671. .w_teachert {
  23672. width: 50px !important;
  23673. position: absolute;
  23674. height: auto !important;
  23675. z-index: 10;
  23676. right: 25px;
  23677. top: -25px;
  23678. }
  23679. .group_workBox {
  23680. }
  23681. .group_workBox + .group_workBox {
  23682. margin-top: 20px;
  23683. }
  23684. .group_box {
  23685. padding-bottom: 20px;
  23686. border-bottom: 2px solid #f0f0f0;
  23687. margin-top: 10px;
  23688. }
  23689. .group_title {
  23690. display: flex;
  23691. align-items: center;
  23692. justify-content: space-between;
  23693. width: 95%;
  23694. }
  23695. .group_name {
  23696. background-image: url(../../assets/icon/groupN.png);
  23697. width: 220px;
  23698. background-size: 100% 100%;
  23699. height: 67px;
  23700. padding: 0 20px 0 43px;
  23701. box-sizing: border-box;
  23702. line-height: 63px;
  23703. color: #fff;
  23704. overflow: hidden;
  23705. white-space: nowrap;
  23706. text-overflow: ellipsis;
  23707. }
  23708. .group_work {
  23709. width: 100%;
  23710. padding: 0 10px;
  23711. box-sizing: border-box;
  23712. display: flex;
  23713. flex-wrap: wrap;
  23714. }
  23715. .g_d_box {
  23716. display: flex;
  23717. flex-flow: wrap;
  23718. justify-content: space-around;
  23719. }
  23720. .g_d_box .isChair {
  23721. background-image: url(../../assets/avatar.png) !important;
  23722. }
  23723. .g_d_group {
  23724. width: 500px;
  23725. margin-bottom: 80px;
  23726. }
  23727. .g_d_group_chair {
  23728. display: flex;
  23729. align-items: center;
  23730. justify-content: center;
  23731. }
  23732. .g_d_group_chair > div + div {
  23733. margin-left: 30px;
  23734. }
  23735. .g_d_group_chair > div,
  23736. .g_d_group_chair2 > div {
  23737. display: flex;
  23738. flex-direction: column;
  23739. align-items: center;
  23740. }
  23741. .g_d_group_chair > div > span:nth-child(1),
  23742. .g_d_group_chair2 > div > span:nth-child(1) {
  23743. background-image: url(../../assets/icon/chair.png);
  23744. width: 50px;
  23745. height: 50px;
  23746. display: block;
  23747. background-size: 100% 100%;
  23748. }
  23749. .g_d_group_tableBox {
  23750. display: flex;
  23751. align-items: center;
  23752. justify-content: center;
  23753. }
  23754. .g_d_group_chair2 {
  23755. display: flex;
  23756. flex-direction: column;
  23757. align-items: center;
  23758. justify-content: center;
  23759. }
  23760. .g_d_group_chair2 > div + div {
  23761. margin-top: 10px;
  23762. }
  23763. .g_d_group_table {
  23764. background-image: url(../../assets/icon/groupBg.png);
  23765. width: 354px;
  23766. height: 196px;
  23767. background-size: 100% 100%;
  23768. display: flex;
  23769. align-items: center;
  23770. justify-content: center;
  23771. flex-direction: column;
  23772. color: #fff;
  23773. }
  23774. .g_d_group_table > div:nth-child(1) {
  23775. font-size: 24px;
  23776. margin-bottom: 5px;
  23777. }
  23778. .g_d_group_table > div:nth-child(2) div {
  23779. cursor: pointer;
  23780. background: #2e77bf;
  23781. padding: 4px 10px;
  23782. border-radius: 5px;
  23783. }
  23784. .groupBox {
  23785. }
  23786. .groupContent + .groupContent {
  23787. margin-top: 30px;
  23788. }
  23789. .groupTitle {
  23790. font-size: 24px;
  23791. color: rgb(80, 80, 80);
  23792. margin-bottom: 20px;
  23793. }
  23794. .groupName {
  23795. display: flex;
  23796. align-items: center;
  23797. }
  23798. .groupn {
  23799. font-size: 15px;
  23800. margin-right: 10px;
  23801. }
  23802. .groupName + .groupName {
  23803. margin-top: 15px;
  23804. }
  23805. .groupBtn {
  23806. margin-left: 10px;
  23807. }
  23808. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23809. text-align: left;
  23810. }
  23811. .g_d_btnBox {
  23812. display: flex;
  23813. justify-content: flex-end;
  23814. align-items: center;
  23815. margin-bottom: 20px;
  23816. }
  23817. .updateChair {
  23818. position: relative;
  23819. }
  23820. .updateChairBtn {
  23821. position: absolute;
  23822. width: 50px;
  23823. height: 50px;
  23824. overflow: hidden;
  23825. /* display: flex; */
  23826. align-items: center;
  23827. justify-content: center;
  23828. background: #00000087;
  23829. color: #fff;
  23830. border-radius: 50px;
  23831. display: none;
  23832. cursor: pointer;
  23833. }
  23834. .updateChair:hover .updateChairBtn {
  23835. display: flex;
  23836. }
  23837. .group_staic_box {
  23838. display: flex;
  23839. padding: 30px 40px 10px;
  23840. flex-wrap: wrap;
  23841. }
  23842. .group_staic {
  23843. /* width: 50%; */
  23844. margin-bottom: 20px;
  23845. display: flex;
  23846. align-items: center;
  23847. }
  23848. .group_staic span:nth-child(1) {
  23849. width: 150px;
  23850. text-align: right;
  23851. margin-right: 15px;
  23852. }
  23853. .group_staic span:nth-child(2) {
  23854. background: rgb(0 123 255);
  23855. color: #fff;
  23856. border-radius: 5px;
  23857. padding: 5px;
  23858. }
  23859. .codeFileBox {
  23860. height: 300px;
  23861. background: #fff;
  23862. display: flex;
  23863. align-items: center;
  23864. justify-content: center;
  23865. }
  23866. .codeFileBox img {
  23867. width: 200px;
  23868. margin: 0;
  23869. height: auto;
  23870. }
  23871. .codeFileBox div {
  23872. background: rgb(80, 142, 226);
  23873. color: #fff;
  23874. padding: 10px 20px;
  23875. border-radius: 25px;
  23876. cursor: pointer;
  23877. margin-left: 15px;
  23878. }
  23879. .radioBox {
  23880. display: flex;
  23881. flex-direction: column;
  23882. flex-wrap: nowrap;
  23883. align-items: flex-start;
  23884. }
  23885. .radioBox > div {
  23886. margin: 10px 0 0 10px;
  23887. }
  23888. /* .radioBox >>> .el-radio__input,
  23889. .radioBox >>> .el-checkbox__inner {
  23890. margin-left: 10px;
  23891. } */
  23892. .radioBox >>> .el-radio__label,
  23893. .radioBox >>> .el-checkbox__label {
  23894. display: flex;
  23895. align-items: center;
  23896. width: 100%;
  23897. }
  23898. .radioBox >>> .el-radio__label > span {
  23899. width: 100%;
  23900. display: -webkit-box;
  23901. overflow: hidden;
  23902. white-space: normal !important;
  23903. text-overflow: ellipsis;
  23904. word-wrap: break-word;
  23905. }
  23906. .inImg {
  23907. width: 100px;
  23908. cursor: pointer;
  23909. }
  23910. .inImg > img {
  23911. width: 100%;
  23912. height: 100%;
  23913. object-fit: cover;
  23914. }
  23915. .timuImgBox {
  23916. margin: 10px 0;
  23917. display: flex;
  23918. flex-direction: column;
  23919. flex-wrap: wrap;
  23920. align-items: flex-start;
  23921. }
  23922. .timuImg {
  23923. width: 150px;
  23924. margin: 5px 0;
  23925. cursor: pointer;
  23926. }
  23927. .timuImg > img {
  23928. width: 100%;
  23929. height: 100%;
  23930. object-fit: cover;
  23931. }
  23932. .worksTop {
  23933. display: flex;
  23934. flex-direction: row;
  23935. align-items: flex-end;
  23936. }
  23937. .worksTitle {
  23938. display: flex;
  23939. flex-direction: row;
  23940. flex-wrap: nowrap;
  23941. align-items: center;
  23942. }
  23943. .worksTitle::before,
  23944. .worksTop::before {
  23945. content: "";
  23946. display: block;
  23947. width: 3px;
  23948. height: 20px;
  23949. background: #0061ff;
  23950. border-radius: 3px;
  23951. margin: 0 5px 0 0;
  23952. }
  23953. .corOpen {
  23954. margin: 0 0 0 10px;
  23955. font-size: 14px;
  23956. cursor: pointer;
  23957. color: #505050;
  23958. }
  23959. .corOpen:hover {
  23960. color: #499eef;
  23961. }
  23962. .navCorOpenBox {
  23963. display: flex;
  23964. flex-direction: row;
  23965. align-items: center;
  23966. justify-content: space-between;
  23967. height: 55px;
  23968. background: #ffffff;
  23969. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23970. border-radius: 8px 8px 0px 0px;
  23971. z-index: 9;
  23972. position: relative;
  23973. }
  23974. .navCorOpen {
  23975. padding-right: 15px;
  23976. cursor: pointer;
  23977. width: 45px;
  23978. display: flex;
  23979. }
  23980. .navCorOpen > img {
  23981. width: 100%;
  23982. height: 100%;
  23983. }
  23984. .mlImg {
  23985. width: 40px !important;
  23986. min-width: 40px;
  23987. cursor: pointer;
  23988. transform: rotate(180deg);
  23989. }
  23990. .mlImg > img {
  23991. width: 100%;
  23992. height: 100%;
  23993. }
  23994. .navLeftCss {
  23995. width: 100% !important;
  23996. left: 0 !important;
  23997. }
  23998. .isContentCss {
  23999. width: 100% !important;
  24000. }
  24001. .isAllWidth {
  24002. width: 100% !important;
  24003. }
  24004. .group_switch {
  24005. margin-right: 10px;
  24006. height: 30px;
  24007. display: flex;
  24008. align-items: center;
  24009. }
  24010. .group_switch > span {
  24011. margin-right: 5px;
  24012. }
  24013. .fileC_box {
  24014. padding-top: 15px;
  24015. }
  24016. .fileC_box > .fileC_title {
  24017. padding: 10px 5px 14px 10px;
  24018. border-top: 1px solid #cad1dc;
  24019. font-size: 14px;
  24020. font-weight: 400;
  24021. color: #cad1dc;
  24022. width: calc(100% - 20px);
  24023. margin: 0 auto;
  24024. box-sizing: border-box;
  24025. }
  24026. .pl_select_box {
  24027. height: 40px;
  24028. line-height: 40px;
  24029. width: 100%;
  24030. cursor: pointer;
  24031. padding: 0 20px;
  24032. box-sizing: border-box;
  24033. border-radius: 5px;
  24034. border: 1px solid #d6d6d6;
  24035. white-space: nowrap;
  24036. overflow: hidden;
  24037. text-overflow: ellipsis;
  24038. background: #fff;
  24039. text-align: left;
  24040. }
  24041. .newButton {
  24042. width: 102px;
  24043. height: 36px;
  24044. background: #e7ebf1;
  24045. border-radius: 4px;
  24046. color: #0e1e33;
  24047. font-weight: 400;
  24048. font-size: 14px;
  24049. border: none;
  24050. float: right;
  24051. margin-left: 10px;
  24052. }
  24053. .el-table >>> .even_row {
  24054. background-color: #f0f4fa;
  24055. }
  24056. .stageBoxCss,
  24057. .stageBoxIsCss {
  24058. display: flex;
  24059. flex-direction: row;
  24060. flex-wrap: nowrap;
  24061. align-items: center;
  24062. height: 50px;
  24063. border-bottom: 1px solid #e2f5fc;
  24064. cursor: pointer;
  24065. width: 100%;
  24066. }
  24067. .stageBoxIsCss {
  24068. background: #0061ff;
  24069. color: #fff;
  24070. border-radius: 8px;
  24071. }
  24072. .closeTri,
  24073. .closeTri1 {
  24074. min-width: 15px;
  24075. width: 15px;
  24076. height: 15px;
  24077. }
  24078. .closeTri1 {
  24079. padding-left: 10px;
  24080. cursor: pointer;
  24081. }
  24082. .closeTri > img,
  24083. .closeTri1 > img {
  24084. width: 100%;
  24085. height: 100%;
  24086. /* transition: all .5s; */
  24087. }
  24088. .noToolBlue {
  24089. min-width: 10px;
  24090. width: 10px;
  24091. height: 10px;
  24092. background: #0061ff;
  24093. border-radius: 50%;
  24094. margin-left: 13px;
  24095. }
  24096. .stageChild,
  24097. .toolChild {
  24098. height: 0;
  24099. overflow: hidden;
  24100. transition: all 0.5s;
  24101. }
  24102. .toolChild {
  24103. /* margin: 0 0 0 17px;
  24104. padding: 0 0 0 20px;
  24105. border-left: 1px solid #d7d7d7; */
  24106. }
  24107. .toolChild > div + div{
  24108. margin-top:5px;
  24109. }
  24110. .gjCss {
  24111. display: flex;
  24112. flex-direction: row;
  24113. flex-wrap: nowrap;
  24114. align-items: center;
  24115. padding: 10px 0 10px 40px;
  24116. box-sizing: border-box;
  24117. font-size: 14px;
  24118. cursor: pointer;
  24119. border-radius:5px;
  24120. }
  24121. .toolChild > div {
  24122. position: relative;
  24123. width: 100%;
  24124. }
  24125. .toolChild > div::before {
  24126. /* content: "";
  24127. width: 15px;
  24128. height: 1px;
  24129. background: #cad1dc;
  24130. position: absolute;
  24131. top: 24px;
  24132. left: -20px;
  24133. display: block; */
  24134. }
  24135. .isGjCss {
  24136. /* color: #0061ff; */
  24137. color:#fff;
  24138. background: rgb(55, 129, 252);
  24139. /* background-color: #e0eafb !important;
  24140. color: #0061ff !important; */
  24141. }
  24142. .navItem {
  24143. background: #ffffff;
  24144. border-radius: 4px;
  24145. width: 100%;
  24146. margin: 10px auto;
  24147. position: relative;
  24148. height: 40px;
  24149. display: flex;
  24150. flex-direction: row;
  24151. flex-wrap: nowrap;
  24152. align-items: center;
  24153. }
  24154. .navItemList {
  24155. display: flex;
  24156. flex-direction: row;
  24157. flex-wrap: nowrap;
  24158. align-items: center;
  24159. padding: 0 13px;
  24160. cursor: pointer;
  24161. width: calc(100% - 60px);
  24162. height: 100%;
  24163. }
  24164. .navItemList > div:first-child {
  24165. min-width: 60px;
  24166. }
  24167. .navItemList > div:last-child {
  24168. width: calc(100% - 80px);
  24169. white-space: nowrap;
  24170. overflow: hidden;
  24171. text-overflow: ellipsis;
  24172. word-break: break-word;
  24173. }
  24174. /* .isItemList > div {
  24175. color: #fff !important;
  24176. } */
  24177. .tool_work_box {
  24178. width: 100%;
  24179. padding: 0 37px 0;
  24180. box-sizing: border-box;
  24181. }
  24182. .tool_box {
  24183. width: 100%;
  24184. padding: 0 0 0 20px;
  24185. }
  24186. .tool_type_box {
  24187. display: flex;
  24188. flex-direction: row;
  24189. align-items: baseline;
  24190. flex-wrap: nowrap;
  24191. justify-content: flex-start;
  24192. position: relative;
  24193. }
  24194. .toolSort {
  24195. display: flex;
  24196. flex-direction: row;
  24197. flex-wrap: wrap;
  24198. justify-content: flex-start;
  24199. align-items: flex-start;
  24200. padding: 0 0 15px 0;
  24201. }
  24202. .toolSort > div {
  24203. margin: 0 10px 0 0;
  24204. width: 135px;
  24205. box-sizing: border-box;
  24206. border: 2px solid transparent;
  24207. }
  24208. .tools {
  24209. width: 100%;
  24210. display: flex;
  24211. flex-direction: column;
  24212. flex-wrap: nowrap;
  24213. align-items: flex-start;
  24214. }
  24215. .whiteBIcon {
  24216. width: fit-content;
  24217. cursor: pointer;
  24218. display: flex;
  24219. flex-direction: column;
  24220. flex-wrap: nowrap;
  24221. align-items: center;
  24222. font-size: 14px;
  24223. }
  24224. .tool:hover {
  24225. border: 2px solid #a5c7ff;
  24226. border-radius: 5px;
  24227. }
  24228. .whiteBIcon > img {
  24229. width: 65px;
  24230. height: 100%;
  24231. }
  24232. .whiteBIcon > img {
  24233. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24234. border-radius: 15px;
  24235. }
  24236. .check {
  24237. /* width: 20px;
  24238. height: 20px; */
  24239. cursor: pointer;
  24240. margin: 10px 0;
  24241. position: absolute;
  24242. right: 2px;
  24243. top: -5px;
  24244. }
  24245. .noChoose,
  24246. .isChoose {
  24247. width: 15px;
  24248. height: 15px;
  24249. border-radius: 50%;
  24250. border: 1px solid #adadad;
  24251. }
  24252. .isChoose {
  24253. border: 4px solid #0363ff !important;
  24254. width: 10px;
  24255. height: 10px;
  24256. }
  24257. .isToolChoose {
  24258. border: 2px solid #5394ff !important;
  24259. border-radius: 5px;
  24260. box-shadow: 0 0 6px 0px #5394ff;
  24261. }
  24262. .checkDiv {
  24263. display: flex;
  24264. align-items: center;
  24265. }
  24266. .checkDiv span {
  24267. margin-left: 5px;
  24268. color: #858585;
  24269. }
  24270. .check img {
  24271. width: 20px;
  24272. height: 20px;
  24273. }
  24274. .lockTaskIcon {
  24275. width: 20px;
  24276. height: 20px;
  24277. position: absolute;
  24278. right: 10px;
  24279. top: 10px;
  24280. }
  24281. .lockTaskIcon > img {
  24282. width: 100%;
  24283. height: 100%;
  24284. }
  24285. .pick_box {
  24286. display: flex;
  24287. align-items: flex-start;
  24288. flex-wrap: wrap;
  24289. }
  24290. .selectBox {
  24291. width: 110px;
  24292. margin-left: 10px;
  24293. margin: 0 10px 0 auto;
  24294. }
  24295. .selectBox >>> .el-input__inner {
  24296. height: 30px;
  24297. line-height: 30px;
  24298. }
  24299. .selectBox >>> .el-input__icon {
  24300. line-height: 30px;
  24301. }
  24302. .sentenceTitle {
  24303. display: flex;
  24304. flex-direction: row;
  24305. flex-wrap: nowrap;
  24306. align-items: center;
  24307. }
  24308. .sentenceTitle::before {
  24309. content: attr(index);
  24310. background: #3681fc;
  24311. border-radius: 50%;
  24312. color: #fff;
  24313. width: 25px;
  24314. height: 25px;
  24315. min-width: 25px;
  24316. min-height: 25px;
  24317. text-align: center;
  24318. line-height: 25px;
  24319. margin-right: 5px;
  24320. }
  24321. .hfBox {
  24322. padding: 10px;
  24323. box-sizing: border-box;
  24324. }
  24325. .whoReplyWho {
  24326. display: flex;
  24327. flex-direction: row;
  24328. flex-wrap: nowrap;
  24329. align-items: baseline;
  24330. justify-content: flex-start;
  24331. }
  24332. .hfBottom {
  24333. display: flex;
  24334. flex-direction: row;
  24335. flex-wrap: nowrap;
  24336. align-items: center;
  24337. justify-content: space-between;
  24338. font-size: 14px;
  24339. }
  24340. .deleteHfItem {
  24341. cursor: pointer;
  24342. width: 20px;
  24343. height: 20px;
  24344. }
  24345. .deleteHfItem > img {
  24346. width: 100%;
  24347. height: 100%;
  24348. }
  24349. .whoReplyWho > .hfImg {
  24350. width: 12px;
  24351. height: 12px;
  24352. margin: 0 5px;
  24353. }
  24354. .whoReplyWho > .hfImg > img {
  24355. width: 100%;
  24356. height: 100%;
  24357. }
  24358. .hfContent {
  24359. padding-top: 10px;
  24360. box-sizing: border-box;
  24361. display: -webkit-box;
  24362. overflow: hidden;
  24363. white-space: normal !important;
  24364. text-overflow: ellipsis;
  24365. word-wrap: break-word;
  24366. -webkit-box-orient: vertical;
  24367. }
  24368. .hfTime {
  24369. text-align: left;
  24370. box-sizing: border-box;
  24371. padding: 10px 0 10px 0px;
  24372. color: #bfbfbf;
  24373. font-size: 14px;
  24374. }
  24375. .btnAllNT {
  24376. position: fixed;
  24377. bottom: 100px;
  24378. right: 40px;
  24379. z-index: 999;
  24380. display: flex;
  24381. flex-direction: row;
  24382. }
  24383. .btnAllNT > img {
  24384. cursor: pointer;
  24385. width: 80px;
  24386. }
  24387. .toolMask {
  24388. position: fixed;
  24389. width: 100%;
  24390. height: 100%;
  24391. background: #3f3c3c;
  24392. opacity: 0.5;
  24393. top: 0;
  24394. left: 0;
  24395. z-index: 999;
  24396. }
  24397. .addToolCss {
  24398. position: fixed;
  24399. z-index: 999;
  24400. background: #fff;
  24401. right: 5%;
  24402. bottom: 18%;
  24403. min-width: 1035px;
  24404. min-height: 300px;
  24405. border-radius: 10px;
  24406. box-shadow: 0 0 8px 1px #b2b2b2;
  24407. }
  24408. .toolTop {
  24409. display: flex;
  24410. flex-direction: row;
  24411. flex-wrap: nowrap;
  24412. justify-content: space-between;
  24413. align-items: center;
  24414. padding: 20px;
  24415. }
  24416. .toolTop > div:nth-child(2) {
  24417. width: 15px;
  24418. height: 15px;
  24419. padding-right: 10px;
  24420. cursor: pointer;
  24421. }
  24422. .toolTop > div:nth-child(2) > img {
  24423. width: 100%;
  24424. height: 100%;
  24425. }
  24426. .fullStyle>>>.el-dialog__body {
  24427. height: calc(100% - 125px) !important;
  24428. box-sizing: border-box;
  24429. padding: 30px 0 !important;
  24430. background: #fff !important;
  24431. }
  24432. .fullStyle>>>.el-dialog {
  24433. width: 100% !important;
  24434. max-width: 100% !important;
  24435. height: 100% !important;
  24436. margin: 0 !important;
  24437. }
  24438. .fullStyle {
  24439. width: 100% !important;
  24440. max-width: 100% !important;
  24441. height: 100% !important;
  24442. margin: 0 auto !important;
  24443. }
  24444. .fullStyle>>>.el-dialog__footer{
  24445. background: #fff !important;
  24446. }
  24447. .engUpBox {
  24448. width: 100%;
  24449. height: 100%;
  24450. }
  24451. .engTitle,
  24452. .engText {
  24453. display: flex;
  24454. flex-direction: row;
  24455. flex-wrap: nowrap;
  24456. align-items: flex-start;
  24457. padding: 0 20px 20px 20px;
  24458. box-sizing: border-box;
  24459. }
  24460. .engTitle > .div:first-child,
  24461. .engText > div:first-child {
  24462. min-width: 75px;
  24463. }
  24464. .correctBox{
  24465. width: 100%;
  24466. display: flex;
  24467. flex-direction: row;
  24468. flex-wrap: nowrap;
  24469. align-items: flex-start;
  24470. }
  24471. .oldBox{
  24472. width: 50%;
  24473. height: 100%;
  24474. display: flex;
  24475. flex-direction: column;
  24476. flex-wrap: nowrap;
  24477. align-items: center;
  24478. border-top: 1px solid #d9d9d9;
  24479. border-left: 1px solid #d9d9d9;
  24480. border-right: 1px solid #d9d9d9;
  24481. }
  24482. .oldBox>div:first-child{
  24483. width: 100%;
  24484. text-align: center;
  24485. background: #d9d9d9;
  24486. height: 35px;
  24487. line-height: 35px;
  24488. font-weight: bold;
  24489. }
  24490. .oldText{
  24491. width: 100%;
  24492. height: calc(100% - 35px);
  24493. overflow: auto;
  24494. margin: 10px 0;
  24495. display: flex;
  24496. flex-direction: column;
  24497. flex-wrap: nowrap;
  24498. align-content: center;
  24499. align-items: center;
  24500. }
  24501. .detailBox{
  24502. width: 50%;
  24503. padding: 10px;
  24504. background: #f6f6f6;
  24505. border-radius: 5px;
  24506. }
  24507. .oldDetail,.oldDetail1{
  24508. padding-bottom: 30px;
  24509. }
  24510. .oldImg{
  24511. width:30px;
  24512. height: 30px;
  24513. }
  24514. .oldImg>img{
  24515. width: 100%;
  24516. height: 100%;
  24517. }
  24518. .allName{
  24519. min-width: 200px;
  24520. white-space: nowrap;
  24521. overflow: hidden;
  24522. text-overflow: ellipsis;
  24523. word-break: break-word;
  24524. cursor: pointer;
  24525. text-align: center;
  24526. border: 1px solid #bcc2cc;
  24527. box-sizing: border-box;
  24528. }
  24529. .engUpTop{
  24530. max-height: 300px;
  24531. overflow: auto;
  24532. }
  24533. .isUpdateToolDetailClass{
  24534. padding: 0 !important;
  24535. }
  24536. .isUpdateToolDetailClass textarea{
  24537. padding:12px;
  24538. font-size: 16px;
  24539. min-height:100%;
  24540. width: 100%;
  24541. box-sizing:border-box;
  24542. outline: none;
  24543. border:none;
  24544. line-height: 30px;
  24545. resize: none;
  24546. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24547. color: #838383;
  24548. }
  24549. .show_taskD {
  24550. min-width: fit-content;
  24551. margin-left: 10px;
  24552. display: flex;
  24553. align-items: center;
  24554. font-size: 14px;
  24555. cursor: pointer;
  24556. color: #717c8d;
  24557. }
  24558. .show_taskD > img {
  24559. width: 15px;
  24560. margin-right: 5px;
  24561. transition: 0.2s all;
  24562. transform: rotate(-90deg);
  24563. }
  24564. .show_taskD.show > img {
  24565. transform: rotate(0deg);
  24566. }
  24567. .dialog_diyCopy >>> .el-dialog__header {
  24568. display: none !important;
  24569. }
  24570. .dialog_diyCopy >>> .el-dialog__body {
  24571. padding: 0 !important;
  24572. height: 100% !important;
  24573. }
  24574. .confirmOpenDigCss > div{
  24575. font-size: 14px;
  24576. color: rgba(0, 0, 0, 0.6);
  24577. }
  24578. .confirmOpenDigCss >>> .el-dialog{
  24579. border-radius: 6px;
  24580. }
  24581. .confirmOpenDigCss >>> .el-dialog__body{
  24582. padding: 25px !important;
  24583. }
  24584. .confirmOpenDigCss > span{
  24585. font-size: 16px;
  24586. font-weight: 600;
  24587. color: rgba(0, 0, 0, 0.8);
  24588. }
  24589. .correctCss{
  24590. position: absolute;
  24591. bottom: -70px;
  24592. background: #409eff;
  24593. color: #fff;
  24594. }
  24595. div::-webkit-scrollbar {
  24596. width: 10px;
  24597. height: 6px;
  24598. }
  24599. </style>