studyStudent.vue 890 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 阶段模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <div class="btnAllNT" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" content="收缩" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <span>随机码:{{ inviteCode }}</span>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="cru_selectBox">
  83. <div
  84. style="background: #fff; margin: 0 10px; border-radius: 8px"
  85. v-for="(item, stageIndex) in navList"
  86. :key="stageIndex"
  87. >
  88. <div
  89. class="stageBoxCss"
  90. @click="get(stageIndex)"
  91. :class="{
  92. // stageBoxIsCss: stageIndex == courseType,
  93. }"
  94. >
  95. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  96. <div>阶段{{ stageIndex + 1 }}</div>
  97. <el-tooltip
  98. effect="light"
  99. :content="item.dyName"
  100. placement="top"
  101. >
  102. <div>
  103. {{ item.dyName }}
  104. </div>
  105. </el-tooltip>
  106. </div>
  107. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  108. <img src="../assets/icon/newIcons/downC.png" alt />
  109. </div> -->
  110. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  111. <img src="../assets/icon/newIcons/right.png" alt />
  112. </div>
  113. </div>
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType,
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  129. @click="openTask(stageIndex, navIndex, nav.id)"
  130. >
  131. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  132. </div>
  133. <div
  134. class="closeTri1"
  135. v-else
  136. @click="openTask(stageIndex, navIndex, nav.id)"
  137. >
  138. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  139. </div>
  140. </div>
  141. <div v-else class="noToolBlue"></div>
  142. <div
  143. @click="openTask(stageIndex, navIndex, nav.id)"
  144. class="navItemList"
  145. :class="{
  146. isItemList:
  147. navIndex == taskCount &&
  148. nav.id == navId &&
  149. stageIndex == courseType,
  150. }"
  151. >
  152. <div>任务{{ navIndex + 1 }}:</div>
  153. <el-tooltip
  154. effect="light"
  155. :content="nav.taskName"
  156. placement="top"
  157. >
  158. <div
  159. :style="{
  160. width:
  161. IsLookOpen &&
  162. !(
  163. navIndex == taskCount &&
  164. nav.id == navId &&
  165. stageIndex == courseType
  166. )
  167. ? 'calc(100% - 75px)'
  168. : 'auto',
  169. }"
  170. >
  171. {{ nav.taskName }}
  172. </div>
  173. </el-tooltip>
  174. </div>
  175. <div class="lockTaskIcon">
  176. <img
  177. src="../assets/lock.png"
  178. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  179. courseDetail.course_teacher.indexOf(userid) ==-1"
  180. alt=""
  181. />
  182. </div>
  183. </div>
  184. <div
  185. v-if="nav.tool[0].tool != undefined"
  186. class="toolChild"
  187. :class="{ toolActive: nav.isOpen }"
  188. >
  189. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  190. <div
  191. class="gjCss"
  192. :class="{ isGjCss: t.isTool }"
  193. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  194. >
  195. <div>工具{{ toolIndex + 1 }}:</div>
  196. <div v-if="t.tool == 58">模拟驾驶</div>
  197. <div v-if="t.tool == 59">路径搜索</div>
  198. <div v-if="t.tool == 60">深度学习</div>
  199. <div v-if="t.tool == 10">倒计时</div>
  200. <div v-if="t.tool == 65">挑人</div>
  201. <div v-if="t.tool == 7">思维网格</div>
  202. <div v-if="t.tool == 1">电子白板</div>
  203. <div v-if="t.tool == 52">文档</div>
  204. <div v-if="t.tool == 3">思维导图</div>
  205. <div v-if="t.tool == 48">表格</div>
  206. <div v-if="t.tool == 49">学生分组</div>
  207. <div v-if="t.tool == 4">问卷调查</div>
  208. <div v-if="t.tool == 45">选择题</div>
  209. <div v-if="t.tool == 15">问答</div>
  210. <div v-if="t.tool == 16">作业提交</div>
  211. <div v-if="t.tool == 50">批量上传</div>
  212. <div v-if="t.tool == 41">选择匹配</div>
  213. <div v-if="t.tool == 47">排序</div>
  214. <div v-if="t.tool == 40">个人评价</div>
  215. <div v-if="t.tool == 18">训练平台</div>
  216. <div v-if="t.tool == 21">AIoT Blockly</div>
  217. <div v-if="t.tool == 23">AI Python</div>
  218. <div v-if="t.tool == 24">AI Blockly</div>
  219. <div v-if="t.tool == 32">源码编辑</div>
  220. <div v-if="t.tool == 57">CocoPi</div>
  221. <div v-if="t.tool == 63">海龟编程</div>
  222. <div v-if="t.tool == 28">翻译</div>
  223. <div v-if="t.tool == 31">数字画板</div>
  224. <div v-if="t.tool == 39">GeoGebra</div>
  225. <div v-if="t.tool == 66">公式编辑</div>
  226. <div v-if="t.tool == 67">分子结构</div>
  227. <div v-if="t.tool == 68">时间轴</div>
  228. <div v-if="t.tool == 69">英语写作</div>
  229. <div v-if="t.tool == 70">英语口语</div>
  230. <div v-if="t.tool == 25">目标管理</div>
  231. <div v-if="t.tool == 26">课程设计</div>
  232. <div v-if="t.tool == 62">交互视频</div>
  233. <div v-if="t.tool == 71">AI智能体</div>
  234. <div v-if="t.tool == 72">应用中心</div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- :class="{ navLeftCss: !mlDialog }" -->
  244. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  245. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  246. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  247. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  248. <div>任务{{ taskCount + 1 }}</div>
  249. <el-tooltip
  250. effect="light"
  251. :content="
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  253. "
  254. placement="top"
  255. >
  256. <div>
  257. {{
  258. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  259. .task
  260. }}
  261. </div>
  262. </el-tooltip>
  263. </div>
  264. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  265. <div class="btnLeft">
  266. <el-tooltip effect="light" content="刷新" placement="top">
  267. <div class="reBtnIcon" @click="refreshCourse">
  268. <span>刷新</span>
  269. </div>
  270. </el-tooltip>
  271. <el-tooltip effect="light" content="评论" placement="top">
  272. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  273. <span>评论</span>
  274. </div>
  275. </el-tooltip>
  276. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  277. <el-tooltip effect="light" content="录制" placement="top">
  278. <div class="vedioIcon" @click="startRecording">
  279. <span>录制</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. <div v-else-if="tType == 1 || tType == 4">
  284. <el-tooltip effect="light" content="下载" placement="top">
  285. <div class="vedioIcon1" @click="stopRecording">
  286. <span>下载</span>
  287. </div>
  288. </el-tooltip>
  289. </div>
  290. </div>
  291. <div class="btnRight">
  292. <div
  293. class="last"
  294. @click="nextOrpreSteps(0)"
  295. v-if="!(IsFollow && tType == 2)"
  296. @mouseover="isHovered = true"
  297. @mouseout="isHovered = false"
  298. >
  299. <div class="lastImg">
  300. <img
  301. :src="
  302. isHovered
  303. ? require('../assets/icon/newIcons/whiteLast.png')
  304. : require('../assets/icon/newIcons/last.png')
  305. "
  306. alt=""
  307. />
  308. </div>
  309. <div class="lastText">上一步</div>
  310. </div>
  311. <div
  312. class="last"
  313. @click="nextOrpreSteps(1)"
  314. v-if="!(IsFollow && tType == 2)"
  315. @mouseover="isHovered1 = true"
  316. @mouseout="isHovered1 = false"
  317. >
  318. <div class="lastText">下一步</div>
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered1
  323. ? require('../assets/icon/newIcons/whiteNext.png')
  324. : require('../assets/icon/newIcons/next.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. </div>
  330. <div
  331. class="last"
  332. @click="juriVisible = true"
  333. v-if="tType == 1"
  334. @mouseover="isHovered2 = true"
  335. @mouseout="isHovered2 = false"
  336. >
  337. <div class="lastImg">
  338. <img
  339. :src="
  340. isHovered2
  341. ? require('../assets/icon/newIcons/whiteLock.png')
  342. : require('../assets/icon/newIcons/lock.png')
  343. "
  344. alt=""
  345. />
  346. </div>
  347. <div class="lastText">权限</div>
  348. </div>
  349. <div
  350. class="returnBtn1 returnIcon"
  351. @click.stop="
  352. goTo(
  353. '/courseDetail?userid=' +
  354. userid +
  355. '&oid=' +
  356. oid +
  357. '&org=' +
  358. org +
  359. '&cid=' +
  360. classId +
  361. '&courseId=' +
  362. id +
  363. '&tType=' +
  364. tType +
  365. '&screenType=' +
  366. screenType
  367. )
  368. "
  369. >
  370. <div class="lastImg">
  371. <img src="../assets/icon/newIcon/return.png" alt="" />
  372. </div>
  373. <div class="lastText" style="color: #000">返回</div>
  374. </div>
  375. </div>
  376. <!-- <div
  377. class="returnBtn lockIcon"
  378. @click="juriVisible = true"
  379. v-if="tType == 1"
  380. >
  381. 权限
  382. </div>
  383. <div
  384. class="returnBtn vedioIcon"
  385. @click="startRecording"
  386. v-if="!videoStart && (tType == 1 || tType == 4)"
  387. >
  388. 录制
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="stopRecording"
  393. v-else-if="tType == 1 || tType == 4"
  394. style="background: #ee5255"
  395. >
  396. 下载
  397. </div>
  398. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  399. 评论
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(0)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 上一步
  407. </div>
  408. <div
  409. class="returnBtn"
  410. @click="nextOrpreSteps(1)"
  411. v-if="!(IsFollow && tType == 2)"
  412. >
  413. 下一步
  414. </div>
  415. <div class="returnBtn" @click="refreshCourse">刷新</div>
  416. <div
  417. class="returnBtn returnIcon"
  418. @click.stop="
  419. goTo(
  420. '/courseDetail?userid=' +
  421. userid +
  422. '&oid=' +
  423. oid +
  424. '&org=' +
  425. org +
  426. '&cid=' +
  427. classId +
  428. '&courseId=' +
  429. id +
  430. '&tType=' +
  431. tType +
  432. '&screenType=' +
  433. screenType
  434. )
  435. "
  436. >
  437. 返回
  438. </div> -->
  439. </div>
  440. </div>
  441. <div
  442. class="isNoMessage"
  443. v-if="
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .chapterData.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .toolChoose[0].tool.length == 0 &&
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail == '' &&
  450. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  451. .eList &&
  452. !(
  453. courseDetail.userid == userid ||
  454. (courseDetail.course_teacher &&
  455. courseDetail.course_teacher.indexOf(userid) != -1)
  456. )
  457. "
  458. >
  459. <img src="../assets/icon/isNoMessage.png" alt />
  460. </div>
  461. <div class="study_top" :class="{ pzClass: pzDialog }">
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[taskCount].length > 0 ||
  468. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail != ''
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. class="renderedFor"
  487. >
  488. <div
  489. style="
  490. padding: 15px 0;
  491. line-height: 29px;
  492. font-size: 18px;
  493. color: #0e1e33;
  494. "
  495. class="cont"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail != ''
  499. "
  500. v-html="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail
  503. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  504. taskCount
  505. ].taskDetail)
  506. : '暂无描述'
  507. "
  508. ></div>
  509. </div>
  510. </div>
  511. <div
  512. class="student_head"
  513. v-if="
  514. vChapterData[taskCount].length > 0 ||
  515. fileC[taskCount].length > 0
  516. "
  517. >
  518. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  519. <div
  520. :class="
  521. contentDialog == false
  522. ? 'box_course isContentCss'
  523. : 'box_course'
  524. "
  525. v-if="
  526. vChapterData.length > 0 &&
  527. vChapterData[taskCount] &&
  528. showType !== ''
  529. "
  530. >
  531. <div class="wheel" style="height: auto" v-if="showType === 0">
  532. <div
  533. class="workd_media"
  534. style="height: 650px; width: calc(100% - 50px)"
  535. >
  536. <video-player
  537. class="video-player vjs-custom-skin notop"
  538. :class="contentDialog == false ? 'isAllWidth' : ''"
  539. :playsinline="true"
  540. :options="playerO[taskCount]"
  541. @play="onPlayerPlay($event)"
  542. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  543. ></video-player>
  544. </div>
  545. </div>
  546. <div
  547. class="wheel"
  548. v-if="showType == 1"
  549. style="
  550. box-shadow: 0 0 6px 1px #f2f2f2;
  551. width: 95%;
  552. margin: 0 auto;
  553. background: #f1f1f1;
  554. "
  555. >
  556. <div class="title">查看文档</div>
  557. <el-form class="textBox">
  558. <el-form-item class="textTitle">
  559. <div style="font-size: 22px">
  560. {{ text.name }}
  561. </div>
  562. </el-form-item>
  563. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  564. <div v-html="text.url" class="textContent cont"></div>
  565. </el-form>
  566. </div>
  567. <div
  568. class="wheel"
  569. v-if="
  570. pptImgUrl1.indexOf(
  571. 'https://view.officeapps.live.com/op/view.aspx?src='
  572. ) != -1 && showType == 2
  573. "
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <iframe
  577. style="width: 100%; height: 100%; border: none"
  578. :src="pptImgUrl1"
  579. ></iframe>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-else-if="showType == 2"
  584. style="width: 95%; margin: 0 auto"
  585. >
  586. <iframe
  587. style="width: 100%; height: 100%; border: none"
  588. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  589. :key="diffKey"
  590. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  591. :src="pptImgUrl1"
  592. ></iframe>
  593. <iframe
  594. style="width: 100%; height: 100%; border: none"
  595. security="restricted"
  596. v-else
  597. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  598. :src="pptImgUrl1"
  599. ></iframe>
  600. </div>
  601. <div
  602. class="wheel"
  603. v-if="showType === 16"
  604. style="width: 95%; margin: 0 auto"
  605. >
  606. <iframe
  607. style="width: 100%; height: 100%; border: none"
  608. :src="pptImgUrl1"
  609. ></iframe>
  610. </div>
  611. <div
  612. class="wheel"
  613. v-if="showType == 3"
  614. style="width: 95%; margin: 0 auto"
  615. >
  616. <pdf
  617. :pdfUrl="pptImgUrl1"
  618. style="width: 100%; height: 100%; overflow: auto"
  619. ></pdf>
  620. </div>
  621. <div
  622. class="wheel"
  623. v-if="showType == 4"
  624. style="width: 95%; margin: 0 auto"
  625. >
  626. <el-image
  627. :src="pptImgUrl1"
  628. fit="contain"
  629. style="width: 100%; height: 100%; cursor: pointer"
  630. @click="previewImg(pptImgUrl1)"
  631. ></el-image>
  632. </div>
  633. </div>
  634. <div
  635. class="pButton"
  636. style="position: absolute; right: 20px; top: 0; z-index: 998"
  637. v-if="!contentDialog"
  638. @click="setContent(true)"
  639. >
  640. <!-- 批 -->
  641. <img
  642. src="../assets/icon/newIcons/isLeft.png"
  643. style="width: 45px"
  644. alt=""
  645. />
  646. </div>
  647. <div
  648. v-if="contentDialog == true"
  649. :style="{
  650. width:
  651. (vChapterData[taskCount].length > 0 ||
  652. fileC[taskCount].length > 0) &&
  653. showType === ''
  654. ? 'calc(100%)'
  655. : '300px',
  656. margin:
  657. (vChapterData[taskCount].length > 0 ||
  658. fileC[taskCount].length > 0) &&
  659. showType === ''
  660. ? '0 15px'
  661. : '0 15px 0 0',
  662. }"
  663. >
  664. <div
  665. class="vedioList"
  666. v-if="
  667. vChapterData[taskCount].length > 0 ||
  668. fileC[taskCount].length > 0
  669. "
  670. style="height: 650px"
  671. >
  672. <div class="navCorOpenBox">
  673. <div class="navTitile">内容列表:</div>
  674. <div class="navCorOpen" @click="setContent(false)">
  675. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  676. </div>
  677. </div>
  678. <div class="navBox">
  679. <div
  680. v-show="
  681. vChapterData[taskCount].length > 0 ||
  682. fileC[taskCount].length > 0
  683. "
  684. style="padding: 10px 0 25px 0"
  685. >
  686. <div
  687. class="vedioTimeBox"
  688. v-for="(vitem, vindex) in vChapterData[taskCount]"
  689. :key="vindex + '1'"
  690. >
  691. <div class="navListItem" v-if="vitem.type == 2">
  692. <div
  693. @click="lookVedio(vitem.url, vindex)"
  694. class="navText"
  695. :class="isClickNav == vindex ? 'isClickNav' : ''"
  696. >
  697. <span v-if="vitem.text">{{ vitem.text }}-</span
  698. >{{ vitem.name }}
  699. </div>
  700. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  701. <img src="../assets/icon/newIcon/down.png" alt />
  702. </div> -->
  703. </div>
  704. <div class="navListItem" v-if="vitem.type == 6">
  705. <div
  706. @click="lookText(taskCount, vindex)"
  707. class="navText"
  708. :class="isClickNav == vindex ? 'isClickNav' : ''"
  709. >
  710. {{ vitem.name }}.doc
  711. </div>
  712. <div
  713. class="downIcon"
  714. @click="checkFileFull1(vitem.type, vitem)"
  715. >
  716. <img
  717. src="../assets/icon/newIcon/allScreen.png"
  718. alt
  719. />
  720. </div>
  721. </div>
  722. <div
  723. class="navListItem"
  724. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  725. >
  726. <div
  727. @click="doUrl(vitem.url, vindex)"
  728. class="navText"
  729. :class="isClickNav == vindex ? 'isClickNav' : ''"
  730. >
  731. {{ vitem.title ? vitem.title : vitem.url }}
  732. </div>
  733. <div
  734. class="downIcon"
  735. @click="checkFileFull1(vitem.type, vitem)"
  736. >
  737. <img
  738. src="../assets/icon/newIcon/allScreen.png"
  739. alt
  740. />
  741. </div>
  742. </div>
  743. <div class="navListItem" v-if="vitem.type == 3">
  744. <div
  745. @click="downFile(vitem, vindex)"
  746. class="navText"
  747. :class="isClickNav == vindex ? 'isClickNav' : ''"
  748. >
  749. <span v-if="vitem.text">{{ vitem.text }}-</span
  750. >{{ vitem.name }}
  751. </div>
  752. <div
  753. class="downIcon"
  754. @click="checkFileFull1(vitem.type, vitem)"
  755. >
  756. <img
  757. src="../assets/icon/newIcon/allScreen.png"
  758. alt
  759. />
  760. </div>
  761. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  762. <img src="../assets/icon/newIcon/down.png" alt />
  763. </div> -->
  764. </div>
  765. <div class="navListItem" v-if="vitem.type == 12">
  766. <div class="navText" @click="downloadFile2(vitem)">
  767. <span v-if="vitem.text">{{ vitem.text }}-</span
  768. >{{ vitem.name }}
  769. </div>
  770. <div
  771. class="downIcon"
  772. @click="checkFileFull1(vitem.type, vitem)"
  773. >
  774. <img
  775. src="../assets/icon/newIcon/allScreen.png"
  776. alt
  777. />
  778. </div>
  779. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  780. <img src="../assets/icon/newIcon/down.png" alt />
  781. </div> -->
  782. </div>
  783. <div class="navListItem" v-if="vitem.type == 13">
  784. <div
  785. class="navText"
  786. @click="checkPhoto(vitem, vindex)"
  787. :class="isClickNav == vindex ? 'isClickNav' : ''"
  788. >
  789. {{ vitem.name }}
  790. </div>
  791. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  792. <img src="../assets/icon/newIcon/down.png" alt />
  793. </div> -->
  794. </div>
  795. <div class="navListItem" v-if="vitem.type == 16">
  796. <div
  797. class="navText"
  798. @click="checkHtml(vitem, vindex)"
  799. :class="isClickNav == vindex ? 'isClickNav' : ''"
  800. >
  801. {{ vitem.name }}
  802. </div>
  803. <div
  804. class="downIcon"
  805. @click="checkFileFull1(vitem.type, vitem)"
  806. >
  807. <img
  808. src="../assets/icon/newIcon/allScreen.png"
  809. alt
  810. />
  811. </div>
  812. </div>
  813. <div class="navListItem" v-if="vitem.type == 17">
  814. <div
  815. class="navText"
  816. @click="checkHtml(vitem, vindex)"
  817. :class="isClickNav == vindex ? 'isClickNav' : ''"
  818. >
  819. {{ vitem.name }}
  820. </div>
  821. <div
  822. class="downIcon"
  823. @click="checkFileFull1(vitem.type, vitem)"
  824. >
  825. <img
  826. src="../assets/icon/newIcon/allScreen.png"
  827. alt
  828. />
  829. </div>
  830. </div>
  831. </div>
  832. <div
  833. class="fileC_box"
  834. v-if="fileC[taskCount].length > 0"
  835. >
  836. <div class="fileC_title">以下文件不支持预览</div>
  837. <div
  838. class="vedioTimeBox"
  839. v-for="(vitem, vindex) in fileC[taskCount]"
  840. :key="vindex + '1'"
  841. >
  842. <div class="navListItem" v-if="vitem.type == 12">
  843. <div class="navText" style="color: #acb4bf">
  844. <span v-if="vitem.text">{{ vitem.text }}-</span
  845. >{{ vitem.name }}
  846. </div>
  847. <!-- <div
  848. class="downIcon"
  849. @click="downloadFile2(vitem)"
  850. >
  851. <img
  852. src="../assets/icon/newIcon/down.png"
  853. alt
  854. />
  855. </div> -->
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. <div style="width: calc(100% - 315px)">
  865. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  866. <!-- <el-button
  867. type="primary"
  868. class="newButton"
  869. @click="checkFileFull(showType, pptImgUrl1)"
  870. >全屏查看</el-button
  871. >
  872. <el-button
  873. type="primary"
  874. class="newButton"
  875. @click="downloadFile(pptImgUrl1)"
  876. v-if="showType != 2"
  877. >文件下载</el-button
  878. > -->
  879. <el-button
  880. class="newButton"
  881. v-if="
  882. showType == 2 &&
  883. pptImgUrl1.indexOf(
  884. 'https://view.officeapps.live.com/op/view.aspx?src='
  885. ) == -1
  886. "
  887. type="primary"
  888. @click="openLine(pptImgUrl1)"
  889. >打开链接
  890. </el-button>
  891. </div>
  892. <!-- <div
  893. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  894. v-if="showType == 1"
  895. >
  896. <el-button
  897. type="primary"
  898. class="newButton"
  899. @click="checkFileFull(showType, text)"
  900. >全屏查看</el-button
  901. >
  902. </div> -->
  903. </div>
  904. </div>
  905. </div>
  906. <div class="student_body" v-resize="resize">
  907. <div
  908. class="vedioBox"
  909. :style="{
  910. borderRadius:
  911. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  912. .taskDetail == '' &&
  913. vChapterData[taskCount].length == 0 &&
  914. fileC[taskCount].length == 0
  915. ? '0 0 20px 20px'
  916. : '20px',
  917. }"
  918. v-if="
  919. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  920. .toolChoose[0].tool &&
  921. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  922. .toolChoose[0].tool.length > 0
  923. "
  924. >
  925. <div
  926. class="toolHeng2"
  927. style="position: relative"
  928. v-if="
  929. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  930. .toolChoose[0].tool &&
  931. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  932. .toolChoose[0].tool.length &&
  933. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  934. .toolChoose[0].tool.length > 0
  935. "
  936. >
  937. <div class="workNav">工作区</div>
  938. <div
  939. class="filebox"
  940. style="flex-wrap: nowrap"
  941. v-for="(tool, toolIndex) in chapInfoList[courseType]
  942. .chapterInfo[0].taskJson[taskCount].toolChoose"
  943. :key="toolIndex"
  944. >
  945. <div class="bzBox">
  946. <div class="yCss"></div>
  947. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  948. 工具{{ toolIndex + 1 }}
  949. </div>
  950. <div
  951. v-if="timeWorkList[toolIndex].length > 0"
  952. style="margin: 0 0 0 10px"
  953. >
  954. {{
  955. timeWorkList[toolIndex][0].time
  956. ? "时间:" + timeWorkList[toolIndex][0].time
  957. : ""
  958. }}
  959. </div>
  960. </div>
  961. <div class="toolBox">
  962. <div>
  963. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  964. :key="indexTool"-->
  965. <!-- <div class="iframeBox">
  966. <div
  967. class="addPoint isBorder"
  968. v-for="(tooC, toolCIndex) in tool.tool"
  969. :key="toolCIndex"
  970. >
  971. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  972. <div
  973. class="iframeName"
  974. >
  975. 电子白板
  976. </div>
  977. <iframe
  978. src="https://iwb.cocorobo.cn/"
  979. ref="whiteBoard"
  980. ></iframe>
  981. </div>
  982. </div>
  983. </div>-->
  984. <div class="noiframeBox">
  985. <div
  986. class="addPoint"
  987. v-for="(tooC, toolCIndex) in tool.tool"
  988. :key="toolCIndex"
  989. >
  990. <div v-if="tooC == 1">
  991. <img
  992. src="../assets/icon/secondToolList/whiteBoard.png"
  993. alt
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. />
  996. <div style="margin: 5px 0">电子白板</div>
  997. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  998. style="position: absolute;right: 33px;top: -30px;">
  999. 分析
  1000. </div>
  1001. </div>
  1002. <div v-if="tooC == 3">
  1003. <img
  1004. src="../assets/icon/secondToolList/mindMapping.png"
  1005. alt
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. />
  1008. <div style="margin: 5px 0">思维导图</div>
  1009. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1010. style="position: absolute;right: 33px;top: -30px;">
  1011. 分析
  1012. </div>
  1013. </div>
  1014. <div v-if="tooC == 6">
  1015. <img
  1016. src="../assets/icon/secondToolList/doc.png"
  1017. alt
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. />
  1020. <div style="margin: 5px 0">协同文档</div>
  1021. </div>
  1022. <div v-if="tooC == 7">
  1023. <img
  1024. src="../assets/icon/secondToolList/mindNetwork.png"
  1025. alt
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. />
  1028. <div style="margin: 5px 0">思维网格</div>
  1029. <!-- && worksStudent[toolIndex].length>0 -->
  1030. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 8">
  1036. <img
  1037. src="../assets/icon/secondToolList/library.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">素材库</div>
  1042. </div>
  1043. <div v-if="tooC == 17">
  1044. <img
  1045. src="../assets/icon/secondToolList/library.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">学习资料</div>
  1050. </div>
  1051. <div v-if="tooC == 2">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/secondToolList/note.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">便签</div>
  1058. </div>
  1059. <div v-if="tooC == 4">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/thirdToolList/ask.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">问卷调查</div>
  1066. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1067. style="position: absolute;right: 153px;top: -30px;">
  1068. 分析
  1069. </div>
  1070. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1071. style="position: absolute;right: 33px;top: -30px;">
  1072. 统计分析
  1073. </div>
  1074. </div>
  1075. <div v-if="tooC == 45">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/thirdToolList/choose.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">选择题</div>
  1082. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1083. style="position: absolute;right: 33px;top: -30px;">
  1084. 分析
  1085. </div>
  1086. </div>
  1087. <!-- <div v-if="tooC == 5">
  1088. <img
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. src="../assets/icon/thirdToolList/score.png"
  1091. alt
  1092. />
  1093. <div style="margin: 5px 0">量规评分</div>
  1094. </div> -->
  1095. <div v-if="tooC == 10">
  1096. <img
  1097. @click="addTools(tooC, toolIndex, taskCount)"
  1098. src="../assets/icon/thirdToolList/time.png"
  1099. alt
  1100. />
  1101. <div style="margin: 5px 0">倒计时</div>
  1102. </div>
  1103. <div v-if="tooC == 15">
  1104. <img
  1105. @click="addTools(tooC, toolIndex, taskCount)"
  1106. src="../assets/icon/thirdToolList/answer.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">问答</div>
  1110. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1111. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1112. 分析
  1113. </div>
  1114. </div>
  1115. <div v-if="tooC == 26">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/thirdToolList/courseDesign.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">课程设计</div>
  1122. </div>
  1123. <div v-if="tooC == 18">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/thirdToolList/trainPlatform.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">训练服务器</div>
  1130. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1131. style="position: absolute;right: 33px;top: -30px;">
  1132. 分析
  1133. </div>
  1134. </div>
  1135. <div v-if="tooC == 16">
  1136. <img
  1137. @click="addTools(tooC, toolIndex, taskCount)"
  1138. src="../assets/icon/thirdToolList/work.png"
  1139. alt
  1140. />
  1141. <div style="margin: 5px 0">作业提交</div>
  1142. </div>
  1143. <div v-if="tooC == 50">
  1144. <img
  1145. @click="addTools(tooC, toolIndex, taskCount)"
  1146. src="../assets/icon/thirdToolList/plwork.png"
  1147. alt
  1148. />
  1149. <div style="margin: 5px 0">批量上传</div>
  1150. </div>
  1151. <div v-if="tooC == 21">
  1152. <img
  1153. @click="addTools(tooC, toolIndex, taskCount)"
  1154. src="../assets/icon/fourthToolList/program.png"
  1155. alt
  1156. />
  1157. <div style="margin: 5px 0">AIoT Blockly</div>
  1158. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1159. style="position: absolute;right: 33px;top: -30px;">
  1160. 分析
  1161. </div>
  1162. </div>
  1163. <!-- <div v-if="tooC == 22">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../assets/icon/fourthToolList/program.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">AI体验</div>
  1170. </div> -->
  1171. <div v-if="tooC == 23">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">AI Python</div>
  1178. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1179. style="position: absolute;right: 33px;top: -30px;">
  1180. 分析
  1181. </div>
  1182. </div>
  1183. <div v-if="tooC == 24">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../assets/icon/fourthToolList/AIprogram.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">AI Blockly</div>
  1190. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1191. style="position: absolute;right: 33px;top: -30px;">
  1192. 分析
  1193. </div>
  1194. </div>
  1195. <div v-if="tooC == 25">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../assets/icon/thirdToolList/evalua.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">目标管理</div>
  1202. </div>
  1203. <div v-if="tooC == 31">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../assets/icon/secondToolList/networkPanel.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">数学画板</div>
  1210. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1211. style="position: absolute;right: 33px;top: -30px;">
  1212. 分析
  1213. </div>
  1214. </div>
  1215. <div v-if="tooC == 28">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../assets/icon/secondToolList/translation.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">翻译</div>
  1222. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1223. style="position: absolute;right: 33px;top: -30px;">
  1224. 分析
  1225. </div>
  1226. </div>
  1227. <div v-if="tooC == 37">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../assets/icon/secondToolList/mohe.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">魔盒识字</div>
  1234. </div>
  1235. <div v-if="tooC == 38">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../assets/icon/secondToolList/24game.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">24点</div>
  1242. </div>
  1243. <div v-if="tooC == 39">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../assets/icon/secondToolList/GeoGebra.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">GeoGebra</div>
  1250. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1251. style="position: absolute;right: 33px;top: -30px;">
  1252. 分析
  1253. </div>
  1254. </div>
  1255. <div v-if="tooC == 32">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../assets/icon/thirdToolList/code.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">源码编辑</div>
  1262. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1263. style="position: absolute;right: 153px;top: -42px;">
  1264. 分析
  1265. </div>
  1266. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1267. style="position: absolute;left: 110px;bottom: 30px;">
  1268. 上传文件
  1269. <input type="file" accept="*" style="display: none"
  1270. @change="beforeUpload1($event, 7, toolIndex)" />
  1271. </div> -->
  1272. </div>
  1273. <div v-if="tooC == 40">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/secondToolList/eval.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">个人评价</div>
  1280. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1281. style="position: absolute;right: 33px;top: -30px;">
  1282. 分析
  1283. </div>
  1284. </div>
  1285. <div v-if="tooC == 41">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../assets/icon/thirdToolList/select.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">选择匹配</div>
  1292. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1293. style="position: absolute;right: 33px;top: -30px;">
  1294. 分析
  1295. </div>
  1296. </div>
  1297. <div v-if="tooC == 44">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/thirdToolList/hanClass.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">汉字宫</div>
  1304. </div>
  1305. <div v-if="tooC == 47">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/fourthToolList/conSentences.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">排序</div>
  1312. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1313. style="position: absolute;right: 33px;top: -30px;">
  1314. 分析
  1315. </div>
  1316. </div>
  1317. <div v-if="tooC == 48">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../assets/icon/fourthToolList/table.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">表格</div>
  1324. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1325. style="position: absolute;right: 33px;top: -30px;">
  1326. 分析
  1327. </div>
  1328. </div>
  1329. <div v-if="tooC == 52">
  1330. <img
  1331. @click="addTools(tooC, toolIndex, taskCount)"
  1332. src="../assets/icon/fourthToolList/text.png"
  1333. alt
  1334. />
  1335. <div style="margin: 5px 0">文档</div>
  1336. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1337. style="position: absolute;right: 33px;top: -30px;">
  1338. 分析
  1339. </div>
  1340. </div>
  1341. <div v-if="tooC == 49">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../assets/icon/fourthToolList/group.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">学生分组</div>
  1348. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1349. style="position: absolute;right: 33px;top: -30px;">
  1350. 分析
  1351. </div>
  1352. </div>
  1353. <div v-if="tooC == 57">
  1354. <img
  1355. @click="addTools(tooC, toolIndex, taskCount)"
  1356. src="../assets/icon/fourthToolList/cocopi.png"
  1357. alt
  1358. />
  1359. <div style="margin: 5px 0">CocoPi</div>
  1360. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1361. style="position: absolute;right: 33px;top: -30px;">
  1362. 分析
  1363. </div>
  1364. </div>
  1365. <div v-if="tooC == 58">
  1366. <img
  1367. @click="addTools(tooC, toolIndex, taskCount)"
  1368. src="../assets/icon/fourthToolList/car.png"
  1369. alt
  1370. />
  1371. <div style="margin: 5px 0">模拟驾驶</div>
  1372. </div>
  1373. <div v-if="tooC == 59">
  1374. <img
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. src="../assets/icon/fourthToolList/lineSearch.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">路径搜索</div>
  1380. </div>
  1381. <div v-if="tooC == 60">
  1382. <img
  1383. @click="addTools(tooC, toolIndex, taskCount)"
  1384. src="../assets/icon/fourthToolList/deepLearning.png"
  1385. alt
  1386. />
  1387. <div style="margin: 5px 0">深度学习</div>
  1388. </div>
  1389. <div v-if="tooC == 61">
  1390. <img
  1391. @click="addTools(tooC, toolIndex, taskCount)"
  1392. src="../assets/icon/fourthToolList/allHistory.png"
  1393. alt
  1394. />
  1395. <div style="margin: 5px 0">全历史</div>
  1396. </div>
  1397. <div v-if="tooC == 62">
  1398. <img
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. src="../assets/icon/fourthToolList/interVideo.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">交互视频</div>
  1404. </div>
  1405. <div v-if="tooC == 63">
  1406. <img
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. src="../assets/icon/fourthToolList/Wood.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">海龟编程</div>
  1412. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1413. style="position: absolute;right: 33px;top: -30px;">
  1414. 分析
  1415. </div>
  1416. </div>
  1417. <div v-if="tooC == 71">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../assets/icon/fourthToolList/chatgpt.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">AI智能体</div>
  1424. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1425. style="position: absolute;right: 33px;top: -30px;">
  1426. 分析
  1427. </div>
  1428. </div>
  1429. <div v-if="tooC == 72">
  1430. <img
  1431. style="height: 85px;object-fit: cover;"
  1432. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. :src="tool.appJson.json.icon"
  1435. alt
  1436. />
  1437. <img
  1438. v-else
  1439. @click="addTools(tooC, toolIndex, taskCount)"
  1440. src="../assets/icon/firstToolList/appStore.png"
  1441. alt
  1442. />
  1443. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1444. <!-- content to trigger tooltip here -->
  1445. <div class="Ovh">
  1446. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1447. </div>
  1448. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1449. style="position: absolute;right: 33px;top: -30px;">
  1450. 分析
  1451. </div>
  1452. </el-tooltip>
  1453. </div>
  1454. <div v-if="tooC == 65">
  1455. <img
  1456. @click="addTools(tooC, toolIndex, taskCount)"
  1457. src="../assets/icon/firstToolList/pickPeople.png"
  1458. alt
  1459. />
  1460. <div style="margin: 5px 0">挑人</div>
  1461. </div>
  1462. <div v-if="tooC == 66">
  1463. <img
  1464. @click="addTools(tooC, toolIndex, taskCount)"
  1465. src="../assets/icon/secondToolList/formulaEdi.png"
  1466. alt
  1467. />
  1468. <div style="margin: 5px 0">公式编辑</div>
  1469. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1470. style="position: absolute;right: 33px;top: -30px;">
  1471. 分析
  1472. </div>
  1473. </div>
  1474. <div v-if="tooC == 67">
  1475. <img
  1476. @click="addTools(tooC, toolIndex, taskCount)"
  1477. src="../assets/icon/secondToolList/molStr.png"
  1478. alt
  1479. />
  1480. <div style="margin: 5px 0">分子结构</div>
  1481. </div>
  1482. <div v-if="tooC == 68">
  1483. <img
  1484. @click="addTools(tooC, toolIndex, taskCount)"
  1485. src="../assets/icon/secondToolList/timeAxis.png"
  1486. alt
  1487. />
  1488. <div style="margin: 5px 0">时间轴</div>
  1489. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1490. style="position: absolute;right: 33px;top: -30px;">
  1491. 分析
  1492. </div> -->
  1493. </div>
  1494. <div v-if="tooC == 69">
  1495. <img
  1496. @click="addTools(tooC, toolIndex, taskCount)"
  1497. src="../assets/icon/secondToolList/english.png"
  1498. alt
  1499. />
  1500. <div style="margin: 5px 0">英语写作</div>
  1501. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1502. style="position: absolute;right: 33px;top: -30px;">
  1503. 分析
  1504. </div>
  1505. </div>
  1506. <div v-if="tooC == 70">
  1507. <img
  1508. @click="addTools(tooC, toolIndex, taskCount)"
  1509. src="../assets/icon/thirdToolList/englishVoice.png"
  1510. alt
  1511. />
  1512. <div style="margin: 5px 0">英语口语</div>
  1513. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1514. style="position: absolute;right: 33px;top: -30px;">
  1515. 分析
  1516. </div>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1522. <!-- <div class="toolTitle">工具描述</div> -->
  1523. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1524. <div style="height:100%;"
  1525. v-html="renderedFormula(tool.toolDetail)"
  1526. v-if="toolDetailIndex != toolIndex"
  1527. ></div>
  1528. <div v-else @click.stop="" style="height:100%;">
  1529. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1530. </div>
  1531. </div>
  1532. <el-button
  1533. type="primary"
  1534. v-if="tool.tool[0] == 32"
  1535. style="position: absolute; right: 30px; top: -45px"
  1536. @click="addImg($event)"
  1537. >上传作业<input
  1538. type="file"
  1539. accept="*"
  1540. style="display: none"
  1541. @change="beforeUpload1($event, 7, toolIndex)"
  1542. /></el-button>
  1543. <el-button
  1544. type="primary"
  1545. v-if="tool.tool[0] == 15"
  1546. style="position: absolute; right: 30px; top: -45px"
  1547. @click="openWordCloud(toolIndex)"
  1548. >生成词云</el-button
  1549. >
  1550. <el-button
  1551. type="primary"
  1552. v-if="
  1553. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1554. "
  1555. style="position: absolute; right: 30px; top: -45px"
  1556. @click="uploadWorks(toolIndex)"
  1557. >导出作业</el-button
  1558. >
  1559. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1560. position: absolute;
  1561. right: 30px;
  1562. transform: translateY(-130%);
  1563. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1564. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1565. </div>
  1566. <div
  1567. v-if="
  1568. tType &&
  1569. tType == 2 &&
  1570. !sIsOpen &&
  1571. tool.tool.indexOf(16) != -1
  1572. "
  1573. class="worksBox"
  1574. >
  1575. <div
  1576. class="zuoyeYulan"
  1577. v-if="workStudent[toolIndex].length > 0"
  1578. >
  1579. <span class="worksTitle">作业预览</span>
  1580. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1581. </div>
  1582. <div
  1583. class="worksDetailBox"
  1584. v-if="workStudent[toolIndex].length > 0"
  1585. >
  1586. <div
  1587. class="works"
  1588. style="
  1589. width: 200px;
  1590. height: 140px;
  1591. margin: 10px 10px 10px 0;
  1592. box-shadow: 0 0 6px 1px #dfdada;
  1593. "
  1594. v-for="(w, wIndex) in workStudent[toolIndex]"
  1595. :key="wIndex"
  1596. >
  1597. <div class="workImg" v-if="w.type == 0">
  1598. <img
  1599. :src="w.works"
  1600. @click="previewImg(w.works,w)"
  1601. alt
  1602. />
  1603. <div
  1604. class="answerScore"
  1605. v-if="w.score"
  1606. @click.stop="openScore(w)"
  1607. :class="{
  1608. rightW:
  1609. w.userid == userid || tType == 1 || tType == 4,
  1610. }"
  1611. >
  1612. {{ JSON.parse(w.score).wScore }}分
  1613. </div>
  1614. <div
  1615. class="answerScore"
  1616. @click.stop="openScore(w)"
  1617. v-else-if="courseDetail.userid == userid"
  1618. :class="{
  1619. rightW:
  1620. w.userid == userid || tType == 1 || tType == 4,
  1621. }"
  1622. >
  1623. 评分
  1624. </div>
  1625. <img
  1626. class="deleteImg"
  1627. src="../assets/deleteworks.png"
  1628. v-if="
  1629. w.userid == userid || tType == 1 || tType == 4
  1630. "
  1631. @click.stop="deleteWorks(w.wid)"
  1632. alt
  1633. />
  1634. </div>
  1635. <div class="workImg" v-if="w.type == 1">
  1636. <img :src="word" @click="openFile(w.works,w)" alt />
  1637. <div
  1638. class="answerScore"
  1639. v-if="w.score"
  1640. @click.stop="openScore(w)"
  1641. :class="{
  1642. rightW:
  1643. w.userid == userid || tType == 1 || tType == 4,
  1644. }"
  1645. >
  1646. {{ JSON.parse(w.score).wScore }}分
  1647. </div>
  1648. <div
  1649. class="answerScore"
  1650. @click.stop="openScore(w)"
  1651. v-else-if="courseDetail.userid == userid"
  1652. :class="{
  1653. rightW:
  1654. w.userid == userid || tType == 1 || tType == 4,
  1655. }"
  1656. >
  1657. 评分
  1658. </div>
  1659. <img
  1660. class="deleteImg"
  1661. src="../assets/deleteworks.png"
  1662. v-if="
  1663. w.userid == userid || tType == 1 || tType == 4
  1664. "
  1665. @click.stop="deleteWorks(w.wid)"
  1666. alt
  1667. />
  1668. </div>
  1669. <div class="workImg" v-if="w.type == 3">
  1670. <img
  1671. style="cursor: pointer"
  1672. :src="video"
  1673. @click="openVideo(w)"
  1674. alt
  1675. />
  1676. <div
  1677. class="answerScore"
  1678. v-if="w.score"
  1679. @click.stop="openScore(w)"
  1680. :class="{
  1681. rightW:
  1682. w.userid == userid || tType == 1 || tType == 4,
  1683. }"
  1684. >
  1685. {{ JSON.parse(w.score).wScore }}分
  1686. </div>
  1687. <div
  1688. class="answerScore"
  1689. @click.stop="openScore(w)"
  1690. v-else-if="courseDetail.userid == userid"
  1691. :class="{
  1692. rightW:
  1693. w.userid == userid || tType == 1 || tType == 4,
  1694. }"
  1695. >
  1696. 评分
  1697. </div>
  1698. <img
  1699. class="deleteImg"
  1700. src="../assets/deleteworks.png"
  1701. v-if="
  1702. w.userid == userid || tType == 1 || tType == 4
  1703. "
  1704. @click.stop="deleteWorks(w.wid)"
  1705. alt
  1706. />
  1707. </div>
  1708. <div class="workImg" v-if="w.type == 12">
  1709. <img
  1710. style="cursor: pointer"
  1711. :src="word2"
  1712. @click="downloadFile(w.works,w.userid)"
  1713. alt
  1714. />
  1715. <div
  1716. class="answerScore"
  1717. v-if="w.score"
  1718. @click.stop="openScore(w)"
  1719. :class="{
  1720. rightW:
  1721. w.userid == userid || tType == 1 || tType == 4,
  1722. }"
  1723. >
  1724. {{ JSON.parse(w.score).wScore }}分
  1725. </div>
  1726. <div
  1727. class="answerScore"
  1728. @click.stop="openScore(w)"
  1729. v-else-if="courseDetail.userid == userid"
  1730. :class="{
  1731. rightW:
  1732. w.userid == userid || tType == 1 || tType == 4,
  1733. }"
  1734. >
  1735. 评分
  1736. </div>
  1737. <img
  1738. class="deleteImg"
  1739. src="../assets/deleteworks.png"
  1740. v-if="
  1741. w.userid == userid || tType == 1 || tType == 4
  1742. "
  1743. @click.stop="deleteWorks(w.wid)"
  1744. alt
  1745. />
  1746. </div>
  1747. <div class="worksName">
  1748. <div>{{ w.sName }}</div>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. </div>
  1753. <div
  1754. v-if="
  1755. tType &&
  1756. tType == 2 &&
  1757. !sIsOpen &&
  1758. tool.tool.indexOf(32) != -1
  1759. "
  1760. class="worksBox"
  1761. >
  1762. <div
  1763. class="zuoyeYulan"
  1764. v-if="workStudent[toolIndex].length > 0"
  1765. >
  1766. <span class="worksTitle">作业预览</span>
  1767. </div>
  1768. <div
  1769. class="worksDetailBox"
  1770. v-if="workStudent[toolIndex].length > 0"
  1771. >
  1772. <div
  1773. class="works"
  1774. style="
  1775. width: 200px;
  1776. height: 140px;
  1777. margin: 10px 10px 10px 0;
  1778. box-shadow: 0 0 6px 1px #dfdada;
  1779. "
  1780. v-for="(w, wIndex) in workStudent[toolIndex]"
  1781. :key="wIndex"
  1782. >
  1783. <div class="workImg">
  1784. <img
  1785. :src="word2"
  1786. @click="downloadFile(w.works,w.userid)"
  1787. alt
  1788. />
  1789. <div
  1790. class="answerScore"
  1791. v-if="w.score"
  1792. @click.stop="openScore(w)"
  1793. :class="{
  1794. rightW:
  1795. w.userid == userid || tType == 1 || tType == 4,
  1796. }"
  1797. >
  1798. {{ JSON.parse(w.score).wScore }}分
  1799. </div>
  1800. <div
  1801. class="answerScore"
  1802. @click.stop="openScore(w)"
  1803. v-else-if="courseDetail.userid == userid"
  1804. :class="{
  1805. rightW:
  1806. w.userid == userid || tType == 1 || tType == 4,
  1807. }"
  1808. >
  1809. 评分
  1810. </div>
  1811. <img
  1812. class="deleteImg"
  1813. src="../assets/deleteworks.png"
  1814. v-if="
  1815. w.userid == userid || tType == 1 || tType == 4
  1816. "
  1817. @click.stop="deleteWorks(w.wid)"
  1818. alt
  1819. />
  1820. </div>
  1821. <div class="worksName">
  1822. <div>{{ w.sName }}</div>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. <div
  1828. v-if="
  1829. tType &&
  1830. tType == 2 &&
  1831. !sIsOpen &&
  1832. tool.tool.indexOf(57) != -1
  1833. "
  1834. class="worksBox"
  1835. >
  1836. <div
  1837. class="zuoyeYulan"
  1838. v-if="workStudent[toolIndex].length > 0"
  1839. >
  1840. <span class="worksTitle">作业预览</span>
  1841. </div>
  1842. <div
  1843. class="worksDetailBox"
  1844. v-if="workStudent[toolIndex].length > 0"
  1845. >
  1846. <div
  1847. class="works"
  1848. style="
  1849. width: 200px;
  1850. height: 140px;
  1851. margin: 10px 10px 10px 0;
  1852. box-shadow: 0 0 6px 1px #dfdada;
  1853. "
  1854. v-for="(w, wIndex) in workStudent[toolIndex]"
  1855. :key="wIndex"
  1856. >
  1857. <div class="workImg">
  1858. <img
  1859. :src="word2"
  1860. @click="downloadFile(w.works,w.userid)"
  1861. v-if="w.type == 12"
  1862. alt
  1863. />
  1864. <img
  1865. :src="word2"
  1866. @click="
  1867. openCocoPi(57, toolIndex, w.userid, w.sName)
  1868. "
  1869. v-else-if="w.type == 15"
  1870. alt
  1871. />
  1872. <div
  1873. class="answerScore"
  1874. v-if="w.score"
  1875. @click.stop="openScore(w)"
  1876. :class="{
  1877. rightW:
  1878. w.userid == userid || tType == 1 || tType == 4,
  1879. }"
  1880. >
  1881. {{ JSON.parse(w.score).wScore }}分
  1882. </div>
  1883. <div
  1884. class="answerScore"
  1885. @click.stop="openScore(w)"
  1886. v-else-if="courseDetail.userid == userid"
  1887. :class="{
  1888. rightW:
  1889. w.userid == userid || tType == 1 || tType == 4,
  1890. }"
  1891. >
  1892. 评分
  1893. </div>
  1894. <img
  1895. class="deleteImg"
  1896. src="../assets/deleteworks.png"
  1897. v-if="
  1898. w.userid == userid || tType == 1 || tType == 4
  1899. "
  1900. @click.stop="deleteWorks(w.wid)"
  1901. alt
  1902. />
  1903. </div>
  1904. <div class="worksName">
  1905. <div>{{ w.sName }}</div>
  1906. </div>
  1907. </div>
  1908. </div>
  1909. </div>
  1910. <div
  1911. v-if="
  1912. tType &&
  1913. tType == 2 &&
  1914. !sIsOpen &&
  1915. tool.tool.indexOf(4) != -1
  1916. "
  1917. class="worksBox"
  1918. >
  1919. <div
  1920. class="zuoyeYulan"
  1921. v-if="workStudent[toolIndex].length > 0"
  1922. >
  1923. <span class="worksTitle">作业预览</span>
  1924. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1925. </div>
  1926. <div
  1927. class="worksDetailBox"
  1928. v-if="workStudent[toolIndex].length > 0"
  1929. >
  1930. <div
  1931. class="isWorksName2"
  1932. v-for="(w, wIndex) in workStudent[toolIndex]"
  1933. :key="wIndex"
  1934. @click="
  1935. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1936. "
  1937. >
  1938. {{ w.sName }}
  1939. <img
  1940. class="deleteImg deleteImg2"
  1941. src="../assets/deleteworks.png"
  1942. v-if="w.userid == userid || tType == 1 || tType == 4"
  1943. @click.stop="deleteWorks(w.wid)"
  1944. alt
  1945. />
  1946. </div>
  1947. <!-- <div
  1948. class="works"
  1949. style="
  1950. width: 200px;
  1951. height: 140px;
  1952. border-radius: 10px;
  1953. box-shadow: 0 0 6px 1px #dfdada;
  1954. overflow: hidden;
  1955. "
  1956. v-for="(w, wIndex) in workStudent[toolIndex]"
  1957. :key="wIndex"
  1958. >
  1959. <div class="workImg">
  1960. <img
  1961. src="../assets/icon/works/noImg.png"
  1962. @click="
  1963. openTools(
  1964. 4,
  1965. toolIndex,
  1966. taskCount,
  1967. w.works,
  1968. w.sName
  1969. )
  1970. "
  1971. alt
  1972. />
  1973. </div>
  1974. <div class="worksName">
  1975. <div>{{ w.sName }}</div>
  1976. <div>{{ w.time }}</div>
  1977. </div>
  1978. </div> -->
  1979. </div>
  1980. </div>
  1981. <div
  1982. v-if="
  1983. tType &&
  1984. ((tType == 2 && sIsOpen == true) ||
  1985. tType == 1 ||
  1986. tType == 4) &&
  1987. tool.tool.indexOf(62) != -1
  1988. "
  1989. class="worksBox"
  1990. >
  1991. <div
  1992. class="zuoyeYulan"
  1993. v-if="
  1994. worksStudent.length &&
  1995. worksStudent[toolIndex].length > 0
  1996. "
  1997. >
  1998. <div class="worksTop">
  1999. <div>作业预览</div>
  2000. <div
  2001. class="corOpen"
  2002. @click="contract(toolIndex)"
  2003. v-if="
  2004. (isCloseList[toolIndex].isCloseBoolean) &&
  2005. isCloseList[toolIndex].isClose == 0
  2006. "
  2007. >
  2008. 折叠
  2009. </div>
  2010. <div
  2011. class="corOpen"
  2012. @click="contract(toolIndex)"
  2013. v-if="isCloseList[toolIndex].isClose == 1"
  2014. >
  2015. 展开
  2016. </div>
  2017. </div>
  2018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2019. </div>
  2020. <div>
  2021. <div
  2022. :id="'tool-' + toolIndex"
  2023. :style="{
  2024. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2025. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2026. }"
  2027. class="worksDetailBox"
  2028. v-if="
  2029. worksStudent.length &&
  2030. worksStudent[toolIndex].length > 0
  2031. "
  2032. >
  2033. <div
  2034. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2035. :key="wIndex"
  2036. class="isWorksName2"
  2037. @click="
  2038. openTools(
  2039. 62,
  2040. toolIndex,
  2041. taskCount,
  2042. w.works,
  2043. w.sName
  2044. )
  2045. "
  2046. >
  2047. {{ w.sName }}
  2048. <img
  2049. class="deleteImg deleteImg2"
  2050. src="../assets/deleteworks.png"
  2051. v-if="
  2052. w.userid == userid || tType == 1 || tType == 4
  2053. "
  2054. @click.stop="deleteWorks(w.wid)"
  2055. alt
  2056. />
  2057. </div>
  2058. </div>
  2059. </div>
  2060. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2061. 未提交
  2062. </div>
  2063. <div
  2064. class="noWorksS"
  2065. v-if="noWorksS && noWorksS[toolIndex].length"
  2066. >
  2067. <div
  2068. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2069. :key="sIndex"
  2070. class="noWorksName"
  2071. >
  2072. <el-tooltip effect="dark" :content="s.student" placement="top">
  2073. <span>{{ s.student }}</span>
  2074. </el-tooltip>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. <div
  2079. v-if="
  2080. tType &&
  2081. tType == 2 &&
  2082. !sIsOpen &&
  2083. tool.tool.indexOf(62) != -1
  2084. "
  2085. class="worksBox"
  2086. >
  2087. <div
  2088. class="zuoyeYulan"
  2089. v-if="workStudent[toolIndex].length > 0"
  2090. >
  2091. <span class="worksTitle">作业预览</span>
  2092. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2093. </div>
  2094. <div
  2095. class="worksDetailBox"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <div
  2099. class="isWorksName2"
  2100. v-for="(w, wIndex) in workStudent[toolIndex]"
  2101. :key="wIndex"
  2102. @click="
  2103. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2104. "
  2105. >
  2106. {{ w.sName }}
  2107. <img
  2108. class="deleteImg deleteImg2"
  2109. src="../assets/deleteworks.png"
  2110. v-if="w.userid == userid || tType == 1 || tType == 4"
  2111. @click.stop="deleteWorks(w.wid)"
  2112. alt
  2113. />
  2114. </div>
  2115. </div>
  2116. </div>
  2117. <div
  2118. v-if="
  2119. tType &&
  2120. tType == 2 &&
  2121. !sIsOpen &&
  2122. tool.tool.indexOf(45) != -1
  2123. "
  2124. class="worksBox"
  2125. >
  2126. <div
  2127. class="zuoyeYulan"
  2128. v-if="workStudent[toolIndex].length > 0"
  2129. >
  2130. <span class="worksTitle">作业预览</span>
  2131. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2132. </div>
  2133. <div
  2134. class="worksDetailBox"
  2135. v-if="workStudent[toolIndex].length > 0"
  2136. >
  2137. <div
  2138. class="isWorksName2"
  2139. v-for="(w, wIndex) in workStudent[toolIndex]"
  2140. :key="wIndex"
  2141. @click="
  2142. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2143. "
  2144. >
  2145. {{ w.sName }}
  2146. <img
  2147. class="deleteImg deleteImg2"
  2148. src="../assets/deleteworks.png"
  2149. v-if="w.userid == userid || tType == 1 || tType == 4"
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. v-if="
  2158. tType &&
  2159. tType == 2 &&
  2160. !sIsOpen &&
  2161. tool.tool.indexOf(69) != -1
  2162. "
  2163. class="worksBox"
  2164. >
  2165. <div
  2166. class="zuoyeYulan"
  2167. v-if="workStudent[toolIndex].length > 0"
  2168. >
  2169. <span class="worksTitle">作业预览</span>
  2170. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2171. </div>
  2172. <div
  2173. class="worksDetailBox"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <div
  2177. class="isWorksName2"
  2178. v-for="(w, wIndex) in workStudent[toolIndex]"
  2179. :key="wIndex"
  2180. @click="
  2181. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2182. "
  2183. >
  2184. {{ w.sName }}
  2185. <img
  2186. class="deleteImg deleteImg2"
  2187. src="../assets/deleteworks.png"
  2188. v-if="w.userid == userid || tType == 1 || tType == 4"
  2189. @click.stop="deleteWorks(w.wid)"
  2190. alt
  2191. />
  2192. </div>
  2193. </div>
  2194. </div>
  2195. <div
  2196. v-if="
  2197. tType &&
  2198. tType == 2 &&
  2199. !sIsOpen &&
  2200. tool.tool.indexOf(15) != -1
  2201. "
  2202. class="worksBox"
  2203. >
  2204. <div
  2205. class="zuoyeYulan"
  2206. v-if="workStudent[toolIndex].length > 0"
  2207. >
  2208. <span class="worksTitle">作业预览</span>
  2209. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2210. </div>
  2211. <div
  2212. class="worksDetailBox"
  2213. v-if="workStudent[toolIndex].length > 0"
  2214. >
  2215. <div
  2216. class="works"
  2217. v-for="(w, wIndex) in workStudent[toolIndex]"
  2218. :key="wIndex"
  2219. >
  2220. <div class="workImg">
  2221. <!-- <img
  2222. src="../assets/icon/works/noImg.png"
  2223. @click="openTools(15, toolIndex, taskCount, w.works)"
  2224. alt=""
  2225. />-->
  2226. <div class="answerBg">
  2227. <!-- <div>{{ w.sName }}</div> -->
  2228. <el-tooltip
  2229. class="item"
  2230. effect="light"
  2231. :content="JSON.parse(w.works)[0].answer"
  2232. placement="top"
  2233. >
  2234. <div class="answerContent">
  2235. {{ JSON.parse(w.works)[0].answer }}
  2236. </div>
  2237. </el-tooltip>
  2238. <div
  2239. class="answerScore"
  2240. v-if="w.score"
  2241. @click.stop="openScore(w)"
  2242. :class="{
  2243. rightW:
  2244. w.userid == userid ||
  2245. tType == 1 ||
  2246. tType == 4,
  2247. }"
  2248. >
  2249. {{ JSON.parse(w.score).wScore }}分
  2250. </div>
  2251. <div
  2252. class="answerScore"
  2253. @click.stop="openScore(w)"
  2254. v-else-if="courseDetail.userid == userid"
  2255. :class="{
  2256. rightW:
  2257. w.userid == userid ||
  2258. tType == 1 ||
  2259. tType == 4,
  2260. }"
  2261. >
  2262. 评分
  2263. </div>
  2264. <img
  2265. class="deleteImg"
  2266. src="../assets/deleteworks.png"
  2267. v-if="
  2268. w.userid == userid || tType == 1 || tType == 4
  2269. "
  2270. @click.stop="deleteWorks(w.wid)"
  2271. alt
  2272. />
  2273. </div>
  2274. <div class="comment">
  2275. <div class="worksName">
  2276. <div>{{ w.sName }}</div>
  2277. </div>
  2278. </div>
  2279. </div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. <div
  2284. v-if="
  2285. tType &&
  2286. tType == 2 &&
  2287. !sIsOpen &&
  2288. tool.tool.indexOf(1) != -1
  2289. "
  2290. class="worksBox"
  2291. >
  2292. <div
  2293. class="zuoyeYulan"
  2294. v-if="workStudent[toolIndex].length > 0"
  2295. >
  2296. <span class="worksTitle">作业预览</span>
  2297. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2298. </div>
  2299. <div
  2300. class="worksDetailBox"
  2301. v-if="workStudent[toolIndex].length > 0"
  2302. >
  2303. <div
  2304. class="works"
  2305. style="
  2306. width: 200px;
  2307. height: 140px;
  2308. margin: 10px 10px 10px 0;
  2309. box-shadow: 0 0 6px 1px #dfdada;
  2310. "
  2311. v-for="(w, wIndex) in workStudent[toolIndex]"
  2312. :key="wIndex"
  2313. >
  2314. <div class="workImg">
  2315. <img
  2316. :src="w.works"
  2317. @click="previewImg(w.works,w)"
  2318. alt
  2319. />
  2320. <div
  2321. class="answerScore"
  2322. v-if="w.score"
  2323. @click.stop="openScore(w)"
  2324. :class="{
  2325. rightW:
  2326. w.userid == userid || tType == 1 || tType == 4,
  2327. }"
  2328. >
  2329. {{ JSON.parse(w.score).wScore }}分
  2330. </div>
  2331. <div
  2332. class="answerScore"
  2333. @click.stop="openScore(w)"
  2334. v-else-if="courseDetail.userid == userid"
  2335. :class="{
  2336. rightW:
  2337. w.userid == userid || tType == 1 || tType == 4,
  2338. }"
  2339. >
  2340. 评分
  2341. </div>
  2342. <img
  2343. class="deleteImg"
  2344. src="../assets/deleteworks.png"
  2345. v-if="
  2346. w.userid == userid || tType == 1 || tType == 4
  2347. "
  2348. @click.stop="deleteWorks(w.wid)"
  2349. alt
  2350. />
  2351. </div>
  2352. <div class="worksName">
  2353. <div>{{ w.sName }}</div>
  2354. </div>
  2355. </div>
  2356. </div>
  2357. </div>
  2358. <div
  2359. v-if="
  2360. tType &&
  2361. tType == 2 &&
  2362. !sIsOpen &&
  2363. tool.tool.indexOf(3) != -1
  2364. "
  2365. class="worksBox"
  2366. >
  2367. <div
  2368. class="zuoyeYulan"
  2369. v-if="workStudent[toolIndex].length > 0"
  2370. >
  2371. <span class="worksTitle">作业预览</span>
  2372. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2373. </div>
  2374. <div
  2375. class="worksDetailBox"
  2376. v-if="workStudent[toolIndex].length > 0"
  2377. >
  2378. <div
  2379. class="works"
  2380. style="
  2381. width: 200px;
  2382. height: 140px;
  2383. margin: 10px 10px 10px 0;
  2384. box-shadow: 0 0 6px 1px #dfdada;
  2385. "
  2386. v-for="(w, wIndex) in workStudent[toolIndex]"
  2387. :key="wIndex"
  2388. >
  2389. <div class="workImg">
  2390. <img
  2391. :src="w.works"
  2392. @click="previewImg(w.works,w)"
  2393. alt
  2394. />
  2395. <div
  2396. class="answerScore"
  2397. v-if="w.score"
  2398. @click.stop="openScore(w)"
  2399. :class="{
  2400. rightW:
  2401. w.userid == userid || tType == 1 || tType == 4,
  2402. }"
  2403. >
  2404. {{ JSON.parse(w.score).wScore }}分
  2405. </div>
  2406. <div
  2407. class="answerScore"
  2408. @click.stop="openScore(w)"
  2409. v-else-if="courseDetail.userid == userid"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid || tType == 1 || tType == 4,
  2413. }"
  2414. >
  2415. 评分
  2416. </div>
  2417. <img
  2418. class="deleteImg"
  2419. src="../assets/deleteworks.png"
  2420. v-if="
  2421. w.userid == userid || tType == 1 || tType == 4
  2422. "
  2423. @click.stop="deleteWorks(w.wid)"
  2424. alt
  2425. />
  2426. </div>
  2427. <div class="worksName">
  2428. <div>{{ w.sName }}</div>
  2429. </div>
  2430. </div>
  2431. </div>
  2432. </div>
  2433. <div
  2434. v-if="
  2435. tType &&
  2436. tType == 2 &&
  2437. !sIsOpen &&
  2438. tool.tool.indexOf(6) != -1
  2439. "
  2440. class="worksBox"
  2441. >
  2442. <div
  2443. class="zuoyeYulan"
  2444. v-if="workStudent[toolIndex].length > 0"
  2445. >
  2446. <span class="worksTitle">作业预览</span>
  2447. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2448. </div>
  2449. <div
  2450. class="worksDetailBox"
  2451. v-if="workStudent[toolIndex].length > 0"
  2452. >
  2453. <div
  2454. class="works"
  2455. style="
  2456. width: 200px;
  2457. height: 140px;
  2458. margin: 10px 10px 10px 0;
  2459. box-shadow: 0 0 6px 1px #dfdada;
  2460. "
  2461. v-for="(w, wIndex) in workStudent[toolIndex]"
  2462. :key="wIndex"
  2463. >
  2464. <div class="workImg">
  2465. <img
  2466. :src="w.works"
  2467. @click="previewImg(w.works,w)"
  2468. alt
  2469. />
  2470. <div
  2471. class="answerScore"
  2472. v-if="w.score"
  2473. @click.stop="openScore(w)"
  2474. :class="{
  2475. rightW:
  2476. w.userid == userid || tType == 1 || tType == 4,
  2477. }"
  2478. >
  2479. {{ JSON.parse(w.score).wScore }}分
  2480. </div>
  2481. <div
  2482. class="answerScore"
  2483. @click.stop="openScore(w)"
  2484. v-else-if="courseDetail.userid == userid"
  2485. :class="{
  2486. rightW:
  2487. w.userid == userid || tType == 1 || tType == 4,
  2488. }"
  2489. >
  2490. 评分
  2491. </div>
  2492. <img
  2493. class="deleteImg"
  2494. src="../assets/deleteworks.png"
  2495. v-if="
  2496. w.userid == userid || tType == 1 || tType == 4
  2497. "
  2498. @click.stop="deleteWorks(w.wid)"
  2499. alt
  2500. />
  2501. </div>
  2502. <div class="worksName">
  2503. <div>{{ w.sName }}</div>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. <div
  2509. v-if="
  2510. tType &&
  2511. tType == 2 &&
  2512. !sIsOpen &&
  2513. tool.tool.indexOf(7) != -1
  2514. "
  2515. class="worksBox"
  2516. >
  2517. <div
  2518. class="zuoyeYulan"
  2519. v-if="workStudent[toolIndex].length > 0"
  2520. >
  2521. <span class="worksTitle">作业预览</span>
  2522. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2523. </div>
  2524. <div
  2525. class="worksDetailBox"
  2526. v-if="workStudent[toolIndex].length > 0"
  2527. >
  2528. <div
  2529. class="works"
  2530. style="
  2531. width: 200px;
  2532. height: 140px;
  2533. margin: 10px 10px 10px 0;
  2534. box-shadow: 0 0 6px 1px #dfdada;
  2535. "
  2536. v-for="(w, wIndex) in workStudent[toolIndex]"
  2537. :key="wIndex"
  2538. >
  2539. <div class="workImg">
  2540. <img
  2541. :src="w.works"
  2542. @click="previewImg(w.works,w)"
  2543. alt
  2544. />
  2545. <div
  2546. class="answerScore"
  2547. v-if="w.score"
  2548. @click.stop="openScore(w)"
  2549. :class="{
  2550. rightW:
  2551. w.userid == userid || tType == 1 || tType == 4,
  2552. }"
  2553. >
  2554. {{ JSON.parse(w.score).wScore }}分
  2555. </div>
  2556. <div
  2557. class="answerScore"
  2558. @click.stop="openScore(w)"
  2559. v-else-if="courseDetail.userid == userid"
  2560. :class="{
  2561. rightW:
  2562. w.userid == userid || tType == 1 || tType == 4,
  2563. }"
  2564. >
  2565. 评分
  2566. </div>
  2567. <img
  2568. class="deleteImg"
  2569. src="../assets/deleteworks.png"
  2570. v-if="
  2571. w.userid == userid || tType == 1 || tType == 4
  2572. "
  2573. @click.stop="deleteWorks(w.wid)"
  2574. alt
  2575. />
  2576. </div>
  2577. <div class="worksName">
  2578. <div>{{ w.sName }}</div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. <div
  2584. v-if="
  2585. tType &&
  2586. tType == 2 &&
  2587. !sIsOpen &&
  2588. tool.tool.indexOf(26) != -1
  2589. "
  2590. class="worksBox"
  2591. >
  2592. <div
  2593. class="zuoyeYulan"
  2594. v-if="workStudent[toolIndex].length > 0"
  2595. >
  2596. <span class="worksTitle">作业预览</span>
  2597. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2598. </div>
  2599. <div
  2600. class="worksDetailBox"
  2601. v-if="workStudent[toolIndex].length > 0"
  2602. >
  2603. <div
  2604. class="works"
  2605. style="
  2606. width: 200px;
  2607. height: 140px;
  2608. margin: 10px 10px 10px 0;
  2609. box-shadow: 0 0 6px 1px #dfdada;
  2610. "
  2611. v-for="(w, wIndex) in workStudent[toolIndex]"
  2612. :key="wIndex"
  2613. >
  2614. <div class="workImg">
  2615. <img
  2616. :src="w.works"
  2617. @click="previewImg(w.works,w)"
  2618. alt
  2619. />
  2620. <img
  2621. class="deleteImg"
  2622. src="../assets/deleteworks.png"
  2623. v-if="
  2624. w.userid == userid || tType == 1 || tType == 4
  2625. "
  2626. @click.stop="deleteWorks(w.wid)"
  2627. alt
  2628. />
  2629. </div>
  2630. <div class="worksName">
  2631. <div>{{ w.sName }}</div>
  2632. </div>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. <div
  2637. v-if="
  2638. tType &&
  2639. ((tType == 2 && sIsOpen == true) ||
  2640. tType == 1 ||
  2641. tType == 4) &&
  2642. tool.tool.indexOf(16) != -1
  2643. "
  2644. class="worksBox"
  2645. >
  2646. <div
  2647. class="zuoyeYulan"
  2648. v-if="
  2649. (worksStudent.length &&
  2650. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2651. "
  2652. >
  2653. <div class="worksTop">
  2654. <div>作业预览</div>
  2655. <div
  2656. class="corOpen"
  2657. @click="contract(toolIndex)"
  2658. v-if="
  2659. (isCloseList[toolIndex].isCloseBoolean) &&
  2660. isCloseList[toolIndex].isClose == 0
  2661. "
  2662. >
  2663. 折叠
  2664. </div>
  2665. <div
  2666. class="corOpen"
  2667. @click="contract(toolIndex)"
  2668. v-if="isCloseList[toolIndex].isClose == 1"
  2669. >
  2670. 展开
  2671. </div>
  2672. </div>
  2673. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2674. </div>
  2675. <div
  2676. class="group_workBox"
  2677. v-for="(g, gindex) in courseGroup.group"
  2678. :key="gindex"
  2679. >
  2680. <div class="group_box">
  2681. <div class="group_title">
  2682. <el-tooltip
  2683. class="item"
  2684. effect="light"
  2685. :content="g.name"
  2686. placement="top"
  2687. >
  2688. <div class="group_name">{{ g.name }}</div>
  2689. </el-tooltip>
  2690. </div>
  2691. <div
  2692. class="group_work"
  2693. v-if="
  2694. g.works &&
  2695. g.works.length &&
  2696. g.works[toolIndex].length
  2697. "
  2698. >
  2699. <div
  2700. class="works"
  2701. style="
  2702. width: 200px;
  2703. height: 140px;
  2704. margin: 10px 10px 10px 0;
  2705. border-radius: 15px;
  2706. box-shadow: 0 0 6px 1px #dfdada;
  2707. "
  2708. v-for="(w, wIndex) in g.works[toolIndex]"
  2709. :key="wIndex"
  2710. :class="w.type == 1 ? 'isTypeOne' : ''"
  2711. >
  2712. <div class="workImg" v-if="w.type == 0">
  2713. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2714. <img
  2715. :src="w.works"
  2716. @click="previewImg(w.works,w)"
  2717. alt
  2718. />
  2719. <div
  2720. class="answerScore"
  2721. v-if="w.score"
  2722. @click.stop="openScore(w)"
  2723. :class="{
  2724. rightW:
  2725. w.userid == userid ||
  2726. tType == 1 ||
  2727. tType == 4 ||
  2728. w.ateacher == userid,
  2729. }"
  2730. >
  2731. {{ JSON.parse(w.score).wScore }}分
  2732. </div>
  2733. <div
  2734. class="answerScore"
  2735. @click.stop="openScore(w)"
  2736. v-else-if="courseDetail.userid == userid"
  2737. :class="{
  2738. rightW:
  2739. w.userid == userid ||
  2740. tType == 1 ||
  2741. tType == 4 ||
  2742. w.ateacher == userid,
  2743. }"
  2744. >
  2745. 评分
  2746. </div>
  2747. <img
  2748. class="deleteImg"
  2749. src="../assets/deleteworks.png"
  2750. v-if="
  2751. w.userid == userid || tType == 1 || tType == 4
  2752. "
  2753. @click.stop="deleteWorks(w.wid)"
  2754. alt
  2755. />
  2756. </div>
  2757. <div class="workImg" v-if="w.type == 1">
  2758. <img :src="word" @click="openFile(w.works,w)" alt />
  2759. <!-- @click="openFile(w.works)" -->
  2760. <div
  2761. class="answerScore"
  2762. v-if="w.score"
  2763. @click.stop="openScore(w)"
  2764. :class="{
  2765. rightW:
  2766. w.userid == userid ||
  2767. tType == 1 ||
  2768. tType == 4 ||
  2769. w.ateacher == userid,
  2770. }"
  2771. >
  2772. {{ JSON.parse(w.score).wScore }}分
  2773. </div>
  2774. <div
  2775. class="answerScore"
  2776. @click.stop="openScore(w)"
  2777. v-else-if="courseDetail.userid == userid"
  2778. :class="{
  2779. rightW:
  2780. w.userid == userid ||
  2781. tType == 1 ||
  2782. tType == 4 ||
  2783. w.ateacher == userid,
  2784. }"
  2785. >
  2786. 评分
  2787. </div>
  2788. <img
  2789. class="deleteImg"
  2790. src="../assets/deleteworks.png"
  2791. v-if="
  2792. w.userid == userid || tType == 1 || tType == 4
  2793. "
  2794. @click.stop="deleteWorks(w.wid)"
  2795. alt
  2796. />
  2797. </div>
  2798. <div class="workImg" v-if="w.type == 3">
  2799. <img
  2800. style="cursor: pointer"
  2801. :src="video"
  2802. @click="openVideo(w)"
  2803. alt
  2804. />
  2805. <!-- @click="openVideo(w.works)" -->
  2806. <div
  2807. class="answerScore"
  2808. v-if="w.score"
  2809. @click.stop="openScore(w)"
  2810. :class="{
  2811. rightW:
  2812. w.userid == userid ||
  2813. tType == 1 ||
  2814. tType == 4 ||
  2815. w.ateacher == userid,
  2816. }"
  2817. >
  2818. {{ JSON.parse(w.score).wScore }}分
  2819. </div>
  2820. <div
  2821. class="answerScore"
  2822. @click.stop="openScore(w)"
  2823. v-else-if="courseDetail.userid == userid"
  2824. :class="{
  2825. rightW:
  2826. w.userid == userid ||
  2827. tType == 1 ||
  2828. tType == 4 ||
  2829. w.ateacher == userid,
  2830. }"
  2831. >
  2832. 评分
  2833. </div>
  2834. <img
  2835. class="deleteImg"
  2836. src="../assets/deleteworks.png"
  2837. v-if="
  2838. w.userid == userid || tType == 1 || tType == 4
  2839. "
  2840. @click.stop="deleteWorks(w.wid)"
  2841. alt
  2842. />
  2843. </div>
  2844. <div class="workImg" v-if="w.type == 12">
  2845. <img
  2846. style="cursor: pointer"
  2847. :src="word2"
  2848. @click="downloadFile(w.works,w.userid)"
  2849. alt
  2850. />
  2851. <!-- @click="openVideo(w.works)" -->
  2852. <div
  2853. class="answerScore"
  2854. v-if="w.score"
  2855. @click.stop="openScore(w)"
  2856. :class="{
  2857. rightW:
  2858. w.userid == userid ||
  2859. tType == 1 ||
  2860. tType == 4 ||
  2861. w.ateacher == userid,
  2862. }"
  2863. >
  2864. {{ JSON.parse(w.score).wScore }}分
  2865. </div>
  2866. <div
  2867. class="answerScore"
  2868. @click.stop="openScore(w)"
  2869. v-else-if="courseDetail.userid == userid"
  2870. :class="{
  2871. rightW:
  2872. w.userid == userid ||
  2873. tType == 1 ||
  2874. tType == 4 ||
  2875. w.ateacher == userid,
  2876. }"
  2877. >
  2878. 评分
  2879. </div>
  2880. <img
  2881. class="deleteImg"
  2882. src="../assets/deleteworks.png"
  2883. v-if="
  2884. w.userid == userid || tType == 1 || tType == 4
  2885. "
  2886. @click.stop="deleteWorks(w.wid)"
  2887. alt
  2888. />
  2889. </div>
  2890. <div class="comment" style="min-width: 200px">
  2891. <div class="worksName">
  2892. <div>{{ w.sName }}</div>
  2893. </div>
  2894. <div class="commentList">
  2895. <div class="commentList">
  2896. <div
  2897. class="commentImg"
  2898. @click="
  2899. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2900. "
  2901. >
  2902. <img
  2903. :src="w.isLikes == true ? likes : noLikes"
  2904. alt=""
  2905. />
  2906. </div>
  2907. <div>{{ w.likesCount }}</div>
  2908. </div>
  2909. <div
  2910. class="commentList"
  2911. style="margin-right: 15px"
  2912. >
  2913. <div
  2914. class="commentImg"
  2915. @click="
  2916. commentOther(
  2917. w,
  2918. toolIndex,
  2919. wIndex,
  2920. null,
  2921. g.id
  2922. )
  2923. "
  2924. >
  2925. <img
  2926. src="../assets/icon/comment/comment.png"
  2927. alt=""
  2928. />
  2929. </div>
  2930. <div>{{ w.commentCount }}</div>
  2931. </div>
  2932. </div>
  2933. </div>
  2934. </div>
  2935. </div>
  2936. <div class="group_work" v-else>暂无提交作业</div>
  2937. </div>
  2938. </div>
  2939. <div
  2940. :id="'tool-' + toolIndex"
  2941. :style="{
  2942. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2943. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2944. }"
  2945. class="worksDetailBox"
  2946. v-if="
  2947. worksStudent.length &&
  2948. worksStudent[toolIndex].length > 0
  2949. "
  2950. >
  2951. <div
  2952. class="works"
  2953. style="
  2954. width: 200px;
  2955. height: 140px;
  2956. margin: 10px 10px 10px 0;
  2957. border-radius: 15px;
  2958. box-shadow: 0 0 6px 1px #dfdada;
  2959. "
  2960. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2961. :key="wIndex"
  2962. :class="w.type == 1 ? 'isTypeOne' : ''"
  2963. >
  2964. <div class="workImg" v-if="w.type == 0">
  2965. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2966. <img
  2967. :src="w.works"
  2968. @click="previewImg(w.works,w)"
  2969. alt
  2970. />
  2971. <div
  2972. class="answerScore"
  2973. v-if="w.score"
  2974. @click.stop="openScore(w)"
  2975. :class="{
  2976. rightW:
  2977. w.userid == userid ||
  2978. tType == 1 ||
  2979. tType == 4 ||
  2980. w.ateacher == userid,
  2981. }"
  2982. >
  2983. {{ JSON.parse(w.score).wScore }}分
  2984. </div>
  2985. <div
  2986. class="answerScore"
  2987. @click.stop="openScore(w)"
  2988. v-else-if="courseDetail.userid == userid"
  2989. :class="{
  2990. rightW:
  2991. w.userid == userid ||
  2992. tType == 1 ||
  2993. tType == 4 ||
  2994. w.ateacher == userid,
  2995. }"
  2996. >
  2997. 评分
  2998. </div>
  2999. <img
  3000. class="deleteImg"
  3001. src="../assets/deleteworks.png"
  3002. v-if="
  3003. w.userid == userid || tType == 1 || tType == 4
  3004. "
  3005. @click.stop="deleteWorks(w.wid)"
  3006. alt
  3007. />
  3008. </div>
  3009. <div class="workImg" v-if="w.type == 1">
  3010. <img :src="word" @click="openFile(w.works,w)" alt />
  3011. <!-- @click="openFile(w.works)" -->
  3012. <div
  3013. class="answerScore"
  3014. v-if="w.score"
  3015. @click.stop="openScore(w)"
  3016. :class="{
  3017. rightW:
  3018. w.userid == userid ||
  3019. tType == 1 ||
  3020. tType == 4 ||
  3021. w.ateacher == userid,
  3022. }"
  3023. >
  3024. {{ JSON.parse(w.score).wScore }}分
  3025. </div>
  3026. <div
  3027. class="answerScore"
  3028. @click.stop="openScore(w)"
  3029. v-else-if="courseDetail.userid == userid"
  3030. :class="{
  3031. rightW:
  3032. w.userid == userid ||
  3033. tType == 1 ||
  3034. tType == 4 ||
  3035. w.ateacher == userid,
  3036. }"
  3037. >
  3038. 评分
  3039. </div>
  3040. <img
  3041. class="deleteImg"
  3042. src="../assets/deleteworks.png"
  3043. v-if="
  3044. w.userid == userid || tType == 1 || tType == 4
  3045. "
  3046. @click.stop="deleteWorks(w.wid)"
  3047. alt
  3048. />
  3049. </div>
  3050. <div class="workImg" v-if="w.type == 3">
  3051. <img
  3052. style="cursor: pointer"
  3053. :src="video"
  3054. @click="openVideo(w)"
  3055. alt
  3056. />
  3057. <!-- @click="openVideo(w.works)" -->
  3058. <div
  3059. class="answerScore"
  3060. v-if="w.score"
  3061. @click.stop="openScore(w)"
  3062. :class="{
  3063. rightW:
  3064. w.userid == userid ||
  3065. tType == 1 ||
  3066. tType == 4 ||
  3067. w.ateacher == userid,
  3068. }"
  3069. >
  3070. {{ JSON.parse(w.score).wScore }}分
  3071. </div>
  3072. <div
  3073. class="answerScore"
  3074. @click.stop="openScore(w)"
  3075. v-else-if="courseDetail.userid == userid"
  3076. :class="{
  3077. rightW:
  3078. w.userid == userid ||
  3079. tType == 1 ||
  3080. tType == 4 ||
  3081. w.ateacher == userid,
  3082. }"
  3083. >
  3084. 评分
  3085. </div>
  3086. <img
  3087. class="deleteImg"
  3088. src="../assets/deleteworks.png"
  3089. v-if="
  3090. w.userid == userid || tType == 1 || tType == 4
  3091. "
  3092. @click.stop="deleteWorks(w.wid)"
  3093. alt
  3094. />
  3095. </div>
  3096. <div class="workImg" v-if="w.type == 12">
  3097. <img
  3098. style="cursor: pointer"
  3099. :src="word2"
  3100. @click="downloadFile(w.works,w.userid)"
  3101. alt
  3102. />
  3103. <!-- @click="openVideo(w.works)" -->
  3104. <div
  3105. class="answerScore"
  3106. v-if="w.score"
  3107. @click.stop="openScore(w)"
  3108. :class="{
  3109. rightW:
  3110. w.userid == userid ||
  3111. tType == 1 ||
  3112. tType == 4 ||
  3113. w.ateacher == userid,
  3114. }"
  3115. >
  3116. {{ JSON.parse(w.score).wScore }}分
  3117. </div>
  3118. <div
  3119. class="answerScore"
  3120. @click.stop="openScore(w)"
  3121. v-else-if="courseDetail.userid == userid"
  3122. :class="{
  3123. rightW:
  3124. w.userid == userid ||
  3125. tType == 1 ||
  3126. tType == 4 ||
  3127. w.ateacher == userid,
  3128. }"
  3129. >
  3130. 评分
  3131. </div>
  3132. <img
  3133. class="deleteImg"
  3134. src="../assets/deleteworks.png"
  3135. v-if="
  3136. w.userid == userid || tType == 1 || tType == 4
  3137. "
  3138. @click.stop="deleteWorks(w.wid)"
  3139. alt
  3140. />
  3141. </div>
  3142. <div class="comment" style="min-width: 200px">
  3143. <div class="worksName">
  3144. <div>{{ w.sName }}</div>
  3145. </div>
  3146. <div class="commentList">
  3147. <div class="commentList">
  3148. <div
  3149. class="commentImg"
  3150. @click="
  3151. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3152. "
  3153. >
  3154. <img
  3155. :src="w.isLikes == true ? likes : noLikes"
  3156. alt=""
  3157. />
  3158. </div>
  3159. <div>{{ w.likesCount }}</div>
  3160. </div>
  3161. <div class="commentList" style="margin-right: 15px">
  3162. <div
  3163. class="commentImg"
  3164. @click="commentOther(w, toolIndex, wIndex)"
  3165. >
  3166. <img
  3167. src="../assets/icon/comment/comment.png"
  3168. alt=""
  3169. />
  3170. </div>
  3171. <div>{{ w.commentCount }}</div>
  3172. </div>
  3173. </div>
  3174. </div>
  3175. </div>
  3176. </div>
  3177. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3178. 未提交
  3179. </div>
  3180. <div
  3181. class="noWorksS"
  3182. v-if="noWorksS && noWorksS[toolIndex].length"
  3183. >
  3184. <div
  3185. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3186. :key="sIndex"
  3187. class="noWorksName"
  3188. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3189. >
  3190. <el-tooltip effect="dark" :content="s.student" placement="top">
  3191. <span>{{ s.student }}</span>
  3192. </el-tooltip>
  3193. </div>
  3194. </div>
  3195. </div>
  3196. <div
  3197. v-if="
  3198. tType &&
  3199. ((tType == 2 && sIsOpen == true) ||
  3200. tType == 1 ||
  3201. tType == 4) &&
  3202. tool.tool.indexOf(70) != -1
  3203. "
  3204. class="worksBox"
  3205. >
  3206. <div
  3207. class="zuoyeYulan"
  3208. v-if="
  3209. (worksStudent.length &&
  3210. worksStudent[toolIndex].length > 0)
  3211. "
  3212. >
  3213. <div class="worksTop">
  3214. <div>作业预览</div>
  3215. <div
  3216. class="corOpen"
  3217. @click="contract(toolIndex)"
  3218. v-if="
  3219. (isCloseList[toolIndex].isCloseBoolean) &&
  3220. isCloseList[toolIndex].isClose == 0
  3221. "
  3222. >
  3223. 折叠
  3224. </div>
  3225. <div
  3226. class="corOpen"
  3227. @click="contract(toolIndex)"
  3228. v-if="isCloseList[toolIndex].isClose == 1"
  3229. >
  3230. 展开
  3231. </div>
  3232. </div>
  3233. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3234. </div>
  3235. <div
  3236. :id="'tool-' + toolIndex"
  3237. :style="{
  3238. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3239. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3240. }"
  3241. class="worksDetailBox"
  3242. v-if="
  3243. worksStudent.length &&
  3244. worksStudent[toolIndex].length > 0
  3245. "
  3246. >
  3247. <div
  3248. class="works"
  3249. style="
  3250. width: 200px;
  3251. height: 140px;
  3252. margin: 10px 10px 10px 0;
  3253. border-radius: 15px;
  3254. box-shadow: 0 0 6px 1px #dfdada;
  3255. "
  3256. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3257. :key="wIndex"
  3258. :class="w.type == 1 ? 'isTypeOne' : ''"
  3259. >
  3260. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3261. <img :src="word" alt />
  3262. <img
  3263. class="deleteImg"
  3264. src="../assets/deleteworks.png"
  3265. v-if="
  3266. w.userid == userid || tType == 1 || tType == 4
  3267. "
  3268. @click.stop="deleteWorks(w.wid)"
  3269. alt
  3270. />
  3271. </div>
  3272. <div class="comment" style="min-width: 200px">
  3273. <div class="worksName">
  3274. <div>{{ w.sName }}</div>
  3275. </div>
  3276. </div>
  3277. </div>
  3278. </div>
  3279. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3280. 未提交
  3281. </div>
  3282. <div
  3283. class="noWorksS"
  3284. v-if="noWorksS && noWorksS[toolIndex].length"
  3285. >
  3286. <div
  3287. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3288. :key="sIndex"
  3289. class="noWorksName"
  3290. >
  3291. <el-tooltip effect="dark" :content="s.student" placement="top">
  3292. <span>{{ s.student }}</span>
  3293. </el-tooltip>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. <div
  3298. v-if="
  3299. tType &&
  3300. tType == 2 &&
  3301. !sIsOpen &&
  3302. tool.tool.indexOf(70) != -1
  3303. "
  3304. class="worksBox"
  3305. >
  3306. <div
  3307. class="zuoyeYulan"
  3308. v-if="workStudent[toolIndex].length > 0"
  3309. >
  3310. <span class="worksTitle">作业预览</span>
  3311. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3312. </div>
  3313. <div
  3314. class="worksDetailBox"
  3315. v-if="workStudent[toolIndex].length > 0"
  3316. >
  3317. <div
  3318. class="works"
  3319. style="
  3320. width: 200px;
  3321. height: 140px;
  3322. margin: 10px 10px 10px 0;
  3323. box-shadow: 0 0 6px 1px #dfdada;
  3324. "
  3325. v-for="(w, wIndex) in workStudent[toolIndex]"
  3326. :key="wIndex"
  3327. >
  3328. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3329. <img :src="word" alt />
  3330. <img
  3331. class="deleteImg"
  3332. src="../assets/deleteworks.png"
  3333. v-if="
  3334. w.userid == userid || tType == 1 || tType == 4
  3335. "
  3336. @click.stop="deleteWorks(w.wid)"
  3337. alt
  3338. />
  3339. </div>
  3340. <div class="worksName">
  3341. <div>{{ w.sName }}</div>
  3342. </div>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. ((tType == 2 && sIsOpen == true) ||
  3350. tType == 1 ||
  3351. tType == 4) &&
  3352. tool.tool.indexOf(32) != -1
  3353. "
  3354. class="worksBox"
  3355. >
  3356. <div
  3357. class="zuoyeYulan"
  3358. v-if="
  3359. worksStudent.length &&
  3360. worksStudent[toolIndex].length > 0
  3361. "
  3362. >
  3363. <div class="worksTop">
  3364. <div>作业预览</div>
  3365. <div
  3366. class="corOpen"
  3367. @click="contract(toolIndex)"
  3368. v-if="
  3369. (isCloseList[toolIndex].isCloseBoolean) &&
  3370. isCloseList[toolIndex].isClose == 0
  3371. "
  3372. >
  3373. 折叠
  3374. </div>
  3375. <div
  3376. class="corOpen"
  3377. @click="contract(toolIndex)"
  3378. v-if="isCloseList[toolIndex].isClose == 1"
  3379. >
  3380. 展开
  3381. </div>
  3382. </div>
  3383. </div>
  3384. <div
  3385. :id="'tool-' + toolIndex"
  3386. class="worksDetailBox"
  3387. :style="{
  3388. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3389. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3390. }"
  3391. v-if="
  3392. worksStudent.length &&
  3393. worksStudent[toolIndex].length > 0
  3394. "
  3395. >
  3396. <div
  3397. class="works"
  3398. style="
  3399. width: 200px;
  3400. height: 140px;
  3401. margin: 10px 10px 10px 0;
  3402. border-radius: 15px;
  3403. box-shadow: 0 0 6px 1px #dfdada;
  3404. "
  3405. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3406. :key="wIndex"
  3407. :class="w.type == 1 ? 'isTypeOne' : ''"
  3408. >
  3409. <div class="workImg">
  3410. <img
  3411. :src="word2"
  3412. @click="downloadFile(w.works,w.userid)"
  3413. alt
  3414. />
  3415. <div
  3416. class="answerScore"
  3417. v-if="w.score"
  3418. @click.stop="openScore(w)"
  3419. :class="{
  3420. rightW:
  3421. w.userid == userid ||
  3422. tType == 1 ||
  3423. tType == 4 ||
  3424. w.ateacher == userid,
  3425. }"
  3426. >
  3427. {{ JSON.parse(w.score).wScore }}分
  3428. </div>
  3429. <div
  3430. class="answerScore"
  3431. @click.stop="openScore(w)"
  3432. v-else-if="courseDetail.userid == userid"
  3433. :class="{
  3434. rightW:
  3435. w.userid == userid ||
  3436. tType == 1 ||
  3437. tType == 4 ||
  3438. w.ateacher == userid,
  3439. }"
  3440. >
  3441. 评分
  3442. </div>
  3443. <img
  3444. class="deleteImg"
  3445. src="../assets/deleteworks.png"
  3446. v-if="
  3447. w.userid == userid || tType == 1 || tType == 4
  3448. "
  3449. @click.stop="deleteWorks(w.wid)"
  3450. alt
  3451. />
  3452. </div>
  3453. <div class="comment" style="min-width: 200px">
  3454. <div class="worksName">
  3455. <div>{{ w.sName }}</div>
  3456. </div>
  3457. <div class="commentList">
  3458. <div class="commentList">
  3459. <div
  3460. class="commentImg"
  3461. @click="
  3462. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3463. "
  3464. >
  3465. <img
  3466. :src="w.isLikes == true ? likes : noLikes"
  3467. alt=""
  3468. />
  3469. </div>
  3470. <div>{{ w.likesCount }}</div>
  3471. </div>
  3472. <div class="commentList" style="margin-right: 15px">
  3473. <div
  3474. class="commentImg"
  3475. @click="commentOther(w, toolIndex, wIndex)"
  3476. >
  3477. <img
  3478. src="../assets/icon/comment/comment.png"
  3479. alt=""
  3480. />
  3481. </div>
  3482. <div>{{ w.commentCount }}</div>
  3483. </div>
  3484. </div>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3489. 未提交
  3490. </div>
  3491. <div
  3492. class="noWorksS"
  3493. v-if="noWorksS && noWorksS[toolIndex].length"
  3494. >
  3495. <div
  3496. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3497. :key="sIndex"
  3498. class="noWorksName"
  3499. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3500. >
  3501. <el-tooltip effect="dark" :content="s.student" placement="top">
  3502. <span>{{ s.student }}</span>
  3503. </el-tooltip>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. <div
  3508. v-if="
  3509. tType &&
  3510. ((tType == 2 && sIsOpen == true) ||
  3511. tType == 1 ||
  3512. tType == 4) &&
  3513. tool.tool.indexOf(57) != -1
  3514. "
  3515. class="worksBox"
  3516. >
  3517. <div
  3518. class="zuoyeYulan"
  3519. v-if="
  3520. worksStudent.length &&
  3521. worksStudent[toolIndex].length > 0
  3522. "
  3523. >
  3524. <div class="worksTop">
  3525. <div>作业预览</div>
  3526. <div
  3527. class="corOpen"
  3528. @click="contract(toolIndex)"
  3529. v-if="
  3530. (isCloseList[toolIndex].isCloseBoolean) &&
  3531. isCloseList[toolIndex].isClose == 0
  3532. "
  3533. >
  3534. 折叠
  3535. </div>
  3536. <div
  3537. class="corOpen"
  3538. @click="contract(toolIndex)"
  3539. v-if="isCloseList[toolIndex].isClose == 1"
  3540. >
  3541. 展开
  3542. </div>
  3543. </div>
  3544. </div>
  3545. <div
  3546. :id="'tool-' + toolIndex"
  3547. class="worksDetailBox"
  3548. :style="{
  3549. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3550. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3551. }"
  3552. v-if="
  3553. worksStudent.length &&
  3554. worksStudent[toolIndex].length > 0
  3555. "
  3556. >
  3557. <div
  3558. class="works"
  3559. style="
  3560. width: 200px;
  3561. height: 140px;
  3562. margin: 10px 10px 10px 0;
  3563. border-radius: 15px;
  3564. box-shadow: 0 0 6px 1px #dfdada;
  3565. "
  3566. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3567. :key="wIndex"
  3568. :class="w.type == 1 ? 'isTypeOne' : ''"
  3569. >
  3570. <div class="workImg">
  3571. <img
  3572. :src="word2"
  3573. @click="downloadFile(w.works,w.userid)"
  3574. v-if="w.type == 12"
  3575. alt
  3576. />
  3577. <img
  3578. :src="word2"
  3579. @click="
  3580. openCocoPi(57, toolIndex, w.userid, w.sName)
  3581. "
  3582. v-else-if="w.type == 15"
  3583. alt
  3584. />
  3585. <div
  3586. class="answerScore"
  3587. v-if="w.score"
  3588. @click.stop="openScore(w)"
  3589. :class="{
  3590. rightW:
  3591. w.userid == userid ||
  3592. tType == 1 ||
  3593. tType == 4 ||
  3594. w.ateacher == userid,
  3595. }"
  3596. >
  3597. {{ JSON.parse(w.score).wScore }}分
  3598. </div>
  3599. <div
  3600. class="answerScore"
  3601. @click.stop="openScore(w)"
  3602. v-else-if="courseDetail.userid == userid"
  3603. :class="{
  3604. rightW:
  3605. w.userid == userid ||
  3606. tType == 1 ||
  3607. tType == 4 ||
  3608. w.ateacher == userid,
  3609. }"
  3610. >
  3611. 评分
  3612. </div>
  3613. <img
  3614. class="deleteImg"
  3615. src="../assets/deleteworks.png"
  3616. v-if="
  3617. w.userid == userid || tType == 1 || tType == 4
  3618. "
  3619. @click.stop="deleteWorks(w.wid)"
  3620. alt
  3621. />
  3622. </div>
  3623. <div class="comment" style="min-width: 200px">
  3624. <div class="worksName">
  3625. <div>{{ w.sName }}</div>
  3626. </div>
  3627. <div class="commentList">
  3628. <div class="commentList">
  3629. <div
  3630. class="commentImg"
  3631. @click="
  3632. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3633. "
  3634. >
  3635. <img
  3636. :src="w.isLikes == true ? likes : noLikes"
  3637. alt=""
  3638. />
  3639. </div>
  3640. <div>{{ w.likesCount }}</div>
  3641. </div>
  3642. <div class="commentList" style="margin-right: 15px">
  3643. <div
  3644. class="commentImg"
  3645. @click="commentOther(w, toolIndex, wIndex)"
  3646. >
  3647. <img
  3648. src="../assets/icon/comment/comment.png"
  3649. alt=""
  3650. />
  3651. </div>
  3652. <div>{{ w.commentCount }}</div>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3659. 未提交
  3660. </div>
  3661. <div
  3662. class="noWorksS"
  3663. v-if="noWorksS && noWorksS[toolIndex].length"
  3664. >
  3665. <div
  3666. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3667. :key="sIndex"
  3668. class="noWorksName"
  3669. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3670. >
  3671. <el-tooltip effect="dark" :content="s.student" placement="top">
  3672. <span>{{ s.student }}</span>
  3673. </el-tooltip>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. <div
  3678. v-if="
  3679. tType &&
  3680. ((tType == 2 && sIsOpen == true) ||
  3681. tType == 1 ||
  3682. tType == 4) &&
  3683. tool.tool.indexOf(72) != -1
  3684. "
  3685. class="worksBox"
  3686. >
  3687. <div
  3688. class="zuoyeYulan"
  3689. v-if="
  3690. worksStudent.length &&
  3691. worksStudent[toolIndex].length > 0
  3692. "
  3693. >
  3694. <div class="worksTop">
  3695. <div>作业预览</div>
  3696. <div
  3697. class="corOpen"
  3698. @click="contract(toolIndex)"
  3699. v-if="
  3700. isCloseList[toolIndex].isCloseBoolean &&
  3701. isCloseList[toolIndex].isClose == 0
  3702. "
  3703. >
  3704. 折叠
  3705. </div>
  3706. <div
  3707. class="corOpen"
  3708. @click="contract(toolIndex)"
  3709. v-if="isCloseList[toolIndex].isClose == 1"
  3710. >
  3711. 展开
  3712. </div>
  3713. </div>
  3714. </div>
  3715. <div
  3716. :id="'tool-' + toolIndex"
  3717. :style="{
  3718. height:
  3719. isCloseList[toolIndex].isClose == 1
  3720. ? retrnToolHeight('tool-' + toolIndex)
  3721. : 'auto',
  3722. overflow:
  3723. isCloseList[toolIndex].isClose == 1
  3724. ? 'hidden'
  3725. : 'unset'
  3726. }"
  3727. class="worksDetailBox"
  3728. v-if="
  3729. worksStudent.length &&
  3730. worksStudent[toolIndex].length > 0
  3731. "
  3732. >
  3733. <div
  3734. class="works"
  3735. style="
  3736. width: 200px;
  3737. height: 140px;
  3738. margin: 10px 10px 10px 0;
  3739. border-radius: 15px;
  3740. box-shadow: 0 0 6px 1px #dfdada;
  3741. "
  3742. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3743. :key="wIndex"
  3744. :class="w.type == 1 ? 'isTypeOne' : ''"
  3745. >
  3746. <div class="workImg">
  3747. <!-- <img
  3748. :src="word2"
  3749. @click="downloadFile(w.works)"
  3750. v-if="w.type == 12"
  3751. alt
  3752. /> -->
  3753. <img
  3754. :src="word2"
  3755. @click="
  3756. openCocoFlow(w)
  3757. "
  3758. alt
  3759. />
  3760. <div
  3761. class="answerScore"
  3762. v-if="w.score"
  3763. @click.stop="openScore(w)"
  3764. :class="{
  3765. rightW:
  3766. w.userid == userid ||
  3767. tType == 1 ||
  3768. tType == 4 ||
  3769. w.ateacher == userid
  3770. }"
  3771. >
  3772. {{ JSON.parse(w.score).wScore }}分
  3773. </div>
  3774. <div
  3775. class="answerScore"
  3776. @click.stop="openScore(w)"
  3777. v-else-if="
  3778. courseDetail.userid == userid &&
  3779. courseDetail.state != 5 &&
  3780. chapInfoList[courseType].chapterInfo[0]
  3781. .taskJson[taskCount].eList &&
  3782. chapInfoList[courseType].chapterInfo[0]
  3783. .taskJson[taskCount].eList.length
  3784. "
  3785. :class="{
  3786. rightW:
  3787. w.userid == userid ||
  3788. tType == 1 ||
  3789. tType == 4 ||
  3790. w.ateacher == userid
  3791. }"
  3792. >
  3793. 评分
  3794. </div>
  3795. <img
  3796. class="deleteImg"
  3797. src="../assets/deleteworks.png"
  3798. v-if="
  3799. w.userid == userid || tType == 1 || tType == 4
  3800. "
  3801. @click.stop="deleteWorks(w.wid)"
  3802. alt
  3803. />
  3804. </div>
  3805. <div class="comment" style="min-width: 200px">
  3806. <div class="worksName">
  3807. <div>{{ w.sName }}</div>
  3808. </div>
  3809. <div class="commentList">
  3810. <div class="commentList">
  3811. <div
  3812. class="commentImg"
  3813. @click="
  3814. isLikes(
  3815. w.wid,
  3816. userid,
  3817. 1,
  3818. null,
  3819. w.isLikes,
  3820. w.sName
  3821. )
  3822. "
  3823. >
  3824. <img
  3825. :src="w.isLikes == true ? likes : noLikes"
  3826. alt=""
  3827. />
  3828. </div>
  3829. <div>{{ w.likesCount }}</div>
  3830. </div>
  3831. <div class="commentList" style="margin-right: 15px">
  3832. <div
  3833. class="commentImg"
  3834. @click="commentOther(w, toolIndex, wIndex)"
  3835. >
  3836. <img
  3837. src="../assets/icon/comment/comment.png"
  3838. alt=""
  3839. />
  3840. </div>
  3841. <div>{{ w.commentCount }}</div>
  3842. </div>
  3843. </div>
  3844. </div>
  3845. </div>
  3846. </div>
  3847. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3848. 未提交
  3849. </div>
  3850. <div
  3851. class="noWorksS"
  3852. v-if="noWorksS && noWorksS[toolIndex].length"
  3853. >
  3854. <div
  3855. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3856. :key="sIndex"
  3857. class="noWorksName2"
  3858. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3859. >
  3860. <el-tooltip
  3861. effect="dark"
  3862. :content="s.student"
  3863. placement="top"
  3864. >
  3865. <span>{{ s.student }}</span>
  3866. </el-tooltip>
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div
  3871. v-if="
  3872. tType &&
  3873. tType == 2 &&
  3874. !sIsOpen &&
  3875. tool.tool.indexOf(72) != -1
  3876. "
  3877. class="worksBox"
  3878. >
  3879. <div
  3880. class="zuoyeYulan"
  3881. v-if="workStudent[toolIndex].length > 0"
  3882. >
  3883. <span class="worksTitle">作业预览</span>
  3884. </div>
  3885. <div
  3886. class="worksDetailBox"
  3887. v-if="workStudent[toolIndex].length > 0"
  3888. >
  3889. <div
  3890. class="works"
  3891. style="
  3892. width: 200px;
  3893. height: 140px;
  3894. margin: 10px 10px 10px 0;
  3895. box-shadow: 0 0 6px 1px #dfdada;
  3896. "
  3897. v-for="(w, wIndex) in workStudent[toolIndex]"
  3898. :key="wIndex"
  3899. >
  3900. <div class="workImg">
  3901. <!-- <img
  3902. :src="word2"
  3903. @click="downloadFile(w.works)"
  3904. v-if="w.type == 12"
  3905. alt
  3906. /> -->
  3907. <img
  3908. :src="word2"
  3909. @click="
  3910. openCocoFlow(w)
  3911. "
  3912. alt
  3913. />
  3914. <div
  3915. class="answerScore"
  3916. v-if="w.score"
  3917. @click.stop="openScore(w)"
  3918. :class="{
  3919. rightW:
  3920. w.userid == userid || tType == 1 || tType == 4
  3921. }"
  3922. >
  3923. {{ JSON.parse(w.score).wScore }}分
  3924. </div>
  3925. <div
  3926. class="answerScore"
  3927. @click.stop="openScore(w)"
  3928. v-else-if="courseDetail.userid == userid"
  3929. :class="{
  3930. rightW:
  3931. w.userid == userid || tType == 1 || tType == 4
  3932. }"
  3933. >
  3934. 评分
  3935. </div>
  3936. <img
  3937. class="deleteImg"
  3938. src="../assets/deleteworks.png"
  3939. v-if="
  3940. w.userid == userid || tType == 1 || tType == 4
  3941. "
  3942. @click.stop="deleteWorks(w.wid)"
  3943. alt
  3944. />
  3945. </div>
  3946. <div class="worksName">
  3947. <div>{{ w.sName }}</div>
  3948. </div>
  3949. </div>
  3950. </div>
  3951. </div>
  3952. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3953. <div
  3954. class="zuoyeYulan"
  3955. v-if="
  3956. worksStudent.length &&
  3957. worksStudent[toolIndex].length > 0
  3958. "
  3959. >
  3960. <span class="worksTitle">作业预览</span>
  3961. <div
  3962. class="corOpen"
  3963. @click="contract(toolIndex)"
  3964. v-if="
  3965. (isCloseList[toolIndex].isCloseBoolean) &&
  3966. isCloseList[toolIndex].isClose == 0
  3967. "
  3968. >
  3969. 折叠
  3970. </div>
  3971. <div
  3972. class="corOpen"
  3973. @click="contract(toolIndex)"
  3974. v-if="isCloseList[toolIndex].isClose == 1"
  3975. >
  3976. 展开
  3977. </div>
  3978. </div>
  3979. <div
  3980. :id="'tool-' + toolIndex"
  3981. :style="{
  3982. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3983. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3984. }"
  3985. class="worksDetailBox"
  3986. v-if="
  3987. worksStudent.length &&
  3988. worksStudent[toolIndex].length > 0
  3989. "
  3990. >
  3991. <div
  3992. class="works"
  3993. style="
  3994. width: 200px;
  3995. height: 140px;
  3996. margin: 10px 10px 10px 0;
  3997. border-radius: 15px;
  3998. box-shadow: 0 0 6px 1px #dfdada;
  3999. "
  4000. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4001. :key="wIndex"
  4002. :class="w.type == 1 ? 'isTypeOne' : ''"
  4003. >
  4004. <div class="workImg" v-if="w.type == 0">
  4005. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4006. <img
  4007. :src="w.works"
  4008. @click="previewImg(w.works,w)"
  4009. alt
  4010. />
  4011. <div
  4012. class="answerScore"
  4013. v-if="w.score"
  4014. @click.stop="openScore(w)"
  4015. :class="{
  4016. rightW:
  4017. w.userid == userid ||
  4018. tType == 1 ||
  4019. tType == 4 ||
  4020. w.ateacher == userid,
  4021. }"
  4022. >
  4023. {{ JSON.parse(w.score).wScore }}分
  4024. </div>
  4025. <div
  4026. class="answerScore"
  4027. @click.stop="openScore(w)"
  4028. v-else-if="courseDetail.userid == userid"
  4029. :class="{
  4030. rightW:
  4031. w.userid == userid ||
  4032. tType == 1 ||
  4033. tType == 4 ||
  4034. w.ateacher == userid,
  4035. }"
  4036. >
  4037. 评分
  4038. </div>
  4039. <img
  4040. class="deleteImg"
  4041. src="../assets/deleteworks.png"
  4042. v-if="
  4043. w.userid == userid || tType == 1 || tType == 4
  4044. "
  4045. @click.stop="deleteWorks(w.wid)"
  4046. alt
  4047. />
  4048. </div>
  4049. <div
  4050. class="workImg"
  4051. style="cursor: pointer"
  4052. v-if="w.type == 1"
  4053. >
  4054. <img :src="word" @click="openFile(w.works,w)" alt />
  4055. <!-- @click="openFile(w.works)" -->
  4056. <div
  4057. class="answerScore"
  4058. v-if="w.score"
  4059. @click.stop="openScore(w)"
  4060. :class="{
  4061. rightW:
  4062. w.userid == userid ||
  4063. tType == 1 ||
  4064. tType == 4 ||
  4065. w.ateacher == userid,
  4066. }"
  4067. >
  4068. {{ JSON.parse(w.score).wScore }}分
  4069. </div>
  4070. <div
  4071. class="answerScore"
  4072. @click.stop="openScore(w)"
  4073. v-else-if="courseDetail.userid == userid"
  4074. :class="{
  4075. rightW:
  4076. w.userid == userid ||
  4077. tType == 1 ||
  4078. tType == 4 ||
  4079. w.ateacher == userid,
  4080. }"
  4081. >
  4082. 评分
  4083. </div>
  4084. <img
  4085. class="deleteImg"
  4086. src="../assets/deleteworks.png"
  4087. v-if="
  4088. w.userid == userid || tType == 1 || tType == 4
  4089. "
  4090. @click.stop="deleteWorks(w.wid)"
  4091. alt
  4092. />
  4093. </div>
  4094. <div class="workImg" v-if="w.type == 3">
  4095. <img
  4096. style="cursor: pointer"
  4097. :src="video"
  4098. @click="openVideo(w)"
  4099. alt
  4100. />
  4101. <!-- @click="openVideo(w.works)" -->
  4102. <div
  4103. class="answerScore"
  4104. v-if="w.score"
  4105. @click.stop="openScore(w)"
  4106. :class="{
  4107. rightW:
  4108. w.userid == userid ||
  4109. tType == 1 ||
  4110. tType == 4 ||
  4111. w.ateacher == userid,
  4112. }"
  4113. >
  4114. {{ JSON.parse(w.score).wScore }}分
  4115. </div>
  4116. <div
  4117. class="answerScore"
  4118. @click.stop="openScore(w)"
  4119. v-else-if="courseDetail.userid == userid"
  4120. :class="{
  4121. rightW:
  4122. w.userid == userid ||
  4123. tType == 1 ||
  4124. tType == 4 ||
  4125. w.ateacher == userid,
  4126. }"
  4127. >
  4128. 评分
  4129. </div>
  4130. <img
  4131. class="deleteImg"
  4132. src="../assets/deleteworks.png"
  4133. v-if="
  4134. w.userid == userid || tType == 1 || tType == 4
  4135. "
  4136. @click.stop="deleteWorks(w.wid)"
  4137. alt
  4138. />
  4139. </div>
  4140. <div class="comment" style="min-width: 200px">
  4141. <div class="worksName">
  4142. <div
  4143. style="cursor: pointer"
  4144. @click="
  4145. openSname(w.sName, w.wid, toolIndex, w.userid)
  4146. "
  4147. >
  4148. {{ w.sName }}
  4149. </div>
  4150. </div>
  4151. <div class="commentList">
  4152. <div class="commentList">
  4153. <div
  4154. class="commentImg"
  4155. @click="
  4156. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4157. "
  4158. >
  4159. <img
  4160. :src="w.isLikes == true ? likes : noLikes"
  4161. alt=""
  4162. />
  4163. </div>
  4164. <div>{{ w.likesCount }}</div>
  4165. </div>
  4166. <div class="commentList" style="margin-right: 15px">
  4167. <div
  4168. class="commentImg"
  4169. @click="commentOther(w, toolIndex, wIndex)"
  4170. >
  4171. <img
  4172. src="../assets/icon/comment/comment.png"
  4173. alt=""
  4174. />
  4175. </div>
  4176. <div>{{ w.commentCount }}</div>
  4177. </div>
  4178. </div>
  4179. </div>
  4180. </div>
  4181. </div>
  4182. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4183. 未提交
  4184. </div>
  4185. <div
  4186. class="noWorksS"
  4187. v-if="noWorksS && noWorksS[toolIndex].length"
  4188. >
  4189. <div
  4190. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4191. :key="sIndex"
  4192. class="noWorksName"
  4193. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4194. >
  4195. <el-tooltip effect="dark" :content="s.student" placement="top">
  4196. <span>{{ s.student }}</span>
  4197. </el-tooltip>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. <div
  4202. v-if="
  4203. tType &&
  4204. ((tType == 2 && sIsOpen == true) ||
  4205. tType == 1 ||
  4206. tType == 4) &&
  4207. tool.tool.indexOf(4) != -1 &&
  4208. (tool.askJson[0].answer ||
  4209. tool.askJson[0].answer === 0) &&
  4210. checkJson[toolIndex].length
  4211. "
  4212. class="xuan_right_box"
  4213. >
  4214. <div
  4215. class="tool_right_box"
  4216. v-for="(item, index) in tool.askJson"
  4217. :key="index"
  4218. >
  4219. <div style="width: calc(100% - 30px);">
  4220. <el-tooltip
  4221. effect="light"
  4222. :content="index + 1 + '、' + item.askstitle"
  4223. placement="top"
  4224. popper-class="text_tooltip"
  4225. >
  4226. <div
  4227. style="
  4228. width: calc(100% - 130px);
  4229. display: block;
  4230. white-space: nowrap;
  4231. overflow: hidden;
  4232. text-overflow: ellipsis;
  4233. word-break: break-word;
  4234. cursor: pointer;
  4235. "
  4236. >
  4237. {{ index + 1 + "、" + item.askstitle }}
  4238. </div>
  4239. </el-tooltip>
  4240. </div>
  4241. <div class="right_box_xuan">
  4242. <span>正确率</span>
  4243. <span>{{
  4244. (checkJson[toolIndex][index].right
  4245. ? checkJson[toolIndex][index].right
  4246. : 0) + "%"
  4247. }}</span>
  4248. </div>
  4249. </div>
  4250. </div>
  4251. <div
  4252. class="xuan_right_box"
  4253. style="background: unset; padding: 0 10px"
  4254. v-if="
  4255. tType &&
  4256. ((tType == 2 && sIsOpen == true) ||
  4257. tType == 1 ||
  4258. tType == 4) &&
  4259. tool.tool.indexOf(4) != -1
  4260. "
  4261. >
  4262. <AskStatic
  4263. v-if="
  4264. worksStudent.length &&
  4265. worksStudent[toolIndex].length > 0
  4266. "
  4267. :askJSON="tool"
  4268. :checkJson="checkJson[toolIndex]"
  4269. ></AskStatic>
  4270. </div>
  4271. <div
  4272. v-if="
  4273. tType &&
  4274. ((tType == 2 && sIsOpen == true) ||
  4275. tType == 1 ||
  4276. tType == 4) &&
  4277. tool.tool.indexOf(4) != -1
  4278. "
  4279. class="worksBox"
  4280. >
  4281. <div
  4282. class="zuoyeYulan"
  4283. v-if="
  4284. worksStudent.length &&
  4285. worksStudent[toolIndex].length > 0
  4286. "
  4287. >
  4288. <div class="worksTop">
  4289. <div>作业预览</div>
  4290. <div
  4291. class="corOpen"
  4292. @click="contract(toolIndex)"
  4293. v-if="
  4294. (isCloseList[toolIndex].isCloseBoolean) &&
  4295. isCloseList[toolIndex].isClose == 0
  4296. "
  4297. >
  4298. 折叠
  4299. </div>
  4300. <div
  4301. class="corOpen"
  4302. @click="contract(toolIndex)"
  4303. v-if="isCloseList[toolIndex].isClose == 1"
  4304. >
  4305. 展开
  4306. </div>
  4307. </div>
  4308. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4309. </div>
  4310. <div>
  4311. <div
  4312. :id="'tool-' + toolIndex"
  4313. :style="{
  4314. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4315. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4316. }"
  4317. class="worksDetailBox"
  4318. v-if="
  4319. worksStudent.length &&
  4320. worksStudent[toolIndex].length > 0
  4321. "
  4322. >
  4323. <div
  4324. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4325. :key="wIndex"
  4326. class="isWorksName2"
  4327. @click="
  4328. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4329. "
  4330. >
  4331. {{ w.sName }}
  4332. <img
  4333. class="deleteImg deleteImg2"
  4334. src="../assets/deleteworks.png"
  4335. v-if="
  4336. w.userid == userid || tType == 1 || tType == 4
  4337. "
  4338. @click.stop="deleteWorks(w.wid)"
  4339. alt
  4340. />
  4341. </div>
  4342. <!-- <div class="works" style="
  4343. width: 200px;
  4344. height: 140px;
  4345. border-radius: 10px;
  4346. box-shadow: 0 0 6px 1px #dfdada;
  4347. overflow: hidden;
  4348. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4349. <div class="workImg">
  4350. <img src="../assets/icon/works/noImg.png" @click="
  4351. openTools(
  4352. 4,
  4353. toolIndex,
  4354. taskCount,
  4355. w.works,
  4356. w.sName
  4357. )
  4358. " alt />
  4359. </div>
  4360. <div class="worksName">
  4361. <div>{{ w.sName }}</div>
  4362. <div>{{ w.time }}</div>
  4363. </div>
  4364. </div> -->
  4365. </div>
  4366. </div>
  4367. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4368. 未提交
  4369. </div>
  4370. <div
  4371. class="noWorksS"
  4372. v-if="noWorksS && noWorksS[toolIndex].length"
  4373. >
  4374. <div
  4375. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4376. :key="sIndex"
  4377. class="noWorksName"
  4378. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4379. >
  4380. <el-tooltip effect="dark" :content="s.student" placement="top">
  4381. <span>{{ s.student }}</span>
  4382. </el-tooltip>
  4383. </div>
  4384. </div>
  4385. </div>
  4386. <div
  4387. v-if="
  4388. tType &&
  4389. ((tType == 2 && sIsOpen == true) ||
  4390. tType == 1 ||
  4391. tType == 4) &&
  4392. tool.tool.indexOf(45) != -1 &&
  4393. (tool.testJson.testJson[0].answer ||
  4394. tool.testJson.testJson[0].answer === 0) &&
  4395. checkJson[toolIndex].length
  4396. "
  4397. class="xuan_right_box"
  4398. >
  4399. <div
  4400. class="tool_right_box"
  4401. v-for="(item, index) in tool.testJson.testJson"
  4402. :key="index"
  4403. >
  4404. <div class="right_box_xuan" style="margin-right: 10px">
  4405. <span>正确率</span>
  4406. <span>{{
  4407. (checkJson[toolIndex][index].right
  4408. ? checkJson[toolIndex][index].right
  4409. : 0) + "%"
  4410. }}</span>
  4411. </div>
  4412. <div style="width: calc(100% - 30px);">
  4413. <el-tooltip
  4414. effect="light"
  4415. :content="index + 1 + '、' + item.teststitle"
  4416. placement="top"
  4417. popper-class="text_tooltip"
  4418. >
  4419. <div
  4420. style="
  4421. width: calc(100% - 130px);
  4422. display: flex;
  4423. white-space: nowrap;
  4424. overflow: hidden;
  4425. text-overflow: ellipsis;
  4426. word-break: break-word;
  4427. cursor: pointer;
  4428. "
  4429. class="renderedFor"
  4430. >
  4431. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4432. </div>
  4433. </el-tooltip>
  4434. </div>
  4435. </div>
  4436. </div>
  4437. <div
  4438. class="xuan_right_box"
  4439. style="background: unset; padding: 0 10px; width: 91.5%"
  4440. v-if="
  4441. tType &&
  4442. ((tType == 2 && sIsOpen == true) ||
  4443. tType == 1 ||
  4444. tType == 4) &&
  4445. tool.tool.indexOf(45) != -1
  4446. "
  4447. >
  4448. <AskStatic2
  4449. v-if="
  4450. worksStudent.length &&
  4451. worksStudent[toolIndex].length > 0
  4452. "
  4453. :askJSON="tool"
  4454. :checkJson="checkJson[toolIndex]"
  4455. ></AskStatic2>
  4456. </div>
  4457. <div
  4458. v-if="
  4459. tType &&
  4460. ((tType == 2 && sIsOpen == true) ||
  4461. tType == 1 ||
  4462. tType == 4) &&
  4463. tool.tool.indexOf(45) != -1
  4464. "
  4465. class="worksBox"
  4466. >
  4467. <div
  4468. class="zuoyeYulan"
  4469. v-if="
  4470. worksStudent.length &&
  4471. worksStudent[toolIndex].length > 0
  4472. "
  4473. >
  4474. <div class="worksTop">
  4475. <div>作业预览</div>
  4476. <div
  4477. class="corOpen"
  4478. @click="contract(toolIndex)"
  4479. v-if="
  4480. (isCloseList[toolIndex].isCloseBoolean) &&
  4481. isCloseList[toolIndex].isClose == 0
  4482. "
  4483. >
  4484. 折叠
  4485. </div>
  4486. <div
  4487. class="corOpen"
  4488. @click="contract(toolIndex)"
  4489. v-if="isCloseList[toolIndex].isClose == 1"
  4490. >
  4491. 展开
  4492. </div>
  4493. </div>
  4494. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4495. </div>
  4496. <div>
  4497. <div
  4498. :id="'tool-' + toolIndex"
  4499. :style="{
  4500. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4501. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4502. }"
  4503. class="worksDetailBox"
  4504. v-if="
  4505. worksStudent.length &&
  4506. worksStudent[toolIndex].length > 0
  4507. "
  4508. >
  4509. <div
  4510. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4511. :key="wIndex"
  4512. class="isWorksName2"
  4513. @click="
  4514. openTools(
  4515. 45,
  4516. toolIndex,
  4517. taskCount,
  4518. w.works,
  4519. w.sName
  4520. )
  4521. "
  4522. >
  4523. {{ w.sName }}
  4524. <img
  4525. class="deleteImg deleteImg2"
  4526. src="../assets/deleteworks.png"
  4527. v-if="
  4528. w.userid == userid || tType == 1 || tType == 4
  4529. "
  4530. @click.stop="deleteWorks(w.wid)"
  4531. alt
  4532. />
  4533. </div>
  4534. </div>
  4535. </div>
  4536. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4537. 未提交
  4538. </div>
  4539. <div
  4540. class="noWorksS"
  4541. v-if="noWorksS && noWorksS[toolIndex].length"
  4542. >
  4543. <div
  4544. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4545. :key="sIndex"
  4546. class="noWorksName"
  4547. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4548. >
  4549. <el-tooltip effect="dark" :content="s.student" placement="top">
  4550. <span>{{ s.student }}</span>
  4551. </el-tooltip>
  4552. </div>
  4553. </div>
  4554. </div>
  4555. <div
  4556. v-if="
  4557. tType &&
  4558. ((tType == 2 && sIsOpen == true) ||
  4559. tType == 1 ||
  4560. tType == 4) &&
  4561. tool.tool.indexOf(69) != -1
  4562. "
  4563. class="worksBox"
  4564. >
  4565. <div
  4566. class="zuoyeYulan"
  4567. v-if="
  4568. worksStudent.length &&
  4569. worksStudent[toolIndex].length > 0
  4570. "
  4571. >
  4572. <div class="worksTop">
  4573. <div>作业预览</div>
  4574. <div
  4575. class="corOpen"
  4576. @click="contract(toolIndex)"
  4577. v-if="
  4578. (isCloseList[toolIndex].isCloseBoolean) &&
  4579. isCloseList[toolIndex].isClose == 0
  4580. "
  4581. >
  4582. 折叠
  4583. </div>
  4584. <div
  4585. class="corOpen"
  4586. @click="contract(toolIndex)"
  4587. v-if="isCloseList[toolIndex].isClose == 1"
  4588. >
  4589. 展开
  4590. </div>
  4591. </div>
  4592. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4593. </div>
  4594. <div>
  4595. <div
  4596. :id="'tool-' + toolIndex"
  4597. :style="{
  4598. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4599. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4600. }"
  4601. class="worksDetailBox"
  4602. v-if="
  4603. worksStudent.length &&
  4604. worksStudent[toolIndex].length > 0
  4605. "
  4606. >
  4607. <div
  4608. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4609. :key="wIndex"
  4610. class="isWorksName2"
  4611. style="width: 160px;height: 65px;line-height: 65px;"
  4612. @click="
  4613. openTools(
  4614. 69,
  4615. toolIndex,
  4616. taskCount,
  4617. w.works,
  4618. w.sName,
  4619. w.wid
  4620. )
  4621. "
  4622. >
  4623. {{ w.sName }}
  4624. <img
  4625. class="deleteImg1"
  4626. src="../assets/evaEnglish.png"
  4627. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4628. alt
  4629. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4630. />
  4631. <img
  4632. class="deleteImg deleteImg2"
  4633. src="../assets/deleteworks.png"
  4634. v-if="
  4635. w.userid == userid || tType == 1 || tType == 4
  4636. "
  4637. @click.stop="deleteWorks(w.wid)"
  4638. alt
  4639. />
  4640. </div>
  4641. </div>
  4642. </div>
  4643. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4644. 未提交
  4645. </div>
  4646. <div
  4647. class="noWorksS"
  4648. v-if="noWorksS && noWorksS[toolIndex].length"
  4649. >
  4650. <div
  4651. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4652. :key="sIndex"
  4653. class="noWorksName"
  4654. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4655. >
  4656. <el-tooltip effect="dark" :content="s.student" placement="top">
  4657. <span>{{ s.student }}</span>
  4658. </el-tooltip>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div
  4663. v-if="
  4664. tType &&
  4665. ((tType == 2 && sIsOpen == true) ||
  4666. tType == 1 ||
  4667. tType == 4) &&
  4668. tool.tool.indexOf(15) != -1
  4669. "
  4670. class="worksBox"
  4671. >
  4672. <div
  4673. class="zuoyeYulan"
  4674. v-if="
  4675. (worksStudent.length &&
  4676. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4677. "
  4678. >
  4679. <div class="worksTop">
  4680. <div>作业预览</div>
  4681. <div
  4682. class="corOpen"
  4683. @click="contract(toolIndex)"
  4684. v-if="
  4685. (isCloseList[toolIndex].isCloseBoolean) &&
  4686. isCloseList[toolIndex].isClose == 0
  4687. "
  4688. >
  4689. 折叠
  4690. </div>
  4691. <div
  4692. class="corOpen"
  4693. @click="contract(toolIndex)"
  4694. v-if="isCloseList[toolIndex].isClose == 1"
  4695. >
  4696. 展开
  4697. </div>
  4698. </div>
  4699. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4700. </div>
  4701. <div
  4702. class="group_workBox"
  4703. v-for="(g, gindex) in courseGroup.group"
  4704. :key="gindex"
  4705. >
  4706. <div class="group_box">
  4707. <div class="group_title">
  4708. <el-tooltip
  4709. class="item"
  4710. effect="light"
  4711. :content="g.name"
  4712. placement="top"
  4713. >
  4714. <div class="group_name">{{ g.name }}</div>
  4715. </el-tooltip>
  4716. </div>
  4717. <div
  4718. class="group_work"
  4719. v-if="
  4720. g.works &&
  4721. g.works.length &&
  4722. g.works[toolIndex].length
  4723. "
  4724. >
  4725. <div
  4726. class="works"
  4727. v-for="(w, wIndex) in g.works[toolIndex]"
  4728. :key="wIndex"
  4729. >
  4730. <div
  4731. class="workImg"
  4732. style="
  4733. border-radius: 15px;
  4734. box-shadow: 0px 0px 5px 5px #eee;
  4735. "
  4736. >
  4737. <div
  4738. class="answerBg"
  4739. style="border-radius: 15px 15px 0 0"
  4740. @click="
  4741. commentOther(w, toolIndex, wIndex, null, g.id)
  4742. "
  4743. >
  4744. <div class="answerContent">
  4745. {{ JSON.parse(w.works)[0].answer }}
  4746. </div>
  4747. <div
  4748. class="answerScore"
  4749. v-if="w.score"
  4750. @click.stop="openScore(w)"
  4751. :class="{
  4752. rightW:
  4753. w.userid == userid ||
  4754. tType == 1 ||
  4755. tType == 4,
  4756. }"
  4757. >
  4758. {{ JSON.parse(w.score).wScore }}分
  4759. </div>
  4760. <div
  4761. class="answerScore"
  4762. @click.stop="openScore(w)"
  4763. v-else-if="courseDetail.userid == userid"
  4764. :class="{
  4765. rightW:
  4766. w.userid == userid ||
  4767. tType == 1 ||
  4768. tType == 4,
  4769. }"
  4770. >
  4771. 评分
  4772. </div>
  4773. <img
  4774. class="deleteImg"
  4775. src="../assets/deleteworks.png"
  4776. v-if="
  4777. w.userid == userid ||
  4778. tType == 1 ||
  4779. tType == 4
  4780. "
  4781. @click.stop="deleteWorks(w.wid)"
  4782. alt
  4783. />
  4784. </div>
  4785. <div class="comment">
  4786. <div class="worksName">
  4787. <div>{{ w.sName }}</div>
  4788. </div>
  4789. <div class="commentList">
  4790. <div
  4791. class="commentImg"
  4792. @click="
  4793. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4794. "
  4795. >
  4796. <img
  4797. :src="w.isLikes == true ? likes : noLikes"
  4798. alt=""
  4799. />
  4800. </div>
  4801. <div>{{ w.likesCount }}</div>
  4802. </div>
  4803. <div
  4804. class="commentList"
  4805. style="margin-right: 15px"
  4806. >
  4807. <div
  4808. class="commentImg"
  4809. @click="
  4810. commentOther(
  4811. w,
  4812. toolIndex,
  4813. wIndex,
  4814. null,
  4815. g.id
  4816. )
  4817. "
  4818. >
  4819. <img
  4820. src="../assets/icon/comment/comment.png"
  4821. alt=""
  4822. />
  4823. </div>
  4824. <div>{{ w.commentCount }}</div>
  4825. </div>
  4826. </div>
  4827. </div>
  4828. </div>
  4829. </div>
  4830. <div class="group_work" v-else>暂无提交作业</div>
  4831. </div>
  4832. </div>
  4833. <div
  4834. :id="'tool-' + toolIndex"
  4835. :style="{
  4836. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4837. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4838. }"
  4839. class="worksDetailBox"
  4840. v-if="
  4841. worksStudent.length &&
  4842. worksStudent[toolIndex].length > 0
  4843. "
  4844. >
  4845. <div
  4846. class="works"
  4847. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4848. :key="wIndex"
  4849. >
  4850. <div
  4851. class="workImg"
  4852. style="
  4853. border-radius: 15px;
  4854. box-shadow: 0px 0px 5px 5px #eee;
  4855. "
  4856. >
  4857. <!-- <img
  4858. src="../assets/icon/works/noImg.png"
  4859. @click="openTools(15, toolIndex, taskCount, w.works)"
  4860. alt=""
  4861. />-->
  4862. <div
  4863. class="answerBg"
  4864. style="border-radius: 15px 15px 0 0"
  4865. @click="commentOther(w, toolIndex, wIndex)"
  4866. >
  4867. <!-- <div>{{ w.sName }}</div> -->
  4868. <div class="answerContent">
  4869. {{ JSON.parse(w.works)[0].answer }}
  4870. </div>
  4871. <div
  4872. class="answerScore"
  4873. v-if="w.score"
  4874. @click.stop="openScore(w)"
  4875. :class="{
  4876. rightW:
  4877. w.userid == userid ||
  4878. tType == 1 ||
  4879. tType == 4,
  4880. }"
  4881. >
  4882. {{ JSON.parse(w.score).wScore }}分
  4883. </div>
  4884. <div
  4885. class="answerScore"
  4886. @click.stop="openScore(w)"
  4887. v-else-if="courseDetail.userid == userid"
  4888. :class="{
  4889. rightW:
  4890. w.userid == userid ||
  4891. tType == 1 ||
  4892. tType == 4,
  4893. }"
  4894. >
  4895. 评分
  4896. </div>
  4897. <img
  4898. class="deleteImg"
  4899. src="../assets/deleteworks.png"
  4900. v-if="
  4901. w.userid == userid || tType == 1 || tType == 4
  4902. "
  4903. @click.stop="deleteWorks(w.wid)"
  4904. alt
  4905. />
  4906. </div>
  4907. <div class="comment">
  4908. <div class="worksName">
  4909. <div>{{ w.sName }}</div>
  4910. </div>
  4911. <div class="commentList">
  4912. <div
  4913. class="commentImg"
  4914. @click="
  4915. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4916. "
  4917. >
  4918. <img
  4919. :src="w.isLikes == true ? likes : noLikes"
  4920. alt=""
  4921. />
  4922. </div>
  4923. <div>{{ w.likesCount }}</div>
  4924. </div>
  4925. <div class="commentList" style="margin-right: 15px">
  4926. <div
  4927. class="commentImg"
  4928. @click="commentOther(w, toolIndex, wIndex)"
  4929. >
  4930. <img
  4931. src="../assets/icon/comment/comment.png"
  4932. alt=""
  4933. />
  4934. </div>
  4935. <div>{{ w.commentCount }}</div>
  4936. </div>
  4937. </div>
  4938. </div>
  4939. </div>
  4940. </div>
  4941. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4942. 未提交
  4943. </div>
  4944. <div
  4945. class="noWorksS"
  4946. v-if="noWorksS && noWorksS[toolIndex].length"
  4947. >
  4948. <div
  4949. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4950. :key="sIndex"
  4951. class="noWorksName"
  4952. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4953. >
  4954. <el-tooltip effect="dark" :content="s.student" placement="top">
  4955. <span>{{ s.student }}</span>
  4956. </el-tooltip>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. <div
  4961. v-if="
  4962. tType &&
  4963. ((tType == 2 && sIsOpen == true) ||
  4964. tType == 1 ||
  4965. tType == 4) &&
  4966. tool.tool.indexOf(1) != -1
  4967. "
  4968. class="worksBox"
  4969. >
  4970. <div
  4971. class="zuoyeYulan"
  4972. v-if="
  4973. (worksStudent.length &&
  4974. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4975. "
  4976. >
  4977. <div class="worksTop">
  4978. <div>作业预览</div>
  4979. <div
  4980. class="corOpen"
  4981. @click="contract(toolIndex)"
  4982. v-if="
  4983. (isCloseList[toolIndex].isCloseBoolean) &&
  4984. isCloseList[toolIndex].isClose == 0
  4985. "
  4986. >
  4987. 折叠
  4988. </div>
  4989. <div
  4990. class="corOpen"
  4991. @click="contract(toolIndex)"
  4992. v-if="isCloseList[toolIndex].isClose == 1"
  4993. >
  4994. 展开
  4995. </div>
  4996. </div>
  4997. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4998. </div>
  4999. <div
  5000. class="group_workBox"
  5001. v-for="(g, gindex) in courseGroup.group"
  5002. :key="gindex"
  5003. >
  5004. <div class="group_box">
  5005. <div class="group_title">
  5006. <el-tooltip
  5007. class="item"
  5008. effect="light"
  5009. :content="g.name"
  5010. placement="top"
  5011. >
  5012. <div class="group_name">{{ g.name }}</div>
  5013. </el-tooltip>
  5014. </div>
  5015. <div
  5016. class="group_work"
  5017. v-if="
  5018. g.works &&
  5019. g.works.length &&
  5020. g.works[toolIndex].length
  5021. "
  5022. >
  5023. <div
  5024. class="works"
  5025. style="
  5026. width: 200px;
  5027. height: 140px;
  5028. margin: 10px 10px 10px 0;
  5029. border-radius: 15px;
  5030. box-shadow: 0 0 6px 1px #dfdada;
  5031. "
  5032. v-for="(w, wIndex) in g.works[toolIndex]"
  5033. :key="wIndex"
  5034. :class="w.type == 1 ? 'isTypeOne' : ''"
  5035. >
  5036. <div class="workImg">
  5037. <img
  5038. :src="w.works"
  5039. @click="previewImg(w.works,w)"
  5040. alt
  5041. />
  5042. <div
  5043. class="answerScore"
  5044. v-if="w.score"
  5045. @click.stop="openScore(w)"
  5046. :class="{
  5047. rightW:
  5048. w.userid == userid ||
  5049. tType == 1 ||
  5050. tType == 4,
  5051. }"
  5052. >
  5053. {{ JSON.parse(w.score).wScore }}分
  5054. </div>
  5055. <div
  5056. class="answerScore"
  5057. @click.stop="openScore(w)"
  5058. v-else-if="courseDetail.userid == userid"
  5059. :class="{
  5060. rightW:
  5061. w.userid == userid ||
  5062. tType == 1 ||
  5063. tType == 4,
  5064. }"
  5065. >
  5066. 评分
  5067. </div>
  5068. <img
  5069. class="deleteImg"
  5070. src="../assets/deleteworks.png"
  5071. v-if="
  5072. w.userid == userid || tType == 1 || tType == 4
  5073. "
  5074. @click.stop="deleteWorks(w.wid)"
  5075. alt
  5076. />
  5077. </div>
  5078. <div class="comment" style="min-width: 200px">
  5079. <div class="worksName">
  5080. <div>{{ w.sName }}</div>
  5081. </div>
  5082. <div class="commentList">
  5083. <div class="commentList">
  5084. <div
  5085. class="commentImg"
  5086. @click="
  5087. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5088. "
  5089. >
  5090. <img
  5091. :src="w.isLikes == true ? likes : noLikes"
  5092. alt=""
  5093. />
  5094. </div>
  5095. <div>{{ w.likesCount }}</div>
  5096. </div>
  5097. <div
  5098. class="commentList"
  5099. style="margin-right: 15px"
  5100. >
  5101. <div
  5102. class="commentImg"
  5103. @click="
  5104. commentOther(
  5105. w,
  5106. toolIndex,
  5107. wIndex,
  5108. null,
  5109. g.id
  5110. )
  5111. "
  5112. >
  5113. <img
  5114. src="../assets/icon/comment/comment.png"
  5115. alt=""
  5116. />
  5117. </div>
  5118. <div>{{ w.commentCount }}</div>
  5119. </div>
  5120. </div>
  5121. </div>
  5122. </div>
  5123. </div>
  5124. <div class="group_work" v-else>暂无提交作业</div>
  5125. </div>
  5126. </div>
  5127. <div
  5128. :id="'tool-' + toolIndex"
  5129. :style="{
  5130. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5131. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5132. }"
  5133. class="worksDetailBox"
  5134. v-if="
  5135. worksStudent.length &&
  5136. worksStudent[toolIndex].length > 0
  5137. "
  5138. >
  5139. <div
  5140. class="works"
  5141. style="
  5142. width: 200px;
  5143. height: 140px;
  5144. margin: 10px 10px 10px 0;
  5145. border-radius: 15px;
  5146. box-shadow: 0 0 6px 1px #dfdada;
  5147. "
  5148. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5149. :key="wIndex"
  5150. >
  5151. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5152. <div class="workImg">
  5153. <img
  5154. :src="w.works"
  5155. @click="previewImg(w.works,w)"
  5156. alt
  5157. />
  5158. <div
  5159. class="answerScore"
  5160. v-if="w.score"
  5161. @click.stop="openScore(w)"
  5162. :class="{
  5163. rightW:
  5164. w.userid == userid || tType == 1 || tType == 4,
  5165. }"
  5166. >
  5167. {{ JSON.parse(w.score).wScore }}分
  5168. </div>
  5169. <div
  5170. class="answerScore"
  5171. @click.stop="openScore(w)"
  5172. v-else-if="courseDetail.userid == userid"
  5173. :class="{
  5174. rightW:
  5175. w.userid == userid || tType == 1 || tType == 4,
  5176. }"
  5177. >
  5178. 评分
  5179. </div>
  5180. <img
  5181. class="deleteImg"
  5182. src="../assets/deleteworks.png"
  5183. v-if="
  5184. w.userid == userid || tType == 1 || tType == 4
  5185. "
  5186. @click.stop="deleteWorks(w.wid)"
  5187. alt
  5188. />
  5189. </div>
  5190. <div class="comment" style="min-width: 200px">
  5191. <div class="worksName">
  5192. <div>{{ w.sName }}</div>
  5193. </div>
  5194. <div class="commentList">
  5195. <div class="commentList">
  5196. <div
  5197. class="commentImg"
  5198. @click="
  5199. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5200. "
  5201. >
  5202. <img
  5203. :src="w.isLikes == true ? likes : noLikes"
  5204. alt=""
  5205. />
  5206. </div>
  5207. <div>{{ w.likesCount }}</div>
  5208. </div>
  5209. <div class="commentList" style="margin-right: 15px">
  5210. <div
  5211. class="commentImg"
  5212. @click="commentOther(w, toolIndex, wIndex)"
  5213. >
  5214. <img
  5215. src="../assets/icon/comment/comment.png"
  5216. alt=""
  5217. />
  5218. </div>
  5219. <div>{{ w.commentCount }}</div>
  5220. </div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5226. 未提交
  5227. </div>
  5228. <div
  5229. class="noWorksS"
  5230. v-if="noWorksS && noWorksS[toolIndex].length"
  5231. >
  5232. <div
  5233. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5234. :key="sIndex"
  5235. class="noWorksName"
  5236. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5237. >
  5238. <el-tooltip effect="dark" :content="s.student" placement="top">
  5239. <span>{{ s.student }}</span>
  5240. </el-tooltip>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. <div
  5245. v-if="
  5246. tType &&
  5247. ((tType == 2 && sIsOpen == true) ||
  5248. tType == 1 ||
  5249. tType == 4) &&
  5250. tool.tool.indexOf(3) != -1
  5251. "
  5252. class="worksBox"
  5253. >
  5254. <div
  5255. class="zuoyeYulan"
  5256. v-if="
  5257. (worksStudent.length &&
  5258. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5259. "
  5260. >
  5261. <div class="worksTop">
  5262. <div>作业预览</div>
  5263. <div
  5264. class="corOpen"
  5265. @click="contract(toolIndex)"
  5266. v-if="
  5267. (isCloseList[toolIndex].isCloseBoolean) &&
  5268. isCloseList[toolIndex].isClose == 0
  5269. "
  5270. >
  5271. 折叠
  5272. </div>
  5273. <div
  5274. class="corOpen"
  5275. @click="contract(toolIndex)"
  5276. v-if="isCloseList[toolIndex].isClose == 1"
  5277. >
  5278. 展开
  5279. </div>
  5280. </div>
  5281. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5282. </div>
  5283. <div
  5284. class="group_workBox"
  5285. v-for="(g, gindex) in courseGroup.group"
  5286. :key="gindex"
  5287. >
  5288. <div class="group_box">
  5289. <div class="group_title">
  5290. <el-tooltip
  5291. class="item"
  5292. effect="light"
  5293. :content="g.name"
  5294. placement="top"
  5295. >
  5296. <div class="group_name">{{ g.name }}</div>
  5297. </el-tooltip>
  5298. </div>
  5299. <div
  5300. class="group_work"
  5301. v-if="
  5302. g.works &&
  5303. g.works.length &&
  5304. g.works[toolIndex].length
  5305. "
  5306. >
  5307. <div
  5308. class="works"
  5309. style="
  5310. width: 200px;
  5311. height: 140px;
  5312. margin: 10px 10px 10px 0;
  5313. border-radius: 15px;
  5314. box-shadow: 0 0 6px 1px #dfdada;
  5315. "
  5316. v-for="(w, wIndex) in g.works[toolIndex]"
  5317. :key="wIndex"
  5318. :class="w.type == 1 ? 'isTypeOne' : ''"
  5319. >
  5320. <div class="workImg">
  5321. <img
  5322. :src="w.works"
  5323. @click="previewImg(w.works,w)"
  5324. alt
  5325. />
  5326. <div
  5327. class="answerScore"
  5328. v-if="w.score"
  5329. @click.stop="openScore(w)"
  5330. :class="{
  5331. rightW:
  5332. w.userid == userid ||
  5333. tType == 1 ||
  5334. tType == 4,
  5335. }"
  5336. >
  5337. {{ JSON.parse(w.score).wScore }}分
  5338. </div>
  5339. <div
  5340. class="answerScore"
  5341. @click.stop="openScore(w)"
  5342. v-else-if="courseDetail.userid == userid"
  5343. :class="{
  5344. rightW:
  5345. w.userid == userid ||
  5346. tType == 1 ||
  5347. tType == 4,
  5348. }"
  5349. >
  5350. 评分
  5351. </div>
  5352. <img
  5353. class="deleteImg"
  5354. src="../assets/deleteworks.png"
  5355. v-if="
  5356. w.userid == userid || tType == 1 || tType == 4
  5357. "
  5358. @click.stop="deleteWorks(w.wid)"
  5359. alt
  5360. />
  5361. </div>
  5362. <div class="comment" style="min-width: 200px">
  5363. <div class="worksName">
  5364. <div>{{ w.sName }}</div>
  5365. </div>
  5366. <div class="commentList">
  5367. <div class="commentList">
  5368. <div
  5369. class="commentImg"
  5370. @click="
  5371. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5372. "
  5373. >
  5374. <img
  5375. :src="w.isLikes == true ? likes : noLikes"
  5376. alt=""
  5377. />
  5378. </div>
  5379. <div>{{ w.likesCount }}</div>
  5380. </div>
  5381. <div
  5382. class="commentList"
  5383. style="margin-right: 15px"
  5384. >
  5385. <div
  5386. class="commentImg"
  5387. @click="
  5388. commentOther(
  5389. w,
  5390. toolIndex,
  5391. wIndex,
  5392. null,
  5393. g.id
  5394. )
  5395. "
  5396. >
  5397. <img
  5398. src="../assets/icon/comment/comment.png"
  5399. alt=""
  5400. />
  5401. </div>
  5402. <div>{{ w.commentCount }}</div>
  5403. </div>
  5404. </div>
  5405. </div>
  5406. </div>
  5407. </div>
  5408. <div class="group_work" v-else>暂无提交作业</div>
  5409. </div>
  5410. </div>
  5411. <div
  5412. :id="'tool-' + toolIndex"
  5413. :style="{
  5414. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5415. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5416. }"
  5417. class="worksDetailBox"
  5418. v-if="
  5419. worksStudent.length &&
  5420. worksStudent[toolIndex].length > 0
  5421. "
  5422. >
  5423. <div
  5424. class="works"
  5425. style="
  5426. width: 200px;
  5427. height: 140px;
  5428. margin: 10px 10px 10px 0;
  5429. border-radius: 15px;
  5430. box-shadow: 0 0 6px 1px #dfdada;
  5431. "
  5432. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5433. :key="wIndex"
  5434. >
  5435. <!-- @click="previewImg(w.works)" -->
  5436. <div class="workImg">
  5437. <img
  5438. :src="w.works"
  5439. @click="previewImg(w.works,w)"
  5440. alt
  5441. />
  5442. <div
  5443. class="answerScore"
  5444. v-if="w.score"
  5445. @click.stop="openScore(w)"
  5446. :class="{
  5447. rightW:
  5448. w.userid == userid || tType == 1 || tType == 4,
  5449. }"
  5450. >
  5451. {{ JSON.parse(w.score).wScore }}分
  5452. </div>
  5453. <div
  5454. class="answerScore"
  5455. @click.stop="openScore(w)"
  5456. v-else-if="courseDetail.userid == userid"
  5457. :class="{
  5458. rightW:
  5459. w.userid == userid || tType == 1 || tType == 4,
  5460. }"
  5461. >
  5462. 评分
  5463. </div>
  5464. <img
  5465. class="deleteImg"
  5466. src="../assets/deleteworks.png"
  5467. v-if="
  5468. w.userid == userid || tType == 1 || tType == 4
  5469. "
  5470. @click.stop="deleteWorks(w.wid)"
  5471. alt
  5472. />
  5473. </div>
  5474. <div class="comment" style="min-width: 200px">
  5475. <div class="worksName">
  5476. <div>{{ w.sName }}</div>
  5477. </div>
  5478. <div class="commentList">
  5479. <div class="commentList">
  5480. <div
  5481. class="commentImg"
  5482. @click="
  5483. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5484. "
  5485. >
  5486. <img
  5487. :src="w.isLikes == true ? likes : noLikes"
  5488. alt=""
  5489. />
  5490. </div>
  5491. <div>{{ w.likesCount }}</div>
  5492. </div>
  5493. <div class="commentList" style="margin-right: 15px">
  5494. <div
  5495. class="commentImg"
  5496. @click="commentOther(w, toolIndex, wIndex)"
  5497. >
  5498. <img
  5499. src="../assets/icon/comment/comment.png"
  5500. alt=""
  5501. />
  5502. </div>
  5503. <div>{{ w.commentCount }}</div>
  5504. </div>
  5505. </div>
  5506. </div>
  5507. </div>
  5508. </div>
  5509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5510. 未提交
  5511. </div>
  5512. <div
  5513. class="noWorksS"
  5514. v-if="noWorksS && noWorksS[toolIndex].length"
  5515. >
  5516. <div
  5517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5518. :key="sIndex"
  5519. class="noWorksName"
  5520. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5521. >
  5522. <el-tooltip effect="dark" :content="s.student" placement="top">
  5523. <span>{{ s.student }}</span>
  5524. </el-tooltip>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. <div
  5529. v-if="
  5530. tType &&
  5531. ((tType == 2 && sIsOpen == true) ||
  5532. tType == 1 ||
  5533. tType == 4) &&
  5534. tool.tool.indexOf(6) != -1
  5535. "
  5536. class="worksBox"
  5537. >
  5538. <div
  5539. class="zuoyeYulan"
  5540. v-if="
  5541. (worksStudent.length &&
  5542. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5543. "
  5544. >
  5545. <div class="worksTop">
  5546. <div>作业预览</div>
  5547. <div
  5548. class="corOpen"
  5549. @click="contract(toolIndex)"
  5550. v-if="
  5551. (isCloseList[toolIndex].isCloseBoolean) &&
  5552. isCloseList[toolIndex].isClose == 0
  5553. "
  5554. >
  5555. 折叠
  5556. </div>
  5557. <div
  5558. class="corOpen"
  5559. @click="contract(toolIndex)"
  5560. v-if="isCloseList[toolIndex].isClose == 1"
  5561. >
  5562. 展开
  5563. </div>
  5564. </div>
  5565. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5566. </div>
  5567. <div
  5568. class="group_workBox"
  5569. v-for="(g, gindex) in courseGroup.group"
  5570. :key="gindex"
  5571. >
  5572. <div class="group_box">
  5573. <div class="group_title">
  5574. <el-tooltip
  5575. class="item"
  5576. effect="light"
  5577. :content="g.name"
  5578. placement="top"
  5579. >
  5580. <div class="group_name">{{ g.name }}</div>
  5581. </el-tooltip>
  5582. </div>
  5583. <div
  5584. class="group_work"
  5585. v-if="
  5586. g.works &&
  5587. g.works.length &&
  5588. g.works[toolIndex].length
  5589. "
  5590. >
  5591. <div
  5592. class="works"
  5593. style="
  5594. width: 200px;
  5595. height: 140px;
  5596. margin: 10px 10px 10px 0;
  5597. border-radius: 15px;
  5598. box-shadow: 0 0 6px 1px #dfdada;
  5599. "
  5600. v-for="(w, wIndex) in g.works[toolIndex]"
  5601. :key="wIndex"
  5602. :class="w.type == 1 ? 'isTypeOne' : ''"
  5603. >
  5604. <div class="workImg">
  5605. <img
  5606. :src="w.works"
  5607. @click="previewImg(w.works,w)"
  5608. alt
  5609. />
  5610. <div
  5611. class="answerScore"
  5612. v-if="w.score"
  5613. @click.stop="openScore(w)"
  5614. :class="{
  5615. rightW:
  5616. w.userid == userid ||
  5617. tType == 1 ||
  5618. tType == 4,
  5619. }"
  5620. >
  5621. {{ JSON.parse(w.score).wScore }}分
  5622. </div>
  5623. <div
  5624. class="answerScore"
  5625. @click.stop="openScore(w)"
  5626. v-else-if="courseDetail.userid == userid"
  5627. :class="{
  5628. rightW:
  5629. w.userid == userid ||
  5630. tType == 1 ||
  5631. tType == 4,
  5632. }"
  5633. >
  5634. 评分
  5635. </div>
  5636. <img
  5637. class="deleteImg"
  5638. src="../assets/deleteworks.png"
  5639. v-if="
  5640. w.userid == userid || tType == 1 || tType == 4
  5641. "
  5642. @click.stop="deleteWorks(w.wid)"
  5643. alt
  5644. />
  5645. </div>
  5646. <div class="comment" style="min-width: 200px">
  5647. <div class="worksName">
  5648. <div>{{ w.sName }}</div>
  5649. </div>
  5650. <div class="commentList">
  5651. <div class="commentList">
  5652. <div
  5653. class="commentImg"
  5654. @click="
  5655. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5656. "
  5657. >
  5658. <img
  5659. :src="w.isLikes == true ? likes : noLikes"
  5660. alt=""
  5661. />
  5662. </div>
  5663. <div>{{ w.likesCount }}</div>
  5664. </div>
  5665. <div
  5666. class="commentList"
  5667. style="margin-right: 15px"
  5668. >
  5669. <div
  5670. class="commentImg"
  5671. @click="
  5672. commentOther(
  5673. w,
  5674. toolIndex,
  5675. wIndex,
  5676. null,
  5677. g.id
  5678. )
  5679. "
  5680. >
  5681. <img
  5682. src="../assets/icon/comment/comment.png"
  5683. alt=""
  5684. />
  5685. </div>
  5686. <div>{{ w.commentCount }}</div>
  5687. </div>
  5688. </div>
  5689. </div>
  5690. </div>
  5691. </div>
  5692. <div class="group_work" v-else>暂无提交作业</div>
  5693. </div>
  5694. </div>
  5695. <div
  5696. :id="'tool-' + toolIndex"
  5697. :style="{
  5698. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5699. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5700. }"
  5701. class="worksDetailBox"
  5702. v-if="
  5703. worksStudent.length &&
  5704. worksStudent[toolIndex].length > 0
  5705. "
  5706. >
  5707. <div
  5708. class="works"
  5709. style="
  5710. width: 200px;
  5711. height: 140px;
  5712. margin: 10px 10px 10px 0;
  5713. border-radius: 15px;
  5714. box-shadow: 0 0 6px 1px #dfdada;
  5715. "
  5716. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5717. :key="wIndex"
  5718. >
  5719. <!-- @click="previewImg(w.works)" -->
  5720. <div class="workImg">
  5721. <img
  5722. :src="w.works"
  5723. @click="previewImg(w.works,w)"
  5724. alt
  5725. />
  5726. <div
  5727. class="answerScore"
  5728. v-if="w.score"
  5729. @click.stop="openScore(w)"
  5730. :class="{
  5731. rightW:
  5732. w.userid == userid || tType == 1 || tType == 4,
  5733. }"
  5734. >
  5735. {{ JSON.parse(w.score).wScore }}分
  5736. </div>
  5737. <div
  5738. class="answerScore"
  5739. @click.stop="openScore(w)"
  5740. v-else-if="courseDetail.userid == userid"
  5741. :class="{
  5742. rightW:
  5743. w.userid == userid || tType == 1 || tType == 4,
  5744. }"
  5745. >
  5746. 评分
  5747. </div>
  5748. <img
  5749. class="deleteImg"
  5750. src="../assets/deleteworks.png"
  5751. v-if="
  5752. w.userid == userid || tType == 1 || tType == 4
  5753. "
  5754. @click.stop="deleteWorks(w.wid)"
  5755. alt
  5756. />
  5757. </div>
  5758. <div class="comment" style="min-width: 200px">
  5759. <div class="worksName">
  5760. <div>{{ w.sName }}</div>
  5761. </div>
  5762. <div class="commentList">
  5763. <div class="commentList">
  5764. <div
  5765. class="commentImg"
  5766. @click="
  5767. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5768. "
  5769. >
  5770. <img
  5771. :src="w.isLikes == true ? likes : noLikes"
  5772. alt=""
  5773. />
  5774. </div>
  5775. <div>{{ w.likesCount }}</div>
  5776. </div>
  5777. <div class="commentList" style="margin-right: 15px">
  5778. <div
  5779. class="commentImg"
  5780. @click="commentOther(w, toolIndex, wIndex)"
  5781. >
  5782. <img
  5783. src="../assets/icon/comment/comment.png"
  5784. alt=""
  5785. />
  5786. </div>
  5787. <div>{{ w.commentCount }}</div>
  5788. </div>
  5789. </div>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5794. 未提交
  5795. </div>
  5796. <div
  5797. class="noWorksS"
  5798. v-if="noWorksS && noWorksS[toolIndex].length"
  5799. >
  5800. <div
  5801. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5802. :key="sIndex"
  5803. class="noWorksName"
  5804. >
  5805. <el-tooltip effect="dark" :content="s.student" placement="top">
  5806. <span>{{ s.student }}</span>
  5807. </el-tooltip>
  5808. </div>
  5809. </div>
  5810. </div>
  5811. <div
  5812. v-if="
  5813. tType &&
  5814. ((tType == 2 && sIsOpen == true) ||
  5815. tType == 1 ||
  5816. tType == 4) &&
  5817. tool.tool.indexOf(7) != -1
  5818. "
  5819. class="worksBox"
  5820. >
  5821. <div
  5822. class="zuoyeYulan"
  5823. v-if="
  5824. (worksStudent.length &&
  5825. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5826. "
  5827. >
  5828. <div class="worksTop">
  5829. <div>作业预览</div>
  5830. <div
  5831. class="corOpen"
  5832. @click="contract(toolIndex)"
  5833. v-if="
  5834. (isCloseList[toolIndex].isCloseBoolean) &&
  5835. isCloseList[toolIndex].isClose == 0
  5836. "
  5837. >
  5838. 折叠
  5839. </div>
  5840. <div
  5841. class="corOpen"
  5842. @click="contract(toolIndex)"
  5843. v-if="isCloseList[toolIndex].isClose == 1"
  5844. >
  5845. 展开
  5846. </div>
  5847. </div>
  5848. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5849. </div>
  5850. <div
  5851. class="group_workBox"
  5852. v-for="(g, gindex) in courseGroup.group"
  5853. :key="gindex"
  5854. >
  5855. <div class="group_box">
  5856. <div class="group_title">
  5857. <el-tooltip
  5858. class="item"
  5859. effect="light"
  5860. :content="g.name"
  5861. placement="top"
  5862. >
  5863. <div class="group_name">{{ g.name }}</div>
  5864. </el-tooltip>
  5865. </div>
  5866. <div
  5867. class="group_work"
  5868. v-if="
  5869. g.works &&
  5870. g.works.length &&
  5871. g.works[toolIndex].length
  5872. "
  5873. >
  5874. <div
  5875. class="works"
  5876. style="
  5877. width: 200px;
  5878. height: 140px;
  5879. margin: 10px 10px 10px 0;
  5880. border-radius: 15px;
  5881. box-shadow: 0 0 6px 1px #dfdada;
  5882. "
  5883. v-for="(w, wIndex) in g.works[toolIndex]"
  5884. :key="wIndex"
  5885. :class="w.type == 1 ? 'isTypeOne' : ''"
  5886. >
  5887. <div class="workImg">
  5888. <img
  5889. :src="w.works"
  5890. @click="previewImg(w.works,w)"
  5891. alt
  5892. />
  5893. <div
  5894. class="answerScore"
  5895. v-if="w.score"
  5896. @click.stop="openScore(w)"
  5897. :class="{
  5898. rightW:
  5899. w.userid == userid ||
  5900. tType == 1 ||
  5901. tType == 4,
  5902. }"
  5903. >
  5904. {{ JSON.parse(w.score).wScore }}分
  5905. </div>
  5906. <div
  5907. class="answerScore"
  5908. @click.stop="openScore(w)"
  5909. v-else-if="courseDetail.userid == userid"
  5910. :class="{
  5911. rightW:
  5912. w.userid == userid ||
  5913. tType == 1 ||
  5914. tType == 4,
  5915. }"
  5916. >
  5917. 评分
  5918. </div>
  5919. <img
  5920. class="deleteImg"
  5921. src="../assets/deleteworks.png"
  5922. v-if="
  5923. w.userid == userid || tType == 1 || tType == 4
  5924. "
  5925. @click.stop="deleteWorks(w.wid)"
  5926. alt
  5927. />
  5928. </div>
  5929. <div class="comment" style="min-width: 200px">
  5930. <div class="worksName">
  5931. <div>{{ w.sName }}</div>
  5932. </div>
  5933. <div class="commentList">
  5934. <div class="commentList">
  5935. <div
  5936. class="commentImg"
  5937. @click="
  5938. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5939. "
  5940. >
  5941. <img
  5942. :src="w.isLikes == true ? likes : noLikes"
  5943. alt=""
  5944. />
  5945. </div>
  5946. <div>{{ w.likesCount }}</div>
  5947. </div>
  5948. <div
  5949. class="commentList"
  5950. style="margin-right: 15px"
  5951. >
  5952. <div
  5953. class="commentImg"
  5954. @click="
  5955. commentOther(
  5956. w,
  5957. toolIndex,
  5958. wIndex,
  5959. null,
  5960. g.id
  5961. )
  5962. "
  5963. >
  5964. <img
  5965. src="../assets/icon/comment/comment.png"
  5966. alt=""
  5967. />
  5968. </div>
  5969. <div>{{ w.commentCount }}</div>
  5970. </div>
  5971. </div>
  5972. </div>
  5973. </div>
  5974. </div>
  5975. <div class="group_work" v-else>暂无提交作业</div>
  5976. </div>
  5977. </div>
  5978. <div
  5979. :id="'tool-' + toolIndex"
  5980. :style="{
  5981. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5982. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5983. }"
  5984. class="worksDetailBox"
  5985. v-if="
  5986. worksStudent.length &&
  5987. worksStudent[toolIndex].length > 0
  5988. "
  5989. >
  5990. <div
  5991. class="works"
  5992. style="
  5993. width: 200px;
  5994. height: 140px;
  5995. margin: 10px 10px 10px 0;
  5996. border-radius: 15px;
  5997. box-shadow: 0 0 6px 1px #dfdada;
  5998. "
  5999. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6000. :key="wIndex"
  6001. >
  6002. <!-- @click="previewImg(w.works)" -->
  6003. <div class="workImg">
  6004. <img
  6005. :src="w.works"
  6006. @click="previewImg(w.works,w)"
  6007. alt
  6008. />
  6009. <div
  6010. class="answerScore"
  6011. v-if="w.score"
  6012. @click.stop="openScore(w)"
  6013. :class="{
  6014. rightW:
  6015. w.userid == userid || tType == 1 || tType == 4,
  6016. }"
  6017. >
  6018. {{ JSON.parse(w.score).wScore }}分
  6019. </div>
  6020. <div
  6021. class="answerScore"
  6022. @click.stop="openScore(w)"
  6023. v-else-if="courseDetail.userid == userid"
  6024. :class="{
  6025. rightW:
  6026. w.userid == userid || tType == 1 || tType == 4,
  6027. }"
  6028. >
  6029. 评分
  6030. </div>
  6031. <img
  6032. class="deleteImg"
  6033. src="../assets/deleteworks.png"
  6034. v-if="
  6035. w.userid == userid || tType == 1 || tType == 4
  6036. "
  6037. @click.stop="deleteWorks(w.wid)"
  6038. alt
  6039. />
  6040. </div>
  6041. <div class="comment" style="min-width: 200px">
  6042. <div class="worksName">
  6043. <div>{{ w.sName }}</div>
  6044. </div>
  6045. <div class="commentList">
  6046. <div class="commentList">
  6047. <div
  6048. class="commentImg"
  6049. @click="
  6050. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6051. "
  6052. >
  6053. <img
  6054. :src="w.isLikes == true ? likes : noLikes"
  6055. alt=""
  6056. />
  6057. </div>
  6058. <div>{{ w.likesCount }}</div>
  6059. </div>
  6060. <div class="commentList" style="margin-right: 15px">
  6061. <div
  6062. class="commentImg"
  6063. @click="commentOther(w, toolIndex, wIndex)"
  6064. >
  6065. <img
  6066. src="../assets/icon/comment/comment.png"
  6067. alt=""
  6068. />
  6069. </div>
  6070. <div>{{ w.commentCount }}</div>
  6071. </div>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. </div>
  6076. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6077. 未提交
  6078. </div>
  6079. <div
  6080. class="noWorksS"
  6081. v-if="noWorksS && noWorksS[toolIndex].length"
  6082. >
  6083. <div
  6084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6085. :key="sIndex"
  6086. class="noWorksName"
  6087. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6088. >
  6089. <el-tooltip effect="dark" :content="s.student" placement="top">
  6090. <span>{{ s.student }}</span>
  6091. </el-tooltip>
  6092. </div>
  6093. </div>
  6094. </div>
  6095. <div
  6096. v-if="
  6097. tType &&
  6098. ((tType == 2 && sIsOpen == true) ||
  6099. tType == 1 ||
  6100. tType == 4) &&
  6101. tool.tool.indexOf(26) != -1
  6102. "
  6103. class="worksBox"
  6104. >
  6105. <div
  6106. class="zuoyeYulan"
  6107. v-if="
  6108. worksStudent.length &&
  6109. worksStudent[toolIndex].length > 0
  6110. "
  6111. >
  6112. <div class="worksTop">
  6113. <div>作业预览</div>
  6114. <div
  6115. class="corOpen"
  6116. @click="contract(toolIndex)"
  6117. v-if="
  6118. (isCloseList[toolIndex].isCloseBoolean) &&
  6119. isCloseList[toolIndex].isClose == 0
  6120. "
  6121. >
  6122. 折叠
  6123. </div>
  6124. <div
  6125. class="corOpen"
  6126. @click="contract(toolIndex)"
  6127. v-if="isCloseList[toolIndex].isClose == 1"
  6128. >
  6129. 展开
  6130. </div>
  6131. </div>
  6132. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6133. </div>
  6134. <div
  6135. :id="'tool-' + toolIndex"
  6136. :style="{
  6137. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6138. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6139. }"
  6140. class="worksDetailBox"
  6141. v-if="
  6142. worksStudent.length &&
  6143. worksStudent[toolIndex].length > 0
  6144. "
  6145. >
  6146. <div
  6147. class="works"
  6148. style="width: 240px; height: 140px; overflow: hidden"
  6149. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6150. :key="wIndex"
  6151. :class="w.type == 1 ? 'isTypeOne' : ''"
  6152. >
  6153. <div class="workImg" v-if="w.type == 0">
  6154. <img
  6155. :src="w.works"
  6156. @click="previewImg(w.works,w)"
  6157. alt
  6158. />
  6159. <img
  6160. class="deleteImg"
  6161. src="../assets/deleteworks.png"
  6162. v-if="
  6163. w.userid == userid || tType == 1 || tType == 4
  6164. "
  6165. @click.stop="deleteWorks(w.wid)"
  6166. alt
  6167. />
  6168. </div>
  6169. <div class="workImg" v-if="w.type == 1">
  6170. <img :src="word" @click="openFile(w.works,w)" alt />
  6171. <img
  6172. class="deleteImg"
  6173. src="../assets/deleteworks.png"
  6174. v-if="
  6175. w.userid == userid || tType == 1 || tType == 4
  6176. "
  6177. @click.stop="deleteWorks(w.wid)"
  6178. alt
  6179. />
  6180. </div>
  6181. <div class="worksName">
  6182. <div>{{ w.sName }}</div>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6187. 未提交
  6188. </div>
  6189. <div
  6190. class="noWorksS"
  6191. v-if="noWorksS && noWorksS[toolIndex].length"
  6192. >
  6193. <div
  6194. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6195. :key="sIndex"
  6196. class="noWorksName"
  6197. >
  6198. <el-tooltip effect="dark" :content="s.student" placement="top">
  6199. <span>{{ s.student }}</span>
  6200. </el-tooltip>
  6201. </div>
  6202. </div>
  6203. </div>
  6204. <div
  6205. v-if="
  6206. tType &&
  6207. ((tType == 2 && sIsOpen == true) ||
  6208. tType == 1 ||
  6209. tType == 4) &&
  6210. tool.tool.indexOf(40) != -1
  6211. "
  6212. class="worksBox"
  6213. >
  6214. <div
  6215. class="zuoyeYulan"
  6216. v-if="
  6217. worksStudent.length &&
  6218. worksStudent[toolIndex].length > 0
  6219. "
  6220. >
  6221. <div class="worksTop">
  6222. <div>作业预览</div>
  6223. <div
  6224. class="corOpen"
  6225. @click="contract(toolIndex)"
  6226. v-if="
  6227. (isCloseList[toolIndex].isCloseBoolean) &&
  6228. isCloseList[toolIndex].isClose == 0
  6229. "
  6230. >
  6231. 折叠
  6232. </div>
  6233. <div
  6234. class="corOpen"
  6235. @click="contract(toolIndex)"
  6236. v-if="isCloseList[toolIndex].isClose == 1"
  6237. >
  6238. 展开
  6239. </div>
  6240. </div>
  6241. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6242. </div>
  6243. <div
  6244. :id="'tool-' + toolIndex"
  6245. :style="{
  6246. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6247. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6248. }"
  6249. class="worksDetailBox"
  6250. v-if="
  6251. worksStudent.length &&
  6252. worksStudent[toolIndex].length > 0
  6253. "
  6254. >
  6255. <div
  6256. class="works"
  6257. style="
  6258. width: 200px;
  6259. height: 140px;
  6260. margin: 10px 10px 10px 0;
  6261. border-radius: 15px;
  6262. box-shadow: 0 0 6px 1px #dfdada;
  6263. "
  6264. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6265. :key="wIndex"
  6266. :class="w.type == 1 ? 'isTypeOne' : ''"
  6267. >
  6268. <div class="workImg">
  6269. <img
  6270. src="../assets/icon/works/noImg.png"
  6271. @click="openPj(w.works, toolIndex)"
  6272. alt
  6273. />
  6274. <img
  6275. class="deleteImg"
  6276. src="../assets/deleteworks.png"
  6277. v-if="
  6278. w.userid == userid || tType == 1 || tType == 4
  6279. "
  6280. @click.stop="deleteWorks(w.wid)"
  6281. alt
  6282. />
  6283. </div>
  6284. <div class="comment" style="min-width: 200px">
  6285. <div class="worksName">
  6286. <div>{{ w.sName }}</div>
  6287. </div>
  6288. <div class="commentList">
  6289. <div class="commentList">
  6290. <div
  6291. class="commentImg"
  6292. @click="
  6293. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6294. "
  6295. >
  6296. <img
  6297. :src="w.isLikes == true ? likes : noLikes"
  6298. alt=""
  6299. />
  6300. </div>
  6301. <div>{{ w.likesCount }}</div>
  6302. </div>
  6303. <div class="commentList" style="margin-right: 15px">
  6304. <div
  6305. class="commentImg"
  6306. @click="commentOther(w, toolIndex, wIndex)"
  6307. >
  6308. <img
  6309. src="../assets/icon/comment/comment.png"
  6310. alt=""
  6311. />
  6312. </div>
  6313. <div>{{ w.commentCount }}</div>
  6314. </div>
  6315. </div>
  6316. </div>
  6317. </div>
  6318. </div>
  6319. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6320. 未提交
  6321. </div>
  6322. <div
  6323. class="noWorksS"
  6324. v-if="noWorksS && noWorksS[toolIndex].length"
  6325. >
  6326. <div
  6327. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6328. :key="sIndex"
  6329. class="noWorksName"
  6330. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6331. >
  6332. <el-tooltip effect="dark" :content="s.student" placement="top">
  6333. <span>{{ s.student }}</span>
  6334. </el-tooltip>
  6335. </div>
  6336. </div>
  6337. </div>
  6338. <div
  6339. v-if="
  6340. tType &&
  6341. tType == 2 &&
  6342. !sIsOpen &&
  6343. tool.tool.indexOf(40) != -1
  6344. "
  6345. class="worksBox"
  6346. >
  6347. <div
  6348. class="zuoyeYulan"
  6349. v-if="workStudent[toolIndex].length > 0"
  6350. >
  6351. <span class="worksTitle">作业预览</span>
  6352. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6353. </div>
  6354. <div
  6355. class="worksDetailBox"
  6356. v-if="workStudent[toolIndex].length > 0"
  6357. >
  6358. <div
  6359. class="works"
  6360. style="
  6361. width: 200px;
  6362. height: 140px;
  6363. margin: 10px 10px 10px 0;
  6364. "
  6365. v-for="(w, wIndex) in workStudent[toolIndex]"
  6366. :key="wIndex"
  6367. >
  6368. <div class="workImg">
  6369. <img
  6370. src="../assets/icon/works/noImg.png"
  6371. @click="openPj(w.works, toolIndex)"
  6372. alt
  6373. />
  6374. <img
  6375. class="deleteImg"
  6376. src="../assets/deleteworks.png"
  6377. v-if="
  6378. w.userid == userid || tType == 1 || tType == 4
  6379. "
  6380. @click.stop="deleteWorks(w.wid)"
  6381. alt
  6382. />
  6383. </div>
  6384. <div class="worksName">
  6385. <div>{{ w.sName }}</div>
  6386. </div>
  6387. </div>
  6388. </div>
  6389. </div>
  6390. <div
  6391. v-if="
  6392. tType &&
  6393. ((tType == 2 && sIsOpen == true) ||
  6394. tType == 1 ||
  6395. tType == 4) &&
  6396. tool.tool.indexOf(41) != -1
  6397. "
  6398. >
  6399. <AnswerData2
  6400. v-if="
  6401. worksStudent.length &&
  6402. worksStudent[toolIndex].length > 0
  6403. "
  6404. :problemJson="tool.selectJson.answer"
  6405. :people="worksStudent[toolIndex]"
  6406. ></AnswerData2>
  6407. </div>
  6408. <div
  6409. v-if="
  6410. tType &&
  6411. ((tType == 2 && sIsOpen == true) ||
  6412. tType == 1 ||
  6413. tType == 4) &&
  6414. tool.tool.indexOf(41) != -1
  6415. "
  6416. class="worksBox"
  6417. >
  6418. <div
  6419. class="zuoyeYulan"
  6420. v-if="
  6421. worksStudent.length &&
  6422. worksStudent[toolIndex].length > 0
  6423. "
  6424. >
  6425. <div class="worksTop">
  6426. <div>作业预览</div>
  6427. <div
  6428. class="corOpen"
  6429. @click="contract(toolIndex)"
  6430. v-if="
  6431. (isCloseList[toolIndex].isCloseBoolean) &&
  6432. isCloseList[toolIndex].isClose == 0
  6433. "
  6434. >
  6435. 折叠
  6436. </div>
  6437. <div
  6438. class="corOpen"
  6439. @click="contract(toolIndex)"
  6440. v-if="isCloseList[toolIndex].isClose == 1"
  6441. >
  6442. 展开
  6443. </div>
  6444. </div>
  6445. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6446. </div>
  6447. <div
  6448. :id="'tool-' + toolIndex"
  6449. :style="{
  6450. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6451. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6452. }"
  6453. class="worksDetailBox"
  6454. v-if="
  6455. worksStudent.length &&
  6456. worksStudent[toolIndex].length > 0
  6457. "
  6458. >
  6459. <div
  6460. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6461. :key="wIndex"
  6462. class="isWorksName2"
  6463. @click="openXz(w, toolIndex)"
  6464. >
  6465. {{ w.sName }}
  6466. <img
  6467. class="deleteImg deleteImg2"
  6468. src="../assets/deleteworks.png"
  6469. v-if="w.userid == userid || tType == 1 || tType == 4"
  6470. @click.stop="deleteWorks(w.wid)"
  6471. alt
  6472. />
  6473. </div>
  6474. <!-- <div
  6475. class="works"
  6476. style="
  6477. width: 200px;
  6478. height: 140px;
  6479. margin: 10px 10px 10px 0;
  6480. border-radius: 15px;
  6481. box-shadow: 0 0 6px 1px #dfdada;
  6482. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6483. :class="w.type == 5 ? 'isTypeOne' : ''">
  6484. <div class="workImg">
  6485. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6486. </div>
  6487. <div class="worksName">
  6488. <div>{{ w.sName }}</div>
  6489. </div>
  6490. </div> -->
  6491. </div>
  6492. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6493. 未提交
  6494. </div>
  6495. <div
  6496. class="noWorksS"
  6497. v-if="noWorksS && noWorksS[toolIndex].length"
  6498. >
  6499. <div
  6500. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6501. :key="sIndex"
  6502. class="noWorksName"
  6503. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6504. >
  6505. <el-tooltip effect="dark" :content="s.student" placement="top">
  6506. <span>{{ s.student }}</span>
  6507. </el-tooltip>
  6508. </div>
  6509. </div>
  6510. </div>
  6511. <div
  6512. v-if="
  6513. tType &&
  6514. tType == 2 &&
  6515. !sIsOpen &&
  6516. tool.tool.indexOf(41) != -1
  6517. "
  6518. class="worksBox"
  6519. >
  6520. <div
  6521. class="zuoyeYulan"
  6522. v-if="workStudent[toolIndex].length > 0"
  6523. >
  6524. <span class="worksTitle">作业预览</span>
  6525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6526. </div>
  6527. <div
  6528. class="worksDetailBox"
  6529. v-if="workStudent[toolIndex].length > 0"
  6530. >
  6531. <div
  6532. class="works"
  6533. style="
  6534. width: 200px;
  6535. height: 140px;
  6536. margin: 10px 10px 10px 0;
  6537. "
  6538. v-for="(w, wIndex) in workStudent[toolIndex]"
  6539. :key="wIndex"
  6540. >
  6541. <div class="workImg">
  6542. <img
  6543. src="../assets/icon/works/noImg.png"
  6544. @click="openXz(w, toolIndex)"
  6545. alt
  6546. />
  6547. <img
  6548. class="deleteImg"
  6549. src="../assets/deleteworks.png"
  6550. v-if="
  6551. w.userid == userid || tType == 1 || tType == 4
  6552. "
  6553. @click.stop="deleteWorks(w.wid)"
  6554. alt
  6555. />
  6556. </div>
  6557. <div class="worksName">
  6558. <div>{{ w.sName }}</div>
  6559. </div>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. <div v-if="false" class="xuan_right_box">
  6564. <div
  6565. class="tool_right_box"
  6566. v-for="(item, index) in tool.sentenceList"
  6567. :key="index"
  6568. >
  6569. <div>
  6570. <span
  6571. style="word-break: break-all; white-space: normal"
  6572. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6573. >
  6574. </div>
  6575. <div class="right_box_xuan">
  6576. <span>正确率</span>
  6577. <span>{{
  6578. (checkJson[toolIndex][index].right
  6579. ? checkJson[toolIndex][index].right
  6580. : 0) + "%"
  6581. }}</span>
  6582. </div>
  6583. <div class="right_box_xuan">
  6584. <span>答对人数</span>
  6585. <span>{{
  6586. checkJson[toolIndex][index].rightPerson.length
  6587. }}</span>
  6588. </div>
  6589. </div>
  6590. </div>
  6591. <div
  6592. v-if="
  6593. tType &&
  6594. ((tType == 2 && sIsOpen == true) ||
  6595. tType == 1 ||
  6596. tType == 4) &&
  6597. tool.tool.indexOf(47) != -1
  6598. "
  6599. >
  6600. <!-- <AnswerData
  6601. v-if="
  6602. checkJson[toolIndex].length &&
  6603. (tool.sentenceList || tool.sentenceList.length > 0)
  6604. "
  6605. :people="checkJson[toolIndex]"
  6606. ></AnswerData> -->
  6607. <sortToolWorkShow v-if="
  6608. worksStudent[toolIndex].length
  6609. "
  6610. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6611. </div>
  6612. <div
  6613. v-if="
  6614. tType &&
  6615. tType == 2 &&
  6616. !sIsOpen &&
  6617. tool.tool.indexOf(47) != -1
  6618. "
  6619. class="worksBox"
  6620. >
  6621. <div
  6622. class="zuoyeYulan"
  6623. v-if="workStudent[toolIndex].length > 0"
  6624. >
  6625. <span class="worksTitle">作业预览</span>
  6626. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6627. </div>
  6628. <div
  6629. class="worksDetailBox"
  6630. v-if="workStudent[toolIndex].length > 0"
  6631. >
  6632. <div
  6633. class="works"
  6634. style="
  6635. width: 200px;
  6636. height: 140px;
  6637. margin: 10px 10px 10px 0;
  6638. "
  6639. v-for="(w, wIndex) in workStudent[toolIndex]"
  6640. :key="wIndex"
  6641. >
  6642. <!-- @click="openXz(w, toolIndex)" -->
  6643. <div class="workImg" @click="openSen(w, toolIndex)">
  6644. <img src="../assets/icon/works/noImg.png" alt />
  6645. <img
  6646. class="deleteImg"
  6647. src="../assets/deleteworks.png"
  6648. v-if="
  6649. w.userid == userid || tType == 1 || tType == 4
  6650. "
  6651. @click.stop="deleteWorks(w.wid)"
  6652. alt
  6653. />
  6654. </div>
  6655. <div class="worksName">
  6656. <div>
  6657. {{ w.sName }}
  6658. </div>
  6659. </div>
  6660. </div>
  6661. </div>
  6662. </div>
  6663. <div
  6664. v-if="
  6665. tType &&
  6666. ((tType == 2 && sIsOpen == true) ||
  6667. tType == 1 ||
  6668. tType == 4) &&
  6669. tool.tool.indexOf(47) != -1
  6670. "
  6671. class="worksBox"
  6672. >
  6673. <div
  6674. class="zuoyeYulan"
  6675. v-if="
  6676. worksStudent.length &&
  6677. worksStudent[toolIndex].length > 0
  6678. "
  6679. >
  6680. <div class="worksTop">
  6681. <div>作业预览</div>
  6682. <div
  6683. class="corOpen"
  6684. @click="contract(toolIndex)"
  6685. v-if="
  6686. (isCloseList[toolIndex].isCloseBoolean) &&
  6687. isCloseList[toolIndex].isClose == 0
  6688. "
  6689. >
  6690. 折叠
  6691. </div>
  6692. <div
  6693. class="corOpen"
  6694. @click="contract(toolIndex)"
  6695. v-if="isCloseList[toolIndex].isClose == 1"
  6696. >
  6697. 展开
  6698. </div>
  6699. </div>
  6700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6701. </div>
  6702. <div
  6703. :id="'tool-' + toolIndex"
  6704. :style="{
  6705. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6706. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6707. }"
  6708. class="worksDetailBox"
  6709. v-if="
  6710. worksStudent.length &&
  6711. worksStudent[toolIndex].length > 0
  6712. "
  6713. >
  6714. <!-- @click="openXz(w, toolIndex)" -->
  6715. <div
  6716. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6717. :key="wIndex"
  6718. class="isWorksName2"
  6719. @click="openSen(w, toolIndex)"
  6720. >
  6721. {{ w.sName }}
  6722. <img
  6723. class="deleteImg deleteImg2"
  6724. src="../assets/deleteworks.png"
  6725. v-if="w.userid == userid || tType == 1 || tType == 4"
  6726. @click.stop="deleteWorks(w.wid)"
  6727. alt
  6728. />
  6729. </div>
  6730. </div>
  6731. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6732. 未提交
  6733. </div>
  6734. <div
  6735. class="noWorksS"
  6736. v-if="noWorksS && noWorksS[toolIndex].length"
  6737. >
  6738. <div
  6739. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6740. :key="sIndex"
  6741. class="noWorksName"
  6742. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6743. >
  6744. <el-tooltip effect="dark" :content="s.student" placement="top">
  6745. <span>{{ s.student }}</span>
  6746. </el-tooltip>
  6747. </div>
  6748. </div>
  6749. </div>
  6750. <div
  6751. v-if="
  6752. tType &&
  6753. ((tType == 2 && sIsOpen == true) ||
  6754. tType == 1 ||
  6755. tType == 4) &&
  6756. tool.tool.indexOf(48) != -1
  6757. "
  6758. class="worksBox"
  6759. >
  6760. <div
  6761. class="zuoyeYulan"
  6762. v-if="
  6763. worksStudent.length &&
  6764. worksStudent[toolIndex].length > 0
  6765. "
  6766. >
  6767. <div class="worksTop">
  6768. <div>作业预览</div>
  6769. <div
  6770. class="corOpen"
  6771. @click="contract(toolIndex)"
  6772. v-if="
  6773. (isCloseList[toolIndex].isCloseBoolean) &&
  6774. isCloseList[toolIndex].isClose == 0
  6775. "
  6776. >
  6777. 折叠
  6778. </div>
  6779. <div
  6780. class="corOpen"
  6781. @click="contract(toolIndex)"
  6782. v-if="isCloseList[toolIndex].isClose == 1"
  6783. >
  6784. 展开
  6785. </div>
  6786. </div>
  6787. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6788. </div>
  6789. <div
  6790. :id="'tool-' + toolIndex"
  6791. :style="{
  6792. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6793. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6794. }"
  6795. class="worksDetailBox"
  6796. v-if="
  6797. worksStudent.length &&
  6798. worksStudent[toolIndex].length > 0
  6799. "
  6800. >
  6801. <div
  6802. class="works"
  6803. style="
  6804. width: 200px;
  6805. height: 140px;
  6806. margin: 10px 10px 10px 0;
  6807. border-radius: 15px;
  6808. box-shadow: 0 0 6px 1px #dfdada;
  6809. "
  6810. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6811. :key="wIndex"
  6812. :class="w.type == 1 ? 'isTypeOne' : ''"
  6813. >
  6814. <div class="workImg">
  6815. <img :src="word" @click="openTable(w)" alt />
  6816. <!-- @click="openFile(w.works)" -->
  6817. <div
  6818. class="answerScore"
  6819. v-if="w.score"
  6820. @click.stop="openScore(w)"
  6821. :class="{
  6822. rightW:
  6823. w.userid == userid ||
  6824. tType == 1 ||
  6825. tType == 4 ||
  6826. w.ateacher == userid,
  6827. }"
  6828. >
  6829. {{ JSON.parse(w.score).wScore }}分
  6830. </div>
  6831. <div
  6832. class="answerScore"
  6833. @click.stop="openScore(w)"
  6834. v-else-if="courseDetail.userid == userid"
  6835. :class="{
  6836. rightW:
  6837. w.userid == userid ||
  6838. tType == 1 ||
  6839. tType == 4 ||
  6840. w.ateacher == userid,
  6841. }"
  6842. >
  6843. 评分
  6844. </div>
  6845. <img
  6846. class="deleteImg"
  6847. src="../assets/deleteworks.png"
  6848. v-if="
  6849. w.userid == userid || tType == 1 || tType == 4
  6850. "
  6851. @click.stop="deleteWorks(w.wid)"
  6852. alt
  6853. />
  6854. </div>
  6855. <div class="comment" style="min-width: 200px">
  6856. <div class="worksName">
  6857. <div>{{ w.sName }}</div>
  6858. </div>
  6859. <div class="commentList">
  6860. <div class="commentList">
  6861. <div
  6862. class="commentImg"
  6863. @click="
  6864. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6865. "
  6866. >
  6867. <img
  6868. :src="w.isLikes == true ? likes : noLikes"
  6869. alt=""
  6870. />
  6871. </div>
  6872. <div>{{ w.likesCount }}</div>
  6873. </div>
  6874. <div class="commentList" style="margin-right: 15px">
  6875. <div
  6876. class="commentImg"
  6877. @click="commentOther(w, toolIndex, wIndex)"
  6878. >
  6879. <img
  6880. src="../assets/icon/comment/comment.png"
  6881. alt=""
  6882. />
  6883. </div>
  6884. <div>{{ w.commentCount }}</div>
  6885. </div>
  6886. </div>
  6887. </div>
  6888. </div>
  6889. </div>
  6890. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6891. 未提交
  6892. </div>
  6893. <div
  6894. class="noWorksS"
  6895. v-if="noWorksS && noWorksS[toolIndex].length"
  6896. >
  6897. <div
  6898. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6899. :key="sIndex"
  6900. class="noWorksName"
  6901. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6902. >
  6903. <el-tooltip effect="dark" :content="s.student" placement="top">
  6904. <span>{{ s.student }}</span>
  6905. </el-tooltip>
  6906. </div>
  6907. </div>
  6908. </div>
  6909. <div
  6910. v-if="
  6911. tType &&
  6912. tType == 2 &&
  6913. !sIsOpen &&
  6914. tool.tool.indexOf(48) != -1
  6915. "
  6916. class="worksBox"
  6917. >
  6918. <div
  6919. class="zuoyeYulan"
  6920. v-if="workStudent[toolIndex].length > 0"
  6921. >
  6922. <span class="worksTitle">作业预览</span>
  6923. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6924. </div>
  6925. <div
  6926. class="worksDetailBox"
  6927. v-if="workStudent[toolIndex].length > 0"
  6928. >
  6929. <div
  6930. class="works"
  6931. style="
  6932. width: 200px;
  6933. height: 140px;
  6934. margin: 10px 10px 10px 0;
  6935. box-shadow: 0 0 6px 1px #dfdada;
  6936. "
  6937. v-for="(w, wIndex) in workStudent[toolIndex]"
  6938. :key="wIndex"
  6939. >
  6940. <div class="workImg">
  6941. <img :src="word" @click="openTable(w)" alt />
  6942. <div
  6943. class="answerScore"
  6944. v-if="w.score"
  6945. @click.stop="openScore(w)"
  6946. :class="{
  6947. rightW:
  6948. w.userid == userid || tType == 1 || tType == 4,
  6949. }"
  6950. >
  6951. {{ JSON.parse(w.score).wScore }}分
  6952. </div>
  6953. <div
  6954. class="answerScore"
  6955. @click.stop="openScore(w)"
  6956. v-else-if="courseDetail.userid == userid"
  6957. :class="{
  6958. rightW:
  6959. w.userid == userid || tType == 1 || tType == 4,
  6960. }"
  6961. >
  6962. 评分
  6963. </div>
  6964. <img
  6965. class="deleteImg"
  6966. src="../assets/deleteworks.png"
  6967. v-if="
  6968. w.userid == userid || tType == 1 || tType == 4
  6969. "
  6970. @click.stop="deleteWorks(w.wid)"
  6971. alt
  6972. />
  6973. </div>
  6974. <div class="worksName">
  6975. <div>{{ w.sName }}</div>
  6976. </div>
  6977. </div>
  6978. </div>
  6979. </div>
  6980. <div
  6981. v-if="
  6982. tType &&
  6983. ((tType == 2 && sIsOpen == true) ||
  6984. tType == 1 ||
  6985. tType == 4) &&
  6986. tool.tool.indexOf(52) != -1
  6987. "
  6988. class="worksBox"
  6989. >
  6990. <div
  6991. class="zuoyeYulan"
  6992. v-if="
  6993. worksStudent.length &&
  6994. worksStudent[toolIndex].length > 0
  6995. "
  6996. >
  6997. <div class="worksTop">
  6998. <div>作业预览</div>
  6999. <div
  7000. class="corOpen"
  7001. @click="contract(toolIndex)"
  7002. v-if="
  7003. (isCloseList[toolIndex].isCloseBoolean) &&
  7004. isCloseList[toolIndex].isClose == 0
  7005. "
  7006. >
  7007. 折叠
  7008. </div>
  7009. <div
  7010. class="corOpen"
  7011. @click="contract(toolIndex)"
  7012. v-if="isCloseList[toolIndex].isClose == 1"
  7013. >
  7014. 展开
  7015. </div>
  7016. </div>
  7017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7018. </div>
  7019. <div
  7020. :id="'tool-' + toolIndex"
  7021. :style="{
  7022. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7023. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7024. }"
  7025. class="worksDetailBox"
  7026. v-if="
  7027. worksStudent.length &&
  7028. worksStudent[toolIndex].length > 0
  7029. "
  7030. >
  7031. <div
  7032. class="works"
  7033. style="
  7034. width: 200px;
  7035. height: 140px;
  7036. margin: 10px 10px 10px 0;
  7037. border-radius: 15px;
  7038. box-shadow: 0 0 6px 1px #dfdada;
  7039. "
  7040. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7041. :key="wIndex"
  7042. :class="w.type == 1 ? 'isTypeOne' : ''"
  7043. >
  7044. <div class="workImg">
  7045. <img :src="word" @click="openWord(w)" alt />
  7046. <!-- @click="openFile(w.works)" -->
  7047. <div
  7048. class="answerScore"
  7049. v-if="w.score"
  7050. @click.stop="openScore(w)"
  7051. :class="{
  7052. rightW:
  7053. w.userid == userid ||
  7054. tType == 1 ||
  7055. tType == 4 ||
  7056. w.ateacher == userid,
  7057. }"
  7058. >
  7059. {{ JSON.parse(w.score).wScore }}分
  7060. </div>
  7061. <div
  7062. class="answerScore"
  7063. @click.stop="openScore(w)"
  7064. v-else-if="courseDetail.userid == userid"
  7065. :class="{
  7066. rightW:
  7067. w.userid == userid ||
  7068. tType == 1 ||
  7069. tType == 4 ||
  7070. w.ateacher == userid,
  7071. }"
  7072. >
  7073. 评分
  7074. </div>
  7075. <img
  7076. class="deleteImg"
  7077. src="../assets/deleteworks.png"
  7078. v-if="
  7079. w.userid == userid || tType == 1 || tType == 4
  7080. "
  7081. @click.stop="deleteWorks(w.wid)"
  7082. alt
  7083. />
  7084. </div>
  7085. <div class="comment" style="min-width: 200px">
  7086. <div class="worksName">
  7087. <div>{{ w.sName }}</div>
  7088. </div>
  7089. <div class="commentList">
  7090. <div class="commentList">
  7091. <div
  7092. class="commentImg"
  7093. @click="
  7094. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7095. "
  7096. >
  7097. <img
  7098. :src="w.isLikes == true ? likes : noLikes"
  7099. alt=""
  7100. />
  7101. </div>
  7102. <div>{{ w.likesCount }}</div>
  7103. </div>
  7104. <div class="commentList" style="margin-right: 15px">
  7105. <div
  7106. class="commentImg"
  7107. @click="commentOther(w, toolIndex, wIndex)"
  7108. >
  7109. <img
  7110. src="../assets/icon/comment/comment.png"
  7111. alt=""
  7112. />
  7113. </div>
  7114. <div>{{ w.commentCount }}</div>
  7115. </div>
  7116. </div>
  7117. </div>
  7118. </div>
  7119. </div>
  7120. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7121. 未提交
  7122. </div>
  7123. <div
  7124. class="noWorksS"
  7125. v-if="noWorksS && noWorksS[toolIndex].length"
  7126. >
  7127. <div
  7128. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7129. :key="sIndex"
  7130. class="noWorksName"
  7131. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7132. >
  7133. <el-tooltip effect="dark" :content="s.student" placement="top">
  7134. <span>{{ s.student }}</span>
  7135. </el-tooltip>
  7136. </div>
  7137. </div>
  7138. </div>
  7139. <div
  7140. v-if="
  7141. tType &&
  7142. tType == 2 &&
  7143. !sIsOpen &&
  7144. tool.tool.indexOf(52) != -1
  7145. "
  7146. class="worksBox"
  7147. >
  7148. <div
  7149. class="zuoyeYulan"
  7150. v-if="workStudent[toolIndex].length > 0"
  7151. >
  7152. <span class="worksTitle">作业预览</span>
  7153. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7154. </div>
  7155. <div
  7156. class="worksDetailBox"
  7157. v-if="workStudent[toolIndex].length > 0"
  7158. >
  7159. <div
  7160. class="works"
  7161. style="
  7162. width: 200px;
  7163. height: 140px;
  7164. margin: 10px 10px 10px 0;
  7165. box-shadow: 0 0 6px 1px #dfdada;
  7166. "
  7167. v-for="(w, wIndex) in workStudent[toolIndex]"
  7168. :key="wIndex"
  7169. >
  7170. <div class="workImg">
  7171. <img :src="word" @click="openWord(w)" alt />
  7172. <div
  7173. class="answerScore"
  7174. v-if="w.score"
  7175. @click.stop="openScore(w)"
  7176. :class="{
  7177. rightW:
  7178. w.userid == userid || tType == 1 || tType == 4,
  7179. }"
  7180. >
  7181. {{ JSON.parse(w.score).wScore }}分
  7182. </div>
  7183. <div
  7184. class="answerScore"
  7185. @click.stop="openScore(w)"
  7186. v-else-if="courseDetail.userid == userid"
  7187. :class="{
  7188. rightW:
  7189. w.userid == userid || tType == 1 || tType == 4,
  7190. }"
  7191. >
  7192. 评分
  7193. </div>
  7194. <img
  7195. class="deleteImg"
  7196. src="../assets/deleteworks.png"
  7197. v-if="
  7198. w.userid == userid || tType == 1 || tType == 4
  7199. "
  7200. @click.stop="deleteWorks(w.wid)"
  7201. alt
  7202. />
  7203. </div>
  7204. <div class="worksName">
  7205. <div>{{ w.sName }}</div>
  7206. </div>
  7207. </div>
  7208. </div>
  7209. </div>
  7210. <div
  7211. v-if="tool.tool.indexOf(49) != -1"
  7212. class="xuan_right_box"
  7213. style="margin: 0 15px 0 25px; width: 93%"
  7214. >
  7215. <div
  7216. v-if="courseDetail.userid == userid"
  7217. style="
  7218. display: flex;
  7219. justify-content: flex-end;
  7220. margin-right: 10px;
  7221. "
  7222. >
  7223. <el-button
  7224. type="primary"
  7225. size="small"
  7226. @click="addTools(49, toolIndex, taskCount)"
  7227. >分组设置</el-button
  7228. >
  7229. </div>
  7230. <div
  7231. v-if="groupStudentUid[toolIndex]"
  7232. class="group_staic_box"
  7233. >
  7234. <div
  7235. v-for="(gp, gd) in tool.groupJson.group"
  7236. :key="gd"
  7237. class="group_staic"
  7238. >
  7239. <span> {{ gp.name }}</span>
  7240. <span>
  7241. 目前人数{{
  7242. groupStudentUid[toolIndex][gd].length
  7243. }}人</span
  7244. >
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7249. <div
  7250. class="zuoyeYulan"
  7251. v-if="
  7252. worksStudent.length &&
  7253. worksStudent[toolIndex].length > 0
  7254. "
  7255. >
  7256. <span class="worksTitle">作业预览</span>
  7257. </div>
  7258. <div>
  7259. <div
  7260. class="group_workBox"
  7261. v-for="(g, gindex) in tool.groupJson.group"
  7262. :key="gindex"
  7263. >
  7264. <div
  7265. class="group_box"
  7266. v-if="
  7267. groupStudentUid[toolIndex] &&
  7268. worksStudent[toolIndex] &&
  7269. (worksStudent[toolIndex][gindex].length ||
  7270. groupStudentUid[toolIndex][gindex].indexOf(
  7271. userid
  7272. ) != -1)
  7273. "
  7274. >
  7275. <div class="group_title">
  7276. <el-tooltip
  7277. class="item"
  7278. effect="light"
  7279. :content="g.name"
  7280. placement="top"
  7281. >
  7282. <div class="group_name">{{ g.name }}</div>
  7283. </el-tooltip>
  7284. <el-button
  7285. type="primary"
  7286. v-if="
  7287. groupStudentUid[toolIndex][gindex].indexOf(
  7288. userid
  7289. ) != -1
  7290. "
  7291. @click="groupUpload(toolIndex, taskCount, gindex)"
  7292. >上传作业</el-button
  7293. >
  7294. </div>
  7295. <div class="group_work">
  7296. <div
  7297. class="works"
  7298. style="
  7299. width: 200px;
  7300. height: 140px;
  7301. margin: 10px 10px 10px 0;
  7302. border-radius: 15px;
  7303. box-shadow: 0 0 6px 1px #dfdada;
  7304. "
  7305. v-for="(w, wIndex) in worksStudent[toolIndex][
  7306. gindex
  7307. ]"
  7308. :key="wIndex"
  7309. :class="w.type == 1 ? 'isTypeOne' : ''"
  7310. >
  7311. <div class="workImg" v-if="w.type == 0">
  7312. <img
  7313. :src="w.works"
  7314. @click="previewImg(w.works,w)"
  7315. alt
  7316. />
  7317. <div
  7318. class="answerScore"
  7319. v-if="w.score"
  7320. @click.stop="openScore(w)"
  7321. :class="{
  7322. rightW:
  7323. w.userid == userid ||
  7324. tType == 1 ||
  7325. tType == 4 ||
  7326. w.ateacher == userid,
  7327. }"
  7328. >
  7329. {{ JSON.parse(w.score).wScore }}分
  7330. </div>
  7331. <div
  7332. class="answerScore"
  7333. @click.stop="openScore(w)"
  7334. v-else-if="courseDetail.userid == userid"
  7335. :class="{
  7336. rightW:
  7337. w.userid == userid ||
  7338. tType == 1 ||
  7339. tType == 4 ||
  7340. w.ateacher == userid,
  7341. }"
  7342. >
  7343. 评分
  7344. </div>
  7345. <img
  7346. class="deleteImg"
  7347. src="../assets/deleteworks.png"
  7348. v-if="
  7349. w.userid == userid ||
  7350. tType == 1 ||
  7351. tType == 4
  7352. "
  7353. @click.stop="deleteWorks(w.wid)"
  7354. alt
  7355. />
  7356. </div>
  7357. <div class="workImg" v-if="w.type == 1">
  7358. <img
  7359. :src="word"
  7360. @click="openFile(w.works,w)"
  7361. alt
  7362. />
  7363. <!-- @click="openFile(w.works)" -->
  7364. <div
  7365. class="answerScore"
  7366. v-if="w.score"
  7367. @click.stop="openScore(w)"
  7368. :class="{
  7369. rightW:
  7370. w.userid == userid ||
  7371. tType == 1 ||
  7372. tType == 4 ||
  7373. w.ateacher == userid,
  7374. }"
  7375. >
  7376. {{ JSON.parse(w.score).wScore }}分
  7377. </div>
  7378. <div
  7379. class="answerScore"
  7380. @click.stop="openScore(w)"
  7381. v-else-if="courseDetail.userid == userid"
  7382. :class="{
  7383. rightW:
  7384. w.userid == userid ||
  7385. tType == 1 ||
  7386. tType == 4 ||
  7387. w.ateacher == userid,
  7388. }"
  7389. >
  7390. 评分
  7391. </div>
  7392. <img
  7393. class="deleteImg"
  7394. src="../assets/deleteworks.png"
  7395. v-if="
  7396. w.userid == userid ||
  7397. tType == 1 ||
  7398. tType == 4
  7399. "
  7400. @click.stop="deleteWorks(w.wid)"
  7401. alt
  7402. />
  7403. </div>
  7404. <div class="workImg" v-if="w.type == 3">
  7405. <img
  7406. style="cursor: pointer"
  7407. :src="video"
  7408. @click="openVideo(w)"
  7409. alt
  7410. />
  7411. <!-- @click="openVideo(w.works)" -->
  7412. <div
  7413. class="answerScore"
  7414. v-if="w.score"
  7415. @click.stop="openScore(w)"
  7416. :class="{
  7417. rightW:
  7418. w.userid == userid ||
  7419. tType == 1 ||
  7420. tType == 4 ||
  7421. w.ateacher == userid,
  7422. }"
  7423. >
  7424. {{ JSON.parse(w.score).wScore }}分
  7425. </div>
  7426. <div
  7427. class="answerScore"
  7428. @click.stop="openScore(w)"
  7429. v-else-if="courseDetail.userid == userid"
  7430. :class="{
  7431. rightW:
  7432. w.userid == userid ||
  7433. tType == 1 ||
  7434. tType == 4 ||
  7435. w.ateacher == userid,
  7436. }"
  7437. >
  7438. 评分
  7439. </div>
  7440. <img
  7441. class="deleteImg"
  7442. src="../assets/deleteworks.png"
  7443. v-if="
  7444. w.userid == userid ||
  7445. tType == 1 ||
  7446. tType == 4
  7447. "
  7448. @click.stop="deleteWorks(w.wid)"
  7449. alt
  7450. />
  7451. </div>
  7452. <div class="workImg" v-if="w.type == 12">
  7453. <img
  7454. style="cursor: pointer"
  7455. :src="word2"
  7456. @click="downloadFile(w.works,w.userid)"
  7457. alt
  7458. />
  7459. <!-- @click="openVideo(w.works)" -->
  7460. <div
  7461. class="answerScore"
  7462. v-if="w.score"
  7463. @click.stop="openScore(w)"
  7464. :class="{
  7465. rightW:
  7466. w.userid == userid ||
  7467. tType == 1 ||
  7468. tType == 4 ||
  7469. w.ateacher == userid,
  7470. }"
  7471. >
  7472. {{ JSON.parse(w.score).wScore }}分
  7473. </div>
  7474. <div
  7475. class="answerScore"
  7476. @click.stop="openScore(w)"
  7477. v-else-if="courseDetail.userid == userid"
  7478. :class="{
  7479. rightW:
  7480. w.userid == userid ||
  7481. tType == 1 ||
  7482. tType == 4 ||
  7483. w.ateacher == userid,
  7484. }"
  7485. >
  7486. 评分
  7487. </div>
  7488. <img
  7489. class="deleteImg"
  7490. src="../assets/deleteworks.png"
  7491. v-if="
  7492. w.userid == userid ||
  7493. tType == 1 ||
  7494. tType == 4
  7495. "
  7496. @click.stop="deleteWorks(w.wid)"
  7497. alt
  7498. />
  7499. </div>
  7500. <div class="comment" style="min-width: 200px">
  7501. <div class="worksName">
  7502. <div>{{ w.sName }}</div>
  7503. </div>
  7504. <div class="commentList">
  7505. <div class="commentList">
  7506. <div
  7507. class="commentImg"
  7508. @click="
  7509. isLikes(
  7510. w.wid,
  7511. userid,
  7512. 1,
  7513. null,
  7514. w.isLikes,
  7515. w.sName
  7516. )
  7517. "
  7518. >
  7519. <img
  7520. :src="
  7521. w.isLikes == true ? likes : noLikes
  7522. "
  7523. alt=""
  7524. />
  7525. </div>
  7526. <div>{{ w.likesCount }}</div>
  7527. </div>
  7528. <div
  7529. class="commentList"
  7530. style="margin-right: 15px"
  7531. >
  7532. <div
  7533. class="commentImg"
  7534. @click="
  7535. commentOther(
  7536. w,
  7537. toolIndex,
  7538. wIndex,
  7539. gindex
  7540. )
  7541. "
  7542. >
  7543. <img
  7544. src="../assets/icon/comment/comment.png"
  7545. alt=""
  7546. />
  7547. </div>
  7548. <div>{{ w.commentCount }}</div>
  7549. </div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7560. 上传文件
  7561. <input
  7562. type="file"
  7563. accept="image/png, image/gif, image/jpeg"
  7564. style="display: none"
  7565. @change="beforeUpload1($event, 2, index)"
  7566. />
  7567. </div>-->
  7568. </div>
  7569. </div>
  7570. <!-- <div
  7571. class="vedioBox"
  7572. style="margin-top: 10px"
  7573. v-if="
  7574. courseDetail.userid == userid ||
  7575. (courseDetail.course_teacher &&
  7576. courseDetail.course_teacher.indexOf(userid) != -1)
  7577. "
  7578. :style="{
  7579. borderRadius:
  7580. !(
  7581. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7582. .toolChoose[0].tool &&
  7583. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7584. .toolChoose[0].tool.length > 0
  7585. ) &&
  7586. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7587. .taskDetail == '' &&
  7588. vChapterData[taskCount].length == 0 &&
  7589. fileC[taskCount].length == 0
  7590. ? '0 0 20px 20px'
  7591. : '20px',
  7592. }"
  7593. >
  7594. <div
  7595. class="queTop"
  7596. @click="isClose = !isClose"
  7597. style="
  7598. padding: 15px 0 15px 37px;
  7599. justify-content: space-between;
  7600. "
  7601. >
  7602. <div class="queTopTitle">新增工具</div>
  7603. <div class="queTopRight">
  7604. <div class="queTopClose" v-if="isClose == 0">
  7605. 展开
  7606. <div class="closeImg">
  7607. <img src="../assets/icon/newIcon/close.png" alt="" />
  7608. </div>
  7609. </div>
  7610. <div class="queTopClose" v-if="isClose == 1">
  7611. 折叠
  7612. <div class="openImg">
  7613. <img src="../assets/icon/newIcon/open.png" alt="" />
  7614. </div>
  7615. </div>
  7616. <el-button
  7617. style="margin: 0 30px 0 auto"
  7618. type="primary"
  7619. size="small"
  7620. v-if="isClose == 1 && checktoolArray.length > 0"
  7621. @click.stop="addToolChoose"
  7622. >确定</el-button
  7623. >
  7624. </div>
  7625. </div>
  7626. <div
  7627. class="tool_work_box"
  7628. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7629. >
  7630. <div class="tool_box">
  7631. <div class="tool_type_box">
  7632. <div class="chooseWho">
  7633. <div
  7634. :class="toolType == 0 ? 'isChooseActive' : ''"
  7635. @click="(toolType = 0), $forceUpdate()"
  7636. >
  7637. 互动类
  7638. </div>
  7639. <div
  7640. :class="toolType == 1 ? 'isChooseActive' : ''"
  7641. @click="(toolType = 1), $forceUpdate()"
  7642. >
  7643. 思维类
  7644. </div>
  7645. <div
  7646. :class="toolType == 2 ? 'isChooseActive' : ''"
  7647. @click="(toolType = 2), $forceUpdate()"
  7648. >
  7649. 测评类
  7650. </div>
  7651. <div
  7652. :class="toolType == 3 ? 'isChooseActive' : ''"
  7653. @click="(toolType = 3), $forceUpdate()"
  7654. >
  7655. 编程类
  7656. </div>
  7657. <div
  7658. :class="toolType == 5 ? 'isChooseActive' : ''"
  7659. @click="(toolType = 5), $forceUpdate()"
  7660. >
  7661. 学科类
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div>
  7666. <div class="toolSort" v-if="toolType == 0">
  7667. <div class="tool">
  7668. <div class="whiteBIcon" @click="addTools2(10)">
  7669. <img
  7670. src="../assets/icon/thirdToolList/time.png"
  7671. alt
  7672. />
  7673. <div style="margin: 5px 0">倒计时</div>
  7674. </div>
  7675. <div class="check" @click="addTools2(10)">
  7676. <img
  7677. src="../assets/icon/checkNo.png"
  7678. alt
  7679. v-if="checktoolArray.indexOf(10) == -1"
  7680. />
  7681. <div class="checkDiv" v-else>
  7682. <img src="../assets/icon/checkedIs.png" alt /><span
  7683. >已选择</span
  7684. >
  7685. </div>
  7686. </div>
  7687. </div>
  7688. <div class="tool">
  7689. <div class="whiteBIcon" @click="addTools2(65)">
  7690. <img
  7691. src="../assets/icon/firstToolList/pickPeople.png"
  7692. alt
  7693. />
  7694. <div style="margin: 5px 0">挑人</div>
  7695. </div>
  7696. <div class="check" @click="addTools2(65)">
  7697. <img
  7698. src="../assets/icon/checkNo.png"
  7699. alt
  7700. v-if="checktoolArray.indexOf(65) == -1"
  7701. />
  7702. <div class="checkDiv" v-else>
  7703. <img src="../assets/icon/checkedIs.png" alt /><span
  7704. >已选择</span
  7705. >
  7706. </div>
  7707. </div>
  7708. </div>
  7709. </div>
  7710. <div class="toolSort" v-if="toolType == 1">
  7711. <div class="tool">
  7712. <div class="whiteBIcon" @click="addTools2(7)">
  7713. <img
  7714. src="../assets/icon/secondToolList/mindNetwork.png"
  7715. alt
  7716. />
  7717. <div style="margin: 5px 0">思维网格</div>
  7718. </div>
  7719. <div class="check" @click="addTools2(7)">
  7720. <img
  7721. src="../assets/icon/checkNo.png"
  7722. alt
  7723. v-if="checktoolArray.indexOf(7) == -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(1)">
  7734. <img
  7735. src="../assets/icon/secondToolList/whiteBoard.png"
  7736. alt
  7737. />
  7738. <div style="margin: 5px 0">电子白板</div>
  7739. </div>
  7740. <div class="check" @click="addTools2(1)">
  7741. <img
  7742. src="../assets/icon/checkNo.png"
  7743. alt
  7744. v-if="checktoolArray.indexOf(1) == -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 class="tool">
  7754. <div class="whiteBIcon" @click="addTools2(52)">
  7755. <img
  7756. src="../assets/icon/fourthToolList/text.png"
  7757. alt
  7758. />
  7759. <div style="margin: 5px 0">文档</div>
  7760. </div>
  7761. <div class="check" @click="addTools2(52)">
  7762. <img
  7763. src="../assets/icon/checkNo.png"
  7764. alt
  7765. v-if="checktoolArray.indexOf(52) == -1"
  7766. />
  7767. <div class="checkDiv" v-else>
  7768. <img src="../assets/icon/checkedIs.png" alt /><span
  7769. >已选择</span
  7770. >
  7771. </div>
  7772. </div>
  7773. </div>
  7774. <div class="tool">
  7775. <div class="whiteBIcon" @click="addTools2(3)">
  7776. <img
  7777. src="../assets/icon/secondToolList/mindMapping.png"
  7778. alt
  7779. />
  7780. <div style="margin: 5px 0">思维导图</div>
  7781. </div>
  7782. <div class="check" @click="addTools2(3)">
  7783. <img
  7784. src="../assets/icon/checkNo.png"
  7785. alt
  7786. v-if="checktoolArray.indexOf(3) == -1"
  7787. />
  7788. <div class="checkDiv" v-else>
  7789. <img src="../assets/icon/checkedIs.png" alt /><span
  7790. >已选择</span
  7791. >
  7792. </div>
  7793. </div>
  7794. </div>
  7795. <div class="tool">
  7796. <div class="whiteBIcon" @click="addTools2(48)">
  7797. <img
  7798. src="../assets/icon/fourthToolList/table.png"
  7799. alt
  7800. />
  7801. <div style="margin: 5px 0">表格</div>
  7802. </div>
  7803. <div class="check" @click="addTools2(48)">
  7804. <img
  7805. src="../assets/icon/checkNo.png"
  7806. alt
  7807. v-if="checktoolArray.indexOf(48) == -1"
  7808. />
  7809. <div class="checkDiv" v-else>
  7810. <img src="../assets/icon/checkedIs.png" alt /><span
  7811. >已选择</span
  7812. >
  7813. </div>
  7814. </div>
  7815. </div>
  7816. </div>
  7817. <div class="toolSort" v-if="toolType == 6">
  7818. <div v-show="tooC == 49">
  7819. <img
  7820. @click="addTools(tooC, toolIndex, taskCount)"
  7821. src="../assets/icon/fourthToolList/group.png"
  7822. alt
  7823. />
  7824. <div style="margin: 5px 0">学生分组</div>
  7825. </div>
  7826. </div>
  7827. <div class="toolSort" v-if="toolType == 2">
  7828. <div class="tool">
  7829. <div class="whiteBIcon" @click="addTools2(16)">
  7830. <img
  7831. src="../assets/icon/thirdToolList/work.png"
  7832. alt
  7833. />
  7834. <div style="margin: 5px 0">作业提交</div>
  7835. </div>
  7836. <div class="check" @click="addTools2(16)">
  7837. <img
  7838. src="../assets/icon/checkNo.png"
  7839. alt
  7840. v-if="checktoolArray.indexOf(16) == -1"
  7841. />
  7842. <div class="checkDiv" v-else>
  7843. <img src="../assets/icon/checkedIs.png" alt /><span
  7844. >已选择</span
  7845. >
  7846. </div>
  7847. </div>
  7848. </div>
  7849. <div class="tool">
  7850. <div class="whiteBIcon" @click="addTools2(50)">
  7851. <img
  7852. src="../assets/icon/thirdToolList/plwork.png"
  7853. alt
  7854. />
  7855. <div style="margin: 5px 0">批量上传</div>
  7856. </div>
  7857. <div class="check" @click="addTools2(50)">
  7858. <img
  7859. src="../assets/icon/checkNo.png"
  7860. alt
  7861. v-if="checktoolArray.indexOf(50) == -1"
  7862. />
  7863. <div class="checkDiv" v-else>
  7864. <img src="../assets/icon/checkedIs.png" alt /><span
  7865. >已选择</span
  7866. >
  7867. </div>
  7868. </div>
  7869. </div>
  7870. </div>
  7871. <div class="toolSort" v-if="toolType == 3">
  7872. <div class="tool">
  7873. <div class="whiteBIcon" @click="addTools2(18)">
  7874. <img
  7875. src="../assets/icon/thirdToolList/trainPlatform.png"
  7876. alt
  7877. />
  7878. <div style="margin: 5px 0">训练平台</div>
  7879. </div>
  7880. <div class="check" @click="addTools2(18)">
  7881. <img
  7882. src="../assets/icon/checkNo.png"
  7883. alt
  7884. v-if="checktoolArray.indexOf(18) == -1"
  7885. />
  7886. <div class="checkDiv" v-else>
  7887. <img src="../assets/icon/checkedIs.png" alt /><span
  7888. >已选择</span
  7889. >
  7890. </div>
  7891. </div>
  7892. </div>
  7893. <div class="tool">
  7894. <div class="whiteBIcon" @click="addTools2(21)">
  7895. <img
  7896. src="../assets/icon/fourthToolList/program.png"
  7897. alt
  7898. />
  7899. <div style="margin: 5px 0">AIoT Blockly</div>
  7900. </div>
  7901. <div class="check" @click="addTools2(21)">
  7902. <img
  7903. src="../assets/icon/checkNo.png"
  7904. alt
  7905. v-if="checktoolArray.indexOf(21) == -1"
  7906. />
  7907. <div class="checkDiv" v-else>
  7908. <img src="../assets/icon/checkedIs.png" alt /><span
  7909. >已选择</span
  7910. >
  7911. </div>
  7912. </div>
  7913. </div>
  7914. <div class="tool">
  7915. <div class="whiteBIcon" @click="addTools2(23)">
  7916. <img
  7917. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7918. alt
  7919. />
  7920. <div style="margin: 5px 0">AI Python</div>
  7921. </div>
  7922. <div class="check" @click="addTools2(23)">
  7923. <img
  7924. src="../assets/icon/checkNo.png"
  7925. alt
  7926. v-if="checktoolArray.indexOf(23) == -1"
  7927. />
  7928. <div class="checkDiv" v-else>
  7929. <img src="../assets/icon/checkedIs.png" alt /><span
  7930. >已选择</span
  7931. >
  7932. </div>
  7933. </div>
  7934. </div>
  7935. <div class="tool">
  7936. <div class="whiteBIcon" @click="addTools2(24)">
  7937. <img
  7938. src="../assets/icon/fourthToolList/AIprogram.png"
  7939. alt
  7940. />
  7941. <div style="margin: 5px 0">AI Blockly</div>
  7942. </div>
  7943. <div class="check" @click="addTools2(24)">
  7944. <img
  7945. src="../assets/icon/checkNo.png"
  7946. alt
  7947. v-if="checktoolArray.indexOf(24) == -1"
  7948. />
  7949. <div class="checkDiv" v-else>
  7950. <img src="../assets/icon/checkedIs.png" alt /><span
  7951. >已选择</span
  7952. >
  7953. </div>
  7954. </div>
  7955. </div>
  7956. <div class="tool">
  7957. <div class="whiteBIcon" @click="addTools2(32)">
  7958. <img
  7959. src="../assets/icon/thirdToolList/code.png"
  7960. alt
  7961. />
  7962. <div style="margin: 5px 0">源码编辑</div>
  7963. </div>
  7964. <div class="check" @click="addTools2(32)">
  7965. <img
  7966. src="../assets/icon/checkNo.png"
  7967. alt
  7968. v-if="checktoolArray.indexOf(32) == -1"
  7969. />
  7970. <div class="checkDiv" v-else>
  7971. <img src="../assets/icon/checkedIs.png" alt /><span
  7972. >已选择</span
  7973. >
  7974. </div>
  7975. </div>
  7976. </div>
  7977. <div class="tool">
  7978. <div class="whiteBIcon" @click="addTools2(57)">
  7979. <img
  7980. src="../assets/icon/fourthToolList/cocopi.png"
  7981. alt
  7982. />
  7983. <div style="margin: 5px 0">CocoPi</div>
  7984. </div>
  7985. <div class="check" @click="addTools2(57)">
  7986. <img
  7987. src="../assets/icon/checkNo.png"
  7988. alt
  7989. v-if="checktoolArray.indexOf(57) == -1"
  7990. />
  7991. <div class="checkDiv" v-else>
  7992. <img src="../assets/icon/checkedIs.png" alt /><span
  7993. >已选择</span
  7994. >
  7995. </div>
  7996. </div>
  7997. </div>
  7998. <div class="tool">
  7999. <div class="whiteBIcon" @click="addTools2(63)">
  8000. <img
  8001. src="../assets/icon/fourthToolList/Wood.png"
  8002. alt
  8003. />
  8004. <div style="margin: 5px 0">海龟编程</div>
  8005. </div>
  8006. <div class="check" @click="addTools2(63)">
  8007. <img
  8008. src="../assets/icon/checkNo.png"
  8009. alt
  8010. v-if="checktoolArray.indexOf(63) == -1"
  8011. />
  8012. <div class="checkDiv" v-else>
  8013. <img src="../assets/icon/checkedIs.png" alt /><span
  8014. >已选择</span
  8015. >
  8016. </div>
  8017. </div>
  8018. </div>
  8019. </div>
  8020. <div class="toolSort" v-if="toolType == 5">
  8021. <div class="tool">
  8022. <div class="whiteBIcon" @click="addTools2(28)">
  8023. <img
  8024. src="../assets/icon/secondToolList/translation.png"
  8025. alt
  8026. />
  8027. <div style="margin: 5px 0">翻译</div>
  8028. </div>
  8029. <div class="check" @click="addTools2(28)">
  8030. <img
  8031. src="../assets/icon/checkNo.png"
  8032. alt
  8033. v-if="checktoolArray.indexOf(28) == -1"
  8034. />
  8035. <div class="checkDiv" v-else>
  8036. <img src="../assets/icon/checkedIs.png" alt /><span
  8037. >已选择</span
  8038. >
  8039. </div>
  8040. </div>
  8041. </div>
  8042. <div class="tool">
  8043. <div class="whiteBIcon" @click="addTools2(31)">
  8044. <img
  8045. src="../assets/icon/secondToolList/networkPanel.png"
  8046. alt
  8047. />
  8048. <div style="margin: 5px 0">数字画板</div>
  8049. </div>
  8050. <div class="check" @click="addTools2(31)">
  8051. <img
  8052. src="../assets/icon/checkNo.png"
  8053. alt
  8054. v-if="checktoolArray.indexOf(31) == -1"
  8055. />
  8056. <div class="checkDiv" v-else>
  8057. <img src="../assets/icon/checkedIs.png" alt /><span
  8058. >已选择</span
  8059. >
  8060. </div>
  8061. </div>
  8062. </div>
  8063. <div class="tool">
  8064. <div class="whiteBIcon" @click="addTools2(39)">
  8065. <img
  8066. src="../assets/icon/secondToolList/GeoGebra.png"
  8067. alt
  8068. />
  8069. <div style="margin: 5px 0">GeoGebra</div>
  8070. </div>
  8071. <div class="check" @click="addTools2(39)">
  8072. <img
  8073. src="../assets/icon/checkNo.png"
  8074. alt
  8075. v-if="checktoolArray.indexOf(39) == -1"
  8076. />
  8077. <div class="checkDiv" v-else>
  8078. <img src="../assets/icon/checkedIs.png" alt /><span
  8079. >已选择</span
  8080. >
  8081. </div>
  8082. </div>
  8083. </div>
  8084. <div class="tool">
  8085. <div class="whiteBIcon" @click="addTools2(66)">
  8086. <img
  8087. src="../assets/icon/secondToolList/formulaEdi.png"
  8088. alt
  8089. />
  8090. <div style="margin: 5px 0">公式编辑</div>
  8091. </div>
  8092. <div class="check" @click="addTools2(66)">
  8093. <img
  8094. src="../assets/icon/checkNo.png"
  8095. alt
  8096. v-if="checktoolArray.indexOf(66) == -1"
  8097. />
  8098. <div class="checkDiv" v-else>
  8099. <img src="../assets/icon/checkedIs.png" alt /><span
  8100. >已选择</span
  8101. >
  8102. </div>
  8103. </div>
  8104. </div>
  8105. <div class="tool">
  8106. <div class="whiteBIcon" @click="addTools2(67)">
  8107. <img
  8108. src="../assets/icon/secondToolList/molStr.png"
  8109. alt
  8110. />
  8111. <div style="margin: 5px 0">分子结构</div>
  8112. </div>
  8113. <div class="check" @click="addTools2(67)">
  8114. <img
  8115. src="../assets/icon/checkNo.png"
  8116. alt
  8117. v-if="checktoolArray.indexOf(67) == -1"
  8118. />
  8119. <div class="checkDiv" v-else>
  8120. <img src="../assets/icon/checkedIs.png" alt /><span
  8121. >已选择</span
  8122. >
  8123. </div>
  8124. </div>
  8125. </div>
  8126. <div class="tool">
  8127. <div class="whiteBIcon" @click="addTools2(68)">
  8128. <img
  8129. src="../assets/icon/secondToolList/timeAxis.png"
  8130. alt
  8131. />
  8132. <div style="margin: 5px 0">时间轴</div>
  8133. </div>
  8134. <div class="check" @click="addTools2(68)">
  8135. <img
  8136. src="../assets/icon/checkNo.png"
  8137. alt
  8138. v-if="checktoolArray.indexOf(68) == -1"
  8139. />
  8140. <div class="checkDiv" v-else>
  8141. <img src="../assets/icon/checkedIs.png" alt /><span
  8142. >已选择</span
  8143. >
  8144. </div>
  8145. </div>
  8146. </div>
  8147. </div>
  8148. <div class="toolSort" v-if="toolType == 7">
  8149. <div class="tool">
  8150. <div class="whiteBIcon" @click="addTools2(40)">
  8151. <img
  8152. src="../assets/icon/secondToolList/eval.png"
  8153. alt
  8154. />
  8155. <div style="margin: 5px 0">个人评价</div>
  8156. </div>
  8157. <div class="check" @click="addTools2(40)">
  8158. <img
  8159. src="../assets/icon/checkNo.png"
  8160. alt
  8161. v-if="checktoolArray.indexOf(40) == -1"
  8162. />
  8163. <div class="checkDiv" v-else>
  8164. <img src="../assets/icon/checkedIs.png" alt /><span
  8165. >已选择</span
  8166. >
  8167. </div>
  8168. </div>
  8169. </div>
  8170. </div>
  8171. <div class="toolSort" v-if="toolType == 4">
  8172. <div class="tool">
  8173. <div class="whiteBIcon" @click="addTools2(26)">
  8174. <img
  8175. src="../assets/icon/thirdToolList/courseDesign.png"
  8176. alt
  8177. />
  8178. <div style="margin: 5px 0">课程设计</div>
  8179. </div>
  8180. <div class="check" @click="addTools2(26)">
  8181. <img
  8182. src="../assets/icon/checkNo.png"
  8183. alt
  8184. v-if="checktoolArray.indexOf(26) == -1"
  8185. />
  8186. <div class="checkDiv" v-else>
  8187. <img src="../assets/icon/checkedIs.png" alt /><span
  8188. >已选择</span
  8189. >
  8190. </div>
  8191. </div>
  8192. </div>
  8193. <div class="tool">
  8194. <div class="whiteBIcon" @click="addTools2(25)">
  8195. <img
  8196. src="../assets/icon/thirdToolList/evalua.png"
  8197. alt
  8198. />
  8199. <div style="margin: 5px 0">目标管理</div>
  8200. </div>
  8201. <div class="check" @click="addTools2(25)">
  8202. <img
  8203. src="../assets/icon/checkNo.png"
  8204. alt
  8205. v-if="checktoolArray.indexOf(25) == -1"
  8206. />
  8207. <div class="checkDiv" v-else>
  8208. <img src="../assets/icon/checkedIs.png" alt /><span
  8209. >已选择</span
  8210. >
  8211. </div>
  8212. </div>
  8213. </div>
  8214. </div>
  8215. </div>
  8216. </div>
  8217. </div>
  8218. </div> -->
  8219. <div
  8220. class="vedioBox"
  8221. style="margin-top: 10px; border-radius: 20px"
  8222. v-if="
  8223. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8224. .eList &&
  8225. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8226. .eList.length &&
  8227. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8228. .eList.length > 0 &&
  8229. tType != 2
  8230. "
  8231. >
  8232. <div
  8233. class="queTop"
  8234. style="
  8235. font-size: 20px;
  8236. padding: 15px 0 15px 37px;
  8237. font-weight: bold;
  8238. "
  8239. >
  8240. <!-- <div class="question" style="width: 30px">
  8241. <img src="../assets/icon/toolIcon.png" alt />
  8242. </div>
  8243. <div class="queTitle">
  8244. <div>工具</div>
  8245. </div>-->
  8246. 评一评
  8247. </div>
  8248. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8249. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8250. <el-table
  8251. :data="
  8252. chapInfoList[courseType].chapterInfo[0].taskJson[
  8253. taskCount
  8254. ].eList
  8255. "
  8256. :header-cell-style="{ background: '#F0F4FA' }"
  8257. :row-class-name="tableRowClassName"
  8258. border
  8259. stripe
  8260. style="width: 100%"
  8261. >
  8262. <el-table-column
  8263. label="评价名称"
  8264. align="center"
  8265. >
  8266. <template slot-scope="scope"
  8267. ><div>{{ scope.row.value }}</div></template
  8268. >
  8269. </el-table-column>
  8270. <el-table-column
  8271. label="评价描述"
  8272. align="center"
  8273. >
  8274. <template slot-scope="scope"
  8275. ><div>
  8276. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8277. </div></template
  8278. >
  8279. </el-table-column>
  8280. <el-table-column label="目标" align="center">
  8281. <template slot-scope="scope"
  8282. ><div>
  8283. {{
  8284. scope.row.target
  8285. ? scope.row.target[scope.row.target.length - 1]
  8286. : "-"
  8287. }}
  8288. </div></template
  8289. ></el-table-column
  8290. >
  8291. </el-table>
  8292. <!-- <div
  8293. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8294. .chapterInfo[0].taskJson[taskCount].eList"
  8295. :key="eIndex"
  8296. class="elist_input_box"
  8297. >
  8298. <div style="width: 95%">
  8299. <div
  8300. style="
  8301. display: flex;
  8302. flex-direction: row;
  8303. flex-wrap: nowrap;
  8304. align-items: center;
  8305. "
  8306. >
  8307. <div style="max-width: calc(100% - 285px)">
  8308. <span>{{ eItem.value }}</span>
  8309. </div>
  8310. <div
  8311. style="
  8312. padding-left: 25px;
  8313. display: flex;
  8314. flex-direction: row;
  8315. align-items: center;
  8316. "
  8317. >
  8318. <el-rate
  8319. v-model="eItem.score"
  8320. :colors="colors"
  8321. disabled
  8322. ></el-rate>
  8323. </div>
  8324. </div>
  8325. <div class="elist_inptu_text" style="padding-left: 10px">
  8326. <span v-if="eItem.detail != ''">{{
  8327. eItem.detail
  8328. }}</span>
  8329. <span v-else style="color: #b2b1b3; font-size: 14px"
  8330. >暂无描述...</span
  8331. >
  8332. </div>
  8333. </div>
  8334. </div> -->
  8335. </div>
  8336. <div
  8337. v-if="evalua"
  8338. style="
  8339. border: 1px solid #e5e5e5;
  8340. max-width: 650px;
  8341. width: 100%;
  8342. margin-top: 20px;
  8343. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8344. "
  8345. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8346. >
  8347. <div class="e_add_top">
  8348. <div class="e_add_title" style="width: 100%">
  8349. <!-- <span>目标管理名称</span> -->
  8350. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8351. <img
  8352. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8353. src="../assets/line.png"
  8354. class="cru_line"
  8355. style="
  8356. width: 125px;
  8357. height: 20px;
  8358. bottom: -10px;
  8359. left: 5px;
  8360. "
  8361. />
  8362. <!-- <el-input
  8363. v-model="eTitle"
  8364. placeholder="请输入名称"
  8365. @change="setMindData"
  8366. ></el-input>-->
  8367. <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>
  8368. <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>
  8369. </div>
  8370. </div>
  8371. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8372. <div class="e_add_list_pbox">
  8373. <div class="e_add_list_pbox_title">
  8374. <!-- <span class="type_title">切换模式</span> -->
  8375. <div class="type_content">
  8376. <span
  8377. :class="{ active: typeMode == 1 }"
  8378. @click="typeMode = 1"
  8379. >目标树</span
  8380. >
  8381. <span
  8382. :class="{ active: typeMode == 2 }"
  8383. @click="typeMode = 2"
  8384. >目标罗盘</span
  8385. >
  8386. <!-- <span
  8387. :class="{ active: typeMode == 3 }"
  8388. @click="typeMode = 3"
  8389. >目标看板</span
  8390. > -->
  8391. </div>
  8392. </div>
  8393. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8394. <Mind
  8395. :showBar="false"
  8396. :mindData="data"
  8397. style="width: 100%"
  8398. v-show="typeMode == 1"
  8399. ></Mind>
  8400. <Sunburst
  8401. :Josn="eJson"
  8402. :num="eJSONNum"
  8403. style="width: 100%"
  8404. v-if="typeMode == 2"
  8405. ></Sunburst>
  8406. <SeeBoard
  8407. :Josn="eJson"
  8408. :num="eJSONNum"
  8409. :ename="eTitle"
  8410. style="width: 100%"
  8411. v-if="typeMode == 3"
  8412. >
  8413. </SeeBoard>
  8414. </div>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. </div>
  8419. </div>
  8420. <!-- <div
  8421. class="project_box"
  8422. style="margin-top: 15px; padding-bottom: 30px"
  8423. >
  8424. <div
  8425. style="
  8426. display: flex;
  8427. flex-wrap: nowrap;
  8428. flex-direction: column;
  8429. position: relative;
  8430. "
  8431. >
  8432. <div class="queTop">
  8433. <div class="question">
  8434. <img src="../assets/icon/homeWork.png" alt="" />
  8435. </div>
  8436. <div class="queTitle">
  8437. <div>作业提交<span>(提交图文视频等)</span></div>
  8438. <div>:任务:{{ task.task }}</div>
  8439. </div>
  8440. </div>
  8441. <div class="ediBottom">
  8442. <div
  8443. class="addEditor"
  8444. style="margin-top: 23px"
  8445. @click="openAddWork"
  8446. v-if="!isNoHomeWork"
  8447. >
  8448. 选择文件
  8449. </div>
  8450. <div
  8451. class="addEditor"
  8452. style="margin-top: 23px"
  8453. @click="openAddWork"
  8454. v-else
  8455. >
  8456. 已提交
  8457. </div>
  8458. </div>
  8459. </div>
  8460. </div>-->
  8461. </div>
  8462. </div>
  8463. <el-dialog
  8464. title="作业提交"
  8465. :visible.sync="dialogVisible"
  8466. :append-to-body="true"
  8467. width="500px"
  8468. :before-close="handleClose"
  8469. class="dialog_change"
  8470. >
  8471. <div class="marginT">
  8472. <div>上传文件</div>
  8473. <div style="display: flex; gap: 10px">
  8474. <div
  8475. class="chapter_add"
  8476. @click="addImg($event)"
  8477. v-if="studyJuri[0].cover.length == 0"
  8478. >
  8479. <div class="up_photo">
  8480. <img src="../assets/icon/uploadImg.png" alt />
  8481. </div>
  8482. <!-- <input
  8483. type="file"
  8484. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8485. style="display: none"
  8486. @change="beforeUpload1($event, 1)"
  8487. /> -->
  8488. <input
  8489. type="file"
  8490. accept="*"
  8491. style="display: none"
  8492. @change="beforeUpload1($event, 1)"
  8493. />
  8494. <!-- <input
  8495. type="file"
  8496. accept="image/*"
  8497. capture="camera"
  8498. style="display: none"
  8499. @change="beforeUpload1($event, 1)"
  8500. /> -->
  8501. </div>
  8502. <div
  8503. class="chapter_add"
  8504. @click="addImg($event)"
  8505. v-if="studyJuri[0].cover.length == 0"
  8506. >
  8507. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8508. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8509. </div>
  8510. <input
  8511. type="file"
  8512. accept="image/*"
  8513. capture="camera"
  8514. style="display: none"
  8515. @change="beforeUpload1($event, 1)"
  8516. />
  8517. </div>
  8518. </div>
  8519. <div
  8520. class="chapter_add"
  8521. style="
  8522. display: flex;
  8523. width: 100%;
  8524. flex-direction: row;
  8525. flex-wrap: wrap;
  8526. justify-content: flex-start;
  8527. padding: 15px 0;
  8528. "
  8529. v-if="studyJuri[0].cover.length > 0"
  8530. >
  8531. <div class="upCover">
  8532. <img
  8533. :src="studyJuri[0].cover[0].url"
  8534. alt
  8535. v-if="fileType == 0"
  8536. />
  8537. <img :src="word" alt v-else-if="fileType == 1" />
  8538. <img :src="video" alt v-else-if="fileType == 2" />
  8539. <img :src="word2" alt v-else-if="fileType == 3" />
  8540. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8541. <div class="deleteWord" @click="clean(1)">
  8542. <img src="../assets/icon/deleteWorks.png" alt />
  8543. </div>
  8544. </div>
  8545. </div>
  8546. </div>
  8547. <div
  8548. class="upload_send"
  8549. @click="addCourseWorks(taskCount)"
  8550. v-if="!proVisible"
  8551. >
  8552. 提交
  8553. </div>
  8554. </el-dialog>
  8555. </div>
  8556. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8557. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8558. '/courseDetail?userid=' +
  8559. userid +
  8560. '&oid=' +
  8561. oid +
  8562. '&org=' +
  8563. org +
  8564. '&cid=' +
  8565. classId +
  8566. '&courseId=' +
  8567. id +
  8568. '&tType=' +
  8569. tType +
  8570. '&screenType=' +
  8571. screenType+
  8572. '&role=' +
  8573. role
  8574. )"></classRoomHelper>
  8575. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8576. '/courseDetail?userid=' +
  8577. userid +
  8578. '&oid=' +
  8579. oid +
  8580. '&org=' +
  8581. org +
  8582. '&cid=' +
  8583. classId +
  8584. '&courseId=' +
  8585. id +
  8586. '&tType=' +
  8587. tType +
  8588. '&screenType=' +
  8589. screenType+
  8590. '&role=' +
  8591. role
  8592. )"></studentClassRoomHelper>
  8593. </div>
  8594. <div
  8595. class="pButton"
  8596. @click="(pzDialog = true), selectPz()"
  8597. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8598. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8599. >
  8600. <!-- 批 -->
  8601. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8602. </div>
  8603. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8604. <div class="pzTop2">
  8605. <!-- <div>评论</div>
  8606. <div @click="pzDialog = false">
  8607. <img src="../assets/close1.png" alt="" />
  8608. </div> -->
  8609. <div class="checkbox">
  8610. <!-- <div class="check" style="font-size: 25px; position: unset">
  8611. 评论
  8612. </div> -->
  8613. <div class="cb-tabList">
  8614. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8615. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8616. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8617. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8618. </div>
  8619. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8620. <el-option label="时间降序" :value="1"></el-option>
  8621. <el-option label="时间升序" :value="2"></el-option>
  8622. <el-option label="我的评课" :value="3"></el-option>
  8623. </el-select>
  8624. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8625. </div>
  8626. </div>
  8627. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8628. <div class="pzListBox" v-if="pzList && pzList.length">
  8629. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8630. <div class="pzNavTop">
  8631. <div>评</div>
  8632. <div>
  8633. {{
  8634. pz.username && pz.username.length > 5
  8635. ? pz.username.substring(0, 5) + "..."
  8636. : pz.username
  8637. }}的评论
  8638. </div>
  8639. <div
  8640. class="pzDelete"
  8641. v-if="pz.userid == userid"
  8642. @click="deletePz(pz.id)"
  8643. >
  8644. 删除
  8645. </div>
  8646. </div>
  8647. <div
  8648. @click="checkImg(getImgList(pz.content))"
  8649. class="pzContent cont"
  8650. v-html="pz.content"
  8651. v-if="pz.type == '1'"
  8652. ></div>
  8653. <div class="pzContent" v-if="pz.type == '2'">
  8654. <audio :src="pz.content" controls="controls" ref="audio">
  8655. Your browser does not support the audio element.
  8656. </audio>
  8657. </div>
  8658. <div class="pzContent" v-if="pz.type == '3'">
  8659. <img
  8660. :src="pz.content"
  8661. style="width: 90%; margin: 0 auto; display: block"
  8662. @click="previewImg(pz.content)"
  8663. />
  8664. </div>
  8665. <div class="timeAndReply">
  8666. <div class="time">
  8667. {{ pz.time }}
  8668. </div>
  8669. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8670. </div>
  8671. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8672. <div
  8673. v-for="(h, hIndex) in pz.hfList"
  8674. :key="hIndex"
  8675. class="hfItem"
  8676. >
  8677. <div class="whoReplyWho">
  8678. <div class="hfName">{{ h.username }}</div>
  8679. <div class="hfImg">
  8680. <img src="../assets/icon/newIcons/right.png" alt="" />
  8681. </div>
  8682. <div class="hfName">{{ pz.username }}</div>
  8683. </div>
  8684. <div class="hfContent" v-html="h.content"></div>
  8685. <div class="hfBottom">
  8686. <div class="hfTime">{{ h.time }}</div>
  8687. <div
  8688. class="deleteHfItem"
  8689. @click="deleteReply(h.id)"
  8690. v-if="userid == h.userid"
  8691. >
  8692. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8693. </div>
  8694. </div>
  8695. </div>
  8696. </div>
  8697. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8698. <div class="replyInput">
  8699. <el-input v-model="reply[pzIndex]"></el-input>
  8700. </div>
  8701. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8702. </div> -->
  8703. </div>
  8704. </div>
  8705. <div class="noPz" v-else>
  8706. <img src="../assets/icon/noPz.png" alt="" />
  8707. </div>
  8708. <div class="addPzButton">
  8709. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8710. 添加评论
  8711. </div>
  8712. <!-- <div class="img1">
  8713. <div @click="(addPzDialog = true), (pzType = 2)">
  8714. <img src="../assets/audio.png" /><span>音频</span>
  8715. </div>
  8716. </div> -->
  8717. </div>
  8718. </div>
  8719. <div class="scoreList" v-if="commentTagShow==1">
  8720. <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"/>
  8721. </div>
  8722. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8723. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8724. </div>
  8725. </div>
  8726. <div
  8727. v-if="toolDialogVisible == true"
  8728. class="toolMask"
  8729. @click="toolDialogVisible = false"
  8730. ></div>
  8731. <div v-if="toolDialogVisible == true" class="addToolCss">
  8732. <div class="toolTop">
  8733. <div style="font-weight: bold">新增工具</div>
  8734. <div @click="toolDialogVisible = false">
  8735. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8736. </div>
  8737. </div>
  8738. <div class="tool_box">
  8739. <div class="tool_type_box">
  8740. <div class="chooseWho">
  8741. <div
  8742. :class="toolType == 0 ? 'isChooseActive' : ''"
  8743. @click="(toolType = 0), $forceUpdate()"
  8744. >
  8745. 互动类
  8746. </div>
  8747. <div
  8748. :class="toolType == 1 ? 'isChooseActive' : ''"
  8749. @click="(toolType = 1), $forceUpdate()"
  8750. >
  8751. 思维类
  8752. </div>
  8753. <div
  8754. :class="toolType == 2 ? 'isChooseActive' : ''"
  8755. @click="(toolType = 2), $forceUpdate()"
  8756. >
  8757. 测评类
  8758. </div>
  8759. <div
  8760. :class="toolType == 3 ? 'isChooseActive' : ''"
  8761. @click="(toolType = 3), $forceUpdate()"
  8762. >
  8763. 编程类
  8764. </div>
  8765. <div
  8766. :class="toolType == 5 ? 'isChooseActive' : ''"
  8767. @click="(toolType = 5), $forceUpdate()"
  8768. >
  8769. 学科类
  8770. </div>
  8771. </div>
  8772. </div>
  8773. <div>
  8774. <div class="toolSort" v-if="toolType == 0">
  8775. <div
  8776. class="tool"
  8777. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8778. @click="addTools2(10)"
  8779. >
  8780. <div class="whiteBIcon">
  8781. <img src="../assets/icon/thirdToolList/time.png" alt />
  8782. <div style="margin: 5px 0">倒计时</div>
  8783. </div>
  8784. <div class="check">
  8785. <div
  8786. v-if="checktoolArray.indexOf(10) == -1"
  8787. class="noChoose"
  8788. ></div>
  8789. <div v-else class="isChoose"></div>
  8790. </div>
  8791. </div>
  8792. <div
  8793. class="tool"
  8794. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8795. @click="addTools2(65)"
  8796. >
  8797. <div class="whiteBIcon">
  8798. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8799. <div style="margin: 5px 0">挑人</div>
  8800. </div>
  8801. <div class="check">
  8802. <div
  8803. v-if="checktoolArray.indexOf(65) == -1"
  8804. class="noChoose"
  8805. ></div>
  8806. <div v-else class="isChoose"></div>
  8807. </div>
  8808. </div>
  8809. </div>
  8810. <div class="toolSort" v-if="toolType == 1">
  8811. <div
  8812. class="tool"
  8813. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8814. @click="addTools2(7)"
  8815. >
  8816. <div class="whiteBIcon">
  8817. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8818. <div style="margin: 5px 0">思维网格</div>
  8819. </div>
  8820. <div class="check">
  8821. <div
  8822. v-if="checktoolArray.indexOf(7) == -1"
  8823. class="noChoose"
  8824. ></div>
  8825. <div v-else class="isChoose"></div>
  8826. </div>
  8827. </div>
  8828. <div
  8829. class="tool"
  8830. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8831. @click="addTools2(1)"
  8832. >
  8833. <div class="whiteBIcon">
  8834. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8835. <div style="margin: 5px 0">电子白板</div>
  8836. </div>
  8837. <div class="check">
  8838. <div
  8839. v-if="checktoolArray.indexOf(1) == -1"
  8840. class="noChoose"
  8841. ></div>
  8842. <div v-else class="isChoose"></div>
  8843. </div>
  8844. </div>
  8845. <div
  8846. class="tool"
  8847. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8848. @click="addTools2(52)"
  8849. >
  8850. <div class="whiteBIcon">
  8851. <img src="../assets/icon/fourthToolList/text.png" alt />
  8852. <div style="margin: 5px 0">文档</div>
  8853. </div>
  8854. <div class="check">
  8855. <div
  8856. v-if="checktoolArray.indexOf(52) == -1"
  8857. class="noChoose"
  8858. ></div>
  8859. <div v-else class="isChoose"></div>
  8860. </div>
  8861. </div>
  8862. <div
  8863. class="tool"
  8864. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8865. @click="addTools2(3)"
  8866. >
  8867. <div class="whiteBIcon">
  8868. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8869. <div style="margin: 5px 0">思维导图</div>
  8870. </div>
  8871. <div class="check">
  8872. <div
  8873. v-if="checktoolArray.indexOf(3) == -1"
  8874. class="noChoose"
  8875. ></div>
  8876. <div v-else class="isChoose"></div>
  8877. </div>
  8878. </div>
  8879. <div
  8880. class="tool"
  8881. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8882. @click="addTools2(48)"
  8883. >
  8884. <div class="whiteBIcon">
  8885. <img src="../assets/icon/fourthToolList/table.png" alt />
  8886. <div style="margin: 5px 0">表格</div>
  8887. </div>
  8888. <div class="check">
  8889. <div
  8890. v-if="checktoolArray.indexOf(48) == -1"
  8891. class="noChoose"
  8892. ></div>
  8893. <div v-else class="isChoose"></div>
  8894. </div>
  8895. </div>
  8896. </div>
  8897. <div class="toolSort" v-if="toolType == 6">
  8898. <div v-show="tooC == 49">
  8899. <img
  8900. @click="addTools(tooC, toolIndex, taskCount)"
  8901. src="../assets/icon/fourthToolList/group.png"
  8902. alt
  8903. />
  8904. <div style="margin: 5px 0">学生分组</div>
  8905. </div>
  8906. </div>
  8907. <div class="toolSort" v-if="toolType == 2">
  8908. <div
  8909. class="tool"
  8910. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8911. @click="addTools2(16)"
  8912. >
  8913. <div class="whiteBIcon">
  8914. <img src="../assets/icon/thirdToolList/work.png" alt />
  8915. <div style="margin: 5px 0">作业提交</div>
  8916. </div>
  8917. <div class="check">
  8918. <div
  8919. v-if="checktoolArray.indexOf(16) == -1"
  8920. class="noChoose"
  8921. ></div>
  8922. <div v-else class="isChoose"></div>
  8923. </div>
  8924. </div>
  8925. <div
  8926. class="tool"
  8927. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8928. @click="addTools2(50)"
  8929. >
  8930. <div class="whiteBIcon">
  8931. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8932. <div style="margin: 5px 0">批量上传</div>
  8933. </div>
  8934. <div class="check">
  8935. <div
  8936. v-if="checktoolArray.indexOf(50) == -1"
  8937. class="noChoose"
  8938. ></div>
  8939. <div v-else class="isChoose"></div>
  8940. </div>
  8941. </div>
  8942. </div>
  8943. <div class="toolSort" v-if="toolType == 3">
  8944. <div
  8945. class="tool"
  8946. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8947. @click="addTools2(18)"
  8948. >
  8949. <div class="whiteBIcon">
  8950. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8951. <div style="margin: 5px 0">训练平台</div>
  8952. </div>
  8953. <div class="check">
  8954. <div
  8955. v-if="checktoolArray.indexOf(18) == -1"
  8956. class="noChoose"
  8957. ></div>
  8958. <div v-else class="isChoose"></div>
  8959. </div>
  8960. </div>
  8961. <div
  8962. class="tool"
  8963. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8964. @click="addTools2(21)"
  8965. >
  8966. <div class="whiteBIcon">
  8967. <img src="../assets/icon/fourthToolList/program.png" alt />
  8968. <div style="margin: 5px 0">AIoT Blockly</div>
  8969. </div>
  8970. <div class="check">
  8971. <div
  8972. v-if="checktoolArray.indexOf(21) == -1"
  8973. class="noChoose"
  8974. ></div>
  8975. <div v-else class="isChoose"></div>
  8976. </div>
  8977. </div>
  8978. <div
  8979. class="tool"
  8980. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8981. @click="addTools2(23)"
  8982. >
  8983. <div class="whiteBIcon">
  8984. <img
  8985. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8986. alt
  8987. />
  8988. <div style="margin: 5px 0">AI Python</div>
  8989. </div>
  8990. <div class="check">
  8991. <div
  8992. v-if="checktoolArray.indexOf(23) == -1"
  8993. class="noChoose"
  8994. ></div>
  8995. <div v-else class="isChoose"></div>
  8996. </div>
  8997. </div>
  8998. <div
  8999. class="tool"
  9000. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9001. @click="addTools2(24)"
  9002. >
  9003. <div class="whiteBIcon">
  9004. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  9005. <div style="margin: 5px 0">AI Blockly</div>
  9006. </div>
  9007. <div class="check">
  9008. <div
  9009. v-if="checktoolArray.indexOf(24) == -1"
  9010. class="noChoose"
  9011. ></div>
  9012. <div v-else class="isChoose"></div>
  9013. </div>
  9014. </div>
  9015. <div
  9016. class="tool"
  9017. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9018. @click="addTools2(32)"
  9019. >
  9020. <div class="whiteBIcon">
  9021. <img src="../assets/icon/thirdToolList/code.png" alt />
  9022. <div style="margin: 5px 0">源码编辑</div>
  9023. </div>
  9024. <div class="check">
  9025. <div
  9026. v-if="checktoolArray.indexOf(32) == -1"
  9027. class="noChoose"
  9028. ></div>
  9029. <div v-else class="isChoose"></div>
  9030. </div>
  9031. </div>
  9032. <div
  9033. class="tool"
  9034. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9035. @click="addTools2(57)"
  9036. >
  9037. <div class="whiteBIcon">
  9038. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  9039. <div style="margin: 5px 0">CocoPi</div>
  9040. </div>
  9041. <div class="check">
  9042. <div
  9043. v-if="checktoolArray.indexOf(57) == -1"
  9044. class="noChoose"
  9045. ></div>
  9046. <div v-else class="isChoose"></div>
  9047. </div>
  9048. </div>
  9049. <div
  9050. class="tool"
  9051. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9052. @click="addTools2(63)"
  9053. >
  9054. <div class="whiteBIcon">
  9055. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  9056. <div style="margin: 5px 0">海龟编程</div>
  9057. </div>
  9058. <div class="check">
  9059. <div
  9060. v-if="checktoolArray.indexOf(63) == -1"
  9061. class="noChoose"
  9062. ></div>
  9063. <div v-else class="isChoose"></div>
  9064. </div>
  9065. </div>
  9066. <div
  9067. class="tool"
  9068. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9069. @click="addTools2(71)"
  9070. >
  9071. <div class="whiteBIcon">
  9072. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  9073. <div style="margin: 5px 0">AI智能体</div>
  9074. </div>
  9075. <div class="check">
  9076. <div
  9077. v-if="checktoolArray.indexOf(71) == -1"
  9078. class="noChoose"
  9079. ></div>
  9080. <div v-else class="isChoose"></div>
  9081. </div>
  9082. </div>
  9083. </div>
  9084. <div class="toolSort" v-if="toolType == 7">
  9085. <div
  9086. class="tool"
  9087. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9088. @click="addTools2(40)"
  9089. >
  9090. <div class="whiteBIcon">
  9091. <img src="../assets/icon/secondToolList/eval.png" alt />
  9092. <div style="margin: 5px 0">个人评价</div>
  9093. </div>
  9094. <div class="check">
  9095. <div
  9096. v-if="checktoolArray.indexOf(40) == -1"
  9097. class="noChoose"
  9098. ></div>
  9099. <div v-else class="isChoose"></div>
  9100. </div>
  9101. </div>
  9102. </div>
  9103. <div class="toolSort" v-if="toolType == 5">
  9104. <div
  9105. class="tool"
  9106. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9107. @click="addTools2(28)"
  9108. >
  9109. <div class="whiteBIcon">
  9110. <img src="../assets/icon/secondToolList/translation.png" alt />
  9111. <div style="margin: 5px 0">翻译</div>
  9112. </div>
  9113. <div class="check">
  9114. <div
  9115. v-if="checktoolArray.indexOf(28) == -1"
  9116. class="noChoose"
  9117. ></div>
  9118. <div v-else class="isChoose"></div>
  9119. </div>
  9120. </div>
  9121. <div
  9122. class="tool"
  9123. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9124. @click="addTools2(31)"
  9125. >
  9126. <div class="whiteBIcon">
  9127. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9128. <div style="margin: 5px 0">数字画板</div>
  9129. </div>
  9130. <div class="check">
  9131. <div
  9132. v-if="checktoolArray.indexOf(31) == -1"
  9133. class="noChoose"
  9134. ></div>
  9135. <div v-else class="isChoose"></div>
  9136. </div>
  9137. </div>
  9138. <div
  9139. class="tool"
  9140. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9141. @click="addTools2(39)"
  9142. >
  9143. <div class="whiteBIcon">
  9144. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9145. <div style="margin: 5px 0">GeoGebra</div>
  9146. </div>
  9147. <div class="check">
  9148. <div
  9149. v-if="checktoolArray.indexOf(39) == -1"
  9150. class="noChoose"
  9151. ></div>
  9152. <div v-else class="isChoose"></div>
  9153. </div>
  9154. </div>
  9155. <div
  9156. class="tool"
  9157. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9158. @click="addTools2(66)"
  9159. >
  9160. <div class="whiteBIcon">
  9161. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9162. <div style="margin: 5px 0">公式编辑</div>
  9163. </div>
  9164. <div class="check">
  9165. <div
  9166. v-if="checktoolArray.indexOf(66) == -1"
  9167. class="noChoose"
  9168. ></div>
  9169. <div v-else class="isChoose"></div>
  9170. </div>
  9171. </div>
  9172. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9173. <div class="whiteBIcon" @click="addTools2(67)">
  9174. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9175. <div style="margin: 5px 0">分子结构</div>
  9176. </div>
  9177. <div class="check" @click="addTools2(67)">
  9178. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9179. <div v-else class="isChoose"></div>
  9180. </div>
  9181. </div> -->
  9182. <div
  9183. class="tool"
  9184. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9185. @click="addTools2(68)"
  9186. >
  9187. <div class="whiteBIcon">
  9188. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9189. <div style="margin: 5px 0">时间轴</div>
  9190. </div>
  9191. <div class="check">
  9192. <div
  9193. v-if="checktoolArray.indexOf(68) == -1"
  9194. class="noChoose"
  9195. ></div>
  9196. <div v-else class="isChoose"></div>
  9197. </div>
  9198. </div>
  9199. <!-- <div
  9200. class="tool"
  9201. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9202. @click="addTools2(69)"
  9203. >
  9204. <div class="whiteBIcon">
  9205. <img src="../assets/icon/secondToolList/english.png" alt />
  9206. <div style="margin: 5px 0">英语写作</div>
  9207. </div>
  9208. <div class="check">
  9209. <div
  9210. v-if="checktoolArray.indexOf(69) == -1"
  9211. class="noChoose"
  9212. ></div>
  9213. <div v-else class="isChoose"></div>
  9214. </div>
  9215. </div> -->
  9216. </div>
  9217. <div class="toolSort" v-if="toolType == 4">
  9218. <div
  9219. class="tool"
  9220. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9221. @click="addTools2(26)"
  9222. >
  9223. <div class="whiteBIcon">
  9224. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9225. <div style="margin: 5px 0">课程设计</div>
  9226. </div>
  9227. <div class="check">
  9228. <div
  9229. v-if="checktoolArray.indexOf(26) == -1"
  9230. class="noChoose"
  9231. ></div>
  9232. <div v-else class="isChoose"></div>
  9233. </div>
  9234. </div>
  9235. <div
  9236. class="tool"
  9237. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9238. @click="addTools2(25)"
  9239. >
  9240. <div class="whiteBIcon">
  9241. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9242. <div style="margin: 5px 0">目标管理</div>
  9243. </div>
  9244. <div class="check">
  9245. <div
  9246. v-if="checktoolArray.indexOf(25) == -1"
  9247. class="noChoose"
  9248. ></div>
  9249. <div v-else class="isChoose"></div>
  9250. </div>
  9251. </div>
  9252. </div>
  9253. </div>
  9254. </div>
  9255. <span
  9256. slot="footer"
  9257. class="dialog-footer"
  9258. style="display: block; text-align: center; padding: 0 0 10px 0"
  9259. >
  9260. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9261. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9262. </span>
  9263. </div>
  9264. <div
  9265. v-if="replyDialogVisible == true"
  9266. class="addDialogCss"
  9267. v-el-drag-dialog
  9268. >
  9269. <div class="pzTop">
  9270. <div class="teacherPz">
  9271. <div class="teacherPzImg">
  9272. <img src="../assets/icon/teacherPz.png" alt="" />
  9273. </div>
  9274. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9275. </div>
  9276. <div @click="replyDialogVisible = false">
  9277. <img src="../assets/close1.png" class="pzClose" alt="" />
  9278. </div>
  9279. </div>
  9280. <div class="addPzBox">
  9281. <!-- <div class="addPzCheck">
  9282. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9283. >文本</span
  9284. >
  9285. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9286. >音频</span
  9287. >
  9288. </div> -->
  9289. <div style="height: calc(100% - 50px)">
  9290. <editor-bar
  9291. class="binfo_input pzConText"
  9292. style="width: 100% !important; margin: 0 auto"
  9293. placeholder="请输入回复描述"
  9294. v-model="reply"
  9295. @change="change"
  9296. ></editor-bar>
  9297. </div>
  9298. <div class="addTextCss" @click="addHf">确定</div>
  9299. </div>
  9300. </div>
  9301. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9302. <div class="pzTop">
  9303. <div class="teacherPz">
  9304. <div class="teacherPzImg">
  9305. <img src="../assets/icon/teacherPz.png" alt="" />
  9306. </div>
  9307. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9308. </div>
  9309. <div @click="addPzDialog = false">
  9310. <img src="../assets/close1.png" class="pzClose" alt="" />
  9311. </div>
  9312. </div>
  9313. <div class="addPzBox">
  9314. <div class="addPzCheck">
  9315. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9316. >文本</span
  9317. >
  9318. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9319. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9320. >音频</span
  9321. >
  9322. </div>
  9323. <div style="height: calc(100% - 95px)">
  9324. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9325. v-if="pzType == 1"></textarea> -->
  9326. <editor-bar
  9327. class="binfo_input pzConText"
  9328. style="width: 100% !important"
  9329. placeholder="请输入任务描述"
  9330. v-model="pzConText"
  9331. @change="change"
  9332. v-if="pzType == 1"
  9333. ></editor-bar>
  9334. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9335. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9336. <div @click="addImg($event)">
  9337. <el-button type="primary">上传图片</el-button>
  9338. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9339. @change="beforeUpload1($event, 4)" />
  9340. </div>
  9341. </div> -->
  9342. </div>
  9343. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9344. 确定
  9345. </div>
  9346. </div>
  9347. </div>
  9348. <div v-if="proVisible" class="mask">
  9349. <div class="progressBox">
  9350. <!-- <div id="closePro" class="closeCss">
  9351. <img src="../assets/icon/close.png" alt />
  9352. </div> -->
  9353. <div class="lbox">
  9354. <img src="../assets/loading.gif" />上传中,请稍后
  9355. </div>
  9356. <div style="margin-bottom: 10px">
  9357. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9358. </div>
  9359. <el-progress
  9360. :text-inside="true"
  9361. :stroke-width="20"
  9362. :percentage="progress"
  9363. style="width: 80%"
  9364. ></el-progress>
  9365. </div>
  9366. </div>
  9367. <div v-if="proVisible2" class="mask">
  9368. <div class="progressBox">
  9369. <div class="lbox">
  9370. <img src="../assets/loading.gif" />上传中,请稍后
  9371. </div>
  9372. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9373. </div>
  9374. </div>
  9375. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9376. <img width="100%" :src="dialogImageUrl" alt />
  9377. </el-dialog>
  9378. <el-dialog
  9379. :title="noteName != '' ? noteName : '查看问卷'"
  9380. :visible.sync="dialogVisible5"
  9381. :append-to-body="true"
  9382. width="1000px"
  9383. :before-close="handleClose"
  9384. class="dialog_diy dialog_diy3"
  9385. >
  9386. <div>
  9387. <div
  9388. class="a_add_title"
  9389. style="
  9390. display: flex;
  9391. flex-direction: row;
  9392. align-items: center;
  9393. justify-content: center;
  9394. "
  9395. >
  9396. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9397. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9398. </div>
  9399. <div class="a_addBox">
  9400. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9401. 题目内容
  9402. </div>
  9403. <div
  9404. class="a_add_box"
  9405. v-for="(item1, index1) in askJson.askCount"
  9406. :key="index1"
  9407. >
  9408. <div class="a_add_head">
  9409. <div style="display: flex">
  9410. <span class="askIndex"> {{ index1 + 1 }}</span>
  9411. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9412. </div>
  9413. <img
  9414. v-if="askJson.askJson[index1].img"
  9415. :src="askJson.askJson[index1].img"
  9416. style="height: 300px; margin-top: 10px; max-width: 100%"
  9417. />
  9418. </div>
  9419. <div class="a_add_body">
  9420. <div class="a_add_input">
  9421. <el-radio-group
  9422. v-model="radio[index1]"
  9423. v-if="
  9424. askJson.askJson[index1].type == '1' ||
  9425. !askJson.askJson[index1].type
  9426. "
  9427. >
  9428. <el-radio
  9429. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9430. .checkList"
  9431. :key="checkIndex"
  9432. :label="checkIndex"
  9433. :disabled="isAnswer"
  9434. class="redioStyle"
  9435. ><span v-html="item2"></span
  9436. ></el-radio>
  9437. </el-radio-group>
  9438. <el-checkbox-group
  9439. v-model="radio[index1]"
  9440. v-if="askJson.askJson[index1].type == '2'"
  9441. >
  9442. <el-checkbox
  9443. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9444. .checkList"
  9445. :key="checkIndex1"
  9446. :label="checkIndex1"
  9447. :disabled="isAnswer"
  9448. class="redioStyle"
  9449. ><span v-html="item2"></span>
  9450. </el-checkbox>
  9451. </el-checkbox-group>
  9452. </div>
  9453. </div>
  9454. </div>
  9455. </div>
  9456. </div>
  9457. <span slot="footer" class="dialog-footer">
  9458. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9459. >取 消</el-button
  9460. >
  9461. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9462. >确 定</el-button
  9463. >
  9464. </span>
  9465. </el-dialog>
  9466. <el-dialog
  9467. :title="noteName != '' ? noteName : '查看问卷'"
  9468. :visible.sync="dialogVisible5Teacher"
  9469. :append-to-body="true"
  9470. width="1000px"
  9471. :before-close="handleClose"
  9472. class="dialog_diy dialog_diy3"
  9473. >
  9474. <div>
  9475. <div class="w_name">
  9476. 学生姓名:<span>{{ sStudent.student }}</span>
  9477. </div>
  9478. <div
  9479. class="a_add_title"
  9480. style="
  9481. display: flex;
  9482. flex-direction: row;
  9483. align-items: center;
  9484. justify-content: center;
  9485. "
  9486. >
  9487. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9488. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9489. </div>
  9490. <div class="a_addBox">
  9491. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9492. 题目内容
  9493. </div>
  9494. <div
  9495. class="a_add_box"
  9496. v-for="(item1, index1) in askJson.askCount"
  9497. :key="index1"
  9498. >
  9499. <div class="a_add_head">
  9500. <div style="display: flex">
  9501. <span class="askIndex">{{ index1 + 1 }}</span>
  9502. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9503. </div>
  9504. <img
  9505. v-if="askJson.askJson[index1].img"
  9506. :src="askJson.askJson[index1].img"
  9507. style="height: 300px; margin-top: 10px; max-width: 100%"
  9508. />
  9509. </div>
  9510. <div class="a_add_body">
  9511. <div class="a_add_input">
  9512. <el-radio-group
  9513. v-model="radio[index1]"
  9514. v-if="
  9515. askJson.askJson[index1].type == '1' ||
  9516. !askJson.askJson[index1].type
  9517. "
  9518. >
  9519. <el-radio
  9520. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9521. .checkList"
  9522. :key="checkIndex"
  9523. :label="checkIndex"
  9524. :disabled="isAnswer"
  9525. class="redioStyle"
  9526. ><span v-html="item2"></span
  9527. ></el-radio>
  9528. </el-radio-group>
  9529. <el-checkbox-group
  9530. v-model="radio[index1]"
  9531. v-if="askJson.askJson[index1].type == '2'"
  9532. >
  9533. <el-checkbox
  9534. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9535. .checkList"
  9536. :key="checkIndex1"
  9537. :label="checkIndex1"
  9538. :disabled="isAnswer"
  9539. class="redioStyle"
  9540. ><span v-html="item2"></span>
  9541. </el-checkbox>
  9542. </el-checkbox-group>
  9543. </div>
  9544. </div>
  9545. </div>
  9546. </div>
  9547. </div>
  9548. <span slot="footer" class="dialog-footer">
  9549. <el-button
  9550. @click="dialogVisible5Teacher = false"
  9551. v-show="noteName == ''"
  9552. >取 消</el-button
  9553. >
  9554. <el-button
  9555. type="primary"
  9556. @click="addStudentAskTeacher"
  9557. v-show="noteName == ''"
  9558. >确 定</el-button
  9559. >
  9560. </span>
  9561. </el-dialog>
  9562. <el-dialog
  9563. :title="noteName != '' ? noteName : '查看选择题'"
  9564. :visible.sync="dialogVisibleChoice"
  9565. :append-to-body="true"
  9566. width="1000px"
  9567. :before-close="handleClose"
  9568. class="dialog_diy dialog_diy3"
  9569. >
  9570. <div>
  9571. <!-- <div class="a_add_title" style="
  9572. display: flex;
  9573. flex-direction: row;
  9574. align-items: center;
  9575. justify-content: center;
  9576. ">
  9577. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9578. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9579. </div> -->
  9580. <div class="a_addBox">
  9581. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9582. 题目内容
  9583. </div>
  9584. <div
  9585. class="a_add_box"
  9586. v-for="(item1, index1) in testJson.testCount"
  9587. :key="index1"
  9588. >
  9589. <div class="a_add_head">
  9590. <div style="display: flex;">
  9591. <span class="askIndex">{{ index1 + 1 }}</span>
  9592. <div
  9593. v-if="testJson.testJson[index1].type == '1'"
  9594. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9595. >
  9596. (单选题)
  9597. </div>
  9598. <div
  9599. v-if="testJson.testJson[index1].type == '2'"
  9600. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9601. >
  9602. (多选题)
  9603. </div>
  9604. <div class="renderedFor"><span>题目:</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9605. </div>
  9606. <img
  9607. v-if="testJson.testJson[index1].img"
  9608. :src="testJson.testJson[index1].img"
  9609. style="height: 300px; margin-top: 10px; max-width: 100%"
  9610. />
  9611. </div>
  9612. <div
  9613. class="timuImgBox"
  9614. v-if="
  9615. testJson.testJson[index1].timuList &&
  9616. testJson.testJson[index1].timuList.length
  9617. "
  9618. >
  9619. <div
  9620. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9621. :key="tIndex"
  9622. class="timuImg"
  9623. @click.stop="previewImg(timg.src)"
  9624. >
  9625. <img :src="timg.src" alt="" />
  9626. </div>
  9627. </div>
  9628. <div class="a_add_body">
  9629. <div class="a_add_input">
  9630. <el-radio-group
  9631. v-model="radio[index1]"
  9632. v-if="testJson.testJson[index1].type == '1'"
  9633. >
  9634. <div class="radioBox">
  9635. <el-radio
  9636. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9637. .checkList"
  9638. :key="checkIndex"
  9639. :label="checkIndex"
  9640. :disabled="isAnswer"
  9641. class="redioStyle"
  9642. >
  9643. <div
  9644. style="margin-right: 10px"
  9645. v-if="item2 && item2.imgType && item2.imgType == 1"
  9646. >
  9647. <div class="inImg" @click.stop="previewImg(item2.src)">
  9648. <img :src="item2.src" alt="" />
  9649. </div>
  9650. </div>
  9651. <span v-else v-html="item2"></span>
  9652. </el-radio>
  9653. </div>
  9654. </el-radio-group>
  9655. <el-checkbox-group
  9656. v-model="radio[index1]"
  9657. v-if="testJson.testJson[index1].type == '2'"
  9658. >
  9659. <div class="radioBox">
  9660. <el-checkbox
  9661. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9662. .checkList"
  9663. :key="checkIndex"
  9664. :label="checkIndex"
  9665. :disabled="isAnswer"
  9666. class="redioStyle"
  9667. >
  9668. <div
  9669. style="margin-right: 10px"
  9670. v-if="item2 && item2.imgType && item2.imgType == 1"
  9671. >
  9672. <div class="inImg" @click.stop="previewImg(item2.src)">
  9673. <img :src="item2.src" alt="" />
  9674. </div>
  9675. </div>
  9676. <span v-else v-html="item2"></span>
  9677. </el-checkbox>
  9678. </div>
  9679. </el-checkbox-group>
  9680. </div>
  9681. </div>
  9682. </div>
  9683. </div>
  9684. </div>
  9685. <span slot="footer" class="dialog-footer">
  9686. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9687. >取 消</el-button
  9688. >
  9689. <el-button
  9690. type="primary"
  9691. @click="addStudentTest"
  9692. v-show="noteName == ''"
  9693. >确 定</el-button
  9694. >
  9695. </span>
  9696. </el-dialog>
  9697. <el-dialog
  9698. :title="noteName != '' ? noteName : '查看选择题'"
  9699. :visible.sync="dialogVisibleChoiceTeacher"
  9700. :append-to-body="true"
  9701. width="1000px"
  9702. :before-close="handleClose"
  9703. class="dialog_diy dialog_diy3"
  9704. >
  9705. <div>
  9706. <div class="w_name">
  9707. 学生姓名:<span>{{ sStudent.student }}</span>
  9708. </div>
  9709. <div class="a_addBox">
  9710. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9711. 题目内容
  9712. </div>
  9713. <div
  9714. class="a_add_box"
  9715. v-for="(item1, index1) in testJson.testCount"
  9716. :key="index1"
  9717. >
  9718. <div class="a_add_head">
  9719. <div style="display: flex">
  9720. <span class="askIndex">{{ index1 + 1 }}</span>
  9721. <div
  9722. v-if="testJson.testJson[index1].type == '1'"
  9723. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9724. >
  9725. (单选题)
  9726. </div>
  9727. <div
  9728. v-if="testJson.testJson[index1].type == '2'"
  9729. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9730. >
  9731. (多选题)
  9732. </div>
  9733. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9734. </div>
  9735. <img
  9736. v-if="testJson.testJson[index1].img"
  9737. :src="testJson.testJson[index1].img"
  9738. style="height: 300px; margin-top: 10px; max-width: 100%"
  9739. />
  9740. </div>
  9741. <div
  9742. class="timuImgBox"
  9743. v-if="
  9744. testJson.testJson[index1].timuList &&
  9745. testJson.testJson[index1].timuList.length
  9746. "
  9747. >
  9748. <div
  9749. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9750. :key="tIndex"
  9751. class="timuImg"
  9752. @click.stop="previewImg(timg.src)"
  9753. >
  9754. <img :src="timg.src" alt="" />
  9755. </div>
  9756. </div>
  9757. <div class="a_add_body">
  9758. <div class="a_add_input">
  9759. <el-radio-group
  9760. v-model="radio[index1]"
  9761. v-if="testJson.testJson[index1].type == '1'"
  9762. >
  9763. <div class="radioBox">
  9764. <el-radio
  9765. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9766. .checkList"
  9767. :key="checkIndex"
  9768. :label="checkIndex"
  9769. :disabled="isAnswer"
  9770. class="redioStyle"
  9771. >
  9772. <div
  9773. style="margin-right: 10px"
  9774. v-if="item2 && item2.imgType && item2.imgType == 1"
  9775. >
  9776. <div class="inImg" @click.stop="previewImg(item2.src)">
  9777. <img :src="item2.src" alt="" />
  9778. </div>
  9779. </div>
  9780. <span v-else v-html="item2"></span>
  9781. </el-radio>
  9782. </div>
  9783. </el-radio-group>
  9784. <el-checkbox-group
  9785. v-model="radio[index1]"
  9786. v-if="testJson.testJson[index1].type == '2'"
  9787. >
  9788. <div class="radioBox">
  9789. <el-checkbox
  9790. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9791. .checkList"
  9792. :key="checkIndex"
  9793. :label="checkIndex"
  9794. :disabled="isAnswer"
  9795. class="redioStyle"
  9796. >
  9797. <div
  9798. style="margin-right: 10px"
  9799. v-if="item2 && item2.imgType && item2.imgType == 1"
  9800. >
  9801. <div class="inImg" @click.stop="previewImg(item2.src)">
  9802. <img :src="item2.src" alt="" />
  9803. </div>
  9804. </div>
  9805. <span v-else v-html="item2"></span>
  9806. </el-checkbox>
  9807. </div>
  9808. </el-checkbox-group>
  9809. </div>
  9810. </div>
  9811. </div>
  9812. </div>
  9813. </div>
  9814. <span slot="footer" class="dialog-footer">
  9815. <el-button
  9816. @click="dialogVisibleChoiceTeacher = false"
  9817. v-show="noteName == ''"
  9818. >取 消</el-button
  9819. >
  9820. <el-button
  9821. type="primary"
  9822. @click="addStudentTestTeacher"
  9823. v-show="noteName == ''"
  9824. >确 定</el-button
  9825. >
  9826. </span>
  9827. </el-dialog>
  9828. <el-dialog
  9829. title="查看富文本"
  9830. :visible.sync="dialogVisible1"
  9831. :append-to-body="true"
  9832. width="500px"
  9833. :before-close="handleClose"
  9834. class="dialog_diy textCss"
  9835. >
  9836. <el-form style="font-size: 20px">
  9837. <el-form-item label="文本标题" class="textTitle">
  9838. <div style="font-size: 20px">{{ text.name }}</div>
  9839. </el-form-item>
  9840. <div>富文本内容</div>
  9841. <div
  9842. v-html="text.url"
  9843. style="font-size: 18px; padding: 40px 0 0 0"
  9844. ></div>
  9845. </el-form>
  9846. <span slot="footer" class="dialog-footer">
  9847. <el-button type="primary" @click="dialogVisible1 = false"
  9848. >确定</el-button
  9849. >
  9850. </span>
  9851. </el-dialog>
  9852. <el-dialog
  9853. title="文件预览"
  9854. :visible.sync="dialogVisible3"
  9855. width="50%"
  9856. :before-close="handleClose"
  9857. class="dialog_diy"
  9858. :class="{ fullStyle: full }"
  9859. >
  9860. <div slot="title" class="header-title">
  9861. <div style="color: #fff">文件预览</div>
  9862. <div style="position: absolute; top: 19px; right: 50px">
  9863. <img
  9864. src="../assets/full.png"
  9865. style="height: 16px; cursor: pointer"
  9866. alt=""
  9867. @click="fullTools"
  9868. />
  9869. </div>
  9870. </div>
  9871. <pdf
  9872. v-if="showPDF"
  9873. :pdfUrl="pptImgUrl"
  9874. style="width: 100%; height: 520px; overflow: auto"
  9875. :class="{ fullStyle: full }"
  9876. ></pdf>
  9877. <iframe
  9878. v-else
  9879. :src="pptImgUrl"
  9880. frameborder="0"
  9881. width="100%"
  9882. height="600"
  9883. :class="{ fullStyle: full }"
  9884. ></iframe>
  9885. </el-dialog>
  9886. <el-dialog
  9887. title="文件预览"
  9888. :visible.sync="dialogVisible6"
  9889. width="50%"
  9890. :before-close="handleClose"
  9891. class="dialog_diy"
  9892. >
  9893. <iframe
  9894. :src="pptImgUrl1"
  9895. frameborder="0"
  9896. width="100%"
  9897. height="600"
  9898. ></iframe>
  9899. </el-dialog>
  9900. <el-dialog
  9901. title="提示"
  9902. :visible.sync="dialogVisible4"
  9903. :append-to-body="true"
  9904. width="800px"
  9905. :before-close="handleClose"
  9906. class="dialog_diy notice"
  9907. >
  9908. <div>此功能暂未开放!</div>
  9909. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9910. </el-dialog>
  9911. <el-dialog
  9912. title="问答"
  9913. :visible.sync="answerDialogVisible"
  9914. :append-to-body="true"
  9915. width="800px"
  9916. :before-close="handleClose"
  9917. class="dialog_diy"
  9918. >
  9919. <div>
  9920. <div
  9921. style="
  9922. display: flex;
  9923. flex-wrap: nowrap;
  9924. flex-direction: column;
  9925. position: relative;
  9926. "
  9927. >
  9928. <div class="queTop" style="padding: 20px 0 20px 0">
  9929. <div class="question">
  9930. <img src="../assets/icon/question.png" alt />
  9931. </div>
  9932. <div class="queTitle">
  9933. <div style="width: 90px; min-width: 90px">提问:</div>
  9934. <div>{{ answerQ }}</div>
  9935. </div>
  9936. </div>
  9937. <div class="ediBottom">
  9938. <textarea
  9939. rows="6"
  9940. class="binfo_input"
  9941. cols
  9942. style="width: 95%; height: 120px"
  9943. v-model="questionAnswer"
  9944. ></textarea>
  9945. </div>
  9946. </div>
  9947. </div>
  9948. <div slot="footer">
  9949. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9950. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9951. </div>
  9952. </el-dialog>
  9953. <el-dialog
  9954. title="问答"
  9955. :visible.sync="answerDialogVisibleTeacher"
  9956. :append-to-body="true"
  9957. width="800px"
  9958. :before-close="handleClose"
  9959. class="dialog_diy"
  9960. >
  9961. <div>
  9962. <div class="w_name">
  9963. 学生姓名:<span>{{ sStudent.student }}</span>
  9964. </div>
  9965. <div
  9966. style="
  9967. display: flex;
  9968. flex-wrap: nowrap;
  9969. flex-direction: column;
  9970. position: relative;
  9971. "
  9972. >
  9973. <div class="queTop" style="padding: 20px 0 20px 0">
  9974. <div class="question">
  9975. <img src="../assets/icon/question.png" alt />
  9976. </div>
  9977. <div class="queTitle">
  9978. <div style="width: 90px; min-width: 90px">提问:</div>
  9979. <div>{{ answerQ }}</div>
  9980. </div>
  9981. </div>
  9982. <div class="ediBottom">
  9983. <textarea
  9984. rows="6"
  9985. class="binfo_input"
  9986. cols
  9987. style="width: 95%; height: 120px"
  9988. v-model="questionAnswer"
  9989. ></textarea>
  9990. </div>
  9991. </div>
  9992. </div>
  9993. <div slot="footer">
  9994. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9995. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9996. </div>
  9997. </el-dialog>
  9998. <el-dialog
  9999. title="倒计时"
  10000. :visible.sync="timeDialogVisible"
  10001. :append-to-body="true"
  10002. width="800px"
  10003. :before-close="handleClose"
  10004. class="dialog_diy"
  10005. >
  10006. <div>
  10007. <div style="margin-bottom: 20px; color: #999">
  10008. 提示:点击“+”或“-”修改倒计时时长。
  10009. </div>
  10010. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10011. </div>
  10012. <div slot="footer">
  10013. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10014. </div>
  10015. </el-dialog>
  10016. <el-dialog
  10017. title="权限设置"
  10018. :visible.sync="juriVisible"
  10019. :append-to-body="true"
  10020. width="400px"
  10021. :before-close="handleClose"
  10022. class="dialog_diy"
  10023. >
  10024. <div>
  10025. <div class="open_box">
  10026. <div class="switch_box">
  10027. <span>允许学生查看所有作业</span>
  10028. <el-switch
  10029. v-model="sIsOpen"
  10030. active-text=""
  10031. class="switchCss"
  10032. @change="updateSLook"
  10033. ></el-switch>
  10034. </div>
  10035. <div
  10036. class="switch_box"
  10037. v-if="
  10038. (courseDetail.userid == userid ||
  10039. (courseDetail.course_teacher &&
  10040. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10041. "
  10042. >
  10043. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10044. <span>禁止学生查看阶段</span>
  10045. <el-switch
  10046. v-model="IsLookOpen"
  10047. active-text=""
  10048. class="switchCss"
  10049. @change="updateLookOpen"
  10050. ></el-switch>
  10051. </div>
  10052. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  10053. (courseDetail.course_teacher &&
  10054. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  10055. <span>开启跟随模式</span>
  10056. <el-switch
  10057. v-model="IsFollow"
  10058. active-text=""
  10059. class="switchCss"
  10060. @change="updateFollow"
  10061. ></el-switch>
  10062. </div>
  10063. <div class="switch_box" v-if="courseDetail.userid == userid">
  10064. <span>允许学生查看内容资料</span>
  10065. <el-switch
  10066. v-model="IsStulook"
  10067. active-text=""
  10068. class="switchCss"
  10069. @change="updateIsStulook"
  10070. ></el-switch>
  10071. </div>
  10072. </div>
  10073. </div>
  10074. <div slot="footer">
  10075. <el-button
  10076. style="background: #409efe; color: #fff"
  10077. @click="juriVisible = false"
  10078. >关 闭</el-button
  10079. >
  10080. </div>
  10081. </el-dialog>
  10082. <el-dialog
  10083. title="查看视频"
  10084. :visible.sync="videoVisible"
  10085. :append-to-body="true"
  10086. width="1000px"
  10087. :before-close="handleClose"
  10088. class="dialog_diy1"
  10089. >
  10090. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10091. <video-player
  10092. class="video-player vjs-custom-skin"
  10093. :playsinline="true"
  10094. :options="videoDetail"
  10095. @play="onPlayerPlay($event)"
  10096. style="width: 100%; height: 100%"
  10097. ></video-player>
  10098. </div>
  10099. <div slot="footer">
  10100. <el-button
  10101. style="background: #409efe; color: #fff"
  10102. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10103. >
  10104. 关 闭</el-button
  10105. >
  10106. </div>
  10107. </el-dialog>
  10108. <el-dialog
  10109. title="查看详情"
  10110. :visible.sync="commentDialogVisible"
  10111. :append-to-body="true"
  10112. width="800px"
  10113. :before-close="handleClose"
  10114. class="dialog_diy"
  10115. >
  10116. <div class="commentTop">
  10117. <div class="studentDetail">
  10118. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10119. <div class="nameAndTime">
  10120. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10121. <div>{{ commentDetail.time }}</div>
  10122. </div>
  10123. <div
  10124. class="returnBtn"
  10125. style="margin-left: auto; width: 80px"
  10126. v-if="
  10127. commentDetail.works &&
  10128. commentDetail.type == 0 &&
  10129. (tType == 1 || tType == 4)
  10130. "
  10131. @click="
  10132. showPicturePaint(
  10133. commentDetail.img ? commentDetail.img : commentDetail.works
  10134. )
  10135. "
  10136. >
  10137. 教师批注
  10138. </div>
  10139. </div>
  10140. <div
  10141. class="worksAnswer"
  10142. v-if="commentDetail.works && commentDetail.type == 2"
  10143. >
  10144. {{ JSON.parse(commentDetail.works)[0].answer }}
  10145. </div>
  10146. <div
  10147. class="worksAnswer"
  10148. v-if="commentDetail.works && commentDetail.type == 1"
  10149. >
  10150. <img
  10151. src="../assets/teacherWork.png"
  10152. v-if="commentDetail.ateacher"
  10153. class="w_teachert"
  10154. />
  10155. <pdf
  10156. v-if="showPDF"
  10157. :pdfUrl="pptImgUrl"
  10158. style="width: 100%; height: 520px; overflow: auto"
  10159. :class="{ fullStyle: full }"
  10160. ></pdf>
  10161. <iframe
  10162. v-else
  10163. :src="pptImgUrl"
  10164. frameborder="0"
  10165. width="100%"
  10166. height="600"
  10167. :class="{ fullStyle: full }"
  10168. ></iframe>
  10169. </div>
  10170. <div
  10171. class="worksAnswer"
  10172. v-if="commentDetail.works && commentDetail.type == 0"
  10173. >
  10174. <img
  10175. src="../assets/teacherWork.png"
  10176. v-if="commentDetail.ateacher"
  10177. class="w_teachert"
  10178. style="right: 105px"
  10179. />
  10180. <img
  10181. :src="commentDetail.works"
  10182. alt=""
  10183. @click="previewImg(commentDetail.works)"
  10184. />
  10185. </div>
  10186. <div
  10187. class="worksAnswer"
  10188. v-if="commentDetail.works && commentDetail.type == 3"
  10189. >
  10190. <img
  10191. src="../assets/teacherWork.png"
  10192. v-if="commentDetail.ateacher"
  10193. class="w_teachert"
  10194. />
  10195. <video-player
  10196. class="video-player vjs-custom-skin"
  10197. :playsinline="true"
  10198. :options="videoDetail"
  10199. @play="onPlayerPlay($event)"
  10200. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10201. ></video-player>
  10202. </div>
  10203. <div
  10204. class="worksAnswer"
  10205. v-if="commentDetail.works && commentDetail.type == 10"
  10206. >
  10207. <div class="cont" v-html="commentDetail.works.text"></div>
  10208. </div>
  10209. <div
  10210. class="worksAnswer codeFileBox"
  10211. v-if="commentDetail.works && commentDetail.type == 12"
  10212. @click="downloadFile(commentDetail.works)"
  10213. >
  10214. <img src="../assets/icon/codeFile.png" />
  10215. <div>点击下载文件</div>
  10216. </div>
  10217. <div
  10218. class="worksAnswer codeFileBox"
  10219. v-if="commentDetail.works && commentDetail.type == 15"
  10220. @click="
  10221. openCocoPi(
  10222. 57,
  10223. commentIndexJson.toolIndex,
  10224. commentDetail.userid,
  10225. commentDetail.sName
  10226. )
  10227. "
  10228. >
  10229. <img src="../assets/icon/codeFile.png" />
  10230. <div>点击打开CocoPi</div>
  10231. </div>
  10232. <div
  10233. class="worksAnswer"
  10234. v-if="commentDetail.works && commentDetail.type == 13"
  10235. >
  10236. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10237. </div>
  10238. <div
  10239. class="worksAnswer"
  10240. v-if="commentDetail.works && commentDetail.type == 4"
  10241. >
  10242. <div class="evalCss">
  10243. <div class="nav">请选择星星进行评分</div>
  10244. <div class="middleBox" v-if="eScore.eStar">
  10245. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10246. <div class="nameAndrate">
  10247. <div>{{ e.value }}</div>
  10248. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10249. </div>
  10250. <div v-if="e.detail">{{ e.detail }}</div>
  10251. </div>
  10252. <div class="bz">
  10253. <textarea
  10254. disabled
  10255. rows="4"
  10256. class="pj"
  10257. style="
  10258. padding: 10px 5px;
  10259. width: 70%;
  10260. background: #f7f6f9;
  10261. font-size: 14px;
  10262. text-indent: 10px;
  10263. color: #000;
  10264. "
  10265. cols
  10266. v-model="eScore.eBzText"
  10267. placeholder="请输入评价内容..."
  10268. ></textarea>
  10269. </div>
  10270. </div>
  10271. </div>
  10272. </div>
  10273. <div class="comment">
  10274. <div class="commentList">
  10275. <div class="commentImg">
  10276. <img
  10277. @click="
  10278. isLikes(
  10279. commentDetail.wid,
  10280. userid,
  10281. 1,
  10282. null,
  10283. commentDetail.isLikes,
  10284. commentDetail.sName
  10285. )
  10286. "
  10287. :src="commentDetail.isLikes == true ? likes : noLikes"
  10288. alt=""
  10289. />
  10290. </div>
  10291. <div>{{ commentDetail.likesCount }}</div>
  10292. </div>
  10293. <div class="commentList">
  10294. <div class="commentImg">
  10295. <img src="../assets/icon/comment/comment.png" alt="" />
  10296. </div>
  10297. <div>{{ commentDetail.commentCount }}</div>
  10298. </div>
  10299. </div>
  10300. <div class="drawPBox" v-if="commentDetail.img">
  10301. <span>教师批注</span>
  10302. <img
  10303. :src="commentDetail.img"
  10304. alt=""
  10305. @click="previewImg(commentDetail.img)"
  10306. />
  10307. <span
  10308. class="deleteImg"
  10309. v-if="tType == 1 || tType == 4"
  10310. @click.stop="deletePicturePaint(commentDetail.wid)"
  10311. style="
  10312. font-size: 14px;
  10313. width: auto !important;
  10314. color: #b4b4b4;
  10315. top: unset;
  10316. bottom: 0;
  10317. border: none;
  10318. padding: 0;
  10319. height: auto !important;
  10320. margin: 0;
  10321. "
  10322. >删除</span
  10323. >
  10324. </div>
  10325. </div>
  10326. <div class="commentBox">
  10327. <div class="pl">评论:</div>
  10328. <div style="max-height: 200px; overflow: auto">
  10329. <div
  10330. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10331. style="padding: 10px 0 0 0"
  10332. >
  10333. <div
  10334. class="studentDetail"
  10335. style="padding-top: 10px"
  10336. v-for="(co, coIndex) in commentDetail.commentJson"
  10337. :key="coIndex"
  10338. >
  10339. <div class="tx" style="min-width: 50px">
  10340. <img src="../assets/avatar.png" alt="" />
  10341. </div>
  10342. <div class="plPerson">
  10343. <div class="plName">
  10344. <div>{{ co.commentPeople }}</div>
  10345. <div style="margin-left: 5px">
  10346. {{ co.commentTime }}
  10347. </div>
  10348. <div
  10349. class="deleteComment"
  10350. v-if="userid == co.userid"
  10351. @click="deleteComment(co.wid)"
  10352. >
  10353. 删除
  10354. </div>
  10355. </div>
  10356. <div class="plContent">{{ co.commentText }}</div>
  10357. </div>
  10358. </div>
  10359. </div>
  10360. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10361. </div>
  10362. </div>
  10363. <div style="margin-top: 10px">
  10364. <div class="displayBox">
  10365. <div
  10366. style="
  10367. color: #556db4;
  10368. font-size: 14px;
  10369. font-weight: bold;
  10370. padding-bottom: 10px;
  10371. "
  10372. >
  10373. 评价
  10374. </div>
  10375. <div class="easy_comment" v-if="false">
  10376. <div
  10377. v-for="(p, pIndex) in PlTextList"
  10378. :key="pIndex"
  10379. @click="fastText(p, 1)"
  10380. >
  10381. {{ p }}
  10382. </div>
  10383. </div>
  10384. </div>
  10385. <div>
  10386. <textarea
  10387. rows="3"
  10388. class="pj"
  10389. style="padding: 10px 5px"
  10390. cols
  10391. v-model="commentText"
  10392. placeholder="请输入评论"
  10393. ></textarea>
  10394. </div>
  10395. </div>
  10396. <div slot="footer">
  10397. <el-button
  10398. @click="
  10399. (commentDialogVisible = false),
  10400. (commentIndexJson = {}),
  10401. videoDetail.sources && videoDetail.sources[0]
  10402. ? (videoDetail.sources[0].src = '')
  10403. : ''
  10404. "
  10405. >取 消</el-button
  10406. >
  10407. <el-button
  10408. type="primary"
  10409. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10410. >确 定</el-button
  10411. >
  10412. </div>
  10413. </el-dialog>
  10414. <el-dialog
  10415. title="查看文档"
  10416. :visible.sync="fullDialogVisible"
  10417. :append-to-body="true"
  10418. width="100%"
  10419. :before-close="handleClose"
  10420. :show-close="false"
  10421. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10422. >
  10423. <div slot="title" class="header-title">
  10424. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10425. <div v-else style="color: #fff">查看文档</div>
  10426. <div
  10427. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10428. style="
  10429. cursor: pointer;
  10430. position: absolute;
  10431. top: 20px;
  10432. right: 20px;
  10433. color: #fff;
  10434. "
  10435. >
  10436. 退出全屏
  10437. </div>
  10438. </div>
  10439. <div style="height: 100%;position: relative;">
  10440. <el-button
  10441. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10442. size="medium"
  10443. type="primary"
  10444. @click="
  10445. () => {
  10446. (fullDialogVisible = false),
  10447. changeSplitScreenBehavior({ code: 99 });
  10448. }
  10449. "
  10450. style="
  10451. cursor: pointer;
  10452. position: absolute;
  10453. top: 10px;
  10454. right: 20px;
  10455. color: #fff;
  10456. "
  10457. >
  10458. 退出全屏
  10459. </el-button>
  10460. <div
  10461. class="wheel"
  10462. v-if="fulltype == 1"
  10463. style="
  10464. box-shadow: 0 0 6px 1px #f2f2f2;
  10465. width: 100%;
  10466. height:100%;
  10467. background: #f1f1f1;
  10468. "
  10469. >
  10470. <div class="title" style="width: 100%; box-sizing: border-box">
  10471. 查看文档
  10472. </div>
  10473. <el-form class="textBox" style="height: 90%">
  10474. <el-form-item class="textTitle">
  10475. <div style="font-size: 22px">
  10476. {{ fullUrl.name }}
  10477. </div>
  10478. </el-form-item>
  10479. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10480. <div
  10481. v-html="fullUrl.url"
  10482. class="textContent"
  10483. style="height: auto"
  10484. ></div>
  10485. </el-form>
  10486. </div>
  10487. <div
  10488. class="wheel"
  10489. v-else-if="
  10490. (fulltype == 2 || fulltype == 4) &&
  10491. fullUrl.indexOf(
  10492. 'https://view.officeapps.live.com/op/view.aspx?src='
  10493. ) != -1
  10494. "
  10495. style="width: 100%;height:100%; margin: 0 auto"
  10496. >
  10497. <iframe
  10498. style="width: 100%; height: 100%; border: none"
  10499. :src="fullUrl"
  10500. ></iframe>
  10501. </div>
  10502. <!-- <iframe
  10503. v-else-if="fulltype == 2"
  10504. style="width: 100%; height: 100%; border: none"
  10505. :src="fullUrl"
  10506. security="restricted"
  10507. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10508. ></iframe> -->
  10509. <iframe
  10510. style="width: 100%; height: 100%; border: none"
  10511. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10512. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  10513. :src="fullUrl"
  10514. ></iframe>
  10515. <iframe
  10516. style="width: 100%; height: 100%; border: none"
  10517. security="restricted"
  10518. v-else-if="(fulltype == 2 || fulltype == 4)"
  10519. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10520. :src="fullUrl"
  10521. ></iframe>
  10522. <pdf
  10523. v-else-if="fulltype == 3"
  10524. :pdfUrl="fullUrl"
  10525. style="width: 100%; height: 100%; overflow: auto"
  10526. ></pdf>
  10527. <iframe
  10528. style="width: 100%; height: 100%; border: none"
  10529. security="restricted"
  10530. v-if="(fulltype == 16)"
  10531. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10532. :src="fullUrl"
  10533. ></iframe>
  10534. </div>
  10535. <!-- <div slot="footer">
  10536. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10537. </div> -->
  10538. </el-dialog>
  10539. <el-dialog
  10540. title="个人评价"
  10541. :visible.sync="studentEvalDialogVisible"
  10542. :append-to-body="true"
  10543. width="800px"
  10544. :before-close="handleClose"
  10545. class="dialog_diy"
  10546. >
  10547. <div class="evalCss">
  10548. <div class="nav">请选择星星进行评分</div>
  10549. <div class="middleBox" v-if="eScore.eStar">
  10550. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10551. <div class="nameAndrate">
  10552. <div>{{ e.value }}</div>
  10553. <el-rate
  10554. v-model="eScore.eStar[eIndex]"
  10555. :disabled="isStar"
  10556. ></el-rate>
  10557. </div>
  10558. <div v-if="e.detail">{{ e.detail }}</div>
  10559. </div>
  10560. <div class="easy_comment" v-if="false">
  10561. <div
  10562. v-for="(p, pIndex) in PlTextList"
  10563. :key="pIndex"
  10564. @click="fastText(p, 2)"
  10565. >
  10566. {{ p }}
  10567. </div>
  10568. </div>
  10569. <div class="bz">
  10570. <textarea
  10571. :disabled="isStar"
  10572. rows="4"
  10573. class="pj"
  10574. style="
  10575. padding: 10px 5px;
  10576. width: 70%;
  10577. background: #f7f6f9;
  10578. font-size: 14px;
  10579. text-indent: 10px;
  10580. "
  10581. cols
  10582. v-model="eScore.eBzText"
  10583. placeholder="请输入评价内容..."
  10584. ></textarea>
  10585. </div>
  10586. </div>
  10587. </div>
  10588. <div slot="footer">
  10589. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10590. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10591. >确 定</el-button
  10592. >
  10593. </div>
  10594. </el-dialog>
  10595. <el-dialog
  10596. title="个人评价"
  10597. :visible.sync="studentEvalDialogVisibleTeacher"
  10598. :append-to-body="true"
  10599. width="800px"
  10600. :before-close="handleClose"
  10601. class="dialog_diy"
  10602. >
  10603. <div class="w_name">
  10604. 学生姓名:<span>{{ sStudent.student }}</span>
  10605. </div>
  10606. <div class="evalCss">
  10607. <div class="nav">请选择星星进行评分</div>
  10608. <div class="middleBox" v-if="eScore.eStar">
  10609. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10610. <div class="nameAndrate">
  10611. <div>{{ e.value }}</div>
  10612. <el-rate
  10613. v-model="eScore.eStar[eIndex]"
  10614. :disabled="isStar"
  10615. ></el-rate>
  10616. </div>
  10617. <div v-if="e.detail">{{ e.detail }}</div>
  10618. </div>
  10619. <div class="easy_comment" v-if="false">
  10620. <div
  10621. v-for="(p, pIndex) in PlTextList"
  10622. :key="pIndex"
  10623. @click="fastText(p, 2)"
  10624. >
  10625. {{ p }}
  10626. </div>
  10627. </div>
  10628. <div class="bz">
  10629. <textarea
  10630. :disabled="isStar"
  10631. rows="4"
  10632. class="pj"
  10633. style="
  10634. padding: 10px 5px;
  10635. width: 70%;
  10636. background: #f7f6f9;
  10637. font-size: 14px;
  10638. text-indent: 10px;
  10639. "
  10640. cols
  10641. v-model="eScore.eBzText"
  10642. placeholder="请输入评价内容..."
  10643. ></textarea>
  10644. </div>
  10645. </div>
  10646. </div>
  10647. <div slot="footer">
  10648. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10649. >取 消</el-button
  10650. >
  10651. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10652. >确 定</el-button
  10653. >
  10654. </div>
  10655. </el-dialog>
  10656. <el-dialog
  10657. title="选择匹配"
  10658. :visible.sync="dialogVisibleSelect"
  10659. :append-to-body="true"
  10660. width="90%"
  10661. :before-close="handleClose"
  10662. class="dialog_diy dialog_diy3"
  10663. >
  10664. <div v-if="selectJson">
  10665. <div class="select_box2">
  10666. <div class="select_box2_title">
  10667. <div>选择匹配</div>
  10668. <div>请选择对应的答案进行答题!</div>
  10669. </div>
  10670. <div class="select_box2_box">
  10671. <div class="select_box2_img">
  10672. <img
  10673. :src="selectJson.url"
  10674. @click="previewImg(selectJson.url)"
  10675. alt=""
  10676. />
  10677. </div>
  10678. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10679. <div style="padding-top: 15px">
  10680. <div class="select_answer_title" v-if="isSelect">
  10681. {{ selectAnswer.stu }}
  10682. </div>
  10683. <div class="select_answer_title" v-else>
  10684. 根据题目选择对应答案
  10685. </div>
  10686. <div
  10687. class="select_box2_answer_box"
  10688. v-for="(item2, checkIndex) in selectJson.select"
  10689. :key="checkIndex"
  10690. >
  10691. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10692. <el-select
  10693. :disabled="isSelect"
  10694. v-model="selectAnswer.answer[checkIndex]"
  10695. placeholder="请选择正确答案"
  10696. >
  10697. <el-option
  10698. v-for="(e, eIndex) in selectJson.select"
  10699. :key="eIndex"
  10700. :label="e"
  10701. :value="eIndex"
  10702. >
  10703. </el-option>
  10704. </el-select>
  10705. </div>
  10706. </div>
  10707. <div
  10708. class="rightAnswerCss"
  10709. v-if="isSelect && (tType == 1 || tType == 4)"
  10710. >
  10711. <div
  10712. v-for="(a, aIndex) in selectJson.answer"
  10713. :key="aIndex"
  10714. class="rightAnswer"
  10715. >
  10716. <div
  10717. v-if="selectAnswer.answer[aIndex] === a"
  10718. style="color: #767de1"
  10719. >
  10720. 回答正确
  10721. </div>
  10722. <div v-else>回答错误</div>
  10723. <div
  10724. style="margin-left: 10px"
  10725. v-if="selectAnswer.answer[aIndex] !== a"
  10726. >
  10727. 正确答案:
  10728. </div>
  10729. <div
  10730. :class="
  10731. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10732. "
  10733. >
  10734. {{ selectJson.select[a] }}
  10735. </div>
  10736. </div>
  10737. </div>
  10738. </div>
  10739. <div class="upAnswerCss">
  10740. <el-button
  10741. type="primary"
  10742. @click="addSelectAnswer"
  10743. v-if="!isSelect"
  10744. >提交答案</el-button
  10745. >
  10746. </div>
  10747. </div>
  10748. </div>
  10749. </div>
  10750. </el-dialog>
  10751. <el-dialog
  10752. title="选择匹配"
  10753. :visible.sync="dialogVisibleSelectTeacher"
  10754. :append-to-body="true"
  10755. width="90%"
  10756. :before-close="handleClose"
  10757. class="dialog_diy dialog_diy3"
  10758. >
  10759. <div v-if="selectJson">
  10760. <div class="w_name">
  10761. 学生姓名:<span>{{ sStudent.student }}</span>
  10762. </div>
  10763. <div class="select_box2">
  10764. <div class="select_box2_title">
  10765. <div>选择匹配</div>
  10766. <div>请选择对应的答案进行答题!</div>
  10767. </div>
  10768. <div class="select_box2_box">
  10769. <div class="select_box2_img">
  10770. <img
  10771. :src="selectJson.url"
  10772. @click="previewImg(selectJson.url)"
  10773. alt=""
  10774. />
  10775. </div>
  10776. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10777. <div style="padding-top: 15px">
  10778. <div class="select_answer_title" v-if="isSelect">
  10779. {{ selectAnswer.stu }}
  10780. </div>
  10781. <div class="select_answer_title" v-else>
  10782. 根据题目选择对应答案
  10783. </div>
  10784. <div
  10785. class="select_box2_answer_box"
  10786. v-for="(item2, checkIndex) in selectJson.select"
  10787. :key="checkIndex"
  10788. >
  10789. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10790. <el-select
  10791. :disabled="isSelect"
  10792. v-model="selectAnswer.answer[checkIndex]"
  10793. placeholder="请选择正确答案"
  10794. >
  10795. <el-option
  10796. v-for="(e, eIndex) in selectJson.select"
  10797. :key="eIndex"
  10798. :label="e"
  10799. :value="eIndex"
  10800. >
  10801. </el-option>
  10802. </el-select>
  10803. </div>
  10804. </div>
  10805. <div
  10806. class="rightAnswerCss"
  10807. v-if="isSelect && (tType == 1 || tType == 4)"
  10808. >
  10809. <div
  10810. v-for="(a, aIndex) in selectJson.answer"
  10811. :key="aIndex"
  10812. class="rightAnswer"
  10813. >
  10814. <div
  10815. v-if="selectAnswer.answer[aIndex] === a"
  10816. style="color: #767de1"
  10817. >
  10818. 回答正确
  10819. </div>
  10820. <div v-else>回答错误</div>
  10821. <div
  10822. style="margin-left: 10px"
  10823. v-if="selectAnswer.answer[aIndex] !== a"
  10824. >
  10825. 正确答案:
  10826. </div>
  10827. <div
  10828. :class="
  10829. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10830. "
  10831. >
  10832. {{ selectJson.select[a] }}
  10833. </div>
  10834. </div>
  10835. </div>
  10836. </div>
  10837. <div class="upAnswerCss">
  10838. <el-button
  10839. type="primary"
  10840. @click="addSelectAnswerTeacher"
  10841. v-if="!isSelect"
  10842. >提交答案</el-button
  10843. >
  10844. </div>
  10845. </div>
  10846. </div>
  10847. </div>
  10848. </el-dialog>
  10849. <el-dialog
  10850. title="教师评分"
  10851. :visible.sync="dialogVisibleScore"
  10852. :append-to-body="true"
  10853. width="800px"
  10854. :before-close="handleClose"
  10855. class="dialog_diy"
  10856. >
  10857. <div>
  10858. <div class="studentDetail">
  10859. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10860. <div class="nameAndTime">
  10861. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10862. <div>{{ commentDetail.time }}</div>
  10863. </div>
  10864. </div>
  10865. <div
  10866. class="worksAnswer"
  10867. v-if="commentDetail.works && commentDetail.type == 2"
  10868. >
  10869. {{ JSON.parse(commentDetail.works)[0].answer }}
  10870. </div>
  10871. <div
  10872. class="worksAnswer"
  10873. v-if="commentDetail.works && commentDetail.type == 1"
  10874. >
  10875. <pdf
  10876. v-if="showPDF"
  10877. :pdfUrl="pptImgUrl"
  10878. style="width: 100%; height: 520px; overflow: auto"
  10879. :class="{ fullStyle: full }"
  10880. ></pdf>
  10881. <iframe
  10882. v-else
  10883. :src="pptImgUrl"
  10884. frameborder="0"
  10885. width="100%"
  10886. height="600"
  10887. :class="{ fullStyle: full }"
  10888. ></iframe>
  10889. </div>
  10890. <div
  10891. class="worksAnswer"
  10892. v-if="commentDetail.works && commentDetail.type == 0"
  10893. >
  10894. <img
  10895. :src="commentDetail.works"
  10896. alt=""
  10897. @click="previewImg(commentDetail.works)"
  10898. />
  10899. </div>
  10900. <div
  10901. class="worksAnswer"
  10902. v-if="commentDetail.works && commentDetail.type == 3"
  10903. >
  10904. <video-player
  10905. class="video-player vjs-custom-skin"
  10906. :playsinline="true"
  10907. :options="videoDetail"
  10908. @play="onPlayerPlay($event)"
  10909. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10910. ></video-player>
  10911. </div>
  10912. <div
  10913. class="worksAnswer codeFileBox"
  10914. v-if="commentDetail.works && commentDetail.type == 12"
  10915. @click="downloadFile(commentDetail.works)"
  10916. >
  10917. <img src="../assets/icon/codeFile.png" />
  10918. <div>点击下载文件</div>
  10919. </div>
  10920. <div
  10921. class="worksAnswer codeFileBox"
  10922. v-if="commentDetail.works && commentDetail.type == 15"
  10923. @click="
  10924. openCocoPi(
  10925. 57,
  10926. commentIndexJson.toolIndex,
  10927. commentDetail.userid,
  10928. commentDetail.sName
  10929. )
  10930. "
  10931. >
  10932. <img src="../assets/icon/codeFile.png" />
  10933. <div>点击打开CocoPi</div>
  10934. </div>
  10935. <div
  10936. class="worksAnswer"
  10937. v-if="commentDetail.works && commentDetail.type == 13"
  10938. >
  10939. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10940. </div>
  10941. <div class="scoreBox">
  10942. <span class="t">请输入分数</span>
  10943. <el-input-number
  10944. :disabled="courseDetail.userid != userid"
  10945. v-model="wScore"
  10946. :controls="false"
  10947. :min="0"
  10948. :max="100"
  10949. ></el-input-number>
  10950. </div>
  10951. <div class="scoreDetailBox">
  10952. <span class="t">评分评论</span>
  10953. <el-input
  10954. type="textarea"
  10955. :rows="5"
  10956. :disabled="courseDetail.userid != userid"
  10957. resize="none"
  10958. v-model="scoreDetail"
  10959. placeholder="请输入对学生的评价"
  10960. >
  10961. </el-input>
  10962. </div>
  10963. </div>
  10964. <span slot="footer" class="dialog-footer">
  10965. <el-button
  10966. @click="
  10967. (dialogVisibleScore = false),
  10968. (commentIndexJson = {}),
  10969. videoDetail.sources && videoDetail.sources[0]
  10970. ? (videoDetail.sources[0].src = '')
  10971. : ''
  10972. "
  10973. >取 消</el-button
  10974. >
  10975. <el-button
  10976. type="primary"
  10977. v-if="courseDetail.userid == userid"
  10978. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10979. >确 定
  10980. </el-button>
  10981. </span>
  10982. </el-dialog>
  10983. <el-dialog
  10984. title="排序"
  10985. :visible.sync="dialogVisibleSentence"
  10986. :append-to-body="true"
  10987. width="1000px"
  10988. :before-close="handleClose"
  10989. class="dialog_diy dialog_diy3"
  10990. >
  10991. <div>
  10992. <div class="sentenBox">
  10993. <div
  10994. v-for="(st, stIndex) in sentenceList"
  10995. :key="stIndex"
  10996. style="padding-bottom: 20px"
  10997. >
  10998. <div
  10999. style="padding: 15px 0 10px 20px"
  11000. class="sentenceTitle"
  11001. :index="stIndex + 1"
  11002. >
  11003. 题目{{ stIndex + 1 }}:请选择正确顺序
  11004. </div>
  11005. <div class="cardList" v-if="st.chooseSenList">
  11006. <div class="cardBox">
  11007. <div
  11008. v-for="(r, rIndex) in st.chooseSenList"
  11009. :key="rIndex"
  11010. @click="returnCard(r, stIndex, rIndex)"
  11011. >
  11012. <el-tooltip
  11013. class="item"
  11014. effect="light"
  11015. :content="r"
  11016. placement="top"
  11017. v-if="r != '' && r != undefined"
  11018. >
  11019. <div
  11020. :class="{
  11021. isCard: r,
  11022. isChooseCard: r == '' || r == undefined,
  11023. }"
  11024. >
  11025. <div>{{ r }}</div>
  11026. </div>
  11027. </el-tooltip>
  11028. <div
  11029. :class="{
  11030. isCard: r,
  11031. isChooseCard: r == '' || r == undefined,
  11032. }"
  11033. v-else
  11034. >
  11035. <div>{{ r }}</div>
  11036. </div>
  11037. </div>
  11038. </div>
  11039. </div>
  11040. <div class="cardList" v-if="st.addChangeSen">
  11041. <div class="cardBox">
  11042. <div
  11043. v-for="(s, sIndex) in st.addChangeSen"
  11044. :key="sIndex"
  11045. @click="setRightAnswer(s, stIndex, sIndex)"
  11046. >
  11047. <el-tooltip
  11048. class="item"
  11049. effect="light"
  11050. :content="s"
  11051. placement="top"
  11052. v-if="s != '' && s != undefined"
  11053. >
  11054. <div
  11055. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11056. >
  11057. <div>{{ s }}</div>
  11058. </div>
  11059. </el-tooltip>
  11060. <div
  11061. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11062. v-else
  11063. >
  11064. <div>{{ s }}</div>
  11065. </div>
  11066. </div>
  11067. </div>
  11068. </div>
  11069. </div>
  11070. </div>
  11071. </div>
  11072. <span slot="footer" class="dialog-footer">
  11073. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11074. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11075. </span>
  11076. </el-dialog>
  11077. <el-dialog
  11078. title="排序"
  11079. :visible.sync="dialogVisibleSentenceTeacher"
  11080. :append-to-body="true"
  11081. width="1000px"
  11082. :before-close="handleClose"
  11083. class="dialog_diy dialog_diy3"
  11084. >
  11085. <div>
  11086. <div class="w_name">
  11087. 学生姓名:<span>{{ sStudent.student }}</span>
  11088. </div>
  11089. <div class="sentenBox">
  11090. <div
  11091. v-for="(st, stIndex) in sentenceList"
  11092. :key="stIndex"
  11093. style="padding-bottom: 20px"
  11094. >
  11095. <div
  11096. style="padding: 15px 0 10px 20px"
  11097. class="sentenceTitle"
  11098. :index="stIndex + 1"
  11099. >
  11100. 题目{{ stIndex + 1 }}:请选择正确顺序
  11101. </div>
  11102. <div class="cardList" v-if="st.chooseSenList">
  11103. <div class="cardBox">
  11104. <div
  11105. v-for="(r, rIndex) in st.chooseSenList"
  11106. :key="rIndex"
  11107. @click="returnCard(r, stIndex, rIndex)"
  11108. >
  11109. <el-tooltip
  11110. class="item"
  11111. effect="light"
  11112. :content="r"
  11113. placement="top"
  11114. v-if="r != '' && r != undefined"
  11115. >
  11116. <div
  11117. :class="{
  11118. isCard: r,
  11119. isChooseCard: r == '' || r == undefined,
  11120. }"
  11121. >
  11122. <div>{{ r }}</div>
  11123. </div>
  11124. </el-tooltip>
  11125. <div
  11126. :class="{
  11127. isCard: r,
  11128. isChooseCard: r == '' || r == undefined,
  11129. }"
  11130. v-else
  11131. >
  11132. <div>{{ r }}</div>
  11133. </div>
  11134. </div>
  11135. </div>
  11136. </div>
  11137. <div class="cardList" v-if="st.addChangeSen">
  11138. <div class="cardBox">
  11139. <div
  11140. v-for="(s, sIndex) in st.addChangeSen"
  11141. :key="sIndex"
  11142. @click="setRightAnswer(s, stIndex, sIndex)"
  11143. >
  11144. <el-tooltip
  11145. class="item"
  11146. effect="light"
  11147. :content="s"
  11148. placement="top"
  11149. v-if="s != '' && s != undefined"
  11150. >
  11151. <div
  11152. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11153. >
  11154. <div>{{ s }}</div>
  11155. </div>
  11156. </el-tooltip>
  11157. <div
  11158. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11159. v-else
  11160. >
  11161. <div>{{ s }}</div>
  11162. </div>
  11163. </div>
  11164. </div>
  11165. </div>
  11166. </div>
  11167. </div>
  11168. </div>
  11169. <span slot="footer" class="dialog-footer">
  11170. <el-button @click="dialogVisibleSentenceTeacher = false"
  11171. >取 消</el-button
  11172. >
  11173. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11174. </span>
  11175. </el-dialog>
  11176. <el-dialog
  11177. title="排序"
  11178. :visible.sync="dialogVisibleSentence1"
  11179. :append-to-body="true"
  11180. width="1000px"
  11181. :before-close="handleClose"
  11182. class="dialog_diy dialog_diy3"
  11183. >
  11184. <div>
  11185. <div class="sentenBox">
  11186. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11187. {{ sentenceList1.stuName }}的作业
  11188. </div>
  11189. <div
  11190. v-for="(st, stIndex) in sentenceList1"
  11191. :key="stIndex"
  11192. style="padding-bottom: 20px"
  11193. >
  11194. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11195. 第{{ stIndex + 1 }}题
  11196. </div>
  11197. <div class="isWrong">
  11198. <div class="cardList1" v-if="st.chooseSenList">
  11199. <div class="cardBox">
  11200. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11201. <el-tooltip
  11202. class="item"
  11203. effect="light"
  11204. :content="s"
  11205. placement="top"
  11206. >
  11207. <div class="isCard">
  11208. <div>{{ s }}</div>
  11209. </div>
  11210. </el-tooltip>
  11211. </div>
  11212. </div>
  11213. <div class="cardAnswerBox">
  11214. 组成句子:{{ st.chooseSenList.join(" ") }}
  11215. </div>
  11216. </div>
  11217. <div v-if="tType == 2" class="isTj">
  11218. <div class="isTjImg">
  11219. <img src="../assets/icon/conSentences/right.png" alt="" />
  11220. </div>
  11221. <div>已提交</div>
  11222. </div>
  11223. <div
  11224. class="answerRight isTj"
  11225. v-if="
  11226. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11227. (tType == 1 || tType == 4)
  11228. "
  11229. >
  11230. <div class="isTjImg">
  11231. <img src="../assets/icon/conSentences/right.png" alt="" />
  11232. </div>
  11233. <div>回答正确</div>
  11234. </div>
  11235. <div
  11236. class="answerRight isTj"
  11237. v-if="
  11238. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11239. (tType == 1 || tType == 4)
  11240. "
  11241. >
  11242. <div class="isTjImg">
  11243. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11244. </div>
  11245. <div>回答错误</div>
  11246. </div>
  11247. </div>
  11248. <div
  11249. v-if="
  11250. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11251. (tType == 1 || tType == 4)
  11252. "
  11253. >
  11254. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11255. <div
  11256. class="cardList"
  11257. v-if="st.rightAnswer"
  11258. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11259. >
  11260. <div class="cardBox">
  11261. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11262. <el-tooltip
  11263. class="item"
  11264. effect="light"
  11265. :content="r"
  11266. placement="top"
  11267. >
  11268. <div class="isCard1">
  11269. <div>{{ r }}</div>
  11270. </div>
  11271. </el-tooltip>
  11272. </div>
  11273. </div>
  11274. <div class="cardAnswerBox">
  11275. 组成句子:{{ st.rightAnswer.join(" ") }}
  11276. </div>
  11277. </div>
  11278. </div>
  11279. </div>
  11280. </div>
  11281. </div>
  11282. <span slot="footer" class="dialog-footer">
  11283. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11284. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11285. >确 定</el-button
  11286. >
  11287. </span>
  11288. </el-dialog>
  11289. <el-dialog
  11290. title="教师提交作业"
  11291. :visible.sync="dialogVisibleWorks"
  11292. :append-to-body="true"
  11293. width="500px"
  11294. :before-close="handleClose"
  11295. class="dialog_change"
  11296. >
  11297. <div class="marginT">
  11298. <div class="w_name">
  11299. 学生姓名:<span>{{ sStudent.student }}</span>
  11300. </div>
  11301. <div>上传文件</div>
  11302. <div style="display: flex; gap: 10px">
  11303. <div
  11304. class="chapter_add"
  11305. @click="addImg($event)"
  11306. v-if="studyJuri[0].cover.length == 0"
  11307. >
  11308. <div class="up_photo">
  11309. <img src="../assets/icon/uploadImg.png" alt />
  11310. </div>
  11311. <!-- <input
  11312. type="file"
  11313. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11314. style="display: none"
  11315. @change="beforeUpload1($event, 1)"
  11316. /> -->
  11317. <input
  11318. type="file"
  11319. accept="*"
  11320. style="display: none"
  11321. @change="beforeUpload1($event, 1)"
  11322. />
  11323. <!-- <input
  11324. type="file"
  11325. accept="image/*"
  11326. capture="camera"
  11327. style="display: none"
  11328. @change="beforeUpload1($event, 1)"
  11329. /> -->
  11330. </div>
  11331. <div
  11332. class="chapter_add"
  11333. @click="addImg($event)"
  11334. v-if="studyJuri[0].cover.length == 0"
  11335. >
  11336. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11337. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11338. </div>
  11339. <input
  11340. type="file"
  11341. accept="image/*"
  11342. capture="camera"
  11343. style="display: none"
  11344. @change="beforeUpload1($event, 1)"
  11345. />
  11346. </div>
  11347. </div>
  11348. <!-- capture="camera" -->
  11349. <div
  11350. class="chapter_add"
  11351. style="
  11352. display: flex;
  11353. width: 100%;
  11354. flex-direction: row;
  11355. flex-wrap: wrap;
  11356. justify-content: flex-start;
  11357. padding: 15px 0;
  11358. "
  11359. v-if="studyJuri[0].cover.length > 0"
  11360. >
  11361. <div class="upCover">
  11362. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11363. <img :src="word" alt v-else-if="fileType == 1" />
  11364. <img :src="video" alt v-else-if="fileType == 2" />
  11365. <img :src="word2" alt v-else-if="fileType == 3" />
  11366. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11367. <div class="deleteWord" @click="clean(1)">
  11368. <img src="../assets/icon/deleteWorks.png" alt />
  11369. </div>
  11370. </div>
  11371. </div>
  11372. </div>
  11373. <div
  11374. class="upload_send"
  11375. @click="addCourseWorksTeacher(taskCount)"
  11376. v-if="!proVisible"
  11377. >
  11378. 提交
  11379. </div>
  11380. </el-dialog>
  11381. <ImgDraw
  11382. :drawShow="drawShow"
  11383. @closeDraw="closeDraw"
  11384. @addImgDraw="addImgDraw"
  11385. :bg="bg"
  11386. ></ImgDraw>
  11387. <el-dialog
  11388. title="表格"
  11389. :visible.sync="dialogVisibleTable"
  11390. :append-to-body="true"
  11391. width="95%"
  11392. :before-close="handleClose"
  11393. class="dialog_diy"
  11394. >
  11395. <el-form>
  11396. <div
  11397. style="
  11398. display: flex;
  11399. align-items: center;
  11400. justify-content: space-between;
  11401. "
  11402. >
  11403. <span>表格内容</span>
  11404. <el-button type="primary" size="small" @click="returnTableText"
  11405. >还原模板</el-button
  11406. >
  11407. </div>
  11408. <Table
  11409. v-model="tableJson.text"
  11410. @change="change"
  11411. v-if="dialogVisibleTable"
  11412. ></Table>
  11413. </el-form>
  11414. <span slot="footer" class="dialog-footer">
  11415. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11416. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11417. </span>
  11418. </el-dialog>
  11419. <el-dialog
  11420. title="表格"
  11421. :visible.sync="dialogVisibleTableTeacher"
  11422. :append-to-body="true"
  11423. width="95%"
  11424. :before-close="handleClose"
  11425. class="dialog_diy"
  11426. >
  11427. <el-form>
  11428. <div class="w_name">
  11429. 学生姓名:<span>{{ sStudent.student }}</span>
  11430. </div>
  11431. <div>表格内容</div>
  11432. <Table
  11433. v-model="tableJson.text"
  11434. @change="change"
  11435. v-if="dialogVisibleTableTeacher"
  11436. ></Table>
  11437. </el-form>
  11438. <span slot="footer" class="dialog-footer">
  11439. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11440. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11441. </span>
  11442. </el-dialog>
  11443. <el-dialog
  11444. title="文档"
  11445. :visible.sync="dialogVisibleWord"
  11446. :append-to-body="true"
  11447. width="95%"
  11448. :before-close="handleClose"
  11449. class="dialog_diy"
  11450. >
  11451. <el-form>
  11452. <div
  11453. style="
  11454. display: flex;
  11455. align-items: center;
  11456. justify-content: space-between;
  11457. "
  11458. >
  11459. <span>文档内容</span>
  11460. <el-button type="primary" size="small" @click="returnWordText"
  11461. >还原模板</el-button
  11462. >
  11463. </div>
  11464. <editor-bar
  11465. v-model="wordJson.text"
  11466. v-if="dialogVisibleWord"
  11467. ></editor-bar>
  11468. </el-form>
  11469. <span slot="footer" class="dialog-footer">
  11470. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11471. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11472. </span>
  11473. </el-dialog>
  11474. <el-dialog
  11475. title="文档"
  11476. :visible.sync="dialogVisibleWordTeacher"
  11477. :append-to-body="true"
  11478. width="95%"
  11479. :before-close="handleClose"
  11480. class="dialog_diy"
  11481. >
  11482. <el-form>
  11483. <div class="w_name">
  11484. 学生姓名:<span>{{ sStudent.student }}</span>
  11485. </div>
  11486. <div>文档内容</div>
  11487. <editor-bar
  11488. v-model="wordJson.text"
  11489. v-if="dialogVisibleWordTeacher"
  11490. ></editor-bar>
  11491. </el-form>
  11492. <span slot="footer" class="dialog-footer">
  11493. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11494. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11495. </span>
  11496. </el-dialog>
  11497. <el-dialog
  11498. title="表格"
  11499. :visible.sync="dialogVisibleTable2"
  11500. :append-to-body="true"
  11501. width="95%"
  11502. :before-close="handleClose"
  11503. class="dialog_diy"
  11504. >
  11505. <el-form>
  11506. <div class="cont" v-html="tableJson.text"></div>
  11507. </el-form>
  11508. <span slot="footer" class="dialog-footer">
  11509. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11510. </span>
  11511. </el-dialog>
  11512. <el-dialog
  11513. title="文档"
  11514. :visible.sync="dialogVisibleTable3"
  11515. :append-to-body="true"
  11516. width="95%"
  11517. :before-close="handleClose"
  11518. class="dialog_diy"
  11519. >
  11520. <el-form>
  11521. <div class="cont" v-html="tableJson.text"></div>
  11522. </el-form>
  11523. <span slot="footer" class="dialog-footer">
  11524. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11525. </span>
  11526. </el-dialog>
  11527. <el-dialog
  11528. title="分组设置"
  11529. :visible.sync="dialogVisibleGroup"
  11530. :append-to-body="true"
  11531. width="95%"
  11532. :before-close="handleClose"
  11533. class="dialog_diy"
  11534. >
  11535. <div v-if="dialogVisibleGroup">
  11536. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11537. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11538. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11539. </div>
  11540. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11541. @click="lockChair">
  11542. 锁定位置
  11543. </div>
  11544. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11545. 解锁位置
  11546. </div> -->
  11547. <div class="group_switch">
  11548. <span>开放选座</span>
  11549. <el-switch
  11550. v-model="islock"
  11551. active-text=""
  11552. class="switchCss"
  11553. @change="lockChair"
  11554. ></el-switch>
  11555. </div>
  11556. <div
  11557. type="primary"
  11558. @click="updateGroup"
  11559. class="returnBtn"
  11560. style="background-color: #225bc7"
  11561. >
  11562. 分组设置
  11563. </div>
  11564. </div>
  11565. <div>
  11566. <div
  11567. class="g_d_box"
  11568. v-if="groupJson.group && groupStudent[toolindex]"
  11569. >
  11570. <div
  11571. class="g_d_group"
  11572. v-for="(g, gindex) in groupJson.group"
  11573. :key="gindex"
  11574. >
  11575. <div class="g_d_group_chair">
  11576. <div v-if="groupJson.number > 1">
  11577. <span
  11578. :class="{
  11579. isChair:
  11580. groupStudent[toolindex][gindex] &&
  11581. groupStudent[toolindex][gindex][0],
  11582. updateChair:
  11583. courseDetail.userid == userid &&
  11584. groupStudent[toolindex][gindex] &&
  11585. groupStudent[toolindex][gindex][0] &&
  11586. groupJson.islock == 2,
  11587. }"
  11588. ><span
  11589. class="updateChairBtn"
  11590. @click="
  11591. updateGroupChair(
  11592. groupStudent[toolindex][gindex] &&
  11593. groupStudent[toolindex][gindex][0]
  11594. )
  11595. "
  11596. >修改</span
  11597. ></span
  11598. ><span>{{
  11599. groupStudent[toolindex][gindex] &&
  11600. groupStudent[toolindex][gindex][0]
  11601. ? groupStudent[toolindex][gindex] &&
  11602. groupStudent[toolindex][gindex][0].name
  11603. : "空位置"
  11604. }}</span>
  11605. </div>
  11606. <div v-if="groupJson.number > 4">
  11607. <span
  11608. :class="{
  11609. isChair:
  11610. groupStudent[toolindex][gindex] &&
  11611. groupStudent[toolindex][gindex][4],
  11612. updateChair:
  11613. courseDetail.userid == userid &&
  11614. groupStudent[toolindex][gindex] &&
  11615. groupStudent[toolindex][gindex][4] &&
  11616. groupJson.islock == 2,
  11617. }"
  11618. ><span
  11619. class="updateChairBtn"
  11620. @click="
  11621. updateGroupChair(
  11622. groupStudent[toolindex][gindex] &&
  11623. groupStudent[toolindex][gindex][4]
  11624. )
  11625. "
  11626. >修改</span
  11627. ></span
  11628. ><span>{{
  11629. groupStudent[toolindex][gindex] &&
  11630. groupStudent[toolindex][gindex][4]
  11631. ? groupStudent[toolindex][gindex] &&
  11632. groupStudent[toolindex][gindex][4].name
  11633. : "空位置"
  11634. }}</span>
  11635. </div>
  11636. <div v-if="groupJson.number > 8">
  11637. <span
  11638. :class="{
  11639. isChair:
  11640. groupStudent[toolindex][gindex] &&
  11641. groupStudent[toolindex][gindex][8],
  11642. updateChair:
  11643. courseDetail.userid == userid &&
  11644. groupStudent[toolindex][gindex] &&
  11645. groupStudent[toolindex][gindex][8] &&
  11646. groupJson.islock == 2,
  11647. }"
  11648. ><span
  11649. class="updateChairBtn"
  11650. @click="
  11651. updateGroupChair(
  11652. groupStudent[toolindex][gindex] &&
  11653. groupStudent[toolindex][gindex][8]
  11654. )
  11655. "
  11656. >修改</span
  11657. ></span
  11658. ><span>{{
  11659. groupStudent[toolindex][gindex] &&
  11660. groupStudent[toolindex][gindex][8]
  11661. ? groupStudent[toolindex][gindex] &&
  11662. groupStudent[toolindex][gindex][8].name
  11663. : "空位置"
  11664. }}</span>
  11665. </div>
  11666. </div>
  11667. <div class="g_d_group_tableBox">
  11668. <div class="g_d_group_chair2">
  11669. <div v-if="groupJson.number > 2">
  11670. <span
  11671. :class="{
  11672. isChair:
  11673. groupStudent[toolindex][gindex] &&
  11674. groupStudent[toolindex][gindex][2],
  11675. updateChair:
  11676. courseDetail.userid == userid &&
  11677. groupStudent[toolindex][gindex] &&
  11678. groupStudent[toolindex][gindex][2] &&
  11679. groupJson.islock == 2,
  11680. }"
  11681. ><span
  11682. class="updateChairBtn"
  11683. @click="
  11684. updateGroupChair(
  11685. groupStudent[toolindex][gindex] &&
  11686. groupStudent[toolindex][gindex][2]
  11687. )
  11688. "
  11689. >修改</span
  11690. ></span
  11691. ><span>{{
  11692. groupStudent[toolindex][gindex] &&
  11693. groupStudent[toolindex][gindex][2]
  11694. ? groupStudent[toolindex][gindex] &&
  11695. groupStudent[toolindex][gindex][2].name
  11696. : "空位置"
  11697. }}</span>
  11698. </div>
  11699. <div v-if="groupJson.number > 6">
  11700. <span
  11701. :class="{
  11702. isChair:
  11703. groupStudent[toolindex][gindex] &&
  11704. groupStudent[toolindex][gindex][6],
  11705. updateChair:
  11706. courseDetail.userid == userid &&
  11707. groupStudent[toolindex][gindex] &&
  11708. groupStudent[toolindex][gindex][6] &&
  11709. groupJson.islock == 2,
  11710. }"
  11711. ><span
  11712. class="updateChairBtn"
  11713. @click="
  11714. updateGroupChair(
  11715. groupStudent[toolindex][gindex] &&
  11716. groupStudent[toolindex][gindex][6]
  11717. )
  11718. "
  11719. >修改</span
  11720. ></span
  11721. ><span>{{
  11722. groupStudent[toolindex][gindex] &&
  11723. groupStudent[toolindex][gindex][6]
  11724. ? groupStudent[toolindex][gindex] &&
  11725. groupStudent[toolindex][gindex][6].name
  11726. : "空位置"
  11727. }}</span>
  11728. </div>
  11729. </div>
  11730. <div class="g_d_group_table">
  11731. <div>
  11732. {{ g.name }}
  11733. </div>
  11734. <div>
  11735. <div
  11736. v-if="
  11737. courseDetail.userid == userid && groupJson.islock == 2
  11738. "
  11739. @click="deleteGroupChair(gindex)"
  11740. >
  11741. 移除组员
  11742. </div>
  11743. <div
  11744. @click="selectGroup(gindex)"
  11745. v-else-if="
  11746. groupStudentUid[toolindex] &&
  11747. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11748. "
  11749. >
  11750. 加入分组
  11751. </div>
  11752. <div
  11753. @click="
  11754. exitGroup(
  11755. groupStudent[toolindex][gindex] &&
  11756. groupStudent[toolindex][gindex][
  11757. groupStudentUid[toolindex][gindex].indexOf(userid)
  11758. ].id
  11759. )
  11760. "
  11761. v-else-if="
  11762. groupStudentUid[toolindex] &&
  11763. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11764. "
  11765. >
  11766. 退出分组
  11767. </div>
  11768. </div>
  11769. </div>
  11770. <div class="g_d_group_chair2">
  11771. <div v-if="groupJson.number > 3">
  11772. <span
  11773. :class="{
  11774. isChair:
  11775. groupStudent[toolindex][gindex] &&
  11776. groupStudent[toolindex][gindex][3],
  11777. updateChair:
  11778. courseDetail.userid == userid &&
  11779. groupStudent[toolindex][gindex] &&
  11780. groupStudent[toolindex][gindex][3] &&
  11781. groupJson.islock == 2,
  11782. }"
  11783. ><span
  11784. class="updateChairBtn"
  11785. @click="
  11786. updateGroupChair(
  11787. groupStudent[toolindex][gindex] &&
  11788. groupStudent[toolindex][gindex][3]
  11789. )
  11790. "
  11791. >修改</span
  11792. ></span
  11793. ><span>{{
  11794. groupStudent[toolindex][gindex] &&
  11795. groupStudent[toolindex][gindex][3]
  11796. ? groupStudent[toolindex][gindex] &&
  11797. groupStudent[toolindex][gindex][3].name
  11798. : "空位置"
  11799. }}</span>
  11800. </div>
  11801. <div v-if="groupJson.number > 7">
  11802. <span
  11803. :class="{
  11804. isChair:
  11805. groupStudent[toolindex][gindex] &&
  11806. groupStudent[toolindex][gindex][7],
  11807. updateChair:
  11808. courseDetail.userid == userid &&
  11809. groupStudent[toolindex][gindex] &&
  11810. groupStudent[toolindex][gindex][7] &&
  11811. groupJson.islock == 2,
  11812. }"
  11813. ><span
  11814. class="updateChairBtn"
  11815. @click="
  11816. updateGroupChair(
  11817. groupStudent[toolindex][gindex] &&
  11818. groupStudent[toolindex][gindex][7]
  11819. )
  11820. "
  11821. >修改</span
  11822. ></span
  11823. ><span>{{
  11824. groupStudent[toolindex][gindex] &&
  11825. groupStudent[toolindex][gindex][7]
  11826. ? groupStudent[toolindex][gindex] &&
  11827. groupStudent[toolindex][gindex][7].name
  11828. : "空位置"
  11829. }}</span>
  11830. </div>
  11831. </div>
  11832. </div>
  11833. <div class="g_d_group_chair">
  11834. <div v-if="groupJson.number > 1">
  11835. <span
  11836. :class="{
  11837. isChair:
  11838. groupStudent[toolindex][gindex] &&
  11839. groupStudent[toolindex][gindex][1],
  11840. updateChair:
  11841. courseDetail.userid == userid &&
  11842. groupStudent[toolindex][gindex] &&
  11843. groupStudent[toolindex][gindex][1] &&
  11844. groupJson.islock == 2,
  11845. }"
  11846. ><span
  11847. class="updateChairBtn"
  11848. @click="
  11849. updateGroupChair(
  11850. groupStudent[toolindex][gindex] &&
  11851. groupStudent[toolindex][gindex][1]
  11852. )
  11853. "
  11854. >修改</span
  11855. ></span
  11856. ><span>{{
  11857. groupStudent[toolindex][gindex] &&
  11858. groupStudent[toolindex][gindex][1]
  11859. ? groupStudent[toolindex][gindex] &&
  11860. groupStudent[toolindex][gindex][1].name
  11861. : "空位置"
  11862. }}</span>
  11863. </div>
  11864. <div v-if="groupJson.number > 5">
  11865. <span
  11866. :class="{
  11867. isChair:
  11868. groupStudent[toolindex][gindex] &&
  11869. groupStudent[toolindex][gindex][5],
  11870. updateChair:
  11871. courseDetail.userid == userid &&
  11872. groupStudent[toolindex][gindex] &&
  11873. groupStudent[toolindex][gindex][5] &&
  11874. groupJson.islock == 2,
  11875. }"
  11876. ><span
  11877. class="updateChairBtn"
  11878. @click="
  11879. updateGroupChair(
  11880. groupStudent[toolindex][gindex] &&
  11881. groupStudent[toolindex][gindex][5]
  11882. )
  11883. "
  11884. >修改</span
  11885. ></span
  11886. ><span>{{
  11887. groupStudent[toolindex][gindex] &&
  11888. groupStudent[toolindex][gindex][5]
  11889. ? groupStudent[toolindex][gindex] &&
  11890. groupStudent[toolindex][gindex][5].name
  11891. : "空位置"
  11892. }}</span>
  11893. </div>
  11894. <div v-if="groupJson.number > 9">
  11895. <span
  11896. :class="{
  11897. isChair:
  11898. groupStudent[toolindex][gindex] &&
  11899. groupStudent[toolindex][gindex][9],
  11900. updateChair:
  11901. courseDetail.userid == userid &&
  11902. groupStudent[toolindex][gindex] &&
  11903. groupStudent[toolindex][gindex][9] &&
  11904. groupJson.islock == 2,
  11905. }"
  11906. ><span
  11907. class="updateChairBtn"
  11908. @click="
  11909. updateGroupChair(
  11910. groupStudent[toolindex][gindex] &&
  11911. groupStudent[toolindex][gindex][9]
  11912. )
  11913. "
  11914. >修改</span
  11915. ></span
  11916. ><span>{{
  11917. groupStudent[toolindex][gindex] &&
  11918. groupStudent[toolindex][gindex][9]
  11919. ? groupStudent[toolindex][gindex] &&
  11920. groupStudent[toolindex][gindex][9].name
  11921. : "空位置"
  11922. }}</span>
  11923. </div>
  11924. </div>
  11925. </div>
  11926. </div>
  11927. </div>
  11928. </div>
  11929. <span slot="footer" class="dialog-footer">
  11930. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11931. </span>
  11932. </el-dialog>
  11933. <el-dialog
  11934. title="分组设置"
  11935. :visible.sync="dialogVisibleGroup2"
  11936. :append-to-body="true"
  11937. width="650px"
  11938. :before-close="handleClose"
  11939. class="dialog_diy"
  11940. >
  11941. <div class="groupBox">
  11942. <div v-if="groupJson2.group" class="groupContent">
  11943. <div class="groupTitle">请设置小组数量及名称</div>
  11944. <div
  11945. v-for="(item, index) in groupJson2.group"
  11946. :key="index"
  11947. class="groupName"
  11948. >
  11949. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11950. <el-input
  11951. v-model="item.name"
  11952. placeholder="请输入名称..."
  11953. style="width: 250px"
  11954. ></el-input>
  11955. <!-- <div class="groupBtn">
  11956. <el-button type="primary" size="small" @click="addGroup(index)">
  11957. 添加</el-button>
  11958. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11959. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11960. </div> -->
  11961. </div>
  11962. </div>
  11963. <div class="groupContent">
  11964. <div class="groupTitle">请设置每组人数</div>
  11965. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11966. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11967. <el-input
  11968. v-model="groupJson2.number"
  11969. style="width: 150px"
  11970. placeholder="请输入2-10的数字"
  11971. @change="numberPan"
  11972. ></el-input>
  11973. </div>
  11974. </div>
  11975. <span slot="footer" class="dialog-footer">
  11976. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11977. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11978. </span>
  11979. </el-dialog>
  11980. <el-dialog
  11981. title="作业提交"
  11982. :visible.sync="dialogVisibleGroupWork"
  11983. :append-to-body="true"
  11984. width="500px"
  11985. :before-close="handleClose"
  11986. class="dialog_change"
  11987. >
  11988. <div class="marginT">
  11989. <div>上传文件</div>
  11990. <div
  11991. class="chapter_add"
  11992. @click="addImg($event)"
  11993. v-if="studyJuri[0].cover.length == 0"
  11994. >
  11995. <div class="up_photo">
  11996. <img src="../assets/icon/uploadImg.png" alt />
  11997. </div>
  11998. <!-- <input
  11999. type="file"
  12000. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12001. style="display: none"
  12002. @change="beforeUpload1($event, 1)"
  12003. /> -->
  12004. <input
  12005. type="file"
  12006. accept="*"
  12007. style="display: none"
  12008. @change="beforeUpload1($event, 1)"
  12009. />
  12010. </div>
  12011. <!-- capture="camera" -->
  12012. <div
  12013. class="chapter_add"
  12014. style="
  12015. display: flex;
  12016. width: 100%;
  12017. flex-direction: row;
  12018. flex-wrap: wrap;
  12019. justify-content: flex-start;
  12020. padding: 15px 0;
  12021. "
  12022. v-if="studyJuri[0].cover.length > 0"
  12023. >
  12024. <div class="upCover">
  12025. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12026. <img :src="word" alt v-else-if="fileType == 1" />
  12027. <img :src="video" alt v-else-if="fileType == 2" />
  12028. <img :src="word2" alt v-else-if="fileType == 3" />
  12029. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12030. <div class="deleteWord" @click="clean(1)">
  12031. <img src="../assets/icon/deleteWorks.png" alt />
  12032. </div>
  12033. </div>
  12034. </div>
  12035. </div>
  12036. <div
  12037. class="upload_send"
  12038. @click="addCourseWorks2(taskCount)"
  12039. v-if="!proVisible"
  12040. >
  12041. 提交
  12042. </div>
  12043. </el-dialog>
  12044. <el-dialog
  12045. title="修改分组"
  12046. :visible.sync="dialogVisibleUpdateGroup"
  12047. :append-to-body="true"
  12048. width="350px"
  12049. :before-close="handleClose"
  12050. class="dialog_diy"
  12051. >
  12052. <div>
  12053. <h2>
  12054. {{ this.updateGroupUser.name }}
  12055. </h2>
  12056. <div style="color: rgb(171 171 171); margin-top: 10px">
  12057. 请选择要进入的分组
  12058. </div>
  12059. <el-radio-group v-model="checkChair">
  12060. <el-radio
  12061. style="display: block; margin-top: 20px"
  12062. v-for="(item, index) in updateGroupArray"
  12063. :label="item.label"
  12064. :key="index"
  12065. >{{ item.name }}</el-radio
  12066. >
  12067. </el-radio-group>
  12068. </div>
  12069. <span slot="footer" class="dialog-footer">
  12070. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12071. <el-button type="primary" @click="updateChair">确定</el-button>
  12072. </span>
  12073. </el-dialog>
  12074. <el-dialog
  12075. title="移除组员"
  12076. :visible.sync="dialogVisibleDeleteGroup"
  12077. :append-to-body="true"
  12078. width="350px"
  12079. :before-close="handleClose"
  12080. class="dialog_diy"
  12081. >
  12082. <div>
  12083. <h2>
  12084. {{ this.deleteGroupArray.name }}
  12085. </h2>
  12086. <div style="color: rgb(171 171 171); margin-top: 10px">
  12087. 请选择要删除的组员
  12088. </div>
  12089. <el-checkbox-group v-model="checkDeleteGroup">
  12090. <el-checkbox
  12091. style="display: flex; margin-top: 20px"
  12092. v-for="(item, index) in deleteGroupUser"
  12093. :label="item.userid"
  12094. :key="index"
  12095. >{{ item.name }}</el-checkbox
  12096. >
  12097. </el-checkbox-group>
  12098. </div>
  12099. <span slot="footer" class="dialog-footer">
  12100. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12101. <el-button type="primary" @click="deleteChair">确定</el-button>
  12102. </span>
  12103. </el-dialog>
  12104. <el-dialog
  12105. title="批量上传"
  12106. :visible.sync="dialogVisiblePl"
  12107. :append-to-body="true"
  12108. width="700px"
  12109. :before-close="handleClose"
  12110. class="dialog_change"
  12111. >
  12112. <div class="marginT">
  12113. <div class="plworkBox">
  12114. <div
  12115. class="chapter_add"
  12116. style="
  12117. display: flex;
  12118. width: 150px;
  12119. flex-direction: row;
  12120. flex-wrap: wrap;
  12121. justify-content: flex-start;
  12122. margin: 0 10px 10px 0;
  12123. "
  12124. v-for="(item, index) in plworkFile"
  12125. :key="index"
  12126. >
  12127. <div class="upCover2">
  12128. <img
  12129. :src="item.url"
  12130. alt
  12131. v-if="item.fileType == 1"
  12132. @click="previewImg(item.url)"
  12133. />
  12134. <img :src="word" alt v-else-if="item.fileType == 4" />
  12135. <img :src="video" alt v-else />
  12136. <!-- <span class="picName">{{ item.name }}</span> -->
  12137. <!-- <el-input
  12138. v-model="item.username"
  12139. placeholder="请输入学生名字"
  12140. style="margin-top: 10px"
  12141. ></el-input> -->
  12142. <div
  12143. class="pl_select_box"
  12144. @click="
  12145. getUpdateMore(true, checkUpload(), item.username, index)
  12146. "
  12147. >
  12148. {{ getSName(item.username) }}
  12149. </div>
  12150. <!-- <el-select
  12151. style="margin-top: 10px"
  12152. v-model="item.username"
  12153. filterable
  12154. allow-create
  12155. placeholder="请选择学生"
  12156. >
  12157. <el-option
  12158. v-for="item1 in checkUpload()"
  12159. :key="item1.userid"
  12160. :label="item1.name ? item1.name : item1.username"
  12161. :value="item1.userid"
  12162. >
  12163. </el-option>
  12164. </el-select> -->
  12165. <div class="deleteWord" @click="clean2(index)">
  12166. <img src="../assets/icon/deleteWorks.png" alt />
  12167. </div>
  12168. </div>
  12169. </div>
  12170. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12171. <div class="up_photo2">
  12172. <img src="../assets/icon/plwork.png" alt />
  12173. <span>点击上传文件</span>
  12174. </div>
  12175. <input
  12176. type="file"
  12177. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12178. multiple="multiple"
  12179. style="display: none"
  12180. @change="beforeUpload3($event, 6)"
  12181. />
  12182. </div>
  12183. </div>
  12184. </div>
  12185. <!-- capture="camera" -->
  12186. <div
  12187. class="upload_send"
  12188. @click="addCourseWorksPl(taskCount)"
  12189. v-if="!proVisible2"
  12190. >
  12191. 提交
  12192. </div>
  12193. </el-dialog>
  12194. <el-dialog
  12195. title="修改名称"
  12196. :visible.sync="dialogVisibleSname"
  12197. width="500px"
  12198. :before-close="handleClose"
  12199. class="dialog_diy"
  12200. center
  12201. >
  12202. <div
  12203. style="
  12204. text-align: center;
  12205. display: flex;
  12206. align-items: center;
  12207. justify-content: center;
  12208. "
  12209. >
  12210. <span class="tian1">名称</span>
  12211. <div
  12212. class="pl_select_box"
  12213. style="margin-left: 10px; width: 200px"
  12214. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12215. >
  12216. {{ getSName(worksSName) }}
  12217. </div>
  12218. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12219. placeholder="请选择学生">
  12220. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12221. :value="item.userid">
  12222. </el-option>
  12223. </el-select> -->
  12224. <!-- <el-input
  12225. v-model="worksSName"
  12226. style="width: 250px; margin: 15px 0px"
  12227. ></el-input> -->
  12228. </div>
  12229. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12230. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12231. <el-button type="primary" @click="updateName">确 定</el-button>
  12232. </span>
  12233. </el-dialog>
  12234. <el-dialog
  12235. title="英语写作"
  12236. :visible.sync="engDialogVisible"
  12237. :append-to-body="true"
  12238. width="800px"
  12239. :before-close="handleClose"
  12240. class="dialog_diy"
  12241. >
  12242. <onlineWrite
  12243. v-if="engDialogVisible"
  12244. :englishList="englishList"
  12245. :myAnswerList1="myAnswerList1"
  12246. :userid="userid"
  12247. ref="engJson"
  12248. ></onlineWrite>
  12249. <span slot="footer" class="dialog-footer">
  12250. <el-button @click="engDialogVisible = false">取 消</el-button>
  12251. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12252. </span>
  12253. </el-dialog>
  12254. <el-dialog
  12255. title="英语写作"
  12256. :visible.sync="engUpdateDialogVisible"
  12257. :append-to-body="true"
  12258. width="800px"
  12259. :before-close="handleClose"
  12260. class="dialog_diy fullStyle"
  12261. >
  12262. <div class="engUpBox">
  12263. <div class="engUpTop">
  12264. <div class="engTitle">
  12265. <div>作文题目:</div>
  12266. <div>{{ englishList1.engTitle }}</div>
  12267. </div>
  12268. <div class="engText">
  12269. <div>作文内容:</div>
  12270. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12271. </div>
  12272. </div>
  12273. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12274. <div class="oldBox">
  12275. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12276. <div class="oldText">
  12277. <div class="detailBox">
  12278. <div class="oldDetail">
  12279. <div>标题:</div>
  12280. <div>{{ oldEnglishJson.engTitle }} </div>
  12281. </div>
  12282. <div class="oldDetail1">
  12283. <div>正文:</div>
  12284. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12285. </div>
  12286. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12287. <div>图片:</div>
  12288. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12289. </div>
  12290. </div>
  12291. </div>
  12292. </div>
  12293. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12294. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12295. <div class="oldText">
  12296. <div class="detailBox" style="position: relative;">
  12297. <div class="oldDetail">
  12298. <div>标题:</div>
  12299. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12300. <div v-else v-html="newEnglishList.engTitle"></div>
  12301. </div>
  12302. <div class="oldDetail">
  12303. <div>正文:</div>
  12304. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12305. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12306. </div>
  12307. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12308. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12309. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12310. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12311. </div>
  12312. </div>
  12313. </div>
  12314. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12315. <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">
  12316. <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>
  12317. <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>
  12318. </div>
  12319. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12320. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12321. <div class="detailBox" style="position: relative;">
  12322. <div class="oldDetail">
  12323. <div>标题:</div>
  12324. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12325. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12326. </div>
  12327. <div class="oldDetail">
  12328. <div>正文:</div>
  12329. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12330. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12331. </div>
  12332. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12333. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12334. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12335. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12336. </div>
  12337. </div>
  12338. <div class="oldText" v-else-if="newEngIndex == -1">
  12339. <div class="detailBox" style="position: relative;">
  12340. <div class="oldDetail">
  12341. <div>标题:</div>
  12342. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12343. <div v-else v-html="newEnglishList.engTitle"></div>
  12344. </div>
  12345. <div class="oldDetail">
  12346. <div>正文:</div>
  12347. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12348. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12349. </div>
  12350. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12351. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12352. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12353. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12354. </div>
  12355. </div>
  12356. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12357. <div class="detailBox" style="position: relative;">
  12358. <div class="oldDetail">
  12359. <div>标题:</div>
  12360. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12361. <div v-else>
  12362. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12363. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12364. </div>
  12365. </div>
  12366. <div class="oldDetail">
  12367. <div>正文:</div>
  12368. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12369. <div v-else>
  12370. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12371. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12372. </div>
  12373. </div>
  12374. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12375. <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>
  12376. <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>
  12377. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12378. </div>
  12379. </div>
  12380. </div>
  12381. </div>
  12382. </div>
  12383. <span slot="footer" class="dialog-footer">
  12384. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12385. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12386. </span>
  12387. </el-dialog>
  12388. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12389. <interVideo
  12390. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12391. :videoJson="videoJson"
  12392. :userid="userid"
  12393. :id="id"
  12394. :courseType="courseType"
  12395. :taskCount="taskCount"
  12396. :toolindex="toolindex"
  12397. :videoType="videoType"
  12398. ></interVideo>
  12399. <UpdateMore
  12400. :dialogVisibleMember.sync="dialogVisibleMember"
  12401. :cList="uploadStudentJuri"
  12402. :userid="userid"
  12403. :searchTN="worksSName2"
  12404. @setPlname="setPlname"
  12405. ></UpdateMore>
  12406. <!-- <wordCloud
  12407. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12408. :data="wordCloudData"
  12409. ></wordCloud> -->
  12410. <el-dialog
  12411. title="词云"
  12412. :visible.sync="dialogVisibleWordCloud"
  12413. width="30%"
  12414. class="dialog_diy"
  12415. :before-close="handleClose">
  12416. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12417. </el-dialog>
  12418. <el-dialog
  12419. title="挑人"
  12420. :visible.sync="dialogVisiblePickPeople"
  12421. width="650px"
  12422. :before-close="handleClose"
  12423. class="dialog_diy"
  12424. center
  12425. >
  12426. <div class="pick_box">
  12427. <div
  12428. class="noWorksName"
  12429. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12430. v-for="(item, index) in uploadStudentJuri"
  12431. :key="index"
  12432. @click="pickStudent(item)"
  12433. >
  12434. {{ item.name }}
  12435. </div>
  12436. </div>
  12437. </el-dialog>
  12438. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12439. :englishVoiceJson='englishVoiceJson'
  12440. :userid="userid"
  12441. :id="id"
  12442. :courseType="courseType"
  12443. :taskCount="taskCount"
  12444. :toolindex="toolindex"
  12445. @selectSWorks="selectSWorks"
  12446. @selectStudent="selectStudent"
  12447. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12448. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12449. :userid="userid"
  12450. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12451. :commentDetail="commentDetail"
  12452. :courseDetail="courseDetail"
  12453. :wScore="wScore"
  12454. :scoreDetail="scoreDetail"
  12455. @selectSWorks="selectSWorks"
  12456. @selectStudent="selectStudent"></checkEnglishVoice>
  12457. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12458. <choseWorksDetailDialog
  12459. ref="choseWorksDetailDialogRef"
  12460. :worksStudentData="worksStudent"
  12461. :noWorksSData="noWorksS"
  12462. :chapInfoListData="chapInfoList"
  12463. :courseType="courseType"
  12464. :taskCount="taskCount"
  12465. :tType="tType"
  12466. :sIsOpen="sIsOpen"
  12467. :courseDetail="courseDetail"
  12468. :groupStudent2="groupStudent"
  12469. :groupStudentUid2="groupStudentUid"
  12470. :oid="oid"
  12471. :org="org"
  12472. @getCourseDetail="getCourseDetail"
  12473. @selectSLook="selectSLook"
  12474. @selectSWorks="selectSWorks"
  12475. @selectStudent="selectStudent"
  12476. @deleteWorks="deleteWorks"
  12477. @openTools="openTools"
  12478. @openWord="openWord"
  12479. @openScore="openScore"
  12480. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12481. />
  12482. <el-dialog
  12483. :visible.sync="confirmOpenDig"
  12484. width="500px"
  12485. :modal="false"
  12486. class="confirmOpenDigCss dialog_diyCopy"
  12487. :before-close="handleClose">
  12488. <div style="display: flex;align-items: center;">
  12489. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12490. <span>“{{ courseDetail.title }}”开课啦</span>
  12491. </div>
  12492. <div style="margin: 20px 0 35px;">
  12493. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12494. <div>要认真听讲哦~</div>
  12495. </div>
  12496. <div style="text-align: center;">
  12497. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12498. </div>
  12499. </el-dialog>
  12500. <appStoreC ref="appStoreC"
  12501. :sStudent="sStudent"
  12502. :courseType="courseType"
  12503. :taskCount="taskCount"
  12504. :toolindex="toolindex"
  12505. @selectSWorks="selectSWorks"
  12506. @selectStudent="selectStudent"
  12507. ></appStoreC>
  12508. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12509. </div>
  12510. </template>
  12511. <script>
  12512. import "../common/aws-sdk-2.235.1.min.js";
  12513. // import pdf from "./components/pdf3";
  12514. import pdf from "./components/vpdf";
  12515. import AskStatic from "./components/askStatic";
  12516. import AskStatic2 from "./components/askStatic2";
  12517. import AnswerData2 from "./components/answerData2";
  12518. import AnswerData from "./components/answerData";
  12519. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  12520. import EditorBar from "./tools/wangEnduit.vue";
  12521. import Table from "./tools/table.vue";
  12522. import Time from "./tools/time.vue";
  12523. import Mind from "./tools/jsmind.vue";
  12524. import Sunburst from "./tools/sunburst";
  12525. import SeeBoard from "./tools/seeBoard";
  12526. import * as imageConversion from "image-conversion";
  12527. import Audio from "./components/audio.vue";
  12528. import ImgDraw from "./tools/imgDraw/imgDraw";
  12529. import { Empty } from "element-ui";
  12530. import RecordRTC from "recordrtc";
  12531. import interVideo from "./interVideo/index.vue";
  12532. import UpdateMore from "./updateMore/updateMore.vue";
  12533. import wordCloud from "./wordCloud/index.vue";
  12534. import axios from "axios";
  12535. import JSZip from "jszip";
  12536. import FileSaver from "file-saver";
  12537. import onlineWrite from "./components/onlineWrite";
  12538. import englishEva from "./components/englishEva";
  12539. import * as Diff from 'diff'
  12540. import EnglishVoice from './EnglishVoice2/index.vue'
  12541. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12542. import correctText from './components/correctText.vue'
  12543. import scoreItem from './scoreList/scoreItem.vue'
  12544. import scoreZong from './scoreZong/index.vue'
  12545. import classRoomHelper from './classRoomHelper/index.vue'
  12546. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  12547. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12548. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12549. import { v4 as uuidv4 } from "uuid";
  12550. var OpenCC = require("opencc-js");
  12551. import choseWordCloud from './components/choseWordCloud.vue'
  12552. import appStoreC from "./components/appStoreC.vue";
  12553. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12554. import { myMixin } from "@/mixins/mixin.js"
  12555. import { tools as toolsList } from "@/common/tools2.js";
  12556. import katex from 'katex'
  12557. import 'katex/dist/katex.min.css'
  12558. let converter = OpenCC.Converter({
  12559. from: "hk",
  12560. to: "cn"
  12561. });
  12562. const getFile = (url) => {
  12563. return new Promise((resolve, reject) => {
  12564. var credentials = {
  12565. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12566. secretAccessKey: "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",
  12567. }; //秘钥形式的登录上传
  12568. window.AWS.config.update(credentials);
  12569. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12570. let url2 = url;
  12571. let _url2 = "";
  12572. if (
  12573. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12574. ) {
  12575. _url2 = url2.split(
  12576. "https://view.officeapps.live.com/op/view.aspx?src="
  12577. )[1];
  12578. } else {
  12579. _url2 = url2;
  12580. }
  12581. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12582. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12583. var params = {
  12584. Bucket: "ccrb",
  12585. Key: name
  12586. };
  12587. s3.getObject(params, function (err, data) {
  12588. if (err) {
  12589. console.log(err, err.stack)
  12590. resolve({ data: 1 });
  12591. }else {
  12592. resolve({ data: data.Body });
  12593. console.log(data);
  12594. } // sxuccessful response
  12595. });
  12596. // axios({
  12597. // method: "get",
  12598. // url,
  12599. // responseType: "blob",
  12600. // })
  12601. // .then((data) => {
  12602. // resolve({ data: data.data });
  12603. // })
  12604. // .catch((error) => {
  12605. // resolve({ data: 1 });
  12606. // // reject(error.toString());
  12607. // });
  12608. });
  12609. };
  12610. export default {
  12611. mixins: [ myMixin ],
  12612. components: {
  12613. choseWordCloud,
  12614. EditorBar,
  12615. Time,
  12616. pdf,
  12617. AskStatic,
  12618. AskStatic2,
  12619. Mind,
  12620. Sunburst,
  12621. SeeBoard,
  12622. AnswerData2,
  12623. AnswerData,
  12624. sortToolWorkShow,
  12625. Audio,
  12626. ImgDraw,
  12627. Table,
  12628. interVideo,
  12629. UpdateMore,
  12630. wordCloud,
  12631. onlineWrite,
  12632. englishEva,
  12633. EnglishVoice,
  12634. checkEnglishVoice,
  12635. correctText,
  12636. scoreItem,
  12637. classRoomHelper,
  12638. scoreZong,
  12639. statisticalAnalysis,
  12640. choseWorksDetailDialog,
  12641. appStoreC,
  12642. cocoFlowDia,
  12643. studentClassRoomHelper
  12644. },
  12645. data() {
  12646. return {
  12647. startTime: "",
  12648. // 是否允许学生查看内容资料 2不可以 1可以
  12649. IsStulook:false,
  12650. homeWorkLoading:false,
  12651. wordCloudKey: 0,
  12652. bg: null,
  12653. drawShow: false,
  12654. dialogVisible: false,
  12655. dialogVisiblePl: false,
  12656. commentDialogVisible: false,
  12657. dialogVisibleMember: false,
  12658. dialogVisibleWordCloud: false,
  12659. videoVisible: false,
  12660. isStar: false,
  12661. studentEvalDialogVisible: false,
  12662. studentEvalDialogVisibleTeacher: false,
  12663. dialogVisibleSelect: false,
  12664. dialogVisibleSelectTeacher: false,
  12665. dialogVisibleScore: false,
  12666. dialogVisibleENScore: false,
  12667. dialogVisibleSentence: false,
  12668. dialogVisibleSentenceTeacher: false,
  12669. dialogVisibleSentence1: false,
  12670. dialogVisibleWorks: false,
  12671. dialogVisibleTable: false,
  12672. dialogVisibleTableTeacher: false,
  12673. dialogVisibleWord: false,
  12674. dialogVisibleWordTeacher: false,
  12675. dialogVisibleTable2: false,
  12676. dialogVisibleTable3: false,
  12677. dialogVisibleGroupWork: false,
  12678. dialogVisibleUpdateGroup: false,
  12679. dialogVisibleDeleteGroup: false,
  12680. dialogVisibleSname: false,
  12681. dialogVisibleVideo: false,
  12682. dialogVisiblePickPeople: false,
  12683. engDialogVisible: false,
  12684. engUpdateDialogVisible: false,
  12685. engEvaDialogVisible: false,
  12686. evaEngJson: {
  12687. teacherJson: {},
  12688. studentJson: {},
  12689. message: {},
  12690. },
  12691. isNoUserid:false,
  12692. engListLength:0,
  12693. engWid:"",
  12694. newEnglishList:{
  12695. engTitle:"",
  12696. engText:"",
  12697. },
  12698. newEnglishList1:[],
  12699. oldEnglishJson:{},
  12700. oldEnglishJson1:{},
  12701. englishList1:{},
  12702. englishList:{},
  12703. myAnswerList1:{},
  12704. topHeight:0,
  12705. newEngIndex:-1,
  12706. englishToolIndex:0,
  12707. worksSName: "",
  12708. classJuri: [],
  12709. uploadStudentJuri: [],
  12710. uploadCid: "",
  12711. snameWid: "",
  12712. sStudent: {},
  12713. sTool: "",
  12714. bzText: "",
  12715. commentDetail: [],
  12716. selectAnswer: [],
  12717. videoDetail: {},
  12718. selectJson: {},
  12719. eScore: { eBzText: "", eStar: [] },
  12720. id: this.$route.query.courseId,
  12721. userid: this.$route.query.userid,
  12722. classId: this.$route.query.cid,
  12723. role: this.$route.query.role,
  12724. // courseTypeLine: this.$route.query.type,
  12725. oid: this.$route.query.oid,
  12726. org: this.$route.query.org,
  12727. tType: this.$route.query.tType,
  12728. courseType: this.$route.query.type,
  12729. screenType: this.$route.query.screenType,
  12730. tcid2: this.$route.query.tcid,
  12731. tcid: "",
  12732. pptImgUrl: "",
  12733. pptImgUrl1: "",
  12734. commentText: "",
  12735. full: false,
  12736. sIsOpen: false,
  12737. IsLookOpen: false,
  12738. IsFollow: false,
  12739. pzDialog: false,
  12740. contentDialog: false,
  12741. mlDialog: false,
  12742. type: 1,
  12743. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12744. sentenceList1: [],
  12745. tableJson: [],
  12746. tableJsonO: [],
  12747. wordJson: [],
  12748. wordJsonO: [],
  12749. vedio: [],
  12750. text: [],
  12751. textList: [],
  12752. line: [],
  12753. lineList: [],
  12754. chapTools: [],
  12755. chapToolList: [],
  12756. file: [],
  12757. fileC: [],
  12758. vedioTime: [],
  12759. upToolImg: "",
  12760. preTime: 0,
  12761. rateList: {
  12762. ca: 0,
  12763. },
  12764. rateParams: [],
  12765. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12766. studyJuri: [
  12767. {
  12768. content: "",
  12769. cover: [],
  12770. upVedio: [],
  12771. upFile: [],
  12772. },
  12773. ],
  12774. isClose: 0,
  12775. plworkFile: [],
  12776. mr: require("../assets/vedioPic.png"),
  12777. word: require("../assets/icon/isWord.png"),
  12778. word2: require("../assets/icon/word2.png"),
  12779. video: require("../assets/icon/isVideo.png"),
  12780. noLikes: require("../assets/icon/comment/noLikes.png"),
  12781. likes: require("../assets/icon/comment/likes.png"),
  12782. scoreImg: require("../assets/score.png"),
  12783. courseDetail: {},
  12784. reply: "",
  12785. isSelect: false,
  12786. chapInfo: [],
  12787. chapInfoList: [],
  12788. taskCount: 0,
  12789. imgList: [],
  12790. noImgList: [],
  12791. pzList: [],
  12792. timeWorkList: [],
  12793. PlTextList: [
  12794. "Excellent!",
  12795. "nice!",
  12796. "很有创意!",
  12797. "还不错哦~",
  12798. "继续努力哦~",
  12799. ],
  12800. isClickNav: "",
  12801. navId: "",
  12802. playerOptions: {
  12803. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12804. autoplay: false, //如果true,浏览器准备好时开始回放。
  12805. muted: false, // 默认情况下将会消除任何音频。
  12806. loop: false, // 导致视频一结束就重新开始。
  12807. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12808. language: "zh-CN",
  12809. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12810. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12811. sources: [
  12812. {
  12813. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12814. src: "", //url地址require("../../assets/media/aaa.mp4")
  12815. },
  12816. ],
  12817. // poster: require("../../assets/tu31.png"), //你的封面地址
  12818. // poster: dataRes.imgUrl, //你的封面地址
  12819. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12820. controlBar: {
  12821. timeDivider: true, //当前时间和持续时间的分隔符
  12822. durationDisplay: true, //显示持续时间
  12823. remainingTimeDisplay: false, //是否显示剩余时间功能
  12824. fullscreenToggle: true, //全屏按钮
  12825. },
  12826. },
  12827. playerOptions1: {
  12828. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12829. autoplay: false, //如果true,浏览器准备好时开始回放。
  12830. muted: false, // 默认情况下将会消除任何音频。
  12831. loop: false, // 导致视频一结束就重新开始。
  12832. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12833. language: "zh-CN",
  12834. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12835. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12836. sources: [
  12837. {
  12838. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12839. src: "", //url地址require("../../assets/media/aaa.mp4")
  12840. },
  12841. ],
  12842. // poster: require("../../assets/tu31.png"), //你的封面地址
  12843. // poster: dataRes.imgUrl, //你的封面地址
  12844. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12845. controlBar: {
  12846. timeDivider: true, //当前时间和持续时间的分隔符
  12847. durationDisplay: true, //显示持续时间
  12848. remainingTimeDisplay: false, //是否显示剩余时间功能
  12849. fullscreenToggle: true, //全屏按钮
  12850. },
  12851. },
  12852. playerO: {},
  12853. noneBtnImg: false,
  12854. proVisible: false,
  12855. proVisible2: false,
  12856. progress: 0,
  12857. isFinishSize: 0,
  12858. isAllSize: 0,
  12859. questionAnswer: "",
  12860. answerQ: "", //问答标题
  12861. rateJson: [],
  12862. wbCount: 0,
  12863. wordCount: 0,
  12864. mindCount: 0,
  12865. askCount: 0,
  12866. noteCount: 0,
  12867. mindNetWorkCount: 0,
  12868. libraryCount: 0,
  12869. workCount: 0,
  12870. timeCount: 0,
  12871. answerCount: 0,
  12872. trainCount: 0,
  12873. evalCount: 0,
  12874. dialogImageUrl: "",
  12875. pictureDialog: false,
  12876. toolTypeList: [],
  12877. dialogVisible1: false,
  12878. dialogVisible2: false,
  12879. dialogVisible3: false,
  12880. dialogVisible6: false,
  12881. dialogVisible4: false,
  12882. isNoHomeWork: false,
  12883. dialogVisible5: false,
  12884. dialogVisible5Teacher: false,
  12885. dialogVisibleChoice: false,
  12886. dialogVisibleChoiceTeacher: false,
  12887. answerDialogVisible: false,
  12888. answerDialogVisibleTeacher: false,
  12889. juriVisible: false,
  12890. timeDialogVisible: false,
  12891. replyDialogVisible: false,
  12892. toolDialogVisible: false,
  12893. replyIndex: 0,
  12894. replyPid: "",
  12895. radio: [],
  12896. isAsk: false,
  12897. askJson: {
  12898. askCount: 1,
  12899. askTitle: "",
  12900. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12901. },
  12902. testJson: {},
  12903. videoType:0,
  12904. checkJson: [],
  12905. askList: [],
  12906. answerList: [],
  12907. navList: [],
  12908. addPzDialog: false,
  12909. pzConText: "",
  12910. worksStudent: [],
  12911. isCloseList: [],
  12912. workStudent: [],
  12913. groupStudent: [],
  12914. groupStudentUid: [],
  12915. noWorksS: [],
  12916. isWorksS: [],
  12917. noWorksStudent: [],
  12918. toolindex: 0,
  12919. toolDetailIndex: null,
  12920. groupIndex: 0,
  12921. workTypeB: false,
  12922. workTypeC: false,
  12923. isAnswer: false,
  12924. isHovered: false,
  12925. isHovered1: false,
  12926. isHovered2: false,
  12927. commentTagShow:0,
  12928. timer: null,
  12929. timer2: null,
  12930. opertimer: null,
  12931. showType: '',
  12932. fileType: 0,
  12933. showPDF: false,
  12934. noteName: "",
  12935. evaJuri: [],
  12936. evalua: "",
  12937. eTitle: "",
  12938. eName: "",
  12939. eJson: {},
  12940. fid: "", //一级
  12941. sid: "", //二级
  12942. tid: "", //二级
  12943. typeMode: 1,
  12944. eJSONNum: 0,
  12945. Etype: 1,
  12946. data: {
  12947. meta: {
  12948. name: "example",
  12949. author: "dd@163.com",
  12950. version: "0.2",
  12951. },
  12952. format: "node_array",
  12953. data: [{ id: "root", isroot: true, topic: "" }],
  12954. },
  12955. fullDialogVisible: false,
  12956. fulltype: "",
  12957. fullUrl: "",
  12958. commentIndexJson: {},
  12959. Stbodywidth: 0,
  12960. ispzType: 0,
  12961. pzType: 1,
  12962. wScore: 0,
  12963. scoreDetail: "",
  12964. videoStart: false,
  12965. recorder: null,
  12966. groupJson: {},
  12967. islock: false,
  12968. groupJson2: {},
  12969. dialogVisibleGroup: false,
  12970. dialogVisibleGroup2: false,
  12971. updateGroupArray: [],
  12972. updateGroupUser: {},
  12973. deleteGroupUser: [],
  12974. deleteGroupArray: {},
  12975. checkChair: "",
  12976. checkDeleteGroup: [],
  12977. inviteCode: "",
  12978. courseGroupStudent: [],
  12979. courseGroupStudentUid: [],
  12980. courseGroup: {},
  12981. isGroup: false,
  12982. // toolIndex: null,
  12983. tool: {},
  12984. isWorkTool: [
  12985. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12986. ], //, 40
  12987. videoJson: {},
  12988. toolType: 0,
  12989. checktoolArray: [],
  12990. vChapterData: [],
  12991. isUpdateToolDetail: false,
  12992. isUpdateToolDetail1: false,
  12993. updateToolDetailInner: "",
  12994. checkboxList: [],
  12995. plIndex: "",
  12996. worksSName2: "",
  12997. worksSid: "",
  12998. wordCloudData: [],
  12999. isPickStudent: [],
  13000. pzStype: 1,
  13001. myAnList: {},
  13002. userMes:{},
  13003. downLoading: false,
  13004. greyType: false,
  13005. correctWord: [],
  13006. isUpdateText: "",
  13007. EnglishVoiceDialog: false,
  13008. englishVoiceJson: {},
  13009. englishVoiceJsonWork:[],
  13010. scoreList:{
  13011. listdata:[],
  13012. isScoreList:[],
  13013. },
  13014. classRoomHelperWidth: '85px',
  13015. orgArray:[],
  13016. oidArray:[],
  13017. toolsList: toolsList,
  13018. splitScreenData:{
  13019. isOpen:false,
  13020. userId:"",
  13021. uid:"",
  13022. myUid:"",
  13023. loading:false,
  13024. behavior:null,
  13025. },
  13026. confirmOpenDig:false,
  13027. confirmOpenDigData:'',
  13028. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  13029. diffKey:"1",
  13030. getCourseGroupLoading: false,
  13031. selectSWorksLoading:false,
  13032. selectStudentLoading:false,
  13033. selectSLookLoading:false,
  13034. getPickLoading:false,
  13035. selectPzLoading:false,
  13036. getSplitScreenDataLoading:false,
  13037. };
  13038. },
  13039. methods: {
  13040. //查看应用中心作业
  13041. openCocoFlow(w){
  13042. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13043. },
  13044. getAIJ(){
  13045. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13046. let oid = res.data[0];
  13047. let org = res.data[1];
  13048. let oidArray = [];
  13049. let orgArray = [];
  13050. oid.forEach(i=>oidArray.push(i.oid))
  13051. org.forEach(i=>orgArray.push(i.oid))
  13052. this.orgArray = orgArray;
  13053. this.oidArray = oidArray;
  13054. })
  13055. },
  13056. insertMemorandum(_html){//保存行为操作
  13057. //variable
  13058. //btn
  13059. let params = [{
  13060. uid:this.userid,
  13061. courseId:this.id+(this.tcid2?this.tcid2:''),
  13062. content:_html
  13063. }]
  13064. console.log("👇👇")
  13065. console.log(params)
  13066. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13067. if(res.data==1){
  13068. console.log('保存操作成功')
  13069. }else{
  13070. console.log('保存操作失败')
  13071. }
  13072. }).catch(e=>{
  13073. console.log('保存操作失败')
  13074. console.log(e)
  13075. })
  13076. },
  13077. gx(){
  13078. this.$forceUpdate();
  13079. },
  13080. isUpdateCorrect(t,p){
  13081. if(this.greyType == false){
  13082. this.isUpdateText = t;
  13083. this.greyType = true;
  13084. }else{
  13085. if(p == 1){
  13086. this.newEnglishList.engText = this.isUpdateText;
  13087. }else if(p == 2){
  13088. this.oldEnglishJson1.engText = this.isUpdateText;
  13089. }else if(p == 3){
  13090. this.newEnglishList.engText = this.isUpdateText;
  13091. }else{
  13092. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13093. }
  13094. this.greyType = false
  13095. }
  13096. },
  13097. aiCorrect(t,p){
  13098. let aiText = "";
  13099. const loading = this.$loading.service({
  13100. background: "rgba(255, 255, 255)",
  13101. target: document.querySelectorAll(".loadingText")[0],
  13102. });
  13103. let param = {
  13104. model: "gpt-3.5-turbo",
  13105. temperature: 0,
  13106. max_tokens: 2048,
  13107. top_p: 1,
  13108. frequency_penalty: 0,
  13109. presence_penalty: 0,
  13110. messages: [
  13111. {
  13112. role: "user",
  13113. content:
  13114. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13115. },
  13116. ],
  13117. uid: this.userid,
  13118. stream: false,
  13119. };
  13120. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13121. (res) => {
  13122. if (
  13123. res.data.FunctionResponse &&
  13124. res.data.FunctionResponse.result &&
  13125. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13126. ) {
  13127. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13128. return;
  13129. }
  13130. aiText =
  13131. res.data.FunctionResponse.choices[0].message.content;
  13132. aiText = aiText.replace(/%/g,"%25");
  13133. // let w = "";
  13134. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13135. // for(var k = 0;k<a.length;k++){
  13136. // //diffWordsWithSpace
  13137. // if(a.length > 1){
  13138. // if(a[k].added == true){
  13139. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13140. // }else if(a[k].removed == true){
  13141. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13142. // }else{
  13143. // w += '<span>' + a[k].value + '</span>';
  13144. // }
  13145. // }else{
  13146. // if(p == 1){
  13147. // w = this.newEnglishList.engText;
  13148. // }else if(p == 2){
  13149. // w = this.oldEnglishJson1.engText;
  13150. // }else if(p == 3){
  13151. // w = this.newEnglishList.engText;
  13152. // }else{
  13153. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13154. // }
  13155. // }
  13156. // }
  13157. if(p == 1){
  13158. this.newEnglishList.engText = aiText;
  13159. }else if(p == 2){
  13160. this.oldEnglishJson1.engText = aiText;
  13161. }else if(p == 3){
  13162. this.newEnglishList.engText = aiText;
  13163. }else{
  13164. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13165. }
  13166. loading.close();
  13167. },
  13168. (err) => {
  13169. console.log(err);
  13170. loading.close();
  13171. }
  13172. );
  13173. },
  13174. addToolChoose() {
  13175. if (!this.checktoolArray.length) {
  13176. this.$message.error("请选择要添加的任务");
  13177. return;
  13178. }
  13179. if (
  13180. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13181. this.taskCount
  13182. ].toolChoose[0].tool.length
  13183. ) {
  13184. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13185. this.taskCount
  13186. ].toolChoose[0].tool = this.checktoolArray;
  13187. } else {
  13188. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13189. this.taskCount
  13190. ].toolChoose.push({
  13191. tool: this.checktoolArray,
  13192. toolDetail: "",
  13193. toolType: 0,
  13194. askCount: 1,
  13195. askTitle: "",
  13196. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13197. });
  13198. }
  13199. let params = [
  13200. {
  13201. cid: this.id,
  13202. chapters: JSON.stringify(this.chapInfoList),
  13203. uid: this.userid,
  13204. unitIndex: this.courseType,
  13205. },
  13206. ];
  13207. this.ajax
  13208. .post(this.$store.state.api + "updateWorkNew4", params)
  13209. .then((res) => {
  13210. this.$message({
  13211. message: "添加成功",
  13212. type: "success",
  13213. });
  13214. this.checktoolArray = [];
  13215. this.getCourseDetail(2);
  13216. this.checkBz(
  13217. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13218. this.taskCount
  13219. ].toolChoose.length - 1
  13220. );
  13221. this.toolDialogVisible = false;
  13222. this.refreshCourse();
  13223. this.$forceUpdate();
  13224. })
  13225. .catch((err) => {
  13226. console.error(err);
  13227. });
  13228. },
  13229. checkBz(index) {
  13230. this.isUpdateToolDetail = false;
  13231. this.$forceUpdate();
  13232. setTimeout(() => {
  13233. document.scrollingElement.scrollTop =
  13234. document.querySelectorAll(".filebox")[index].offsetTop +
  13235. document.querySelector(".student_body").offsetTop;
  13236. }, 500);
  13237. },
  13238. updateToolDetail(i, type) {
  13239. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13240. this.toolDetailIndex = i
  13241. this.isUpdateToolDetail1 = true;
  13242. setTimeout(() => {
  13243. this.updateToolDetailInner = JSON.parse(
  13244. JSON.stringify(
  13245. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13246. this.taskCount
  13247. ].toolChoose[i].toolDetail
  13248. )
  13249. );
  13250. document.querySelector(".checkTextArea").focus();
  13251. }, 0);
  13252. } else if((this.isUpdateToolDetail1 && type != 2)){
  13253. // this.toolDetailIndex = i;
  13254. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13255. this.taskCount
  13256. ].toolChoose[i].toolDetail = JSON.parse(
  13257. JSON.stringify(this.updateToolDetailInner)
  13258. );
  13259. let params = [
  13260. {
  13261. cid: this.id,
  13262. chapters: JSON.stringify(this.chapInfoList),
  13263. uid: this.userid,
  13264. unitIndex: this.courseType,
  13265. },
  13266. ];
  13267. this.ajax
  13268. .post(this.$store.state.api + "updateWorkNew4", params)
  13269. .then((res) => {
  13270. this.isUpdateToolDetail1 = false;
  13271. this.$message({
  13272. message: "修改成功",
  13273. type: "success",
  13274. });
  13275. this.toolDetailIndex = null;
  13276. this.updateToolDetailInner = "";
  13277. this.getCourseDetail(2);
  13278. this.$forceUpdate();
  13279. })
  13280. .catch((err) => {
  13281. console.error(err);
  13282. });
  13283. } else if((this.isUpdateToolDetail1 && type == 2)){
  13284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13285. this.taskCount
  13286. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13287. JSON.stringify(this.updateToolDetailInner)
  13288. );
  13289. let params = [
  13290. {
  13291. cid: this.id,
  13292. chapters: JSON.stringify(this.chapInfoList),
  13293. uid: this.userid,
  13294. unitIndex: this.courseType,
  13295. },
  13296. ];
  13297. this.ajax
  13298. .post(this.$store.state.api + "updateWorkNew4", params)
  13299. .then((res) => {
  13300. this.$message({
  13301. message: "修改成功",
  13302. type: "success",
  13303. });
  13304. this.toolDetailIndex = i;
  13305. this.isUpdateToolDetail1 = true;
  13306. setTimeout(() => {
  13307. this.updateToolDetailInner = JSON.parse(
  13308. JSON.stringify(
  13309. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13310. this.taskCount
  13311. ].toolChoose[i].toolDetail
  13312. )
  13313. );
  13314. document.querySelector(".checkTextArea").focus();
  13315. }, 0);
  13316. this.getCourseDetail(2);
  13317. this.$forceUpdate();
  13318. })
  13319. .catch((err) => {
  13320. console.error(err);
  13321. });
  13322. }
  13323. },
  13324. jumpGj(i, j, k, l) {
  13325. for (var z = 0; z < this.navList.length; z++) {
  13326. for (var q = 0; q < this.navList[z].task.length; q++) {
  13327. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13328. this.navList[z].task[q].tool[w].isTool = false;
  13329. }
  13330. }
  13331. }
  13332. this.navList[i].task[j].tool[k].isTool =
  13333. !this.navList[i].task[j].tool[k].isTool;
  13334. var a = document.scrollingElement;
  13335. this.navId = ""
  13336. let target = document.querySelector(`#gj${k}`);
  13337. if (target) {
  13338. // target.scrollIntoView(true);
  13339. // setTimeout(() => {
  13340. // a.scrollTop = a.scrollTop - 150;
  13341. // }, 0);
  13342. target.scrollIntoView();
  13343. setTimeout(()=>{
  13344. let scrollBody = document.querySelector('.body_student').parentElement
  13345. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13346. }, 0);
  13347. }
  13348. let flag = this.courseType == i;
  13349. let flag2 = this.taskCount == j
  13350. if (l) {
  13351. this.courseType = i;
  13352. // this.navId = l;
  13353. this.taskCount = j;
  13354. this.selectPz();
  13355. this.getHomeWork();
  13356. this.getCourseDetail(2);
  13357. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13358. if(flag){
  13359. if(flag2){
  13360. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13361. }else{
  13362. 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>`)
  13363. }
  13364. }else{
  13365. 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>`)
  13366. }
  13367. }
  13368. if ((this.courseDetail.userid == this.userid ||
  13369. (this.courseDetail.course_teacher &&
  13370. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  13371. this.IsFollow) {
  13372. this.setCTask();
  13373. }
  13374. // var b = this.$refs["bz" + k][0];
  13375. // a.scrollTop = b.offsetTop;
  13376. },
  13377. addTools2(i) {
  13378. if (i == 4) {
  13379. // this.openTools2(4);
  13380. this.$message.error("暂未开放");
  13381. return;
  13382. }
  13383. if (i == 45) {
  13384. // this.openTools2(45);
  13385. this.$message.error("暂未开放");
  13386. return;
  13387. }
  13388. if (i == 47) {
  13389. // this.openTools2(47);
  13390. this.$message.error("暂未开放");
  13391. return;
  13392. }
  13393. if (i == 49) {
  13394. // this.openTools2(49);
  13395. this.$message.error("暂未开放");
  13396. return;
  13397. }
  13398. if (i == 62) {
  13399. // this.openTools(itemTaskIndex, 62, toolIndex);
  13400. this.$message.error("暂未开放");
  13401. return;
  13402. }
  13403. if (i == 15) {
  13404. // this.openTools(itemTaskIndex, 15, toolIndex);
  13405. this.$message.error("暂未开放");
  13406. return;
  13407. }
  13408. if (i == 40) {
  13409. // this.openTools(itemTaskIndex, 40, toolIndex);
  13410. this.$message.error("暂未开放");
  13411. return;
  13412. }
  13413. if (i == 41) {
  13414. // this.openTools(itemTaskIndex, 41, toolIndex);
  13415. this.$message.error("暂未开放");
  13416. return;
  13417. }
  13418. if (i == 42) {
  13419. // this.openTools(itemTaskIndex, 42, toolIndex);
  13420. this.$message.error("暂未开放");
  13421. return;
  13422. }
  13423. if (this.checktoolArray.length > 0) {
  13424. if (this.checktoolArray.indexOf(i) != -1) {
  13425. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13426. } else {
  13427. this.checktoolArray = [];
  13428. this.checktoolArray.push(i);
  13429. }
  13430. } else {
  13431. this.checktoolArray.push(i);
  13432. }
  13433. this.$forceUpdate();
  13434. },
  13435. jump() {
  13436. window.topU.postMessage({ tools: "43" }, "*");
  13437. },
  13438. getUpdateMore(f, checkboxList, searchTN, index) {
  13439. this.dialogVisibleMember = f;
  13440. this.checkboxList = checkboxList;
  13441. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13442. this.plIndex = index;
  13443. },
  13444. setPlname(a) {
  13445. if (this.plworkFile.length) {
  13446. this.plworkFile[this.plIndex].username = a;
  13447. } else {
  13448. this.worksSName = a;
  13449. }
  13450. this.dialogVisibleMember = false;
  13451. },
  13452. previewImg(url,w=null) {
  13453. this.$hevueImgPreview(url);
  13454. if(w){
  13455. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13456. }
  13457. },
  13458. checkImg(list) {
  13459. if (!list.length) {
  13460. return;
  13461. }
  13462. this.$hevueImgPreview({
  13463. multiple: true, // 开启多图预览模式
  13464. imgList: list, // 需要预览的多图数组
  13465. });
  13466. },
  13467. change(val) {
  13468. console.log(val);
  13469. },
  13470. goTo(path) {
  13471. this.$router.push(path);
  13472. },
  13473. handlePictureCardPreview(url) {
  13474. this.dialogImageUrl = url;
  13475. this.pictureDialog = true;
  13476. },
  13477. clean(type) {
  13478. if (type == 1) {
  13479. this.studyJuri[0].cover.splice(0, 1);
  13480. } else if (type == 2) {
  13481. this.studyJuri[0].upVedio.splice(0, 1);
  13482. } else {
  13483. this.studyJuri[0].upFile.splice(0, 1);
  13484. }
  13485. },
  13486. clean2(index) {
  13487. this.plworkFile.splice(index, 1);
  13488. },
  13489. handleClose(done) {
  13490. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13491. this.videoDetail.sources[0].src = "";
  13492. }
  13493. this.commentIndexJson = {};
  13494. done();
  13495. },
  13496. fullTools() {
  13497. this.full = !this.full;
  13498. },
  13499. imgChange(file, fileList, type) {
  13500. if (type == 1) {
  13501. var _tmp = this.studyJuri[0].cover;
  13502. } else if (type == 2) {
  13503. var _tmp = this.studyJuri[0].upVedio;
  13504. } else {
  13505. var _tmp = this.studyJuri[0].upFile;
  13506. }
  13507. this.noneBtnImg = _tmp.length >= 1;
  13508. },
  13509. setContent(bool) {
  13510. this.contentDialog = bool;
  13511. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13512. document.querySelector(".workd_media").style.height = "650px";
  13513. } else if (document.querySelector(".workd_media")) {
  13514. document.querySelector(".workd_media").style.height = "auto";
  13515. }
  13516. },
  13517. setContent2(bool) {
  13518. this.mlDialog = bool;
  13519. if (
  13520. bool &&
  13521. this.contentDialog &&
  13522. document.querySelector(".workd_media")
  13523. ) {
  13524. document.querySelector(".workd_media").style.height = "650px";
  13525. } else if (document.querySelector(".workd_media")) {
  13526. document.querySelector(".workd_media").style.height = "auto";
  13527. }
  13528. this.$forceUpdate();
  13529. },
  13530. openToolAll() {
  13531. this.toolDialogVisible = true;
  13532. },
  13533. addImg(e) {
  13534. var el = e.currentTarget;
  13535. // this.$message.success('触发上传')
  13536. el.getElementsByTagName("input")[0].click();
  13537. e.target.value = "";
  13538. },
  13539. addSelectAnswer() {
  13540. let params = [
  13541. {
  13542. uid: this.userid,
  13543. cid: this.id,
  13544. stage: this.courseType,
  13545. task: this.taskCount,
  13546. tool: this.toolindex,
  13547. content: this.selectAnswer.answer,
  13548. type: 7,
  13549. },
  13550. ];
  13551. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13552. this.homeWorkLoading = true
  13553. this.ajax
  13554. .post(this.$store.state.api + "addCourseWorks", params)
  13555. .then((res) => {
  13556. this.$message({
  13557. message: "提交成功",
  13558. type: "success",
  13559. });
  13560. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13561. setTimeout(() => {
  13562. this.homeWorkLoading = false
  13563. }, 500);
  13564. this.dialogVisibleSelect = false;
  13565. // this.selectAnswer = {};
  13566. this.selectSWorks();
  13567. this.selectStudent();
  13568. })
  13569. .catch((err) => {
  13570. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13571. setTimeout(() => {
  13572. this.homeWorkLoading = false
  13573. }, 500);
  13574. this.$message.error("提交失败");
  13575. console.error(err);
  13576. });
  13577. },
  13578. addSelectAnswerTeacher() {
  13579. let params = [
  13580. {
  13581. uid: this.sStudent.userid,
  13582. cid: this.id,
  13583. stage: this.courseType,
  13584. task: this.taskCount,
  13585. tool: this.toolindex,
  13586. content: this.selectAnswer.answer,
  13587. type: 7,
  13588. },
  13589. ];
  13590. this.ajax
  13591. .post(this.$store.state.api + "addCourseWorks", params)
  13592. .then((res) => {
  13593. this.$message({
  13594. message: "提交成功",
  13595. type: "success",
  13596. });
  13597. this.dialogVisibleSelectTeacher = false;
  13598. // this.selectAnswer = {};
  13599. this.selectSWorks();
  13600. this.selectStudent();
  13601. })
  13602. .catch((err) => {
  13603. this.$message.error("提交失败");
  13604. console.error(err);
  13605. });
  13606. },
  13607. addSenWorks() {
  13608. for (var i = 0; i < this.sentenceList.length; i++) {
  13609. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13610. if (
  13611. this.sentenceList[i].chooseSenList[j] == undefined ||
  13612. this.sentenceList[i].chooseSenList[j] == ""
  13613. ) {
  13614. this.$message.error("请将答案填写完整!");
  13615. return;
  13616. }
  13617. }
  13618. }
  13619. let params = [
  13620. {
  13621. uid: this.userid,
  13622. cid: this.id,
  13623. stage: this.courseType,
  13624. task: this.taskCount,
  13625. tool: this.toolindex,
  13626. content: JSON.stringify(this.sentenceList),
  13627. type: 9,
  13628. },
  13629. ];
  13630. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13631. this.homeWorkLoading = true
  13632. this.ajax
  13633. .post(this.$store.state.api + "addCourseWorks", params)
  13634. .then((res) => {
  13635. this.$message({
  13636. message: "提交成功",
  13637. type: "success",
  13638. });
  13639. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13640. setTimeout(() => {
  13641. this.homeWorkLoading = false
  13642. }, 500);
  13643. this.dialogVisibleSentence = false;
  13644. // this.selectAnswer = {};
  13645. this.selectSWorks();
  13646. this.selectStudent();
  13647. })
  13648. .catch((err) => {
  13649. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13650. setTimeout(() => {
  13651. this.homeWorkLoading = false
  13652. }, 500);
  13653. this.$message.error("提交失败");
  13654. console.error(err);
  13655. });
  13656. },
  13657. addSenWorksTeacher() {
  13658. for (var i = 0; i < this.sentenceList.length; i++) {
  13659. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13660. if (
  13661. this.sentenceList[i].chooseSenList[j] == undefined ||
  13662. this.sentenceList[i].chooseSenList[j] == ""
  13663. ) {
  13664. this.$message.error("请将答案填写完整!");
  13665. return;
  13666. }
  13667. }
  13668. }
  13669. let params = [
  13670. {
  13671. uid: this.sStudent.userid,
  13672. cid: this.id,
  13673. stage: this.courseType,
  13674. task: this.taskCount,
  13675. tool: this.toolindex,
  13676. content: JSON.stringify(this.sentenceList),
  13677. type: 9,
  13678. },
  13679. ];
  13680. this.ajax
  13681. .post(this.$store.state.api + "addCourseWorks", params)
  13682. .then((res) => {
  13683. this.$message({
  13684. message: "提交成功",
  13685. type: "success",
  13686. });
  13687. this.dialogVisibleSentenceTeacher = false;
  13688. // this.selectAnswer = {};
  13689. this.selectSWorks();
  13690. this.selectStudent();
  13691. })
  13692. .catch((err) => {
  13693. this.$message.error("提交失败");
  13694. console.error(err);
  13695. });
  13696. },
  13697. returnTableText() {
  13698. this.$confirm("确定还原此模板吗?", "提示", {
  13699. confirmButtonText: "确定",
  13700. cancelButtonText: "取消",
  13701. type: "warning",
  13702. })
  13703. .then(() => {
  13704. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13705. })
  13706. .catch(() => {});
  13707. },
  13708. addTableWorks() {
  13709. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13710. this.homeWorkLoading = true
  13711. let params = [
  13712. {
  13713. uid: this.userid,
  13714. cid: this.id,
  13715. stage: this.courseType,
  13716. task: this.taskCount,
  13717. tool: this.toolindex,
  13718. content: JSON.stringify(this.tableJson),
  13719. type: 10,
  13720. },
  13721. ];
  13722. this.ajax
  13723. .post(this.$store.state.api + "addCourseWorks", params)
  13724. .then((res) => {
  13725. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13726. this.$message({
  13727. message: "提交成功",
  13728. type: "success",
  13729. });
  13730. this.dialogVisibleTable = false;
  13731. setTimeout(() => {
  13732. this.homeWorkLoading = false
  13733. }, 500);
  13734. // this.selectAnswer = {};
  13735. this.selectSWorks();
  13736. this.selectStudent();
  13737. })
  13738. .catch((err) => {
  13739. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13740. setTimeout(() => {
  13741. this.homeWorkLoading = false
  13742. }, 500);
  13743. this.$message.error("提交失败");
  13744. console.error(err);
  13745. });
  13746. },
  13747. tableRowClassName({ row, rowIndex }) {
  13748. if ((rowIndex + 1) % 2 === 0) {
  13749. return "even_row";
  13750. } else {
  13751. return "";
  13752. }
  13753. },
  13754. addTableWorksTeacher() {
  13755. let params = [
  13756. {
  13757. uid: this.sStudent.userid,
  13758. cid: this.id,
  13759. stage: this.courseType,
  13760. task: this.taskCount,
  13761. tool: this.toolindex,
  13762. content: JSON.stringify(this.tableJson),
  13763. type: 10,
  13764. },
  13765. ];
  13766. this.ajax
  13767. .post(this.$store.state.api + "addCourseWorks", params)
  13768. .then((res) => {
  13769. this.$message({
  13770. message: "提交成功",
  13771. type: "success",
  13772. });
  13773. this.dialogVisibleTableTeacher = false;
  13774. // this.selectAnswer = {};
  13775. this.selectSWorks();
  13776. this.selectStudent();
  13777. })
  13778. .catch((err) => {
  13779. this.$message.error("提交失败");
  13780. console.error(err);
  13781. });
  13782. },
  13783. returnWordText() {
  13784. this.$confirm("确定还原此模板吗?", "提示", {
  13785. confirmButtonText: "确定",
  13786. cancelButtonText: "取消",
  13787. type: "warning",
  13788. })
  13789. .then(() => {
  13790. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13791. })
  13792. .catch(() => {});
  13793. },
  13794. addWordWorks() {
  13795. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13796. this.homeWorkLoading = true
  13797. let params = [
  13798. {
  13799. uid: this.userid,
  13800. cid: this.id,
  13801. stage: this.courseType,
  13802. task: this.taskCount,
  13803. tool: this.toolindex,
  13804. content: JSON.stringify(this.wordJson),
  13805. type: 13,
  13806. atool: 52,
  13807. },
  13808. ];
  13809. this.ajax
  13810. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13811. .then((res) => {
  13812. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13813. this.$message({
  13814. message: "提交成功",
  13815. type: "success",
  13816. });
  13817. this.dialogVisibleWord = false;
  13818. setTimeout(() => {
  13819. this.homeWorkLoading = false
  13820. }, 500);
  13821. // this.selectAnswer = {};
  13822. this.selectSWorks();
  13823. this.selectStudent();
  13824. })
  13825. .catch((err) => {
  13826. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13827. setTimeout(() => {
  13828. this.homeWorkLoading = false
  13829. }, 500);
  13830. this.$message.error("提交失败");
  13831. console.error(err);
  13832. });
  13833. },
  13834. addWordWorksTeacher() {
  13835. let params = [
  13836. {
  13837. uid: this.sStudent.userid,
  13838. cid: this.id,
  13839. stage: this.courseType,
  13840. task: this.taskCount,
  13841. tool: this.toolindex,
  13842. content: JSON.stringify(this.wordJson),
  13843. type: 13,
  13844. atool: 52,
  13845. },
  13846. ];
  13847. this.ajax
  13848. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13849. .then((res) => {
  13850. this.$message({
  13851. message: "提交成功",
  13852. type: "success",
  13853. });
  13854. this.dialogVisibleWordTeacher = false;
  13855. // this.selectAnswer = {};
  13856. this.selectSWorks();
  13857. this.selectStudent();
  13858. })
  13859. .catch((err) => {
  13860. this.$message.error("提交失败");
  13861. console.error(err);
  13862. });
  13863. },
  13864. addCourseWorks(i) {
  13865. var typesql;
  13866. if (this.fileType === 0) {
  13867. typesql = 1;
  13868. } else if (this.fileType === 1) {
  13869. typesql = 4;
  13870. } else if (this.fileType === 2) {
  13871. typesql = 5;
  13872. } else if (this.fileType === 3) {
  13873. typesql = 12;
  13874. }
  13875. if (!this.studyJuri[0].cover[0].url) {
  13876. this.$message.error("请上传文件");
  13877. return;
  13878. }
  13879. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13880. this.homeWorkLoading = true
  13881. let params = [
  13882. {
  13883. uid: this.userid,
  13884. cid: this.id,
  13885. stage: this.courseType,
  13886. task: i,
  13887. tool: this.toolindex,
  13888. content: this.studyJuri[0].cover[0].url,
  13889. type: typesql,
  13890. },
  13891. ];
  13892. this.ajax
  13893. .post(this.$store.state.api + "addCourseWorksR", params)
  13894. .then((res) => {
  13895. this.$message({
  13896. message: "提交成功",
  13897. type: "success",
  13898. });
  13899. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13900. setTimeout(() => {
  13901. this.homeWorkLoading = false
  13902. }, 500);
  13903. this.studyJuri[0].cover = [];
  13904. this.dialogVisible = false;
  13905. this.getCourseDetail(2);
  13906. })
  13907. .catch((err) => {
  13908. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13909. setTimeout(() => {
  13910. this.homeWorkLoading = false
  13911. }, 500);
  13912. this.$message.error("提交失败");
  13913. console.error(err);
  13914. });
  13915. },
  13916. addCourseWorksPl(i) {
  13917. let _files = this.plworkFile;
  13918. var c = 1;
  13919. for (var k = 0; k < _files.length; k++) {
  13920. if (!_files[k].username) {
  13921. c = 2;
  13922. }
  13923. }
  13924. if (c == 2) {
  13925. this.$message.error("请填写学生姓名");
  13926. return;
  13927. }
  13928. let params = [
  13929. {
  13930. ateacher: this.userid,
  13931. cid: this.id,
  13932. stage: this.courseType,
  13933. task: i,
  13934. tool: this.toolindex,
  13935. content: JSON.stringify(_files),
  13936. },
  13937. ];
  13938. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13939. this.homeWorkLoading = true
  13940. this.ajax
  13941. .post(this.$store.state.api + "addCourseWorksPl", params)
  13942. .then((res) => {
  13943. this.$message({
  13944. message: "提交成功",
  13945. type: "success",
  13946. });
  13947. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13948. setTimeout(() => {
  13949. this.homeWorkLoading = false
  13950. }, 500);
  13951. this.plworkFile = [];
  13952. this.dialogVisiblePl = false;
  13953. this.getCourseDetail(2);
  13954. })
  13955. .catch((err) => {
  13956. this.$message.error("提交失败");
  13957. setTimeout(() => {
  13958. this.homeWorkLoading = false
  13959. }, 500);
  13960. console.error(err);
  13961. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13962. });
  13963. },
  13964. addCourseWorks2(i) {
  13965. var typesql;
  13966. if (this.fileType === 0) {
  13967. typesql = 0;
  13968. } else if (this.fileType === 1) {
  13969. typesql = 1;
  13970. } else if (this.fileType === 2) {
  13971. typesql = 3;
  13972. } else if (this.fileType === 3) {
  13973. typesql = 12;
  13974. }
  13975. if (!this.studyJuri[0].cover[0].url) {
  13976. this.$message.error("请上传文件");
  13977. return;
  13978. }
  13979. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13980. this.homeWorkLoading = true
  13981. let params = [
  13982. {
  13983. uid: this.userid,
  13984. cid: this.id,
  13985. stage: this.courseType,
  13986. task: i,
  13987. tool: this.toolindex,
  13988. content: JSON.stringify({
  13989. type: typesql,
  13990. groupIndex: this.groupIndex,
  13991. url: this.studyJuri[0].cover[0].url,
  13992. }),
  13993. type: 11,
  13994. atool: 49,
  13995. text: "",
  13996. },
  13997. ];
  13998. this.ajax
  13999. .post(this.$store.state.api + "addCourseWorks5", params)
  14000. .then((res) => {
  14001. this.$message({
  14002. message: "提交成功",
  14003. type: "success",
  14004. });
  14005. setTimeout(() => {
  14006. this.homeWorkLoading = false
  14007. }, 500);
  14008. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14009. type: typesql,
  14010. groupIndex: this.groupIndex,
  14011. url: this.studyJuri[0].cover[0].url,
  14012. }),type: "course_tool_sub" }, "success")
  14013. this.studyJuri[0].cover = [];
  14014. this.dialogVisibleGroupWork = false;
  14015. this.getCourseDetail(2);
  14016. })
  14017. .catch((err) => {
  14018. this.$message.error("提交失败");
  14019. setTimeout(() => {
  14020. this.homeWorkLoading = false
  14021. }, 500);
  14022. console.error(err);
  14023. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14024. type: typesql,
  14025. groupIndex: this.groupIndex,
  14026. url: this.studyJuri[0].cover[0].url,
  14027. }),type: "course_tool_sub" }, err)
  14028. });
  14029. },
  14030. addEnglishWork() {
  14031. this.myAnList = this.$refs['engJson'].myAnswerList;
  14032. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14033. this.$message.error("请输入作文标题和正文!");
  14034. return;
  14035. }
  14036. let params = [
  14037. {
  14038. uid: this.userid,
  14039. cid: this.id,
  14040. stage: this.courseType,
  14041. task: this.taskCount,
  14042. tool: this.englishToolIndex,
  14043. content: JSON.stringify(this.myAnList),
  14044. type: 16,
  14045. atool: 69,
  14046. text: "",
  14047. },
  14048. ];
  14049. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14050. this.homeWorkLoading = true
  14051. this.ajax
  14052. .post(this.$store.state.api + "addCourseWorks5", params)
  14053. .then((res) => {
  14054. this.$message({
  14055. message: "提交成功",
  14056. type: "success",
  14057. });
  14058. setTimeout(() => {
  14059. this.homeWorkLoading = false
  14060. }, 500);
  14061. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14062. data: JSON.stringify(this.myAnList),
  14063. type: "course_tool_sub" }, "success")
  14064. this.myAnList = {};
  14065. this.englishList = {};
  14066. this.englishToolIndex = 0;
  14067. this.engDialogVisible = false;
  14068. this.selectSWorks();
  14069. this.selectStudent();
  14070. })
  14071. .catch((err) => {
  14072. this.$message.error("提交失败");
  14073. console.error(err);
  14074. setTimeout(() => {
  14075. this.homeWorkLoading = false
  14076. }, 500);
  14077. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14078. data: JSON.stringify(this.myAnList),
  14079. type: "course_tool_sub" }, err)
  14080. });
  14081. },
  14082. addCourseWorksGong(i, data, tool) {
  14083. let params = [
  14084. {
  14085. uid: this.userid,
  14086. cid: this.id,
  14087. stage: this.courseType,
  14088. task: this.taskCount,
  14089. tool: i,
  14090. content: data,
  14091. type: 12,
  14092. atool: tool,
  14093. text: "",
  14094. },
  14095. ];
  14096. this.ajax
  14097. .post(this.$store.state.api + "addCourseWorks5", params)
  14098. .then((res) => {
  14099. this.$message({
  14100. message: "提交成功",
  14101. type: "success",
  14102. });
  14103. this.studyJuri[0].cover = [];
  14104. this.selectSWorks();
  14105. this.selectStudent();
  14106. })
  14107. .catch((err) => {
  14108. this.$message.error("提交失败");
  14109. console.error(err);
  14110. });
  14111. },
  14112. addCourseWorksGongTeacher(i, data, tool) {
  14113. let params = [
  14114. {
  14115. uid: this.sStudent.userid,
  14116. cid: this.id,
  14117. stage: this.courseType,
  14118. task: this.taskCount,
  14119. tool: i,
  14120. content: data,
  14121. type: 12,
  14122. atool: tool,
  14123. text: "",
  14124. },
  14125. ];
  14126. this.ajax
  14127. .post(this.$store.state.api + "addCourseWorks5", params)
  14128. .then((res) => {
  14129. this.$message({
  14130. message: "提交成功",
  14131. type: "success",
  14132. });
  14133. this.studyJuri[0].cover = [];
  14134. this.dialogVisibleWorks = false;
  14135. this.selectSWorks();
  14136. this.selectStudent();
  14137. })
  14138. .catch((err) => {
  14139. this.$message.error("提交失败");
  14140. console.error(err);
  14141. });
  14142. },
  14143. addCourseWorksGongPl(i, data, tool, type) {
  14144. let params = [
  14145. {
  14146. uid: this.sStudent.userid,
  14147. cid: this.id,
  14148. stage: this.courseType,
  14149. task: this.taskCount,
  14150. tool: i,
  14151. content: data,
  14152. type: type,
  14153. atool: tool,
  14154. text: "",
  14155. },
  14156. ];
  14157. this.ajax
  14158. .post(this.$store.state.api + "addCourseWorks5", params)
  14159. .then((res) => {
  14160. this.$message({
  14161. message: "提交成功",
  14162. type: "success",
  14163. });
  14164. this.studyJuri[0].cover = [];
  14165. this.dialogVisibleWorks = false;
  14166. this.selectSWorks();
  14167. this.selectStudent();
  14168. })
  14169. .catch((err) => {
  14170. this.$message.error("提交失败");
  14171. console.error(err);
  14172. });
  14173. },
  14174. addCourseWorksTeacher(i) {
  14175. var typesql;
  14176. if (this.sTool == 32) {
  14177. this.addCourseWorksGongTeacher(
  14178. this.toolindex,
  14179. this.studyJuri[0].cover[0].url,
  14180. this.sTool
  14181. );
  14182. return;
  14183. }
  14184. if (this.fileType === 0) {
  14185. typesql = 1;
  14186. } else if (this.fileType === 1) {
  14187. typesql = 4;
  14188. } else if (this.fileType === 2) {
  14189. typesql = 5;
  14190. } else if (this.fileType === 3) {
  14191. typesql = 12;
  14192. }
  14193. if (this.sTool == 50) {
  14194. this.addCourseWorksGongPl(
  14195. this.toolindex,
  14196. this.studyJuri[0].cover[0].url,
  14197. this.sTool,
  14198. typesql
  14199. );
  14200. return;
  14201. }
  14202. if (!this.studyJuri[0].cover[0].url) {
  14203. this.$message.error("请上传文件");
  14204. return;
  14205. }
  14206. let params = [
  14207. {
  14208. uid: this.sStudent.userid,
  14209. cid: this.id,
  14210. stage: this.courseType,
  14211. task: i,
  14212. tool: this.toolindex,
  14213. content: this.studyJuri[0].cover[0].url,
  14214. type: typesql,
  14215. ateacher: this.userid,
  14216. },
  14217. ];
  14218. this.ajax
  14219. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14220. .then((res) => {
  14221. this.$message({
  14222. message: "提交成功",
  14223. type: "success",
  14224. });
  14225. this.studyJuri[0].cover = [];
  14226. this.dialogVisibleWorks = false;
  14227. this.getCourseDetail(2);
  14228. })
  14229. .catch((err) => {
  14230. this.$message.error("提交失败");
  14231. console.error(err);
  14232. });
  14233. },
  14234. selectUploadStudent(type) {
  14235. const loading = this.$loading.service({
  14236. background: "rgba(255, 255, 255, 0.7)",
  14237. target: document.body,
  14238. });
  14239. let params = {
  14240. cid: this.uploadCid,
  14241. oid: this.oid,
  14242. cn: "",
  14243. };
  14244. this.ajax
  14245. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14246. .then((res) => {
  14247. loading.close();
  14248. var studentK = [];
  14249. if (this.isWorksS[this.toolindex].length > 0) {
  14250. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14251. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14252. }
  14253. studentK = studentK.join(",");
  14254. }
  14255. this.uploadStudentJuri = res.data[0].filter((el) => {
  14256. return studentK.indexOf(el.userid) == -1;
  14257. });
  14258. if (this.worksSName && this.worksSid) {
  14259. this.uploadStudentJuri.push({
  14260. userid: this.worksSid,
  14261. name: this.worksSName,
  14262. });
  14263. }
  14264. if (type == 1) {
  14265. this.plworkFile = [];
  14266. this.dialogVisibleSname = true;
  14267. } else if (type == 2) {
  14268. this.dialogVisiblePl = true;
  14269. }
  14270. })
  14271. .catch((err) => {
  14272. loading.close();
  14273. console.error(err);
  14274. });
  14275. },
  14276. selectPickStudent() {
  14277. const loading = this.$loading.service({
  14278. background: "rgba(255, 255, 255, 0.7)",
  14279. target: document.body,
  14280. });
  14281. let params = {
  14282. cid: this.uploadCid,
  14283. oid: this.oid,
  14284. cn: "",
  14285. };
  14286. this.ajax
  14287. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14288. .then((res) => {
  14289. loading.close();
  14290. this.uploadStudentJuri = res.data[0];
  14291. this.dialogVisiblePickPeople = true;
  14292. })
  14293. .catch((err) => {
  14294. loading.close();
  14295. console.error(err);
  14296. });
  14297. },
  14298. arrayToArray(arrayo, arrayt) {
  14299. let array1 = arrayo;
  14300. let array2 = arrayt;
  14301. let commonElements = [];
  14302. for (let i = 0; i < array1.length; i++) {
  14303. for (let j = 0; j < array2.length; j++) {
  14304. if (array1[i] === array2[j]) {
  14305. commonElements.push(array1[i]);
  14306. }
  14307. }
  14308. }
  14309. return commonElements;
  14310. },
  14311. selectWorksStudent() {
  14312. let params = {
  14313. oid: this.oid,
  14314. cid: this.courseDetail.juri,
  14315. };
  14316. this.ajax
  14317. .get(this.$store.state.api + "selectWorksStudent", params)
  14318. .then((res) => {
  14319. var a = res.data[0];
  14320. for (var i = 0; i < this.isWorksS.length; i++) {
  14321. this.noWorksS[i] = [];
  14322. var studentK = [];
  14323. if (this.isWorksS[i].length > 0) {
  14324. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14325. studentK.push(this.isWorksS[i][z].uid);
  14326. }
  14327. studentK = studentK.join(",");
  14328. for (var j = 0; j < a.length; j++) {
  14329. if (studentK.indexOf(a[j].userid) == -1) {
  14330. if (this.tcid) {
  14331. // a[j].classid.indexOf(this.tcid) != -1
  14332. if (
  14333. this.arrayToArray(
  14334. a[j].classid.split(","),
  14335. this.tcid.split(",")
  14336. ).length
  14337. ) {
  14338. this.noWorksS[i].push({
  14339. student: a[j].name,
  14340. userid: a[j].userid,
  14341. });
  14342. }
  14343. } else {
  14344. this.noWorksS[i].push({
  14345. student: a[j].name,
  14346. userid: a[j].userid,
  14347. });
  14348. }
  14349. }
  14350. }
  14351. } else {
  14352. for (var k = 0; k < a.length; k++) {
  14353. if (this.tcid) {
  14354. if (
  14355. this.arrayToArray(
  14356. a[k].classid.split(","),
  14357. this.tcid.split(",")
  14358. ).length
  14359. ) {
  14360. this.noWorksS[i].push({
  14361. student: a[k].name,
  14362. userid: a[k].userid,
  14363. });
  14364. }
  14365. } else {
  14366. this.noWorksS[i].push({
  14367. student: a[k].name,
  14368. userid: a[k].userid,
  14369. });
  14370. }
  14371. }
  14372. }
  14373. }
  14374. this.$forceUpdate();
  14375. if (
  14376. Object.keys(this.commentDetail).length &&
  14377. Object.keys(this.commentIndexJson).length &&
  14378. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14379. ) {
  14380. let a = 1;
  14381. let c = this.commentIndexJson;
  14382. if (
  14383. this.commentIndexJson.gindex ||
  14384. this.commentIndexJson.gindex === 0
  14385. ) {
  14386. for (
  14387. var i = 0;
  14388. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14389. i++
  14390. ) {
  14391. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14392. groupA: for (var k = 0; k < _el.length; k++) {
  14393. let el = _el[k];
  14394. if (el.wid == this.commentDetail.wid) {
  14395. a = 2;
  14396. this.commentOther(
  14397. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14398. this.commentIndexJson.toolIndex,
  14399. k,
  14400. this.commentIndexJson.gindex
  14401. );
  14402. break groupA;
  14403. }
  14404. }
  14405. }
  14406. if (a === 1) {
  14407. this.commentDetail = [];
  14408. this.commentIndexJson = {};
  14409. this.commentDialogVisible = false;
  14410. this.$message("此作业已被删除");
  14411. }
  14412. } else {
  14413. if (this.isGroup && this.commentIndexJson.gid) {
  14414. groupA: for (
  14415. var i = 0;
  14416. i < this.courseGroup.group.length;
  14417. i++
  14418. ) {
  14419. let _group = this.courseGroup.group[i];
  14420. if (_group.id == this.commentIndexJson.gid) {
  14421. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14422. for (var k = 0; k < _el2.length; k++) {
  14423. let el2 = _el2[k];
  14424. if (el2.wid == this.commentDetail.wid) {
  14425. a = 2;
  14426. this.commentOther(
  14427. _el2[k],
  14428. this.commentIndexJson.toolIndex,
  14429. k,
  14430. null,
  14431. this.commentIndexJson.gid
  14432. );
  14433. break groupA;
  14434. }
  14435. }
  14436. }
  14437. }
  14438. }
  14439. if (a == 1) {
  14440. for (
  14441. var i = 0;
  14442. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14443. i++
  14444. ) {
  14445. let el =
  14446. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14447. if (el.wid == this.commentDetail.wid) {
  14448. a = 2;
  14449. this.commentOther(
  14450. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14451. this.commentIndexJson.toolIndex,
  14452. i
  14453. );
  14454. break;
  14455. }
  14456. }
  14457. }
  14458. if (a === 1) {
  14459. this.commentDetail = [];
  14460. this.commentIndexJson = {};
  14461. this.commentDialogVisible = false;
  14462. this.$message("此作业已被删除");
  14463. }
  14464. }
  14465. }
  14466. })
  14467. .catch((err) => {
  14468. console.error(err);
  14469. });
  14470. },
  14471. selectStudent() {
  14472. if(this.selectStudentLoading) return
  14473. this.selectStudentLoading = true
  14474. //学生查看自己作业
  14475. let params = {
  14476. uid: this.userid,
  14477. cid: this.id,
  14478. s: this.courseType,
  14479. t: this.taskCount,
  14480. };
  14481. this.ajax
  14482. .get(this.$store.state.api + "selectStudentWorks", params)
  14483. .then((res) => {
  14484. var a =
  14485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14486. this.taskCount
  14487. ].toolChoose;
  14488. var b = res.data[0];
  14489. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14490. var y = [
  14491. "AVI",
  14492. "NAVI",
  14493. "MPEG",
  14494. "ASF",
  14495. "MOV",
  14496. "WMV",
  14497. "3GP",
  14498. "RM",
  14499. "RMVB",
  14500. "FLV",
  14501. "F4V",
  14502. "H.264",
  14503. "H.265",
  14504. "REAL VIDEO",
  14505. "MKV",
  14506. "WebM",
  14507. "HDDVD",
  14508. "MP4",
  14509. "MPG",
  14510. "M4V",
  14511. "MGV",
  14512. "OGV",
  14513. "QTM",
  14514. "STR",
  14515. "AMC",
  14516. "DVX",
  14517. "EVO",
  14518. "DAT",
  14519. "OGG",
  14520. "OGM",
  14521. ];
  14522. for (var i = 0; i < a.length; i++) {
  14523. this.workStudent[i] = [];
  14524. for (var j = 0; j < b.length; j++) {
  14525. if (i == b[j].tool) {
  14526. if (
  14527. (b[j].type == 1 ||
  14528. b[j].type == 4 ||
  14529. b[j].type == 5 ||
  14530. b[j].type == 6 ||
  14531. b[j].type == 12 ||
  14532. b[j].type == 7) &&
  14533. a[i].tool[0] != 15 &&
  14534. a[i].tool[0] != 4 &&
  14535. a[i].tool[0] != 45 &&
  14536. a[i].tool[0] != 50 &&
  14537. a[i].tool[0] != 32 &&
  14538. a[i].tool[0] != 57 &&
  14539. a[i].tool[0] != 52 &&
  14540. a[i].tool[0] != 69
  14541. ) {
  14542. if (
  14543. c.indexOf(
  14544. b[j].content
  14545. .split(".")
  14546. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14547. ) != -1 &&
  14548. a[i].tool[0] == 16 &&
  14549. b[j].atool != 50
  14550. ) {
  14551. this.workStudent[i].push({
  14552. works: b[j].content,
  14553. sName: b[j].name,
  14554. score: b[j].score,
  14555. img: b[j].img,
  14556. type: 1,
  14557. time: b[j].time,
  14558. userid: b[j].userid,
  14559. wid: b[j].id,
  14560. });
  14561. } else if (
  14562. y.indexOf(
  14563. b[j].content
  14564. .split(".")
  14565. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14566. ) != -1 &&
  14567. a[i].tool[0] == 16 &&
  14568. b[j].atool != 50
  14569. ) {
  14570. this.workStudent[i].push({
  14571. userid: b[j].userid,
  14572. wid: b[j].id,
  14573. works: b[j].content,
  14574. sName: b[j].name,
  14575. score: b[j].score,
  14576. img: b[j].img,
  14577. type: 3,
  14578. time: b[j].time,
  14579. });
  14580. } else if (b[j].type == 6 && b[j].atool != 50) {
  14581. this.workStudent[i].push({
  14582. userid: b[j].userid,
  14583. wid: b[j].id,
  14584. works: b[j].content,
  14585. sName: b[j].name,
  14586. score: b[j].score,
  14587. img: b[j].img,
  14588. type: 4,
  14589. time: b[j].time,
  14590. });
  14591. } else if (b[j].type == 7 && b[j].atool != 50) {
  14592. this.workStudent[i].push({
  14593. userid: b[j].userid,
  14594. wid: b[j].id,
  14595. works: b[j].content,
  14596. sName: b[j].name,
  14597. score: b[j].score,
  14598. img: b[j].img,
  14599. type: 5,
  14600. time: b[j].time,
  14601. });
  14602. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14603. this.workStudent[i].push({
  14604. works: b[j].content,
  14605. sName: b[j].name,
  14606. score: b[j].score,
  14607. img: b[j].img,
  14608. type: 12,
  14609. time: b[j].time,
  14610. userid: b[j].userid,
  14611. wid: b[j].id,
  14612. });
  14613. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14614. this.workStudent[i].push({
  14615. works: b[j].content,
  14616. sName: b[j].name,
  14617. score: b[j].score,
  14618. img: b[j].img,
  14619. type: 0,
  14620. time: b[j].time,
  14621. userid: b[j].userid,
  14622. wid: b[j].id,
  14623. });
  14624. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14625. this.workStudent[i].push({
  14626. works: b[j].content,
  14627. sName: b[j].name,
  14628. score: b[j].score,
  14629. img: b[j].img,
  14630. type: 0,
  14631. time: b[j].time,
  14632. userid: b[j].userid,
  14633. wid: b[j].id,
  14634. });
  14635. }
  14636. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14637. this.workStudent[i].push({
  14638. works: b[j].content,
  14639. sName: b[j].name,
  14640. score: b[j].score,
  14641. img: b[j].img,
  14642. type: 2,
  14643. time: b[j].time,
  14644. userid: b[j].userid,
  14645. wid: b[j].id,
  14646. });
  14647. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14648. this.workStudent[i].push({
  14649. works: b[j].content,
  14650. sName: b[j].name,
  14651. score: b[j].score,
  14652. img: b[j].img,
  14653. type: 20,
  14654. time: b[j].time,
  14655. userid: b[j].userid,
  14656. wid: b[j].id,
  14657. });
  14658. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14659. //问卷
  14660. this.workStudent[i].push({
  14661. works: b[j].content,
  14662. sName: b[j].name,
  14663. score: b[j].score,
  14664. img: b[j].img,
  14665. type: 2,
  14666. time: b[j].time,
  14667. userid: b[j].userid,
  14668. wid: b[j].id,
  14669. });
  14670. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14671. //选择题
  14672. this.workStudent[i].push({
  14673. works: b[j].content,
  14674. sName: b[j].name,
  14675. score: b[j].score,
  14676. img: b[j].img,
  14677. type: 8,
  14678. time: b[j].time,
  14679. userid: b[j].userid,
  14680. wid: b[j].id,
  14681. });
  14682. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14683. //选择题
  14684. this.workStudent[i].push({
  14685. works: b[j].content,
  14686. sName: b[j].name,
  14687. score: b[j].score,
  14688. img: b[j].img,
  14689. type: 9,
  14690. time: b[j].time,
  14691. userid: b[j].userid,
  14692. wid: b[j].id,
  14693. });
  14694. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14695. //选择题
  14696. this.workStudent[i].push({
  14697. works: b[j].content,
  14698. sName: b[j].name,
  14699. score: b[j].score,
  14700. img: b[j].img,
  14701. type: 10,
  14702. time: b[j].time,
  14703. userid: b[j].userid,
  14704. wid: b[j].id,
  14705. });
  14706. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14707. //选择题
  14708. this.workStudent[i].push({
  14709. works: b[j].content,
  14710. sName: b[j].name,
  14711. score: b[j].score,
  14712. img: b[j].img,
  14713. type: 13,
  14714. time: b[j].time,
  14715. userid: b[j].userid,
  14716. wid: b[j].id,
  14717. });
  14718. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14719. //选择题
  14720. this.workStudent[i].push({
  14721. works: b[j].content,
  14722. sName: b[j].name,
  14723. score: b[j].score,
  14724. img: b[j].img,
  14725. type: 12,
  14726. time: b[j].time,
  14727. userid: b[j].userid,
  14728. wid: b[j].id,
  14729. });
  14730. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14731. //选择题
  14732. this.workStudent[i].push({
  14733. works: b[j].content,
  14734. sName: b[j].name,
  14735. score: b[j].score,
  14736. img: b[j].img,
  14737. type: 12,
  14738. time: b[j].time,
  14739. userid: b[j].userid,
  14740. wid: b[j].id,
  14741. });
  14742. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14743. //选择题
  14744. this.workStudent[i].push({
  14745. works: b[j].content,
  14746. sName: b[j].name,
  14747. score: b[j].score,
  14748. img: b[j].img,
  14749. type: 15,
  14750. time: b[j].time,
  14751. userid: b[j].userid,
  14752. wid: b[j].id,
  14753. });
  14754. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14755. //英语写作
  14756. this.workStudent[i].push({
  14757. works: b[j].content,
  14758. sName: b[j].name,
  14759. score: b[j].score,
  14760. img: b[j].img,
  14761. type: 16,
  14762. time: b[j].time,
  14763. userid: b[j].userid,
  14764. wid: b[j].id,
  14765. aiCode: b[j].aiCode,
  14766. teacherCode: b[j].teacherCode
  14767. });
  14768. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14769. //英语口语
  14770. this.workStudent[i].push({
  14771. works: b[j].content,
  14772. sName: b[j].name,
  14773. score: b[j].score,
  14774. img: b[j].img,
  14775. type: 17,
  14776. time: b[j].time,
  14777. userid: b[j].userid,
  14778. wid: b[j].id,
  14779. });
  14780. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14781. //英语口语
  14782. this.workStudent[i].push({
  14783. works: b[j].content,
  14784. sName: b[j].name,
  14785. score: b[j].score,
  14786. img: b[j].img,
  14787. type: 14,
  14788. time: b[j].time,
  14789. userid: b[j].userid,
  14790. wid: b[j].id,
  14791. });
  14792. }
  14793. }
  14794. }
  14795. }
  14796. this.selectStudentLoading = false
  14797. })
  14798. .catch((err) => {
  14799. this.selectStudentLoading = false
  14800. console.error(err);
  14801. });
  14802. },
  14803. openVideo(w) {
  14804. this.videoDetail = {};
  14805. this.playerOptions1.sources[0].src = w.works;
  14806. this.videoDetail = this.playerOptions1;
  14807. this.videoVisible = true;
  14808. },
  14809. isLikes(wid, uid, t, c, isLikes,sName) {
  14810. if (isLikes == false) {
  14811. let params = [
  14812. {
  14813. wid: wid,
  14814. lid: uid,
  14815. t: t,
  14816. c: c,
  14817. },
  14818. ];
  14819. this.ajax
  14820. .post(this.$store.state.api + "insertComment", params)
  14821. .then((res) => {
  14822. this.$message({
  14823. message: "点赞成功",
  14824. type: "success",
  14825. });
  14826. this.selectSWorks();
  14827. this.selectStudent();
  14828. if(this.tType==1){
  14829. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14830. }
  14831. })
  14832. .catch((err) => {
  14833. this.$message.error("点赞失败");
  14834. console.error(err);
  14835. });
  14836. } else {
  14837. let params = {
  14838. wid: wid,
  14839. lid: uid,
  14840. type: t,
  14841. };
  14842. this.ajax
  14843. .get(this.$store.state.api + "deleteComment", params)
  14844. .then((res) => {
  14845. this.$message({
  14846. message: "取消点赞成功",
  14847. type: "success",
  14848. });
  14849. this.selectSWorks();
  14850. this.selectStudent();
  14851. })
  14852. .catch((err) => {
  14853. console.error(err);
  14854. });
  14855. }
  14856. },
  14857. deleteComment(wid) {
  14858. this.$confirm("确定删除此评论吗?", "提示", {
  14859. confirmButtonText: "确定",
  14860. cancelButtonText: "取消",
  14861. type: "warning",
  14862. })
  14863. .then(() => {
  14864. let params = {
  14865. id: wid,
  14866. };
  14867. this.ajax
  14868. .get(this.$store.state.api + "deleteComment2", params)
  14869. .then((res) => {
  14870. this.$message({
  14871. message: "删除评论成功",
  14872. type: "success",
  14873. });
  14874. this.selectSWorks();
  14875. this.selectStudent();
  14876. })
  14877. .catch((err) => {
  14878. console.error(err);
  14879. });
  14880. })
  14881. .catch(() => {});
  14882. },
  14883. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14884. this.commentIndexJson = {
  14885. toolIndex: toolIndex,
  14886. wIndex: wIndex,
  14887. gindex: gindex,
  14888. gid: gid,
  14889. };
  14890. this.commentDetail = [];
  14891. this.commentDialogVisible = true;
  14892. this.commentDetail = w;
  14893. if (w.works && w.type == 1) {
  14894. // this.pptImgUrl = "";
  14895. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14896. if (
  14897. a.indexOf(
  14898. w.works
  14899. .split(".")
  14900. [w.works.split(".").length - 1].toLocaleUpperCase()
  14901. ) != -1
  14902. ) {
  14903. let _uuurl = await this.checkLink(w.works);
  14904. this.pptImgUrl =
  14905. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14906. this.showPDF = false;
  14907. } else if (
  14908. w.works
  14909. .split(".")
  14910. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14911. ) {
  14912. this.pptImgUrl = w.works;
  14913. this.showPDF = true;
  14914. }
  14915. } else if (w.works && w.type == 3) {
  14916. this.videoDetail = {};
  14917. this.playerOptions1.sources[0].src = w.works;
  14918. this.videoDetail = this.playerOptions1;
  14919. // this.videoVisible = true;
  14920. } else if (w.works && w.type == 4) {
  14921. this.eScore = JSON.parse(w.works);
  14922. this.rateJson =
  14923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14924. this.taskCount
  14925. ].toolChoose[toolIndex].rateJson;
  14926. } else if (w.works && w.type == 10) {
  14927. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14928. } else if (w.works && w.type == 13) {
  14929. this.wordJson =
  14930. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14931. this.taskCount
  14932. ].toolChoose[toolIndex].wordJson;
  14933. }
  14934. },
  14935. async openScore(w, index) {
  14936. this.wScore = 0;
  14937. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14938. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14939. this.commentDetail = [];
  14940. if(w.type == 17){
  14941. this.dialogVisibleENScore = true;
  14942. }else{
  14943. this.dialogVisibleScore = true;
  14944. }
  14945. this.commentDetail = w;
  14946. if (w.works && w.type == 1) {
  14947. this.pptImgUrl = "";
  14948. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14949. if (
  14950. a.indexOf(
  14951. w.works
  14952. .split(".")
  14953. [w.works.split(".").length - 1].toLocaleUpperCase()
  14954. ) != -1
  14955. ) {
  14956. let _uuurl = await this.checkLink(w.works);
  14957. this.pptImgUrl =
  14958. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14959. this.showPDF = false;
  14960. } else if (
  14961. w.works
  14962. .split(".")
  14963. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14964. ) {
  14965. this.pptImgUrl = w.works;
  14966. this.showPDF = true;
  14967. }
  14968. } else if (w.works && w.type == 3) {
  14969. this.videoDetail = {};
  14970. this.playerOptions1.sources[0].src = w.works;
  14971. this.videoDetail = this.playerOptions1;
  14972. }else if(w.type == 17){
  14973. let englishVoiceJson = {}
  14974. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14975. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14976. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14977. .toolChoose[index].englishVoiceJson
  14978. : {};
  14979. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14980. }
  14981. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14982. },
  14983. addComment(wid, uid, t,detail) {
  14984. if (this.commentText == "") {
  14985. this.$message.error("请输入评论");
  14986. return;
  14987. }
  14988. let params2 = [
  14989. {
  14990. wid: wid,
  14991. lid: uid,
  14992. t: t,
  14993. },
  14994. ];
  14995. this.ajax
  14996. .post(this.$store.state.api + "getComment", params2)
  14997. .then((res) => {
  14998. if (res.data[0].length > 0) {
  14999. this.$message.error("一个作业只能评论一条");
  15000. } else {
  15001. let params = [
  15002. {
  15003. wid: wid,
  15004. lid: uid,
  15005. t: t,
  15006. c: this.commentText,
  15007. },
  15008. ];
  15009. this.ajax
  15010. .post(this.$store.state.api + "insertComment", params)
  15011. .then((res) => {
  15012. this.$message({
  15013. message: "评论成功",
  15014. type: "success",
  15015. });
  15016. this.commentText = "";
  15017. this.selectSWorks();
  15018. this.selectStudent();
  15019. if(this.tType!=2){
  15020. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15021. }
  15022. })
  15023. .catch((err) => {
  15024. this.$message.error("评论失败");
  15025. console.error(err);
  15026. });
  15027. }
  15028. })
  15029. .catch((err) => {
  15030. // this.$message.error("评论失败");
  15031. console.error(err);
  15032. });
  15033. },
  15034. scoreWork(wid,sName) {
  15035. if (this.wScore == 0) {
  15036. this.$message.error("请评分");
  15037. return;
  15038. }
  15039. let params = [
  15040. {
  15041. wid: wid,
  15042. score: JSON.stringify({
  15043. wScore: this.wScore,
  15044. detail: this.scoreDetail,
  15045. }),
  15046. },
  15047. ];
  15048. this.ajax
  15049. .post(this.$store.state.api + "scoreWork", params)
  15050. .then((res) => {
  15051. this.$message({
  15052. message: "评分成功",
  15053. type: "success",
  15054. });
  15055. this.wScore = 0;
  15056. this.scoreDetail = "";
  15057. this.dialogVisibleScore = false;
  15058. this.selectSWorks();
  15059. this.selectStudent();
  15060. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15061. })
  15062. .catch((err) => {
  15063. this.$message.error("评分失败");
  15064. console.error(err);
  15065. });
  15066. },
  15067. openXz(w, i) {
  15068. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15069. .taskJson[this.taskCount].toolChoose[i].selectJson
  15070. ? JSON.parse(
  15071. JSON.stringify(
  15072. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15073. this.taskCount
  15074. ].toolChoose[i].selectJson
  15075. )
  15076. )
  15077. : { url: "", select: [], answer: [] };
  15078. var a = w.works.split(",");
  15079. for (var k = 0; k < a.length; k++) {
  15080. a[k] = parseInt(a[k]);
  15081. }
  15082. this.selectAnswer = { answer: a, stu: w.sName };
  15083. this.isSelect = true;
  15084. this.dialogVisibleSelect = true;
  15085. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15086. },
  15087. openSen(w, i) {
  15088. console.log("openSen")
  15089. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15090. this.sentenceList1 = JSON.parse(w.works);
  15091. this.sentenceList1.stuName = w.sName;
  15092. this.dialogVisibleSentence1 = true;
  15093. },
  15094. openPj(w, toolindex) {
  15095. console.log("openPJ")
  15096. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15097. this.isStar = true;
  15098. this.eScore = JSON.parse(w);
  15099. this.rateJson =
  15100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15101. this.taskCount
  15102. ].toolChoose[toolindex].rateJson;
  15103. this.studentEvalDialogVisible = true;
  15104. },
  15105. openEnglishEva(id,i){
  15106. let params = {
  15107. wid: id
  15108. };
  15109. this.ajax
  15110. .get(this.$store.state.api + "selectEngWork", params)
  15111. .then((res) => {
  15112. this.evaEngJson.message = res.data[0][0];
  15113. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15114. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15115. .toolChoose[i].englishList;
  15116. this.engEvaDialogVisible = true;
  15117. })
  15118. .catch((err) => {
  15119. console.error(err);
  15120. });
  15121. },
  15122. deleteWorks(id) {
  15123. this.$confirm("确定删除此作业吗?", "提示", {
  15124. confirmButtonText: "确定",
  15125. cancelButtonText: "取消",
  15126. type: "warning",
  15127. })
  15128. .then(() => {
  15129. let params = [
  15130. {
  15131. id: id,
  15132. },
  15133. ];
  15134. this.ajax
  15135. .post(this.$store.state.api + "deleteCourseWork", params)
  15136. .then((res) => {
  15137. this.$message({
  15138. message: "删除成功",
  15139. type: "success",
  15140. });
  15141. this.selectStudent();
  15142. this.selectSWorks();
  15143. this.selectSLook();
  15144. })
  15145. .catch((err) => {
  15146. this.$message.error("网络异常");
  15147. console.error(err);
  15148. });
  15149. })
  15150. .catch(() => {});
  15151. },
  15152. selectSWorks(gindex) {
  15153. if(this.selectSWorksLoading) return
  15154. this.selectSWorksLoading = true
  15155. //教师查看全部作业
  15156. let params = {
  15157. cid: this.id,
  15158. s: this.courseType,
  15159. t: this.taskCount,
  15160. };
  15161. this.ajax
  15162. .get(this.$store.state.api + "selectSWorks", params)
  15163. .then((res) => {
  15164. var a =
  15165. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15166. this.taskCount
  15167. ].toolChoose;
  15168. var b = res.data[0];
  15169. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15170. var y = [
  15171. "AVI",
  15172. "NAVI",
  15173. "MPEG",
  15174. "ASF",
  15175. "MOV",
  15176. "WMV",
  15177. "3GP",
  15178. "RM",
  15179. "RMVB",
  15180. "FLV",
  15181. "F4V",
  15182. "H.264",
  15183. "H.265",
  15184. "REAL VIDEO",
  15185. "MKV",
  15186. "WebM",
  15187. "HDDVD",
  15188. "MP4",
  15189. "MPG",
  15190. "M4V",
  15191. "MGV",
  15192. "OGV",
  15193. "QTM",
  15194. "STR",
  15195. "AMC",
  15196. "DVX",
  15197. "EVO",
  15198. "DAT",
  15199. "OGG",
  15200. "OGM",
  15201. ];
  15202. var d = res.data[1];
  15203. var e = res.data[2];
  15204. var f = res.data[3];
  15205. let _worksStudent = [];
  15206. var _worksStudent2 = [];
  15207. for (var i = 0; i < a.length; i++) {
  15208. _worksStudent[i] = [];
  15209. _worksStudent2[i] = [];
  15210. if (
  15211. !this.isCloseList[i] ||
  15212. this.isCloseList[i].isClose == undefined
  15213. ) {
  15214. this.isCloseList[i] = { isClose: 0 };
  15215. }
  15216. this.groupStudent[i] = [];
  15217. this.groupStudentUid[i] = [];
  15218. if (this.isGroup) {
  15219. for (
  15220. var groupI = 0;
  15221. groupI < this.courseGroup.group.length;
  15222. groupI++
  15223. ) {
  15224. this.courseGroup.group[groupI].works[i] = [];
  15225. }
  15226. }
  15227. this.isWorksS[i] = [];
  15228. this.checkJson[i] = [];
  15229. if (a[i].tool[0] == 49) {
  15230. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15231. this.groupStudent[i][gA] = [];
  15232. this.groupStudentUid[i][gA] = [];
  15233. _worksStudent[i][gA] = [];
  15234. _worksStudent2[i][gA] = [];
  15235. this.isCloseList[i][gA] = [];
  15236. // debugger
  15237. for (var g = 0; g < f.length; g++) {
  15238. if (
  15239. f[g].ttype == 2 &&
  15240. this.tcid &&
  15241. this.arrayToArray(
  15242. (f[g].classid ? f[g].classid.split(",") : []),
  15243. this.tcid.split(",")
  15244. ).length == 0
  15245. ) {
  15246. continue;
  15247. }
  15248. let _classId = this.arrayToArray(
  15249. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15250. this.classId ? this.classId.split(",") : []
  15251. )
  15252. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15253. (f[g].classid ? f[g].classid.split(",") : []),
  15254. this.tcid.split(",")
  15255. ).length !== 0 || this.arrayToArray(
  15256. (f[g].classid ? f[g].classid.split(",") : []),
  15257. _classId
  15258. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15259. this.groupStudent[i][gA].push(f[g]);
  15260. this.groupStudentUid[i][gA].push(f[g].userid);
  15261. }
  15262. }
  15263. }
  15264. this.$forceUpdate();
  15265. }
  15266. for (var j = 0; j < b.length; j++) {
  15267. if (
  15268. b[j].ttype == 2 &&
  15269. this.tcid &&
  15270. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15271. .length == 0
  15272. ) {
  15273. continue;
  15274. }
  15275. var likesCount = 0;
  15276. var commentCount = 0;
  15277. var isLikes = false;
  15278. var commentJson = [];
  15279. var likeJson = [];
  15280. var data = b[j];
  15281. if (i == b[j].tool) {
  15282. if (data.type == 2 && a[i].tool[0] == 4) {
  15283. // if(JSON.parse(data.content)[0].anwer){
  15284. var checkL =
  15285. JSON.parse(data.content)[0].anwer instanceof Array
  15286. ? JSON.parse(data.content)[0].anwer
  15287. : JSON.parse(data.content)[0].anwer.split(",");
  15288. for (var z = 0; z < checkL.length; z++) {
  15289. if (!this.checkJson[i][z]) {
  15290. this.checkJson[i].push({
  15291. checkCount: [],
  15292. checkPerson: [],
  15293. rightPerson: [],
  15294. });
  15295. }
  15296. if (!this.checkJson[i][z].checkCount.length) {
  15297. this.checkJson[i][z].checkCount = [];
  15298. let _askItemCount = JSON.parse(data.content)[0].askJson
  15299. .askJson[z].askItem;
  15300. for (var aic = 0; aic < _askItemCount; aic++) {
  15301. this.checkJson[i][z].checkCount.push(0);
  15302. }
  15303. }
  15304. if (checkL[z] instanceof Array) {
  15305. if (
  15306. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15307. checkL[z].sort().join(",")
  15308. ) {
  15309. this.checkJson[i][z].rightPerson.push(data.name);
  15310. }
  15311. for (var q = 0; q < checkL[z].length; q++) {
  15312. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15313. ? this.checkJson[i][z].checkPerson[
  15314. parseInt(checkL[z][q])
  15315. ].push(data.name)
  15316. : (this.checkJson[i][z].checkPerson[
  15317. parseInt(checkL[z][q])
  15318. ] = [data.name]);
  15319. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15320. ? this.checkJson[i][z].checkCount[
  15321. parseInt(checkL[z][q])
  15322. ]++
  15323. : (this.checkJson[i][z].checkCount[
  15324. parseInt(checkL[z][q])
  15325. ] = 1);
  15326. }
  15327. } else {
  15328. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15329. this.checkJson[i][z].rightPerson.push(data.name);
  15330. }
  15331. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15332. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15333. ? this.checkJson[i][z].checkPerson[
  15334. parseInt(checkL[z])
  15335. ].push(data.name)
  15336. : (this.checkJson[i][z].checkPerson[
  15337. parseInt(checkL[z])
  15338. ] = [data.name]);
  15339. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15340. ? this.checkJson[i][z].checkCount[
  15341. parseInt(checkL[z])
  15342. ]++
  15343. : (this.checkJson[i][z].checkCount[
  15344. parseInt(checkL[z])
  15345. ] = 1);
  15346. }
  15347. }
  15348. }
  15349. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15350. var checkL = JSON.parse(data.content)[0].anwer;
  15351. for (var z = 0; z < checkL.length; z++) {
  15352. if (!this.checkJson[i][z]) {
  15353. this.checkJson[i].push({
  15354. checkCount: [],
  15355. checkPerson: [],
  15356. rightPerson: [],
  15357. });
  15358. }
  15359. if (!this.checkJson[i][z].checkCount.length) {
  15360. this.checkJson[i][z].checkCount = [];
  15361. let _askItemCount = JSON.parse(data.content)[0].testJson
  15362. .testJson[z].testItem;
  15363. for (var aic = 0; aic < _askItemCount; aic++) {
  15364. this.checkJson[i][z].checkCount.push(0);
  15365. }
  15366. }
  15367. if (checkL[z] instanceof Array) {
  15368. if (
  15369. JSON.parse(data.content)[0]
  15370. .testJson.testJson[z].answer.sort()
  15371. .join(",") == checkL[z].sort().join(",")
  15372. ) {
  15373. this.checkJson[i][z].rightPerson.push(data.name);
  15374. }
  15375. for (var q = 0; q < checkL[z].length; q++) {
  15376. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15377. ? this.checkJson[i][z].checkPerson[
  15378. parseInt(checkL[z][q])
  15379. ].push(data.name)
  15380. : (this.checkJson[i][z].checkPerson[
  15381. parseInt(checkL[z][q])
  15382. ] = [data.name]);
  15383. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15384. ? this.checkJson[i][z].checkCount[
  15385. parseInt(checkL[z][q])
  15386. ]++
  15387. : (this.checkJson[i][z].checkCount[
  15388. parseInt(checkL[z][q])
  15389. ] = 1);
  15390. }
  15391. } else {
  15392. if (
  15393. JSON.parse(data.content)[0].testJson.testJson[z]
  15394. .answer == checkL[z]
  15395. ) {
  15396. this.checkJson[i][z].rightPerson.push(data.name);
  15397. }
  15398. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15399. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15400. ? this.checkJson[i][z].checkPerson[
  15401. parseInt(checkL[z])
  15402. ].push(data.name)
  15403. : (this.checkJson[i][z].checkPerson[
  15404. parseInt(checkL[z])
  15405. ] = [data.name]);
  15406. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15407. ? this.checkJson[i][z].checkCount[
  15408. parseInt(checkL[z])
  15409. ]++
  15410. : (this.checkJson[i][z].checkCount[
  15411. parseInt(checkL[z])
  15412. ] = 1);
  15413. }
  15414. }
  15415. }
  15416. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15417. var checkL = JSON.parse(data.content);
  15418. for (var z = 0; z < checkL.length; z++) {
  15419. if (!this.checkJson[i][z]) {
  15420. this.checkJson[i].push({
  15421. checkCount: [],
  15422. checkPerson: [],
  15423. rightPerson: [],
  15424. });
  15425. }
  15426. this.checkJson[i][z].checkPerson.push(data.name);
  15427. if (
  15428. checkL[z].chooseSenList.toString() ==
  15429. checkL[z].rightAnswer.toString()
  15430. ) {
  15431. this.checkJson[i][z].rightPerson.push(data.name);
  15432. }
  15433. }
  15434. }
  15435. for (var k = 0; k < d.length; k++) {
  15436. //点赞
  15437. if (d[k].workId == b[j].id) {
  15438. likesCount++;
  15439. likeJson.push(d[k])
  15440. if (d[k].likesId == this.userid) {
  15441. isLikes = true;
  15442. }
  15443. }
  15444. }
  15445. for (var l = 0; l < e.length; l++) {
  15446. //评论
  15447. if (e[l].workId == b[j].id) {
  15448. if (e[l].comment != "") {
  15449. commentCount++;
  15450. commentJson.push({
  15451. commentText: e[l].comment,
  15452. commentTime: e[l].commentTime,
  15453. commentPeople: e[l].commentPeople,
  15454. userid: e[l].userid,
  15455. wid: e[l].id,
  15456. });
  15457. }
  15458. }
  15459. }
  15460. if (
  15461. (b[j].type == 1 ||
  15462. b[j].type == 4 ||
  15463. b[j].type == 5 ||
  15464. b[j].type == 6 ||
  15465. b[j].type == 12 ||
  15466. b[j].type == 7) &&
  15467. a[i].tool[0] != 15 &&
  15468. a[i].tool[0] != 4 &&
  15469. a[i].tool[0] != 45 &&
  15470. a[i].tool[0] != 50 &&
  15471. a[i].tool[0] != 32 &&
  15472. a[i].tool[0] != 57 &&
  15473. a[i].tool[0] != 52
  15474. ) {
  15475. if (
  15476. c.indexOf(
  15477. b[j].content
  15478. .split(".")
  15479. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15480. ) != -1 &&
  15481. a[i].tool[0] == 16 &&
  15482. b[j].atool != 50
  15483. ) {
  15484. let _works = {
  15485. userid: b[j].userid,
  15486. ateacher: b[j].ateacher,
  15487. wid: b[j].id,
  15488. works: b[j].content,
  15489. sName: b[j].name,
  15490. type: 1,
  15491. ttype:b[j].ttype,
  15492. time: b[j].time,
  15493. score: b[j].score,
  15494. img: b[j].img,
  15495. likesCount: likesCount,
  15496. commentCount: commentCount,
  15497. isLikes: isLikes,
  15498. commentJson: commentJson,
  15499. likeJson:likeJson
  15500. };
  15501. if (this.isGroup) {
  15502. let isGw = 1;
  15503. for (
  15504. var groupI = 0;
  15505. groupI < this.courseGroup.group.length;
  15506. groupI++
  15507. ) {
  15508. let gid = this.courseGroup.group[groupI].id;
  15509. if (
  15510. this.courseGroupStudentUid[gid].indexOf(
  15511. b[j].userid
  15512. ) != -1
  15513. ) {
  15514. isGw = 2;
  15515. this.courseGroup.group[groupI].works[i].push(_works);
  15516. break;
  15517. }
  15518. }
  15519. if (isGw == 1) {
  15520. _worksStudent[i].push(_works);
  15521. }
  15522. } else {
  15523. _worksStudent[i].push(_works);
  15524. }
  15525. _worksStudent2[i].push(_works);
  15526. this.isWorksS[i].push({
  15527. uid: b[j].userid,
  15528. sName: b[j].name,
  15529. });
  15530. } else if (
  15531. y.indexOf(
  15532. b[j].content
  15533. .split(".")
  15534. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15535. ) != -1 &&
  15536. a[i].tool[0] == 16 &&
  15537. b[j].atool != 50
  15538. ) {
  15539. let _works = {
  15540. userid: b[j].userid,
  15541. ateacher: b[j].ateacher,
  15542. wid: b[j].id,
  15543. works: b[j].content,
  15544. sName: b[j].name,
  15545. type: 3,
  15546. ttype:b[j].ttype,
  15547. time: b[j].time,
  15548. score: b[j].score,
  15549. img: b[j].img,
  15550. likesCount: likesCount,
  15551. commentCount: commentCount,
  15552. isLikes: isLikes,
  15553. commentJson: commentJson,
  15554. likeJson:likeJson
  15555. };
  15556. if (this.isGroup) {
  15557. let isGw = 1;
  15558. for (
  15559. var groupI = 0;
  15560. groupI < this.courseGroup.group.length;
  15561. groupI++
  15562. ) {
  15563. let gid = this.courseGroup.group[groupI].id;
  15564. if (
  15565. this.courseGroupStudentUid[gid].indexOf(
  15566. b[j].userid
  15567. ) != -1
  15568. ) {
  15569. isGw = 2;
  15570. this.courseGroup.group[groupI].works[i].push(_works);
  15571. break;
  15572. }
  15573. }
  15574. if (isGw == 1) {
  15575. _worksStudent[i].push(_works);
  15576. }
  15577. } else {
  15578. _worksStudent[i].push(_works);
  15579. }
  15580. _worksStudent2[i].push(_works);
  15581. this.isWorksS[i].push({
  15582. uid: b[j].userid,
  15583. sName: b[j].name,
  15584. });
  15585. } else if (b[j].type == 6 && b[j].atool != 50) {
  15586. let _works = {
  15587. userid: b[j].userid,
  15588. ateacher: b[j].ateacher,
  15589. wid: b[j].id,
  15590. works: b[j].content,
  15591. sName: b[j].name,
  15592. type: 4,
  15593. ttype:b[j].ttype,
  15594. time: b[j].time,
  15595. score: b[j].score,
  15596. img: b[j].img,
  15597. likesCount: likesCount,
  15598. commentCount: commentCount,
  15599. isLikes: isLikes,
  15600. commentJson: commentJson,
  15601. likeJson:likeJson
  15602. };
  15603. _worksStudent[i].push(_works);
  15604. _worksStudent2[i].push(_works);
  15605. this.isWorksS[i].push({
  15606. uid: b[j].userid,
  15607. sName: b[j].name,
  15608. });
  15609. } else if (b[j].type == 7 && b[j].atool != 50) {
  15610. let _work = {
  15611. userid: b[j].userid,
  15612. ateacher: b[j].ateacher,
  15613. wid: b[j].id,
  15614. works: b[j].content,
  15615. sName: b[j].name,
  15616. type: 5,
  15617. ttype:b[j].ttype,
  15618. time: b[j].time,
  15619. score: b[j].score,
  15620. img: b[j].img,
  15621. likesCount: likesCount,
  15622. commentCount: commentCount,
  15623. isLikes: isLikes,
  15624. commentJson: commentJson,
  15625. likeJson:likeJson
  15626. };
  15627. _worksStudent[i].push(_work);
  15628. _worksStudent2[i].push(_work);
  15629. this.isWorksS[i].push({
  15630. uid: b[j].userid,
  15631. sName: b[j].name,
  15632. });
  15633. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15634. let _works = {
  15635. userid: b[j].userid,
  15636. ateacher: b[j].ateacher,
  15637. wid: b[j].id,
  15638. works: b[j].content,
  15639. sName: b[j].name,
  15640. type: 12,
  15641. ttype:b[j].ttype,
  15642. time: b[j].time,
  15643. score: b[j].score,
  15644. img: b[j].img,
  15645. likesCount: likesCount,
  15646. commentCount: commentCount,
  15647. isLikes: isLikes,
  15648. commentJson: commentJson,
  15649. likeJson:likeJson
  15650. };
  15651. if (this.isGroup) {
  15652. let isGw = 1;
  15653. for (
  15654. var groupI = 0;
  15655. groupI < this.courseGroup.group.length;
  15656. groupI++
  15657. ) {
  15658. let gid = this.courseGroup.group[groupI].id;
  15659. if (
  15660. this.courseGroupStudentUid[gid].indexOf(
  15661. b[j].userid
  15662. ) != -1
  15663. ) {
  15664. isGw = 2;
  15665. this.courseGroup.group[groupI].works[i].push(_works);
  15666. break;
  15667. }
  15668. }
  15669. if (isGw == 1) {
  15670. _worksStudent[i].push(_works);
  15671. }
  15672. } else {
  15673. _worksStudent[i].push(_works);
  15674. }
  15675. _worksStudent2[i].push(_works);
  15676. this.isWorksS[i].push({
  15677. uid: b[j].userid,
  15678. sName: b[j].name,
  15679. });
  15680. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15681. let _works = {
  15682. userid: b[j].userid,
  15683. ateacher: b[j].ateacher,
  15684. wid: b[j].id,
  15685. works: b[j].content,
  15686. sName: b[j].name,
  15687. type: 0,
  15688. ttype:b[j].ttype,
  15689. time: b[j].time,
  15690. score: b[j].score,
  15691. img: b[j].img,
  15692. likesCount: likesCount,
  15693. commentCount: commentCount,
  15694. isLikes: isLikes,
  15695. commentJson: commentJson,
  15696. likeJson:likeJson
  15697. };
  15698. if (this.isGroup) {
  15699. let isGw = 1;
  15700. for (
  15701. var groupI = 0;
  15702. groupI < this.courseGroup.group.length;
  15703. groupI++
  15704. ) {
  15705. let gid = this.courseGroup.group[groupI].id;
  15706. if (
  15707. this.courseGroupStudentUid[gid].indexOf(
  15708. b[j].userid
  15709. ) != -1
  15710. ) {
  15711. isGw = 2;
  15712. this.courseGroup.group[groupI].works[i].push(_works);
  15713. break;
  15714. }
  15715. }
  15716. if (isGw == 1) {
  15717. _worksStudent[i].push(_works);
  15718. }
  15719. } else {
  15720. _worksStudent[i].push(_works);
  15721. }
  15722. _worksStudent2[i].push(_works);
  15723. this.isWorksS[i].push({
  15724. uid: b[j].userid,
  15725. sName: b[j].name,
  15726. });
  15727. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15728. let _works = {
  15729. userid: b[j].userid,
  15730. ateacher: b[j].ateacher,
  15731. wid: b[j].id,
  15732. works: b[j].content,
  15733. sName: b[j].name,
  15734. type: 0,
  15735. ttype:b[j].ttype,
  15736. time: b[j].time,
  15737. score: b[j].score,
  15738. img: b[j].img,
  15739. likesCount: likesCount,
  15740. commentCount: commentCount,
  15741. isLikes: isLikes,
  15742. commentJson: commentJson,
  15743. likeJson:likeJson
  15744. };
  15745. if (this.isGroup) {
  15746. let isGw = 1;
  15747. for (
  15748. var groupI = 0;
  15749. groupI < this.courseGroup.group.length;
  15750. groupI++
  15751. ) {
  15752. let gid = this.courseGroup.group[groupI].id;
  15753. if (
  15754. this.courseGroupStudentUid[gid].indexOf(
  15755. b[j].userid
  15756. ) != -1
  15757. ) {
  15758. isGw = 2;
  15759. this.courseGroup.group[groupI].works[i].push(_works);
  15760. break;
  15761. }
  15762. }
  15763. if (isGw == 1) {
  15764. _worksStudent[i].push(_works);
  15765. }
  15766. } else {
  15767. _worksStudent[i].push(_works);
  15768. }
  15769. _worksStudent2[i].push(_works);
  15770. this.isWorksS[i].push({
  15771. uid: b[j].userid,
  15772. sName: b[j].name,
  15773. });
  15774. }
  15775. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15776. let _works = {
  15777. userid: b[j].userid,
  15778. ateacher: b[j].ateacher,
  15779. wid: b[j].id,
  15780. works: b[j].content,
  15781. sName: b[j].name,
  15782. type: 2,
  15783. ttype:b[j].ttype,
  15784. time: b[j].time,
  15785. score: b[j].score,
  15786. img: b[j].img,
  15787. likesCount: likesCount,
  15788. commentCount: commentCount,
  15789. isLikes: isLikes,
  15790. commentJson: commentJson,
  15791. likeJson:likeJson
  15792. };
  15793. if (this.isGroup) {
  15794. let isGw = 1;
  15795. for (
  15796. var groupI = 0;
  15797. groupI < this.courseGroup.group.length;
  15798. groupI++
  15799. ) {
  15800. let gid = this.courseGroup.group[groupI].id;
  15801. if (
  15802. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15803. -1
  15804. ) {
  15805. isGw = 2;
  15806. this.courseGroup.group[groupI].works[i].push(_works);
  15807. break;
  15808. }
  15809. }
  15810. if (isGw == 1) {
  15811. _worksStudent[i].push(_works);
  15812. }
  15813. } else {
  15814. _worksStudent[i].push(_works);
  15815. }
  15816. _worksStudent2[i].push(_works);
  15817. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15818. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15819. let _works = {
  15820. userid: b[j].userid,
  15821. ateacher: b[j].ateacher,
  15822. wid: b[j].id,
  15823. works: b[j].content,
  15824. sName: b[j].name,
  15825. type: 20,
  15826. ttype:b[j].ttype,
  15827. time: b[j].time,
  15828. score: b[j].score,
  15829. img: b[j].img,
  15830. likesCount: likesCount,
  15831. commentCount: commentCount,
  15832. isLikes: isLikes,
  15833. commentJson: commentJson,
  15834. likeJson:likeJson
  15835. };
  15836. if (this.isGroup) {
  15837. let isGw = 1;
  15838. for (
  15839. var groupI = 0;
  15840. groupI < this.courseGroup.group.length;
  15841. groupI++
  15842. ) {
  15843. let gid = this.courseGroup.group[groupI].id;
  15844. if (
  15845. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15846. -1
  15847. ) {
  15848. isGw = 2;
  15849. this.courseGroup.group[groupI].works[i].push(_works);
  15850. break;
  15851. }
  15852. }
  15853. if (isGw == 1) {
  15854. _worksStudent[i].push(_works);
  15855. }
  15856. } else {
  15857. _worksStudent[i].push(_works);
  15858. }
  15859. _worksStudent2[i].push(_works);
  15860. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15861. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15862. //问卷
  15863. let _work = {
  15864. userid: b[j].userid,
  15865. ateacher: b[j].ateacher,
  15866. wid: b[j].id,
  15867. works: b[j].content,
  15868. sName: b[j].name,
  15869. type: 2,
  15870. ttype:b[j].ttype,
  15871. time: b[j].time,
  15872. score: b[j].score,
  15873. img: b[j].img,
  15874. likesCount: likesCount,
  15875. commentCount: commentCount,
  15876. isLikes: isLikes,
  15877. commentJson: commentJson,
  15878. likeJson:likeJson
  15879. };
  15880. _worksStudent[i].push(_work);
  15881. _worksStudent2[i].push(_work);
  15882. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15883. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15884. //选择题
  15885. let _work = {
  15886. userid: b[j].userid,
  15887. ateacher: b[j].ateacher,
  15888. wid: b[j].id,
  15889. works: b[j].content,
  15890. sName: b[j].name,
  15891. type: 8,
  15892. ttype:b[j].ttype,
  15893. time: b[j].time,
  15894. score: b[j].score,
  15895. img: b[j].img,
  15896. likesCount: likesCount,
  15897. commentCount: commentCount,
  15898. isLikes: isLikes,
  15899. commentJson: commentJson,
  15900. likeJson:likeJson
  15901. };
  15902. _worksStudent[i].push(_work);
  15903. _worksStudent2[i].push(_work);
  15904. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15905. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15906. //选择题
  15907. let _work = {
  15908. userid: b[j].userid,
  15909. ateacher: b[j].ateacher,
  15910. wid: b[j].id,
  15911. works: b[j].content,
  15912. sName: b[j].name,
  15913. type: 9,
  15914. ttype:b[j].ttype,
  15915. time: b[j].time,
  15916. score: b[j].score,
  15917. img: b[j].img,
  15918. likesCount: likesCount,
  15919. commentCount: commentCount,
  15920. isLikes: isLikes,
  15921. commentJson: commentJson,
  15922. likeJson:likeJson
  15923. };
  15924. _worksStudent[i].push(_work);
  15925. _worksStudent2[i].push(_work);
  15926. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15927. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15928. //选择题
  15929. let _work = {
  15930. userid: b[j].userid,
  15931. ateacher: b[j].ateacher,
  15932. wid: b[j].id,
  15933. works: b[j].content,
  15934. sName: b[j].name,
  15935. type: 10,
  15936. ttype:b[j].ttype,
  15937. time: b[j].time,
  15938. score: b[j].score,
  15939. img: b[j].img,
  15940. likesCount: likesCount,
  15941. commentCount: commentCount,
  15942. isLikes: isLikes,
  15943. commentJson: commentJson,
  15944. likeJson:likeJson
  15945. };
  15946. _worksStudent[i].push(_work);
  15947. _worksStudent2[i].push(_work);
  15948. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15949. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15950. //选择题
  15951. let _work = {
  15952. userid: b[j].userid,
  15953. ateacher: b[j].ateacher,
  15954. wid: b[j].id,
  15955. works: b[j].content,
  15956. sName: b[j].name,
  15957. type: 13,
  15958. ttype:b[j].ttype,
  15959. time: b[j].time,
  15960. score: b[j].score,
  15961. img: b[j].img,
  15962. likesCount: likesCount,
  15963. commentCount: commentCount,
  15964. isLikes: isLikes,
  15965. commentJson: commentJson,
  15966. likeJson:likeJson
  15967. };
  15968. _worksStudent[i].push(_work);
  15969. _worksStudent2[i].push(_work);
  15970. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15971. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15972. //选择题
  15973. let _work = {
  15974. userid: b[j].userid,
  15975. ateacher: b[j].ateacher,
  15976. wid: b[j].id,
  15977. works: b[j].content,
  15978. sName: b[j].name,
  15979. type: 16,
  15980. ttype:b[j].ttype,
  15981. time: b[j].time,
  15982. score: b[j].score,
  15983. img: b[j].img,
  15984. likesCount: likesCount,
  15985. commentCount: commentCount,
  15986. isLikes: isLikes,
  15987. commentJson: commentJson,
  15988. aiCode: b[j].aiCode,
  15989. teacherCode: b[j].teacherCode,
  15990. likeJson:likeJson
  15991. };
  15992. _worksStudent[i].push(_work);
  15993. _worksStudent2[i].push(_work);
  15994. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15995. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15996. //英语口语
  15997. let _work = {
  15998. userid: b[j].userid,
  15999. ateacher: b[j].ateacher,
  16000. wid: b[j].id,
  16001. works: b[j].content,
  16002. sName: b[j].name,
  16003. type: 17,
  16004. ttype:b[j].ttype,
  16005. time: b[j].time,
  16006. score: b[j].score,
  16007. img: b[j].img,
  16008. likesCount: likesCount,
  16009. commentCount: commentCount,
  16010. isLikes: isLikes,
  16011. commentJson: commentJson,
  16012. likeJson:likeJson
  16013. };
  16014. _worksStudent[i].push(_work);
  16015. _worksStudent2[i].push(_work);
  16016. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16017. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16018. //交互视频
  16019. let _work = {
  16020. userid: b[j].userid,
  16021. ateacher: b[j].ateacher,
  16022. wid: b[j].id,
  16023. works: b[j].content,
  16024. sName: b[j].name,
  16025. type: 14,
  16026. ttype:b[j].ttype,
  16027. time: b[j].time,
  16028. score: b[j].score,
  16029. img: b[j].img,
  16030. likesCount: likesCount,
  16031. commentCount: commentCount,
  16032. isLikes: isLikes,
  16033. commentJson: commentJson,
  16034. likeJson:likeJson
  16035. };
  16036. _worksStudent[i].push(_work);
  16037. _worksStudent2[i].push(_work);
  16038. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16039. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16040. let _gindex = JSON.parse(b[j].content);
  16041. if (
  16042. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16043. b[j].userid
  16044. ) != -1
  16045. ) {
  16046. let _work = {
  16047. userid: b[j].userid,
  16048. ateacher: b[j].ateacher,
  16049. wid: b[j].id,
  16050. works: _gindex.url,
  16051. sName: b[j].name,
  16052. type: _gindex.type,
  16053. ttype:b[j].ttype,
  16054. time: b[j].time,
  16055. score: b[j].score,
  16056. img: b[j].img,
  16057. likesCount: likesCount,
  16058. commentCount: commentCount,
  16059. isLikes: isLikes,
  16060. commentJson: commentJson,
  16061. likeJson:likeJson
  16062. };
  16063. _worksStudent[i][_gindex.groupIndex].push(_work);
  16064. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16065. }
  16066. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16067. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16068. let _work = {
  16069. userid: b[j].userid,
  16070. ateacher: b[j].ateacher,
  16071. wid: b[j].id,
  16072. works: b[j].content,
  16073. sName: b[j].name ? b[j].name : b[j].userid,
  16074. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16075. ttype:b[j].ttype,
  16076. time: b[j].time,
  16077. score: b[j].score,
  16078. img: b[j].img,
  16079. likesCount: likesCount,
  16080. commentCount: commentCount,
  16081. isLikes: isLikes,
  16082. commentJson: commentJson,
  16083. likeJson:likeJson
  16084. };
  16085. _worksStudent[i].push(_work);
  16086. _worksStudent2[i].push(_work);
  16087. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16088. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16089. let _work = {
  16090. userid: b[j].userid,
  16091. ateacher: b[j].ateacher,
  16092. wid: b[j].id,
  16093. works: b[j].content,
  16094. sName: b[j].name ? b[j].name : b[j].userid,
  16095. type: 12,
  16096. ttype:b[j].ttype,
  16097. time: b[j].time,
  16098. score: b[j].score,
  16099. img: b[j].img,
  16100. likesCount: likesCount,
  16101. commentCount: commentCount,
  16102. isLikes: isLikes,
  16103. commentJson: commentJson,
  16104. likeJson:likeJson
  16105. };
  16106. _worksStudent[i].push(_work);
  16107. _worksStudent2[i].push(_work);
  16108. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16109. } else if (
  16110. a[i].tool[0] == 57 &&
  16111. b[j].atool == 57 &&
  16112. b[j].type == 12
  16113. ) {
  16114. let _work = {
  16115. userid: b[j].userid,
  16116. ateacher: b[j].ateacher,
  16117. wid: b[j].id,
  16118. works: b[j].content,
  16119. sName: b[j].name ? b[j].name : b[j].userid,
  16120. type: 12,
  16121. ttype:b[j].ttype,
  16122. time: b[j].time,
  16123. score: b[j].score,
  16124. img: b[j].img,
  16125. likesCount: likesCount,
  16126. commentCount: commentCount,
  16127. isLikes: isLikes,
  16128. commentJson: commentJson,
  16129. likeJson:likeJson
  16130. };
  16131. _worksStudent[i].push(_work);
  16132. _worksStudent2[i].push(_work);
  16133. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16134. } else if (
  16135. a[i].tool[0] == 57 &&
  16136. b[j].atool == 57 &&
  16137. b[j].type == 15
  16138. ) {
  16139. let _work = {
  16140. userid: b[j].userid,
  16141. ateacher: b[j].ateacher,
  16142. wid: b[j].id,
  16143. works: b[j].content,
  16144. sName: b[j].name ? b[j].name : b[j].userid,
  16145. type: 15,
  16146. ttype:b[j].ttype,
  16147. time: b[j].time,
  16148. score: b[j].score,
  16149. img: b[j].img,
  16150. likesCount: likesCount,
  16151. commentCount: commentCount,
  16152. isLikes: isLikes,
  16153. commentJson: commentJson,
  16154. likeJson:likeJson
  16155. };
  16156. _worksStudent[i].push(_work);
  16157. _worksStudent2[i].push(_work);
  16158. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16159. }
  16160. }
  16161. }
  16162. if (_worksStudent[i] && _worksStudent[i].length) {
  16163. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16164. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16165. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16166. var scoreA = parseFloat(jscoreA);
  16167. var scoreB = parseFloat(jscoreB);
  16168. if (scoreA == scoreB) {
  16169. return b.likesCount - a.likesCount;
  16170. }
  16171. return scoreB - scoreA;
  16172. });
  16173. if (this.isGroup) {
  16174. for (
  16175. var groupI = 0;
  16176. groupI < this.courseGroup.group.length;
  16177. groupI++
  16178. ) {
  16179. this.courseGroup.group[groupI].works[i] =
  16180. this.courseGroup.group[groupI].works[i].sort(function (
  16181. a,
  16182. b
  16183. ) {
  16184. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16185. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16186. var scoreA = parseFloat(jscoreA);
  16187. var scoreB = parseFloat(jscoreB);
  16188. if (scoreA == scoreB) {
  16189. return b.likesCount - a.likesCount;
  16190. }
  16191. return scoreB - scoreA;
  16192. });
  16193. }
  16194. }
  16195. }
  16196. }
  16197. this.timeWorkList = _worksStudent2;
  16198. for (var i = 0; i < a.length; i++) {
  16199. for (var j = 0; j < b.length; j++) {
  16200. var data = b[j];
  16201. if (i == b[j].tool) {
  16202. if (data.type == 2 || data.type == 8) {
  16203. for (var z = 0; z < this.checkJson[i].length; z++) {
  16204. this.checkJson[i][z].checkPerent = [];
  16205. this.checkJson[i][z].right = Math.round(
  16206. (this.checkJson[i][z].rightPerson.length /
  16207. parseInt(_worksStudent[i].length)) *
  16208. 100
  16209. );
  16210. let aaaa = this.checkJson[i][z];
  16211. for (
  16212. var k = 0;
  16213. k < this.checkJson[i][z].checkCount.length;
  16214. k++
  16215. ) {
  16216. this.checkJson[i][z].checkPerent.push(
  16217. Math.round(
  16218. (this.checkJson[i][z].checkCount[k] /
  16219. parseInt(_worksStudent[i].length)) *
  16220. 100
  16221. )
  16222. );
  16223. }
  16224. }
  16225. } else if (data.type == 9) {
  16226. for (var z = 0; z < this.checkJson[i].length; z++) {
  16227. this.checkJson[i][z].checkPerent = [];
  16228. this.checkJson[i][z].right = Math.round(
  16229. (this.checkJson[i][z].rightPerson.length /
  16230. this.checkJson[i][z].checkPerson.length) *
  16231. 100
  16232. );
  16233. }
  16234. }
  16235. }
  16236. }
  16237. }
  16238. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16239. this.joinGroup(gindex);
  16240. }
  16241. this.worksStudent = _worksStudent;
  16242. this.selectWorksStudent();
  16243. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16244. this.$nextTick(()=>{
  16245. setTimeout(()=>{
  16246. setTimeout(()=>{
  16247. this.panToolHeight('tool-'+ci);
  16248. }, 500)
  16249. }, 0)
  16250. })
  16251. }
  16252. this.selectSWorksLoading = false
  16253. })
  16254. .catch((err) => {
  16255. this.selectSWorksLoading = false
  16256. console.error(err);
  16257. });
  16258. },
  16259. pngToWhiteBg(file) {
  16260. const _file = file;
  16261. let read = new FileReader();
  16262. read.readAsDataURL(file); // 文件转base64
  16263. return new Promise((resolve, reject) => {
  16264. read.onload = (e) => {
  16265. let img = new Image();
  16266. img.src = e.target.result;
  16267. img.onload = async () => {
  16268. // 生成canvas
  16269. let canvas = document.createElement("canvas");
  16270. let context = canvas.getContext("2d");
  16271. // 绘制图片到canvas上
  16272. canvas.width = img.width;
  16273. canvas.height = img.height;
  16274. // 在canvas绘制前填充白色背景
  16275. context.fillStyle = "#fff";
  16276. context.fillRect(0, 0, canvas.width, canvas.height);
  16277. context.drawImage(img, 0, 0);
  16278. let base64 = canvas.toDataURL(file["type"], 1);
  16279. let newFile = this.dataUrlToFile(base64, _file);
  16280. resolve(newFile);
  16281. };
  16282. };
  16283. });
  16284. },
  16285. dataUrlToFile(dataurl, file) {
  16286. let arr = dataurl.split(","),
  16287. mime = arr[0].match(/:(.*?);/)[1],
  16288. bstr = atob(arr[1]),
  16289. n = bstr.length,
  16290. u8arr = new Uint8Array(n);
  16291. while (n--) {
  16292. u8arr[n] = bstr.charCodeAt(n);
  16293. }
  16294. // return new Blob([u8arr], { type: mime });
  16295. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16296. type: mime,
  16297. });
  16298. },
  16299. async beforeUpload1(event, type, i) {
  16300. // this.$message.success('进入上传')
  16301. var file = "";
  16302. if (type == 5) {
  16303. file = event;
  16304. } else {
  16305. file = event.target.files[0];
  16306. }
  16307. var credentials = {
  16308. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16309. secretAccessKey: "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",
  16310. }; //秘钥形式的登录上传
  16311. window.AWS.config.update(credentials);
  16312. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16313. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16314. var _this = this;
  16315. _this.progress = 0;
  16316. _this.proVisible = true;
  16317. _this.isFinishSize = 0;
  16318. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16319. var b = [
  16320. "DOC",
  16321. "DOCX",
  16322. "DOCM",
  16323. "DOTM",
  16324. "DOTX",
  16325. "PPTX",
  16326. "PPSX",
  16327. "PPT",
  16328. "PPS",
  16329. "PPTM",
  16330. "POTM",
  16331. "PPAM",
  16332. "POTX",
  16333. "PPSM",
  16334. ];
  16335. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16336. var photoA = [
  16337. "BMP",
  16338. "GIF",
  16339. "PNG",
  16340. "JPEG",
  16341. "JPEG",
  16342. "JPG",
  16343. "TIF",
  16344. "PCX",
  16345. "TGA",
  16346. "EXIF",
  16347. "FPX",
  16348. "SVG",
  16349. "APNG",
  16350. ];
  16351. // if (
  16352. // b.indexOf(
  16353. // file.name
  16354. // .split(".")
  16355. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16356. // ) != -1
  16357. // ) {
  16358. // if (file.size / 1024 / 1024 > 10) {
  16359. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16360. // return;
  16361. // }
  16362. // } else if (
  16363. // excelA.indexOf(
  16364. // file.name
  16365. // .split(".")
  16366. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16367. // ) != "-1"
  16368. // ) {
  16369. // if (file.size / 1024 / 1024 > 5) {
  16370. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16371. // return;
  16372. // }
  16373. // }
  16374. if (
  16375. photoA.indexOf(
  16376. file.name
  16377. .split(".")
  16378. [file.name.split(".").length - 1].toLocaleUpperCase()
  16379. ) != -1 &&
  16380. type != 4
  16381. ) {
  16382. // const blob = await imageConversion.compress(file, 0.8)
  16383. file = await this.pngToWhiteBg(file);
  16384. const blob = await imageConversion.compressAccurately(file, 256);
  16385. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16386. file = new File([blob], file.name, { type: file.type });
  16387. }
  16388. if (file) {
  16389. var params = {
  16390. Key:
  16391. file.name.split(".")[0] +
  16392. new Date().getTime() +
  16393. "." +
  16394. file.name.split(".")[file.name.split(".").length - 1],
  16395. ContentType: file.type,
  16396. Body: file,
  16397. "Access-Control-Allow-Credentials": "*",
  16398. ACL: "public-read",
  16399. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16400. var options = {
  16401. // partSize: 2048 * 1024 * 1024,
  16402. partSize: 1024 * 1024 * 1024,
  16403. queueSize: 2,
  16404. leavePartsOnError: true,
  16405. };
  16406. bucket
  16407. .upload(params, options)
  16408. .on("httpUploadProgress", function (evt) {
  16409. //这里可以写进度条
  16410. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16411. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16412. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16413. })
  16414. .send(function (err, data) {
  16415. _this.progress = 100;
  16416. _this.isFinishSize = _this.isAllSize;
  16417. setTimeout(() => {
  16418. _this.proVisible = false;
  16419. }, 1000);
  16420. if (err) {
  16421. var a = _this.$refs.upload1.uploadFiles;
  16422. a.splice(a.length - 1, a.length);
  16423. _this.$message.error("上传失败");
  16424. } else {
  16425. // _this.$message.success('上传成功')
  16426. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16427. var c = [
  16428. "AVI",
  16429. "NAVI",
  16430. "MPEG",
  16431. "ASF",
  16432. "MOV",
  16433. "WMV",
  16434. "3GP",
  16435. "RM",
  16436. "RMVB",
  16437. "FLV",
  16438. "F4V",
  16439. "H.264",
  16440. "H.265",
  16441. "REAL VIDEO",
  16442. "MKV",
  16443. "WebM",
  16444. "HDDVD",
  16445. "MP4",
  16446. "MPG",
  16447. "M4V",
  16448. "MGV",
  16449. "OGV",
  16450. "QTM",
  16451. "STR",
  16452. "AMC",
  16453. "DVX",
  16454. "EVO",
  16455. "DAT",
  16456. "OGG",
  16457. "OGM",
  16458. ];
  16459. if (type == 1) {
  16460. _this.studyJuri[0].cover.push({
  16461. name: file.name,
  16462. url: data.Location,
  16463. uid: file.uid,
  16464. });
  16465. if (
  16466. c.indexOf(
  16467. _this.studyJuri[0].cover[0].url
  16468. .split(".")
  16469. [
  16470. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16471. ].toLocaleUpperCase()
  16472. ) != -1
  16473. ) {
  16474. _this.fileType = 2;
  16475. } else if (
  16476. b.indexOf(
  16477. _this.studyJuri[0].cover[0].url
  16478. .split(".")
  16479. [
  16480. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16481. ].toLocaleUpperCase()
  16482. ) != -1
  16483. ) {
  16484. _this.fileType = 1;
  16485. } else if (
  16486. photoA.indexOf(
  16487. _this.studyJuri[0].cover[0].url
  16488. .split(".")
  16489. [
  16490. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16491. ].toLocaleUpperCase()
  16492. ) != -1
  16493. ) {
  16494. _this.fileType = 0;
  16495. } else {
  16496. _this.fileType = 3;
  16497. }
  16498. _this.imgChange(null, null, type);
  16499. } else if (type == 2) {
  16500. _this.upToolImg = data.Location;
  16501. _this.imgChange(null, null, type);
  16502. _this.addCourseWorks(i);
  16503. } else if (type == 4) {
  16504. _this.addPz("3", data.Location);
  16505. } else if (type == 5) {
  16506. _this.addImgDrawImG(data.Location);
  16507. } else if (type == 6) {
  16508. var _ftype = 1;
  16509. if (
  16510. c.indexOf(
  16511. data.Location.split(".")[
  16512. data.Location.split(".").length - 1
  16513. ].toLocaleUpperCase()
  16514. ) != -1
  16515. ) {
  16516. _ftype = 5;
  16517. } else if (
  16518. b.indexOf(
  16519. data.Location.split(".")[
  16520. data.Location.split(".").length - 1
  16521. ].toLocaleUpperCase()
  16522. ) != -1
  16523. ) {
  16524. _ftype = 4;
  16525. } else {
  16526. _ftype = 1;
  16527. }
  16528. _this.plworkFile.push({
  16529. name: file.name,
  16530. url: data.Location,
  16531. uid: file.uid,
  16532. fileType: _ftype,
  16533. username:
  16534. _this.plworkFile.length > 10
  16535. ? _this.plworkFile.length + 1
  16536. : "0" + (_this.plworkFile.length + 1),
  16537. });
  16538. } else if (type == 7) {
  16539. _this.addCourseWorksGong(i, data.Location, 32);
  16540. } else if (type == 8) {
  16541. _this.addCourseWorksGong(i, data.Location, 57);
  16542. }
  16543. _this.imgChange(null, null, type);
  16544. console.log(data.Location);
  16545. // _this.$message.success('上传成功'+data.Location)
  16546. }
  16547. });
  16548. }
  16549. },
  16550. async beforeUpload3(event, type, i) {
  16551. // this.$message.success('进入上传')
  16552. let file = "";
  16553. let cfindex2 = 0;
  16554. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16555. file = event.target.files[cfindex];
  16556. var credentials = {
  16557. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16558. secretAccessKey: "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",
  16559. }; //秘钥形式的登录上传
  16560. window.AWS.config.update(credentials);
  16561. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16562. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16563. var _this = this;
  16564. // _this.progress = 0;
  16565. _this.proVisible2 = true;
  16566. var b = [
  16567. "DOC",
  16568. "DOCX",
  16569. "DOCM",
  16570. "DOTM",
  16571. "DOTX",
  16572. "PPTX",
  16573. "PPSX",
  16574. "PPT",
  16575. "PPS",
  16576. "PPTM",
  16577. "POTM",
  16578. "PPAM",
  16579. "POTX",
  16580. "PPSM",
  16581. ];
  16582. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16583. var photoA = [
  16584. "BMP",
  16585. "GIF",
  16586. "PNG",
  16587. "JPEG",
  16588. "JPG",
  16589. "TIF",
  16590. "PCX",
  16591. "TGA",
  16592. "EXIF",
  16593. "FPX",
  16594. "SVG",
  16595. "APNG",
  16596. ];
  16597. if (
  16598. photoA.indexOf(
  16599. file.name
  16600. .split(".")
  16601. [file.name.split(".").length - 1].toLocaleUpperCase()
  16602. ) != -1 &&
  16603. type != 4
  16604. ) {
  16605. // const blob = await imageConversion.compress(file, 0.8)
  16606. file = await this.pngToWhiteBg(file);
  16607. const blob = await imageConversion.compressAccurately(file, 256);
  16608. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16609. file = new File([blob], file.name, { type: file.type });
  16610. }
  16611. if (file) {
  16612. var params = {
  16613. Key:
  16614. file.name.split(".")[0] +
  16615. new Date().getTime() +
  16616. "." +
  16617. file.name.split(".")[file.name.split(".").length - 1],
  16618. ContentType: file.type,
  16619. Body: file,
  16620. "Access-Control-Allow-Credentials": "*",
  16621. ACL: "public-read",
  16622. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16623. var options = {
  16624. // partSize: 2048 * 1024 * 1024,
  16625. partSize: 1024 * 1024 * 1024,
  16626. queueSize: 2,
  16627. leavePartsOnError: true,
  16628. };
  16629. bucket
  16630. .upload(params, options)
  16631. .on("httpUploadProgress", function (evt) {
  16632. //这里可以写进度条
  16633. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16634. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16635. })
  16636. .send(function (err, data) {
  16637. // _this.progress = 100;
  16638. cfindex2++;
  16639. setTimeout(() => {
  16640. if (
  16641. cfindex2 == event.target.files.length - 1 ||
  16642. cfindex2 > event.target.files.length - 1
  16643. ) {
  16644. _this.proVisible2 = false;
  16645. }
  16646. }, 1000);
  16647. if (err) {
  16648. var a = _this.$refs.upload1.uploadFiles;
  16649. a.splice(a.length - 1, a.length);
  16650. _this.$message.error("上传失败");
  16651. } else {
  16652. // _this.$message.success('上传成功')
  16653. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16654. var c = [
  16655. "AVI",
  16656. "NAVI",
  16657. "MPEG",
  16658. "ASF",
  16659. "MOV",
  16660. "WMV",
  16661. "3GP",
  16662. "RM",
  16663. "RMVB",
  16664. "FLV",
  16665. "F4V",
  16666. "H.264",
  16667. "H.265",
  16668. "REAL VIDEO",
  16669. "MKV",
  16670. "WebM",
  16671. "HDDVD",
  16672. "MP4",
  16673. "MPG",
  16674. "M4V",
  16675. "MGV",
  16676. "OGV",
  16677. "QTM",
  16678. "STR",
  16679. "AMC",
  16680. "DVX",
  16681. "EVO",
  16682. "DAT",
  16683. "OGG",
  16684. "OGM",
  16685. ];
  16686. if (type == 1) {
  16687. _this.studyJuri[0].cover.push({
  16688. name: file.name,
  16689. url: data.Location,
  16690. uid: file.uid,
  16691. });
  16692. if (
  16693. c.indexOf(
  16694. _this.studyJuri[0].cover[0].url
  16695. .split(".")
  16696. [
  16697. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16698. ].toLocaleUpperCase()
  16699. ) != -1
  16700. ) {
  16701. _this.fileType = 2;
  16702. } else if (
  16703. b.indexOf(
  16704. _this.studyJuri[0].cover[0].url
  16705. .split(".")
  16706. [
  16707. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16708. ].toLocaleUpperCase()
  16709. ) != -1
  16710. ) {
  16711. _this.fileType = 1;
  16712. } else {
  16713. _this.fileType = 0;
  16714. }
  16715. _this.imgChange(null, null, type);
  16716. } else if (type == 2) {
  16717. _this.upToolImg = data.Location;
  16718. _this.imgChange(null, null, type);
  16719. _this.addCourseWorks(i);
  16720. } else if (type == 4) {
  16721. _this.addPz("3", data.Location);
  16722. } else if (type == 5) {
  16723. _this.addImgDrawImG(data.Location);
  16724. } else if (type == 6) {
  16725. var _ftype = 1;
  16726. if (
  16727. c.indexOf(
  16728. data.Location.split(".")[
  16729. data.Location.split(".").length - 1
  16730. ].toLocaleUpperCase()
  16731. ) != -1
  16732. ) {
  16733. _ftype = 5;
  16734. } else if (
  16735. b.indexOf(
  16736. data.Location.split(".")[
  16737. data.Location.split(".").length - 1
  16738. ].toLocaleUpperCase()
  16739. ) != -1
  16740. ) {
  16741. _ftype = 4;
  16742. } else {
  16743. _ftype = 1;
  16744. }
  16745. _this.plworkFile.push({
  16746. name: file.name,
  16747. url: data.Location,
  16748. uid: file.uid,
  16749. fileType: _ftype,
  16750. username:
  16751. _this.plworkFile.length + 1 > 9
  16752. ? _this.plworkFile.length + 1
  16753. : "0" + (_this.plworkFile.length + 1),
  16754. });
  16755. }
  16756. _this.imgChange(null, null, type);
  16757. console.log(data.Location);
  16758. // _this.$message.success('上传成功'+data.Location)
  16759. }
  16760. });
  16761. }
  16762. }
  16763. },
  16764. beforeUpload2(event, type) {
  16765. var file = event.target.files[0];
  16766. var credentials = {
  16767. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16768. secretAccessKey: "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",
  16769. }; //秘钥形式的登录上传
  16770. window.AWS.config.update(credentials);
  16771. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16772. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16773. var _this = this;
  16774. _this.progress = 0;
  16775. _this.proVisible = true;
  16776. if (file) {
  16777. var params = {
  16778. Key:
  16779. file.name.split(".")[0] +
  16780. new Date().getTime() +
  16781. "." +
  16782. file.name.split(".")[file.name.split(".").length - 1],
  16783. ContentType: file.type,
  16784. Body: file,
  16785. "Access-Control-Allow-Credentials": "*",
  16786. ACL: "public-read",
  16787. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16788. var options = {
  16789. partSize: 2048 * 1024 * 1024,
  16790. queueSize: 2,
  16791. leavePartsOnError: true,
  16792. };
  16793. bucket
  16794. .upload(params, options)
  16795. .on("httpUploadProgress", function (evt) {
  16796. //这里可以写进度条
  16797. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16798. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16799. })
  16800. .send(function (err, data) {
  16801. _this.progress = 100;
  16802. setTimeout(() => {
  16803. _this.proVisible = false;
  16804. }, 1000);
  16805. if (err) {
  16806. var a = _this.$refs.upload1.uploadFiles;
  16807. a.splice(a.length - 1, a.length);
  16808. _this.$message.error("上传失败");
  16809. } else {
  16810. if (type == 2) {
  16811. _this.studyJuri[0].upVedio.push({
  16812. name: file.name,
  16813. url: data.Location,
  16814. uid: file.uid,
  16815. });
  16816. _this.imgChange(null, null, type);
  16817. } else if (type == 3) {
  16818. _this.studyJuri[0].upFile.push({
  16819. name: file.name,
  16820. url: data.Location,
  16821. uid: file.uid,
  16822. });
  16823. _this.imgChange(null, null, type);
  16824. }
  16825. console.log(data.Location);
  16826. }
  16827. });
  16828. }
  16829. },
  16830. allScrell() {
  16831. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16832. },
  16833. nextOrpreSteps(t) {
  16834. if (this.IsFollow && this.tType == 2) {
  16835. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16836. return;
  16837. }
  16838. var b = this.chapInfoList.length - 1;
  16839. if (t == 0) {
  16840. if (this.courseType == 0) {
  16841. if (this.taskCount == 0) {
  16842. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16843. if (this.IsLookOpen) {
  16844. if (
  16845. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16846. ) {
  16847. if (
  16848. this.courseDetail.userid != this.userid &&
  16849. (!this.courseDetail.course_teacher ||
  16850. (this.courseDetail.course_teacher &&
  16851. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16852. ) {
  16853. this.$message.error("任务未解锁");
  16854. } else {
  16855. this.$message.error("上一任务未解锁");
  16856. }
  16857. return;
  16858. }
  16859. }
  16860. this.navList[this.courseType].isOpen = false;
  16861. this.courseType = b;
  16862. this.taskCount =
  16863. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16864. .length - 1;
  16865. this.navList[this.courseType].isOpen = true;
  16866. } else {
  16867. this.taskCount--;
  16868. }
  16869. } else {
  16870. if (this.taskCount == 0) {
  16871. this.navList[this.courseType].isOpen = false;
  16872. this.courseType--;
  16873. this.taskCount =
  16874. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16875. .length - 1;
  16876. this.navList[this.courseType].isOpen = true;
  16877. } else {
  16878. this.taskCount--;
  16879. }
  16880. }
  16881. } else {
  16882. if (this.courseType == b) {
  16883. if (
  16884. this.taskCount ==
  16885. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16886. 1
  16887. ) {
  16888. this.navList[this.courseType].isOpen = false;
  16889. this.courseType = 0;
  16890. this.taskCount = 0;
  16891. this.navList[this.courseType].isOpen = true;
  16892. } else {
  16893. var bbb = parseInt(this.taskCount) + 1;
  16894. if (
  16895. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16896. .isLook &&
  16897. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16898. (this.courseDetail.course_teacher &&
  16899. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16900. this.IsLookOpen
  16901. ) {
  16902. this.$message.error("任务未解锁");
  16903. return;
  16904. }
  16905. this.taskCount++;
  16906. if (this.IsLookOpen) {
  16907. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16908. this.taskCount
  16909. ].isLook = true;
  16910. this.addCourseState(3);
  16911. }
  16912. }
  16913. } else {
  16914. if (
  16915. this.taskCount ==
  16916. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16917. 1
  16918. ) {
  16919. var bbb = parseInt(this.courseType) + 1;
  16920. if (
  16921. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16922. this.courseDetail.userid != this.userid &&
  16923. (!this.courseDetail.course_teacher ||
  16924. (this.courseDetail.course_teacher &&
  16925. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16926. this.IsLookOpen
  16927. ) {
  16928. this.$message.error("任务未解锁");
  16929. return;
  16930. }
  16931. this.navList[this.courseType].isOpen = false;
  16932. this.courseType++;
  16933. this.taskCount = 0;
  16934. this.navList[this.courseType].isOpen = true;
  16935. } else {
  16936. var bbb = parseInt(this.taskCount) + 1;
  16937. if (
  16938. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16939. .isLook &&
  16940. this.courseDetail.userid != this.userid &&
  16941. (!this.courseDetail.course_teacher ||
  16942. (this.courseDetail.course_teacher &&
  16943. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16944. this.IsLookOpen
  16945. ) {
  16946. this.$message.error("任务未解锁");
  16947. return;
  16948. }
  16949. this.taskCount++;
  16950. }
  16951. if (this.IsLookOpen) {
  16952. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16953. this.taskCount
  16954. ].isLook = true;
  16955. this.addCourseState(3);
  16956. }
  16957. }
  16958. // if (
  16959. // this.taskCount ==
  16960. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16961. // ) {
  16962. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16963. // } else {
  16964. // this.taskCount++;
  16965. // }
  16966. }
  16967. document.scrollingElement.scrollTop = 0;
  16968. this.showType = 7;
  16969. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16970. // if (this.vedio[this.taskCount].length > 0) {
  16971. // var a =
  16972. // document.getElementsByClassName("box_course")[this.taskCount]
  16973. // .offsetHeight;
  16974. // document.getElementsByClassName("vedioList")[
  16975. // this.taskCount
  16976. // ].style.height = a + "px";
  16977. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16978. // a - 40 + "px";
  16979. // }
  16980. this.isNoHomeWork = false;
  16981. (this.studyJuri = [
  16982. {
  16983. content: "",
  16984. cover: [],
  16985. upVedio: [],
  16986. upFile: [],
  16987. },
  16988. ]),
  16989. (this.radio = []);
  16990. this.isClickNav = "";
  16991. this.selectPz();
  16992. this.getHomeWork();
  16993. this.getCourseDetail(2);
  16994. this.$forceUpdate();
  16995. if ((this.courseDetail.userid == this.userid ||
  16996. (this.courseDetail.course_teacher &&
  16997. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16998. this.setCTask();
  16999. }
  17000. },
  17001. openTask(s, n, i,ctype) {
  17002. // 这段代码没用开启了跟随学生侧边栏会隐藏掉
  17003. if (this.IsFollow && this.tType == 2) {
  17004. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17005. return;
  17006. }
  17007. if (this.IsLookOpen &&
  17008. this.courseDetail.userid != this.userid &&
  17009. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17010. if (
  17011. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17012. this.courseDetail.userid != this.userid &&
  17013. (!this.courseDetail.course_teacher ||
  17014. (this.courseDetail.course_teacher &&
  17015. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17016. ) {
  17017. this.$message.error("任务未解锁");
  17018. return;
  17019. }
  17020. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17021. if (
  17022. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17023. .isLook
  17024. ) {
  17025. this.$message.error("上一任务未解锁");
  17026. return;
  17027. }
  17028. } else if (s > this.courseType) {
  17029. if (n > 0) {
  17030. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17031. this.$message.error("上一任务未解锁");
  17032. return;
  17033. }
  17034. } else {
  17035. if (
  17036. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17037. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17038. ].isLook
  17039. ) {
  17040. this.$message.error("上一任务未解锁");
  17041. return;
  17042. }
  17043. }
  17044. }
  17045. }
  17046. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  17047. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17048. return;
  17049. }
  17050. let flag = this.courseType==s;
  17051. this.courseType = s;
  17052. this.navId = i;
  17053. this.taskCount = n;
  17054. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17055. if(ctype == 2){
  17056. this.navList[s].task[n].isOpen = true
  17057. }else{
  17058. this.navList[this.courseType].task[this.taskCount].isOpen =
  17059. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17060. }
  17061. if (this.IsLookOpen) {
  17062. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17063. this.taskCount
  17064. ].isLook = true;
  17065. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17066. this.addCourseState(3,yym);
  17067. }
  17068. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17069. this.isCloseList[ci].isClose = 0;
  17070. this.isCloseList[ci].isCloseBoolean = false;
  17071. this.$nextTick(()=>{
  17072. setTimeout(()=>{
  17073. setTimeout(()=>{
  17074. this.panToolHeight('tool-'+ci);
  17075. }, 0)
  17076. }, 0)
  17077. })
  17078. }
  17079. this.showType = 0;
  17080. this.isNoHomeWork = false;
  17081. (this.studyJuri = [
  17082. {
  17083. content: "",
  17084. cover: [],
  17085. upVedio: [],
  17086. upFile: [],
  17087. },
  17088. ]),
  17089. (this.radio = []);
  17090. document.scrollingElement.scrollTop = 0;
  17091. // setTimeout(() => {
  17092. // let a = document.getElementById(i);
  17093. // if (a.offsetTop - 110 == 0) {
  17094. // window.scrollTo(0, 0);
  17095. // } else {
  17096. // window.scrollTo(0, a.offsetTop);
  17097. // }
  17098. // }, 0);
  17099. for (var z = 0; z < this.navList.length; z++) {
  17100. for (var q = 0; q < this.navList[z].task.length; q++) {
  17101. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17102. this.navList[z].task[q].tool[w].isTool = false;
  17103. }
  17104. }
  17105. }
  17106. this.selectPz();
  17107. this.getHomeWork();
  17108. this.getCourseDetail(2);
  17109. if ((this.courseDetail.userid == this.userid ||
  17110. (this.courseDetail.course_teacher &&
  17111. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17112. this.setCTask();
  17113. }
  17114. if(flag){
  17115. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17116. }else{
  17117. 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>`)
  17118. }
  17119. },
  17120. get(i) {
  17121. if (this.IsFollow && this.tType == 2) {
  17122. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17123. return;
  17124. }
  17125. // for(var k=0;k<this.navList.length;k++){
  17126. // this.navList[k].isOpen = false;
  17127. // }
  17128. // this.navList[i].isOpen = true;
  17129. let a = this.navList[i].isOpen
  17130. this.navList[i].isOpen = !this.navList[i].isOpen;
  17131. this.$forceUpdate()
  17132. if (this.navList[i].isOpen) {
  17133. this.openTask(i, 0, (i + "-0"),2);
  17134. }
  17135. },
  17136. addQuestion() {
  17137. this.answerList.push({
  17138. answerTitle: this.answerQ,
  17139. answer: this.questionAnswer,
  17140. });
  17141. let params = [
  17142. {
  17143. uid: this.userid,
  17144. cid: this.id,
  17145. stage: this.courseType,
  17146. task: this.taskCount,
  17147. tool: this.toolindex,
  17148. content: JSON.stringify(this.answerList),
  17149. type: 3,
  17150. },
  17151. ];
  17152. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17153. this.homeWorkLoading = true
  17154. this.ajax
  17155. .post(this.$store.state.api + "addCourseWorks", params)
  17156. .then((res) => {
  17157. this.$message({
  17158. message: "提交成功",
  17159. type: "success",
  17160. });
  17161. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17162. setTimeout(() => {
  17163. this.homeWorkLoading = false
  17164. }, 500);
  17165. this.answerList = [];
  17166. this.answerDialogVisible = false;
  17167. this.selectStudent();
  17168. this.selectSWorks();
  17169. this.selectSLook();
  17170. })
  17171. .catch((err) => {
  17172. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17173. setTimeout(() => {
  17174. this.homeWorkLoading = false
  17175. }, 500);
  17176. this.$message.error("提交失败");
  17177. console.error(err);
  17178. });
  17179. },
  17180. addQuestionTeacher() {
  17181. this.answerList.push({
  17182. answerTitle: this.answerQ,
  17183. answer: this.questionAnswer,
  17184. });
  17185. let params = [
  17186. {
  17187. uid: this.sStudent.userid,
  17188. cid: this.id,
  17189. stage: this.courseType,
  17190. task: this.taskCount,
  17191. tool: this.toolindex,
  17192. content: JSON.stringify(this.answerList),
  17193. type: 3,
  17194. ateacher: this.userid,
  17195. },
  17196. ];
  17197. this.ajax
  17198. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17199. .then((res) => {
  17200. this.$message({
  17201. message: "提交成功",
  17202. type: "success",
  17203. });
  17204. this.answerList = [];
  17205. this.questionAnswer = "";
  17206. this.answerDialogVisibleTeacher = false;
  17207. this.selectStudent();
  17208. this.selectSWorks();
  17209. this.selectSLook();
  17210. })
  17211. .catch((err) => {
  17212. this.$message.error("提交失败");
  17213. console.error(err);
  17214. });
  17215. },
  17216. refreshCourse() {
  17217. // window.location.reload();
  17218. this.navList = [];
  17219. this.getCourseDetail(1);
  17220. },
  17221. getCourseDetail(type, gindex) {
  17222. let loading;
  17223. if (type != 2) {
  17224. loading = this.$loading.service({
  17225. background: "rgba(255, 255, 255, 0.7)",
  17226. target: document.querySelector(".student_table"),
  17227. });
  17228. }
  17229. this.downLoading = false
  17230. // this.navList[0].isOpen = false;
  17231. // this.navList[this.courseType].isOpen = true;
  17232. // this.courseType = this.courseTypeLine;
  17233. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17234. let params = {
  17235. courseId: this.id,
  17236. };
  17237. this.ajax
  17238. .get(this.$store.state.api + "selectCourseDetail3", params)
  17239. .then((res) => {
  17240. if ((this.courseDetail.userid == this.userid ||
  17241. (this.courseDetail.course_teacher &&
  17242. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17243. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17244. }
  17245. if (type != 2) {
  17246. loading.close();
  17247. if (
  17248. this.courseType >
  17249. JSON.parse(res.data[0][0].chapters).length - 1
  17250. ) {
  17251. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17252. }
  17253. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17254. .chapterInfo[0].taskJson;
  17255. var b = [
  17256. "AVI",
  17257. "NAVI",
  17258. "MPEG",
  17259. "ASF",
  17260. "MOV",
  17261. "WMV",
  17262. "3GP",
  17263. "RM",
  17264. "RMVB",
  17265. "FLV",
  17266. "F4V",
  17267. "H.264",
  17268. "H.265",
  17269. "REAL VIDEO",
  17270. "MKV",
  17271. "WebM",
  17272. "HDDVD",
  17273. "MP4",
  17274. "MPG",
  17275. "M4V",
  17276. "MGV",
  17277. "OGV",
  17278. "QTM",
  17279. "STR",
  17280. "AMC",
  17281. "DVX",
  17282. "EVO",
  17283. "DAT",
  17284. "OGG",
  17285. "OGM",
  17286. "MP3",
  17287. ];
  17288. let _chapterData = [];
  17289. for (var i = 0; i < a.length; i++) {
  17290. var c = a[i].chapterData;
  17291. this.vedio[i] = [];
  17292. this.textList[i] = [];
  17293. this.lineList[i] = [];
  17294. this.chapToolList[i] = [];
  17295. this.file[i] = [];
  17296. this.fileC[i] = [];
  17297. _chapterData[i] = c.filter((el) => {
  17298. return el.type != 12;
  17299. });
  17300. this.fileC[i] = c.filter((el) => {
  17301. return el.type == 12;
  17302. });
  17303. if (this.tType == 2) {
  17304. if (this.fileC[i].length) {
  17305. let yym1 = this.fileC[i].filter(e=>{
  17306. if(!converter(e.name).includes(converter("教案"))){
  17307. return e
  17308. }
  17309. })
  17310. this.fileC[i] = yym1
  17311. }
  17312. }
  17313. // else if (c[j].type == 12) {
  17314. // this.fileC[i].push(c[j]);
  17315. // }
  17316. for (var j = 0; j < c.length; j++) {
  17317. if (c[j].type == 7) {
  17318. this.chapToolList[i].push(c[j]);
  17319. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17320. this.lineList[i].push(c[j]);
  17321. } else if (c[j].type == 6) {
  17322. this.textList[i].push(c[j]);
  17323. } else {
  17324. if (
  17325. b.indexOf(
  17326. c[j].url
  17327. .split(".")
  17328. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17329. ) != -1
  17330. ) {
  17331. this.vedio[i].push(c[j]);
  17332. } else {
  17333. this.file[i].push(c[j]);
  17334. }
  17335. }
  17336. }
  17337. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17338. d.sources[0].src =
  17339. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17340. this.playerO[i] = d;
  17341. }
  17342. this.courseDetail = res.data[0][0];
  17343. if(this.tType == 2){
  17344. this.tcid = this.arrayToArray(
  17345. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17346. this.classId ? this.classId.split(",") : []
  17347. ).join(",");
  17348. }else{
  17349. this.tcid = this.arrayToArray(
  17350. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17351. this.tcid2 ? this.tcid2.split(",") : []
  17352. ).join(",");
  17353. }
  17354. this.evalua = res.data[0][0].evaId;
  17355. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17356. this.courseType
  17357. ];
  17358. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17359. if (this.tcid && res.data[1].length) {
  17360. let _inviteA = [];
  17361. for (var ik = 0; ik < res.data[1].length; ik++) {
  17362. _inviteA.push({
  17363. cid: res.data[1][ik].classid,
  17364. ic: res.data[1][ik].code,
  17365. });
  17366. }
  17367. for (var ik = 0; ik < _inviteA.length; ik++) {
  17368. if (
  17369. this.arrayToArray(
  17370. _inviteA[ik].cid.split(","),
  17371. this.tcid.split(",")
  17372. ).length
  17373. ) {
  17374. this.inviteCode = _inviteA[ik].ic;
  17375. break;
  17376. }
  17377. }
  17378. }
  17379. for (var l = 0; l < this.chapInfoList.length; l++) {
  17380. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17381. for (var m = 0; m < w.length; m++) {
  17382. w[m].id = l + "-" + m;
  17383. }
  17384. }
  17385. if (
  17386. _chapterData[this.taskCount].length &&
  17387. _chapterData[this.taskCount][0].type == 2
  17388. ) {
  17389. this.showType = 0;
  17390. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17391. } else {
  17392. if (_chapterData[this.taskCount].length > 0) {
  17393. let _url = _chapterData[this.taskCount][0].url;
  17394. if (
  17395. _chapterData[this.taskCount][0].type == 8 ||
  17396. _chapterData[this.taskCount][0].type == 14 ||
  17397. _chapterData[this.taskCount][0].type == 15
  17398. ) {
  17399. this.showType = 2;
  17400. if (
  17401. _url.indexOf("https://") == -1 &&
  17402. _url.indexOf("http://") == -1
  17403. ) {
  17404. _url = "https://" + _url;
  17405. }
  17406. this.pptImgUrl1 = _url;
  17407. } else if (_chapterData[this.taskCount][0].type == 3) {
  17408. if (
  17409. _url
  17410. .split(".")
  17411. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17412. ) {
  17413. this.showType = 3;
  17414. this.pptImgUrl1 = _url;
  17415. } else if (
  17416. this.isAssetTypeAnImage(
  17417. _url
  17418. .split(".")
  17419. [_url.split(".").length - 1].toLocaleLowerCase()
  17420. )
  17421. ) {
  17422. this.showType = 4;
  17423. this.pptImgUrl1 = _url;
  17424. } else {
  17425. this.showType = 2;
  17426. this.pptImgUrl1 =
  17427. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17428. encodeURIComponent(_url);
  17429. }
  17430. } else if (_chapterData[this.taskCount][0].type == 13) {
  17431. this.showType = 4;
  17432. this.pptImgUrl1 = _url;
  17433. } else if (_chapterData[this.taskCount][0].type == 6) {
  17434. this.showType = 1;
  17435. this.text = this.textList[this.taskCount][0];
  17436. } else if (_chapterData[this.taskCount][0].type == 16) {
  17437. this.showType = 16;
  17438. this.pptImgUrl1 = _url;
  17439. } else if (_chapterData[this.taskCount][0].type == 17) {
  17440. this.showType = 16;
  17441. this.pptImgUrl1 = _url;
  17442. }
  17443. }
  17444. }
  17445. this.isClickNav = 0;
  17446. if (
  17447. !_chapterData[this.taskCount].length ||
  17448. _chapterData[this.taskCount][0].type == 12
  17449. ) {
  17450. this.isClickNav = "";
  17451. this.showType = "";
  17452. }
  17453. if (this.tType == 2) {
  17454. _chapterData.forEach((e,i)=>{
  17455. if (e.length) {
  17456. let yym = e.filter(k=>{
  17457. if(!converter(k.name).includes(converter("教案"))){
  17458. return k
  17459. }
  17460. })
  17461. _chapterData[i] = yym
  17462. }
  17463. })
  17464. }
  17465. this.vChapterData = _chapterData;
  17466. } else {
  17467. this.showType = 0;
  17468. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17469. .chapterInfo[0].taskJson;
  17470. var b = [
  17471. "AVI",
  17472. "NAVI",
  17473. "MPEG",
  17474. "ASF",
  17475. "MOV",
  17476. "WMV",
  17477. "3GP",
  17478. "RM",
  17479. "RMVB",
  17480. "FLV",
  17481. "F4V",
  17482. "H.264",
  17483. "H.265",
  17484. "REAL VIDEO",
  17485. "MKV",
  17486. "WebM",
  17487. "HDDVD",
  17488. "MP4",
  17489. "MPG",
  17490. "M4V",
  17491. "MGV",
  17492. "OGV",
  17493. "QTM",
  17494. "STR",
  17495. "AMC",
  17496. "DVX",
  17497. "EVO",
  17498. "DAT",
  17499. "OGG",
  17500. "OGM",
  17501. "MP3",
  17502. ];
  17503. let _chapterData = [];
  17504. for (var i = 0; i < a.length; i++) {
  17505. var c = a[i].chapterData;
  17506. this.vedio[i] = [];
  17507. this.textList[i] = [];
  17508. this.lineList[i] = [];
  17509. this.chapToolList[i] = [];
  17510. this.file[i] = [];
  17511. this.fileC[i] = [];
  17512. _chapterData[i] = c.filter((el) => {
  17513. return el.type != 12;
  17514. });
  17515. this.fileC[i] = c.filter((el) => {
  17516. return el.type == 12;
  17517. });
  17518. if (this.tType == 2) {
  17519. if (this.fileC[i].length) {
  17520. let yym1 = this.fileC[i].filter(e=>{
  17521. if(!converter(e.name).includes(converter("教案"))){
  17522. return e
  17523. }
  17524. })
  17525. this.fileC[i] = yym1
  17526. }
  17527. }
  17528. for (var j = 0; j < c.length; j++) {
  17529. if (c[j].type == 7) {
  17530. this.chapToolList[i].push(c[j]);
  17531. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17532. this.lineList[i].push(c[j]);
  17533. } else if (c[j].type == 6) {
  17534. this.textList[i].push(c[j]);
  17535. } else {
  17536. if (
  17537. b.indexOf(
  17538. c[j].url
  17539. .split(".")
  17540. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17541. ) != -1
  17542. ) {
  17543. this.vedio[i].push(c[j]);
  17544. } else {
  17545. this.file[i].push(c[j]);
  17546. }
  17547. }
  17548. }
  17549. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17550. d.sources[0].src =
  17551. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17552. this.playerO[i] = d;
  17553. }
  17554. if (
  17555. _chapterData[this.taskCount].length &&
  17556. _chapterData[this.taskCount][0].type == 2
  17557. ) {
  17558. this.showType = 0;
  17559. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17560. } else {
  17561. if (_chapterData[this.taskCount].length > 0) {
  17562. let _url = _chapterData[this.taskCount][0].url;
  17563. if (
  17564. _chapterData[this.taskCount][0].type == 8 ||
  17565. _chapterData[this.taskCount][0].type == 14 ||
  17566. _chapterData[this.taskCount][0].type == 15
  17567. ) {
  17568. this.showType = 2;
  17569. if (
  17570. _url.indexOf("https://") == -1 &&
  17571. _url.indexOf("http://") == -1
  17572. ) {
  17573. _url = "https://" + _url;
  17574. }
  17575. this.pptImgUrl1 = _url;
  17576. } else if (_chapterData[this.taskCount][0].type == 3) {
  17577. if (
  17578. _url
  17579. .split(".")
  17580. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17581. ) {
  17582. this.showType = 3;
  17583. this.pptImgUrl1 = _url;
  17584. } else if (
  17585. this.isAssetTypeAnImage(
  17586. _url
  17587. .split(".")
  17588. [_url.split(".").length - 1].toLocaleLowerCase()
  17589. )
  17590. ) {
  17591. this.showType = 4;
  17592. this.pptImgUrl1 = _url;
  17593. } else {
  17594. this.showType = 2;
  17595. this.pptImgUrl1 =
  17596. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17597. encodeURIComponent(_url);
  17598. }
  17599. } else if (_chapterData[this.taskCount][0].type == 13) {
  17600. this.showType = 4;
  17601. this.pptImgUrl1 = _url;
  17602. } else if (_chapterData[this.taskCount][0].type == 6) {
  17603. this.showType = 1;
  17604. this.text = this.textList[this.taskCount][0];
  17605. } else if (_chapterData[this.taskCount][0].type == 16) {
  17606. this.showType = 16;
  17607. this.pptImgUrl1 = _url;
  17608. } else if (_chapterData[this.taskCount][0].type == 17) {
  17609. this.showType = 16;
  17610. this.pptImgUrl1 = _url;
  17611. }
  17612. }
  17613. }
  17614. this.isClickNav = 0;
  17615. if (
  17616. !_chapterData[this.taskCount].length ||
  17617. _chapterData[this.taskCount][0].type == 12
  17618. ) {
  17619. this.isClickNav = "";
  17620. this.showType = "";
  17621. }
  17622. console.log('_chapterData66666',_chapterData);
  17623. if (this.tType == 2) {
  17624. _chapterData.forEach((e,i)=>{
  17625. if (e.length) {
  17626. let yym = e.filter(k=>{
  17627. if(!converter(k.name).includes(converter("教案"))){
  17628. return k
  17629. }
  17630. })
  17631. _chapterData[i] = yym
  17632. }
  17633. })
  17634. }
  17635. this.vChapterData = _chapterData;
  17636. this.$forceUpdate();
  17637. }
  17638. // else {
  17639. // this.courseDetail = res.data[0][0];
  17640. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17641. // }
  17642. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17643. if (type == 10) {
  17644. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17645. console.log('this.userid',this.userid);
  17646. if (this.courseDetail.userid == this.userid) {
  17647. // 开局关闭学生查看内容
  17648. this.StulookMode(true)
  17649. // 开局打开跟随模式
  17650. this.followingMode(true)
  17651. }
  17652. }
  17653. let _this = this;
  17654. if (_this.timer) {
  17655. clearInterval(_this.timer);
  17656. _this.timer = null;
  17657. }
  17658. if (_this.tcid) {
  17659. _this.getCourseGroup(gindex);
  17660. } else {
  17661. _this.selectSWorks(gindex);
  17662. }
  17663. _this.selectStudent();
  17664. _this.selectSLook();
  17665. _this.getPick();
  17666. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17667. // _this.setCTask();
  17668. // }
  17669. if (_this.dialogVisibleGroup) {
  17670. _this.groupJson =
  17671. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17672. _this.taskCount
  17673. ].toolChoose[_this.toolindex].groupJson;
  17674. }
  17675. _this.$nextTick(() => {
  17676. setTimeout(() => {
  17677. _this.checkEva();
  17678. }, 1000);
  17679. });
  17680. _this.timer = setInterval(function () {
  17681. // _this.getCourseDetail(2);
  17682. if (_this.tcid) {
  17683. _this.getCourseGroup();
  17684. } else {
  17685. _this.selectSWorks();
  17686. }
  17687. _this.selectStudent();
  17688. _this.selectSLook();
  17689. _this.getPick();
  17690. // _this.getSplitScreenData();
  17691. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17692. // _this.setCTask();
  17693. // }
  17694. if (_this.dialogVisibleGroup) {
  17695. _this.groupJson =
  17696. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17697. _this.taskCount
  17698. ].toolChoose[_this.toolindex].groupJson;
  17699. }
  17700. if (_this.tType == 4 || _this.ispzType == 4) {
  17701. _this.selectPz();
  17702. }
  17703. }, 5000);
  17704. if (_this.timer2 == null) {
  17705. _this.timer2 = setInterval(()=> {
  17706. _this.getSplitScreenData();//获取分屏数据
  17707. }, 5000);
  17708. }
  17709. _this.$nextTick(function () {
  17710. setTimeout(() => {
  17711. // var a =
  17712. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17713. // document.getElementsByClassName("vedioList")[0].style.height =
  17714. // a + "px";
  17715. // document.getElementsByClassName("navBox")[0].style.height =
  17716. // a - 40 + "px";
  17717. // if (_this.vedio[_this.taskCount].length > 0) {
  17718. // _this.vedioTime = [];
  17719. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17720. // _this.vedioTime[i] = document.getElementsByClassName(
  17721. // "vjs-duration-display"
  17722. // )[i].textContent;
  17723. // }
  17724. // }
  17725. }, 1000);
  17726. });
  17727. })
  17728. .catch((err) => {
  17729. loading.close();
  17730. console.error(err);
  17731. });
  17732. },
  17733. getCourseGroup(gindex) {
  17734. if(this.getCourseGroupLoading) return
  17735. this.getCourseGroupLoading = true
  17736. let params = {
  17737. cid: this.id,
  17738. classid: this.tcid ? this.tcid : "1",
  17739. };
  17740. this.ajax
  17741. .get(this.$store.state.api + "getCourseGroup", params)
  17742. .then((res) => {
  17743. if (res.data && res.data[0].length) {
  17744. if (!this.isGroup) {
  17745. let courseGroup = JSON.parse(res.data[0][0].group);
  17746. courseGroup.group = courseGroup.group.filter((el) => {
  17747. el.works = [];
  17748. return el;
  17749. });
  17750. if (courseGroup.isopen == 2) {
  17751. this.isGroup = false;
  17752. this.selectSWorks(gindex);
  17753. return;
  17754. }
  17755. this.courseGroup = courseGroup;
  17756. let groupPerson = res.data[1];
  17757. let group = JSON.parse(res.data[0][0].group).group;
  17758. let courseGroupStudent = {};
  17759. let courseGroupStudentUid = {};
  17760. for (var i = 0; i < group.length; i++) {
  17761. courseGroupStudent[group[i].id] = [];
  17762. courseGroupStudentUid[group[i].id] = [];
  17763. for (var j = 0; j < groupPerson.length; j++) {
  17764. if (groupPerson[j].groupCid == group[i].id) {
  17765. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17766. courseGroupStudentUid[group[i].id].push(
  17767. groupPerson[j].userid
  17768. );
  17769. }
  17770. }
  17771. }
  17772. this.courseGroupStudent = courseGroupStudent;
  17773. this.courseGroupStudentUid = courseGroupStudentUid;
  17774. }
  17775. if (this.courseGroup.isopen == 2) {
  17776. this.isGroup = false;
  17777. } else {
  17778. this.isGroup = true;
  17779. }
  17780. this.selectSWorks(gindex);
  17781. } else {
  17782. this.selectSWorks(gindex);
  17783. this.isGroup = false;
  17784. }
  17785. this.getCourseGroupLoading = false
  17786. })
  17787. .catch((err) => {
  17788. this.getCourseGroupLoading = false
  17789. // this.$message.error("网络不佳");
  17790. console.error(err);
  17791. });
  17792. },
  17793. setOperationTime() {
  17794. let _this = this;
  17795. if (_this.opertimer) {
  17796. clearInterval(_this.opertimer);
  17797. _this.opertimer = null;
  17798. }
  17799. _this.opertimer = setInterval(() => {
  17800. _this.setoTime("600");
  17801. }, 600000);
  17802. },
  17803. setoTime(time) {
  17804. let params = [
  17805. {
  17806. uid: this.userid,
  17807. cid: this.id,
  17808. type: "2",
  17809. time: time,
  17810. },
  17811. ];
  17812. this.ajax
  17813. .post(this.$store.state.api + "addOperationTimeT2", params)
  17814. .then((res) => {})
  17815. .catch((err) => {
  17816. console.error(err);
  17817. });
  17818. },
  17819. addPz(type, content) {
  17820. if (type == "1" && this.pzConText == "") {
  17821. this.$message.error("评论不能为空!");
  17822. return;
  17823. }
  17824. let params = [
  17825. {
  17826. cid: this.id,
  17827. uid: this.userid,
  17828. s: this.courseType,
  17829. t: this.taskCount,
  17830. c: type == "1" ? this.pzConText : content,
  17831. type: type,
  17832. },
  17833. ];
  17834. this.ajax
  17835. .post(this.$store.state.api + "addPz2", params)
  17836. .then((res) => {
  17837. this.$message({
  17838. message: "添加成功",
  17839. type: "success",
  17840. });
  17841. this.pzConText = "";
  17842. this.addPzDialog = false;
  17843. this.selectPz();
  17844. if(this.tType!=2){
  17845. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17846. }
  17847. })
  17848. .catch((err) => {
  17849. this.$message.error("添加失败");
  17850. console.error(err);
  17851. });
  17852. },
  17853. setReplyIndex(id, i) {
  17854. this.replyIndex = i;
  17855. this.replyPid = id;
  17856. this.replyDialogVisible = true;
  17857. },
  17858. addHf() {
  17859. if (this.reply == "") {
  17860. this.$message.error("回复不能为空!");
  17861. return;
  17862. }
  17863. let params = [
  17864. {
  17865. cid: this.id,
  17866. uid: this.userid,
  17867. s: this.courseType,
  17868. t: this.taskCount,
  17869. type: "1",
  17870. ct: 2,
  17871. pid: this.replyPid,
  17872. c: this.reply,
  17873. },
  17874. ];
  17875. this.ajax
  17876. .post(this.$store.state.api + "addHf", params)
  17877. .then((res) => {
  17878. this.reply = "";
  17879. this.$message({
  17880. message: "回复成功",
  17881. type: "success",
  17882. });
  17883. this.replyDialogVisible = false;
  17884. this.selectPz();
  17885. })
  17886. .catch((err) => {
  17887. this.$message.error("回复失败");
  17888. console.error(err);
  17889. });
  17890. },
  17891. deletePz(id) {
  17892. this.$confirm("确定删除此评论吗?", "提示", {
  17893. confirmButtonText: "确定",
  17894. cancelButtonText: "取消",
  17895. type: "warning",
  17896. })
  17897. .then(() => {
  17898. let params = [
  17899. {
  17900. id: id,
  17901. },
  17902. ];
  17903. this.ajax
  17904. .post(this.$store.state.api + "deletePz", params)
  17905. .then((res) => {
  17906. this.$message({
  17907. message: "删除成功",
  17908. type: "success",
  17909. });
  17910. this.selectPz();
  17911. })
  17912. .catch((err) => {
  17913. this.$message.error("网络异常");
  17914. console.error(err);
  17915. });
  17916. })
  17917. .catch(() => {});
  17918. },
  17919. deleteReply(id) {
  17920. this.$confirm("确定删除此回复吗?", "提示", {
  17921. confirmButtonText: "确定",
  17922. cancelButtonText: "取消",
  17923. type: "warning",
  17924. })
  17925. .then(() => {
  17926. let params = [
  17927. {
  17928. id: id,
  17929. },
  17930. ];
  17931. this.ajax
  17932. .post(this.$store.state.api + "deleteReply", params)
  17933. .then((res) => {
  17934. this.$message({
  17935. message: "删除成功",
  17936. type: "success",
  17937. });
  17938. this.selectPz();
  17939. })
  17940. .catch((err) => {
  17941. this.$message.error("网络异常");
  17942. console.error(err);
  17943. });
  17944. })
  17945. .catch(() => {});
  17946. },
  17947. setPz() {
  17948. if (this.ispzType == 4) {
  17949. this.ispzType = 0;
  17950. this.pzDialog = false;
  17951. return;
  17952. }
  17953. this.ispzType = 4;
  17954. this.pzDialog = true;
  17955. this.selectPz();
  17956. },
  17957. selectPz() {
  17958. if(this.selectPzLoading) return
  17959. this.selectPzLoading = true
  17960. let params = {
  17961. cid: this.id,
  17962. s: this.courseType,
  17963. t: this.taskCount,
  17964. type: this.pzStype,
  17965. uid: this.userid,
  17966. };
  17967. this.ajax
  17968. .get(this.$store.state.api + "selectPzListType", params)
  17969. .then((res) => {
  17970. this.pzList = res.data[0];
  17971. var a = res.data[1];
  17972. for (var i = 0; i < a.length; i++) {
  17973. for (var j = 0; j < this.pzList.length; j++) {
  17974. if (!this.pzList[j].hfList) {
  17975. this.pzList[j].hfList = [];
  17976. }
  17977. if (a[i].pid == this.pzList[j].id) {
  17978. this.pzList[j].hfList.push(a[i]);
  17979. }
  17980. }
  17981. }
  17982. this.selectPzLoading = false
  17983. })
  17984. .catch((err) => {
  17985. this.selectPzLoading = false
  17986. console.error(err);
  17987. });
  17988. },
  17989. // selectHf() {
  17990. // let params = {
  17991. // cid: this.id,
  17992. // s: this.courseType,
  17993. // t: this.taskCount,
  17994. // };
  17995. // this.ajax
  17996. // .get(this.$store.state.api + "selectHfList", params)
  17997. // .then((res) => {
  17998. // var a = res.data[0];
  17999. // for (var i = 0; i < a.length; i++) {
  18000. // for (var j = 0; j < this.pzList.length; j++) {
  18001. // if (!this.pzList[i].hfList) {
  18002. // this.pzList[i].hfList = [];
  18003. // }
  18004. // if (a[i].pid == this.pzList[j].id) {
  18005. // this.pzList[i].hfList.push(a[i]);
  18006. // }
  18007. // }
  18008. // }
  18009. // })
  18010. // .catch((err) => {
  18011. // console.error(err);
  18012. // });
  18013. // },
  18014. updateSLook() {
  18015. let params = {
  18016. sopen: this.sIsOpen == false ? 1 : 2,
  18017. cid: this.id,
  18018. };
  18019. this.ajax
  18020. .get(this.$store.state.api + "updateCourseSLook", params)
  18021. .then((res) => {
  18022. if (this.sIsOpen == true) {
  18023. this.$message({
  18024. message: "权限设置成功",
  18025. type: "success",
  18026. });
  18027. } else {
  18028. this.$message({
  18029. message: "权限关闭成功",
  18030. type: "success",
  18031. });
  18032. }
  18033. })
  18034. .catch((err) => {
  18035. console.error(err);
  18036. });
  18037. },
  18038. updateIsStulook(){
  18039. let params = [
  18040. {
  18041. sopen: this.IsStulook == false ? 2 : 1,
  18042. cid: this.id
  18043. }
  18044. ];
  18045. this.ajax
  18046. .post(this.$store.state.api + "updateCourseStulook", params)
  18047. .then(res => {
  18048. if (this.IsStulook == true) {
  18049. this.$message({
  18050. message: "学生查看内容资料权限已开启",
  18051. type: "success"
  18052. });
  18053. } else {
  18054. this.$message({
  18055. message: "关闭学生查看内容资料权限",
  18056. type: "success"
  18057. });
  18058. }
  18059. // this.setCTask();
  18060. })
  18061. .catch(err => {
  18062. console.error(err);
  18063. });
  18064. },
  18065. updateFollow() {
  18066. let params = [
  18067. {
  18068. sopen: this.IsFollow == false ? 1 : 2,
  18069. cid: this.id,
  18070. },
  18071. ];
  18072. this.ajax
  18073. .post(this.$store.state.api + "updateCourseFollow", params)
  18074. .then((res) => {
  18075. if (this.IsFollow == true) {
  18076. this.$message({
  18077. message: "跟随模式已开启",
  18078. type: "success",
  18079. });
  18080. } else {
  18081. this.$message({
  18082. message: "跟随模式已关闭",
  18083. type: "success",
  18084. });
  18085. }
  18086. this.setCTask();
  18087. })
  18088. .catch((err) => {
  18089. console.error(err);
  18090. });
  18091. },
  18092. setCTask() {
  18093. let params = [
  18094. {
  18095. sopen: this.courseType + "-" + this.taskCount,
  18096. cid: this.id,
  18097. },
  18098. ];
  18099. this.ajax
  18100. .post(this.$store.state.api + "updateCourseFollowC", params)
  18101. .then((res) => {})
  18102. .catch((err) => {
  18103. console.error(err);
  18104. });
  18105. },
  18106. updateLookOpen() {
  18107. let params = [
  18108. {
  18109. sopen: this.IsLookOpen == false ? 1 : 2,
  18110. cid: this.id,
  18111. },
  18112. ];
  18113. this.ajax
  18114. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18115. .then((res) => {
  18116. if (this.IsLookOpen == true) {
  18117. // if (this.courseType != 0 && this.taskCount != 0) {
  18118. // this.openTask(0, 0, "0-0");
  18119. // }
  18120. this.$message({
  18121. message: "权限设置成功",
  18122. type: "success",
  18123. });
  18124. } else {
  18125. this.$message({
  18126. message: "权限关闭成功",
  18127. type: "success",
  18128. });
  18129. }
  18130. this.getCourseState(2);
  18131. })
  18132. .catch((err) => {
  18133. console.error(err);
  18134. });
  18135. },
  18136. selectSLook() {
  18137. if(this.selectSLookLoading) return
  18138. this.selectSLookLoading = true
  18139. let params = {
  18140. cid: this.id,
  18141. };
  18142. this.ajax
  18143. .get(this.$store.state.api + "selectCourseSLook", params)
  18144. .then((res) => {
  18145. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18146. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18147. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18148. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18149. if (!this.IsLookOpen) {
  18150. this.setNavList();
  18151. }else {
  18152. this.getCourseState(1);
  18153. }
  18154. if ((this.IsFollow && this.tType == 2)) {
  18155. this.setContent2(false);
  18156. let _followC = res.data[0][0].followC.split("-");
  18157. if (
  18158. this.courseType != _followC[0] ||
  18159. this.taskCount != _followC[1]
  18160. ) {
  18161. this.navList[this.courseType].isOpen = false;
  18162. this.courseType = _followC[0];
  18163. this.navList[this.courseType].isOpen = true;
  18164. this.taskCount = parseInt(_followC[1]);
  18165. this.navId = res.data[0][0].followC;
  18166. document.scrollingElement.scrollTop = 0;
  18167. this.getCourseDetail(2);
  18168. }
  18169. }
  18170. this.selectSLookLoading = false
  18171. })
  18172. .catch((err) => {
  18173. this.selectSLookLoading = false
  18174. console.error(err);
  18175. });
  18176. },
  18177. setNavList() {
  18178. if (this.navList.length == 0) {
  18179. this.navList = [];
  18180. var copyList = [];
  18181. for (var l = 0; l < this.chapInfoList.length; l++) {
  18182. var q = this.chapInfoList[l].dyName;
  18183. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18184. var e;
  18185. copyList.push({
  18186. dyName: q,
  18187. isOpen: l === 0 ? true : false,
  18188. task: [],
  18189. });
  18190. for (var r = 0; r < w.length; r++) {
  18191. e = w[r].task;
  18192. if (this.chapInfoList[l].easy == 1) {
  18193. copyList[l].task.push({
  18194. taskName: q,
  18195. id: l + "-" + r,
  18196. isLook: w[r].isLook,
  18197. isOpen: r === 0 ? true : false,
  18198. tool: [],
  18199. });
  18200. } else {
  18201. copyList[l].task.push({
  18202. taskName: e,
  18203. id: l + "-" + r,
  18204. isLook: w[r].isLook,
  18205. isOpen: r === 0 ? true : false,
  18206. tool: [],
  18207. });
  18208. }
  18209. var t = w[r].toolChoose;
  18210. for (var k = 0; k < t.length; k++) {
  18211. var tool = t[k].tool[0];
  18212. copyList[l].task[r].tool.push({
  18213. tool: tool,
  18214. isTool: false,
  18215. });
  18216. }
  18217. // this.navId = this.navId ? this.navId : l + "-" + r;
  18218. // this.navId = l + "-" + r;
  18219. }
  18220. }
  18221. this.navList = copyList;
  18222. this.navList[0].isOpen = false;
  18223. this.navList[this.courseType].isOpen = true;
  18224. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18225. } else {
  18226. this.setNavList2();
  18227. }
  18228. },
  18229. setNavList2() {
  18230. for (var l = 0; l < this.chapInfoList.length; l++) {
  18231. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18232. for (var r = 0; r < w.length; r++) {
  18233. this.navList[l].task[r].isLook = w[r].isLook;
  18234. }
  18235. }
  18236. if (
  18237. this.IsLookOpen &&
  18238. !this.navList[this.courseType].task[this.taskCount].isLook
  18239. ) {
  18240. this.openTask(0, 0, "0-0");
  18241. }
  18242. this.$forceUpdate();
  18243. },
  18244. getCourseState(type) {
  18245. let params = {
  18246. cid: this.id,
  18247. };
  18248. this.ajax
  18249. .get(this.$store.state.api + "getCourseState", params)
  18250. .then((res) => {
  18251. // if (res.data[0].length > 0) {
  18252. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18253. // }
  18254. if (res.data[0].length > 0 && type == 1) {
  18255. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18256. this.setNavList();
  18257. this.$forceUpdate();
  18258. } else if (res.data[0].length > 0 && type == 2) {
  18259. this.addCourseState(2);
  18260. } else {
  18261. // this.addCourseState(1);
  18262. }
  18263. })
  18264. .catch((err) => {
  18265. console.error(err);
  18266. });
  18267. },
  18268. addCourseState(type,val = '') {
  18269. let _state = val ? val : this.chapInfoList;
  18270. // this.courseType this.taskCount
  18271. if (type == 1 || type == 2) {
  18272. for (var i = 0; i < _state.length; i++) {
  18273. let el = _state[i].chapterInfo[0].taskJson;
  18274. for (var j = 0; j < el.length; j++) {
  18275. // if (i == 0 && j == 0) {
  18276. // el[j].isLook = true;
  18277. // } else {
  18278. // el[j].isLook = false;
  18279. // }
  18280. if (
  18281. this.courseType > i ||
  18282. (this.courseType == i && this.taskCount + 1 > j)
  18283. ) {
  18284. el[j].isLook = true;
  18285. } else {
  18286. el[j].isLook = false;
  18287. }
  18288. }
  18289. }
  18290. }
  18291. let params = [
  18292. {
  18293. cid: this.id,
  18294. state: JSON.stringify(_state),
  18295. },
  18296. ];
  18297. // 这两个接口是一样的type无所谓了
  18298. this.ajax
  18299. .post(
  18300. this.$store.state.api +
  18301. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18302. params
  18303. )
  18304. .then((res) => {
  18305. if (this.IsLookOpen) {
  18306. this.setNavList();
  18307. }
  18308. if (type == 3 && type == 2) {
  18309. this.getCourseState(1);
  18310. }
  18311. })
  18312. .catch((err) => {
  18313. console.error(err);
  18314. });
  18315. },
  18316. getHomeWork() {
  18317. let params = {
  18318. cid: this.id,
  18319. stage: this.courseType,
  18320. task: this.taskCount,
  18321. uid: this.userid,
  18322. };
  18323. this.ajax
  18324. .get(this.$store.state.api + "selectWork", params)
  18325. .then((res) => {
  18326. if (res.data[0].length > 0) {
  18327. this.studyJuri = JSON.parse(res.data[0][0].content);
  18328. this.isNoHomeWork = true;
  18329. }
  18330. })
  18331. .catch((err) => {
  18332. console.error(err);
  18333. });
  18334. },
  18335. isAssetTypeAnImage(ext) {
  18336. return (
  18337. [
  18338. "png",
  18339. "jpg",
  18340. "jpeg",
  18341. "bmp",
  18342. "gif",
  18343. "webp",
  18344. "psd",
  18345. "svg",
  18346. "tiff",
  18347. ].indexOf(ext) !== -1
  18348. );
  18349. },
  18350. switchVideo(media) {
  18351. this.playerO = {};
  18352. this.playerOptions.poster = "";
  18353. this.playerOptions.sources[0].src = media;
  18354. this.playerO = this.playerOptions;
  18355. },
  18356. onPlayerPlay() {},
  18357. onPlayerTimeupdate(player) {
  18358. let gklog = player.cache_.currentTime; //当前播放的秒数
  18359. let a = player.cache_.duration; //视频的总时长
  18360. let gklog2 = parseInt(gklog);
  18361. // if(gklog2 == '3'){
  18362. // player.pause()
  18363. // setTimeout(()=>{
  18364. // player.currentTime(gklog2+1)
  18365. // player.play()
  18366. // },1000)
  18367. // }
  18368. console.log(" onPlayerTimeupdate!", gklog);
  18369. console.log(" onPlayerTimeupdate!", gklog2);
  18370. },
  18371. lookVedio(u, i) {
  18372. this.isClickNav = "";
  18373. // this.playerOptions.sources[0].src = u;
  18374. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18375. d.sources[0].src = u;
  18376. this.playerO[this.taskCount] = d;
  18377. this.showType = 0;
  18378. // this.isClickNav = "video" + i;
  18379. this.isClickNav = i;
  18380. this.$forceUpdate();
  18381. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18382. },
  18383. lookText(i, t) {
  18384. this.isClickNav = "";
  18385. // this.text = this.textList[i][t];
  18386. this.text = this.vChapterData[i][t];
  18387. // this.dialogVisible1 = true;
  18388. this.showType = 1;
  18389. // this.isClickNav = "text" + t;
  18390. this.isClickNav = t;
  18391. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18392. },
  18393. lookTools(i, t) {
  18394. this.chapTools = this.chapToolList[i][t];
  18395. this.dialogVisible2 = true;
  18396. },
  18397. async openFile(f,w) {
  18398. this.pptImgUrl = "";
  18399. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18400. if (
  18401. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18402. -1
  18403. ) {
  18404. let _uuurl = await this.checkLink(f);
  18405. this.pptImgUrl =
  18406. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18407. this.showPDF = false;
  18408. this.dialogVisible3 = true;
  18409. } else if (
  18410. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18411. ) {
  18412. this.pptImgUrl = f;
  18413. this.showPDF = true;
  18414. this.dialogVisible3 = true;
  18415. }
  18416. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18417. },
  18418. openTable(f) {
  18419. this.tableJson = JSON.parse(f.works);
  18420. this.dialogVisibleTable2 = true;
  18421. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18422. },
  18423. openWord(f) {
  18424. this.tableJson = JSON.parse(f.works);
  18425. this.dialogVisibleTable3 = true;
  18426. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18427. },
  18428. doUrl(url, i) {
  18429. this.isClickNav = "";
  18430. this.pptImgUrl1 = "";
  18431. this.showType = 2;
  18432. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18433. url = "https://" + url;
  18434. }
  18435. this.pptImgUrl1 = "";
  18436. this.diffKey = new Date().getTime();
  18437. setTimeout(() => {
  18438. this.pptImgUrl1 = url;
  18439. }, 500);
  18440. // this.isClickNav = "line" + i;
  18441. this.isClickNav = i;
  18442. this.$forceUpdate();
  18443. },
  18444. checkPhoto(f, i) {
  18445. this.showType = 4;
  18446. this.pptImgUrl1 = f.url;
  18447. this.isClickNav = i;
  18448. this.$forceUpdate();
  18449. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18450. },
  18451. checkHtml(f, i){
  18452. this.showType = 16;
  18453. this.pptImgUrl1 = f.url;
  18454. this.isClickNav = i;
  18455. this.$forceUpdate();
  18456. },
  18457. async downFile(f, i) {
  18458. this.isClickNav = "";
  18459. this.pptImgUrl1 = "";
  18460. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18461. if (
  18462. a.indexOf(
  18463. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18464. ) != -1
  18465. ) {
  18466. let _uuurl = await this.checkLink(f.url);
  18467. this.pptImgUrl1 =
  18468. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18469. // this.dialogVisible3 = true;
  18470. this.showType = 2;
  18471. } else if (
  18472. this.isAssetTypeAnImage(
  18473. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18474. )
  18475. ) {
  18476. this.showType = 4;
  18477. this.pptImgUrl1 = f.url;
  18478. } else if (
  18479. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18480. "PDF"
  18481. ) {
  18482. this.pptImgUrl1 = f.url;
  18483. // this.dialogVisible3 = true;
  18484. this.showType = 3;
  18485. } else {
  18486. window.open(this.file[i].url);
  18487. }
  18488. // this.isClickNav = "word" + i;
  18489. this.isClickNav = i;
  18490. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18491. },
  18492. downFileList(i) {
  18493. window.open(this.noImgList[i].url);
  18494. },
  18495. openAddWork() {
  18496. this.dialogVisible = true;
  18497. },
  18498. addBzWorks() {
  18499. let params = [
  18500. {
  18501. uid: this.userid,
  18502. cid: this.id,
  18503. stage: this.courseType,
  18504. task: this.taskCount,
  18505. tool: this.toolindex,
  18506. content: JSON.stringify(this.eScore),
  18507. type: 6,
  18508. },
  18509. ];
  18510. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18511. this.homeWorkLoading = true
  18512. this.ajax
  18513. .post(this.$store.state.api + "addCourseWorks", params)
  18514. .then((res) => {
  18515. this.$message({
  18516. message: "提交成功",
  18517. type: "success",
  18518. });
  18519. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18520. setTimeout(() => {
  18521. this.homeWorkLoading = false
  18522. }, 500);
  18523. this.eScore = { eBzText: "", eStar: [] };
  18524. this.studentEvalDialogVisible = false;
  18525. this.selectSWorks();
  18526. })
  18527. .catch((err) => {
  18528. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18529. setTimeout(() => {
  18530. this.homeWorkLoading = false
  18531. }, 500);
  18532. this.$message.error("提交失败");
  18533. console.error(err);
  18534. });
  18535. },
  18536. addBzWorksTeacher() {
  18537. let params = [
  18538. {
  18539. uid: this.sStudent.userid,
  18540. cid: this.id,
  18541. stage: this.courseType,
  18542. task: this.taskCount,
  18543. tool: this.toolindex,
  18544. content: JSON.stringify(this.eScore),
  18545. type: 6,
  18546. },
  18547. ];
  18548. this.ajax
  18549. .post(this.$store.state.api + "addCourseWorks", params)
  18550. .then((res) => {
  18551. this.$message({
  18552. message: "提交成功",
  18553. type: "success",
  18554. });
  18555. this.eScore = { eBzText: "", eStar: [] };
  18556. this.studentEvalDialogVisibleTeacher = false;
  18557. this.selectSWorks();
  18558. })
  18559. .catch((err) => {
  18560. this.$message.error("提交失败");
  18561. console.error(err);
  18562. });
  18563. },
  18564. addStudentAsk() {
  18565. if (!this.radio.length) {
  18566. this.$message.error("请选择选项");
  18567. return;
  18568. }
  18569. for (var i = 0; i < this.askJson.askCount; i++) {
  18570. if (
  18571. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18572. (this.radio[i] !== 0 && !this.radio[i])
  18573. ) {
  18574. this.$message.error("请选择选项");
  18575. return;
  18576. }
  18577. }
  18578. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18579. let params = [
  18580. {
  18581. uid: this.userid,
  18582. cid: this.id,
  18583. stage: this.courseType,
  18584. task: this.taskCount,
  18585. tool: this.toolindex,
  18586. content: JSON.stringify(this.askList),
  18587. type: 2,
  18588. },
  18589. ];
  18590. // console.log('params',params);
  18591. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18592. this.homeWorkLoading = true
  18593. this.ajax
  18594. .post(this.$store.state.api + "addCourseWorks", params)
  18595. .then((res) => {
  18596. this.$message({
  18597. message: "提交成功",
  18598. type: "success",
  18599. });
  18600. setTimeout(() => {
  18601. this.homeWorkLoading = false
  18602. }, 500);
  18603. this.askList = [];
  18604. this.dialogVisible5 = false;
  18605. this.selectStudent();
  18606. this.selectSWorks();
  18607. this.selectSLook();
  18608. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18609. })
  18610. .catch((err) => {
  18611. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18612. setTimeout(() => {
  18613. this.homeWorkLoading = false
  18614. }, 500);
  18615. this.$message.error("提交失败");
  18616. console.error(err);
  18617. });
  18618. },
  18619. addStudentAskTeacher() {
  18620. if (!this.radio.length) {
  18621. this.$message.error("请选择选项");
  18622. return;
  18623. }
  18624. for (var i = 0; i < this.askJson.askCount; i++) {
  18625. if (
  18626. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18627. (this.radio[i] !== 0 && !this.radio[i])
  18628. ) {
  18629. this.$message.error("请选择选项");
  18630. return;
  18631. }
  18632. }
  18633. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18634. let params = [
  18635. {
  18636. uid: this.sStudent.userid,
  18637. cid: this.id,
  18638. stage: this.courseType,
  18639. task: this.taskCount,
  18640. tool: this.toolindex,
  18641. content: JSON.stringify(this.askList),
  18642. type: 2,
  18643. },
  18644. ];
  18645. this.ajax
  18646. .post(this.$store.state.api + "addCourseWorks", params)
  18647. .then((res) => {
  18648. this.$message({
  18649. message: "提交成功",
  18650. type: "success",
  18651. });
  18652. this.askList = [];
  18653. this.dialogVisible5Teacher = false;
  18654. this.selectStudent();
  18655. this.selectSWorks();
  18656. this.selectSLook();
  18657. })
  18658. .catch((err) => {
  18659. this.$message.error("提交失败");
  18660. console.error(err);
  18661. });
  18662. },
  18663. addStudentTest() {
  18664. if (!this.radio.length) {
  18665. this.$message.error("请选择选项");
  18666. return;
  18667. }
  18668. for (var i = 0; i < this.testJson.testCount; i++) {
  18669. if (
  18670. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18671. (this.radio[i] !== 0 && !this.radio[i])
  18672. ) {
  18673. this.$message.error("请选择选项");
  18674. return;
  18675. }
  18676. }
  18677. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18678. let params = [
  18679. {
  18680. uid: this.userid,
  18681. cid: this.id,
  18682. stage: this.courseType,
  18683. task: this.taskCount,
  18684. tool: this.toolindex,
  18685. content: JSON.stringify(this.askList),
  18686. type: 8,
  18687. },
  18688. ];
  18689. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18690. this.homeWorkLoading = true
  18691. this.ajax
  18692. .post(this.$store.state.api + "addCourseWorks", params)
  18693. .then((res) => {
  18694. this.$message({
  18695. message: "提交成功",
  18696. type: "success",
  18697. });
  18698. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18699. setTimeout(() => {
  18700. this.homeWorkLoading = false
  18701. }, 500);
  18702. this.askList = [];
  18703. this.dialogVisibleChoice = false;
  18704. this.selectStudent();
  18705. this.selectSWorks();
  18706. this.selectSLook();
  18707. })
  18708. .catch((err) => {
  18709. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18710. setTimeout(() => {
  18711. this.homeWorkLoading = false
  18712. }, 500);
  18713. this.$message.error("提交失败");
  18714. console.error(err);
  18715. });
  18716. },
  18717. addStudentTestTeacher() {
  18718. if (!this.radio.length) {
  18719. this.$message.error("请选择选项");
  18720. return;
  18721. }
  18722. for (var i = 0; i < this.testJson.testCount; i++) {
  18723. if (
  18724. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18725. (this.radio[i] !== 0 && !this.radio[i])
  18726. ) {
  18727. this.$message.error("请选择选项");
  18728. return;
  18729. }
  18730. }
  18731. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18732. let params = [
  18733. {
  18734. uid: this.sStudent.userid,
  18735. cid: this.id,
  18736. stage: this.courseType,
  18737. task: this.taskCount,
  18738. tool: this.toolindex,
  18739. content: JSON.stringify(this.askList),
  18740. type: 8,
  18741. },
  18742. ];
  18743. this.ajax
  18744. .post(this.$store.state.api + "addCourseWorks", params)
  18745. .then((res) => {
  18746. this.$message({
  18747. message: "提交成功",
  18748. type: "success",
  18749. });
  18750. this.askList = [];
  18751. this.dialogVisibleChoiceTeacher = false;
  18752. this.selectStudent();
  18753. this.selectSWorks();
  18754. this.selectSLook();
  18755. })
  18756. .catch((err) => {
  18757. this.$message.error("提交失败");
  18758. console.error(err);
  18759. });
  18760. },
  18761. addWork() {
  18762. if (this.studyJuri[0].content == "") {
  18763. this.$message.error("请将信息填写完整");
  18764. return;
  18765. } else if (this.studyJuri[0].cover.length == 0) {
  18766. this.$message.error("请将信息填写完整");
  18767. return;
  18768. } else if (this.studyJuri[0].upVedio.length == 0) {
  18769. this.$message.error("请将信息填写完整");
  18770. return;
  18771. }
  18772. if (this.isNoHomeWork) {
  18773. this.$confirm(
  18774. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18775. "提示",
  18776. {
  18777. confirmButtonText: "确定",
  18778. cancelButtonText: "取消",
  18779. type: "warning",
  18780. }
  18781. )
  18782. .then(() => {
  18783. let params = [
  18784. {
  18785. uid: this.userid,
  18786. cid: this.id,
  18787. stage: this.courseType,
  18788. task: this.taskCount,
  18789. content: JSON.stringify(this.studyJuri),
  18790. },
  18791. ];
  18792. this.ajax
  18793. .post(this.$store.state.api + "addWorks", params)
  18794. .then((res) => {
  18795. this.$message({
  18796. message: "提交成功",
  18797. type: "success",
  18798. });
  18799. this.isNoHomeWork = true;
  18800. this.dialogVisible = false;
  18801. })
  18802. .catch((err) => {
  18803. this.$message.error("提交失败");
  18804. console.error(err);
  18805. });
  18806. })
  18807. .catch(() => {});
  18808. } else {
  18809. let params = [
  18810. {
  18811. uid: this.userid,
  18812. cid: this.id,
  18813. stage: this.courseType,
  18814. task: this.taskCount,
  18815. content: JSON.stringify(this.studyJuri),
  18816. },
  18817. ];
  18818. this.ajax
  18819. .post(this.$store.state.api + "addWorks", params)
  18820. .then((res) => {
  18821. this.$message({
  18822. message: "提交成功",
  18823. type: "success",
  18824. });
  18825. this.isNoHomeWork = true;
  18826. this.dialogVisible = false;
  18827. })
  18828. .catch((err) => {
  18829. this.$message.error("提交失败");
  18830. console.error(err);
  18831. });
  18832. }
  18833. },
  18834. selectCount() {
  18835. let params = {
  18836. cid: this.id,
  18837. chid: this.courseType,
  18838. uid: this.userid,
  18839. };
  18840. this.ajax
  18841. .get(this.$store.state.api + "selectToolsCount", params)
  18842. .then((res) => {
  18843. for (var i = 0; i < res.data[0].length; i++) {
  18844. if (res.data[0][i].tools == 1) {
  18845. this.wbCount = res.data[0][i].count;
  18846. } else if (res.data[0][i].tools == 2) {
  18847. this.wordCount = res.data[0][i].count;
  18848. } else if (res.data[0][i].tools == 3) {
  18849. this.mindCount = res.data[0][i].count;
  18850. } else if (res.data[0][i].tools == 4) {
  18851. this.askCount = res.data[0][i].count;
  18852. } else if (res.data[0][i].tools == 6) {
  18853. this.noteCount = res.data[0][i].count;
  18854. } else if (res.data[0][i].tools == 7) {
  18855. this.mindNetWorkCount = res.data[0][i].count;
  18856. } else if (res.data[0][i].tools == 8) {
  18857. this.libraryCount = res.data[0][i].count;
  18858. } else if (res.data[0][i].tools == 16) {
  18859. this.workCount = res.data[0][i].count;
  18860. } else if (res.data[0][i].tools == 10) {
  18861. this.timeCount = res.data[0][i].count;
  18862. } else if (res.data[0][i].tools == 15) {
  18863. this.answerCount = res.data[0][i].count;
  18864. } else if (res.data[0][i].tools == 18) {
  18865. this.trainCount = res.data[0][i].count;
  18866. }
  18867. }
  18868. })
  18869. .catch((err) => {
  18870. console.error(err);
  18871. });
  18872. },
  18873. openTools(t, i, index, c, sName,id) {
  18874. var z = JSON.parse(c);
  18875. this.noteName = sName;
  18876. if (t == 4) {
  18877. this.radio = [];
  18878. this.isAnswer = false;
  18879. let b = z[0].anwer;
  18880. this.radio = b;
  18881. this.askJson = z[0].askJson;
  18882. this.isAnswer = true;
  18883. this.dialogVisible5 = true;
  18884. } else if (t == 45) {
  18885. this.radio = [];
  18886. this.isAnswer = false;
  18887. let b = z[0].anwer;
  18888. this.radio = b;
  18889. this.testJson = z[0].testJson;
  18890. this.isAnswer = true;
  18891. this.dialogVisibleChoice = true;
  18892. }else if(t == 69){
  18893. this.oldEnglishJson1 = {}
  18894. this.oldEnglishJson = {}
  18895. this.englishList1 = {}
  18896. this.newEngIndex = -1;
  18897. this.isNoUserid = false;
  18898. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18899. .toolChoose[i].englishList;
  18900. this.oldEnglishJson = z;
  18901. this.engWid = id;
  18902. this.newEnglishList = { engTitle:"",engText:"" }
  18903. this.newEnglishList1 = []
  18904. this.selectEngC(id,z);
  18905. }else if(t == 62){
  18906. this.videoType = 1;
  18907. this.videoJson = {};
  18908. this.videoJson = JSON.parse(c);
  18909. // this.videoJson =
  18910. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18911. // index
  18912. // ].toolChoose[i].videoJson;
  18913. this.dialogVisibleVideo = true;
  18914. //this.dialog
  18915. }
  18916. // else if (t == 15) {
  18917. // this.answerQ = "";
  18918. // this.questionAnswer = "";
  18919. // this.answerQ = z[0].answerTitle;
  18920. // this.questionAnswer = z[0].answer;
  18921. // this.answerDialogVisible = true;
  18922. // }
  18923. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18924. },
  18925. fastText(p, t) {
  18926. if (t == 1) {
  18927. this.commentText += p;
  18928. } else {
  18929. this.eScore.eBzText += p;
  18930. }
  18931. },
  18932. addTools(t, i, index) {
  18933. var a = 0;
  18934. // this.taskCount = index;
  18935. this.toolindex = i;
  18936. if (t == 1) {
  18937. if (this.wbCount > 0) {
  18938. this.updateCount(this.wbCount, t);
  18939. } else {
  18940. this.wbCount++;
  18941. a = this.wbCount;
  18942. this.toolsCount(a, t);
  18943. }
  18944. window.topU.postMessage(
  18945. {
  18946. tools: "1",
  18947. cid: this.id,
  18948. stage: this.courseType,
  18949. task: this.taskCount,
  18950. tool: i,
  18951. },
  18952. "*"
  18953. );
  18954. } else if (t == 2) {
  18955. if (this.wordCount > 0) {
  18956. this.updateCount(this.wordCount, t);
  18957. } else {
  18958. this.wordCount++;
  18959. a = this.wordCount;
  18960. this.toolsCount(a, t);
  18961. }
  18962. window.topU.postMessage({ tools: "2" }, "*");
  18963. } else if (t == 3) {
  18964. if (this.mindCount > 0) {
  18965. this.updateCount(this.mindCount, t);
  18966. } else {
  18967. this.mindCount++;
  18968. a = this.mindCount;
  18969. this.toolsCount(a, t);
  18970. }
  18971. window.topU.postMessage(
  18972. {
  18973. tools: "3",
  18974. cid: this.id,
  18975. stage: this.courseType,
  18976. task: this.taskCount,
  18977. tool: i,
  18978. },
  18979. "*"
  18980. );
  18981. } else if (t == 4) {
  18982. this.radio = [];
  18983. this.noteName = "";
  18984. this.isAnswer = false;
  18985. if (this.askCount > 0) {
  18986. this.updateCount(this.askCount, t);
  18987. } else {
  18988. this.askCount++;
  18989. a = this.askCount;
  18990. this.toolsCount(a, t);
  18991. }
  18992. if (!this.dialogVisible2) {
  18993. this.askJson.askJson =
  18994. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18995. index
  18996. ].toolChoose[i].askJson;
  18997. this.askJson.askTitle =
  18998. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18999. index
  19000. ].toolChoose[i].askTitle;
  19001. this.askJson.askCount =
  19002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19003. index
  19004. ].toolChoose[i].askCount;
  19005. } else {
  19006. this.askJson.askJson = this.chapTools.askJson.askJson;
  19007. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19008. this.askJson.askCount = this.chapTools.askJson.askCount;
  19009. }
  19010. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19011. if (this.askJson.askJson[k].type == "2") {
  19012. this.radio.push([]);
  19013. } else {
  19014. this.radio.push("");
  19015. }
  19016. }
  19017. this.dialogVisible5 = true;
  19018. // window.topU.postMessage({ tools: "4" }, "*");
  19019. } else if (t == 45) {
  19020. this.noteName = "";
  19021. this.radio = [];
  19022. this.isAnswer = false;
  19023. if (this.askCount > 0) {
  19024. this.updateCount(this.askCount, t);
  19025. } else {
  19026. this.askCount++;
  19027. a = this.askCount;
  19028. this.toolsCount(a, t);
  19029. }
  19030. this.testJson =
  19031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19032. index
  19033. ].toolChoose[i].testJson;
  19034. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19035. if (this.testJson.testJson[k].type == "2") {
  19036. this.radio.push([]);
  19037. } else {
  19038. this.radio.push("");
  19039. }
  19040. }
  19041. this.dialogVisibleChoice = true;
  19042. // window.topU.postMessage({ tools: "4" }, "*");
  19043. } else if (t == 5) {
  19044. if (this.scoreCount > 0) {
  19045. this.updateCount(this.scoreCount, t);
  19046. } else {
  19047. this.scoreCount++;
  19048. a = this.scoreCount;
  19049. this.toolsCount(a, t);
  19050. }
  19051. this.dialogVisible4 = true;
  19052. // window.topU.postMessage({ tools: "5" }, "*");
  19053. } else if (t == 6) {
  19054. if (this.noteCount > 0) {
  19055. this.updateCount(this.noteCount, t);
  19056. } else {
  19057. this.noteCount++;
  19058. a = this.noteCount;
  19059. this.toolsCount(a, t);
  19060. }
  19061. window.topU.postMessage(
  19062. {
  19063. tools: "6",
  19064. cid: this.id,
  19065. stage: this.courseType,
  19066. task: this.taskCount,
  19067. tool: i,
  19068. },
  19069. "*"
  19070. );
  19071. } else if (t == 7) {
  19072. if (this.mindNetWorkCount > 0) {
  19073. this.updateCount(this.mindNetWorkCount, t);
  19074. } else {
  19075. this.mindNetWorkCount++;
  19076. a = this.mindNetWorkCount;
  19077. this.toolsCount(a, t);
  19078. }
  19079. window.topU.postMessage(
  19080. {
  19081. tools: "7",
  19082. cid: this.id,
  19083. stage: this.courseType,
  19084. task: this.taskCount,
  19085. tool: i,
  19086. },
  19087. "*"
  19088. );
  19089. } else if (t == 16) {
  19090. if (this.workCount > 0) {
  19091. this.updateCount(this.workCount, t);
  19092. } else {
  19093. this.workCount++;
  19094. a = this.workCount;
  19095. this.toolsCount(a, t);
  19096. }
  19097. this.dialogVisible = true;
  19098. } else if (t == 50) {
  19099. if (this.tType == 2) {
  19100. this.$message.error("不支持学生使用");
  19101. return;
  19102. }
  19103. this.plworkFile = [];
  19104. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19105. if (!this.uploadCid) {
  19106. this.$message.error(
  19107. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19108. );
  19109. return;
  19110. }
  19111. // this.uploadCid =
  19112. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19113. // index
  19114. // ].toolChoose[i].uploadJson[0];
  19115. this.selectUploadStudent(2);
  19116. } else if (t == 8) {
  19117. if (this.libraryCount > 0) {
  19118. this.updateCount(this.libraryCount, t);
  19119. } else {
  19120. this.libraryCount++;
  19121. a = this.libraryCount;
  19122. this.toolsCount(a, t);
  19123. }
  19124. window.topU.postMessage({ tools: "8" }, "*");
  19125. } else if (t == 17) {
  19126. if (this.libraryCount > 0) {
  19127. this.updateCount(this.libraryCount, t);
  19128. } else {
  19129. this.libraryCount++;
  19130. a = this.libraryCount;
  19131. this.toolsCount(a, t);
  19132. }
  19133. window.topU.postMessage({ tools: "17" }, "*");
  19134. } else if (t == 18) {
  19135. if (this.trainCount > 0) {
  19136. this.updateCount(this.trainCount, t);
  19137. } else {
  19138. this.trainCount++;
  19139. a = this.trainCount;
  19140. this.toolsCount(a, t);
  19141. }
  19142. window.topU.postMessage({ tools: "18" }, "*");
  19143. } else if (t == 10) {
  19144. if (this.timeCount > 0) {
  19145. this.updateCount(this.timeCount, t);
  19146. } else {
  19147. this.timeCount++;
  19148. a = this.timeCount;
  19149. this.toolsCount(a, t);
  19150. }
  19151. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19152. .taskJson[index].toolChoose[i].preTime
  19153. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19154. .toolChoose[i].preTime
  19155. : "";
  19156. this.timeDialogVisible = true;
  19157. } else if (t == 15) {
  19158. this.answerQ = "";
  19159. this.questionAnswer = "";
  19160. if (this.answerCount > 0) {
  19161. this.updateCount(this.answerCount, t);
  19162. } else {
  19163. this.answerCount++;
  19164. a = this.answerCount;
  19165. this.toolsCount(a, t);
  19166. }
  19167. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19168. .taskJson[index].toolChoose[i].answerQ
  19169. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19170. .toolChoose[i].answerQ
  19171. : "";
  19172. this.answerDialogVisible = true;
  19173. } else if (t == 21) {
  19174. window.topU.postMessage({ tools: "21" }, "*");
  19175. } else if (t == 22) {
  19176. window.topU.postMessage({ tools: "22" }, "*");
  19177. } else if (t == 23) {
  19178. window.topU.postMessage({ tools: "23" }, "*");
  19179. } else if (t == 24) {
  19180. window.topU.postMessage({ tools: "24" }, "*");
  19181. } else if (t == 25) {
  19182. window.topU.postMessage({ tools: "25" }, "*");
  19183. } else if (t == 31) {
  19184. window.topU.postMessage({ tools: "31" }, "*");
  19185. } else if (t == 28) {
  19186. window.topU.postMessage({ tools: "28" }, "*");
  19187. } else if (t == 37) {
  19188. window.topU.postMessage({ tools: "37" }, "*");
  19189. } else if (t == 38) {
  19190. window.topU.postMessage({ tools: "38" }, "*");
  19191. } else if (t == 39) {
  19192. window.topU.postMessage({ tools: "39" }, "*");
  19193. } else if (t == 32) {
  19194. window.topU.postMessage({ tools: "32" }, "*");
  19195. } else if (t == 66) {
  19196. window.topU.postMessage({ tools: "66" }, "*");
  19197. } else if (t == 67) {
  19198. window.topU.postMessage({ tools: "67" }, "*");
  19199. } else if (t == 68) {
  19200. window.topU.postMessage({ tools: "68" }, "*");
  19201. } else if (t == 57) {
  19202. // window.topU.postMessage({ tools: "57" }, "*");
  19203. window.topU.postMessage(
  19204. {
  19205. tools: "57u",
  19206. cid: this.id,
  19207. stage: this.courseType,
  19208. task: this.taskCount,
  19209. tool: i,
  19210. },
  19211. "*"
  19212. );
  19213. } else if (t == 58) {
  19214. window.topU.postMessage({ tools: "58" }, "*");
  19215. } else if (t == 59) {
  19216. window.topU.postMessage({ tools: "59" }, "*");
  19217. } else if (t == 60) {
  19218. window.topU.postMessage({ tools: "60" }, "*");
  19219. } else if (t == 61) {
  19220. window.topU.postMessage({ tools: "61" }, "*");
  19221. } else if (t == 63) {
  19222. window.topU.postMessage({ tools: "63" }, "*");
  19223. } else if (t == 71) {
  19224. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19225. // this.$message.error("该工具不可使用");
  19226. // return
  19227. // }
  19228. window.topU.postMessage({ tools: "71" }, "*");
  19229. } else if (t == 72) {
  19230. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19231. .taskJson[index].toolChoose[i].appJson
  19232. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19233. .toolChoose[i].appJson
  19234. : "";
  19235. if(!item || !item.url){
  19236. this.$message.error("应用连接为空, 请到课程管理中添加");
  19237. return;
  19238. }
  19239. if (!document.fullscreenElement) {
  19240. this.enterFullScreen();
  19241. }
  19242. this.$refs.appStoreC.getData(item.url,this.userid)
  19243. // window.open(item.url, "_blank");
  19244. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19245. } else if (t == 69) {
  19246. if (this.worksStudent[i].length) {
  19247. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19248. if (this.userid == this.worksStudent[i][k].userid) {
  19249. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19250. break;
  19251. } else {
  19252. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19253. }
  19254. }
  19255. } else {
  19256. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19257. }
  19258. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19259. .taskJson[index].toolChoose[i].englishList
  19260. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19261. .toolChoose[i].englishList
  19262. : {};
  19263. this.englishToolIndex = i;
  19264. this.myAnList = this.myAnswerList1;
  19265. this.engDialogVisible = true;
  19266. } else if (t == 70) {
  19267. if (this.worksStudent[i].length) {
  19268. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19269. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19270. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19271. break;
  19272. } else {
  19273. this.englishVoiceJsonWork = [];
  19274. }
  19275. }
  19276. } else {
  19277. this.englishVoiceJsonWork = [];
  19278. }
  19279. let englishVoiceJson = {}
  19280. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19281. .taskJson[index].toolChoose[i].englishVoiceJson
  19282. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19283. .toolChoose[i].englishVoiceJson
  19284. : {};
  19285. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19286. this.EnglishVoiceDialog = true;
  19287. } else if (t == 65) {
  19288. if (this.tType == 2) {
  19289. this.$message.error("不支持学生使用");
  19290. return;
  19291. }
  19292. this.uploadCid = this.tcid;
  19293. if (!this.uploadCid) {
  19294. this.$message.error(
  19295. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19296. );
  19297. return;
  19298. }
  19299. this.selectPickStudent();
  19300. } else if (t == 26) {
  19301. window.topU.postMessage(
  19302. {
  19303. tools: "26",
  19304. cid: this.id,
  19305. stage: this.courseType,
  19306. task: this.taskCount,
  19307. tool: i,
  19308. },
  19309. "*"
  19310. );
  19311. } else if (t == 40) {
  19312. if (this.evalCount > 0) {
  19313. this.updateCount(this.evalCount, t);
  19314. } else {
  19315. this.evalCount++;
  19316. a = this.evalCount;
  19317. this.toolsCount(a, t);
  19318. }
  19319. this.eScore = { eBzText: "", eStar: [] };
  19320. if (this.worksStudent[i].length) {
  19321. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19322. if (this.userid == this.worksStudent[i][k].userid) {
  19323. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19324. this.rateJson =
  19325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19326. index
  19327. ].toolChoose[i].rateJson;
  19328. break;
  19329. } else {
  19330. this.rateJson =
  19331. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19332. index
  19333. ].toolChoose[i].rateJson;
  19334. }
  19335. }
  19336. } else {
  19337. this.rateJson =
  19338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19339. index
  19340. ].toolChoose[i].rateJson;
  19341. }
  19342. this.isStar = false;
  19343. this.studentEvalDialogVisible = true;
  19344. } else if (t == 41) {
  19345. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19346. .taskJson[index].toolChoose[i].selectJson
  19347. ? JSON.parse(
  19348. JSON.stringify(
  19349. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19350. index
  19351. ].toolChoose[i].selectJson
  19352. )
  19353. )
  19354. : { url: "", select: [], answer: [] };
  19355. if (this.worksStudent[i].length) {
  19356. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19357. if (this.userid == this.worksStudent[i][k].userid) {
  19358. var a = this.worksStudent[i][k].works.split(",");
  19359. for (var ki = 0; ki < a.length; ki++) {
  19360. a[ki] = parseInt(a[ki]);
  19361. }
  19362. this.selectAnswer = {
  19363. answer: a,
  19364. stu: this.worksStudent[i][k].sName,
  19365. };
  19366. break;
  19367. } else {
  19368. this.selectAnswer = { answer: [], stu: "" };
  19369. }
  19370. }
  19371. } else {
  19372. this.selectAnswer = { answer: [], stu: "" };
  19373. }
  19374. this.isSelect = false;
  19375. this.dialogVisibleSelect = true;
  19376. } else if (t == 44) {
  19377. window.topU.postMessage({ tools: "44" }, "*");
  19378. } else if (t == 47) {
  19379. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19380. .taskJson[index].toolChoose[i].sentenceList
  19381. ? JSON.parse(
  19382. JSON.stringify(
  19383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19384. index
  19385. ].toolChoose[i].sentenceList
  19386. )
  19387. )
  19388. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19389. for (var q = 0; q < this.sentenceList.length; q++) {
  19390. this.sentenceList[q].chooseSenList = [];
  19391. this.sentenceList[q].addChangeSen = [];
  19392. this.sentenceList[q].addChangeSen = JSON.parse(
  19393. JSON.stringify(this.sentenceList[q].addSentence)
  19394. );
  19395. this.sentenceList[q].chooseSenList.length =
  19396. this.sentenceList[q].rightAnswer.length;
  19397. }
  19398. this.dialogVisibleSentence = true;
  19399. } else if (t == 48) {
  19400. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19401. .taskJson[index].toolChoose[i].tableJson
  19402. ? JSON.parse(
  19403. JSON.stringify(
  19404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19405. index
  19406. ].toolChoose[i].tableJson
  19407. )
  19408. )
  19409. : { text: "" };
  19410. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19411. if (this.worksStudent[i].length) {
  19412. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19413. if (this.userid == this.worksStudent[i][k].userid) {
  19414. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19415. break;
  19416. }
  19417. }
  19418. }
  19419. this.dialogVisibleTable = true;
  19420. } else if (t == 52) {
  19421. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19422. .taskJson[index].toolChoose[i].wordJson
  19423. ? JSON.parse(
  19424. JSON.stringify(
  19425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19426. index
  19427. ].toolChoose[i].wordJson
  19428. )
  19429. )
  19430. : { text: "" };
  19431. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19432. if (this.worksStudent[i].length) {
  19433. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19434. if (this.userid == this.worksStudent[i][k].userid) {
  19435. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19436. break;
  19437. }
  19438. }
  19439. }
  19440. this.dialogVisibleWord = true;
  19441. } else if (t == 49) {
  19442. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19443. return
  19444. }
  19445. this.groupJson =
  19446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19447. index
  19448. ].toolChoose[i].groupJson;
  19449. this.islock = this.groupJson.islock == 1 ? true : false;
  19450. this.dialogVisibleGroup = true;
  19451. } else if (t == 62) {
  19452. this.videoType = 0;
  19453. this.videoJson = {};
  19454. this.videoJson =
  19455. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19456. index
  19457. ].toolChoose[i].videoJson;
  19458. this.dialogVisibleVideo = true;
  19459. }
  19460. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19461. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19462. },
  19463. teacherWorkSubmit(t, i, index, s) {
  19464. console.log('t',t);
  19465. if(t == 72) return
  19466. this.sStudent = s;
  19467. this.toolindex = i;
  19468. this.sTool = t;
  19469. if (this.tType !== "1" && this.tType !== "4") {
  19470. return;
  19471. }
  19472. if (t == 16 || t == 32 || t == 50) {
  19473. this.dialogVisibleWorks = true;
  19474. } else if (t == 15) {
  19475. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19476. .taskJson[index].toolChoose[i].answerQ
  19477. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19478. .toolChoose[i].answerQ
  19479. : "";
  19480. this.questionAnswer = "";
  19481. this.answerDialogVisibleTeacher = true; //问答
  19482. } else if (t == 52) {
  19483. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19484. .taskJson[index].toolChoose[i].wordJson
  19485. ? JSON.parse(
  19486. JSON.stringify(
  19487. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19488. index
  19489. ].toolChoose[i].wordJson
  19490. )
  19491. )
  19492. : { text: "" };
  19493. if (this.worksStudent[i].length) {
  19494. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19495. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19496. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19497. break;
  19498. }
  19499. }
  19500. }
  19501. this.dialogVisibleWordTeacher = true; //文档
  19502. } else if (t == 4) {
  19503. this.radio = [];
  19504. this.noteName = "";
  19505. this.isAnswer = false;
  19506. if (this.askCount > 0) {
  19507. this.updateCount(this.askCount, t);
  19508. } else {
  19509. this.askCount++;
  19510. a = this.askCount;
  19511. this.toolsCount(a, t);
  19512. }
  19513. if (!this.dialogVisible2) {
  19514. this.askJson.askJson =
  19515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19516. index
  19517. ].toolChoose[i].askJson;
  19518. this.askJson.askTitle =
  19519. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19520. index
  19521. ].toolChoose[i].askTitle;
  19522. this.askJson.askCount =
  19523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19524. index
  19525. ].toolChoose[i].askCount;
  19526. } else {
  19527. this.askJson.askJson = this.chapTools.askJson.askJson;
  19528. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19529. this.askJson.askCount = this.chapTools.askJson.askCount;
  19530. }
  19531. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19532. if (this.askJson.askJson[k].type == "2") {
  19533. this.radio.push([]);
  19534. } else {
  19535. this.radio.push("");
  19536. }
  19537. }
  19538. this.dialogVisible5Teacher = true;
  19539. } else if (t == 45) {
  19540. this.noteName = "";
  19541. this.radio = [];
  19542. this.isAnswer = false;
  19543. if (this.askCount > 0) {
  19544. this.updateCount(this.askCount, t);
  19545. } else {
  19546. this.askCount++;
  19547. a = this.askCount;
  19548. this.toolsCount(a, t);
  19549. }
  19550. this.testJson =
  19551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19552. index
  19553. ].toolChoose[i].testJson;
  19554. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19555. if (this.testJson.testJson[k].type == "2") {
  19556. this.radio.push([]);
  19557. } else {
  19558. this.radio.push("");
  19559. }
  19560. }
  19561. this.dialogVisibleChoiceTeacher = true;
  19562. } else if (t == 41) {
  19563. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19564. .taskJson[index].toolChoose[i].selectJson
  19565. ? JSON.parse(
  19566. JSON.stringify(
  19567. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19568. index
  19569. ].toolChoose[i].selectJson
  19570. )
  19571. )
  19572. : { url: "", select: [], answer: [] };
  19573. if (this.worksStudent[i].length) {
  19574. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19575. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19576. var a = this.worksStudent[i][k].works.split(",");
  19577. for (var ki = 0; ki < a.length; ki++) {
  19578. a[ki] = parseInt(a[ki]);
  19579. }
  19580. this.selectAnswer = {
  19581. answer: a,
  19582. stu: this.worksStudent[i][k].sName,
  19583. };
  19584. break;
  19585. } else {
  19586. this.selectAnswer = { answer: [], stu: "" };
  19587. }
  19588. }
  19589. } else {
  19590. this.selectAnswer = { answer: [], stu: "" };
  19591. }
  19592. this.isSelect = false;
  19593. this.dialogVisibleSelectTeacher = true;
  19594. } else if (t == 47) {
  19595. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19596. .taskJson[index].toolChoose[i].sentenceList
  19597. ? JSON.parse(
  19598. JSON.stringify(
  19599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19600. index
  19601. ].toolChoose[i].sentenceList
  19602. )
  19603. )
  19604. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19605. for (var q = 0; q < this.sentenceList.length; q++) {
  19606. this.sentenceList[q].chooseSenList = [];
  19607. this.sentenceList[q].addChangeSen = [];
  19608. this.sentenceList[q].addChangeSen = JSON.parse(
  19609. JSON.stringify(this.sentenceList[q].addSentence)
  19610. );
  19611. this.sentenceList[q].chooseSenList.length =
  19612. this.sentenceList[q].rightAnswer.length;
  19613. }
  19614. this.dialogVisibleSentenceTeacher = true;
  19615. } else if (t == 48) {
  19616. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19617. .taskJson[index].toolChoose[i].tableJson
  19618. ? JSON.parse(
  19619. JSON.stringify(
  19620. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19621. index
  19622. ].toolChoose[i].tableJson
  19623. )
  19624. )
  19625. : { text: "" };
  19626. if (this.worksStudent[i].length) {
  19627. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19628. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19629. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19630. break;
  19631. }
  19632. }
  19633. }
  19634. this.dialogVisibleTableTeacher = true;
  19635. } else if (t == 40) {
  19636. if (this.evalCount > 0) {
  19637. this.updateCount(this.evalCount, t);
  19638. } else {
  19639. this.evalCount++;
  19640. a = this.evalCount;
  19641. this.toolsCount(a, t);
  19642. }
  19643. this.eScore = { eBzText: "", eStar: [] };
  19644. if (this.worksStudent[i].length) {
  19645. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19646. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19647. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19648. this.rateJson =
  19649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19650. index
  19651. ].toolChoose[i].rateJson;
  19652. break;
  19653. } else {
  19654. this.rateJson =
  19655. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19656. index
  19657. ].toolChoose[i].rateJson;
  19658. }
  19659. }
  19660. } else {
  19661. this.rateJson =
  19662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19663. index
  19664. ].toolChoose[i].rateJson;
  19665. }
  19666. this.isStar = false;
  19667. this.studentEvalDialogVisibleTeacher = true;
  19668. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19669. window.topU.postMessage(
  19670. {
  19671. tools: t + "teacher",
  19672. cid: this.id,
  19673. stage: this.courseType,
  19674. task: this.taskCount,
  19675. tool: i,
  19676. student: this.sStudent,
  19677. },
  19678. "*"
  19679. );
  19680. }else if (t == 72) {
  19681. if (!document.fullscreenElement) {
  19682. this.enterFullScreen();
  19683. }
  19684. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19685. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19686. }
  19687. },
  19688. openCocoPi(tool, i, uid, uname) {
  19689. let student = {
  19690. userid: uid,
  19691. student: uname,
  19692. };
  19693. if (tool == 57) {
  19694. window.topU.postMessage(
  19695. {
  19696. tools: tool + "teacher",
  19697. cid: this.id,
  19698. stage: this.courseType,
  19699. task: this.taskCount,
  19700. tool: i,
  19701. student: student,
  19702. },
  19703. "*"
  19704. );
  19705. }
  19706. },
  19707. setRightAnswer(s, i, j) {
  19708. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19709. if (
  19710. this.sentenceList[i].chooseSenList[q] == undefined ||
  19711. this.sentenceList[i].chooseSenList[q] == ""
  19712. ) {
  19713. this.sentenceList[i].chooseSenList[q] = s;
  19714. this.sentenceList[i].addChangeSen[j] = "";
  19715. break;
  19716. }
  19717. }
  19718. this.$forceUpdate();
  19719. },
  19720. returnCard(r, i, j) {
  19721. var a = this.sentenceList[i].addSentence.indexOf(r);
  19722. this.sentenceList[i].chooseSenList[j] = "";
  19723. this.sentenceList[i].addChangeSen[a] = r;
  19724. this.$forceUpdate();
  19725. },
  19726. // addSentenceTool() {
  19727. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19728. // this.taskCount
  19729. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19730. // this.sentenceList = [
  19731. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19732. // ];
  19733. // this.dialogVisibleSentence = false;
  19734. // },
  19735. toolsCount(a, t) {
  19736. let params = {
  19737. cid: this.id,
  19738. chid: this.courseType,
  19739. uid: this.userid,
  19740. tid: t,
  19741. count: a,
  19742. };
  19743. this.ajax
  19744. .get(this.$store.state.api + "insertToolsCount", params)
  19745. .then((res) => {
  19746. this.selectCount();
  19747. })
  19748. .catch((err) => {
  19749. console.error(err);
  19750. });
  19751. },
  19752. updateCount(c, t) {
  19753. c++;
  19754. let params = {
  19755. cid: this.id,
  19756. chid: this.courseType,
  19757. uid: this.userid,
  19758. tid: t,
  19759. count: c,
  19760. };
  19761. this.ajax
  19762. .get(this.$store.state.api + "updateToolsCount", params)
  19763. .then((res) => {
  19764. this.selectCount();
  19765. })
  19766. .catch((err) => {
  19767. console.error(err);
  19768. });
  19769. },
  19770. checkEva() {
  19771. if (this.evalua != "") {
  19772. for (var i = 0; i < this.evaJuri.length; i++) {
  19773. if (this.evalua == this.evaJuri[i].id) {
  19774. this.eTitle = this.evaJuri[i].title;
  19775. this.eJson = JSON.parse(this.evaJuri[i].content);
  19776. }
  19777. }
  19778. this.$forceUpdate();
  19779. setTimeout(() => {
  19780. this.setMindData();
  19781. }, 0);
  19782. }
  19783. },
  19784. selectEva() {
  19785. let params = {
  19786. oid: this.oid,
  19787. };
  19788. this.ajax
  19789. .get(this.$store.state.api + "selectAllEvaluation", params)
  19790. .then((res) => {
  19791. this.evaJuri = res.data[0];
  19792. })
  19793. .catch((err) => {
  19794. console.error(err);
  19795. });
  19796. },
  19797. setMindData() {
  19798. this.data.data = [];
  19799. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19800. let _eJson = Object.keys(this.eJson);
  19801. let _e = this.eJson;
  19802. for (let i = 0; i < _eJson.length; i++) {
  19803. let element = _e[_eJson[i]];
  19804. this.data.data.push({
  19805. id: element.id,
  19806. parentid: "root",
  19807. topic: element.name,
  19808. });
  19809. let _eJsonc = Object.keys(element.child);
  19810. let _e2 = element.child;
  19811. for (let j = 0; j < _eJsonc.length; j++) {
  19812. let _ec = _e2[_eJsonc[j]];
  19813. this.data.data.push({
  19814. id: _ec.id,
  19815. parentid: element.id,
  19816. topic: _ec.name,
  19817. });
  19818. let _eJsonz = Object.keys(_ec.child);
  19819. let _e3 = _ec.child;
  19820. for (let z = 0; z < _eJsonz.length; z++) {
  19821. let _ez = _e3[_eJsonz[z]];
  19822. this.data.data.push({
  19823. id: _ez.id,
  19824. parentid: _ec.id,
  19825. topic: _ez.name,
  19826. });
  19827. }
  19828. }
  19829. }
  19830. this.$forceUpdate();
  19831. },
  19832. checkFileFull(type, url) {
  19833. this.fullDialogVisible = true;
  19834. this.fulltype = type;
  19835. this.fullUrl = url;
  19836. },
  19837. async checkFileFull1(t, f) {
  19838. this.fullDialogVisible = true;
  19839. if (t == 6) {
  19840. this.fulltype = 1;
  19841. this.fullUrl = JSON.parse(JSON.stringify(f));
  19842. } else if (t == 8 ) {
  19843. this.fulltype = 2;
  19844. this.fullUrl = f.url;
  19845. }else if (t == 15) {
  19846. this.diffKey = new Date().getTime();
  19847. this.fulltype = 4;
  19848. this.fullUrl = f.url;
  19849. } else if (t == 16) {
  19850. this.fulltype = 16;
  19851. this.fullUrl = f.url;
  19852. } else if (
  19853. t == 3 &&
  19854. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19855. "PDF"
  19856. ) {
  19857. this.fulltype = 3;
  19858. this.fullUrl = f.url;
  19859. } else if (t == 3) {
  19860. this.fulltype = 2;
  19861. let _uuurl = await this.checkLink(f.url);
  19862. this.fullUrl =
  19863. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19864. }
  19865. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19866. },
  19867. openSname(n, id, i, uid) {
  19868. this.snameWid = id;
  19869. this.worksSName = n;
  19870. this.worksSid = uid == n ? "" : uid;
  19871. this.toolindex = i;
  19872. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19873. if (!this.uploadCid) {
  19874. this.$message.error(
  19875. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19876. );
  19877. return;
  19878. }
  19879. this.selectUploadStudent(1);
  19880. },
  19881. updateName() {
  19882. let params = {
  19883. n: this.worksSName,
  19884. cid: this.snameWid,
  19885. };
  19886. this.ajax
  19887. .get(this.$store.state.api + "updateCourseWorksName", params)
  19888. .then((res) => {
  19889. this.$message({
  19890. message: "修改成功",
  19891. type: "success",
  19892. });
  19893. this.dialogVisibleSname = false;
  19894. this.getCourseDetail(2);
  19895. this.snameWid = "";
  19896. this.worksSName = "";
  19897. })
  19898. .catch((err) => {
  19899. console.error(err);
  19900. });
  19901. },
  19902. downloadFile2(f) {
  19903. // const loading = this.$loading.service({
  19904. // background: "rgba(255, 255, 255, 0.7)",
  19905. // target: document.body,
  19906. // text: "文件加载中...",
  19907. // });
  19908. // let url2 = f.url;
  19909. // let _url2 = "";
  19910. // if (
  19911. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19912. // ) {
  19913. // _url2 = url2.split(
  19914. // "https://view.officeapps.live.com/op/view.aspx?src="
  19915. // )[1];
  19916. // } else {
  19917. // _url2 = url2;
  19918. // }
  19919. // let params = {
  19920. // url: _url2,
  19921. // name: f.name,
  19922. // };
  19923. // this.ajax
  19924. // .get(this.$store.state.api + "download", params)
  19925. // .then((res) => {
  19926. // loading.close();
  19927. // let content = res.data.data.data;
  19928. // let ab = new ArrayBuffer(content.length);
  19929. // let view = new Uint8Array(ab);
  19930. // for (var i = 0; i < content.length; ++i) {
  19931. // view[i] = content[i];
  19932. // }
  19933. // let elink = document.createElement("a");
  19934. // elink.download = f.name;
  19935. // elink.style.display = "none";
  19936. // let blob = new Blob([ab], {
  19937. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19938. // });
  19939. // elink.href = URL.createObjectURL(blob);
  19940. // document.body.appendChild(elink);
  19941. // elink.click();
  19942. // document.body.removeChild(elink);
  19943. // })
  19944. // .catch((err) => {
  19945. // loading.close();
  19946. // console.error(err);
  19947. // });
  19948. var credentials = {
  19949. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19950. secretAccessKey: "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",
  19951. }; //秘钥形式的登录上传
  19952. window.AWS.config.update(credentials);
  19953. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19954. let url2 = f.url;
  19955. let _url2 = "";
  19956. if (
  19957. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19958. ) {
  19959. _url2 = url2.split(
  19960. "https://view.officeapps.live.com/op/view.aspx?src="
  19961. )[1];
  19962. } else {
  19963. _url2 = url2;
  19964. }
  19965. let _this = this;
  19966. _this.downLoading = true
  19967. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19968. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19969. var params = {
  19970. Bucket: "ccrb",
  19971. Key: name
  19972. };
  19973. s3.getObject(params, function (err, data) {
  19974. _this.downLoading = false
  19975. if (err) console.log(err, err.stack); // an error occurred
  19976. else {
  19977. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19978. let a = document.createElement("a");
  19979. a.name = f.name;
  19980. a.href = url;
  19981. a.download = f.name;
  19982. a.click();
  19983. console.log(data);
  19984. } // sxuccessful response
  19985. });
  19986. return;
  19987. let url = f.url;
  19988. let _url = "";
  19989. if (
  19990. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19991. ) {
  19992. _url = url.split(
  19993. "https://view.officeapps.live.com/op/view.aspx?src="
  19994. )[1];
  19995. } else {
  19996. _url = url;
  19997. }
  19998. _this.downLoading = true
  19999. let x = new XMLHttpRequest();
  20000. x.open("GET", _url, true);
  20001. x.responseType = "blob";
  20002. x.onload = function () {
  20003. _this.downLoading = false
  20004. let url = window.URL.createObjectURL(new Blob([x.response]));
  20005. let a = document.createElement("a");
  20006. a.name = f.name;
  20007. a.href = url;
  20008. a.download = f.name;
  20009. a.click();
  20010. };
  20011. x.send();
  20012. },
  20013. downloadFile(url,uid) {
  20014. if (this.tType == 1 || this.userid == uid) {
  20015. // this.$message.info("查看作业-下载文件")
  20016. var credentials = {
  20017. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20018. secretAccessKey: "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",
  20019. }; //秘钥形式的登录上传
  20020. window.AWS.config.update(credentials);
  20021. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20022. let url2 = url;
  20023. let _url2 = "";
  20024. if (
  20025. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20026. ) {
  20027. _url2 = url2.split(
  20028. "https://view.officeapps.live.com/op/view.aspx?src="
  20029. )[1];
  20030. } else {
  20031. _url2 = url2;
  20032. }
  20033. const loading2 = this.$loading.service({
  20034. background: "rgba(255, 255, 255, 0.7)",
  20035. target: document.body,
  20036. text: "文件加载中...",
  20037. });
  20038. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20039. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20040. var params = {
  20041. Bucket: "ccrb",
  20042. Key: name
  20043. };
  20044. s3.getObject(params, function (err, data) {
  20045. loading2.close();
  20046. if (err) console.log(err, err.stack); // an error occurred
  20047. else {
  20048. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20049. let a = document.createElement("a");
  20050. a.name = name;
  20051. a.href = url;
  20052. a.download = name;
  20053. a.click();
  20054. console.log(data);
  20055. } // sxuccessful response
  20056. });
  20057. }
  20058. return;
  20059. let _this = this;
  20060. let _url = "";
  20061. if (
  20062. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20063. ) {
  20064. _url = url.split(
  20065. "https://view.officeapps.live.com/op/view.aspx?src="
  20066. )[1];
  20067. } else {
  20068. _url = url;
  20069. }
  20070. const x = new XMLHttpRequest();
  20071. x.open("GET", _url, true);
  20072. x.responseType = "blob";
  20073. // this.downLoading = true
  20074. const loading = _this.$loading.service({
  20075. background: "rgba(255, 255, 255, 0.7)",
  20076. target: document.body,
  20077. text: "文件加载中...",
  20078. });
  20079. // _this.$message.success("文件下载中...");
  20080. x.onload = function (e) {
  20081. loading.close();
  20082. let content = x.response;
  20083. let elink = document.createElement("a");
  20084. elink.download = decodeURI(
  20085. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20086. );
  20087. elink.style.display = "none";
  20088. let blob = new Blob([content]);
  20089. elink.href = URL.createObjectURL(blob);
  20090. document.body.appendChild(elink);
  20091. elink.click();
  20092. document.body.removeChild(elink);
  20093. };
  20094. x.send();
  20095. },
  20096. openLine(url) {
  20097. window.open(url);
  20098. },
  20099. resize() {
  20100. if (document.getElementsByClassName("box_course").length) {
  20101. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20102. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20103. if (this.showType == 2 || this.showType == 3) {
  20104. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20105. document.getElementsByClassName("navBox")[0].style.height =
  20106. a - 40 + 0+ "px";
  20107. }
  20108. } else {
  20109. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20110. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20111. }
  20112. }
  20113. }
  20114. this.Stbodywidth =
  20115. document.getElementsByClassName("student_body").length &&
  20116. document.getElementsByClassName("student_body")[0].offsetWidth;
  20117. },
  20118. closeDraw() {
  20119. this.bg = null;
  20120. this.drawShow = false;
  20121. },
  20122. showPicturePaint(url) {
  20123. let params = {
  20124. img: url,
  20125. };
  20126. this.ajax
  20127. .get(this.$store.state.api + "imgToBase64", params)
  20128. .then((res) => {
  20129. this.drawShow = true;
  20130. this.bg = res.data[0].img;
  20131. })
  20132. .catch((err) => {
  20133. console.error(err);
  20134. });
  20135. },
  20136. addImgDraw(base64) {
  20137. let file = { name: "批注图.png" };
  20138. let img = this.dataUrlToFile(base64, file);
  20139. this.beforeUpload1(img, 5);
  20140. },
  20141. addImgDrawImG(url) {
  20142. // console.log(url);
  20143. let params = [
  20144. {
  20145. wid: this.commentDetail.wid,
  20146. img: url,
  20147. },
  20148. ];
  20149. this.ajax
  20150. .post(this.$store.state.api + "updateCourseWorks", params)
  20151. .then((res) => {
  20152. this.$message({
  20153. message: "提交成功",
  20154. type: "success",
  20155. });
  20156. this.drawShow = false;
  20157. this.bg = "";
  20158. this.selectSWorks();
  20159. this.selectStudent();
  20160. })
  20161. .catch((err) => {
  20162. this.$message.error("提交失败");
  20163. console.error(err);
  20164. });
  20165. },
  20166. deletePicturePaint() {
  20167. this.$confirm("确定删除此批注吗?", "提示", {
  20168. confirmButtonText: "确定",
  20169. cancelButtonText: "取消",
  20170. type: "warning",
  20171. })
  20172. .then(() => {
  20173. let params = [
  20174. {
  20175. wid: this.commentDetail.wid,
  20176. img: "",
  20177. },
  20178. ];
  20179. this.ajax
  20180. .post(this.$store.state.api + "updateCourseWorks", params)
  20181. .then((res) => {
  20182. this.$message({
  20183. message: "删除成功",
  20184. type: "success",
  20185. });
  20186. this.selectSWorks();
  20187. this.selectStudent();
  20188. })
  20189. .catch((err) => {
  20190. this.$message.error("删除失败");
  20191. console.error(err);
  20192. });
  20193. })
  20194. .catch(() => {});
  20195. },
  20196. getAudioVideo(constraintsData) {
  20197. if (navigator.mediaDevices === undefined) {
  20198. navigator.mediaDevices = {};
  20199. }
  20200. if (navigator.mediaDevices.getUserMedia === undefined) {
  20201. navigator.mediaDevices.getUserMedia = function (constraints) {
  20202. // 首先,如果有getUserMedia的话,就获得它
  20203. var getUserMedia =
  20204. navigator.getUserMedia ||
  20205. navigator.webkitGetUserMedia ||
  20206. navigator.mozGetUserMedia ||
  20207. navigator.msGetUserMedia;
  20208. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20209. if (!getUserMedia) {
  20210. return Promise.reject({ code: 404 });
  20211. }
  20212. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20213. return new Promise(function (resolve, reject) {
  20214. getUserMedia.call(navigator, constraints, resolve, reject);
  20215. });
  20216. };
  20217. }
  20218. return navigator.mediaDevices.getUserMedia(constraintsData);
  20219. },
  20220. /**
  20221. * 开始录制
  20222. */
  20223. startRecording(callback) {
  20224. let _function = (screenStream) => {
  20225. this.addStreamStopListener(screenStream, () => {
  20226. console.log("流停止监听");
  20227. this.stopRecording();
  20228. this.$emit("streamStop", {});
  20229. // this.stopRecording();
  20230. });
  20231. var options = {
  20232. type: "video",
  20233. mimeType: "video/webm",
  20234. disableLogs: false,
  20235. getNativeBlob: false, // enable it for longer recordings
  20236. ignoreMutedMedia: false,
  20237. };
  20238. // this.video.srcObject = screenStream;
  20239. this.recorder = RecordRTC(screenStream, options);
  20240. this.recorder.startRecording();
  20241. this.recorder.screen = screenStream;
  20242. this.videoStart = true;
  20243. // callback(true);
  20244. };
  20245. this.getAudioVideo({ audio: true })
  20246. .then((res) => {
  20247. this.captureScreen(_function, true);
  20248. console.log("已点击允许,开启成功");
  20249. })
  20250. .catch((err) => {
  20251. // console.log('浏览器不支持,请更换浏览器')
  20252. // } else {
  20253. this.captureScreen(_function, false);
  20254. console.log("请检查是否存在麦克风");
  20255. });
  20256. },
  20257. /**
  20258. * 停止录制
  20259. */
  20260. stopRecording(callback) {
  20261. this.recorder.stopRecording(() => {
  20262. // this.video.src = this.video.srcObject = null;
  20263. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20264. const url = URL.createObjectURL(this.recorder.getBlob());
  20265. const a = document.createElement("a"); //this.fileName+
  20266. let videoFile = new File(
  20267. [this.recorder.getBlob()],
  20268. this.courseDetail.title + "录屏.mp4",
  20269. {
  20270. type: "video/mp4",
  20271. }
  20272. );
  20273. let downloadUrl = URL.createObjectURL(videoFile);
  20274. if(this.$refs.classRoomHelperRef){
  20275. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20276. }
  20277. document.body.appendChild(a);
  20278. a.style.display = "none";
  20279. a.href = url;
  20280. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20281. a.click();
  20282. this.recorder.screen.stop();
  20283. this.recorder.destroy();
  20284. this.recorder = null;
  20285. this.videoStart = false;
  20286. // callback(false);
  20287. });
  20288. },
  20289. //初始化
  20290. captureScreen(callback, type) {
  20291. if (navigator.getDisplayMedia) {
  20292. //录制结束,文件下载
  20293. navigator
  20294. .getDisplayMedia({
  20295. video: true,
  20296. })
  20297. .then((screenStream) => {
  20298. if (type) {
  20299. navigator.mediaDevices
  20300. .getUserMedia({ audio: true })
  20301. .then((mic) => {
  20302. screenStream.addTrack(mic.getTracks()[0]);
  20303. callback(screenStream);
  20304. });
  20305. } else {
  20306. callback(screenStream);
  20307. }
  20308. })
  20309. .catch(function (error) {
  20310. console.log("error", error);
  20311. });
  20312. } else if (navigator.mediaDevices.getDisplayMedia) {
  20313. navigator.mediaDevices
  20314. .getDisplayMedia({
  20315. video: true,
  20316. })
  20317. .then((screenStream) => {
  20318. if (type) {
  20319. navigator.mediaDevices
  20320. .getUserMedia({ audio: true })
  20321. .then((mic) => {
  20322. screenStream.addTrack(mic.getTracks()[0]);
  20323. callback(screenStream);
  20324. });
  20325. } else {
  20326. callback(screenStream);
  20327. }
  20328. })
  20329. .catch(function (error) {
  20330. console.log("error", error);
  20331. });
  20332. } else {
  20333. var error = "getDisplayMedia API are not supported in this browser.";
  20334. console.log("error", error);
  20335. alert(error);
  20336. }
  20337. },
  20338. //流监听
  20339. addStreamStopListener(stream, callback) {
  20340. stream.addEventListener(
  20341. "ended",
  20342. function () {
  20343. callback();
  20344. callback = function () {};
  20345. },
  20346. false
  20347. );
  20348. stream.addEventListener(
  20349. "inactive",
  20350. function () {
  20351. callback();
  20352. callback = function () {};
  20353. },
  20354. false
  20355. );
  20356. stream.getTracks().forEach(function (track) {
  20357. track.addEventListener(
  20358. "ended",
  20359. function () {
  20360. callback();
  20361. callback = function () {};
  20362. },
  20363. false
  20364. );
  20365. track.addEventListener(
  20366. "inactive",
  20367. function () {
  20368. callback();
  20369. callback = function () {};
  20370. },
  20371. false
  20372. );
  20373. });
  20374. },
  20375. updateGroup() {
  20376. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20377. this.dialogVisibleGroup2 = true;
  20378. },
  20379. numberPan() {
  20380. if (
  20381. /[^\d]/.test(this.groupJson.number) ||
  20382. this.groupJson.number < 2 ||
  20383. this.groupJson.number > 10
  20384. ) {
  20385. this.$message.error("请输入2-10的数字");
  20386. this.groupJson.number = "";
  20387. }
  20388. },
  20389. updateGroupJson() {
  20390. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20391. if (
  20392. this.groupStudentUid[this.toolindex][i].length >
  20393. this.groupJson2.number
  20394. ) {
  20395. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20396. return;
  20397. }
  20398. }
  20399. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20400. this.islock = this.groupJson.islock == 1 ? true : false;
  20401. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20402. this.taskCount
  20403. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20404. let params = [
  20405. {
  20406. cid: this.id,
  20407. chapters: JSON.stringify(this.chapInfoList),
  20408. uid: this.userid,
  20409. unitIndex: this.courseType,
  20410. },
  20411. ];
  20412. this.ajax
  20413. .post(this.$store.state.api + "updateWorkNew4", params)
  20414. .then((res) => {
  20415. this.$message.success("设置成功");
  20416. this.getCourseDetail(2);
  20417. this.dialogVisibleGroup2 = false;
  20418. this.groupJson2 = {};
  20419. this.$forceUpdate();
  20420. })
  20421. .catch((err) => {
  20422. this.$message.error("网络不佳");
  20423. console.error(err);
  20424. });
  20425. },
  20426. lockChair() {
  20427. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20428. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20429. this.updateGroupJson();
  20430. },
  20431. selectGroup(index) {
  20432. this.getCourseDetail(2, index);
  20433. },
  20434. joinGroup(index) {
  20435. if (this.groupJson.islock == 2) {
  20436. this.$message.error("位置已被锁定,无法加入");
  20437. return;
  20438. }
  20439. if (
  20440. this.groupStudent[this.toolindex][index].length >
  20441. this.groupJson.number ||
  20442. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20443. ) {
  20444. this.$message.error("位置已满,无法加入");
  20445. return;
  20446. }
  20447. let params = [
  20448. {
  20449. cid: this.id,
  20450. stage: this.courseType,
  20451. task: this.taskCount,
  20452. tool: this.toolindex,
  20453. g: index,
  20454. uid: this.userid,
  20455. },
  20456. ];
  20457. this.ajax
  20458. .post(this.$store.state.api + "joinGroup", params)
  20459. .then((res) => {
  20460. this.$message.success("加入成功");
  20461. this.getCourseDetail(2);
  20462. })
  20463. .catch((err) => {
  20464. this.$message.error("网络不佳");
  20465. console.error(err);
  20466. });
  20467. },
  20468. exitGroup(id) {
  20469. if (this.groupJson.islock == 2) {
  20470. this.$message.error("位置已被锁定,无法退出");
  20471. return;
  20472. }
  20473. let params = [
  20474. {
  20475. gid: id,
  20476. },
  20477. ];
  20478. this.ajax
  20479. .post(this.$store.state.api + "exitGroup", params)
  20480. .then((res) => {
  20481. this.$message.success("退出成功");
  20482. this.getCourseDetail(2);
  20483. })
  20484. .catch((err) => {
  20485. this.$message.error("网络不佳");
  20486. console.error(err);
  20487. });
  20488. },
  20489. groupUpload(index, task, gindex) {
  20490. this.taskCount = task;
  20491. this.toolindex = index;
  20492. this.groupIndex = gindex;
  20493. this.dialogVisibleGroupWork = true;
  20494. },
  20495. updateGroupChair(user) {
  20496. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20497. el.label = index;
  20498. return index != user.group;
  20499. });
  20500. this.updateGroupUser = user;
  20501. this.dialogVisibleUpdateGroup = true;
  20502. },
  20503. updateChair() {
  20504. if (
  20505. this.groupStudent[this.toolindex][this.checkChair].length >
  20506. this.groupJson.number ||
  20507. this.groupStudent[this.toolindex][this.checkChair].length ==
  20508. this.groupJson.number
  20509. ) {
  20510. this.$message.error("位置已满,无法加入");
  20511. return;
  20512. }
  20513. let params = [
  20514. {
  20515. cid: this.id,
  20516. stage: this.courseType,
  20517. task: this.taskCount,
  20518. tool: this.toolindex,
  20519. g: this.checkChair,
  20520. uid: this.updateGroupUser.userid,
  20521. },
  20522. ];
  20523. this.ajax
  20524. .post(this.$store.state.api + "joinGroup", params)
  20525. .then((res) => {
  20526. this.$message.success("修改成功");
  20527. this.updateGroupUser = {};
  20528. this.checkChair = "";
  20529. this.updateGroupArray = {};
  20530. this.dialogVisibleUpdateGroup = false;
  20531. this.getCourseDetail(2);
  20532. })
  20533. .catch((err) => {
  20534. this.$message.error("网络不佳");
  20535. console.error(err);
  20536. });
  20537. },
  20538. deleteGroupChair(gindex) {
  20539. this.checkDeleteGroup = [];
  20540. this.deleteGroupUser = JSON.parse(
  20541. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20542. );
  20543. this.deleteGroupArray = this.groupJson.group[gindex];
  20544. this.groupIndex = gindex;
  20545. this.dialogVisibleDeleteGroup = true;
  20546. },
  20547. async deleteChair() {
  20548. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20549. const gid =
  20550. this.groupStudent[this.toolindex][this.groupIndex][
  20551. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20552. this.checkDeleteGroup[i]
  20553. )
  20554. ];
  20555. let params = [
  20556. {
  20557. gid: gid.id,
  20558. },
  20559. ];
  20560. var a = await this.deleteChairA(params);
  20561. if (i == this.checkDeleteGroup.length - 1) {
  20562. this.$message.success("退出成功");
  20563. this.dialogVisibleDeleteGroup = false;
  20564. this.deleteGroupUser = [];
  20565. this.deleteGroupArray = {};
  20566. this.groupIndex = "";
  20567. this.checkDeleteGroup = [];
  20568. this.getCourseDetail(2);
  20569. }
  20570. }
  20571. },
  20572. deleteChairA(params) {
  20573. return new Promise((resolve, reject) => {
  20574. this.ajax
  20575. .post(this.$store.state.api + "exitGroup", params)
  20576. .then((res) => {
  20577. resolve(1);
  20578. })
  20579. .catch((err) => {
  20580. this.$message.error("网络不佳");
  20581. console.error(err);
  20582. });
  20583. });
  20584. },
  20585. contract(i) {
  20586. if (this.isCloseList[i].isClose == 0) {
  20587. this.isCloseList[i].isClose = 1;
  20588. } else {
  20589. this.isCloseList[i].isClose = 0;
  20590. }
  20591. this.$forceUpdate();
  20592. },
  20593. openWordCloud(toolindex) {
  20594. this.wordCloudData = '';
  20595. let array = [];
  20596. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20597. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20598. array.push({ name: works });
  20599. }
  20600. if (this.isGroup) {
  20601. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20602. let works = this.courseGroup.group[i].works[toolindex];
  20603. for (var j = 0; j < works.length; j++) {
  20604. let answer = JSON.parse(works[j].works)[0].answer;
  20605. array.push({ name: answer });
  20606. }
  20607. }
  20608. }
  20609. let _result = ''
  20610. array.forEach(e=>{
  20611. _result +=e.name+','
  20612. })
  20613. this.wordCloudData = _result;
  20614. this.dialogVisibleWordCloud = true;
  20615. this.wordCloudKey += 1;
  20616. },
  20617. uploadWorks(i) {
  20618. this.$confirm("确定导出作业吗?", "提示", {
  20619. confirmButtonText: "确定",
  20620. cancelButtonText: "取消",
  20621. type: "warning",
  20622. })
  20623. .then(() => {
  20624. const loading = this.$loading.service({
  20625. background: "rgba(255, 255, 255, 0.7)",
  20626. target: document.body,
  20627. text: "文件加载中...",
  20628. });
  20629. const _worksStudent = this.worksStudent;
  20630. let url = [];
  20631. var counts = {};
  20632. for (var l = 0; l < _worksStudent[i].length; l++) {
  20633. var item = _worksStudent[i][l];
  20634. var name = item.sName;
  20635. if (!counts.hasOwnProperty(name)) {
  20636. counts[name] = 0;
  20637. } else {
  20638. counts[name]++;
  20639. }
  20640. if (counts[name] > 0) {
  20641. item.sName += " (" + counts[name] + ")";
  20642. }
  20643. }
  20644. for (var l = 0; l < _worksStudent[i].length; l++) {
  20645. var item = _worksStudent[i][l];
  20646. if (
  20647. item.works.indexOf(
  20648. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20649. ) !== -1 &&
  20650. item.works.indexOf("img") === -1
  20651. ) {
  20652. url.push({ name: item.sName, url: item.works });
  20653. }
  20654. }
  20655. // var toolList = [
  20656. // { name: "电子白板", tool: 1 },
  20657. // { name: "思维导图", tool: 3 },
  20658. // { name: "协同文档", tool: 6 },
  20659. // { name: "思维网格", tool: 7 },
  20660. // { name: "素材库", tool: 8 },
  20661. // { name: "学习资料", tool: 17 },
  20662. // { name: "便签", tool: 2 },
  20663. // { name: "问卷调查", tool: 4 },
  20664. // { name: "选择题", tool: 45 },
  20665. // { name: "倒计时", tool: 10 },
  20666. // { name: "问答", tool: 15 },
  20667. // { name: "课程设计", tool: 26 },
  20668. // { name: "训练服务器", tool: 18 },
  20669. // { name: "作业提交", tool: 16 },
  20670. // { name: "批量上传", tool: 50 },
  20671. // { name: "AIoT Blockly", tool: 21 },
  20672. // { name: "AI Python", tool: 23 },
  20673. // { name: "AI Blockly", tool: 24 },
  20674. // { name: "目标管理", tool: 25 },
  20675. // { name: "数学画板", tool: 31 },
  20676. // { name: "翻译", tool: 28 },
  20677. // { name: "魔盒识字", tool: 37 },
  20678. // { name: "数学画板", tool: 31 },
  20679. // { name: "24点", tool: 38 },
  20680. // { name: "GeoGebra", tool: 39 },
  20681. // { name: "源码编辑", tool: 32 },
  20682. // { name: "个人评价", tool: 40 },
  20683. // { name: "选择匹配", tool: 41 },
  20684. // { name: "汉字宫", tool: 44 },
  20685. // { name: "排序", tool: 47 },
  20686. // { name: "表格", tool: 48 },
  20687. // { name: "文档", tool: 52 },
  20688. // { name: "学生分组", tool: 49 },
  20689. // { name: "CocoPi", tool: 57 },
  20690. // { name: "模拟驾驶", tool: 58 },
  20691. // { name: "路径搜索", tool: 59 },
  20692. // { name: "深度学习", tool: 60 },
  20693. // { name: "全历史", tool: 61 },
  20694. // { name: "交互视频", tool: 62 },
  20695. // { name: "海龟编程", tool: 63 },
  20696. // { name: "挑人", tool: 65 },
  20697. // { name: "公式编辑", tool: 66 },
  20698. // { name: "分子结构", tool: 67 },
  20699. // { name: "时间轴", tool: 68 },
  20700. // ];
  20701. // var toolName = "";
  20702. // for(var w = 0;w<toolList.length;w++){
  20703. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20704. // toolName = toolList[w].name;
  20705. // }
  20706. // }
  20707. console.log(url);
  20708. this.downLoadAll(url, loading);
  20709. })
  20710. .catch(() => {});
  20711. },
  20712. downLoadAll(url, loading) {
  20713. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20714. const zip = new JSZip();
  20715. const cache = {};
  20716. const promises = [];
  20717. data.forEach((item) => {
  20718. const promise = getFile(item.url).then((data) => {
  20719. if (data.data != 1) {
  20720. // 下载文件, 并存成ArrayBuffer对象
  20721. const file_name =
  20722. item.name +
  20723. "." +
  20724. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20725. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20726. cache[file_name] = data.data;
  20727. }
  20728. });
  20729. promises.push(promise);
  20730. });
  20731. Promise.all(promises).then(() => {
  20732. zip.generateAsync({ type: "blob" }).then((content) => {
  20733. // 生成二进制流
  20734. FileSaver.saveAs(
  20735. content,
  20736. this.courseDetail.title + "-" + "作业提交工具.zip"
  20737. ); // 利用file-saver保存文件 自定义文件名
  20738. setTimeout(() => {
  20739. loading.close();
  20740. }, 2000);
  20741. });
  20742. });
  20743. },
  20744. pickStudent(stu) {
  20745. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20746. return;
  20747. }
  20748. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20749. confirmButtonText: "确定",
  20750. cancelButtonText: "取消",
  20751. type: "warning",
  20752. })
  20753. .then(() => {
  20754. let params = [
  20755. {
  20756. uid: stu.userid,
  20757. cid: this.id,
  20758. stage: this.courseType,
  20759. task: this.taskCount,
  20760. tool: this.toolindex,
  20761. },
  20762. ];
  20763. this.ajax
  20764. .post(this.$store.state.api + "updateCoursePick", params)
  20765. .then((res) => {
  20766. this.$message.success("操作成功");
  20767. this.getPick();
  20768. })
  20769. .catch((err) => {
  20770. this.$message.error("网络不佳");
  20771. console.error(err);
  20772. });
  20773. })
  20774. .catch(() => {});
  20775. },
  20776. selectUser(){
  20777. let params = {
  20778. userid: this.userid,
  20779. };
  20780. this.ajax
  20781. .get(this.$store.state.api + "selectUser", params)
  20782. .then((res) => {
  20783. this.userMes = res.data[0];
  20784. })
  20785. .catch((err) => {
  20786. console.error(err);
  20787. });
  20788. },
  20789. setEngText(i){
  20790. this.newEngIndex = i;
  20791. this.$forceUpdate();
  20792. },
  20793. addCorrect(){
  20794. this.$confirm("你确定提交批改嘛?", "提示", {
  20795. confirmButtonText: "确定",
  20796. showCancelButton: false,
  20797. closeOnClickModal: false,
  20798. type: "warning",
  20799. })
  20800. .then(() => {
  20801. let params = {
  20802. cid: this.id,
  20803. s: parseInt(this.courseType),
  20804. t: this.taskCount,
  20805. tool: this.toolindex,
  20806. wid: this.engWid,
  20807. c: this.userid,
  20808. 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) : "",
  20809. };
  20810. this.ajax
  20811. .get(this.$store.state.api + "addEngC", params)
  20812. .then((res) => {
  20813. this.$message.success("提交成功");
  20814. this.engUpdateDialogVisible = false;
  20815. })
  20816. .catch((err) => {
  20817. console.error(err);
  20818. });
  20819. })
  20820. .catch(() => {});
  20821. },
  20822. selectEngC(id,z){
  20823. let params = {
  20824. workid: id,
  20825. };
  20826. this.ajax
  20827. .get(this.$store.state.api + "selectEngC", params)
  20828. .then((res) => {
  20829. if(res.data[0].length == 0){
  20830. this.newEnglishList.engTitle = z.engTitle;
  20831. this.newEnglishList.engText = z.engText;
  20832. }else{
  20833. var a = res.data[0];
  20834. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20835. if(this.userMes[0].type == 2){
  20836. var snum = 0;
  20837. for(var i = 0;i<a.length;i++){
  20838. if(this.userMes[0].userid == a[i].correct){
  20839. this.newEnglishList = JSON.parse(a[i].cWork);
  20840. snum = 1;
  20841. }
  20842. }
  20843. if(snum == 0){
  20844. this.newEnglishList = { engTitle:"",engText:"" };
  20845. this.newEnglishList.engTitle = z.engTitle;
  20846. this.newEnglishList.engText = z.engText;
  20847. }
  20848. }else if(this.userMes[0].type == 1){
  20849. var num = 0;
  20850. for(var w= 0;w<a.length;w++){
  20851. if(this.userMes[0].userid == a[w].correct){
  20852. num = 1;
  20853. }
  20854. }
  20855. if(num == 0){
  20856. this.isNoUserid = true;
  20857. var c = JSON.parse(JSON.stringify(z));
  20858. this.oldEnglishJson1 = c;
  20859. }else{
  20860. this.isNoUserid = false;
  20861. }
  20862. var b = a.sort((item, index) => {
  20863. console.log(item)
  20864. if (item.correct === this.userMes[0].userid) {
  20865. return -1; // 将a移到前面
  20866. } else if (index.correct === this.userMes[0].userid) {
  20867. return 1; // 将b移到前面
  20868. } else {
  20869. return 0; // 保持默认顺序
  20870. }
  20871. });
  20872. for(var p = 0;p<b.length;p++){
  20873. for(var y = 0;y<ppp.length;y++){
  20874. if(b[p].id == ppp[y].id){
  20875. b[p].cWork = JSON.parse(ppp[y].cWork);
  20876. break
  20877. }
  20878. }
  20879. }
  20880. this.newEnglishList1 = b;
  20881. }
  20882. }
  20883. this.greyType = false;
  20884. setTimeout(() => {
  20885. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20886. if(this.newEnglishList1.length > 0){
  20887. if(this.isNoUserid == true){
  20888. this.engListLength = this.newEnglishList1.length + 1;
  20889. this.newEngIndex = -1;
  20890. }else{
  20891. this.engListLength = this.newEnglishList1.length;
  20892. this.newEngIndex = 0;
  20893. }
  20894. }
  20895. if(this.userMes[0].type == 2){
  20896. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20897. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20898. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20899. }else if(this.newEngIndex == -1){
  20900. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20901. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20902. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20903. }
  20904. }, 500);
  20905. this.engUpdateDialogVisible = true;
  20906. this.$forceUpdate();
  20907. })
  20908. .catch((err) => {
  20909. console.error(err);
  20910. });
  20911. },
  20912. getPick() {
  20913. if(this.getPickLoading) return
  20914. this.getPickLoading = true
  20915. let params = {
  20916. cid: this.id,
  20917. };
  20918. this.ajax
  20919. .get(this.$store.state.api + "getPick", params)
  20920. .then((res) => {
  20921. let array = [];
  20922. for (var i = 0; i < res.data[0].length; i++) {
  20923. array.push(res.data[0][i].userid);
  20924. }
  20925. this.isPickStudent = array;
  20926. if (array.indexOf(this.userid) !== -1) {
  20927. this.$confirm("你被老师选到啦!", "提示", {
  20928. confirmButtonText: "确定",
  20929. showCancelButton: false,
  20930. closeOnClickModal: false,
  20931. type: "warning",
  20932. })
  20933. .then(() => {
  20934. let pa = [
  20935. {
  20936. uid: this.userid,
  20937. cid: this.id,
  20938. },
  20939. ];
  20940. this.ajax
  20941. .post(this.$store.state.api + "deletePick", pa)
  20942. .then((res) => {
  20943. this.getPick();
  20944. })
  20945. .catch((err) => {
  20946. this.$message.error("网络不佳");
  20947. console.error(err);
  20948. });
  20949. })
  20950. .catch(() => {});
  20951. }
  20952. this.getPickLoading = false
  20953. })
  20954. .catch((err) => {
  20955. this.getPickLoading = false
  20956. this.$message.error("网络不佳");
  20957. console.error(err);
  20958. });
  20959. },
  20960. foldEva() {
  20961. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20962. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20963. } else {
  20964. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20965. setTimeout(() => {
  20966. this.checkEva();
  20967. setTimeout(() => {
  20968. this.checkEva();
  20969. }, 500);
  20970. }, 0);
  20971. }
  20972. this.$forceUpdate();
  20973. },
  20974. panToolHeight(tool) {
  20975. var _tool = document.querySelectorAll('#'+tool)[0]
  20976. var _toolA = _tool ? _tool.offsetHeight : 0
  20977. var _toolC = 0
  20978. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20979. let boolean2 = (_toolA > _toolC) ? true : false
  20980. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20981. this.$forceUpdate();
  20982. },
  20983. async checkLink(url) {
  20984. console.log(url)
  20985. let _url = url
  20986. try {
  20987. const response = await fetch(url);
  20988. if(!response.ok){
  20989. _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]))
  20990. }
  20991. console.log(response.ok)
  20992. } catch (error) {
  20993. console.error('Error checking link:', error);
  20994. // console.log(false)
  20995. _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]))
  20996. }
  20997. // console.log(_url)
  20998. return _url
  20999. },
  21000. getScoreList(){
  21001. let params = {
  21002. cid: this.id,
  21003. };
  21004. this.ajax
  21005. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21006. .then((res) => {
  21007. let result = res.data;
  21008. this.scoreList.datalist = result[0];
  21009. this.scoreList.isScoreList = result[1];
  21010. })
  21011. .catch((err) => {
  21012. console.error(err);
  21013. });
  21014. },
  21015. setClassRoomHelperWidth(width){
  21016. this.classRoomHelperWidth = width
  21017. },
  21018. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21019. this.$refs.choseWorksDetailDialogRef.open({
  21020. toolType:tooc,
  21021. tType: this.tType,
  21022. toolIndex: toolIndex
  21023. });
  21024. this.changeSplitScreenBehavior({
  21025. code: 1,
  21026. form: {
  21027. toolType:tooc,
  21028. toolIndex: toolIndex,
  21029. courseType: this.courseType,
  21030. taskCount: this.taskCount,
  21031. type: 0
  21032. }
  21033. });
  21034. },
  21035. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21036. this.$refs.statisticalAnalysisRef.open({
  21037. worksStudent: this.worksStudent[toolIndex],
  21038. tType: this.tType,
  21039. toolIndex: toolIndex
  21040. });
  21041. this.changeSplitScreenBehavior({
  21042. code: 2,
  21043. form: {
  21044. toolType:4,
  21045. courseType: this.courseType,
  21046. taskCount: this.taskCount,
  21047. toolIndex: toolIndex,
  21048. type: 0
  21049. }
  21050. });
  21051. },
  21052. statisticalAnalysisRefresh(toolIndex) {
  21053. this.$refs.statisticalAnalysisRef.refreshData({
  21054. worksStudent: this.worksStudent[toolIndex],
  21055. tType: this.tType,
  21056. toolIndex: toolIndex
  21057. });
  21058. },
  21059. async splitScreenBehavior(type = 0) {
  21060. // return;
  21061. if (this.splitScreenData.loading)
  21062. return this.$message.info("操作过快,请稍等");
  21063. if (type == 0) {
  21064. //关闭分屏
  21065. this.splitScreenData.isOpen = false;
  21066. // this.splitScreenData.userId = "";
  21067. // this.splitScreenData.uid = "";
  21068. this.splitScreenData.behavior = null;
  21069. await this.updateSplitScreenData(1);
  21070. this.$message.success("已关闭分屏模式");
  21071. this.studentFreePreview(false);
  21072. this.OpenJobPreview(false);
  21073. // this.followingMode(false);
  21074. } else if (type == 1) {
  21075. //开启分屏
  21076. this.splitScreenData.isOpen = true;
  21077. this.splitScreenData.userId = this.userid;
  21078. this.splitScreenData.uid = this.splitScreenData.myUid;
  21079. this.splitScreenData.behavior = null;
  21080. let status = await this.updateSplitScreenData(0);
  21081. this.changeSplitScreenBehavior({form:{}})
  21082. if (status == 1) {
  21083. this.$message.success("已开启分屏");
  21084. this.studentFreePreview(false);
  21085. this.OpenJobPreview(true);
  21086. // this.followingMode(true);
  21087. } else {
  21088. this.splitScreenData.isOpen = false;
  21089. this.splitScreenData.userId = "";
  21090. this.splitScreenData.uid = "";
  21091. this.splitScreenData.behavior = null;
  21092. this.$message.success("分屏开启失败");
  21093. }
  21094. }
  21095. },
  21096. enterFullScreen() {
  21097. let element = document.documentElement;
  21098. if (element.requestFullscreen) {
  21099. element.requestFullscreen();
  21100. } else if (element.mozRequestFullScreen) { /* Firefox */
  21101. element.mozRequestFullScreen();
  21102. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21103. element.webkitRequestFullscreen();
  21104. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21105. element.msRequestFullscreen();
  21106. }
  21107. },
  21108. exitFullScreen() {
  21109. if (document.exitFullscreen) {
  21110. document.exitFullscreen();
  21111. } else if (document.mozCancelFullScreen) { /* Firefox */
  21112. document.mozCancelFullScreen();
  21113. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21114. document.webkitExitFullscreen();
  21115. } else if (document.msExitFullscreen) { /* IE/Edge */
  21116. document.msExitFullscreen();
  21117. }
  21118. },
  21119. confirmOpen(){
  21120. this.splitScreenData.isOpen = true;
  21121. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21122. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21123. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21124. this.confirmOpenDig = false
  21125. if (!document.fullscreenElement) {
  21126. this.enterFullScreen();
  21127. }
  21128. // if (this.timer2) {
  21129. // clearInterval(this.timer2);
  21130. // this.timer2 = null;
  21131. // }
  21132. // this.timer2 = setInterval(()=> {
  21133. // this.getSplitScreenData();//获取分屏数据
  21134. // }, 5000);
  21135. this.$message.success("分屏模式已开启");
  21136. },
  21137. // 获取分屏数据
  21138. getSplitScreenData() {
  21139. // return;
  21140. // if (this.tType != 1) return;
  21141. if(this.getSplitScreenDataLoading) return
  21142. this.getSplitScreenDataLoading = true
  21143. let params = {
  21144. cid: this.id
  21145. };
  21146. this.ajax
  21147. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21148. .then(async res => {
  21149. let data = res.data[0][0]["splitScreenData"];
  21150. console.log("获取了分屏数:", data);
  21151. if (data) {
  21152. data = JSON.parse(data);
  21153. if (
  21154. !this.splitScreenData.isOpen &&
  21155. data.isOpen &&
  21156. this.splitScreenData.myUid == data.uid
  21157. ) {
  21158. this.splitScreenData.isOpen = false;
  21159. this.splitScreenData.userId = "";
  21160. this.splitScreenData.uid = "";
  21161. this.splitScreenData.behavior = null;
  21162. await this.updateSplitScreenData(1);
  21163. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21164. this.confirmOpenDig = true
  21165. this.confirmOpenDigData = data
  21166. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21167. this.splitScreenData.isOpen = false;
  21168. this.splitScreenData.userId = "";
  21169. this.splitScreenData.uid = "";
  21170. this.splitScreenData.behavior = null;
  21171. this.$message.error("已结束分屏模式");
  21172. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21173. this.splitScreenData.isOpen = true;
  21174. this.splitScreenData.uid = data.uid;
  21175. this.splitScreenData.userId = data.userId;
  21176. this.splitScreenData.behavior = data.behavior;
  21177. }
  21178. this.doSplitScreenBehavior();
  21179. } else {
  21180. if (this.splitScreenData.isOpen) {
  21181. this.splitScreenData.isOpen = false;
  21182. this.splitScreenData.userId = "";
  21183. this.splitScreenData.uid = "";
  21184. this.splitScreenData.behavior = null;
  21185. this.$message.error("已结束分屏模式");
  21186. // if (this.timer2) {
  21187. // clearInterval(this.timer2);
  21188. // this.timer2 = null;
  21189. // }
  21190. // this.timer2 = setInterval(()=> {
  21191. // this.getSplitScreenData();//获取分屏数据
  21192. // }, 5000);
  21193. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21194. confirmButtonText: '确定', //确认按钮的文字
  21195. showCancelButton: false, //是否显示取消按钮
  21196. showClose: false, //是否显示关闭按钮
  21197. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21198. type: "warning",
  21199. })
  21200. .then(() => {
  21201. if (document.fullscreenElement) {
  21202. this.exitFullScreen();
  21203. }
  21204. })
  21205. .catch(() => {});
  21206. }
  21207. }
  21208. this.getSplitScreenDataLoading = false
  21209. })
  21210. .catch(e => {
  21211. this.getSplitScreenDataLoading = false
  21212. console.log("获取分屏数出错:", e);
  21213. });
  21214. },
  21215. // 操作
  21216. doSplitScreenBehavior() {
  21217. if (
  21218. this.splitScreenData.isOpen &&
  21219. this.splitScreenData.uid != this.splitScreenData.myUid
  21220. ) {
  21221. let behavior = this.splitScreenData.behavior;
  21222. if (behavior) {
  21223. // console.log('behavior',behavior);
  21224. // this.toolindex = behavior.form.toolType
  21225. // 初始状态
  21226. if (behavior.code === 99) {
  21227. //初始化
  21228. this.fullDialogVisible = false;
  21229. if(this.$refs.choseWorksDetailDialogRef.show){
  21230. this.$refs.choseWorksDetailDialogRef.close();
  21231. }
  21232. if(this.$refs.statisticalAnalysisRef.show){
  21233. this.$refs.statisticalAnalysisRef.close();
  21234. }
  21235. }
  21236. // 文件列表
  21237. if (behavior.code === 0) {
  21238. //开启内容列表弹窗
  21239. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21240. }else{
  21241. this.fullDialogVisible = false;
  21242. }
  21243. // 打开工具
  21244. if (behavior.code === 1) {
  21245. //关于选择题的作业详细的操作
  21246. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21247. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21248. this.courseType = behavior.form.courseType;
  21249. this.taskCount = behavior.form.taskCount;
  21250. }
  21251. this.$nextTick(() => {
  21252. if (this.$refs.choseWorksDetailDialogRef.show) {
  21253. //已经打开了
  21254. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21255. } else {
  21256. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21257. }
  21258. });
  21259. }else{
  21260. this.$refs.choseWorksDetailDialogRef.close()
  21261. }
  21262. // 问卷调查
  21263. if(behavior.code === 2){
  21264. if(this.$refs.statisticalAnalysisRef.show){
  21265. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21266. }else{
  21267. this.$refs.statisticalAnalysisRef.open({
  21268. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21269. tType: this.tType,
  21270. toolIndex: behavior.form.toolIndex
  21271. });
  21272. }
  21273. }else{
  21274. this.$refs.statisticalAnalysisRef.close();
  21275. }
  21276. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21277. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21278. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21279. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21280. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21281. if (behavior.form.courseType != this.courseType ||
  21282. behavior.form.taskCount != this.taskCount ||
  21283. behavior.form.toolType != this.toolindex
  21284. ) {
  21285. var a = document.scrollingElement;
  21286. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21287. if (target) {
  21288. target.scrollIntoView(true);
  21289. setTimeout(()=>{
  21290. let scrollBody = document.querySelector('.body_student').parentElement
  21291. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21292. }, 0);
  21293. // setTimeout(() => {
  21294. // a.scrollTop = 0
  21295. // }, 0);
  21296. }
  21297. }
  21298. if(this.courseType !=behavior.form.courseType){
  21299. this.courseType = behavior.form.courseType;
  21300. }
  21301. if(this.taskCount !=behavior.form.taskCount){
  21302. this.taskCount = behavior.form.taskCount;
  21303. }
  21304. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21305. this.toolindex = behavior.form.toolType;
  21306. }
  21307. // if(behavior.form.navId){
  21308. // this.navId = behavior.form.navId
  21309. // }
  21310. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21311. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21312. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21313. this.getCourseDetail()
  21314. }
  21315. this.setContent2(false)
  21316. }
  21317. } else {
  21318. }
  21319. }
  21320. },
  21321. // 修改分屏数据
  21322. updateSplitScreenData(empty = 0) {
  21323. return new Promise(resolve => {
  21324. if(this.userid!==this.courseDetail.userid){
  21325. if(!this.courseDetail.userid){
  21326. return setTimeout(()=>{
  21327. this.updateSplitScreenData(empty)
  21328. },2000)
  21329. }
  21330. return;
  21331. };
  21332. if (
  21333. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21334. this.splitScreenData.userId == this.userid
  21335. ) {
  21336. this.splitScreenData.loading = true;
  21337. let params = [
  21338. {
  21339. cid: this.id,
  21340. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21341. }
  21342. ];
  21343. this.ajax
  21344. .post(
  21345. this.$store.state.api + "update_courseSplitScreenData",
  21346. params
  21347. )
  21348. .then(res => {
  21349. this.splitScreenData.loading = false;
  21350. if (res.data == 1) {
  21351. resolve(1);
  21352. console.log("修改分屏数据成功");
  21353. }
  21354. })
  21355. .catch(e => {
  21356. this.splitScreenData.loading = false;
  21357. console.log("修改分屏数据失败", e);
  21358. resoleve(0);
  21359. });
  21360. } else if (empty == 2 && this.tType == 1) {
  21361. console.log("清空清空清空清空")
  21362. let params = [
  21363. {
  21364. cid: this.id,
  21365. nData: ""
  21366. }
  21367. ];
  21368. return this.ajax
  21369. .post(
  21370. this.$store.state.api + "update_courseSplitScreenData",
  21371. params
  21372. )
  21373. .then(_ => resolve(1))
  21374. .catch(_ => resolve(0));
  21375. } else {
  21376. return resolve(0);
  21377. }
  21378. });
  21379. },
  21380. // 修改分屏数据
  21381. changeSplitScreenBehavior(newValue) {
  21382. if (
  21383. this.splitScreenData.isOpen &&
  21384. this.splitScreenData.uid == this.splitScreenData.myUid
  21385. ) {
  21386. let _behavior = null;
  21387. if(!newValue){
  21388. _behavior = {}
  21389. }else{
  21390. _behavior = newValue
  21391. }
  21392. if(_behavior.form){
  21393. _behavior.form.taskCount = this.taskCount;
  21394. _behavior.form.courseType = this.courseType
  21395. }else{
  21396. _behavior.form = {
  21397. taskCount:this.taskCount,
  21398. courseType:this.courseType,
  21399. }
  21400. }
  21401. this.splitScreenData.behavior = _behavior;
  21402. this.updateSplitScreenData(0);
  21403. }
  21404. },
  21405. studentFreePreview(flag) {
  21406. this.IsLookOpen = flag;
  21407. this.updateLookOpen();
  21408. this.followingMode(flag)
  21409. },
  21410. OpenJobPreview(flag) {
  21411. this.sIsOpen = flag;
  21412. this.updateSLook();
  21413. },
  21414. followingMode(flag) {
  21415. this.IsFollow = flag;
  21416. this.updateFollow();
  21417. },
  21418. StulookMode(flag) {
  21419. this.IsStulook = flag;
  21420. this.updateIsStulook();
  21421. },
  21422. },
  21423. directives: {
  21424. // 使用局部注册指令的方式
  21425. resize: {
  21426. // 指令的名称
  21427. bind(el, binding) {
  21428. // el为绑定的元素,binding为绑定给指令的对象
  21429. let width = "",
  21430. height = "";
  21431. function isReize() {
  21432. const style = document.defaultView.getComputedStyle(el);
  21433. if (width !== style.width || height !== style.height) {
  21434. binding.value(); // 关键
  21435. }
  21436. width = style.width;
  21437. height = style.height;
  21438. }
  21439. el.__vueSetInterval__ = setInterval(isReize, 300);
  21440. },
  21441. unbind(el) {
  21442. clearInterval(el.__vueSetInterval__);
  21443. },
  21444. },
  21445. autoHeight: {
  21446. update(el, binding) {
  21447. const { value } = binding
  21448. if (value && typeof value === 'number') {
  21449. el.style.height = `${value}px`
  21450. } else {
  21451. el.style.height = 'auto'
  21452. }
  21453. },
  21454. componentUpdated(el) {
  21455. el.style.height = `${el.scrollHeight}px`
  21456. },
  21457. },
  21458. },
  21459. beforeDestroy() {
  21460. window.onresize = null;
  21461. clearInterval(this.timer);
  21462. this.timer = null;
  21463. clearInterval(this.timer2);
  21464. this.timer2 = null;
  21465. clearInterval(this.opertimer);
  21466. this.opertimer = null;
  21467. this.updateSplitScreenData(1);
  21468. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21469. let endTime = new Date().toLocaleString("zh-CN", {
  21470. hour12: false,
  21471. timeZone: "Asia/Shanghai"
  21472. }).replace(/\//g, "-")
  21473. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21474. this.syncClassData({
  21475. courseId: this.id,
  21476. title: this.courseDetail.title,
  21477. courseGrade: this.tcid2,
  21478. courseTime: courseTime,
  21479. startTime: this.startTime,
  21480. endTime: endTime,
  21481. })
  21482. console.log('同步数据')
  21483. }
  21484. },
  21485. computed: {
  21486. renderedFormula2() {
  21487. return function(val){
  21488. // 处理换行符和HTML实体
  21489. const normalized = val
  21490. .replace(/&amp;/g, '&')
  21491. .replace(/<br\/?>/g, '\n');
  21492. // 匹配行内公式($...$)和块级公式($$...$$)
  21493. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21494. try {
  21495. return katex.renderToString(expr.trim(), {
  21496. displayMode: false,
  21497. throwOnError: false,
  21498. macros: {
  21499. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21500. }
  21501. });
  21502. } catch (e) {
  21503. console.warn('KaTeX渲染失败:', e);
  21504. return `<span style="color:red">${expr}</span>`;
  21505. }
  21506. })
  21507. }
  21508. },
  21509. renderedFormula() {
  21510. return function(val){
  21511. try {
  21512. // 判断是否含有HTML标签,<tag ...>...</tag>
  21513. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21514. if (!hasTag) {
  21515. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21516. // 纯文本,整体渲染
  21517. try {
  21518. return katex.renderToString(val.trim(), {
  21519. throwOnError: false,
  21520. strict: false,
  21521. output: "htmlAndMathml"
  21522. });
  21523. } catch (e) {
  21524. return val; // 渲染失败原样输出
  21525. }
  21526. } else {
  21527. // 有标签,对每个标签内容渲染
  21528. return val.replace(
  21529. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21530. (match, tag, attrs, inner) => {
  21531. let html;
  21532. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21533. try {
  21534. html = katex.renderToString(inner.trim(), {
  21535. throwOnError: false,
  21536. strict: false,
  21537. output: "htmlAndMathml"
  21538. });
  21539. } catch (e) {
  21540. html = inner;
  21541. }
  21542. return `<${tag}${attrs}>${html}</${tag}>`;
  21543. }
  21544. );
  21545. }
  21546. } catch (e) {
  21547. console.error('KaTeX渲染错误:', e);
  21548. return val;
  21549. }
  21550. }
  21551. },
  21552. isAndroid() {
  21553. return /Android/i.test(navigator.userAgent);
  21554. },
  21555. contentConvent() {
  21556. return function (c) {
  21557. return c
  21558. ? c
  21559. .replaceAll(/\r\n/g, "<br/>")
  21560. .replaceAll(/\n/g, "<br/>")
  21561. .replaceAll(/\s/g, "&nbsp")
  21562. : "";
  21563. };
  21564. },
  21565. commentRight(){
  21566. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21567. return "35px";
  21568. }
  21569. return `calc(${this.classRoomHelperWidth} + 5px)`
  21570. // if(this.$refs["classRoomHelperRef"].type==0){
  21571. // return "100px";
  21572. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21573. // return "502px"
  21574. // }else{
  21575. // return "0px"
  21576. // }
  21577. },
  21578. checkUpload() {
  21579. return function () {
  21580. var studentK = [];
  21581. if (this.plworkFile.length > 0) {
  21582. for (var z = 0; z < this.plworkFile.length; z++) {
  21583. studentK.push(this.plworkFile[z].username);
  21584. }
  21585. studentK = studentK.join(",");
  21586. }
  21587. var a = this.uploadStudentJuri.filter((el) => {
  21588. return studentK.indexOf(el.userid) == -1;
  21589. });
  21590. return a;
  21591. };
  21592. },
  21593. getSName() {
  21594. return function (name) {
  21595. var check = name;
  21596. this.uploadStudentJuri.forEach((el) => {
  21597. if (el.userid == check) {
  21598. check = el.name ? el.name : el.username;
  21599. }
  21600. });
  21601. return check;
  21602. };
  21603. },
  21604. getImgList() {
  21605. return function (val) {
  21606. let srcList = []; // 定义一个数组用来接收后面的img地址
  21607. val.replace(
  21608. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21609. function (match, capture) {
  21610. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21611. srcList.push(capture);
  21612. }
  21613. );
  21614. return srcList;
  21615. };
  21616. },
  21617. retrnToolHeight(){
  21618. return function (tool) {
  21619. var _tool = document.querySelectorAll('#'+tool)[0]
  21620. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21621. };
  21622. },
  21623. Correct() {
  21624. return function (c) {
  21625. let w = "";
  21626. let a = this.correctWord;
  21627. for(var k = 0;k<a.length;k++){
  21628. //diffWordsWithSpace
  21629. if(a.length > 1){
  21630. if(a[k].added == true){
  21631. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21632. }else if(a[k].removed == true){
  21633. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21634. }else{
  21635. w += '<span>' + a[k].value + '</span>';
  21636. }
  21637. }else{
  21638. w = c
  21639. }
  21640. //diffChars方法
  21641. // if(a.length > 1){
  21642. // if(w == ""){
  21643. // if(a[k].added == true){
  21644. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21645. // }else if(a[k].removed == true){
  21646. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21647. // }
  21648. // }else{
  21649. // if(k == a.length - 1){
  21650. // if(a[k].added == true){
  21651. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21652. // }else if(a[k].removed == true){
  21653. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21654. // }
  21655. // }else{
  21656. // if(a[k].added == true){
  21657. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21658. // }else if(a[k].removed == true){
  21659. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21660. // }
  21661. // }
  21662. // }
  21663. // }else{
  21664. // w = c
  21665. // }
  21666. }
  21667. c = w;
  21668. return c;
  21669. };
  21670. },
  21671. },
  21672. mounted() {
  21673. this.startTime = new Date().toLocaleString("zh-CN", {
  21674. hour12: false,
  21675. timeZone: "Asia/Shanghai"
  21676. }).replace(/\//g, "-");
  21677. // if (this.tType == 1) {
  21678. // // 开局关闭学生查看内容
  21679. // this.StulookMode(false)
  21680. // // 开局打开跟随模式
  21681. // this.followingMode(true)
  21682. // }
  21683. document.body.addEventListener("click", (e) => {
  21684. if (this.isUpdateToolDetail1) {
  21685. this.updateToolDetail(this.toolDetailIndex);
  21686. }
  21687. });
  21688. this.setOperationTime();
  21689. this.selectEva();
  21690. this.getCourseDetail(10);
  21691. this.selectCount();
  21692. this.getHomeWork();
  21693. this.selectUser();
  21694. this.getAIJ();
  21695. this.updateSplitScreenData(2);
  21696. this.splitScreenData.myUid = uuidv4();
  21697. this.contentDialog = false;
  21698. this.setContent2(true);
  21699. if (this.tType == 4) {
  21700. this.pzDialog = true;
  21701. this.selectPz();
  21702. }
  21703. // 获取评分列表
  21704. this.getScoreList()
  21705. document.scrollingElement.scrollTop = 0;
  21706. window.addEventListener("resize", () => {
  21707. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21708. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21709. if (this.showType == 2 || this.showType == 3) {
  21710. document.getElementsByClassName("navBox")[0].style.height =
  21711. a - 40 + 0+ "px";
  21712. } else {
  21713. document.getElementsByClassName("navBox")[0].style.height =
  21714. a - 40 + "px";
  21715. }
  21716. });
  21717. let _this = this;
  21718. setTimeout(() => {
  21719. // _this.vedioTime = [];
  21720. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21721. // _this.vedioTime[i] = document.getElementsByClassName(
  21722. // "vjs-duration-display"
  21723. // )[i].textContent;
  21724. // }
  21725. }, 1000);
  21726. try{
  21727. if (this.screenType == 2) {
  21728. window.topU.postMessage({ allScreen: 4 }, "*");
  21729. } else if (this.screenType == 3) {
  21730. window.topU.postMessage({ allScreen: 5 }, "*");
  21731. } else if (this.screenType == 1) {
  21732. window.topU.postMessage({ allScreen: 6 }, "*");
  21733. }
  21734. }catch(e){
  21735. console.log(e)
  21736. }
  21737. },
  21738. };
  21739. </script>
  21740. <style scoped>
  21741. @media screen and (max-width: 1280px) {
  21742. /* .courseIndex > div:first-child(2) {
  21743. width: 15% !important;
  21744. } */
  21745. /* .navText {
  21746. width: 120px !important;
  21747. } */
  21748. .evaCss {
  21749. flex-direction: column !important;
  21750. align-items: center !important;
  21751. }
  21752. .elist_input {
  21753. width: 90% !important;
  21754. }
  21755. .dialog_diy1 >>> .el-dialog {
  21756. width: 100% !important;
  21757. }
  21758. .rightWidthCss {
  21759. width: 100% !important;
  21760. }
  21761. .dialog_diy3 >>> .el-dialog {
  21762. width: 100% !important;
  21763. }
  21764. .addToolCss {
  21765. right: 0 !important;
  21766. width: 100% !important;
  21767. min-width: unset !important;
  21768. }
  21769. }
  21770. .evaCssMax {
  21771. flex-direction: column !important;
  21772. align-items: center !important;
  21773. }
  21774. .dialog_diy >>> .el-dialog {
  21775. margin-top: 10vh !important;
  21776. }
  21777. .body_student {
  21778. width: 77%;
  21779. height: 100%;
  21780. position: absolute;
  21781. left: 22%;
  21782. top: 0;
  21783. }
  21784. .student_head {
  21785. width: 100%;
  21786. margin: 20px auto 0;
  21787. padding-bottom: 20px;
  21788. display: flex;
  21789. flex-direction: column;
  21790. flex-wrap: nowrap;
  21791. align-items: flex-start;
  21792. justify-content: flex-start;
  21793. }
  21794. .pb_left {
  21795. width: 15%;
  21796. margin-right: 10px;
  21797. background: rgb(255, 255, 255);
  21798. position: fixed;
  21799. height: calc(100% - 40px);
  21800. border-radius: 20px;
  21801. padding-bottom: 15px;
  21802. box-sizing: border-box;
  21803. }
  21804. .wheel > img,
  21805. .project > img,
  21806. .star > img,
  21807. .evaluate > img,
  21808. .up_photo > img,
  21809. .chapter_add > img,
  21810. .deleteWord > img,
  21811. .question > img,
  21812. .homework > img {
  21813. width: 100%;
  21814. height: 100%;
  21815. }
  21816. .upCover > img {
  21817. width: 131px;
  21818. height: 69px;
  21819. object-fit: cover;
  21820. }
  21821. .upCover {
  21822. width: calc(100% / 3.5);
  21823. position: relative;
  21824. margin: 0 15px 10px 0;
  21825. display: flex;
  21826. flex-direction: column;
  21827. flex-wrap: nowrap;
  21828. justify-content: center;
  21829. align-content: center;
  21830. align-items: center;
  21831. height: fit-content;
  21832. }
  21833. .upCover2 {
  21834. width: 100%;
  21835. position: relative;
  21836. margin: 0 15px 10px 0;
  21837. display: flex;
  21838. flex-direction: column;
  21839. flex-wrap: nowrap;
  21840. justify-content: center;
  21841. align-content: center;
  21842. align-items: center;
  21843. }
  21844. .upCover2 > img {
  21845. width: 100%;
  21846. height: 90px;
  21847. object-fit: contain;
  21848. }
  21849. .chapter_add {
  21850. width: 120px;
  21851. position: relative;
  21852. text-align: center;
  21853. }
  21854. .isAddThings {
  21855. margin-top: 20px;
  21856. position: relative;
  21857. text-align: center;
  21858. background: #f7f8fa;
  21859. height: 90px;
  21860. width: 90px;
  21861. display: flex;
  21862. flex-direction: column;
  21863. justify-content: center;
  21864. }
  21865. .deleteWord {
  21866. width: 22px;
  21867. height: 22px;
  21868. position: absolute;
  21869. right: -5px;
  21870. top: -5px;
  21871. cursor: pointer;
  21872. }
  21873. .box_course {
  21874. /* width: 60%; */
  21875. width: calc(100% - 300px);
  21876. }
  21877. .wheel {
  21878. width: 100%;
  21879. /* height: 100%; */
  21880. height: 650px;
  21881. }
  21882. .right_box {
  21883. display: flex;
  21884. flex-direction: column;
  21885. margin-left: 30px;
  21886. justify-content: space-around;
  21887. }
  21888. .right_box_title {
  21889. font-size: 23px;
  21890. }
  21891. .people {
  21892. display: flex;
  21893. }
  21894. .student_body {
  21895. width: 100%;
  21896. margin: 0 auto;
  21897. margin-top: 10px;
  21898. padding: 0 0 20px;
  21899. }
  21900. .study_top {
  21901. margin-top: 100px;
  21902. width: 100%;
  21903. height: auto;
  21904. padding-bottom: 20px;
  21905. margin-left: 2px;
  21906. min-height: 90%;
  21907. }
  21908. .study_top .checkbox {
  21909. display: flex;
  21910. align-items: center;
  21911. padding: 15px 0 15px 30px;
  21912. flex: 0 0 auto;
  21913. font-weight: bold;
  21914. border-bottom: 1px solid #eee;
  21915. }
  21916. .study_top .check {
  21917. padding-bottom: 5px;
  21918. text-align: center;
  21919. cursor: pointer;
  21920. height: 30px;
  21921. box-sizing: border-box;
  21922. display: flex;
  21923. }
  21924. .study_top .checked {
  21925. border-bottom: 4px solid #3fc6a0;
  21926. padding-bottom: 5px;
  21927. color: #3fc6a0;
  21928. display: flex;
  21929. height: 35px;
  21930. }
  21931. .study_top .checked > div,
  21932. .study_top .check > div {
  21933. margin-right: 5px;
  21934. }
  21935. .videoTop {
  21936. display: flex;
  21937. flex-direction: row;
  21938. justify-content: space-between;
  21939. background: #fff;
  21940. align-items: center;
  21941. width: 95%;
  21942. padding: 20px;
  21943. }
  21944. .filebox {
  21945. display: flex;
  21946. flex-wrap: wrap;
  21947. flex-direction: column;
  21948. padding: 0 0 5px;
  21949. position: relative;
  21950. }
  21951. .filebox:before {
  21952. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21953. position: absolute;
  21954. top: 20px;
  21955. left: 13px;
  21956. border-left: 2px dotted #cad1dc;
  21957. height: calc(100% - 15px);
  21958. }
  21959. .toolHeng2 > div:last-child::before {
  21960. height: calc(100% - 43px);
  21961. }
  21962. .filebox .tooldetail {
  21963. width: calc(100%);
  21964. margin: 0px 12px;
  21965. padding: 12px;
  21966. line-height: 30px;
  21967. word-break: break-word;
  21968. background: #ffffff;
  21969. border-radius: 8px 8px 8px 8px;
  21970. opacity: 1;
  21971. border: 1px solid #cad1dc;
  21972. overflow:hidden;
  21973. box-sizing:border-box;
  21974. }
  21975. .file {
  21976. display: flex;
  21977. flex-direction: column;
  21978. align-items: center;
  21979. justify-content: center;
  21980. cursor: pointer;
  21981. width: 200px;
  21982. }
  21983. .file div {
  21984. margin-top: 10px;
  21985. width: 150px;
  21986. text-align: center;
  21987. overflow: hidden;
  21988. white-space: nowrap;
  21989. text-overflow: ellipsis;
  21990. }
  21991. .media {
  21992. display: flex;
  21993. flex-direction: column;
  21994. align-items: center;
  21995. justify-content: center;
  21996. margin: 0 20px 20px 0;
  21997. cursor: pointer;
  21998. margin: 12px 0 5px 15px;
  21999. overflow: hidden;
  22000. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22001. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22002. box-sizing: border-box;
  22003. }
  22004. .media img {
  22005. height: 90px;
  22006. width: 160px;
  22007. object-fit: cover;
  22008. }
  22009. .media .title {
  22010. padding: 5px;
  22011. text-align: left;
  22012. width: 100%;
  22013. box-sizing: border-box;
  22014. }
  22015. .media .btn {
  22016. width: 100%;
  22017. height: 35px;
  22018. line-height: 35px;
  22019. color: #fff;
  22020. background: #606060;
  22021. text-align: center;
  22022. overflow: hidden;
  22023. white-space: nowrap;
  22024. text-overflow: ellipsis;
  22025. }
  22026. .detail_content_top {
  22027. width: 100%;
  22028. padding: 25px 0 25px 0;
  22029. }
  22030. .detail_title {
  22031. text-align: center;
  22032. font-size: 24px;
  22033. }
  22034. .detail_time {
  22035. font-size: 13px;
  22036. padding: 15px 0 0 40px;
  22037. }
  22038. .detail_content {
  22039. line-height: 2pc;
  22040. width: 90%;
  22041. margin: 0 auto;
  22042. padding-top: 30px;
  22043. text-indent: 30px;
  22044. overflow: auto;
  22045. height: 200px;
  22046. }
  22047. .score_box >>> .el-rate {
  22048. margin-left: 10px;
  22049. }
  22050. .dialog_change >>> .el-dialog {
  22051. border-radius: 5px;
  22052. }
  22053. .dialog_change >>> .el-dialog__header {
  22054. background: #f2f2f2;
  22055. text-align: center;
  22056. }
  22057. .dialog_change >>> .el-dialog__title {
  22058. line-height: 5px;
  22059. }
  22060. .dialog_change >>> .el-dialog__body {
  22061. background: #fff;
  22062. padding: 10px 20px;
  22063. }
  22064. .score_box {
  22065. display: flex;
  22066. align-items: center;
  22067. margin-bottom: 18px;
  22068. margin-top: 20px;
  22069. }
  22070. .up_photo {
  22071. width: 120px;
  22072. cursor: pointer;
  22073. margin-top: 10px;
  22074. }
  22075. .up_photo2 {
  22076. width: 180px;
  22077. box-sizing: border-box;
  22078. min-width: 180px;
  22079. height: 180px;
  22080. max-height: 180px;
  22081. min-height: 180px;
  22082. cursor: pointer;
  22083. display: flex;
  22084. flex-direction: column;
  22085. align-items: center;
  22086. justify-content: center;
  22087. background: rgb(242, 246, 255);
  22088. /* padding: 25px; */
  22089. margin-bottom: 10px;
  22090. }
  22091. .up_photo2 img {
  22092. width: 50%;
  22093. height: auto;
  22094. }
  22095. .up_photo2 span {
  22096. color: #898989;
  22097. }
  22098. .plworkBox {
  22099. display: flex;
  22100. align-items: center;
  22101. margin-top: 10px;
  22102. flex-wrap: wrap;
  22103. }
  22104. .upload_send {
  22105. margin: 30px auto 30px;
  22106. width: 60%;
  22107. background: #3681fc;
  22108. text-align: center;
  22109. height: 35px;
  22110. line-height: 35px;
  22111. color: #fff;
  22112. border-radius: 5px;
  22113. cursor: pointer;
  22114. }
  22115. .marginT {
  22116. margin-top: 20px;
  22117. }
  22118. .cd_content_steps {
  22119. display: flex;
  22120. width: 90%;
  22121. justify-content: space-around;
  22122. border-top: 1px solid #eeeeee;
  22123. }
  22124. .cd_steps_box {
  22125. display: flex;
  22126. justify-content: center;
  22127. align-items: center;
  22128. flex-direction: column;
  22129. cursor: pointer;
  22130. }
  22131. .first {
  22132. display: flex;
  22133. align-items: center;
  22134. margin: 15px 0 20px 0;
  22135. font-size: 20px;
  22136. }
  22137. .first > div:nth-child(2) {
  22138. font-size: 16px !important;
  22139. padding-left: 10px;
  22140. line-height: 26px;
  22141. box-sizing: border-box;
  22142. }
  22143. .blue_box_one {
  22144. text-align: center;
  22145. color: #fff;
  22146. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22147. border-radius: 7px;
  22148. margin: 10px;
  22149. cursor: pointer;
  22150. width: 95%;
  22151. height: 45px;
  22152. display: flex;
  22153. flex-direction: row;
  22154. justify-content: flex-start;
  22155. align-items: center;
  22156. }
  22157. .blue_box_one > div:nth-child(1) {
  22158. line-height: 30px;
  22159. margin: 0 5px 0 10px;
  22160. width: 30%;
  22161. min-width: 70px;
  22162. border-radius: 4px;
  22163. }
  22164. .blue_box_one > div:nth-child(2) {
  22165. white-space: nowrap;
  22166. text-overflow: ellipsis;
  22167. overflow: hidden;
  22168. word-break: break-all;
  22169. width: 70%;
  22170. text-align: left;
  22171. margin-right: 10px;
  22172. max-width: calc(100% - 85px);
  22173. }
  22174. .blue_box_one > div:nth-child(2):hover {
  22175. overflow: hidden;
  22176. text-overflow: ellipsis;
  22177. white-space: nowrap;
  22178. cursor: pointer;
  22179. }
  22180. .upFile {
  22181. margin: 0 auto;
  22182. width: 120px;
  22183. background: #3681fc;
  22184. color: #fff;
  22185. height: 30px;
  22186. text-align: center;
  22187. line-height: 30px;
  22188. border-radius: 5px;
  22189. font-size: 14px;
  22190. cursor: pointer;
  22191. }
  22192. .courseTitle {
  22193. width: 85%;
  22194. margin: 10px auto 26px auto;
  22195. display: flex;
  22196. flex-direction: row;
  22197. align-items: center;
  22198. justify-content: space-between;
  22199. text-align: center;
  22200. }
  22201. .courseTitle .ctitle {
  22202. font-size: 20px;
  22203. font-weight: bold;
  22204. color: #0e1e33;
  22205. white-space: nowrap;
  22206. overflow: hidden;
  22207. text-overflow: ellipsis;
  22208. }
  22209. .inviteBox {
  22210. font-size: 14px;
  22211. /* margin-top: 5px; */
  22212. color: #00000099;
  22213. text-align: center;
  22214. }
  22215. .courseTitle >>> .el-tooltip {
  22216. width: 100%;
  22217. white-space: nowrap;
  22218. overflow: hidden;
  22219. text-overflow: ellipsis;
  22220. word-break: break-word;
  22221. }
  22222. .ml {
  22223. margin-left: 20px;
  22224. color: #5b7dba;
  22225. border-left: 3px solid #5b7dba;
  22226. padding-left: 5px;
  22227. font-weight: bold;
  22228. }
  22229. .return {
  22230. width: 2rem;
  22231. height: 2rem;
  22232. cursor: pointer;
  22233. }
  22234. .return > img {
  22235. width: 100%;
  22236. height: 100%;
  22237. }
  22238. .returnBtn {
  22239. width: 86px;
  22240. height: 36px;
  22241. background: #3681fc;
  22242. border-radius: 4px;
  22243. color: #fff;
  22244. text-align: center;
  22245. line-height: 36px;
  22246. margin-right: 20px;
  22247. cursor: pointer;
  22248. font-size: 14px;
  22249. font-weight: 400;
  22250. display: flex;
  22251. flex-direction: row;
  22252. flex-wrap: nowrap;
  22253. align-items: center;
  22254. justify-content: center;
  22255. }
  22256. .reBtnIcon,
  22257. .commentIcon,
  22258. .vedioIcon,
  22259. .vedioIcon1 {
  22260. /* width: 36px; */
  22261. height: 36px;
  22262. border-radius: 4px;
  22263. position: relative;
  22264. /* background: #e0eafb; */
  22265. background: #0061ff;
  22266. cursor: pointer;
  22267. margin-right: 12px;
  22268. display: flex;
  22269. align-items: center;
  22270. padding: 0 10px;
  22271. box-sizing: border-box;
  22272. font-size: 14px;
  22273. color: #fff;
  22274. }
  22275. .reBtnIcon::before,
  22276. .commentIcon::before,
  22277. .vedioIcon::before,
  22278. .vedioIcon1::before {
  22279. content: "";
  22280. display: block;
  22281. background-size: 100% 100%;
  22282. background-repeat: no-repeat;
  22283. width: 20px;
  22284. height: 20px;
  22285. margin-right: 5px;
  22286. /* position: absolute; */
  22287. /* top: 8px;
  22288. left: 8px; */
  22289. }
  22290. .vedioIcon1 {
  22291. background: #f63564;
  22292. }
  22293. .reBtnIcon::before {
  22294. background-image: url("../assets/icon/newIcons/refresh.png");
  22295. }
  22296. .commentIcon::before {
  22297. background-image: url("../assets/icon/newIcons/comment.png");
  22298. }
  22299. .vedioIcon::before {
  22300. background-image: url("../assets/icon/newIcons/transcribe.png");
  22301. }
  22302. .vedioIcon1::before {
  22303. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22304. background-image: url("../assets/icon/newIcons/transcribe.png");
  22305. }
  22306. .tool {
  22307. display: flex;
  22308. flex-direction: column;
  22309. flex-wrap: nowrap;
  22310. width: 13%;
  22311. margin: 0 30px;
  22312. align-items: center;
  22313. position: relative;
  22314. padding: 10px 25px;
  22315. cursor: pointer;
  22316. }
  22317. .whiteBIcon {
  22318. width: 150px;
  22319. }
  22320. .whiteBIcon > img {
  22321. width: 100%;
  22322. height: 100%;
  22323. }
  22324. .mask {
  22325. background-color: rgba(0, 0, 0, 0);
  22326. position: fixed;
  22327. top: 0;
  22328. left: 0;
  22329. width: 100%;
  22330. height: 100%;
  22331. z-index: 20000;
  22332. display: flex;
  22333. align-items: center;
  22334. justify-content: center;
  22335. }
  22336. .progressBox {
  22337. width: 500px;
  22338. height: 180px;
  22339. background: #fff;
  22340. border-radius: 10px;
  22341. box-shadow: 0 0 6px 1px #bfbfbf;
  22342. display: flex;
  22343. align-items: center;
  22344. justify-content: center;
  22345. flex-direction: column;
  22346. position: relative;
  22347. color: #6c6c6c;
  22348. }
  22349. .progressBox >>> .el-progress-bar__outer {
  22350. background-color: #d1dfff !important;
  22351. }
  22352. .progressBox .lbox {
  22353. height: 50px;
  22354. font-size: 19px;
  22355. display: flex;
  22356. align-items: center;
  22357. color: #747474;
  22358. }
  22359. .progressBox .lbox img {
  22360. width: 40px;
  22361. margin-right: 20px;
  22362. }
  22363. .closeCss {
  22364. position: absolute;
  22365. top: 8px;
  22366. right: 8px;
  22367. cursor: pointer;
  22368. width: 20px;
  22369. height: 20px;
  22370. }
  22371. .closeCss > img {
  22372. width: 100%;
  22373. height: 100%;
  22374. }
  22375. .uploadVedio {
  22376. display: flex;
  22377. flex-direction: column;
  22378. flex-wrap: nowrap;
  22379. justify-content: center;
  22380. align-items: center;
  22381. margin: 0 15px 10px 0;
  22382. }
  22383. .uploadVedio > img {
  22384. width: 30px;
  22385. height: 30px;
  22386. }
  22387. .uploadVedio > span {
  22388. white-space: nowrap;
  22389. overflow: hidden;
  22390. text-overflow: ellipsis;
  22391. width: 75px;
  22392. margin-top: 7px;
  22393. }
  22394. .picName {
  22395. white-space: nowrap;
  22396. overflow: hidden;
  22397. text-overflow: ellipsis;
  22398. width: 75px;
  22399. margin-top: 7px;
  22400. }
  22401. .new_top {
  22402. display: flex;
  22403. background: #fff;
  22404. flex-direction: row;
  22405. justify-content: flex-start;
  22406. align-items: center;
  22407. height: 60px;
  22408. position: fixed;
  22409. top: 20px;
  22410. left: 22%;
  22411. width: 77%;
  22412. z-index: 999;
  22413. border-radius: 12px 12px 0 0;
  22414. border-bottom: 1px solid #cad1dc;
  22415. padding: 10px 0;
  22416. }
  22417. .new_topFixed {
  22418. width: 100%;
  22419. height: 40px;
  22420. position: fixed;
  22421. top: 0px;
  22422. display: block;
  22423. background: #f2f2f2;
  22424. z-index: 998;
  22425. }
  22426. .before {
  22427. position: absolute;
  22428. background: #c3dad4;
  22429. width: 6px;
  22430. height: 100%;
  22431. }
  22432. .courseIndex {
  22433. display: flex;
  22434. flex-direction: row;
  22435. align-items: center;
  22436. width: calc(100% - 745px);
  22437. }
  22438. .courseIndex > div:nth-child(1) {
  22439. margin: 0 0 0 10px;
  22440. font-size: 20px;
  22441. min-width: 100px;
  22442. font-weight: bold;
  22443. border-left: 4px solid #3363b9;
  22444. height: 32px;
  22445. text-align: center;
  22446. line-height: 35px;
  22447. }
  22448. .courseIndex > div:nth-child(2) {
  22449. font-size: 20px;
  22450. /* width: 300px; */
  22451. max-width: calc(100% - 105px);
  22452. white-space: nowrap;
  22453. overflow: hidden;
  22454. text-overflow: ellipsis;
  22455. }
  22456. .courseIndex > div:nth-child(3) {
  22457. border-bottom: 1px solid #d7d7d7;
  22458. padding-bottom: 5px;
  22459. background: #3681fc;
  22460. width: 55px;
  22461. min-width: 55px;
  22462. border-radius: 5px;
  22463. color: #fff;
  22464. text-align: center;
  22465. height: 20px;
  22466. line-height: 26px;
  22467. font-size: 14px;
  22468. margin: 0 0 0 10px;
  22469. }
  22470. .course_text {
  22471. padding: 20px 0 0 15px;
  22472. text-indent: 30px;
  22473. width: 80%;
  22474. min-height: 20px;
  22475. }
  22476. .vedioList {
  22477. background: #f2f2f2;
  22478. border: 1px solid #ececec;
  22479. /* width: 38.8%; */
  22480. /* width: 300px; */
  22481. width: 100%;
  22482. height: 445px;
  22483. border-radius: 10px;
  22484. overflow: hidden;
  22485. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22486. }
  22487. .vedioNav {
  22488. margin: 10px 0 0 15px;
  22489. border-bottom: 1px solid #d7d7d7;
  22490. padding-bottom: 5px;
  22491. background: #3681fc;
  22492. width: 55px;
  22493. min-width: 55px;
  22494. border-radius: 5px;
  22495. color: #fff;
  22496. text-align: center;
  22497. height: 20px;
  22498. line-height: 26px;
  22499. font-size: 14px;
  22500. }
  22501. .queTop {
  22502. display: flex;
  22503. padding: 20px 0 20px 30px;
  22504. width: 100%;
  22505. flex-direction: row;
  22506. justify-content: flex-start;
  22507. align-items: center;
  22508. box-sizing: border-box;
  22509. }
  22510. .queTopTitle {
  22511. display: flex;
  22512. flex-direction: row;
  22513. flex-wrap: nowrap;
  22514. align-items: center;
  22515. font-weight: bold;
  22516. font-size: 20px;
  22517. color: rgb(14, 30, 51);
  22518. }
  22519. .queTopTitle::before {
  22520. content: "";
  22521. width: 2px;
  22522. height: 22px;
  22523. background: #3681fc;
  22524. border-radius: 3px;
  22525. display: block;
  22526. margin: 2px 6px 0 0;
  22527. }
  22528. .queTopRight {
  22529. display: flex;
  22530. flex-direction: row;
  22531. flex-wrap: nowrap;
  22532. align-items: center;
  22533. }
  22534. .queTopClose {
  22535. margin-right: 20px;
  22536. cursor: pointer;
  22537. position: relative;
  22538. display: flex;
  22539. }
  22540. .closeImg,
  22541. .openImg {
  22542. width: 25px;
  22543. height: 25px;
  22544. position: absolute;
  22545. left: -20px;
  22546. top: -1px;
  22547. }
  22548. .closeImg > img,
  22549. .openImg > img {
  22550. width: 100%;
  22551. height: 100%;
  22552. }
  22553. .question {
  22554. width: 40px;
  22555. margin-right: 10px;
  22556. margin-top: 7px;
  22557. }
  22558. .queTitle {
  22559. margin-left: 5px;
  22560. font-size: 25px;
  22561. display: flex;
  22562. align-items: center;
  22563. }
  22564. .addEditor {
  22565. width: 100px;
  22566. height: 30px;
  22567. background: #42cda6;
  22568. color: #fff;
  22569. border-radius: 5px;
  22570. text-align: center;
  22571. line-height: 30px;
  22572. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22573. cursor: pointer;
  22574. }
  22575. /* .vedioName {
  22576. cursor: pointer;
  22577. margin: 0px 0px 10px 5px;
  22578. white-space: nowrap;
  22579. overflow: hidden;
  22580. text-overflow: ellipsis;
  22581. width: 100%;
  22582. } */
  22583. .vedioTime {
  22584. width: 35px;
  22585. position: absolute;
  22586. color: #fff;
  22587. bottom: 0px;
  22588. right: 0px;
  22589. text-align: center;
  22590. background: #46411f;
  22591. height: 20px;
  22592. font-size: 14px;
  22593. line-height: 20px;
  22594. }
  22595. .homework {
  22596. width: 200px;
  22597. display: flex;
  22598. flex-direction: column;
  22599. flex-wrap: nowrap;
  22600. align-items: center;
  22601. cursor: pointer;
  22602. }
  22603. .homebox {
  22604. display: flex;
  22605. flex-wrap: wrap;
  22606. flex-direction: row;
  22607. justify-content: flex-start;
  22608. align-items: center;
  22609. padding: 15px 0;
  22610. }
  22611. .isChooseActive {
  22612. color: #3681fc !important;
  22613. font-weight: bold !important;
  22614. }
  22615. .chooseWho {
  22616. display: flex;
  22617. width: 100%;
  22618. flex-direction: row;
  22619. flex-wrap: nowrap;
  22620. justify-content: flex-start;
  22621. padding-bottom: 10px;
  22622. }
  22623. .chooseWho > div {
  22624. cursor: pointer;
  22625. padding-bottom: 10px;
  22626. margin: 0 30px 0 0;
  22627. font-weight: 400;
  22628. color: #0e1e33;
  22629. }
  22630. .addPoint > div > img {
  22631. cursor: pointer;
  22632. width: 85px;
  22633. border-radius: 15px;
  22634. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22635. }
  22636. .addPoint > div {
  22637. display: flex;
  22638. flex-direction: column;
  22639. flex-wrap: nowrap;
  22640. align-items: center;
  22641. }
  22642. .isBorder > div {
  22643. margin: 0 0 10px 0;
  22644. align-items: flex-start !important;
  22645. }
  22646. .noiframeBox {
  22647. display: flex;
  22648. flex-wrap: wrap;
  22649. }
  22650. .iframeBox iframe {
  22651. width: 100%;
  22652. height: 800px;
  22653. border: none;
  22654. margin-bottom: 20px;
  22655. border: 1px solid #ccc;
  22656. }
  22657. .upload_toolBtn {
  22658. background: #3681fc;
  22659. color: #fff;
  22660. width: 110px;
  22661. text-align: center;
  22662. height: 35px;
  22663. line-height: 35px;
  22664. font-size: 14px;
  22665. border-radius: 5px;
  22666. cursor: pointer;
  22667. position: absolute;
  22668. right: 10px;
  22669. bottom: 0;
  22670. }
  22671. .binfo_input,
  22672. .pj {
  22673. font: inherit;
  22674. color: currentColor;
  22675. width: 100%;
  22676. margin: 0;
  22677. padding: 15px 14px;
  22678. display: block;
  22679. min-width: 0;
  22680. outline: none;
  22681. box-sizing: content-box;
  22682. background: none;
  22683. -webkit-tap-highlight-color: transparent;
  22684. border: 1px solid rgba(0, 0, 0, 0.23);
  22685. border-radius: 4px;
  22686. box-sizing: border-box;
  22687. resize: none;
  22688. }
  22689. .binfo_input:focus-visible {
  22690. border: 1px solid rgba(61, 103, 188);
  22691. }
  22692. .dialog_diy >>> .el-dialog__header,
  22693. .dialog_diy1 >>> .el-dialog__header {
  22694. background: #454545 !important;
  22695. padding: 15px 20px;
  22696. }
  22697. .dialog_diy >>> .el-dialog__title,
  22698. .dialog_diy1 >>> .el-dialog__title {
  22699. color: #fff;
  22700. }
  22701. .dialog_diy >>> .el-dialog__headerbtn,
  22702. .dialog_diy1 >>> .el-dialog__headerbtn {
  22703. top: 19px;
  22704. }
  22705. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22706. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22707. color: #fff;
  22708. }
  22709. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22710. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22711. color: #fff;
  22712. }
  22713. .dialog_diy1 >>> .el-dialog__body {
  22714. padding: 0;
  22715. }
  22716. .dialog_diy >>> .el-dialog__body,
  22717. .dialog_diy >>> .el-dialog__footer,
  22718. .dialog_diy1 >>> .el-dialog__footer {
  22719. background: #fafafa;
  22720. }
  22721. .a_addBox {
  22722. padding: 0 0 0 15px;
  22723. }
  22724. .a_add_box {
  22725. padding: 10px;
  22726. background: #fff;
  22727. margin-bottom: 10px;
  22728. border-radius: 5px;
  22729. box-shadow: 0 0 5px 0 #d5d5d5;
  22730. }
  22731. .a_add_head {
  22732. display: flex;
  22733. align-items: flex-start;
  22734. /* justify-content: space-between; */
  22735. flex-direction: column;
  22736. /* flex-direction: row; */
  22737. margin: 10px 0 20px 0;
  22738. font-size: 18px;
  22739. width: 100%;
  22740. }
  22741. .askIndex {
  22742. background: #3681fc;
  22743. border-radius: 50%;
  22744. color: #fff;
  22745. width: 25px;
  22746. height: 25px;
  22747. min-width: 25px;
  22748. min-height: 25px;
  22749. text-align: center;
  22750. line-height: 25px;
  22751. margin-right: 5px;
  22752. }
  22753. .a_add_head .a_add_head_input {
  22754. width: 300px;
  22755. }
  22756. .a_add_head .a_add_head_div {
  22757. display: flex;
  22758. align-items: center;
  22759. justify-content: space-between;
  22760. }
  22761. .a_add_body {
  22762. display: flex;
  22763. align-items: center;
  22764. }
  22765. .a_add_input {
  22766. display: flex;
  22767. align-items: center;
  22768. flex-wrap: wrap;
  22769. width: 100%;
  22770. }
  22771. .a_add_input >>> .el-radio-group,
  22772. .a_add_input >>> .el-checkbox-group {
  22773. width: 100%;
  22774. }
  22775. .a_add_input >>> .el-radio,
  22776. .a_add_input >>> .el-checkbox {
  22777. display: flex;
  22778. flex-direction: row;
  22779. flex-wrap: nowrap;
  22780. align-items: center;
  22781. padding: 15px 0;
  22782. }
  22783. .a_add_input >>> .el-radio:not(:last-child),
  22784. .a_add_input >>> .el-checkbox:not(:last-child) {
  22785. width: 100%;
  22786. border-bottom: 1px solid #efefef;
  22787. }
  22788. .redioStyle >>> .el-radio__label {
  22789. font-size: 18px;
  22790. }
  22791. .redioStyle >>> .el-radio__label > span,
  22792. .redioStyle >>> .el-checkbox__label > span {
  22793. word-break: break-all;
  22794. white-space: normal;
  22795. }
  22796. .redioStyle >>> .el-checkbox__label {
  22797. font-size: 18px;
  22798. }
  22799. .toolHeng2 {
  22800. width: 100%;
  22801. padding-left: 15px;
  22802. box-sizing: border-box;
  22803. }
  22804. .workNav {
  22805. font-size: 20px;
  22806. font-weight: bold;
  22807. color: #0e1e33;
  22808. display: flex;
  22809. flex-direction: row;
  22810. flex-wrap: nowrap;
  22811. align-items: center;
  22812. padding: 15px 0 15px 0;
  22813. }
  22814. .workNav::before {
  22815. content: "";
  22816. width: 2px;
  22817. height: 22px;
  22818. background: #3681fc;
  22819. border-radius: 3px;
  22820. display: block;
  22821. margin: 2px 6px 0 0;
  22822. }
  22823. .toolHeng {
  22824. display: flex;
  22825. flex-direction: row;
  22826. flex-wrap: wrap;
  22827. justify-content: flex-start;
  22828. align-items: center;
  22829. width: 100%;
  22830. }
  22831. .toolHeng > div {
  22832. padding-left: 20px;
  22833. }
  22834. .isWidth {
  22835. width: 20%;
  22836. }
  22837. .textTitle {
  22838. display: flex;
  22839. flex-direction: row;
  22840. flex-wrap: nowrap;
  22841. align-items: center;
  22842. width: 95%;
  22843. }
  22844. .textTitle >>> .el-form-item__label {
  22845. font-size: 22px;
  22846. color: #918f8f;
  22847. width: 100px;
  22848. }
  22849. .textTitle >>> .el-form-item__content {
  22850. width: calc(100% - 100px);
  22851. }
  22852. .textCss >>> .el-dialog {
  22853. width: 800px !important;
  22854. height: 400px;
  22855. background: #fafafa;
  22856. }
  22857. .textCss >>> .el-dialog__body {
  22858. margin: 55px 8% 0 8%;
  22859. padding: 0 !important;
  22860. }
  22861. .textCss >>> .el-dialog__footer {
  22862. padding-top: 38px;
  22863. }
  22864. .toolsCss >>> .el-dialog__body {
  22865. padding: 20px;
  22866. }
  22867. .lineCss >>> .el-dialog__body {
  22868. display: flex;
  22869. flex-direction: row;
  22870. align-items: center;
  22871. justify-content: center;
  22872. }
  22873. .newNav {
  22874. display: flex;
  22875. flex-direction: row;
  22876. align-items: baseline;
  22877. justify-content: flex-start;
  22878. }
  22879. .navListItem {
  22880. width: calc(100% - 20px);
  22881. height: 50px;
  22882. margin: 0px auto 10px;
  22883. display: flex;
  22884. flex-direction: row;
  22885. flex-wrap: nowrap;
  22886. align-items: center;
  22887. justify-content: space-between;
  22888. background: #f0f4fa;
  22889. border-radius: 6px 6px 6px 6px;
  22890. }
  22891. .navText {
  22892. cursor: pointer;
  22893. white-space: nowrap;
  22894. overflow: hidden;
  22895. text-overflow: ellipsis;
  22896. width: 220px;
  22897. padding: 0 10px;
  22898. font-weight: 400;
  22899. color: #0e1e33;
  22900. }
  22901. .downIcon {
  22902. width: 20px;
  22903. min-width: 20px;
  22904. height: 20px;
  22905. margin-right: 15px;
  22906. cursor: pointer;
  22907. }
  22908. .downIcon > img {
  22909. width: 100%;
  22910. height: 100%;
  22911. }
  22912. .noVedio {
  22913. display: flex;
  22914. flex-direction: row;
  22915. justify-content: center;
  22916. align-content: center;
  22917. }
  22918. .noNavText {
  22919. cursor: pointer;
  22920. margin: 0px 0px 10px 5px;
  22921. width: 112px;
  22922. }
  22923. .listNoVedio {
  22924. margin: 0 0 0 30px;
  22925. width: 97%;
  22926. }
  22927. .video-player >>> .video-js {
  22928. height: 100%;
  22929. }
  22930. .hangVedioList {
  22931. width: 90% !important;
  22932. height: 150px !important;
  22933. margin: 20px 0 0 30px;
  22934. }
  22935. .hangVedio {
  22936. width: 100%;
  22937. height: 170px !important;
  22938. align-items: flex-start !important;
  22939. }
  22940. .hangHand {
  22941. height: 150px !important;
  22942. }
  22943. .twoChild {
  22944. width: 95%;
  22945. margin: 10px;
  22946. border-radius: 5px;
  22947. background: #f2f2f2;
  22948. display: flex;
  22949. flex-direction: column;
  22950. flex-wrap: nowrap;
  22951. justify-content: flex-start;
  22952. align-items: flex-start;
  22953. transition: all 0.5s;
  22954. overflow: hidden;
  22955. height: 0;
  22956. background: #e7f3ff;
  22957. }
  22958. .twoChild > div:nth-child(1) {
  22959. margin-top: 5px;
  22960. }
  22961. .navChild {
  22962. width: 100%;
  22963. cursor: pointer;
  22964. margin-bottom: 10px;
  22965. position: relative;
  22966. }
  22967. .navChild img {
  22968. position: absolute;
  22969. right: 11px;
  22970. width: 15px;
  22971. top: 50%;
  22972. transform: translateY(-50%);
  22973. }
  22974. .navActive,
  22975. .toolActive {
  22976. height: auto !important;
  22977. overflow: auto !important;
  22978. /* padding-bottom: 16px; */
  22979. }
  22980. .toolActive {
  22981. padding: 0;
  22982. }
  22983. .navTask {
  22984. display: flex;
  22985. flex-direction: row;
  22986. flex-wrap: nowrap;
  22987. align-items: center;
  22988. align-content: flex-start;
  22989. height: 40px;
  22990. justify-content: flex-start;
  22991. padding: 0 10px;
  22992. width: 100%;
  22993. box-sizing: border-box;
  22994. }
  22995. .navTaskname {
  22996. white-space: nowrap;
  22997. text-overflow: ellipsis;
  22998. overflow: hidden;
  22999. word-break: break-all;
  23000. padding-left: 5px;
  23001. }
  23002. .openTaskActive {
  23003. /* background-color: #e0eafb !important;
  23004. color: #0061ff; */
  23005. color:#fff;
  23006. background: rgb(55, 129, 252) !important;
  23007. }
  23008. .iframeName {
  23009. margin: 5px 0;
  23010. border-left: 4px solid #41c4a4;
  23011. padding-left: 4px;
  23012. }
  23013. .toolTitle {
  23014. margin: 0px 0px 20px;
  23015. font-size: 20px;
  23016. font-weight: 500;
  23017. border-left: 4px solid #41c4a4;
  23018. padding-left: 4px;
  23019. }
  23020. .cru_selectBox {
  23021. overflow: auto;
  23022. width: 95%;
  23023. margin: 17px auto 0;
  23024. height: calc(100% - 40px - 21px - 20px - 17px);
  23025. background: #fff;
  23026. border-radius: 8px;
  23027. }
  23028. .cru_selectBox::-webkit-scrollbar,
  23029. .study_top::-webkit-scrollbar,
  23030. .textContent::-webkit-scrollbar {
  23031. /*滚动条整体样式*/
  23032. width: 6px;
  23033. /*高宽分别对应横竖滚动条的尺寸*/
  23034. height: 6px;
  23035. }
  23036. /*定义滚动条轨道 内阴影+圆角*/
  23037. .cru_selectBox::-webkit-scrollbar-track,
  23038. .study_top::-webkit-scrollbar-track,
  23039. .textContent::-webkit-scrollbar {
  23040. border-radius: 10px;
  23041. background-color: #b8bdc9;
  23042. }
  23043. /*定义滑块 内阴影+圆角*/
  23044. .cru_selectBox::-webkit-scrollbar-thumb,
  23045. .study_top::-webkit-scrollbar-thumb,
  23046. .textContent::-webkit-scrollbar-thumb {
  23047. border-radius: 10px;
  23048. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23049. background-color: #2c5ab3;
  23050. }
  23051. .vedioBox {
  23052. border-radius: 0 0 20px 20px;
  23053. background: #fff;
  23054. overflow: auto;
  23055. }
  23056. .taskBox {
  23057. width: 98%;
  23058. background: #f0f4fa;
  23059. margin: 10px auto;
  23060. padding: 0 10px;
  23061. border-radius: 4px;
  23062. box-sizing: border-box;
  23063. }
  23064. .vedioTaskBox {
  23065. width: 100%;
  23066. display: flex;
  23067. flex-direction: row;
  23068. flex-wrap: nowrap;
  23069. align-items: flex-start;
  23070. position: relative;
  23071. }
  23072. .toolBox {
  23073. margin: 15px 0 0 25px;
  23074. display: flex;
  23075. position: relative;
  23076. padding: 18px 20px;
  23077. border-top-left-radius: 5px;
  23078. border-top-right-radius: 5px;
  23079. width: 90%;
  23080. }
  23081. .btnAll {
  23082. position: absolute;
  23083. right: 0;
  23084. display: flex;
  23085. flex-direction: row;
  23086. flex-wrap: nowrap;
  23087. align-items: center;
  23088. }
  23089. .btnLeft,
  23090. .btnRight {
  23091. display: flex;
  23092. flex-direction: row;
  23093. flex-wrap: nowrap;
  23094. align-items: center;
  23095. padding: 5px 0;
  23096. }
  23097. .btnLeft {
  23098. border-right: 1px solid #cad1dc;
  23099. }
  23100. .btnLeft > .custom-tooltip {
  23101. background: #3681fc;
  23102. color: #fff;
  23103. }
  23104. .last:hover {
  23105. background: #3383fa !important;
  23106. color: #fff;
  23107. border: 1px solid #3383fa !important;
  23108. }
  23109. .last,
  23110. .returnBtn1 {
  23111. width: 90px;
  23112. height: 36px;
  23113. background: #ffffff;
  23114. border-radius: 4px;
  23115. border: 1px solid #0061ff;
  23116. color: #0061ff;
  23117. cursor: pointer;
  23118. display: flex;
  23119. flex-direction: row;
  23120. flex-wrap: nowrap;
  23121. align-items: center;
  23122. justify-content: center;
  23123. margin-left: 12px;
  23124. }
  23125. .returnBtn1 {
  23126. background: #f0f4fa;
  23127. border-radius: 4px;
  23128. border: 1px solid #cad1dc;
  23129. margin: 0 12px;
  23130. }
  23131. .lastImg {
  23132. min-width: 15px;
  23133. width: 15px;
  23134. height: 15px;
  23135. display: flex;
  23136. }
  23137. .lastText {
  23138. padding: 0 5px 0 5px;
  23139. box-sizing: border-box;
  23140. font-size: 14px;
  23141. }
  23142. .lastImg > img {
  23143. width: 100%;
  23144. height: 100%;
  23145. }
  23146. /* .vedioTimeBox {
  23147. display: flex;
  23148. flex-direction: row;
  23149. align-items: center;
  23150. flex-wrap: nowrap;
  23151. position: relative;
  23152. } */
  23153. .navBox {
  23154. background: #fff;
  23155. height: calc(100% - 40px);
  23156. overflow-y: auto;
  23157. overflow-x: hidden;
  23158. }
  23159. .worksBox {
  23160. margin: 0 0 10px 25px;
  23161. border-bottom: 1px solid #eeeeee;
  23162. padding: 18px 20px;
  23163. border-radius: 4px;
  23164. width: 90%;
  23165. }
  23166. .worksBTitle {
  23167. font-size: 20px;
  23168. padding-bottom: 15px;
  23169. border-bottom: 1px solid #eeeeee;
  23170. display: flex;
  23171. align-items: center;
  23172. }
  23173. .greenBox {
  23174. width: 5px;
  23175. height: 30px;
  23176. background: #63b6fa;
  23177. margin-right: 5px;
  23178. }
  23179. .worksDetailBox {
  23180. display: flex;
  23181. width: 100%;
  23182. flex-direction: row;
  23183. flex-wrap: wrap;
  23184. align-items: flex-end;
  23185. justify-content: flex-start;
  23186. padding: 15px 5px;
  23187. box-sizing: border-box;
  23188. }
  23189. .works {
  23190. display: flex;
  23191. flex-direction: column;
  23192. flex-wrap: nowrap;
  23193. align-items: flex-start;
  23194. justify-content: flex-start;
  23195. align-content: center;
  23196. max-width: 240px;
  23197. width: calc(100% / 3 - 10px);
  23198. height: auto;
  23199. margin-right: 10px;
  23200. margin-bottom: 10px;
  23201. overflow: hidden;
  23202. height: 140px;
  23203. box-shadow: 0 0 6px 1px #dfdada;
  23204. border-radius: 15px;
  23205. }
  23206. .workImg {
  23207. width: 100%;
  23208. /* height: calc(100% - 40px); */
  23209. height: 105px;
  23210. position: relative;
  23211. }
  23212. .workImg > img {
  23213. width: 100%;
  23214. height: 100%;
  23215. object-fit: contain;
  23216. cursor: pointer;
  23217. }
  23218. .worksName {
  23219. height: 40px;
  23220. line-height: 40px;
  23221. display: flex;
  23222. width: 100%;
  23223. flex-direction: row;
  23224. flex-wrap: nowrap;
  23225. justify-content: space-between;
  23226. align-items: center;
  23227. margin: 0 0 0 10px;
  23228. }
  23229. .worksName > div:nth-child(1) {
  23230. width: 110px;
  23231. white-space: nowrap;
  23232. overflow: hidden;
  23233. text-overflow: ellipsis;
  23234. }
  23235. .worksName > div:nth-child(2) {
  23236. color: #b7b4b5;
  23237. }
  23238. .noWorksS {
  23239. padding: 15px 0;
  23240. display: flex;
  23241. flex-direction: row;
  23242. flex-wrap: wrap;
  23243. align-items: center;
  23244. justify-content: flex-start;
  23245. }
  23246. .noWorksName,
  23247. .isWorksName,
  23248. .isWorksName2 {
  23249. background: #ddebf8;
  23250. color: #000;
  23251. width: 90px;
  23252. height: 25px;
  23253. text-align: center;
  23254. line-height: 25px;
  23255. border-radius: 4px;
  23256. margin: 10px 15px 10px 0;
  23257. white-space: nowrap;
  23258. overflow: hidden;
  23259. padding: 5px;
  23260. text-overflow: ellipsis;
  23261. cursor: pointer;
  23262. border: 1px solid #ddebf8;
  23263. }
  23264. .noWorksName {
  23265. background: #fff;
  23266. color: #0061ff;
  23267. border: 1px solid #0061ff;
  23268. }
  23269. .noWorksName > span{
  23270. max-width: 100%;
  23271. display: block;
  23272. overflow: hidden;
  23273. text-overflow: ellipsis;
  23274. white-space: nowrap;
  23275. }
  23276. .noWorksName2 {
  23277. background: #fff;
  23278. color: #0061ff;
  23279. width: 90px;
  23280. height: 25px;
  23281. text-align: center;
  23282. line-height: 25px;
  23283. border-radius: 4px;
  23284. margin: 10px 15px 10px 0;
  23285. white-space: nowrap;
  23286. overflow: hidden;
  23287. padding: 5px;
  23288. text-overflow: ellipsis;
  23289. cursor: pointer;
  23290. border: 1px solid #0061ff;
  23291. }
  23292. .noWorksName2 > span {
  23293. max-width: 100%;
  23294. display: block;
  23295. overflow: hidden;
  23296. text-overflow: ellipsis;
  23297. white-space: nowrap;
  23298. }
  23299. .isWorksName2 {
  23300. width: 100px;
  23301. height: 40px;
  23302. line-height: 40px;
  23303. position: relative;
  23304. background: #dae6f9;
  23305. }
  23306. .isWorksName {
  23307. background: #e7ebf1 !important;
  23308. width: 100px;
  23309. height: 40px;
  23310. line-height: 40px;
  23311. position: relative;
  23312. color: #acb4bf;
  23313. border: 1px solid #cad1dc !important;
  23314. }
  23315. .isSelectName,
  23316. .noWorksName:hover {
  23317. background: #3383fa !important;
  23318. color: #fff !important;
  23319. border: 1px solid #3383fa !important;
  23320. }
  23321. .title {
  23322. background: #1e5cc9;
  23323. /* width: 98%; */
  23324. height: 45px;
  23325. color: #fff;
  23326. line-height: 45px;
  23327. padding-left: 20px;
  23328. box-sizing: border-box;
  23329. }
  23330. .textBox {
  23331. font-size: 20px;
  23332. width: 90%;
  23333. display: flex;
  23334. flex-direction: column;
  23335. align-items: center;
  23336. margin: 20px auto 0;
  23337. max-height: calc(100% - 75px);
  23338. overflow: auto;
  23339. }
  23340. .textContent {
  23341. font-size: 18px;
  23342. width: 95%;
  23343. max-width: 95%;
  23344. }
  23345. .answerBg {
  23346. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23347. background-size: 100% 100%;
  23348. width: 100%;
  23349. height: 100%;
  23350. color: #fff;
  23351. text-align: center;
  23352. display: flex;
  23353. flex-direction: column;
  23354. flex-wrap: nowrap;
  23355. align-items: center;
  23356. position: relative;
  23357. justify-content: center;
  23358. }
  23359. /* .answerBg > div:nth-child(1) { */
  23360. /* font-size: 22px;
  23361. padding: 25px 0 10px; */
  23362. /* } */
  23363. .answerContent {
  23364. width: 215px;
  23365. max-height: 60px;
  23366. word-break: break-all;
  23367. text-align: center;
  23368. /* white-space: nowrap; */
  23369. overflow: hidden;
  23370. text-overflow: ellipsis;
  23371. /* padding: 23px 0 0; */
  23372. -webkit-line-clamp: 3;
  23373. -webkit-box-orient: vertical;
  23374. display: -webkit-box;
  23375. font-size: 15px;
  23376. cursor: pointer;
  23377. }
  23378. .elist_input_box {
  23379. display: flex;
  23380. align-items: flex-start;
  23381. flex-wrap: nowrap;
  23382. padding: 10px 0 15px 30px;
  23383. flex-direction: column;
  23384. }
  23385. .elist_input {
  23386. /* width: 40%; */
  23387. width: 45%;
  23388. margin: 20px;
  23389. }
  23390. .elist_input .elist_input_box input {
  23391. font: inherit;
  23392. color: currentColor;
  23393. width: 200px;
  23394. padding: 8px 14px;
  23395. display: block;
  23396. min-width: 0;
  23397. outline: none;
  23398. border: 1px solid rgba(0, 0, 0, 0.23);
  23399. border-radius: 4px;
  23400. box-sizing: border-box;
  23401. background: #fff;
  23402. margin: 0 20px 0 0;
  23403. }
  23404. .elist_input .elist_input_box span {
  23405. height: 36px;
  23406. line-height: 36px;
  23407. color: rgb(82, 82, 82);
  23408. }
  23409. .elist_input .elist_input_box .remove {
  23410. height: 20px;
  23411. width: 20px;
  23412. background-size: 100% 100%;
  23413. background-position: unset;
  23414. margin-left: 5px;
  23415. }
  23416. .elist_input_box >>> .el-rate {
  23417. display: flex;
  23418. height: 36px;
  23419. align-items: center;
  23420. }
  23421. .elist_input_box .elist_inptu_text {
  23422. min-height: 50px;
  23423. /* width: 500px;
  23424. max-height: 150px; */
  23425. width: 100%;
  23426. line-height: 50px;
  23427. color: rgb(82, 82, 82);
  23428. overflow: auto;
  23429. text-indent: 5px;
  23430. background: #f7f6f9;
  23431. border-radius: 10px;
  23432. }
  23433. .elist_input_box .elist_inptu_text input {
  23434. width: 500px;
  23435. }
  23436. .elist_input_box >>> .el-rate__icon {
  23437. font-size: 24px;
  23438. }
  23439. .isClick {
  23440. background: #4d9def;
  23441. }
  23442. .bzBox {
  23443. display: flex;
  23444. flex-direction: row;
  23445. align-items: center;
  23446. }
  23447. .bzBox .yCss {
  23448. width: 7px;
  23449. height: 7px;
  23450. background: #fff;
  23451. margin: 0 16px 0 6px;
  23452. border-radius: 50%;
  23453. border: 5px solid #3681fc;
  23454. z-index: 99;
  23455. }
  23456. .bzBox > div:nth-child(2) {
  23457. font-size: 18px;
  23458. font-weight: bold;
  23459. color: #0e1e33;
  23460. }
  23461. .navTitile {
  23462. padding: 0 0px 0 15px;
  23463. font-size: 16px;
  23464. font-weight: bold;
  23465. color: #0e1e33;
  23466. height: 40px;
  23467. line-height: 40px;
  23468. }
  23469. .isTypeOne {
  23470. width: 240px;
  23471. height: 170px;
  23472. /* border: 1px solid #f8f8f8; */
  23473. border-radius: 10px;
  23474. box-shadow: 0 0 6px 1px #dfdada;
  23475. }
  23476. .e_add_top {
  23477. display: flex;
  23478. justify-content: space-between;
  23479. padding: 10px 20px;
  23480. border-radius: 3px;
  23481. background: #fff;
  23482. }
  23483. .e_add_title2 {
  23484. display: flex;
  23485. align-items: center;
  23486. }
  23487. .e_add_title2 span {
  23488. width: 40px;
  23489. }
  23490. .e_add_title {
  23491. display: flex;
  23492. align-items: center;
  23493. color: #b8b8b8;
  23494. font-size: 18px;
  23495. position: relative;
  23496. height: 40px;
  23497. width: 100%;
  23498. }
  23499. .e_add_title span {
  23500. margin-right: 10px;
  23501. }
  23502. .e_add_title .el_input {
  23503. width: 300px;
  23504. }
  23505. .e_add_title >>> .el-input__inner {
  23506. width: 400px;
  23507. }
  23508. /* .e_add_btn {
  23509. } */
  23510. .e_add_content {
  23511. display: flex;
  23512. width: 100%;
  23513. max-width: 650px;
  23514. height: 550px;
  23515. }
  23516. .e_add_list {
  23517. background: #fff;
  23518. height: 500px;
  23519. width: 210px;
  23520. position: relative;
  23521. margin: 15px 5px 0 0;
  23522. flex-shrink: 0;
  23523. display: flex;
  23524. flex-direction: column;
  23525. }
  23526. .e_add_list_title {
  23527. font-size: 20px;
  23528. width: 100%;
  23529. box-sizing: border-box;
  23530. padding: 15px 40px;
  23531. text-align: center;
  23532. border-bottom: 1px solid #eaeaea;
  23533. position: relative;
  23534. display: flex;
  23535. align-items: center;
  23536. justify-content: center;
  23537. height: 57px;
  23538. background: #f6f6f6;
  23539. }
  23540. .e_add_list_title span {
  23541. overflow: hidden;
  23542. white-space: nowrap;
  23543. text-overflow: ellipsis;
  23544. }
  23545. .e_add_list_title img {
  23546. position: absolute;
  23547. right: 15px;
  23548. width: 25px;
  23549. cursor: pointer;
  23550. top: 50%;
  23551. transform: translateY(-50%);
  23552. }
  23553. .e_add_list_body {
  23554. height: calc(100% - 187px);
  23555. overflow: auto;
  23556. }
  23557. .e_add_list_child {
  23558. width: 100%;
  23559. display: flex;
  23560. align-items: center;
  23561. justify-content: center;
  23562. position: relative;
  23563. box-sizing: border-box;
  23564. padding: 15px 40px;
  23565. text-align: center;
  23566. }
  23567. .e_add_list_child span {
  23568. overflow: hidden;
  23569. white-space: nowrap;
  23570. text-overflow: ellipsis;
  23571. cursor: pointer;
  23572. }
  23573. .e_add_list_child img {
  23574. position: absolute;
  23575. right: 10px;
  23576. width: 21px;
  23577. cursor: pointer;
  23578. top: 50%;
  23579. transform: translateY(-50%);
  23580. }
  23581. .e_add_list_child + .e_add_list_child {
  23582. border-top: 1px solid #eaeaea;
  23583. }
  23584. .e_add_list_child .active {
  23585. color: #409eff;
  23586. }
  23587. .e_add_list_btn {
  23588. position: absolute;
  23589. bottom: 0;
  23590. height: 50px;
  23591. background: rgb(120, 120, 254);
  23592. width: 100%;
  23593. color: #fff;
  23594. font-size: 16px;
  23595. text-align: center;
  23596. line-height: 50px;
  23597. cursor: pointer;
  23598. }
  23599. .e_add_list_detail {
  23600. position: absolute;
  23601. bottom: 0;
  23602. height: 130px;
  23603. background: rgb(120, 120, 254);
  23604. width: 100%;
  23605. color: #fff;
  23606. font-size: 16px;
  23607. display: flex;
  23608. align-items: center;
  23609. justify-content: center;
  23610. }
  23611. .e_add_list_detail textarea {
  23612. height: 90%;
  23613. width: 95%;
  23614. border: none;
  23615. resize: none;
  23616. outline: none;
  23617. padding: 5px;
  23618. box-sizing: border-box;
  23619. }
  23620. .e_add_list_pbox {
  23621. width: 100%;
  23622. max-width: 650px;
  23623. /* height: 600px; */
  23624. }
  23625. .e_add_list_pbox_title {
  23626. height: 50px;
  23627. background: #fff;
  23628. display: flex;
  23629. align-items: center;
  23630. width: 100%;
  23631. box-sizing: border-box;
  23632. padding: 0 20px;
  23633. }
  23634. .type_title {
  23635. font-size: 18px;
  23636. font-weight: 700;
  23637. }
  23638. .type_content {
  23639. font-size: 16px;
  23640. /* margin-left: 30px; */
  23641. }
  23642. .type_content span + span {
  23643. margin-left: 20px;
  23644. }
  23645. .type_content span {
  23646. cursor: pointer;
  23647. padding-bottom: 5px;
  23648. box-sizing: border-box;
  23649. }
  23650. .type_content .active {
  23651. color: #409eff;
  23652. border-bottom: 2px solid #409eff;
  23653. }
  23654. .e_add_list_pbox_content {
  23655. height: calc(100% - 50px);
  23656. display: flex;
  23657. align-items: center;
  23658. width: 100%;
  23659. background: #fff;
  23660. }
  23661. .evaCss {
  23662. display: flex;
  23663. flex-direction: row;
  23664. flex-wrap: nowrap;
  23665. align-items: flex-start;
  23666. padding: 0 0 20px;
  23667. }
  23668. .cru_line {
  23669. position: absolute;
  23670. bottom: 0px;
  23671. transition: all 0.5s;
  23672. left: 0px;
  23673. width: 125px;
  23674. margin-left: -25px;
  23675. }
  23676. .isNoMessage {
  23677. width: 20%;
  23678. margin: 25% auto 0;
  23679. }
  23680. .isNoMessage > img {
  23681. width: 100%;
  23682. height: 100%;
  23683. }
  23684. .fullStyle >>> .el-dialog__body {
  23685. height: 100% !important;
  23686. }
  23687. .fullStyle >>> .el-dialog,
  23688. .fullStyle {
  23689. width: 100% !important;
  23690. max-width: 100% !important;
  23691. height: 100% !important;
  23692. margin: 0 !important;
  23693. }
  23694. .full_diy >>> .el-dialog {
  23695. margin: 0 !important;
  23696. height: 100%;
  23697. padding: 4px;
  23698. }
  23699. .full_diy >>> .el-dialog__body {
  23700. height: calc(100% - 100px);
  23701. }
  23702. .full_diy2 >>> .el-dialog__body {
  23703. height: calc(100% - 50px);
  23704. padding: 0;
  23705. }
  23706. .switchCss {
  23707. /* width: 100%; */
  23708. display: flex;
  23709. flex-direction: row;
  23710. flex-wrap: nowrap;
  23711. align-items: center;
  23712. /* justify-content: center; */
  23713. }
  23714. .isClickNav {
  23715. /* color: #499eef; */
  23716. color: #000;
  23717. }
  23718. .commentImg {
  23719. width: 25px;
  23720. height: 25px;
  23721. cursor: pointer;
  23722. }
  23723. .commentImg > img {
  23724. width: 100%;
  23725. height: 100%;
  23726. }
  23727. .comment {
  23728. background: #f9f9f9;
  23729. border-radius: 0 0 4px 4px;
  23730. display: flex;
  23731. flex-direction: row;
  23732. flex-wrap: nowrap;
  23733. align-items: center;
  23734. justify-content: flex-end;
  23735. height: 35px;
  23736. }
  23737. .commentList {
  23738. display: flex;
  23739. flex-direction: row;
  23740. flex-wrap: nowrap;
  23741. align-items: center;
  23742. justify-content: center;
  23743. align-content: center;
  23744. /* margin-left: 15px; */
  23745. /* margin-left: 8px; */
  23746. }
  23747. .scoreImg {
  23748. width: 17px;
  23749. height: 17px;
  23750. }
  23751. .studentDetail {
  23752. display: flex;
  23753. flex-direction: row;
  23754. flex-wrap: nowrap;
  23755. /* align-items: center; */
  23756. align-items: flex-start;
  23757. }
  23758. .tx {
  23759. width: 50px;
  23760. }
  23761. .tx > img {
  23762. width: 100%;
  23763. height: 100%;
  23764. }
  23765. .nameAndTime {
  23766. display: flex;
  23767. flex-direction: column;
  23768. flex-wrap: nowrap;
  23769. align-items: flex-start;
  23770. margin-left: 10px;
  23771. }
  23772. .worksAnswer {
  23773. color: #4078dd;
  23774. margin: 10px 0;
  23775. font-size: 16px;
  23776. position: relative;
  23777. }
  23778. .worksAnswer > img {
  23779. width: 500px;
  23780. height: 300px;
  23781. object-fit: contain;
  23782. margin: 0 auto;
  23783. display: block;
  23784. }
  23785. .commentTop {
  23786. border-bottom: 1px solid #eaeaea;
  23787. padding-bottom: 10px;
  23788. }
  23789. .commentBox {
  23790. padding-top: 15px;
  23791. }
  23792. .pl {
  23793. font-size: 18px;
  23794. }
  23795. .plPerson {
  23796. width: 100%;
  23797. }
  23798. .plName {
  23799. display: flex;
  23800. flex-direction: row;
  23801. flex-wrap: nowrap;
  23802. align-items: baseline;
  23803. color: #78787a;
  23804. width: 100%;
  23805. }
  23806. .deleteComment {
  23807. cursor: pointer;
  23808. margin-left: auto;
  23809. color: #237ade;
  23810. }
  23811. .plContent {
  23812. margin-top: 5px;
  23813. }
  23814. .evalCss {
  23815. background: #fff;
  23816. font-size: 18px;
  23817. }
  23818. .nav {
  23819. color: #9d9d9d;
  23820. padding: 5px 0 15px 20px;
  23821. }
  23822. .middleBox {
  23823. padding: 5px 0 15px 20px;
  23824. }
  23825. .pfBox {
  23826. padding-bottom: 30px;
  23827. }
  23828. .nameAndrate {
  23829. display: flex;
  23830. flex-direction: row;
  23831. flex-wrap: nowrap;
  23832. align-items: center;
  23833. padding-bottom: 10px;
  23834. height: 30px;
  23835. line-height: 30px;
  23836. }
  23837. .nameAndrate > div {
  23838. margin-left: 10px;
  23839. color: #000;
  23840. height: 30px;
  23841. }
  23842. .nameAndrate >>> .el-rate__icon {
  23843. font-size: 28px !important;
  23844. }
  23845. .pfBox > div:nth-child(2) {
  23846. background: #f7f6f9;
  23847. width: 400px;
  23848. min-height: 45px;
  23849. border-radius: 10px;
  23850. font-size: 16px;
  23851. display: flex;
  23852. flex-wrap: wrap;
  23853. align-items: center;
  23854. padding: 10px 20px;
  23855. box-sizing: border-box;
  23856. color: #000;
  23857. }
  23858. .bz {
  23859. display: flex;
  23860. flex-direction: row;
  23861. flex-wrap: nowrap;
  23862. align-items: flex-start;
  23863. }
  23864. .bz > div {
  23865. padding: 0 10px;
  23866. }
  23867. .select_box2_title {
  23868. background: #fff;
  23869. border-radius: 5px;
  23870. padding: 15px 10px;
  23871. box-sizing: border-box;
  23872. margin-bottom: 10px;
  23873. display: flex;
  23874. flex-direction: row;
  23875. flex-wrap: nowrap;
  23876. align-items: center;
  23877. }
  23878. .select_box2_title > div:nth-child(2) {
  23879. margin-left: 10px;
  23880. color: #c4c4c4;
  23881. }
  23882. .select_box2_box {
  23883. display: flex;
  23884. height: 500px;
  23885. }
  23886. .select_box2_img {
  23887. width: calc(100% - 310px);
  23888. height: 100%;
  23889. overflow: auto;
  23890. background: #fff;
  23891. border-radius: 5px;
  23892. }
  23893. .select_box2_img img {
  23894. width: 100%;
  23895. }
  23896. .select_box2_answer {
  23897. background: #fff;
  23898. margin-left: 10px;
  23899. border-radius: 5px;
  23900. width: 300px;
  23901. overflow: auto;
  23902. height: 90%;
  23903. display: flex;
  23904. flex-direction: column;
  23905. align-items: flex-start;
  23906. padding-top: 10px;
  23907. box-sizing: border-box;
  23908. position: relative;
  23909. }
  23910. .select_answer_title {
  23911. padding: 0 0 15px 20px;
  23912. color: #c4c4c4;
  23913. }
  23914. .select_box2_answer_box {
  23915. margin: 0 0 10px 20px;
  23916. width: 85%;
  23917. display: flex;
  23918. flex-direction: row;
  23919. flex-wrap: nowrap;
  23920. align-items: center;
  23921. }
  23922. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23923. color: #000;
  23924. }
  23925. .upAnswerCss {
  23926. position: absolute;
  23927. bottom: 15px;
  23928. right: 15px;
  23929. }
  23930. .upAnswerCss >>> .el-button {
  23931. width: 95px;
  23932. height: 35px;
  23933. line-height: 35px;
  23934. padding: 0;
  23935. }
  23936. .rightWidthCss {
  23937. width: 60%;
  23938. display: flex;
  23939. flex-direction: row;
  23940. align-items: flex-start;
  23941. }
  23942. .rightAnswer {
  23943. display: flex;
  23944. flex-direction: row;
  23945. flex-wrap: nowrap;
  23946. align-items: center;
  23947. color: red;
  23948. margin-bottom: 31px;
  23949. }
  23950. .rightAnswerCss {
  23951. display: flex;
  23952. flex-direction: column;
  23953. flex-wrap: nowrap;
  23954. padding-top: 60px;
  23955. }
  23956. .blueCss {
  23957. color: #767de1;
  23958. margin-left: 10px;
  23959. }
  23960. .redCss {
  23961. color: red;
  23962. }
  23963. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23964. color: rgb(0 123 255) !important;
  23965. }
  23966. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23967. color: rgb(0 123 255) !important;
  23968. }
  23969. .zuoyeYulan {
  23970. padding-top: 0;
  23971. font-size: 18px;
  23972. display: flex;
  23973. align-items: flex-end;
  23974. }
  23975. .buttonA {
  23976. margin-left: 10px;
  23977. padding: 0;
  23978. }
  23979. .displayBox {
  23980. margin-bottom: 10px;
  23981. display: block;
  23982. border-bottom: 3px solid #eee;
  23983. display: flex;
  23984. align-items: center;
  23985. }
  23986. .easy_comment {
  23987. width: calc(100% - 90px);
  23988. margin-left: 10px;
  23989. display: flex;
  23990. flex-wrap: wrap;
  23991. }
  23992. .easy_comment > div {
  23993. border: 1px solid #4a4a4a;
  23994. color: #666;
  23995. border-radius: 15px;
  23996. padding: 5px 10px;
  23997. font-size: 16px;
  23998. margin-bottom: 10px;
  23999. margin-right: 5px;
  24000. cursor: pointer;
  24001. }
  24002. .easy_comment div:hover {
  24003. border: 1px solid #f7ba2a;
  24004. color: #c69217;
  24005. }
  24006. .xuan_right_box {
  24007. padding: 10px 0;
  24008. background: #f0f4fa;
  24009. margin: 0 15px 0 25px;
  24010. border-bottom-left-radius: 5px;
  24011. border-bottom-right-radius: 5px;
  24012. width: 91.5%;
  24013. }
  24014. .tool_right_box {
  24015. display: flex;
  24016. align-items: center;
  24017. }
  24018. .tool_right_box >>> .katex {
  24019. font-size: 16px;
  24020. }
  24021. .tool_right_box + .tool_right_box {
  24022. margin-top: 10px;
  24023. }
  24024. .right_box_xuan {
  24025. border-radius: 5px;
  24026. padding: 5px;
  24027. margin-left: 10px;
  24028. min-width: 85px;
  24029. background: #fff;
  24030. color: #0061ff;
  24031. border: 1px solid #0061ff;
  24032. font-size: 14px;
  24033. }
  24034. .pButton:hover {
  24035. opacity: 1 !important;
  24036. }
  24037. .pButton {
  24038. position: fixed;
  24039. text-align: center;
  24040. cursor: pointer;
  24041. z-index: 999;
  24042. right: 20px;
  24043. top: 110px;
  24044. width: 50px;
  24045. height: 50px;
  24046. display: flex;
  24047. align-items: center;
  24048. justify-content: center;
  24049. border-radius: 5px;
  24050. }
  24051. .pzClass {
  24052. width: calc(100% - 340px);
  24053. }
  24054. .newDialogCss {
  24055. /* position: fixed;
  24056. right: 5%;
  24057. top: 50%;
  24058. width: 340px;
  24059. transform: translateY(-50%);
  24060. height: 60%;
  24061. box-shadow: 0px 0 8px 0px #555555;
  24062. border-radius: 15px;
  24063. z-index: 999; */
  24064. position: fixed;
  24065. right: 20px;
  24066. top: 101px;
  24067. width: 330px;
  24068. height: calc(100% - 80px);
  24069. z-index: 999;
  24070. background: #fff;
  24071. border-top-right-radius: 0px;
  24072. border-bottom-right-radius: 0px;
  24073. overflow: hidden;
  24074. }
  24075. .newDialogCss>.scoreList{
  24076. width:100%;
  24077. height:100%;
  24078. box-sizing:border-box;
  24079. padding:10px 15px;
  24080. overflow:auto;
  24081. padding-bottom:80px;
  24082. }
  24083. .pzTop {
  24084. color: #fff;
  24085. background: #000;
  24086. display: flex;
  24087. flex-direction: row;
  24088. flex-wrap: nowrap;
  24089. align-items: center;
  24090. justify-content: space-between;
  24091. height: 40px;
  24092. border-radius: 15px 15px 0 0;
  24093. user-select: none;
  24094. }
  24095. .pzTop2 .checkbox {
  24096. display: flex;
  24097. align-items: center;
  24098. padding: 5px 10px;
  24099. flex: 0 0 auto;
  24100. font-weight: bold;
  24101. border-bottom: 1px solid #eee;
  24102. justify-content: space-between;
  24103. }
  24104. .checkbox>.cb-tabList{
  24105. display:flex;
  24106. align-items:center;
  24107. }
  24108. .cb-tabList>div{
  24109. margin-right:20px;
  24110. font-weight:400;
  24111. cursor:pointer;
  24112. }
  24113. .cb-tabList>.cb-tabItem{
  24114. color:#1684FC;
  24115. position:relative;
  24116. }
  24117. .cb-tabItem::after{
  24118. content:"";
  24119. width:100%;
  24120. height:2px;
  24121. background:#1684FC;
  24122. position:absolute;
  24123. bottom:-5px;
  24124. left:0
  24125. }
  24126. .pzTop2 .check {
  24127. text-align: center;
  24128. cursor: pointer;
  24129. box-sizing: border-box;
  24130. display: flex;
  24131. }
  24132. .pzTop2 img {
  24133. width: 25px;
  24134. cursor: pointer;
  24135. }
  24136. .pzTop > div:nth-child(1) {
  24137. padding-left: 10px;
  24138. }
  24139. .pzTop > div:nth-child(2) {
  24140. width: 15px;
  24141. height: 15px;
  24142. padding-right: 10px;
  24143. cursor: pointer;
  24144. }
  24145. .pzTop > div:nth-child(2) > img {
  24146. width: 100%;
  24147. height: 100%;
  24148. }
  24149. .pzBox,
  24150. .noPzBox {
  24151. height: calc(100% - 60px);
  24152. /* background: #ededed; */
  24153. background: #fff;
  24154. /* border-radius: 0 0 15px 15px; */
  24155. }
  24156. .noPzBox {
  24157. display: flex;
  24158. flex-direction: column;
  24159. flex-wrap: nowrap;
  24160. justify-content: center;
  24161. align-items: center;
  24162. }
  24163. .pzList {
  24164. background: #f7f7f7;
  24165. width: 90%;
  24166. margin: 0 auto 15px;
  24167. border-radius: 5px;
  24168. }
  24169. .pzNavTop {
  24170. display: flex;
  24171. flex-direction: row;
  24172. flex-wrap: nowrap;
  24173. padding: 10px 10px 0 10px;
  24174. align-items: center;
  24175. }
  24176. .pzDelete {
  24177. cursor: pointer;
  24178. margin-left: auto;
  24179. font-size: 14px;
  24180. color: #afafaf;
  24181. }
  24182. .pzNavTop > div:nth-child(1) {
  24183. background: #3760af;
  24184. width: 35px;
  24185. height: 35px;
  24186. color: #fff;
  24187. text-align: center;
  24188. line-height: 35px;
  24189. border-radius: 50%;
  24190. font-size: 14px;
  24191. }
  24192. .pzNavTop > div:nth-child(2) {
  24193. font-size: 18px;
  24194. color: #959595;
  24195. margin-left: 5px;
  24196. }
  24197. .pzContent {
  24198. padding: 10px;
  24199. word-break: break-word;
  24200. }
  24201. .pzContent audio {
  24202. width: 100%;
  24203. }
  24204. .pzContent audio::-webkit-media-controls-panel {
  24205. background: #fff;
  24206. }
  24207. .pzContent >>> img {
  24208. max-width: 100%;
  24209. }
  24210. .pzListBox {
  24211. padding-top: 15px;
  24212. height: calc(100% - 110px);
  24213. overflow: auto;
  24214. }
  24215. .addPzButton {
  24216. position: relative;
  24217. margin-top: 3px;
  24218. width: 100%;
  24219. }
  24220. .addPzButton .img1 {
  24221. position: absolute;
  24222. top: 50%;
  24223. right: 25px;
  24224. transform: translateY(-50%);
  24225. height: 100%;
  24226. display: flex;
  24227. align-items: center;
  24228. }
  24229. .addPzButton .img1 div {
  24230. display: flex;
  24231. }
  24232. .addPzButton .img1 div img {
  24233. width: 28px;
  24234. margin-left: 10px;
  24235. cursor: pointer;
  24236. }
  24237. .addPzButton .img1 div span {
  24238. font-size: 14px;
  24239. margin: 4px 0 0 3px;
  24240. color: #afafaf;
  24241. }
  24242. .addPz {
  24243. background: #4b79ce;
  24244. width: 100px;
  24245. color: #fff;
  24246. font-size: 12px;
  24247. height: 30px;
  24248. margin: 0 auto;
  24249. text-align: center;
  24250. line-height: 30px;
  24251. border-radius: 10px;
  24252. cursor: pointer;
  24253. }
  24254. .addDialogCss {
  24255. position: fixed;
  24256. width: 600px;
  24257. height: 70%;
  24258. min-height: 450px;
  24259. box-shadow: 0px 0 8px 0px #555555;
  24260. border-radius: 15px;
  24261. z-index: 999;
  24262. left: 50%;
  24263. top: 50%;
  24264. margin: -18% 0 0 -300px;
  24265. }
  24266. .teacherPz {
  24267. display: flex;
  24268. flex-direction: row;
  24269. align-items: center;
  24270. flex-wrap: nowrap;
  24271. }
  24272. .teacherPzImg {
  24273. width: 30px;
  24274. height: 30px;
  24275. }
  24276. .teacherPzImg > img {
  24277. width: 100%;
  24278. height: 100%;
  24279. }
  24280. .addPzBox {
  24281. height: calc(100% - 40px);
  24282. background: #ededed;
  24283. border-bottom-left-radius: 15px;
  24284. border-bottom-right-radius: 15px;
  24285. }
  24286. .pzAudioClass {
  24287. margin: 15px 14px;
  24288. background: #fff;
  24289. height: 100%;
  24290. display: flex;
  24291. justify-content: center;
  24292. align-items: center;
  24293. }
  24294. .pzConText {
  24295. width: 95%;
  24296. height: 100%;
  24297. margin: 10px auto 0;
  24298. border: none;
  24299. background: #fff;
  24300. border-radius: 0px;
  24301. }
  24302. .pzConText >>> .text {
  24303. height: calc(100% - 82px);
  24304. }
  24305. .addTextCss {
  24306. background: #4b79ce;
  24307. width: 80px;
  24308. height: 30px;
  24309. text-align: center;
  24310. color: #fff;
  24311. line-height: 30px;
  24312. border-radius: 10px;
  24313. margin: 10px auto 0;
  24314. cursor: pointer;
  24315. }
  24316. .pzConText:focus-visible {
  24317. border: none !important;
  24318. }
  24319. .maxWidth {
  24320. width: 1000px;
  24321. }
  24322. .noPz {
  24323. width: 150px;
  24324. margin: 0 auto 20%;
  24325. }
  24326. .noPz > img {
  24327. width: 100%;
  24328. height: 100%;
  24329. }
  24330. .timeAndReply {
  24331. display: flex;
  24332. flex-direction: row;
  24333. flex-wrap: nowrap;
  24334. justify-content: space-between;
  24335. align-items: center;
  24336. font-size: 14px;
  24337. box-sizing: border-box;
  24338. padding: 0 10px 10px 0px;
  24339. }
  24340. .timeAndReply .time {
  24341. color: #bfbfbf;
  24342. padding: 0 0 0 10px;
  24343. box-sizing: border-box;
  24344. }
  24345. .timeAndReply > div:last-child {
  24346. cursor: pointer;
  24347. color: #777;
  24348. }
  24349. /* table 样式 */
  24350. .cont >>> table {
  24351. border-top: 1px solid #ccc;
  24352. border-left: 1px solid #ccc;
  24353. }
  24354. .cont >>> table td,
  24355. .cont >>> table th {
  24356. border-bottom: 1px solid #ccc;
  24357. border-right: 1px solid #ccc;
  24358. /* padding: 20px 5px; */
  24359. padding: 5px 10px;
  24360. max-width: 0px;
  24361. height: 30px;
  24362. vertical-align: baseline;
  24363. box-sizing: border-box;
  24364. }
  24365. .cont >>> table th {
  24366. border-bottom: 2px solid #ccc;
  24367. text-align: center;
  24368. }
  24369. /* blockquote 样式 */
  24370. .cont >>> blockquote {
  24371. display: block;
  24372. border-left: 8px solid #d0e5f2;
  24373. padding: 5px 10px;
  24374. margin: 10px 0;
  24375. line-height: 1.4;
  24376. font-size: 100%;
  24377. background-color: #f1f1f1;
  24378. }
  24379. /* code 样式 */
  24380. .cont >>> code {
  24381. display: inline-block;
  24382. /* *display: inline; */
  24383. zoom: 1;
  24384. background-color: #f1f1f1;
  24385. border-radius: 3px;
  24386. padding: 3px 5px;
  24387. margin: 0 3px;
  24388. }
  24389. .cont >>> pre code {
  24390. display: block;
  24391. }
  24392. /* ul ol 样式 */
  24393. .cont >>> ul,
  24394. ol {
  24395. margin: 10px 0 10px 20px;
  24396. }
  24397. .addPzCheck {
  24398. display: flex;
  24399. flex-direction: row;
  24400. flex-wrap: nowrap;
  24401. padding: 10px 15px 0;
  24402. }
  24403. .addPzCheck span {
  24404. cursor: pointer;
  24405. padding-bottom: 5px;
  24406. font-weight: bold;
  24407. }
  24408. .addPzCheck span + span {
  24409. margin-left: 10px;
  24410. }
  24411. .addPzCheck .isChooseActive {
  24412. color: #3e88f4;
  24413. border-bottom: 2px solid #2f80f3;
  24414. }
  24415. /* code 样式 */
  24416. .cont {
  24417. /* -webkit-user-modify: read-write; */
  24418. overflow-wrap: break-word;
  24419. -webkit-line-break: after-white-space;
  24420. word-break: break-word;
  24421. white-space: pre-line;
  24422. }
  24423. .scoreBox,
  24424. .scoreDetailBox {
  24425. display: flex;
  24426. align-items: center;
  24427. justify-content: flex-start;
  24428. margin-top: 20px;
  24429. font-size: 18px;
  24430. width: 100%;
  24431. }
  24432. .scoreBox .t,
  24433. .scoreDetailBox .t {
  24434. margin-right: 10px;
  24435. width: 100px;
  24436. text-align: right;
  24437. }
  24438. .scoreDetailBox {
  24439. align-items: flex-start;
  24440. }
  24441. .scoreDetailBox >>> .el-textarea {
  24442. width: calc(100% - 200px);
  24443. }
  24444. .scoreBox >>> .el-input {
  24445. width: 130px;
  24446. font-size: 38px;
  24447. }
  24448. .scoreBox >>> .el-input__inner {
  24449. height: 60px;
  24450. }
  24451. .answerScore {
  24452. position: absolute;
  24453. top: 10px;
  24454. right: 10px;
  24455. background: #0000008f;
  24456. border-radius: 5px;
  24457. padding: 3px 5px;
  24458. font-size: 14px;
  24459. color: #fff;
  24460. cursor: pointer;
  24461. }
  24462. .open_box .switch_box {
  24463. width: 100%;
  24464. margin: 0 auto;
  24465. display: flex;
  24466. justify-content: space-between;
  24467. }
  24468. .open_box .switch_box + .switch_box {
  24469. margin-top: 10px;
  24470. }
  24471. .deleteImg,.deleteImg1 {
  24472. width: 25px !important;
  24473. height: 25px !important;
  24474. cursor: pointer;
  24475. position: absolute;
  24476. top: 10px;
  24477. right: 10px;
  24478. }
  24479. .deleteImg2 {
  24480. width: 23px !important;
  24481. height: 23px !important;
  24482. top: 5px;
  24483. right: 5px;
  24484. }
  24485. .deleteImg1{
  24486. width: 23px !important;
  24487. height: 23px !important;
  24488. top: 5px !important;
  24489. right: 30px !important;
  24490. }
  24491. .rightW {
  24492. right: 40px;
  24493. }
  24494. .drawPBox {
  24495. display: flex;
  24496. flex-direction: column;
  24497. position: relative;
  24498. }
  24499. .drawPBox span {
  24500. font-size: 18px;
  24501. color: #606266;
  24502. padding-bottom: 10px;
  24503. margin: 10px 0;
  24504. border-bottom: 1px solid #eaeaea;
  24505. }
  24506. .drawPBox img {
  24507. width: 500px;
  24508. height: 300px;
  24509. object-fit: contain;
  24510. cursor: pointer;
  24511. margin: 0 auto;
  24512. }
  24513. .sentenBox {
  24514. background: #fff;
  24515. height: 450px;
  24516. overflow: auto;
  24517. background-image: url("../assets/icon/conSentences/stuBg.png");
  24518. background-position: 102%;
  24519. background-repeat: no-repeat;
  24520. background-size: 60%;
  24521. }
  24522. .addSen {
  24523. background: #409efe;
  24524. width: 90px;
  24525. color: #fff;
  24526. height: 35px;
  24527. text-align: center;
  24528. line-height: 35px;
  24529. border-radius: 5px;
  24530. float: right;
  24531. margin: 10px 20px 0 0;
  24532. cursor: pointer;
  24533. }
  24534. .sentenTop {
  24535. display: flex;
  24536. flex-direction: row;
  24537. flex-wrap: nowrap;
  24538. align-items: center;
  24539. padding: 55px 0 0 20px;
  24540. box-sizing: border-box;
  24541. }
  24542. .sentenTop > div:nth-child(2) {
  24543. width: 300px;
  24544. margin: 0 15px;
  24545. }
  24546. .sentenTop > div:nth-child(3) {
  24547. background: #409efe;
  24548. color: #fff;
  24549. width: 65px;
  24550. height: 35px;
  24551. text-align: center;
  24552. line-height: 35px;
  24553. border-radius: 5px;
  24554. cursor: pointer;
  24555. }
  24556. .cardList,
  24557. .cardList1 {
  24558. padding: 10px 0 10px 0;
  24559. display: flex;
  24560. flex-direction: row;
  24561. flex-wrap: wrap;
  24562. align-items: center;
  24563. box-sizing: border-box;
  24564. border-bottom: 1px solid #f4f4f4;
  24565. width: 98%;
  24566. margin: 0 auto;
  24567. min-width: 60%;
  24568. max-width: 85%;
  24569. }
  24570. .cardList1 {
  24571. padding: 10px 0 10px 10px !important;
  24572. margin: 0 !important;
  24573. }
  24574. .cardBox {
  24575. display: flex;
  24576. flex-direction: row;
  24577. flex-wrap: wrap;
  24578. align-items: center;
  24579. align-content: center;
  24580. }
  24581. .cardBox > div {
  24582. margin-bottom: 10px;
  24583. }
  24584. .isCard,
  24585. .isChooseCard,
  24586. .noCard,
  24587. .isCard1 {
  24588. min-width: 130px;
  24589. width: auto;
  24590. height: 60px;
  24591. text-align: center;
  24592. line-height: 60px;
  24593. font-size: 20px;
  24594. cursor: pointer;
  24595. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24596. background-size: cover;
  24597. transition: all 2s;
  24598. margin-right: 20px;
  24599. background-size: 100% 100%;
  24600. padding: 0 20px;
  24601. box-sizing: border-box;
  24602. }
  24603. .isCard > div,
  24604. .noCard > div,
  24605. .isCard1 > div {
  24606. white-space: nowrap;
  24607. overflow: hidden;
  24608. text-overflow: ellipsis;
  24609. width: 100%;
  24610. margin: 0 auto;
  24611. }
  24612. .noCard {
  24613. background-image: none;
  24614. }
  24615. .isCard1 {
  24616. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24617. }
  24618. .isChooseCard {
  24619. background-image: none;
  24620. border: 1px dashed #b9b9b9;
  24621. border-radius: 10px;
  24622. }
  24623. .card {
  24624. width: 130px;
  24625. height: 60px;
  24626. }
  24627. .card > img {
  24628. width: 100%;
  24629. height: 100%;
  24630. }
  24631. .rightCardBox {
  24632. margin: 10px 0 0 10px;
  24633. }
  24634. .rightCardBox > div:nth-child(1) {
  24635. margin-bottom: 10px;
  24636. }
  24637. .cardCss {
  24638. display: flex;
  24639. flex-direction: column;
  24640. flex-wrap: nowrap;
  24641. align-items: center;
  24642. border-bottom: 3px solid #b4c3d3;
  24643. padding: 0 0 5px 0;
  24644. margin-right: 10px;
  24645. }
  24646. .cardCss > div:nth-child(2) {
  24647. background: #5b7b9d;
  24648. color: #fff;
  24649. width: 20px;
  24650. height: 20px;
  24651. border-radius: 50%;
  24652. text-align: center;
  24653. line-height: 20px;
  24654. }
  24655. .isWrong {
  24656. display: flex;
  24657. flex-direction: row;
  24658. flex-wrap: nowrap;
  24659. align-content: center;
  24660. align-items: center;
  24661. }
  24662. .answerRight {
  24663. width: 25%;
  24664. }
  24665. .isTj {
  24666. display: flex;
  24667. flex-direction: row;
  24668. flex-wrap: nowrap;
  24669. align-items: center;
  24670. }
  24671. .isTj > div:nth-child(2) {
  24672. color: #727070;
  24673. margin-left: 10px;
  24674. }
  24675. .isTjImg {
  24676. width: 30px;
  24677. height: 30px;
  24678. }
  24679. .isTjImg > img {
  24680. width: 100%;
  24681. height: 100%;
  24682. }
  24683. .cardAnswerBox {
  24684. font-size: 18px;
  24685. width: 97%;
  24686. border: 5px;
  24687. padding: 0;
  24688. border-radius: 5px;
  24689. margin: 10px auto;
  24690. word-break: break-word;
  24691. }
  24692. .w_name {
  24693. margin-bottom: 10px;
  24694. }
  24695. .w_name span {
  24696. font-size: 16px;
  24697. }
  24698. .w_teachert {
  24699. width: 50px !important;
  24700. position: absolute;
  24701. height: auto !important;
  24702. z-index: 10;
  24703. right: 25px;
  24704. top: -25px;
  24705. }
  24706. /* .group_workBox {
  24707. } */
  24708. .group_workBox + .group_workBox {
  24709. margin-top: 20px;
  24710. }
  24711. .group_box {
  24712. padding-bottom: 20px;
  24713. border-bottom: 2px solid #f0f0f0;
  24714. margin-top: 10px;
  24715. }
  24716. .group_title {
  24717. display: flex;
  24718. align-items: center;
  24719. justify-content: space-between;
  24720. width: 95%;
  24721. }
  24722. .group_name {
  24723. background-image: url(../assets/icon/groupN.png);
  24724. width: 220px;
  24725. background-size: 100% 100%;
  24726. height: 67px;
  24727. padding: 0 20px 0 43px;
  24728. box-sizing: border-box;
  24729. line-height: 63px;
  24730. color: #fff;
  24731. overflow: hidden;
  24732. white-space: nowrap;
  24733. text-overflow: ellipsis;
  24734. }
  24735. .group_work {
  24736. width: 100%;
  24737. padding: 0 10px;
  24738. box-sizing: border-box;
  24739. display: flex;
  24740. flex-wrap: wrap;
  24741. }
  24742. .g_d_box {
  24743. display: flex;
  24744. flex-flow: wrap;
  24745. justify-content: space-around;
  24746. }
  24747. .g_d_box .isChair {
  24748. background-image: url(../assets/avatar.png) !important;
  24749. }
  24750. .g_d_group {
  24751. width: 500px;
  24752. margin-bottom: 80px;
  24753. }
  24754. .g_d_group_chair {
  24755. display: flex;
  24756. align-items: center;
  24757. justify-content: center;
  24758. }
  24759. .g_d_group_chair > div + div {
  24760. margin-left: 30px;
  24761. }
  24762. .g_d_group_chair > div,
  24763. .g_d_group_chair2 > div {
  24764. display: flex;
  24765. flex-direction: column;
  24766. align-items: center;
  24767. }
  24768. .g_d_group_chair > div > span:nth-child(1),
  24769. .g_d_group_chair2 > div > span:nth-child(1) {
  24770. background-image: url(../assets/icon/chair.png);
  24771. width: 50px;
  24772. height: 50px;
  24773. display: block;
  24774. background-size: 100% 100%;
  24775. }
  24776. .g_d_group_tableBox {
  24777. display: flex;
  24778. align-items: center;
  24779. justify-content: center;
  24780. }
  24781. .g_d_group_chair2 {
  24782. display: flex;
  24783. flex-direction: column;
  24784. align-items: center;
  24785. justify-content: center;
  24786. }
  24787. .g_d_group_chair2 > div + div {
  24788. margin-top: 10px;
  24789. }
  24790. .g_d_group_table {
  24791. background-image: url(../assets/icon/groupBg.png);
  24792. width: 354px;
  24793. height: 196px;
  24794. background-size: 100% 100%;
  24795. display: flex;
  24796. align-items: center;
  24797. justify-content: center;
  24798. flex-direction: column;
  24799. color: #fff;
  24800. }
  24801. .g_d_group_table > div:nth-child(1) {
  24802. font-size: 24px;
  24803. margin-bottom: 5px;
  24804. }
  24805. .g_d_group_table > div:nth-child(2) div {
  24806. cursor: pointer;
  24807. background: #2e77bf;
  24808. padding: 4px 10px;
  24809. border-radius: 5px;
  24810. }
  24811. /* .groupBox {
  24812. } */
  24813. .groupContent + .groupContent {
  24814. margin-top: 30px;
  24815. }
  24816. .groupTitle {
  24817. font-size: 24px;
  24818. color: rgb(80, 80, 80);
  24819. margin-bottom: 20px;
  24820. }
  24821. .groupName {
  24822. display: flex;
  24823. align-items: center;
  24824. }
  24825. .groupn {
  24826. font-size: 15px;
  24827. margin-right: 10px;
  24828. }
  24829. .groupName + .groupName {
  24830. margin-top: 15px;
  24831. }
  24832. .groupBtn {
  24833. margin-left: 10px;
  24834. }
  24835. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24836. text-align: left;
  24837. }
  24838. .g_d_btnBox {
  24839. display: flex;
  24840. justify-content: flex-end;
  24841. align-items: center;
  24842. margin-bottom: 20px;
  24843. }
  24844. .updateChair {
  24845. position: relative;
  24846. }
  24847. .updateChairBtn {
  24848. position: absolute;
  24849. width: 50px;
  24850. height: 50px;
  24851. overflow: hidden;
  24852. /* display: flex; */
  24853. align-items: center;
  24854. justify-content: center;
  24855. background: #00000087;
  24856. color: #fff;
  24857. border-radius: 50px;
  24858. display: none;
  24859. cursor: pointer;
  24860. }
  24861. .updateChair:hover .updateChairBtn {
  24862. display: flex;
  24863. }
  24864. .group_staic_box {
  24865. display: flex;
  24866. padding: 30px 40px 10px;
  24867. flex-wrap: wrap;
  24868. }
  24869. .group_staic {
  24870. /* width: 50%; */
  24871. margin-bottom: 20px;
  24872. display: flex;
  24873. align-items: center;
  24874. }
  24875. .group_staic span:nth-child(1) {
  24876. width: 150px;
  24877. text-align: right;
  24878. margin-right: 15px;
  24879. }
  24880. .group_staic span:nth-child(2) {
  24881. background: rgb(0 123 255);
  24882. color: #fff;
  24883. border-radius: 5px;
  24884. padding: 5px;
  24885. }
  24886. .codeFileBox {
  24887. height: 300px;
  24888. background: #fff;
  24889. display: flex;
  24890. align-items: center;
  24891. justify-content: center;
  24892. }
  24893. .codeFileBox img {
  24894. width: 200px;
  24895. margin: 0;
  24896. height: auto;
  24897. }
  24898. .codeFileBox div {
  24899. background: rgb(80, 142, 226);
  24900. color: #fff;
  24901. padding: 10px 20px;
  24902. border-radius: 25px;
  24903. cursor: pointer;
  24904. margin-left: 15px;
  24905. }
  24906. .radioBox {
  24907. display: flex;
  24908. flex-direction: column;
  24909. flex-wrap: nowrap;
  24910. align-items: flex-start;
  24911. }
  24912. .radioBox > div {
  24913. margin: 10px 0 0 10px;
  24914. }
  24915. /* .radioBox >>> .el-radio__input,
  24916. .radioBox >>> .el-checkbox__inner {
  24917. margin-left: 10px;
  24918. } */
  24919. .radioBox >>> .el-radio__label,
  24920. .radioBox >>> .el-checkbox__label {
  24921. display: flex;
  24922. align-items: center;
  24923. width: 100%;
  24924. }
  24925. .radioBox >>> .el-radio__label > span {
  24926. width: 100%;
  24927. display: -webkit-box;
  24928. overflow: hidden;
  24929. white-space: normal !important;
  24930. text-overflow: ellipsis;
  24931. word-wrap: break-word;
  24932. }
  24933. .inImg {
  24934. width: 100px;
  24935. cursor: pointer;
  24936. }
  24937. .inImg > img {
  24938. width: 100%;
  24939. height: 100%;
  24940. object-fit: cover;
  24941. }
  24942. .timuImgBox {
  24943. margin: 10px 0;
  24944. display: flex;
  24945. flex-direction: column;
  24946. flex-wrap: wrap;
  24947. align-items: flex-start;
  24948. }
  24949. .timuImg {
  24950. width: 150px;
  24951. margin: 5px 0;
  24952. cursor: pointer;
  24953. }
  24954. .timuImg > img {
  24955. width: 100%;
  24956. height: 100%;
  24957. object-fit: cover;
  24958. }
  24959. .worksTop {
  24960. display: flex;
  24961. flex-direction: row;
  24962. align-items: flex-end;
  24963. }
  24964. .worksTitle{
  24965. display: flex;
  24966. flex-direction: row;
  24967. flex-wrap: nowrap;
  24968. align-items: center;
  24969. }
  24970. .worksTitle::before,.worksTop::before{
  24971. content: '';
  24972. display: block;
  24973. width: 3px;
  24974. height: 20px;
  24975. background: #0061FF;
  24976. border-radius: 3px;
  24977. margin: 0 5px 0 0;
  24978. }
  24979. .corOpen {
  24980. margin: 0 0 0 10px;
  24981. font-size: 14px;
  24982. cursor: pointer;
  24983. color: #505050;
  24984. }
  24985. .corOpen:hover {
  24986. color: #499eef;
  24987. }
  24988. .navCorOpenBox {
  24989. display: flex;
  24990. flex-direction: row;
  24991. align-items: center;
  24992. justify-content: space-between;
  24993. height: 55px;
  24994. background: #ffffff;
  24995. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24996. border-radius: 8px 8px 0px 0px;
  24997. z-index: 9;
  24998. position: relative;
  24999. }
  25000. .navCorOpen {
  25001. padding-right: 15px;
  25002. cursor: pointer;
  25003. width: 45px;
  25004. display: flex;
  25005. }
  25006. .navCorOpen > img {
  25007. width: 100%;
  25008. height: 100%;
  25009. }
  25010. .mlImg {
  25011. width: 40px !important;
  25012. min-width: 40px;
  25013. cursor: pointer;
  25014. transform: rotate(180deg);
  25015. }
  25016. .mlImg > img {
  25017. width: 100%;
  25018. height: 100%;
  25019. }
  25020. .navLeftCss {
  25021. width: 100% !important;
  25022. left: 0 !important;
  25023. }
  25024. .isContentCss {
  25025. width: 100% !important;
  25026. }
  25027. .isAllWidth {
  25028. width: 100% !important;
  25029. }
  25030. .group_switch {
  25031. margin-right: 10px;
  25032. height: 30px;
  25033. display: flex;
  25034. align-items: center;
  25035. }
  25036. .group_switch > span {
  25037. margin-right: 5px;
  25038. }
  25039. .fileC_box {
  25040. padding-top: 15px;
  25041. }
  25042. .fileC_box > .fileC_title {
  25043. padding: 10px 5px 14px 10px;
  25044. border-top: 1px solid #cad1dc;
  25045. font-size: 14px;
  25046. font-weight: 400;
  25047. color: #cad1dc;
  25048. width: calc(100% - 20px);
  25049. margin: 0 auto;
  25050. box-sizing: border-box;
  25051. }
  25052. .pl_select_box {
  25053. height: 40px;
  25054. line-height: 40px;
  25055. width: 100%;
  25056. cursor: pointer;
  25057. padding: 0 20px;
  25058. box-sizing: border-box;
  25059. border-radius: 5px;
  25060. border: 1px solid #d6d6d6;
  25061. white-space: nowrap;
  25062. overflow: hidden;
  25063. text-overflow: ellipsis;
  25064. background: #fff;
  25065. text-align: left;
  25066. }
  25067. .newButton {
  25068. width: 102px;
  25069. height: 36px;
  25070. background: #e7ebf1;
  25071. border-radius: 4px;
  25072. color: #0e1e33;
  25073. font-weight: 400;
  25074. font-size: 14px;
  25075. border: none;
  25076. float: right;
  25077. margin-left: 10px;
  25078. }
  25079. .el-table >>> .even_row {
  25080. background-color: #f0f4fa;
  25081. }
  25082. .stageBoxCss,
  25083. .stageBoxIsCss {
  25084. display: flex;
  25085. flex-direction: row;
  25086. flex-wrap: nowrap;
  25087. align-items: center;
  25088. height: 50px;
  25089. border-bottom: 1px solid #e2f5fc;
  25090. cursor: pointer;
  25091. width: 100%;
  25092. }
  25093. .stageBoxIsCss {
  25094. background: #0061ff;
  25095. color: #fff;
  25096. border-radius: 8px;
  25097. }
  25098. .stageItemTitle {
  25099. display: flex;
  25100. flex-direction: row;
  25101. flex-wrap: nowrap;
  25102. align-items: center;
  25103. margin-left: 15px;
  25104. width: calc(100% - 50px);
  25105. }
  25106. /* .stageNav{ */
  25107. /* font-weight: bold; */
  25108. /* } */
  25109. .stageItemTitle > div:first-child {
  25110. min-width: 55px;
  25111. }
  25112. .stageItemTitle > div:last-child {
  25113. max-width: 242px;
  25114. white-space: nowrap;
  25115. overflow: hidden;
  25116. text-overflow: ellipsis;
  25117. word-break: break-word;
  25118. width: calc(100% - 55px);
  25119. }
  25120. .closeTri,
  25121. .closeTri1 {
  25122. min-width: 15px;
  25123. width: 15px;
  25124. height: 15px;
  25125. transition: all .5s;
  25126. }
  25127. .closeTri1 {
  25128. padding-left: 10px;
  25129. cursor: pointer;
  25130. }
  25131. .closeTri > img,
  25132. .closeTri1 > img {
  25133. width: 100%;
  25134. height: 100%;
  25135. /* transition: all .5s; */
  25136. }
  25137. .noToolBlue {
  25138. min-width: 10px;
  25139. width: 10px;
  25140. height: 10px;
  25141. background: #0061ff;
  25142. border-radius: 50%;
  25143. margin-left: 13px;
  25144. }
  25145. .stageChild,
  25146. .toolChild {
  25147. height: 0;
  25148. overflow: hidden;
  25149. transition: all 0.5s;
  25150. }
  25151. /* .toolChild { */
  25152. /* margin: 0 0 0 17px;
  25153. padding: 0 0 0 20px;
  25154. border-left: 1px solid #d7d7d7; */
  25155. /* } */
  25156. .toolChild > div + div{
  25157. margin-top:5px;
  25158. }
  25159. .gjCss {
  25160. display: flex;
  25161. flex-direction: row;
  25162. flex-wrap: nowrap;
  25163. align-items: center;
  25164. padding: 10px 0 10px 40px;
  25165. box-sizing: border-box;
  25166. font-size: 14px;
  25167. cursor: pointer;
  25168. border-radius:5px;
  25169. }
  25170. .toolChild > div {
  25171. position: relative;
  25172. width:100%;
  25173. }
  25174. /* .toolChild > div::before { */
  25175. /* content: "";
  25176. width: 15px;
  25177. height: 1px;
  25178. background: #cad1dc;
  25179. position: absolute;
  25180. top: 24px;
  25181. left: -20px;
  25182. display: block; */
  25183. /* } */
  25184. .isGjCss {
  25185. /* color: #0061ff; */
  25186. color:#fff;
  25187. background: rgb(55, 129, 252);
  25188. /* background-color: #e0eafb !important;
  25189. color: #0061ff !important; */
  25190. }
  25191. .navItem {
  25192. background: #ffffff;
  25193. border-radius: 4px;
  25194. width: 100%;
  25195. margin: 10px auto;
  25196. position: relative;
  25197. height: 40px;
  25198. display: flex;
  25199. flex-direction: row;
  25200. flex-wrap: nowrap;
  25201. align-items: center;
  25202. }
  25203. .navItemList {
  25204. display: flex;
  25205. flex-direction: row;
  25206. flex-wrap: nowrap;
  25207. align-items: center;
  25208. padding: 0 13px;
  25209. cursor: pointer;
  25210. width: calc(100% - 60px);
  25211. height: 100%;
  25212. }
  25213. .navItemList > div:first-child {
  25214. /* min-width: 60px; */
  25215. min-width:fit-content;
  25216. }
  25217. .navItemList > div:last-child {
  25218. width: calc(100% - 80px);
  25219. white-space: nowrap;
  25220. overflow: hidden;
  25221. text-overflow: ellipsis;
  25222. word-break: break-word;
  25223. }
  25224. /* .isItemList > div {
  25225. color: #fff !important;
  25226. } */
  25227. .tool_work_box {
  25228. width: 100%;
  25229. padding: 0 37px 0;
  25230. box-sizing: border-box;
  25231. }
  25232. .tool_box {
  25233. width: 100%;
  25234. padding: 0 0 0 20px;
  25235. }
  25236. .tool_type_box {
  25237. display: flex;
  25238. flex-direction: row;
  25239. align-items: baseline;
  25240. flex-wrap: nowrap;
  25241. justify-content: flex-start;
  25242. position: relative;
  25243. }
  25244. .toolSort {
  25245. display: flex;
  25246. flex-direction: row;
  25247. flex-wrap: wrap;
  25248. justify-content: flex-start;
  25249. align-items: flex-start;
  25250. padding: 0 0 15px 0;
  25251. }
  25252. .toolSort > div {
  25253. margin: 0 10px 0 0;
  25254. width: 135px;
  25255. box-sizing: border-box;
  25256. border: 2px solid transparent;
  25257. }
  25258. .tools {
  25259. width: 100%;
  25260. display: flex;
  25261. flex-direction: column;
  25262. flex-wrap: nowrap;
  25263. align-items: flex-start;
  25264. }
  25265. .whiteBIcon {
  25266. width: fit-content;
  25267. cursor: pointer;
  25268. display: flex;
  25269. flex-direction: column;
  25270. flex-wrap: nowrap;
  25271. align-items: center;
  25272. font-size: 14px;
  25273. }
  25274. .tool:hover {
  25275. border: 2px solid #a5c7ff;
  25276. border-radius: 5px;
  25277. }
  25278. .whiteBIcon > img {
  25279. width: 65px;
  25280. height: 100%;
  25281. }
  25282. .whiteBIcon > img {
  25283. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25284. border-radius: 15px;
  25285. }
  25286. .check {
  25287. /* width: 20px;
  25288. height: 20px; */
  25289. cursor: pointer;
  25290. margin: 10px 0;
  25291. position: absolute;
  25292. right: 2px;
  25293. top: -5px;
  25294. }
  25295. .noChoose,
  25296. .isChoose {
  25297. width: 15px;
  25298. height: 15px;
  25299. border-radius: 50%;
  25300. border: 1px solid #adadad;
  25301. }
  25302. .isChoose {
  25303. border: 4px solid #0363ff !important;
  25304. width: 10px;
  25305. height: 10px;
  25306. }
  25307. .isToolChoose {
  25308. border: 2px solid #5394ff !important;
  25309. border-radius: 5px;
  25310. box-shadow: 0 0 6px 0px #5394ff;
  25311. }
  25312. .checkDiv {
  25313. display: flex;
  25314. align-items: center;
  25315. }
  25316. .checkDiv span {
  25317. margin-left: 5px;
  25318. color: #858585;
  25319. }
  25320. .check img {
  25321. width: 20px;
  25322. height: 20px;
  25323. }
  25324. .lockTaskIcon {
  25325. width: 20px;
  25326. height: 20px;
  25327. position: absolute;
  25328. right: 10px;
  25329. top: 5px;
  25330. }
  25331. .lockTaskIcon > img {
  25332. width: 100%;
  25333. height: 100%;
  25334. }
  25335. .pick_box {
  25336. display: flex;
  25337. align-items: flex-start;
  25338. flex-wrap: wrap;
  25339. }
  25340. .selectBox {
  25341. width: 110px;
  25342. margin-left: 10px;
  25343. margin: 0 10px 0 auto;
  25344. }
  25345. .selectBox >>> .el-input__inner {
  25346. height: 30px;
  25347. line-height: 30px;
  25348. }
  25349. .selectBox >>> .el-input__icon {
  25350. line-height: 30px;
  25351. }
  25352. .sentenceTitle {
  25353. display: flex;
  25354. flex-direction: row;
  25355. flex-wrap: nowrap;
  25356. align-items: center;
  25357. }
  25358. .sentenceTitle::before {
  25359. content: attr(index);
  25360. background: #3681fc;
  25361. border-radius: 50%;
  25362. color: #fff;
  25363. width: 25px;
  25364. height: 25px;
  25365. min-width: 25px;
  25366. min-height: 25px;
  25367. text-align: center;
  25368. line-height: 25px;
  25369. margin-right: 5px;
  25370. }
  25371. .hfBox {
  25372. padding: 10px;
  25373. box-sizing: border-box;
  25374. }
  25375. .whoReplyWho {
  25376. display: flex;
  25377. flex-direction: row;
  25378. flex-wrap: nowrap;
  25379. align-items: baseline;
  25380. justify-content: flex-start;
  25381. }
  25382. .hfBottom {
  25383. display: flex;
  25384. flex-direction: row;
  25385. flex-wrap: nowrap;
  25386. align-items: center;
  25387. justify-content: space-between;
  25388. font-size: 14px;
  25389. }
  25390. .deleteHfItem {
  25391. cursor: pointer;
  25392. width: 20px;
  25393. height: 20px;
  25394. }
  25395. .deleteHfItem > img {
  25396. width: 100%;
  25397. height: 100%;
  25398. }
  25399. .whoReplyWho > .hfImg {
  25400. width: 12px;
  25401. height: 12px;
  25402. margin: 0 5px;
  25403. }
  25404. .whoReplyWho > .hfImg > img {
  25405. width: 100%;
  25406. height: 100%;
  25407. }
  25408. .hfContent {
  25409. padding-top: 10px;
  25410. box-sizing: border-box;
  25411. display: -webkit-box;
  25412. overflow: hidden;
  25413. white-space: normal !important;
  25414. text-overflow: ellipsis;
  25415. word-wrap: break-word;
  25416. -webkit-box-orient: vertical;
  25417. }
  25418. .hfTime {
  25419. text-align: left;
  25420. box-sizing: border-box;
  25421. padding: 10px 0 10px 0px;
  25422. color: #bfbfbf;
  25423. font-size: 14px;
  25424. }
  25425. .btnAllNT {
  25426. position: fixed;
  25427. bottom: 100px;
  25428. right: 40px;
  25429. z-index: 999;
  25430. display: flex;
  25431. flex-direction: row;
  25432. }
  25433. .btnAllNT > img {
  25434. cursor: pointer;
  25435. width: 80px;
  25436. }
  25437. .toolMask {
  25438. position: fixed;
  25439. width: 100%;
  25440. height: 100%;
  25441. background: #3f3c3c;
  25442. opacity: 0.5;
  25443. top: 0;
  25444. left: 0;
  25445. z-index: 999;
  25446. }
  25447. .addToolCss {
  25448. position: fixed;
  25449. z-index: 999;
  25450. background: #fff;
  25451. right: 5%;
  25452. bottom: 18%;
  25453. min-width: 1035px;
  25454. min-height: 300px;
  25455. border-radius: 10px;
  25456. box-shadow: 0 0 8px 1px #b2b2b2;
  25457. }
  25458. .toolTop {
  25459. display: flex;
  25460. flex-direction: row;
  25461. flex-wrap: nowrap;
  25462. justify-content: space-between;
  25463. align-items: center;
  25464. padding: 20px;
  25465. }
  25466. .toolTop > div:nth-child(2) {
  25467. width: 15px;
  25468. height: 15px;
  25469. padding-right: 10px;
  25470. cursor: pointer;
  25471. }
  25472. .toolTop > div:nth-child(2) > img {
  25473. width: 100%;
  25474. height: 100%;
  25475. }
  25476. .fullStyle>>>.el-dialog__body {
  25477. height: calc(100% - 125px) !important;
  25478. box-sizing: border-box;
  25479. padding: 30px 0 !important;
  25480. background: #fff !important;
  25481. }
  25482. .fullStyle>>>.el-dialog {
  25483. width: 100% !important;
  25484. max-width: 100% !important;
  25485. height: 100% !important;
  25486. margin: 0 !important;
  25487. }
  25488. .fullStyle {
  25489. width: 100% !important;
  25490. max-width: 100% !important;
  25491. height: 100% !important;
  25492. margin: 0 auto !important;
  25493. }
  25494. .fullStyle>>>.el-dialog__footer{
  25495. background: #fff !important;
  25496. }
  25497. .engUpBox {
  25498. width: 100%;
  25499. height: 100%;
  25500. }
  25501. .engTitle,
  25502. .engText {
  25503. display: flex;
  25504. flex-direction: row;
  25505. flex-wrap: nowrap;
  25506. align-items: flex-start;
  25507. padding: 0 20px 20px 20px;
  25508. box-sizing: border-box;
  25509. }
  25510. .engTitle > .div:first-child,
  25511. .engText > div:first-child {
  25512. min-width: 75px;
  25513. }
  25514. .correctBox{
  25515. width: 100%;
  25516. display: flex;
  25517. flex-direction: row;
  25518. flex-wrap: nowrap;
  25519. align-items: flex-start;
  25520. }
  25521. .oldBox{
  25522. width: 50%;
  25523. height: 100%;
  25524. display: flex;
  25525. flex-direction: column;
  25526. flex-wrap: nowrap;
  25527. align-items: center;
  25528. border-top: 1px solid #d9d9d9;
  25529. border-left: 1px solid #d9d9d9;
  25530. border-right: 1px solid #d9d9d9;
  25531. }
  25532. .oldBox>div:first-child{
  25533. width: 100%;
  25534. text-align: center;
  25535. background: #d9d9d9;
  25536. height: 35px;
  25537. line-height: 35px;
  25538. font-weight: bold;
  25539. }
  25540. .oldText{
  25541. width: 100%;
  25542. height: calc(100% - 35px);
  25543. overflow: auto;
  25544. margin: 10px 0;
  25545. display: flex;
  25546. flex-direction: column;
  25547. flex-wrap: nowrap;
  25548. align-content: center;
  25549. align-items: center;
  25550. }
  25551. .detailBox{
  25552. width: 50%;
  25553. padding: 10px;
  25554. background: #f6f6f6;
  25555. border-radius: 5px;
  25556. }
  25557. .oldDetail,.oldDetail1{
  25558. padding-bottom: 30px;
  25559. }
  25560. .oldImg{
  25561. width:30px;
  25562. height: 30px;
  25563. }
  25564. .oldImg>img{
  25565. width: 100%;
  25566. height: 100%;
  25567. }
  25568. .allName{
  25569. min-width: 200px;
  25570. white-space: nowrap;
  25571. overflow: hidden;
  25572. text-overflow: ellipsis;
  25573. word-break: break-word;
  25574. cursor: pointer;
  25575. text-align: center;
  25576. border: 1px solid #bcc2cc;
  25577. box-sizing: border-box;
  25578. }
  25579. .engUpTop{
  25580. max-height: 300px;
  25581. overflow: auto;
  25582. }
  25583. .isUpdateToolDetailClass{
  25584. padding: 0 !important;
  25585. }
  25586. .isUpdateToolDetailClass textarea{
  25587. padding:12px;
  25588. font-size: 16px;
  25589. min-height:100%;
  25590. width: 100%;
  25591. box-sizing:border-box;
  25592. outline: none;
  25593. border:none;
  25594. line-height: 30px;
  25595. resize: none;
  25596. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25597. color: #838383;
  25598. }
  25599. .show_taskD {
  25600. min-width: fit-content;
  25601. margin-left: 10px;
  25602. display: flex;
  25603. align-items: center;
  25604. font-size: 14px;
  25605. cursor: pointer;
  25606. color: #717c8d;
  25607. }
  25608. .show_taskD > img {
  25609. width: 15px;
  25610. margin-right: 5px;
  25611. transition: 0.2s all;
  25612. transform: rotate(-90deg);
  25613. }
  25614. .show_taskD.show > img {
  25615. transform: rotate(0deg);
  25616. }
  25617. .correctCss{
  25618. position: absolute;
  25619. bottom: -70px;
  25620. background: #409eff;
  25621. color: #fff;
  25622. }
  25623. .dialog_diyCopy >>> .el-dialog__header {
  25624. display: none !important;
  25625. }
  25626. .dialog_diyCopy >>> .el-dialog__body {
  25627. padding: 0 !important;
  25628. height: 100% !important;
  25629. }
  25630. .confirmOpenDigCss > div{
  25631. font-size: 14px;
  25632. color: rgba(0, 0, 0, 0.6);
  25633. }
  25634. .confirmOpenDigCss >>> .el-dialog{
  25635. border-radius: 6px;
  25636. }
  25637. .confirmOpenDigCss >>> .el-dialog__body{
  25638. padding: 25px !important;
  25639. }
  25640. .confirmOpenDigCss > span{
  25641. font-size: 16px;
  25642. font-weight: 600;
  25643. color: rgba(0, 0, 0, 0.8);
  25644. }
  25645. div::-webkit-scrollbar {
  25646. width: 10px;
  25647. height: 6px;
  25648. }
  25649. .Ovh{
  25650. margin: 5px 0;
  25651. width: 4em;
  25652. -webkit-line-clamp: 2;
  25653. display: -webkit-box;
  25654. -webkit-box-orient: vertical;
  25655. overflow: hidden;
  25656. text-overflow: ellipsis;
  25657. }
  25658. .renderedFor >>> .katex {
  25659. font-size: 18px;
  25660. width: 100%;
  25661. white-space: normal;
  25662. font-family: '黑体' !important;
  25663. }
  25664. .renderedFor >>> .katex .base{
  25665. display: inline !important;
  25666. display: contents !important;
  25667. }
  25668. .renderedFor>>> .katex .base .cjk_fallback{
  25669. white-space: normal !important;
  25670. display: inline !important;
  25671. }
  25672. .notop >>> .vjs_video_3-dimensions.vjs-fluid{
  25673. padding-top: 0 !important;
  25674. }
  25675. </style>