studyStudent.vue 890 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473
  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. <span>识别码:{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div
  85. style="background: #fff; margin: 0 10px; border-radius: 8px"
  86. v-for="(item, stageIndex) in navList"
  87. :key="stageIndex"
  88. >
  89. <div
  90. class="stageBoxCss"
  91. @click="get(stageIndex)"
  92. :class="{
  93. // stageBoxIsCss: stageIndex == courseType,
  94. }"
  95. >
  96. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  97. <div>阶段{{ stageIndex + 1 }}</div>
  98. <el-tooltip
  99. effect="light"
  100. :content="item.dyName"
  101. placement="top"
  102. >
  103. <div>
  104. {{ item.dyName }}
  105. </div>
  106. </el-tooltip>
  107. </div>
  108. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  109. <img src="../assets/icon/newIcons/downC.png" alt />
  110. </div> -->
  111. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  112. <img src="../assets/icon/newIcons/right.png" alt />
  113. </div>
  114. </div>
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType,
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  130. @click="openTask(stageIndex, navIndex, nav.id)"
  131. >
  132. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  133. </div>
  134. <div
  135. class="closeTri1"
  136. v-else
  137. @click="openTask(stageIndex, navIndex, nav.id)"
  138. >
  139. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  140. </div>
  141. </div>
  142. <div v-else class="noToolBlue"></div>
  143. <div
  144. @click="openTask(stageIndex, navIndex, nav.id)"
  145. class="navItemList"
  146. :class="{
  147. isItemList:
  148. navIndex == taskCount &&
  149. nav.id == navId &&
  150. stageIndex == courseType,
  151. }"
  152. >
  153. <div>任务{{ navIndex + 1 }}:</div>
  154. <el-tooltip
  155. effect="light"
  156. :content="nav.taskName"
  157. placement="top"
  158. >
  159. <div
  160. :style="{
  161. width:
  162. IsLookOpen &&
  163. !(
  164. navIndex == taskCount &&
  165. nav.id == navId &&
  166. stageIndex == courseType
  167. )
  168. ? 'calc(100% - 75px)'
  169. : 'auto',
  170. }"
  171. >
  172. {{ nav.taskName }}
  173. </div>
  174. </el-tooltip>
  175. </div>
  176. <div class="lockTaskIcon">
  177. <img
  178. src="../assets/lock.png"
  179. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  180. courseDetail.course_teacher.indexOf(userid) ==-1"
  181. alt=""
  182. />
  183. </div>
  184. </div>
  185. <div
  186. v-if="nav.tool[0].tool != undefined"
  187. class="toolChild"
  188. :class="{ toolActive: nav.isOpen }"
  189. >
  190. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  191. <div
  192. class="gjCss"
  193. :class="{ isGjCss: t.isTool }"
  194. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  195. >
  196. <div>工具{{ toolIndex + 1 }}:</div>
  197. <div v-if="t.tool == 58">模拟驾驶</div>
  198. <div v-if="t.tool == 59">路径搜索</div>
  199. <div v-if="t.tool == 60">深度学习</div>
  200. <div v-if="t.tool == 10">倒计时</div>
  201. <div v-if="t.tool == 65">挑人</div>
  202. <div v-if="t.tool == 7">思维网格</div>
  203. <div v-if="t.tool == 1">电子白板</div>
  204. <div v-if="t.tool == 52">文档</div>
  205. <div v-if="t.tool == 3">思维导图</div>
  206. <div v-if="t.tool == 48">表格</div>
  207. <div v-if="t.tool == 49">学生分组</div>
  208. <div v-if="t.tool == 4">问卷调查</div>
  209. <div v-if="t.tool == 45">选择题</div>
  210. <div v-if="t.tool == 15">问答</div>
  211. <div v-if="t.tool == 16">作业提交</div>
  212. <div v-if="t.tool == 50">批量上传</div>
  213. <div v-if="t.tool == 41">选择匹配</div>
  214. <div v-if="t.tool == 47">排序</div>
  215. <div v-if="t.tool == 40">个人评价</div>
  216. <div v-if="t.tool == 18">训练平台</div>
  217. <div v-if="t.tool == 21">AIoT Blockly</div>
  218. <div v-if="t.tool == 23">AI Python</div>
  219. <div v-if="t.tool == 24">AI Blockly</div>
  220. <div v-if="t.tool == 32">源码编辑</div>
  221. <div v-if="t.tool == 57">CocoPi</div>
  222. <div v-if="t.tool == 63">海龟编程</div>
  223. <div v-if="t.tool == 28">翻译</div>
  224. <div v-if="t.tool == 31">数字画板</div>
  225. <div v-if="t.tool == 39">GeoGebra</div>
  226. <div v-if="t.tool == 66">公式编辑</div>
  227. <div v-if="t.tool == 67">分子结构</div>
  228. <div v-if="t.tool == 68">时间轴</div>
  229. <div v-if="t.tool == 69">英语写作</div>
  230. <div v-if="t.tool == 70">英语口语</div>
  231. <div v-if="t.tool == 25">目标管理</div>
  232. <div v-if="t.tool == 26">课程设计</div>
  233. <div v-if="t.tool == 62">交互视频</div>
  234. <div v-if="t.tool == 71">AI智能体</div>
  235. <div v-if="t.tool == 72">应用中心</div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. <!-- :class="{ navLeftCss: !mlDialog }" -->
  245. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  246. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  247. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  248. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  249. <div>任务{{ taskCount + 1 }}</div>
  250. <el-tooltip
  251. effect="light"
  252. :content="
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  254. "
  255. placement="top"
  256. >
  257. <div>
  258. {{
  259. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  260. .task
  261. }}
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <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'"-->
  266. <div class="btnLeft">
  267. <el-tooltip effect="light" content="刷新" placement="top">
  268. <div class="reBtnIcon" @click="refreshCourse">
  269. <span>刷新</span>
  270. </div>
  271. </el-tooltip>
  272. <el-tooltip effect="light" content="评论" placement="top">
  273. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  274. <span>评论</span>
  275. </div>
  276. </el-tooltip>
  277. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  278. <el-tooltip effect="light" content="录制" placement="top">
  279. <div class="vedioIcon" @click="startRecording">
  280. <span>录制</span>
  281. </div>
  282. </el-tooltip>
  283. </div>
  284. <div v-else-if="tType == 1 || tType == 4">
  285. <el-tooltip effect="light" content="下载" placement="top">
  286. <div class="vedioIcon1" @click="stopRecording">
  287. <span>下载</span>
  288. </div>
  289. </el-tooltip>
  290. </div>
  291. </div>
  292. <div class="btnRight">
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(0)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered = true"
  298. @mouseout="isHovered = false"
  299. >
  300. <div class="lastImg">
  301. <img
  302. :src="
  303. isHovered
  304. ? require('../assets/icon/newIcons/whiteLast.png')
  305. : require('../assets/icon/newIcons/last.png')
  306. "
  307. alt=""
  308. />
  309. </div>
  310. <div class="lastText">上一步</div>
  311. </div>
  312. <div
  313. class="last"
  314. @click="nextOrpreSteps(1)"
  315. v-if="!(IsFollow && tType == 2)"
  316. @mouseover="isHovered1 = true"
  317. @mouseout="isHovered1 = false"
  318. >
  319. <div class="lastText">下一步</div>
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered1
  324. ? require('../assets/icon/newIcons/whiteNext.png')
  325. : require('../assets/icon/newIcons/next.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. </div>
  331. <div
  332. class="last"
  333. @click="juriVisible = true"
  334. v-if="tType == 1"
  335. @mouseover="isHovered2 = true"
  336. @mouseout="isHovered2 = false"
  337. >
  338. <div class="lastImg">
  339. <img
  340. :src="
  341. isHovered2
  342. ? require('../assets/icon/newIcons/whiteLock.png')
  343. : require('../assets/icon/newIcons/lock.png')
  344. "
  345. alt=""
  346. />
  347. </div>
  348. <div class="lastText">权限</div>
  349. </div>
  350. <div
  351. class="returnBtn1 returnIcon"
  352. @click.stop="
  353. goTo(
  354. '/courseDetail?userid=' +
  355. userid +
  356. '&oid=' +
  357. oid +
  358. '&org=' +
  359. org +
  360. '&cid=' +
  361. classId +
  362. '&courseId=' +
  363. id +
  364. '&tType=' +
  365. tType +
  366. '&screenType=' +
  367. screenType
  368. )
  369. "
  370. >
  371. <div class="lastImg">
  372. <img src="../assets/icon/newIcon/return.png" alt="" />
  373. </div>
  374. <div class="lastText" style="color: #000">返回</div>
  375. </div>
  376. </div>
  377. <!-- <div
  378. class="returnBtn lockIcon"
  379. @click="juriVisible = true"
  380. v-if="tType == 1"
  381. >
  382. 权限
  383. </div>
  384. <div
  385. class="returnBtn vedioIcon"
  386. @click="startRecording"
  387. v-if="!videoStart && (tType == 1 || tType == 4)"
  388. >
  389. 录制
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="stopRecording"
  394. v-else-if="tType == 1 || tType == 4"
  395. style="background: #ee5255"
  396. >
  397. 下载
  398. </div>
  399. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  400. 评论
  401. </div>
  402. <div
  403. class="returnBtn"
  404. @click="nextOrpreSteps(0)"
  405. v-if="!(IsFollow && tType == 2)"
  406. >
  407. 上一步
  408. </div>
  409. <div
  410. class="returnBtn"
  411. @click="nextOrpreSteps(1)"
  412. v-if="!(IsFollow && tType == 2)"
  413. >
  414. 下一步
  415. </div>
  416. <div class="returnBtn" @click="refreshCourse">刷新</div>
  417. <div
  418. class="returnBtn returnIcon"
  419. @click.stop="
  420. goTo(
  421. '/courseDetail?userid=' +
  422. userid +
  423. '&oid=' +
  424. oid +
  425. '&org=' +
  426. org +
  427. '&cid=' +
  428. classId +
  429. '&courseId=' +
  430. id +
  431. '&tType=' +
  432. tType +
  433. '&screenType=' +
  434. screenType
  435. )
  436. "
  437. >
  438. 返回
  439. </div> -->
  440. </div>
  441. </div>
  442. <div
  443. class="isNoMessage"
  444. v-if="
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .chapterData.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .toolChoose[0].tool.length == 0 &&
  449. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .taskDetail == '' &&
  451. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  452. .eList &&
  453. !(
  454. courseDetail.userid == userid ||
  455. (courseDetail.course_teacher &&
  456. courseDetail.course_teacher.indexOf(userid) != -1)
  457. )
  458. "
  459. >
  460. <img src="../assets/icon/isNoMessage.png" alt />
  461. </div>
  462. <div class="study_top" :class="{ pzClass: pzDialog }">
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[taskCount].length > 0 ||
  469. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail != ''
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. class="renderedFor"
  488. >
  489. <div
  490. style="
  491. padding: 15px 0;
  492. line-height: 29px;
  493. font-size: 18px;
  494. color: #0e1e33;
  495. "
  496. class="cont"
  497. v-if="
  498. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  499. .taskDetail != ''
  500. "
  501. v-html="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .taskDetail
  504. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  505. taskCount
  506. ].taskDetail)
  507. : '暂无描述'
  508. "
  509. ></div>
  510. </div>
  511. </div>
  512. <div
  513. class="student_head"
  514. v-if="
  515. vChapterData[taskCount].length > 0 ||
  516. fileC[taskCount].length > 0
  517. "
  518. >
  519. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  520. <div
  521. :class="
  522. contentDialog == false
  523. ? 'box_course isContentCss'
  524. : 'box_course'
  525. "
  526. v-if="
  527. vChapterData.length > 0 &&
  528. vChapterData[taskCount] &&
  529. showType !== ''
  530. "
  531. >
  532. <div class="wheel" style="height: auto" v-if="showType === 0">
  533. <div
  534. class="workd_media"
  535. style="height: 650px; width: calc(100% - 50px)"
  536. >
  537. <video-player
  538. class="video-player vjs-custom-skin notop"
  539. :class="contentDialog == false ? 'isAllWidth' : ''"
  540. :playsinline="true"
  541. :options="playerO[taskCount]"
  542. @play="onPlayerPlay($event)"
  543. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  544. ></video-player>
  545. </div>
  546. </div>
  547. <div
  548. class="wheel"
  549. v-if="showType == 1"
  550. style="
  551. box-shadow: 0 0 6px 1px #f2f2f2;
  552. width: 95%;
  553. margin: 0 auto;
  554. background: #f1f1f1;
  555. "
  556. >
  557. <div class="title">查看文档</div>
  558. <el-form class="textBox">
  559. <el-form-item class="textTitle">
  560. <div style="font-size: 22px">
  561. {{ text.name }}
  562. </div>
  563. </el-form-item>
  564. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  565. <div v-html="text.url" class="textContent cont"></div>
  566. </el-form>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="
  571. pptImgUrl1.indexOf(
  572. 'https://view.officeapps.live.com/op/view.aspx?src='
  573. ) != -1 && showType == 2
  574. "
  575. style="width: 95%; margin: 0 auto"
  576. >
  577. <iframe
  578. style="width: 100%; height: 100%; border: none"
  579. :src="pptImgUrl1"
  580. ></iframe>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-else-if="showType == 2"
  585. style="width: 95%; margin: 0 auto"
  586. >
  587. <iframe
  588. style="width: 100%; height: 100%; border: none"
  589. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  590. :key="diffKey"
  591. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  592. :src="pptImgUrl1"
  593. ></iframe>
  594. <iframe
  595. style="width: 100%; height: 100%; border: none"
  596. security="restricted"
  597. v-else
  598. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  599. :src="pptImgUrl1"
  600. ></iframe>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="showType === 16"
  605. style="width: 95%; margin: 0 auto"
  606. >
  607. <iframe
  608. style="width: 100%; height: 100%; border: none"
  609. :src="pptImgUrl1"
  610. ></iframe>
  611. </div>
  612. <div
  613. class="wheel"
  614. v-if="showType == 3"
  615. style="width: 95%; margin: 0 auto"
  616. >
  617. <pdf
  618. :pdfUrl="pptImgUrl1"
  619. style="width: 100%; height: 100%; overflow: auto"
  620. ></pdf>
  621. </div>
  622. <div
  623. class="wheel"
  624. v-if="showType == 4"
  625. style="width: 95%; margin: 0 auto"
  626. >
  627. <el-image
  628. :src="pptImgUrl1"
  629. fit="contain"
  630. style="width: 100%; height: 100%; cursor: pointer"
  631. @click="previewImg(pptImgUrl1)"
  632. ></el-image>
  633. </div>
  634. </div>
  635. <div
  636. class="pButton"
  637. style="position: absolute; right: 20px; top: 0; z-index: 998"
  638. v-if="!contentDialog"
  639. @click="setContent(true)"
  640. >
  641. <!-- 批 -->
  642. <img
  643. src="../assets/icon/newIcons/isLeft.png"
  644. style="width: 45px"
  645. alt=""
  646. />
  647. </div>
  648. <div
  649. v-if="contentDialog == true"
  650. :style="{
  651. width:
  652. (vChapterData[taskCount].length > 0 ||
  653. fileC[taskCount].length > 0) &&
  654. showType === ''
  655. ? 'calc(100%)'
  656. : '300px',
  657. margin:
  658. (vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0) &&
  660. showType === ''
  661. ? '0 15px'
  662. : '0 15px 0 0',
  663. }"
  664. >
  665. <div
  666. class="vedioList"
  667. v-if="
  668. vChapterData[taskCount].length > 0 ||
  669. fileC[taskCount].length > 0
  670. "
  671. style="height: 650px"
  672. >
  673. <div class="navCorOpenBox">
  674. <div class="navTitile">内容列表:</div>
  675. <div class="navCorOpen" @click="setContent(false)">
  676. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  677. </div>
  678. </div>
  679. <div class="navBox">
  680. <div
  681. v-show="
  682. vChapterData[taskCount].length > 0 ||
  683. fileC[taskCount].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[taskCount]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img src="../assets/icon/newIcon/down.png" alt />
  703. </div> -->
  704. </div>
  705. <div class="navListItem" v-if="vitem.type == 6">
  706. <div
  707. @click="lookText(taskCount, vindex)"
  708. class="navText"
  709. :class="isClickNav == vindex ? 'isClickNav' : ''"
  710. >
  711. {{ vitem.name }}.doc
  712. </div>
  713. <div
  714. class="downIcon"
  715. @click="checkFileFull1(vitem.type, vitem)"
  716. >
  717. <img
  718. src="../assets/icon/newIcon/allScreen.png"
  719. alt
  720. />
  721. </div>
  722. </div>
  723. <div
  724. class="navListItem"
  725. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  726. >
  727. <div
  728. @click="doUrl(vitem.url, vindex)"
  729. class="navText"
  730. :class="isClickNav == vindex ? 'isClickNav' : ''"
  731. >
  732. {{ vitem.title ? vitem.title : vitem.url }}
  733. </div>
  734. <div
  735. class="downIcon"
  736. @click="checkFileFull1(vitem.type, vitem)"
  737. >
  738. <img
  739. src="../assets/icon/newIcon/allScreen.png"
  740. alt
  741. />
  742. </div>
  743. </div>
  744. <div class="navListItem" v-if="vitem.type == 3">
  745. <div
  746. @click="downFile(vitem, vindex)"
  747. class="navText"
  748. :class="isClickNav == vindex ? 'isClickNav' : ''"
  749. >
  750. <span v-if="vitem.text">{{ vitem.text }}-</span
  751. >{{ vitem.name }}
  752. </div>
  753. <div
  754. class="downIcon"
  755. @click="checkFileFull1(vitem.type, vitem)"
  756. >
  757. <img
  758. src="../assets/icon/newIcon/allScreen.png"
  759. alt
  760. />
  761. </div>
  762. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  763. <img src="../assets/icon/newIcon/down.png" alt />
  764. </div> -->
  765. </div>
  766. <div class="navListItem" v-if="vitem.type == 12">
  767. <div class="navText" @click="downloadFile2(vitem)">
  768. <span v-if="vitem.text">{{ vitem.text }}-</span
  769. >{{ vitem.name }}
  770. </div>
  771. <div
  772. class="downIcon"
  773. @click="checkFileFull1(vitem.type, vitem)"
  774. >
  775. <img
  776. src="../assets/icon/newIcon/allScreen.png"
  777. alt
  778. />
  779. </div>
  780. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  781. <img src="../assets/icon/newIcon/down.png" alt />
  782. </div> -->
  783. </div>
  784. <div class="navListItem" v-if="vitem.type == 13">
  785. <div
  786. class="navText"
  787. @click="checkPhoto(vitem, vindex)"
  788. :class="isClickNav == vindex ? 'isClickNav' : ''"
  789. >
  790. {{ vitem.name }}
  791. </div>
  792. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  793. <img src="../assets/icon/newIcon/down.png" alt />
  794. </div> -->
  795. </div>
  796. <div class="navListItem" v-if="vitem.type == 16">
  797. <div
  798. class="navText"
  799. @click="checkHtml(vitem, vindex)"
  800. :class="isClickNav == vindex ? 'isClickNav' : ''"
  801. >
  802. {{ vitem.name }}
  803. </div>
  804. <div
  805. class="downIcon"
  806. @click="checkFileFull1(vitem.type, vitem)"
  807. >
  808. <img
  809. src="../assets/icon/newIcon/allScreen.png"
  810. alt
  811. />
  812. </div>
  813. </div>
  814. <div class="navListItem" v-if="vitem.type == 17">
  815. <div
  816. class="navText"
  817. @click="checkHtml(vitem, vindex)"
  818. :class="isClickNav == vindex ? 'isClickNav' : ''"
  819. >
  820. {{ vitem.name }}
  821. </div>
  822. <div
  823. class="downIcon"
  824. @click="checkFileFull1(vitem.type, vitem)"
  825. >
  826. <img
  827. src="../assets/icon/newIcon/allScreen.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. </div>
  833. <div
  834. class="fileC_box"
  835. v-if="fileC[taskCount].length > 0"
  836. >
  837. <div class="fileC_title">以下文件不支持预览</div>
  838. <div
  839. class="vedioTimeBox"
  840. v-for="(vitem, vindex) in fileC[taskCount]"
  841. :key="vindex + '1'"
  842. >
  843. <div class="navListItem" v-if="vitem.type == 12">
  844. <div class="navText" style="color: #acb4bf">
  845. <span v-if="vitem.text">{{ vitem.text }}-</span
  846. >{{ vitem.name }}
  847. </div>
  848. <!-- <div
  849. class="downIcon"
  850. @click="downloadFile2(vitem)"
  851. >
  852. <img
  853. src="../assets/icon/newIcon/down.png"
  854. alt
  855. />
  856. </div> -->
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. </div>
  865. <div style="width: calc(100% - 315px)">
  866. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  867. <!-- <el-button
  868. type="primary"
  869. class="newButton"
  870. @click="checkFileFull(showType, pptImgUrl1)"
  871. >全屏查看</el-button
  872. >
  873. <el-button
  874. type="primary"
  875. class="newButton"
  876. @click="downloadFile(pptImgUrl1)"
  877. v-if="showType != 2"
  878. >文件下载</el-button
  879. > -->
  880. <el-button
  881. class="newButton"
  882. v-if="
  883. showType == 2 &&
  884. pptImgUrl1.indexOf(
  885. 'https://view.officeapps.live.com/op/view.aspx?src='
  886. ) == -1
  887. "
  888. type="primary"
  889. @click="openLine(pptImgUrl1)"
  890. >打开链接
  891. </el-button>
  892. </div>
  893. <!-- <div
  894. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  895. v-if="showType == 1"
  896. >
  897. <el-button
  898. type="primary"
  899. class="newButton"
  900. @click="checkFileFull(showType, text)"
  901. >全屏查看</el-button
  902. >
  903. </div> -->
  904. </div>
  905. </div>
  906. </div>
  907. <div class="student_body" v-resize="resize">
  908. <div
  909. class="vedioBox"
  910. :style="{
  911. borderRadius:
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .taskDetail == '' &&
  914. vChapterData[taskCount].length == 0 &&
  915. fileC[taskCount].length == 0
  916. ? '0 0 20px 20px'
  917. : '20px',
  918. }"
  919. v-if="
  920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  921. .toolChoose[0].tool &&
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool.length > 0
  924. "
  925. >
  926. <div
  927. class="toolHeng2"
  928. style="position: relative"
  929. v-if="
  930. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  931. .toolChoose[0].tool &&
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .toolChoose[0].tool.length &&
  934. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  935. .toolChoose[0].tool.length > 0
  936. "
  937. >
  938. <div class="workNav">工作区</div>
  939. <div
  940. class="filebox"
  941. style="flex-wrap: nowrap"
  942. v-for="(tool, toolIndex) in chapInfoList[courseType]
  943. .chapterInfo[0].taskJson[taskCount].toolChoose"
  944. :key="toolIndex"
  945. >
  946. <div class="bzBox">
  947. <div class="yCss"></div>
  948. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  949. 工具{{ toolIndex + 1 }}
  950. </div>
  951. <div
  952. v-if="timeWorkList[toolIndex].length > 0"
  953. style="margin: 0 0 0 10px"
  954. >
  955. {{
  956. timeWorkList[toolIndex][0].time
  957. ? "时间:" + timeWorkList[toolIndex][0].time
  958. : ""
  959. }}
  960. </div>
  961. </div>
  962. <div class="toolBox">
  963. <div>
  964. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  965. :key="indexTool"-->
  966. <!-- <div class="iframeBox">
  967. <div
  968. class="addPoint isBorder"
  969. v-for="(tooC, toolCIndex) in tool.tool"
  970. :key="toolCIndex"
  971. >
  972. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  973. <div
  974. class="iframeName"
  975. >
  976. 电子白板
  977. </div>
  978. <iframe
  979. src="https://iwb.cocorobo.cn/"
  980. ref="whiteBoard"
  981. ></iframe>
  982. </div>
  983. </div>
  984. </div>-->
  985. <div class="noiframeBox">
  986. <div
  987. class="addPoint"
  988. v-for="(tooC, toolCIndex) in tool.tool"
  989. :key="toolCIndex"
  990. >
  991. <div v-if="tooC == 1">
  992. <img
  993. src="../assets/icon/secondToolList/whiteBoard.png"
  994. alt
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. />
  997. <div style="margin: 5px 0">电子白板</div>
  998. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  999. style="position: absolute;right: 33px;top: -30px;">
  1000. 分析
  1001. </div>
  1002. </div>
  1003. <div v-if="tooC == 3">
  1004. <img
  1005. src="../assets/icon/secondToolList/mindMapping.png"
  1006. alt
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. />
  1009. <div style="margin: 5px 0">思维导图</div>
  1010. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1011. style="position: absolute;right: 33px;top: -30px;">
  1012. 分析
  1013. </div>
  1014. </div>
  1015. <div v-if="tooC == 6">
  1016. <img
  1017. src="../assets/icon/secondToolList/doc.png"
  1018. alt
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. />
  1021. <div style="margin: 5px 0">协同文档</div>
  1022. </div>
  1023. <div v-if="tooC == 7">
  1024. <img
  1025. src="../assets/icon/secondToolList/mindNetwork.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维网格</div>
  1030. <!-- && worksStudent[toolIndex].length>0 -->
  1031. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1032. style="position: absolute;right: 33px;top: -30px;">
  1033. 分析
  1034. </div>
  1035. </div>
  1036. <div v-if="tooC == 8">
  1037. <img
  1038. src="../assets/icon/secondToolList/library.png"
  1039. alt
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. />
  1042. <div style="margin: 5px 0">素材库</div>
  1043. </div>
  1044. <div v-if="tooC == 17">
  1045. <img
  1046. src="../assets/icon/secondToolList/library.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">学习资料</div>
  1051. </div>
  1052. <div v-if="tooC == 2">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../assets/icon/secondToolList/note.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">便签</div>
  1059. </div>
  1060. <div v-if="tooC == 4">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../assets/icon/thirdToolList/ask.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">问卷调查</div>
  1067. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1068. style="position: absolute;right: 153px;top: -30px;">
  1069. 分析
  1070. </div>
  1071. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. 统计分析
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 45">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../assets/icon/thirdToolList/choose.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">选择题</div>
  1083. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1084. style="position: absolute;right: 33px;top: -30px;">
  1085. 分析
  1086. </div>
  1087. </div>
  1088. <!-- <div v-if="tooC == 5">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../assets/icon/thirdToolList/score.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">量规评分</div>
  1095. </div> -->
  1096. <div v-if="tooC == 10">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/thirdToolList/time.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">倒计时</div>
  1103. </div>
  1104. <div v-if="tooC == 15">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/thirdToolList/answer.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">问答</div>
  1111. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1112. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1113. 分析
  1114. </div>
  1115. </div>
  1116. <div v-if="tooC == 26">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../assets/icon/thirdToolList/courseDesign.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">课程设计</div>
  1123. </div>
  1124. <div v-if="tooC == 18">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../assets/icon/thirdToolList/trainPlatform.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">训练服务器</div>
  1131. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1132. style="position: absolute;right: 33px;top: -30px;">
  1133. 分析
  1134. </div>
  1135. </div>
  1136. <div v-if="tooC == 16">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../assets/icon/thirdToolList/work.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">作业提交</div>
  1143. </div>
  1144. <div v-if="tooC == 50">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../assets/icon/thirdToolList/plwork.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">批量上传</div>
  1151. </div>
  1152. <div v-if="tooC == 21">
  1153. <img
  1154. @click="addTools(tooC, toolIndex, taskCount)"
  1155. src="../assets/icon/fourthToolList/program.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">AIoT Blockly</div>
  1159. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1160. style="position: absolute;right: 33px;top: -30px;">
  1161. 分析
  1162. </div>
  1163. </div>
  1164. <!-- <div v-if="tooC == 22">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../assets/icon/fourthToolList/program.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">AI体验</div>
  1171. </div> -->
  1172. <div v-if="tooC == 23">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">AI Python</div>
  1179. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1180. style="position: absolute;right: 33px;top: -30px;">
  1181. 分析
  1182. </div>
  1183. </div>
  1184. <div v-if="tooC == 24">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../assets/icon/fourthToolList/AIprogram.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">AI Blockly</div>
  1191. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1192. style="position: absolute;right: 33px;top: -30px;">
  1193. 分析
  1194. </div>
  1195. </div>
  1196. <div v-if="tooC == 25">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../assets/icon/thirdToolList/evalua.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">目标管理</div>
  1203. </div>
  1204. <div v-if="tooC == 31">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../assets/icon/secondToolList/networkPanel.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">数学画板</div>
  1211. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1212. style="position: absolute;right: 33px;top: -30px;">
  1213. 分析
  1214. </div>
  1215. </div>
  1216. <div v-if="tooC == 28">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../assets/icon/secondToolList/translation.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">翻译</div>
  1223. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1224. style="position: absolute;right: 33px;top: -30px;">
  1225. 分析
  1226. </div>
  1227. </div>
  1228. <div v-if="tooC == 37">
  1229. <img
  1230. @click="addTools(tooC, toolIndex, taskCount)"
  1231. src="../assets/icon/secondToolList/mohe.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">魔盒识字</div>
  1235. </div>
  1236. <div v-if="tooC == 38">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/secondToolList/24game.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">24点</div>
  1243. </div>
  1244. <div v-if="tooC == 39">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../assets/icon/secondToolList/GeoGebra.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">GeoGebra</div>
  1251. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. 分析
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 32">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../assets/icon/thirdToolList/code.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">源码编辑</div>
  1263. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1264. style="position: absolute;right: 153px;top: -42px;">
  1265. 分析
  1266. </div>
  1267. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1268. style="position: absolute;left: 110px;bottom: 30px;">
  1269. 上传文件
  1270. <input type="file" accept="*" style="display: none"
  1271. @change="beforeUpload1($event, 7, toolIndex)" />
  1272. </div> -->
  1273. </div>
  1274. <div v-if="tooC == 40">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../assets/icon/secondToolList/eval.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">个人评价</div>
  1281. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1282. style="position: absolute;right: 33px;top: -30px;">
  1283. 分析
  1284. </div>
  1285. </div>
  1286. <div v-if="tooC == 41">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../assets/icon/thirdToolList/select.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">选择匹配</div>
  1293. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1294. style="position: absolute;right: 33px;top: -30px;">
  1295. 分析
  1296. </div>
  1297. </div>
  1298. <div v-if="tooC == 44">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../assets/icon/thirdToolList/hanClass.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">汉字宫</div>
  1305. </div>
  1306. <div v-if="tooC == 47">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../assets/icon/fourthToolList/conSentences.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">排序</div>
  1313. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1314. style="position: absolute;right: 33px;top: -30px;">
  1315. 分析
  1316. </div>
  1317. </div>
  1318. <div v-if="tooC == 48">
  1319. <img
  1320. @click="addTools(tooC, toolIndex, taskCount)"
  1321. src="../assets/icon/fourthToolList/table.png"
  1322. alt
  1323. />
  1324. <div style="margin: 5px 0">表格</div>
  1325. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1326. style="position: absolute;right: 33px;top: -30px;">
  1327. 分析
  1328. </div>
  1329. </div>
  1330. <div v-if="tooC == 52">
  1331. <img
  1332. @click="addTools(tooC, toolIndex, taskCount)"
  1333. src="../assets/icon/fourthToolList/text.png"
  1334. alt
  1335. />
  1336. <div style="margin: 5px 0">文档</div>
  1337. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1338. style="position: absolute;right: 33px;top: -30px;">
  1339. 分析
  1340. </div>
  1341. </div>
  1342. <div v-if="tooC == 49">
  1343. <img
  1344. @click="addTools(tooC, toolIndex, taskCount)"
  1345. src="../assets/icon/fourthToolList/group.png"
  1346. alt
  1347. />
  1348. <div style="margin: 5px 0">学生分组</div>
  1349. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1350. style="position: absolute;right: 33px;top: -30px;">
  1351. 分析
  1352. </div>
  1353. </div>
  1354. <div v-if="tooC == 57">
  1355. <img
  1356. @click="addTools(tooC, toolIndex, taskCount)"
  1357. src="../assets/icon/fourthToolList/cocopi.png"
  1358. alt
  1359. />
  1360. <div style="margin: 5px 0">CocoPi</div>
  1361. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1362. style="position: absolute;right: 33px;top: -30px;">
  1363. 分析
  1364. </div>
  1365. </div>
  1366. <div v-if="tooC == 58">
  1367. <img
  1368. @click="addTools(tooC, toolIndex, taskCount)"
  1369. src="../assets/icon/fourthToolList/car.png"
  1370. alt
  1371. />
  1372. <div style="margin: 5px 0">模拟驾驶</div>
  1373. </div>
  1374. <div v-if="tooC == 59">
  1375. <img
  1376. @click="addTools(tooC, toolIndex, taskCount)"
  1377. src="../assets/icon/fourthToolList/lineSearch.png"
  1378. alt
  1379. />
  1380. <div style="margin: 5px 0">路径搜索</div>
  1381. </div>
  1382. <div v-if="tooC == 60">
  1383. <img
  1384. @click="addTools(tooC, toolIndex, taskCount)"
  1385. src="../assets/icon/fourthToolList/deepLearning.png"
  1386. alt
  1387. />
  1388. <div style="margin: 5px 0">深度学习</div>
  1389. </div>
  1390. <div v-if="tooC == 61">
  1391. <img
  1392. @click="addTools(tooC, toolIndex, taskCount)"
  1393. src="../assets/icon/fourthToolList/allHistory.png"
  1394. alt
  1395. />
  1396. <div style="margin: 5px 0">全历史</div>
  1397. </div>
  1398. <div v-if="tooC == 62">
  1399. <img
  1400. @click="addTools(tooC, toolIndex, taskCount)"
  1401. src="../assets/icon/fourthToolList/interVideo.png"
  1402. alt
  1403. />
  1404. <div style="margin: 5px 0">交互视频</div>
  1405. </div>
  1406. <div v-if="tooC == 63">
  1407. <img
  1408. @click="addTools(tooC, toolIndex, taskCount)"
  1409. src="../assets/icon/fourthToolList/Wood.png"
  1410. alt
  1411. />
  1412. <div style="margin: 5px 0">海龟编程</div>
  1413. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1414. style="position: absolute;right: 33px;top: -30px;">
  1415. 分析
  1416. </div>
  1417. </div>
  1418. <div v-if="tooC == 71">
  1419. <img
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../assets/icon/fourthToolList/chatgpt.png"
  1422. alt
  1423. />
  1424. <div style="margin: 5px 0">AI智能体</div>
  1425. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1426. style="position: absolute;right: 33px;top: -30px;">
  1427. 分析
  1428. </div>
  1429. </div>
  1430. <div v-if="tooC == 72">
  1431. <img
  1432. style="height: 85px;object-fit: cover;"
  1433. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1434. @click="addTools(tooC, toolIndex, taskCount)"
  1435. :src="tool.appJson.json.icon"
  1436. alt
  1437. />
  1438. <img
  1439. v-else
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../assets/icon/firstToolList/appStore.png"
  1442. alt
  1443. />
  1444. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1445. <!-- content to trigger tooltip here -->
  1446. <div class="Ovh">
  1447. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1448. </div>
  1449. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1450. style="position: absolute;right: 33px;top: -30px;">
  1451. 分析
  1452. </div>
  1453. </el-tooltip>
  1454. </div>
  1455. <div v-if="tooC == 65">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../assets/icon/firstToolList/pickPeople.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">挑人</div>
  1462. </div>
  1463. <div v-if="tooC == 66">
  1464. <img
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. src="../assets/icon/secondToolList/formulaEdi.png"
  1467. alt
  1468. />
  1469. <div style="margin: 5px 0">公式编辑</div>
  1470. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div>
  1474. </div>
  1475. <div v-if="tooC == 67">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../assets/icon/secondToolList/molStr.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">分子结构</div>
  1482. </div>
  1483. <div v-if="tooC == 68">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../assets/icon/secondToolList/timeAxis.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">时间轴</div>
  1490. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div> -->
  1494. </div>
  1495. <div v-if="tooC == 69">
  1496. <img
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../assets/icon/secondToolList/english.png"
  1499. alt
  1500. />
  1501. <div style="margin: 5px 0">英语写作</div>
  1502. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1503. style="position: absolute;right: 33px;top: -30px;">
  1504. 分析
  1505. </div>
  1506. </div>
  1507. <div v-if="tooC == 70">
  1508. <img
  1509. @click="addTools(tooC, toolIndex, taskCount)"
  1510. src="../assets/icon/thirdToolList/englishVoice.png"
  1511. alt
  1512. />
  1513. <div style="margin: 5px 0">英语口语</div>
  1514. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1515. style="position: absolute;right: 33px;top: -30px;">
  1516. 分析
  1517. </div>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. </div>
  1522. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1523. <!-- <div class="toolTitle">工具描述</div> -->
  1524. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1525. <div style="height:100%;"
  1526. v-html="renderedFormula(tool.toolDetail)"
  1527. v-if="toolDetailIndex != toolIndex"
  1528. ></div>
  1529. <div v-else @click.stop="" style="height:100%;">
  1530. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1531. </div>
  1532. </div>
  1533. <el-button
  1534. type="primary"
  1535. v-if="tool.tool[0] == 32"
  1536. style="position: absolute; right: 30px; top: -45px"
  1537. @click="addImg($event)"
  1538. >上传作业<input
  1539. type="file"
  1540. accept="*"
  1541. style="display: none"
  1542. @change="beforeUpload1($event, 7, toolIndex)"
  1543. /></el-button>
  1544. <el-button
  1545. type="primary"
  1546. v-if="tool.tool[0] == 15"
  1547. style="position: absolute; right: 30px; top: -45px"
  1548. @click="openWordCloud(toolIndex)"
  1549. >生成词云</el-button
  1550. >
  1551. <el-button
  1552. type="primary"
  1553. v-if="
  1554. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1555. "
  1556. style="position: absolute; right: 30px; top: -45px"
  1557. @click="uploadWorks(toolIndex)"
  1558. >导出作业</el-button
  1559. >
  1560. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1561. position: absolute;
  1562. right: 30px;
  1563. transform: translateY(-130%);
  1564. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1565. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1566. </div>
  1567. <div
  1568. v-if="
  1569. tType &&
  1570. tType == 2 &&
  1571. !sIsOpen &&
  1572. tool.tool.indexOf(16) != -1
  1573. "
  1574. class="worksBox"
  1575. >
  1576. <div
  1577. class="zuoyeYulan"
  1578. v-if="workStudent[toolIndex].length > 0"
  1579. >
  1580. <span class="worksTitle">作业预览</span>
  1581. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1582. </div>
  1583. <div
  1584. class="worksDetailBox"
  1585. v-if="workStudent[toolIndex].length > 0"
  1586. >
  1587. <div
  1588. class="works"
  1589. style="
  1590. width: 200px;
  1591. height: 140px;
  1592. margin: 10px 10px 10px 0;
  1593. box-shadow: 0 0 6px 1px #dfdada;
  1594. "
  1595. v-for="(w, wIndex) in workStudent[toolIndex]"
  1596. :key="wIndex"
  1597. >
  1598. <div class="workImg" v-if="w.type == 0">
  1599. <img
  1600. :src="w.works"
  1601. @click="previewImg(w.works,w)"
  1602. alt
  1603. />
  1604. <div
  1605. class="answerScore"
  1606. v-if="w.score"
  1607. @click.stop="openScore(w)"
  1608. :class="{
  1609. rightW:
  1610. w.userid == userid || tType == 1 || tType == 4,
  1611. }"
  1612. >
  1613. {{ JSON.parse(w.score).wScore }}分
  1614. </div>
  1615. <div
  1616. class="answerScore"
  1617. @click.stop="openScore(w)"
  1618. v-else-if="courseDetail.userid == userid"
  1619. :class="{
  1620. rightW:
  1621. w.userid == userid || tType == 1 || tType == 4,
  1622. }"
  1623. >
  1624. 评分
  1625. </div>
  1626. <img
  1627. class="deleteImg"
  1628. src="../assets/deleteworks.png"
  1629. v-if="
  1630. w.userid == userid || tType == 1 || tType == 4
  1631. "
  1632. @click.stop="deleteWorks(w.wid)"
  1633. alt
  1634. />
  1635. </div>
  1636. <div class="workImg" v-if="w.type == 1">
  1637. <img :src="word" @click="openFile(w.works,w)" alt />
  1638. <div
  1639. class="answerScore"
  1640. v-if="w.score"
  1641. @click.stop="openScore(w)"
  1642. :class="{
  1643. rightW:
  1644. w.userid == userid || tType == 1 || tType == 4,
  1645. }"
  1646. >
  1647. {{ JSON.parse(w.score).wScore }}分
  1648. </div>
  1649. <div
  1650. class="answerScore"
  1651. @click.stop="openScore(w)"
  1652. v-else-if="courseDetail.userid == userid"
  1653. :class="{
  1654. rightW:
  1655. w.userid == userid || tType == 1 || tType == 4,
  1656. }"
  1657. >
  1658. 评分
  1659. </div>
  1660. <img
  1661. class="deleteImg"
  1662. src="../assets/deleteworks.png"
  1663. v-if="
  1664. w.userid == userid || tType == 1 || tType == 4
  1665. "
  1666. @click.stop="deleteWorks(w.wid)"
  1667. alt
  1668. />
  1669. </div>
  1670. <div class="workImg" v-if="w.type == 3">
  1671. <img
  1672. style="cursor: pointer"
  1673. :src="video"
  1674. @click="openVideo(w)"
  1675. alt
  1676. />
  1677. <div
  1678. class="answerScore"
  1679. v-if="w.score"
  1680. @click.stop="openScore(w)"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. {{ JSON.parse(w.score).wScore }}分
  1687. </div>
  1688. <div
  1689. class="answerScore"
  1690. @click.stop="openScore(w)"
  1691. v-else-if="courseDetail.userid == userid"
  1692. :class="{
  1693. rightW:
  1694. w.userid == userid || tType == 1 || tType == 4,
  1695. }"
  1696. >
  1697. 评分
  1698. </div>
  1699. <img
  1700. class="deleteImg"
  1701. src="../assets/deleteworks.png"
  1702. v-if="
  1703. w.userid == userid || tType == 1 || tType == 4
  1704. "
  1705. @click.stop="deleteWorks(w.wid)"
  1706. alt
  1707. />
  1708. </div>
  1709. <div class="workImg" v-if="w.type == 12">
  1710. <img
  1711. style="cursor: pointer"
  1712. :src="word2"
  1713. @click="downloadFile(w.works,w.userid)"
  1714. alt
  1715. />
  1716. <div
  1717. class="answerScore"
  1718. v-if="w.score"
  1719. @click.stop="openScore(w)"
  1720. :class="{
  1721. rightW:
  1722. w.userid == userid || tType == 1 || tType == 4,
  1723. }"
  1724. >
  1725. {{ JSON.parse(w.score).wScore }}分
  1726. </div>
  1727. <div
  1728. class="answerScore"
  1729. @click.stop="openScore(w)"
  1730. v-else-if="courseDetail.userid == userid"
  1731. :class="{
  1732. rightW:
  1733. w.userid == userid || tType == 1 || tType == 4,
  1734. }"
  1735. >
  1736. 评分
  1737. </div>
  1738. <img
  1739. class="deleteImg"
  1740. src="../assets/deleteworks.png"
  1741. v-if="
  1742. w.userid == userid || tType == 1 || tType == 4
  1743. "
  1744. @click.stop="deleteWorks(w.wid)"
  1745. alt
  1746. />
  1747. </div>
  1748. <div class="worksName">
  1749. <div>{{ w.sName }}</div>
  1750. </div>
  1751. </div>
  1752. </div>
  1753. </div>
  1754. <div
  1755. v-if="
  1756. tType &&
  1757. tType == 2 &&
  1758. !sIsOpen &&
  1759. tool.tool.indexOf(32) != -1
  1760. "
  1761. class="worksBox"
  1762. >
  1763. <div
  1764. class="zuoyeYulan"
  1765. v-if="workStudent[toolIndex].length > 0"
  1766. >
  1767. <span class="worksTitle">作业预览</span>
  1768. </div>
  1769. <div
  1770. class="worksDetailBox"
  1771. v-if="workStudent[toolIndex].length > 0"
  1772. >
  1773. <div
  1774. class="works"
  1775. style="
  1776. width: 200px;
  1777. height: 140px;
  1778. margin: 10px 10px 10px 0;
  1779. box-shadow: 0 0 6px 1px #dfdada;
  1780. "
  1781. v-for="(w, wIndex) in workStudent[toolIndex]"
  1782. :key="wIndex"
  1783. >
  1784. <div class="workImg">
  1785. <img
  1786. :src="word2"
  1787. @click="downloadFile(w.works,w.userid)"
  1788. alt
  1789. />
  1790. <div
  1791. class="answerScore"
  1792. v-if="w.score"
  1793. @click.stop="openScore(w)"
  1794. :class="{
  1795. rightW:
  1796. w.userid == userid || tType == 1 || tType == 4,
  1797. }"
  1798. >
  1799. {{ JSON.parse(w.score).wScore }}分
  1800. </div>
  1801. <div
  1802. class="answerScore"
  1803. @click.stop="openScore(w)"
  1804. v-else-if="courseDetail.userid == userid"
  1805. :class="{
  1806. rightW:
  1807. w.userid == userid || tType == 1 || tType == 4,
  1808. }"
  1809. >
  1810. 评分
  1811. </div>
  1812. <img
  1813. class="deleteImg"
  1814. src="../assets/deleteworks.png"
  1815. v-if="
  1816. w.userid == userid || tType == 1 || tType == 4
  1817. "
  1818. @click.stop="deleteWorks(w.wid)"
  1819. alt
  1820. />
  1821. </div>
  1822. <div class="worksName">
  1823. <div>{{ w.sName }}</div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. </div>
  1828. <div
  1829. v-if="
  1830. tType &&
  1831. tType == 2 &&
  1832. !sIsOpen &&
  1833. tool.tool.indexOf(57) != -1
  1834. "
  1835. class="worksBox"
  1836. >
  1837. <div
  1838. class="zuoyeYulan"
  1839. v-if="workStudent[toolIndex].length > 0"
  1840. >
  1841. <span class="worksTitle">作业预览</span>
  1842. </div>
  1843. <div
  1844. class="worksDetailBox"
  1845. v-if="workStudent[toolIndex].length > 0"
  1846. >
  1847. <div
  1848. class="works"
  1849. style="
  1850. width: 200px;
  1851. height: 140px;
  1852. margin: 10px 10px 10px 0;
  1853. box-shadow: 0 0 6px 1px #dfdada;
  1854. "
  1855. v-for="(w, wIndex) in workStudent[toolIndex]"
  1856. :key="wIndex"
  1857. >
  1858. <div class="workImg">
  1859. <img
  1860. :src="word2"
  1861. @click="downloadFile(w.works,w.userid)"
  1862. v-if="w.type == 12"
  1863. alt
  1864. />
  1865. <img
  1866. :src="word2"
  1867. @click="
  1868. openCocoPi(57, toolIndex, w.userid, w.sName)
  1869. "
  1870. v-else-if="w.type == 15"
  1871. alt
  1872. />
  1873. <div
  1874. class="answerScore"
  1875. v-if="w.score"
  1876. @click.stop="openScore(w)"
  1877. :class="{
  1878. rightW:
  1879. w.userid == userid || tType == 1 || tType == 4,
  1880. }"
  1881. >
  1882. {{ JSON.parse(w.score).wScore }}分
  1883. </div>
  1884. <div
  1885. class="answerScore"
  1886. @click.stop="openScore(w)"
  1887. v-else-if="courseDetail.userid == userid"
  1888. :class="{
  1889. rightW:
  1890. w.userid == userid || tType == 1 || tType == 4,
  1891. }"
  1892. >
  1893. 评分
  1894. </div>
  1895. <img
  1896. class="deleteImg"
  1897. src="../assets/deleteworks.png"
  1898. v-if="
  1899. w.userid == userid || tType == 1 || tType == 4
  1900. "
  1901. @click.stop="deleteWorks(w.wid)"
  1902. alt
  1903. />
  1904. </div>
  1905. <div class="worksName">
  1906. <div>{{ w.sName }}</div>
  1907. </div>
  1908. </div>
  1909. </div>
  1910. </div>
  1911. <div
  1912. v-if="
  1913. tType &&
  1914. tType == 2 &&
  1915. !sIsOpen &&
  1916. tool.tool.indexOf(4) != -1
  1917. "
  1918. class="worksBox"
  1919. >
  1920. <div
  1921. class="zuoyeYulan"
  1922. v-if="workStudent[toolIndex].length > 0"
  1923. >
  1924. <span class="worksTitle">作业预览</span>
  1925. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1926. </div>
  1927. <div
  1928. class="worksDetailBox"
  1929. v-if="workStudent[toolIndex].length > 0"
  1930. >
  1931. <div
  1932. class="isWorksName2"
  1933. v-for="(w, wIndex) in workStudent[toolIndex]"
  1934. :key="wIndex"
  1935. @click="
  1936. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1937. "
  1938. >
  1939. {{ w.sName }}
  1940. <img
  1941. class="deleteImg deleteImg2"
  1942. src="../assets/deleteworks.png"
  1943. v-if="w.userid == userid || tType == 1 || tType == 4"
  1944. @click.stop="deleteWorks(w.wid)"
  1945. alt
  1946. />
  1947. </div>
  1948. <!-- <div
  1949. class="works"
  1950. style="
  1951. width: 200px;
  1952. height: 140px;
  1953. border-radius: 10px;
  1954. box-shadow: 0 0 6px 1px #dfdada;
  1955. overflow: hidden;
  1956. "
  1957. v-for="(w, wIndex) in workStudent[toolIndex]"
  1958. :key="wIndex"
  1959. >
  1960. <div class="workImg">
  1961. <img
  1962. src="../assets/icon/works/noImg.png"
  1963. @click="
  1964. openTools(
  1965. 4,
  1966. toolIndex,
  1967. taskCount,
  1968. w.works,
  1969. w.sName
  1970. )
  1971. "
  1972. alt
  1973. />
  1974. </div>
  1975. <div class="worksName">
  1976. <div>{{ w.sName }}</div>
  1977. <div>{{ w.time }}</div>
  1978. </div>
  1979. </div> -->
  1980. </div>
  1981. </div>
  1982. <div
  1983. v-if="
  1984. tType &&
  1985. ((tType == 2 && sIsOpen == true) ||
  1986. tType == 1 ||
  1987. tType == 4) &&
  1988. tool.tool.indexOf(62) != -1
  1989. "
  1990. class="worksBox"
  1991. >
  1992. <div
  1993. class="zuoyeYulan"
  1994. v-if="
  1995. worksStudent.length &&
  1996. worksStudent[toolIndex].length > 0
  1997. "
  1998. >
  1999. <div class="worksTop">
  2000. <div>作业预览</div>
  2001. <div
  2002. class="corOpen"
  2003. @click="contract(toolIndex)"
  2004. v-if="
  2005. (isCloseList[toolIndex].isCloseBoolean) &&
  2006. isCloseList[toolIndex].isClose == 0
  2007. "
  2008. >
  2009. 折叠
  2010. </div>
  2011. <div
  2012. class="corOpen"
  2013. @click="contract(toolIndex)"
  2014. v-if="isCloseList[toolIndex].isClose == 1"
  2015. >
  2016. 展开
  2017. </div>
  2018. </div>
  2019. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2020. </div>
  2021. <div>
  2022. <div
  2023. :id="'tool-' + toolIndex"
  2024. :style="{
  2025. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2026. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2027. }"
  2028. class="worksDetailBox"
  2029. v-if="
  2030. worksStudent.length &&
  2031. worksStudent[toolIndex].length > 0
  2032. "
  2033. >
  2034. <div
  2035. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2036. :key="wIndex"
  2037. class="isWorksName2"
  2038. @click="
  2039. openTools(
  2040. 62,
  2041. toolIndex,
  2042. taskCount,
  2043. w.works,
  2044. w.sName
  2045. )
  2046. "
  2047. >
  2048. {{ w.sName }}
  2049. <img
  2050. class="deleteImg deleteImg2"
  2051. src="../assets/deleteworks.png"
  2052. v-if="
  2053. w.userid == userid || tType == 1 || tType == 4
  2054. "
  2055. @click.stop="deleteWorks(w.wid)"
  2056. alt
  2057. />
  2058. </div>
  2059. </div>
  2060. </div>
  2061. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2062. 未提交
  2063. </div>
  2064. <div
  2065. class="noWorksS"
  2066. v-if="noWorksS && noWorksS[toolIndex].length"
  2067. >
  2068. <div
  2069. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2070. :key="sIndex"
  2071. class="noWorksName"
  2072. >
  2073. <el-tooltip effect="dark" :content="s.student" placement="top">
  2074. <span>{{ s.student }}</span>
  2075. </el-tooltip>
  2076. </div>
  2077. </div>
  2078. </div>
  2079. <div
  2080. v-if="
  2081. tType &&
  2082. tType == 2 &&
  2083. !sIsOpen &&
  2084. tool.tool.indexOf(62) != -1
  2085. "
  2086. class="worksBox"
  2087. >
  2088. <div
  2089. class="zuoyeYulan"
  2090. v-if="workStudent[toolIndex].length > 0"
  2091. >
  2092. <span class="worksTitle">作业预览</span>
  2093. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2094. </div>
  2095. <div
  2096. class="worksDetailBox"
  2097. v-if="workStudent[toolIndex].length > 0"
  2098. >
  2099. <div
  2100. class="isWorksName2"
  2101. v-for="(w, wIndex) in workStudent[toolIndex]"
  2102. :key="wIndex"
  2103. @click="
  2104. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2105. "
  2106. >
  2107. {{ w.sName }}
  2108. <img
  2109. class="deleteImg deleteImg2"
  2110. src="../assets/deleteworks.png"
  2111. v-if="w.userid == userid || tType == 1 || tType == 4"
  2112. @click.stop="deleteWorks(w.wid)"
  2113. alt
  2114. />
  2115. </div>
  2116. </div>
  2117. </div>
  2118. <div
  2119. v-if="
  2120. tType &&
  2121. tType == 2 &&
  2122. !sIsOpen &&
  2123. tool.tool.indexOf(45) != -1
  2124. "
  2125. class="worksBox"
  2126. >
  2127. <div
  2128. class="zuoyeYulan"
  2129. v-if="workStudent[toolIndex].length > 0"
  2130. >
  2131. <span class="worksTitle">作业预览</span>
  2132. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2133. </div>
  2134. <div
  2135. class="worksDetailBox"
  2136. v-if="workStudent[toolIndex].length > 0"
  2137. >
  2138. <div
  2139. class="isWorksName2"
  2140. v-for="(w, wIndex) in workStudent[toolIndex]"
  2141. :key="wIndex"
  2142. @click="
  2143. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2144. "
  2145. >
  2146. {{ w.sName }}
  2147. <img
  2148. class="deleteImg deleteImg2"
  2149. src="../assets/deleteworks.png"
  2150. v-if="w.userid == userid || tType == 1 || tType == 4"
  2151. @click.stop="deleteWorks(w.wid)"
  2152. alt
  2153. />
  2154. </div>
  2155. </div>
  2156. </div>
  2157. <div
  2158. v-if="
  2159. tType &&
  2160. tType == 2 &&
  2161. !sIsOpen &&
  2162. tool.tool.indexOf(69) != -1
  2163. "
  2164. class="worksBox"
  2165. >
  2166. <div
  2167. class="zuoyeYulan"
  2168. v-if="workStudent[toolIndex].length > 0"
  2169. >
  2170. <span class="worksTitle">作业预览</span>
  2171. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2172. </div>
  2173. <div
  2174. class="worksDetailBox"
  2175. v-if="workStudent[toolIndex].length > 0"
  2176. >
  2177. <div
  2178. class="isWorksName2"
  2179. v-for="(w, wIndex) in workStudent[toolIndex]"
  2180. :key="wIndex"
  2181. @click="
  2182. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2183. "
  2184. >
  2185. {{ w.sName }}
  2186. <img
  2187. class="deleteImg deleteImg2"
  2188. src="../assets/deleteworks.png"
  2189. v-if="w.userid == userid || tType == 1 || tType == 4"
  2190. @click.stop="deleteWorks(w.wid)"
  2191. alt
  2192. />
  2193. </div>
  2194. </div>
  2195. </div>
  2196. <div
  2197. v-if="
  2198. tType &&
  2199. tType == 2 &&
  2200. !sIsOpen &&
  2201. tool.tool.indexOf(15) != -1
  2202. "
  2203. class="worksBox"
  2204. >
  2205. <div
  2206. class="zuoyeYulan"
  2207. v-if="workStudent[toolIndex].length > 0"
  2208. >
  2209. <span class="worksTitle">作业预览</span>
  2210. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2211. </div>
  2212. <div
  2213. class="worksDetailBox"
  2214. v-if="workStudent[toolIndex].length > 0"
  2215. >
  2216. <div
  2217. class="works"
  2218. v-for="(w, wIndex) in workStudent[toolIndex]"
  2219. :key="wIndex"
  2220. >
  2221. <div class="workImg">
  2222. <!-- <img
  2223. src="../assets/icon/works/noImg.png"
  2224. @click="openTools(15, toolIndex, taskCount, w.works)"
  2225. alt=""
  2226. />-->
  2227. <div class="answerBg">
  2228. <!-- <div>{{ w.sName }}</div> -->
  2229. <el-tooltip
  2230. class="item"
  2231. effect="light"
  2232. :content="JSON.parse(w.works)[0].answer"
  2233. placement="top"
  2234. >
  2235. <div class="answerContent">
  2236. {{ JSON.parse(w.works)[0].answer }}
  2237. </div>
  2238. </el-tooltip>
  2239. <div
  2240. class="answerScore"
  2241. v-if="w.score"
  2242. @click.stop="openScore(w)"
  2243. :class="{
  2244. rightW:
  2245. w.userid == userid ||
  2246. tType == 1 ||
  2247. tType == 4,
  2248. }"
  2249. >
  2250. {{ JSON.parse(w.score).wScore }}分
  2251. </div>
  2252. <div
  2253. class="answerScore"
  2254. @click.stop="openScore(w)"
  2255. v-else-if="courseDetail.userid == userid"
  2256. :class="{
  2257. rightW:
  2258. w.userid == userid ||
  2259. tType == 1 ||
  2260. tType == 4,
  2261. }"
  2262. >
  2263. 评分
  2264. </div>
  2265. <img
  2266. class="deleteImg"
  2267. src="../assets/deleteworks.png"
  2268. v-if="
  2269. w.userid == userid || tType == 1 || tType == 4
  2270. "
  2271. @click.stop="deleteWorks(w.wid)"
  2272. alt
  2273. />
  2274. </div>
  2275. <div class="comment">
  2276. <div class="worksName">
  2277. <div>{{ w.sName }}</div>
  2278. </div>
  2279. </div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. <div
  2285. v-if="
  2286. tType &&
  2287. tType == 2 &&
  2288. !sIsOpen &&
  2289. tool.tool.indexOf(1) != -1
  2290. "
  2291. class="worksBox"
  2292. >
  2293. <div
  2294. class="zuoyeYulan"
  2295. v-if="workStudent[toolIndex].length > 0"
  2296. >
  2297. <span class="worksTitle">作业预览</span>
  2298. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2299. </div>
  2300. <div
  2301. class="worksDetailBox"
  2302. v-if="workStudent[toolIndex].length > 0"
  2303. >
  2304. <div
  2305. class="works"
  2306. style="
  2307. width: 200px;
  2308. height: 140px;
  2309. margin: 10px 10px 10px 0;
  2310. box-shadow: 0 0 6px 1px #dfdada;
  2311. "
  2312. v-for="(w, wIndex) in workStudent[toolIndex]"
  2313. :key="wIndex"
  2314. >
  2315. <div class="workImg">
  2316. <img
  2317. :src="w.works"
  2318. @click="previewImg(w.works,w)"
  2319. alt
  2320. />
  2321. <div
  2322. class="answerScore"
  2323. v-if="w.score"
  2324. @click.stop="openScore(w)"
  2325. :class="{
  2326. rightW:
  2327. w.userid == userid || tType == 1 || tType == 4,
  2328. }"
  2329. >
  2330. {{ JSON.parse(w.score).wScore }}分
  2331. </div>
  2332. <div
  2333. class="answerScore"
  2334. @click.stop="openScore(w)"
  2335. v-else-if="courseDetail.userid == userid"
  2336. :class="{
  2337. rightW:
  2338. w.userid == userid || tType == 1 || tType == 4,
  2339. }"
  2340. >
  2341. 评分
  2342. </div>
  2343. <img
  2344. class="deleteImg"
  2345. src="../assets/deleteworks.png"
  2346. v-if="
  2347. w.userid == userid || tType == 1 || tType == 4
  2348. "
  2349. @click.stop="deleteWorks(w.wid)"
  2350. alt
  2351. />
  2352. </div>
  2353. <div class="worksName">
  2354. <div>{{ w.sName }}</div>
  2355. </div>
  2356. </div>
  2357. </div>
  2358. </div>
  2359. <div
  2360. v-if="
  2361. tType &&
  2362. tType == 2 &&
  2363. !sIsOpen &&
  2364. tool.tool.indexOf(3) != -1
  2365. "
  2366. class="worksBox"
  2367. >
  2368. <div
  2369. class="zuoyeYulan"
  2370. v-if="workStudent[toolIndex].length > 0"
  2371. >
  2372. <span class="worksTitle">作业预览</span>
  2373. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2374. </div>
  2375. <div
  2376. class="worksDetailBox"
  2377. v-if="workStudent[toolIndex].length > 0"
  2378. >
  2379. <div
  2380. class="works"
  2381. style="
  2382. width: 200px;
  2383. height: 140px;
  2384. margin: 10px 10px 10px 0;
  2385. box-shadow: 0 0 6px 1px #dfdada;
  2386. "
  2387. v-for="(w, wIndex) in workStudent[toolIndex]"
  2388. :key="wIndex"
  2389. >
  2390. <div class="workImg">
  2391. <img
  2392. :src="w.works"
  2393. @click="previewImg(w.works,w)"
  2394. alt
  2395. />
  2396. <div
  2397. class="answerScore"
  2398. v-if="w.score"
  2399. @click.stop="openScore(w)"
  2400. :class="{
  2401. rightW:
  2402. w.userid == userid || tType == 1 || tType == 4,
  2403. }"
  2404. >
  2405. {{ JSON.parse(w.score).wScore }}分
  2406. </div>
  2407. <div
  2408. class="answerScore"
  2409. @click.stop="openScore(w)"
  2410. v-else-if="courseDetail.userid == userid"
  2411. :class="{
  2412. rightW:
  2413. w.userid == userid || tType == 1 || tType == 4,
  2414. }"
  2415. >
  2416. 评分
  2417. </div>
  2418. <img
  2419. class="deleteImg"
  2420. src="../assets/deleteworks.png"
  2421. v-if="
  2422. w.userid == userid || tType == 1 || tType == 4
  2423. "
  2424. @click.stop="deleteWorks(w.wid)"
  2425. alt
  2426. />
  2427. </div>
  2428. <div class="worksName">
  2429. <div>{{ w.sName }}</div>
  2430. </div>
  2431. </div>
  2432. </div>
  2433. </div>
  2434. <div
  2435. v-if="
  2436. tType &&
  2437. tType == 2 &&
  2438. !sIsOpen &&
  2439. tool.tool.indexOf(6) != -1
  2440. "
  2441. class="worksBox"
  2442. >
  2443. <div
  2444. class="zuoyeYulan"
  2445. v-if="workStudent[toolIndex].length > 0"
  2446. >
  2447. <span class="worksTitle">作业预览</span>
  2448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2449. </div>
  2450. <div
  2451. class="worksDetailBox"
  2452. v-if="workStudent[toolIndex].length > 0"
  2453. >
  2454. <div
  2455. class="works"
  2456. style="
  2457. width: 200px;
  2458. height: 140px;
  2459. margin: 10px 10px 10px 0;
  2460. box-shadow: 0 0 6px 1px #dfdada;
  2461. "
  2462. v-for="(w, wIndex) in workStudent[toolIndex]"
  2463. :key="wIndex"
  2464. >
  2465. <div class="workImg">
  2466. <img
  2467. :src="w.works"
  2468. @click="previewImg(w.works,w)"
  2469. alt
  2470. />
  2471. <div
  2472. class="answerScore"
  2473. v-if="w.score"
  2474. @click.stop="openScore(w)"
  2475. :class="{
  2476. rightW:
  2477. w.userid == userid || tType == 1 || tType == 4,
  2478. }"
  2479. >
  2480. {{ JSON.parse(w.score).wScore }}分
  2481. </div>
  2482. <div
  2483. class="answerScore"
  2484. @click.stop="openScore(w)"
  2485. v-else-if="courseDetail.userid == userid"
  2486. :class="{
  2487. rightW:
  2488. w.userid == userid || tType == 1 || tType == 4,
  2489. }"
  2490. >
  2491. 评分
  2492. </div>
  2493. <img
  2494. class="deleteImg"
  2495. src="../assets/deleteworks.png"
  2496. v-if="
  2497. w.userid == userid || tType == 1 || tType == 4
  2498. "
  2499. @click.stop="deleteWorks(w.wid)"
  2500. alt
  2501. />
  2502. </div>
  2503. <div class="worksName">
  2504. <div>{{ w.sName }}</div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. <div
  2510. v-if="
  2511. tType &&
  2512. tType == 2 &&
  2513. !sIsOpen &&
  2514. tool.tool.indexOf(7) != -1
  2515. "
  2516. class="worksBox"
  2517. >
  2518. <div
  2519. class="zuoyeYulan"
  2520. v-if="workStudent[toolIndex].length > 0"
  2521. >
  2522. <span class="worksTitle">作业预览</span>
  2523. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2524. </div>
  2525. <div
  2526. class="worksDetailBox"
  2527. v-if="workStudent[toolIndex].length > 0"
  2528. >
  2529. <div
  2530. class="works"
  2531. style="
  2532. width: 200px;
  2533. height: 140px;
  2534. margin: 10px 10px 10px 0;
  2535. box-shadow: 0 0 6px 1px #dfdada;
  2536. "
  2537. v-for="(w, wIndex) in workStudent[toolIndex]"
  2538. :key="wIndex"
  2539. >
  2540. <div class="workImg">
  2541. <img
  2542. :src="w.works"
  2543. @click="previewImg(w.works,w)"
  2544. alt
  2545. />
  2546. <div
  2547. class="answerScore"
  2548. v-if="w.score"
  2549. @click.stop="openScore(w)"
  2550. :class="{
  2551. rightW:
  2552. w.userid == userid || tType == 1 || tType == 4,
  2553. }"
  2554. >
  2555. {{ JSON.parse(w.score).wScore }}分
  2556. </div>
  2557. <div
  2558. class="answerScore"
  2559. @click.stop="openScore(w)"
  2560. v-else-if="courseDetail.userid == userid"
  2561. :class="{
  2562. rightW:
  2563. w.userid == userid || tType == 1 || tType == 4,
  2564. }"
  2565. >
  2566. 评分
  2567. </div>
  2568. <img
  2569. class="deleteImg"
  2570. src="../assets/deleteworks.png"
  2571. v-if="
  2572. w.userid == userid || tType == 1 || tType == 4
  2573. "
  2574. @click.stop="deleteWorks(w.wid)"
  2575. alt
  2576. />
  2577. </div>
  2578. <div class="worksName">
  2579. <div>{{ w.sName }}</div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. </div>
  2584. <div
  2585. v-if="
  2586. tType &&
  2587. tType == 2 &&
  2588. !sIsOpen &&
  2589. tool.tool.indexOf(26) != -1
  2590. "
  2591. class="worksBox"
  2592. >
  2593. <div
  2594. class="zuoyeYulan"
  2595. v-if="workStudent[toolIndex].length > 0"
  2596. >
  2597. <span class="worksTitle">作业预览</span>
  2598. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2599. </div>
  2600. <div
  2601. class="worksDetailBox"
  2602. v-if="workStudent[toolIndex].length > 0"
  2603. >
  2604. <div
  2605. class="works"
  2606. style="
  2607. width: 200px;
  2608. height: 140px;
  2609. margin: 10px 10px 10px 0;
  2610. box-shadow: 0 0 6px 1px #dfdada;
  2611. "
  2612. v-for="(w, wIndex) in workStudent[toolIndex]"
  2613. :key="wIndex"
  2614. >
  2615. <div class="workImg">
  2616. <img
  2617. :src="w.works"
  2618. @click="previewImg(w.works,w)"
  2619. alt
  2620. />
  2621. <img
  2622. class="deleteImg"
  2623. src="../assets/deleteworks.png"
  2624. v-if="
  2625. w.userid == userid || tType == 1 || tType == 4
  2626. "
  2627. @click.stop="deleteWorks(w.wid)"
  2628. alt
  2629. />
  2630. </div>
  2631. <div class="worksName">
  2632. <div>{{ w.sName }}</div>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. </div>
  2637. <div
  2638. v-if="
  2639. tType &&
  2640. ((tType == 2 && sIsOpen == true) ||
  2641. tType == 1 ||
  2642. tType == 4) &&
  2643. tool.tool.indexOf(16) != -1
  2644. "
  2645. class="worksBox"
  2646. >
  2647. <div
  2648. class="zuoyeYulan"
  2649. v-if="
  2650. (worksStudent.length &&
  2651. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2652. "
  2653. >
  2654. <div class="worksTop">
  2655. <div>作业预览</div>
  2656. <div
  2657. class="corOpen"
  2658. @click="contract(toolIndex)"
  2659. v-if="
  2660. (isCloseList[toolIndex].isCloseBoolean) &&
  2661. isCloseList[toolIndex].isClose == 0
  2662. "
  2663. >
  2664. 折叠
  2665. </div>
  2666. <div
  2667. class="corOpen"
  2668. @click="contract(toolIndex)"
  2669. v-if="isCloseList[toolIndex].isClose == 1"
  2670. >
  2671. 展开
  2672. </div>
  2673. </div>
  2674. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2675. </div>
  2676. <div
  2677. class="group_workBox"
  2678. v-for="(g, gindex) in courseGroup.group"
  2679. :key="gindex"
  2680. >
  2681. <div class="group_box">
  2682. <div class="group_title">
  2683. <el-tooltip
  2684. class="item"
  2685. effect="light"
  2686. :content="g.name"
  2687. placement="top"
  2688. >
  2689. <div class="group_name">{{ g.name }}</div>
  2690. </el-tooltip>
  2691. </div>
  2692. <div
  2693. class="group_work"
  2694. v-if="
  2695. g.works &&
  2696. g.works.length &&
  2697. g.works[toolIndex].length
  2698. "
  2699. >
  2700. <div
  2701. class="works"
  2702. style="
  2703. width: 200px;
  2704. height: 140px;
  2705. margin: 10px 10px 10px 0;
  2706. border-radius: 15px;
  2707. box-shadow: 0 0 6px 1px #dfdada;
  2708. "
  2709. v-for="(w, wIndex) in g.works[toolIndex]"
  2710. :key="wIndex"
  2711. :class="w.type == 1 ? 'isTypeOne' : ''"
  2712. >
  2713. <div class="workImg" v-if="w.type == 0">
  2714. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2715. <img
  2716. :src="w.works"
  2717. @click="previewImg(w.works,w)"
  2718. alt
  2719. />
  2720. <div
  2721. class="answerScore"
  2722. v-if="w.score"
  2723. @click.stop="openScore(w)"
  2724. :class="{
  2725. rightW:
  2726. w.userid == userid ||
  2727. tType == 1 ||
  2728. tType == 4 ||
  2729. w.ateacher == userid,
  2730. }"
  2731. >
  2732. {{ JSON.parse(w.score).wScore }}分
  2733. </div>
  2734. <div
  2735. class="answerScore"
  2736. @click.stop="openScore(w)"
  2737. v-else-if="courseDetail.userid == userid"
  2738. :class="{
  2739. rightW:
  2740. w.userid == userid ||
  2741. tType == 1 ||
  2742. tType == 4 ||
  2743. w.ateacher == userid,
  2744. }"
  2745. >
  2746. 评分
  2747. </div>
  2748. <img
  2749. class="deleteImg"
  2750. src="../assets/deleteworks.png"
  2751. v-if="
  2752. w.userid == userid || tType == 1 || tType == 4
  2753. "
  2754. @click.stop="deleteWorks(w.wid)"
  2755. alt
  2756. />
  2757. </div>
  2758. <div class="workImg" v-if="w.type == 1">
  2759. <img :src="word" @click="openFile(w.works,w)" alt />
  2760. <!-- @click="openFile(w.works)" -->
  2761. <div
  2762. class="answerScore"
  2763. v-if="w.score"
  2764. @click.stop="openScore(w)"
  2765. :class="{
  2766. rightW:
  2767. w.userid == userid ||
  2768. tType == 1 ||
  2769. tType == 4 ||
  2770. w.ateacher == userid,
  2771. }"
  2772. >
  2773. {{ JSON.parse(w.score).wScore }}分
  2774. </div>
  2775. <div
  2776. class="answerScore"
  2777. @click.stop="openScore(w)"
  2778. v-else-if="courseDetail.userid == userid"
  2779. :class="{
  2780. rightW:
  2781. w.userid == userid ||
  2782. tType == 1 ||
  2783. tType == 4 ||
  2784. w.ateacher == userid,
  2785. }"
  2786. >
  2787. 评分
  2788. </div>
  2789. <img
  2790. class="deleteImg"
  2791. src="../assets/deleteworks.png"
  2792. v-if="
  2793. w.userid == userid || tType == 1 || tType == 4
  2794. "
  2795. @click.stop="deleteWorks(w.wid)"
  2796. alt
  2797. />
  2798. </div>
  2799. <div class="workImg" v-if="w.type == 3">
  2800. <img
  2801. style="cursor: pointer"
  2802. :src="video"
  2803. @click="openVideo(w)"
  2804. alt
  2805. />
  2806. <!-- @click="openVideo(w.works)" -->
  2807. <div
  2808. class="answerScore"
  2809. v-if="w.score"
  2810. @click.stop="openScore(w)"
  2811. :class="{
  2812. rightW:
  2813. w.userid == userid ||
  2814. tType == 1 ||
  2815. tType == 4 ||
  2816. w.ateacher == userid,
  2817. }"
  2818. >
  2819. {{ JSON.parse(w.score).wScore }}分
  2820. </div>
  2821. <div
  2822. class="answerScore"
  2823. @click.stop="openScore(w)"
  2824. v-else-if="courseDetail.userid == userid"
  2825. :class="{
  2826. rightW:
  2827. w.userid == userid ||
  2828. tType == 1 ||
  2829. tType == 4 ||
  2830. w.ateacher == userid,
  2831. }"
  2832. >
  2833. 评分
  2834. </div>
  2835. <img
  2836. class="deleteImg"
  2837. src="../assets/deleteworks.png"
  2838. v-if="
  2839. w.userid == userid || tType == 1 || tType == 4
  2840. "
  2841. @click.stop="deleteWorks(w.wid)"
  2842. alt
  2843. />
  2844. </div>
  2845. <div class="workImg" v-if="w.type == 12">
  2846. <img
  2847. style="cursor: pointer"
  2848. :src="word2"
  2849. @click="downloadFile(w.works,w.userid)"
  2850. alt
  2851. />
  2852. <!-- @click="openVideo(w.works)" -->
  2853. <div
  2854. class="answerScore"
  2855. v-if="w.score"
  2856. @click.stop="openScore(w)"
  2857. :class="{
  2858. rightW:
  2859. w.userid == userid ||
  2860. tType == 1 ||
  2861. tType == 4 ||
  2862. w.ateacher == userid,
  2863. }"
  2864. >
  2865. {{ JSON.parse(w.score).wScore }}分
  2866. </div>
  2867. <div
  2868. class="answerScore"
  2869. @click.stop="openScore(w)"
  2870. v-else-if="courseDetail.userid == userid"
  2871. :class="{
  2872. rightW:
  2873. w.userid == userid ||
  2874. tType == 1 ||
  2875. tType == 4 ||
  2876. w.ateacher == userid,
  2877. }"
  2878. >
  2879. 评分
  2880. </div>
  2881. <img
  2882. class="deleteImg"
  2883. src="../assets/deleteworks.png"
  2884. v-if="
  2885. w.userid == userid || tType == 1 || tType == 4
  2886. "
  2887. @click.stop="deleteWorks(w.wid)"
  2888. alt
  2889. />
  2890. </div>
  2891. <div class="comment" style="min-width: 200px">
  2892. <div class="worksName">
  2893. <div>{{ w.sName }}</div>
  2894. </div>
  2895. <div class="commentList">
  2896. <div class="commentList">
  2897. <div
  2898. class="commentImg"
  2899. @click="
  2900. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2901. "
  2902. >
  2903. <img
  2904. :src="w.isLikes == true ? likes : noLikes"
  2905. alt=""
  2906. />
  2907. </div>
  2908. <div>{{ w.likesCount }}</div>
  2909. </div>
  2910. <div
  2911. class="commentList"
  2912. style="margin-right: 15px"
  2913. >
  2914. <div
  2915. class="commentImg"
  2916. @click="
  2917. commentOther(
  2918. w,
  2919. toolIndex,
  2920. wIndex,
  2921. null,
  2922. g.id
  2923. )
  2924. "
  2925. >
  2926. <img
  2927. src="../assets/icon/comment/comment.png"
  2928. alt=""
  2929. />
  2930. </div>
  2931. <div>{{ w.commentCount }}</div>
  2932. </div>
  2933. </div>
  2934. </div>
  2935. </div>
  2936. </div>
  2937. <div class="group_work" v-else>暂无提交作业</div>
  2938. </div>
  2939. </div>
  2940. <div
  2941. :id="'tool-' + toolIndex"
  2942. :style="{
  2943. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2944. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2945. }"
  2946. class="worksDetailBox"
  2947. v-if="
  2948. worksStudent.length &&
  2949. worksStudent[toolIndex].length > 0
  2950. "
  2951. >
  2952. <div
  2953. class="works"
  2954. style="
  2955. width: 200px;
  2956. height: 140px;
  2957. margin: 10px 10px 10px 0;
  2958. border-radius: 15px;
  2959. box-shadow: 0 0 6px 1px #dfdada;
  2960. "
  2961. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2962. :key="wIndex"
  2963. :class="w.type == 1 ? 'isTypeOne' : ''"
  2964. >
  2965. <div class="workImg" v-if="w.type == 0">
  2966. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2967. <img
  2968. :src="w.works"
  2969. @click="previewImg(w.works,w)"
  2970. alt
  2971. />
  2972. <div
  2973. class="answerScore"
  2974. v-if="w.score"
  2975. @click.stop="openScore(w)"
  2976. :class="{
  2977. rightW:
  2978. w.userid == userid ||
  2979. tType == 1 ||
  2980. tType == 4 ||
  2981. w.ateacher == userid,
  2982. }"
  2983. >
  2984. {{ JSON.parse(w.score).wScore }}分
  2985. </div>
  2986. <div
  2987. class="answerScore"
  2988. @click.stop="openScore(w)"
  2989. v-else-if="courseDetail.userid == userid"
  2990. :class="{
  2991. rightW:
  2992. w.userid == userid ||
  2993. tType == 1 ||
  2994. tType == 4 ||
  2995. w.ateacher == userid,
  2996. }"
  2997. >
  2998. 评分
  2999. </div>
  3000. <img
  3001. class="deleteImg"
  3002. src="../assets/deleteworks.png"
  3003. v-if="
  3004. w.userid == userid || tType == 1 || tType == 4
  3005. "
  3006. @click.stop="deleteWorks(w.wid)"
  3007. alt
  3008. />
  3009. </div>
  3010. <div class="workImg" v-if="w.type == 1">
  3011. <img :src="word" @click="openFile(w.works,w)" alt />
  3012. <!-- @click="openFile(w.works)" -->
  3013. <div
  3014. class="answerScore"
  3015. v-if="w.score"
  3016. @click.stop="openScore(w)"
  3017. :class="{
  3018. rightW:
  3019. w.userid == userid ||
  3020. tType == 1 ||
  3021. tType == 4 ||
  3022. w.ateacher == userid,
  3023. }"
  3024. >
  3025. {{ JSON.parse(w.score).wScore }}分
  3026. </div>
  3027. <div
  3028. class="answerScore"
  3029. @click.stop="openScore(w)"
  3030. v-else-if="courseDetail.userid == userid"
  3031. :class="{
  3032. rightW:
  3033. w.userid == userid ||
  3034. tType == 1 ||
  3035. tType == 4 ||
  3036. w.ateacher == userid,
  3037. }"
  3038. >
  3039. 评分
  3040. </div>
  3041. <img
  3042. class="deleteImg"
  3043. src="../assets/deleteworks.png"
  3044. v-if="
  3045. w.userid == userid || tType == 1 || tType == 4
  3046. "
  3047. @click.stop="deleteWorks(w.wid)"
  3048. alt
  3049. />
  3050. </div>
  3051. <div class="workImg" v-if="w.type == 3">
  3052. <img
  3053. style="cursor: pointer"
  3054. :src="video"
  3055. @click="openVideo(w)"
  3056. alt
  3057. />
  3058. <!-- @click="openVideo(w.works)" -->
  3059. <div
  3060. class="answerScore"
  3061. v-if="w.score"
  3062. @click.stop="openScore(w)"
  3063. :class="{
  3064. rightW:
  3065. w.userid == userid ||
  3066. tType == 1 ||
  3067. tType == 4 ||
  3068. w.ateacher == userid,
  3069. }"
  3070. >
  3071. {{ JSON.parse(w.score).wScore }}分
  3072. </div>
  3073. <div
  3074. class="answerScore"
  3075. @click.stop="openScore(w)"
  3076. v-else-if="courseDetail.userid == userid"
  3077. :class="{
  3078. rightW:
  3079. w.userid == userid ||
  3080. tType == 1 ||
  3081. tType == 4 ||
  3082. w.ateacher == userid,
  3083. }"
  3084. >
  3085. 评分
  3086. </div>
  3087. <img
  3088. class="deleteImg"
  3089. src="../assets/deleteworks.png"
  3090. v-if="
  3091. w.userid == userid || tType == 1 || tType == 4
  3092. "
  3093. @click.stop="deleteWorks(w.wid)"
  3094. alt
  3095. />
  3096. </div>
  3097. <div class="workImg" v-if="w.type == 12">
  3098. <img
  3099. style="cursor: pointer"
  3100. :src="word2"
  3101. @click="downloadFile(w.works,w.userid)"
  3102. alt
  3103. />
  3104. <!-- @click="openVideo(w.works)" -->
  3105. <div
  3106. class="answerScore"
  3107. v-if="w.score"
  3108. @click.stop="openScore(w)"
  3109. :class="{
  3110. rightW:
  3111. w.userid == userid ||
  3112. tType == 1 ||
  3113. tType == 4 ||
  3114. w.ateacher == userid,
  3115. }"
  3116. >
  3117. {{ JSON.parse(w.score).wScore }}分
  3118. </div>
  3119. <div
  3120. class="answerScore"
  3121. @click.stop="openScore(w)"
  3122. v-else-if="courseDetail.userid == userid"
  3123. :class="{
  3124. rightW:
  3125. w.userid == userid ||
  3126. tType == 1 ||
  3127. tType == 4 ||
  3128. w.ateacher == userid,
  3129. }"
  3130. >
  3131. 评分
  3132. </div>
  3133. <img
  3134. class="deleteImg"
  3135. src="../assets/deleteworks.png"
  3136. v-if="
  3137. w.userid == userid || tType == 1 || tType == 4
  3138. "
  3139. @click.stop="deleteWorks(w.wid)"
  3140. alt
  3141. />
  3142. </div>
  3143. <div class="comment" style="min-width: 200px">
  3144. <div class="worksName">
  3145. <div>{{ w.sName }}</div>
  3146. </div>
  3147. <div class="commentList">
  3148. <div class="commentList">
  3149. <div
  3150. class="commentImg"
  3151. @click="
  3152. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3153. "
  3154. >
  3155. <img
  3156. :src="w.isLikes == true ? likes : noLikes"
  3157. alt=""
  3158. />
  3159. </div>
  3160. <div>{{ w.likesCount }}</div>
  3161. </div>
  3162. <div class="commentList" style="margin-right: 15px">
  3163. <div
  3164. class="commentImg"
  3165. @click="commentOther(w, toolIndex, wIndex)"
  3166. >
  3167. <img
  3168. src="../assets/icon/comment/comment.png"
  3169. alt=""
  3170. />
  3171. </div>
  3172. <div>{{ w.commentCount }}</div>
  3173. </div>
  3174. </div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3179. 未提交
  3180. </div>
  3181. <div
  3182. class="noWorksS"
  3183. v-if="noWorksS && noWorksS[toolIndex].length"
  3184. >
  3185. <div
  3186. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3187. :key="sIndex"
  3188. class="noWorksName"
  3189. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3190. >
  3191. <el-tooltip effect="dark" :content="s.student" placement="top">
  3192. <span>{{ s.student }}</span>
  3193. </el-tooltip>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. <div
  3198. v-if="
  3199. tType &&
  3200. ((tType == 2 && sIsOpen == true) ||
  3201. tType == 1 ||
  3202. tType == 4) &&
  3203. tool.tool.indexOf(70) != -1
  3204. "
  3205. class="worksBox"
  3206. >
  3207. <div
  3208. class="zuoyeYulan"
  3209. v-if="
  3210. (worksStudent.length &&
  3211. worksStudent[toolIndex].length > 0)
  3212. "
  3213. >
  3214. <div class="worksTop">
  3215. <div>作业预览</div>
  3216. <div
  3217. class="corOpen"
  3218. @click="contract(toolIndex)"
  3219. v-if="
  3220. (isCloseList[toolIndex].isCloseBoolean) &&
  3221. isCloseList[toolIndex].isClose == 0
  3222. "
  3223. >
  3224. 折叠
  3225. </div>
  3226. <div
  3227. class="corOpen"
  3228. @click="contract(toolIndex)"
  3229. v-if="isCloseList[toolIndex].isClose == 1"
  3230. >
  3231. 展开
  3232. </div>
  3233. </div>
  3234. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3235. </div>
  3236. <div
  3237. :id="'tool-' + toolIndex"
  3238. :style="{
  3239. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3240. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3241. }"
  3242. class="worksDetailBox"
  3243. v-if="
  3244. worksStudent.length &&
  3245. worksStudent[toolIndex].length > 0
  3246. "
  3247. >
  3248. <div
  3249. class="works"
  3250. style="
  3251. width: 200px;
  3252. height: 140px;
  3253. margin: 10px 10px 10px 0;
  3254. border-radius: 15px;
  3255. box-shadow: 0 0 6px 1px #dfdada;
  3256. "
  3257. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3258. :key="wIndex"
  3259. :class="w.type == 1 ? 'isTypeOne' : ''"
  3260. >
  3261. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3262. <img :src="word" alt />
  3263. <img
  3264. class="deleteImg"
  3265. src="../assets/deleteworks.png"
  3266. v-if="
  3267. w.userid == userid || tType == 1 || tType == 4
  3268. "
  3269. @click.stop="deleteWorks(w.wid)"
  3270. alt
  3271. />
  3272. </div>
  3273. <div class="comment" style="min-width: 200px">
  3274. <div class="worksName">
  3275. <div>{{ w.sName }}</div>
  3276. </div>
  3277. </div>
  3278. </div>
  3279. </div>
  3280. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3281. 未提交
  3282. </div>
  3283. <div
  3284. class="noWorksS"
  3285. v-if="noWorksS && noWorksS[toolIndex].length"
  3286. >
  3287. <div
  3288. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3289. :key="sIndex"
  3290. class="noWorksName"
  3291. >
  3292. <el-tooltip effect="dark" :content="s.student" placement="top">
  3293. <span>{{ s.student }}</span>
  3294. </el-tooltip>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. <div
  3299. v-if="
  3300. tType &&
  3301. tType == 2 &&
  3302. !sIsOpen &&
  3303. tool.tool.indexOf(70) != -1
  3304. "
  3305. class="worksBox"
  3306. >
  3307. <div
  3308. class="zuoyeYulan"
  3309. v-if="workStudent[toolIndex].length > 0"
  3310. >
  3311. <span class="worksTitle">作业预览</span>
  3312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3313. </div>
  3314. <div
  3315. class="worksDetailBox"
  3316. v-if="workStudent[toolIndex].length > 0"
  3317. >
  3318. <div
  3319. class="works"
  3320. style="
  3321. width: 200px;
  3322. height: 140px;
  3323. margin: 10px 10px 10px 0;
  3324. box-shadow: 0 0 6px 1px #dfdada;
  3325. "
  3326. v-for="(w, wIndex) in workStudent[toolIndex]"
  3327. :key="wIndex"
  3328. >
  3329. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3330. <img :src="word" alt />
  3331. <img
  3332. class="deleteImg"
  3333. src="../assets/deleteworks.png"
  3334. v-if="
  3335. w.userid == userid || tType == 1 || tType == 4
  3336. "
  3337. @click.stop="deleteWorks(w.wid)"
  3338. alt
  3339. />
  3340. </div>
  3341. <div class="worksName">
  3342. <div>{{ w.sName }}</div>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. </div>
  3347. <div
  3348. v-if="
  3349. tType &&
  3350. ((tType == 2 && sIsOpen == true) ||
  3351. tType == 1 ||
  3352. tType == 4) &&
  3353. tool.tool.indexOf(32) != -1
  3354. "
  3355. class="worksBox"
  3356. >
  3357. <div
  3358. class="zuoyeYulan"
  3359. v-if="
  3360. worksStudent.length &&
  3361. worksStudent[toolIndex].length > 0
  3362. "
  3363. >
  3364. <div class="worksTop">
  3365. <div>作业预览</div>
  3366. <div
  3367. class="corOpen"
  3368. @click="contract(toolIndex)"
  3369. v-if="
  3370. (isCloseList[toolIndex].isCloseBoolean) &&
  3371. isCloseList[toolIndex].isClose == 0
  3372. "
  3373. >
  3374. 折叠
  3375. </div>
  3376. <div
  3377. class="corOpen"
  3378. @click="contract(toolIndex)"
  3379. v-if="isCloseList[toolIndex].isClose == 1"
  3380. >
  3381. 展开
  3382. </div>
  3383. </div>
  3384. </div>
  3385. <div
  3386. :id="'tool-' + toolIndex"
  3387. class="worksDetailBox"
  3388. :style="{
  3389. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3390. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3391. }"
  3392. v-if="
  3393. worksStudent.length &&
  3394. worksStudent[toolIndex].length > 0
  3395. "
  3396. >
  3397. <div
  3398. class="works"
  3399. style="
  3400. width: 200px;
  3401. height: 140px;
  3402. margin: 10px 10px 10px 0;
  3403. border-radius: 15px;
  3404. box-shadow: 0 0 6px 1px #dfdada;
  3405. "
  3406. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3407. :key="wIndex"
  3408. :class="w.type == 1 ? 'isTypeOne' : ''"
  3409. >
  3410. <div class="workImg">
  3411. <img
  3412. :src="word2"
  3413. @click="downloadFile(w.works,w.userid)"
  3414. alt
  3415. />
  3416. <div
  3417. class="answerScore"
  3418. v-if="w.score"
  3419. @click.stop="openScore(w)"
  3420. :class="{
  3421. rightW:
  3422. w.userid == userid ||
  3423. tType == 1 ||
  3424. tType == 4 ||
  3425. w.ateacher == userid,
  3426. }"
  3427. >
  3428. {{ JSON.parse(w.score).wScore }}分
  3429. </div>
  3430. <div
  3431. class="answerScore"
  3432. @click.stop="openScore(w)"
  3433. v-else-if="courseDetail.userid == userid"
  3434. :class="{
  3435. rightW:
  3436. w.userid == userid ||
  3437. tType == 1 ||
  3438. tType == 4 ||
  3439. w.ateacher == userid,
  3440. }"
  3441. >
  3442. 评分
  3443. </div>
  3444. <img
  3445. class="deleteImg"
  3446. src="../assets/deleteworks.png"
  3447. v-if="
  3448. w.userid == userid || tType == 1 || tType == 4
  3449. "
  3450. @click.stop="deleteWorks(w.wid)"
  3451. alt
  3452. />
  3453. </div>
  3454. <div class="comment" style="min-width: 200px">
  3455. <div class="worksName">
  3456. <div>{{ w.sName }}</div>
  3457. </div>
  3458. <div class="commentList">
  3459. <div class="commentList">
  3460. <div
  3461. class="commentImg"
  3462. @click="
  3463. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3464. "
  3465. >
  3466. <img
  3467. :src="w.isLikes == true ? likes : noLikes"
  3468. alt=""
  3469. />
  3470. </div>
  3471. <div>{{ w.likesCount }}</div>
  3472. </div>
  3473. <div class="commentList" style="margin-right: 15px">
  3474. <div
  3475. class="commentImg"
  3476. @click="commentOther(w, toolIndex, wIndex)"
  3477. >
  3478. <img
  3479. src="../assets/icon/comment/comment.png"
  3480. alt=""
  3481. />
  3482. </div>
  3483. <div>{{ w.commentCount }}</div>
  3484. </div>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3490. 未提交
  3491. </div>
  3492. <div
  3493. class="noWorksS"
  3494. v-if="noWorksS && noWorksS[toolIndex].length"
  3495. >
  3496. <div
  3497. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3498. :key="sIndex"
  3499. class="noWorksName"
  3500. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3501. >
  3502. <el-tooltip effect="dark" :content="s.student" placement="top">
  3503. <span>{{ s.student }}</span>
  3504. </el-tooltip>
  3505. </div>
  3506. </div>
  3507. </div>
  3508. <div
  3509. v-if="
  3510. tType &&
  3511. ((tType == 2 && sIsOpen == true) ||
  3512. tType == 1 ||
  3513. tType == 4) &&
  3514. tool.tool.indexOf(57) != -1
  3515. "
  3516. class="worksBox"
  3517. >
  3518. <div
  3519. class="zuoyeYulan"
  3520. v-if="
  3521. worksStudent.length &&
  3522. worksStudent[toolIndex].length > 0
  3523. "
  3524. >
  3525. <div class="worksTop">
  3526. <div>作业预览</div>
  3527. <div
  3528. class="corOpen"
  3529. @click="contract(toolIndex)"
  3530. v-if="
  3531. (isCloseList[toolIndex].isCloseBoolean) &&
  3532. isCloseList[toolIndex].isClose == 0
  3533. "
  3534. >
  3535. 折叠
  3536. </div>
  3537. <div
  3538. class="corOpen"
  3539. @click="contract(toolIndex)"
  3540. v-if="isCloseList[toolIndex].isClose == 1"
  3541. >
  3542. 展开
  3543. </div>
  3544. </div>
  3545. </div>
  3546. <div
  3547. :id="'tool-' + toolIndex"
  3548. class="worksDetailBox"
  3549. :style="{
  3550. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3551. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3552. }"
  3553. v-if="
  3554. worksStudent.length &&
  3555. worksStudent[toolIndex].length > 0
  3556. "
  3557. >
  3558. <div
  3559. class="works"
  3560. style="
  3561. width: 200px;
  3562. height: 140px;
  3563. margin: 10px 10px 10px 0;
  3564. border-radius: 15px;
  3565. box-shadow: 0 0 6px 1px #dfdada;
  3566. "
  3567. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3568. :key="wIndex"
  3569. :class="w.type == 1 ? 'isTypeOne' : ''"
  3570. >
  3571. <div class="workImg">
  3572. <img
  3573. :src="word2"
  3574. @click="downloadFile(w.works,w.userid)"
  3575. v-if="w.type == 12"
  3576. alt
  3577. />
  3578. <img
  3579. :src="word2"
  3580. @click="
  3581. openCocoPi(57, toolIndex, w.userid, w.sName)
  3582. "
  3583. v-else-if="w.type == 15"
  3584. alt
  3585. />
  3586. <div
  3587. class="answerScore"
  3588. v-if="w.score"
  3589. @click.stop="openScore(w)"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. {{ JSON.parse(w.score).wScore }}分
  3599. </div>
  3600. <div
  3601. class="answerScore"
  3602. @click.stop="openScore(w)"
  3603. v-else-if="courseDetail.userid == userid"
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid,
  3610. }"
  3611. >
  3612. 评分
  3613. </div>
  3614. <img
  3615. class="deleteImg"
  3616. src="../assets/deleteworks.png"
  3617. v-if="
  3618. w.userid == userid || tType == 1 || tType == 4
  3619. "
  3620. @click.stop="deleteWorks(w.wid)"
  3621. alt
  3622. />
  3623. </div>
  3624. <div class="comment" style="min-width: 200px">
  3625. <div class="worksName">
  3626. <div>{{ w.sName }}</div>
  3627. </div>
  3628. <div class="commentList">
  3629. <div class="commentList">
  3630. <div
  3631. class="commentImg"
  3632. @click="
  3633. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3634. "
  3635. >
  3636. <img
  3637. :src="w.isLikes == true ? likes : noLikes"
  3638. alt=""
  3639. />
  3640. </div>
  3641. <div>{{ w.likesCount }}</div>
  3642. </div>
  3643. <div class="commentList" style="margin-right: 15px">
  3644. <div
  3645. class="commentImg"
  3646. @click="commentOther(w, toolIndex, wIndex)"
  3647. >
  3648. <img
  3649. src="../assets/icon/comment/comment.png"
  3650. alt=""
  3651. />
  3652. </div>
  3653. <div>{{ w.commentCount }}</div>
  3654. </div>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3660. 未提交
  3661. </div>
  3662. <div
  3663. class="noWorksS"
  3664. v-if="noWorksS && noWorksS[toolIndex].length"
  3665. >
  3666. <div
  3667. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3668. :key="sIndex"
  3669. class="noWorksName"
  3670. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3671. >
  3672. <el-tooltip effect="dark" :content="s.student" placement="top">
  3673. <span>{{ s.student }}</span>
  3674. </el-tooltip>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. <div
  3679. v-if="
  3680. tType &&
  3681. ((tType == 2 && sIsOpen == true) ||
  3682. tType == 1 ||
  3683. tType == 4) &&
  3684. tool.tool.indexOf(72) != -1
  3685. "
  3686. class="worksBox"
  3687. >
  3688. <div
  3689. class="zuoyeYulan"
  3690. v-if="
  3691. worksStudent.length &&
  3692. worksStudent[toolIndex].length > 0
  3693. "
  3694. >
  3695. <div class="worksTop">
  3696. <div>作业预览</div>
  3697. <div
  3698. class="corOpen"
  3699. @click="contract(toolIndex)"
  3700. v-if="
  3701. isCloseList[toolIndex].isCloseBoolean &&
  3702. isCloseList[toolIndex].isClose == 0
  3703. "
  3704. >
  3705. 折叠
  3706. </div>
  3707. <div
  3708. class="corOpen"
  3709. @click="contract(toolIndex)"
  3710. v-if="isCloseList[toolIndex].isClose == 1"
  3711. >
  3712. 展开
  3713. </div>
  3714. </div>
  3715. </div>
  3716. <div
  3717. :id="'tool-' + toolIndex"
  3718. :style="{
  3719. height:
  3720. isCloseList[toolIndex].isClose == 1
  3721. ? retrnToolHeight('tool-' + toolIndex)
  3722. : 'auto',
  3723. overflow:
  3724. isCloseList[toolIndex].isClose == 1
  3725. ? 'hidden'
  3726. : 'unset'
  3727. }"
  3728. class="worksDetailBox"
  3729. v-if="
  3730. worksStudent.length &&
  3731. worksStudent[toolIndex].length > 0
  3732. "
  3733. >
  3734. <div
  3735. class="works"
  3736. style="
  3737. width: 200px;
  3738. height: 140px;
  3739. margin: 10px 10px 10px 0;
  3740. border-radius: 15px;
  3741. box-shadow: 0 0 6px 1px #dfdada;
  3742. "
  3743. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3744. :key="wIndex"
  3745. :class="w.type == 1 ? 'isTypeOne' : ''"
  3746. >
  3747. <div class="workImg">
  3748. <!-- <img
  3749. :src="word2"
  3750. @click="downloadFile(w.works)"
  3751. v-if="w.type == 12"
  3752. alt
  3753. /> -->
  3754. <img
  3755. :src="word2"
  3756. @click="
  3757. openCocoFlow(w)
  3758. "
  3759. alt
  3760. />
  3761. <div
  3762. class="answerScore"
  3763. v-if="w.score"
  3764. @click.stop="openScore(w)"
  3765. :class="{
  3766. rightW:
  3767. w.userid == userid ||
  3768. tType == 1 ||
  3769. tType == 4 ||
  3770. w.ateacher == userid
  3771. }"
  3772. >
  3773. {{ JSON.parse(w.score).wScore }}分
  3774. </div>
  3775. <div
  3776. class="answerScore"
  3777. @click.stop="openScore(w)"
  3778. v-else-if="
  3779. courseDetail.userid == userid &&
  3780. courseDetail.state != 5 &&
  3781. chapInfoList[courseType].chapterInfo[0]
  3782. .taskJson[taskCount].eList &&
  3783. chapInfoList[courseType].chapterInfo[0]
  3784. .taskJson[taskCount].eList.length
  3785. "
  3786. :class="{
  3787. rightW:
  3788. w.userid == userid ||
  3789. tType == 1 ||
  3790. tType == 4 ||
  3791. w.ateacher == userid
  3792. }"
  3793. >
  3794. 评分
  3795. </div>
  3796. <img
  3797. class="deleteImg"
  3798. src="../assets/deleteworks.png"
  3799. v-if="
  3800. w.userid == userid || tType == 1 || tType == 4
  3801. "
  3802. @click.stop="deleteWorks(w.wid)"
  3803. alt
  3804. />
  3805. </div>
  3806. <div class="comment" style="min-width: 200px">
  3807. <div class="worksName">
  3808. <div>{{ w.sName }}</div>
  3809. </div>
  3810. <div class="commentList">
  3811. <div class="commentList">
  3812. <div
  3813. class="commentImg"
  3814. @click="
  3815. isLikes(
  3816. w.wid,
  3817. userid,
  3818. 1,
  3819. null,
  3820. w.isLikes,
  3821. w.sName
  3822. )
  3823. "
  3824. >
  3825. <img
  3826. :src="w.isLikes == true ? likes : noLikes"
  3827. alt=""
  3828. />
  3829. </div>
  3830. <div>{{ w.likesCount }}</div>
  3831. </div>
  3832. <div class="commentList" style="margin-right: 15px">
  3833. <div
  3834. class="commentImg"
  3835. @click="commentOther(w, toolIndex, wIndex)"
  3836. >
  3837. <img
  3838. src="../assets/icon/comment/comment.png"
  3839. alt=""
  3840. />
  3841. </div>
  3842. <div>{{ w.commentCount }}</div>
  3843. </div>
  3844. </div>
  3845. </div>
  3846. </div>
  3847. </div>
  3848. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3849. 未提交
  3850. </div>
  3851. <div
  3852. class="noWorksS"
  3853. v-if="noWorksS && noWorksS[toolIndex].length"
  3854. >
  3855. <div
  3856. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3857. :key="sIndex"
  3858. class="noWorksName2"
  3859. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3860. >
  3861. <el-tooltip
  3862. effect="dark"
  3863. :content="s.student"
  3864. placement="top"
  3865. >
  3866. <span>{{ s.student }}</span>
  3867. </el-tooltip>
  3868. </div>
  3869. </div>
  3870. </div>
  3871. <div
  3872. v-if="
  3873. tType &&
  3874. tType == 2 &&
  3875. !sIsOpen &&
  3876. tool.tool.indexOf(72) != -1
  3877. "
  3878. class="worksBox"
  3879. >
  3880. <div
  3881. class="zuoyeYulan"
  3882. v-if="workStudent[toolIndex].length > 0"
  3883. >
  3884. <span class="worksTitle">作业预览</span>
  3885. </div>
  3886. <div
  3887. class="worksDetailBox"
  3888. v-if="workStudent[toolIndex].length > 0"
  3889. >
  3890. <div
  3891. class="works"
  3892. style="
  3893. width: 200px;
  3894. height: 140px;
  3895. margin: 10px 10px 10px 0;
  3896. box-shadow: 0 0 6px 1px #dfdada;
  3897. "
  3898. v-for="(w, wIndex) in workStudent[toolIndex]"
  3899. :key="wIndex"
  3900. >
  3901. <div class="workImg">
  3902. <!-- <img
  3903. :src="word2"
  3904. @click="downloadFile(w.works)"
  3905. v-if="w.type == 12"
  3906. alt
  3907. /> -->
  3908. <img
  3909. :src="word2"
  3910. @click="
  3911. openCocoFlow(w)
  3912. "
  3913. alt
  3914. />
  3915. <div
  3916. class="answerScore"
  3917. v-if="w.score"
  3918. @click.stop="openScore(w)"
  3919. :class="{
  3920. rightW:
  3921. w.userid == userid || tType == 1 || tType == 4
  3922. }"
  3923. >
  3924. {{ JSON.parse(w.score).wScore }}分
  3925. </div>
  3926. <div
  3927. class="answerScore"
  3928. @click.stop="openScore(w)"
  3929. v-else-if="courseDetail.userid == userid"
  3930. :class="{
  3931. rightW:
  3932. w.userid == userid || tType == 1 || tType == 4
  3933. }"
  3934. >
  3935. 评分
  3936. </div>
  3937. <img
  3938. class="deleteImg"
  3939. src="../assets/deleteworks.png"
  3940. v-if="
  3941. w.userid == userid || tType == 1 || tType == 4
  3942. "
  3943. @click.stop="deleteWorks(w.wid)"
  3944. alt
  3945. />
  3946. </div>
  3947. <div class="worksName">
  3948. <div>{{ w.sName }}</div>
  3949. </div>
  3950. </div>
  3951. </div>
  3952. </div>
  3953. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3954. <div
  3955. class="zuoyeYulan"
  3956. v-if="
  3957. worksStudent.length &&
  3958. worksStudent[toolIndex].length > 0
  3959. "
  3960. >
  3961. <span class="worksTitle">作业预览</span>
  3962. <div
  3963. class="corOpen"
  3964. @click="contract(toolIndex)"
  3965. v-if="
  3966. (isCloseList[toolIndex].isCloseBoolean) &&
  3967. isCloseList[toolIndex].isClose == 0
  3968. "
  3969. >
  3970. 折叠
  3971. </div>
  3972. <div
  3973. class="corOpen"
  3974. @click="contract(toolIndex)"
  3975. v-if="isCloseList[toolIndex].isClose == 1"
  3976. >
  3977. 展开
  3978. </div>
  3979. </div>
  3980. <div
  3981. :id="'tool-' + toolIndex"
  3982. :style="{
  3983. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3984. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3985. }"
  3986. class="worksDetailBox"
  3987. v-if="
  3988. worksStudent.length &&
  3989. worksStudent[toolIndex].length > 0
  3990. "
  3991. >
  3992. <div
  3993. class="works"
  3994. style="
  3995. width: 200px;
  3996. height: 140px;
  3997. margin: 10px 10px 10px 0;
  3998. border-radius: 15px;
  3999. box-shadow: 0 0 6px 1px #dfdada;
  4000. "
  4001. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4002. :key="wIndex"
  4003. :class="w.type == 1 ? 'isTypeOne' : ''"
  4004. >
  4005. <div class="workImg" v-if="w.type == 0">
  4006. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4007. <img
  4008. :src="w.works"
  4009. @click="previewImg(w.works,w)"
  4010. alt
  4011. />
  4012. <div
  4013. class="answerScore"
  4014. v-if="w.score"
  4015. @click.stop="openScore(w)"
  4016. :class="{
  4017. rightW:
  4018. w.userid == userid ||
  4019. tType == 1 ||
  4020. tType == 4 ||
  4021. w.ateacher == userid,
  4022. }"
  4023. >
  4024. {{ JSON.parse(w.score).wScore }}分
  4025. </div>
  4026. <div
  4027. class="answerScore"
  4028. @click.stop="openScore(w)"
  4029. v-else-if="courseDetail.userid == userid"
  4030. :class="{
  4031. rightW:
  4032. w.userid == userid ||
  4033. tType == 1 ||
  4034. tType == 4 ||
  4035. w.ateacher == userid,
  4036. }"
  4037. >
  4038. 评分
  4039. </div>
  4040. <img
  4041. class="deleteImg"
  4042. src="../assets/deleteworks.png"
  4043. v-if="
  4044. w.userid == userid || tType == 1 || tType == 4
  4045. "
  4046. @click.stop="deleteWorks(w.wid)"
  4047. alt
  4048. />
  4049. </div>
  4050. <div
  4051. class="workImg"
  4052. style="cursor: pointer"
  4053. v-if="w.type == 1"
  4054. >
  4055. <img :src="word" @click="openFile(w.works,w)" alt />
  4056. <!-- @click="openFile(w.works)" -->
  4057. <div
  4058. class="answerScore"
  4059. v-if="w.score"
  4060. @click.stop="openScore(w)"
  4061. :class="{
  4062. rightW:
  4063. w.userid == userid ||
  4064. tType == 1 ||
  4065. tType == 4 ||
  4066. w.ateacher == userid,
  4067. }"
  4068. >
  4069. {{ JSON.parse(w.score).wScore }}分
  4070. </div>
  4071. <div
  4072. class="answerScore"
  4073. @click.stop="openScore(w)"
  4074. v-else-if="courseDetail.userid == userid"
  4075. :class="{
  4076. rightW:
  4077. w.userid == userid ||
  4078. tType == 1 ||
  4079. tType == 4 ||
  4080. w.ateacher == userid,
  4081. }"
  4082. >
  4083. 评分
  4084. </div>
  4085. <img
  4086. class="deleteImg"
  4087. src="../assets/deleteworks.png"
  4088. v-if="
  4089. w.userid == userid || tType == 1 || tType == 4
  4090. "
  4091. @click.stop="deleteWorks(w.wid)"
  4092. alt
  4093. />
  4094. </div>
  4095. <div class="workImg" v-if="w.type == 3">
  4096. <img
  4097. style="cursor: pointer"
  4098. :src="video"
  4099. @click="openVideo(w)"
  4100. alt
  4101. />
  4102. <!-- @click="openVideo(w.works)" -->
  4103. <div
  4104. class="answerScore"
  4105. v-if="w.score"
  4106. @click.stop="openScore(w)"
  4107. :class="{
  4108. rightW:
  4109. w.userid == userid ||
  4110. tType == 1 ||
  4111. tType == 4 ||
  4112. w.ateacher == userid,
  4113. }"
  4114. >
  4115. {{ JSON.parse(w.score).wScore }}分
  4116. </div>
  4117. <div
  4118. class="answerScore"
  4119. @click.stop="openScore(w)"
  4120. v-else-if="courseDetail.userid == userid"
  4121. :class="{
  4122. rightW:
  4123. w.userid == userid ||
  4124. tType == 1 ||
  4125. tType == 4 ||
  4126. w.ateacher == userid,
  4127. }"
  4128. >
  4129. 评分
  4130. </div>
  4131. <img
  4132. class="deleteImg"
  4133. src="../assets/deleteworks.png"
  4134. v-if="
  4135. w.userid == userid || tType == 1 || tType == 4
  4136. "
  4137. @click.stop="deleteWorks(w.wid)"
  4138. alt
  4139. />
  4140. </div>
  4141. <div class="comment" style="min-width: 200px">
  4142. <div class="worksName">
  4143. <div
  4144. style="cursor: pointer"
  4145. @click="
  4146. openSname(w.sName, w.wid, toolIndex, w.userid)
  4147. "
  4148. >
  4149. {{ w.sName }}
  4150. </div>
  4151. </div>
  4152. <div class="commentList">
  4153. <div class="commentList">
  4154. <div
  4155. class="commentImg"
  4156. @click="
  4157. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4158. "
  4159. >
  4160. <img
  4161. :src="w.isLikes == true ? likes : noLikes"
  4162. alt=""
  4163. />
  4164. </div>
  4165. <div>{{ w.likesCount }}</div>
  4166. </div>
  4167. <div class="commentList" style="margin-right: 15px">
  4168. <div
  4169. class="commentImg"
  4170. @click="commentOther(w, toolIndex, wIndex)"
  4171. >
  4172. <img
  4173. src="../assets/icon/comment/comment.png"
  4174. alt=""
  4175. />
  4176. </div>
  4177. <div>{{ w.commentCount }}</div>
  4178. </div>
  4179. </div>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4184. 未提交
  4185. </div>
  4186. <div
  4187. class="noWorksS"
  4188. v-if="noWorksS && noWorksS[toolIndex].length"
  4189. >
  4190. <div
  4191. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4192. :key="sIndex"
  4193. class="noWorksName"
  4194. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4195. >
  4196. <el-tooltip effect="dark" :content="s.student" placement="top">
  4197. <span>{{ s.student }}</span>
  4198. </el-tooltip>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. <div
  4203. v-if="
  4204. tType &&
  4205. ((tType == 2 && sIsOpen == true) ||
  4206. tType == 1 ||
  4207. tType == 4) &&
  4208. tool.tool.indexOf(4) != -1 &&
  4209. (tool.askJson[0].answer ||
  4210. tool.askJson[0].answer === 0) &&
  4211. checkJson[toolIndex].length
  4212. "
  4213. class="xuan_right_box"
  4214. >
  4215. <div
  4216. class="tool_right_box"
  4217. v-for="(item, index) in tool.askJson"
  4218. :key="index"
  4219. >
  4220. <div style="width: calc(100% - 30px);">
  4221. <el-tooltip
  4222. effect="light"
  4223. :content="index + 1 + '、' + item.askstitle"
  4224. placement="top"
  4225. popper-class="text_tooltip"
  4226. >
  4227. <div
  4228. style="
  4229. width: calc(100% - 130px);
  4230. display: block;
  4231. white-space: nowrap;
  4232. overflow: hidden;
  4233. text-overflow: ellipsis;
  4234. word-break: break-word;
  4235. cursor: pointer;
  4236. "
  4237. >
  4238. {{ index + 1 + "、" + item.askstitle }}
  4239. </div>
  4240. </el-tooltip>
  4241. </div>
  4242. <div class="right_box_xuan">
  4243. <span>正确率</span>
  4244. <span>{{
  4245. (checkJson[toolIndex][index].right
  4246. ? checkJson[toolIndex][index].right
  4247. : 0) + "%"
  4248. }}</span>
  4249. </div>
  4250. </div>
  4251. </div>
  4252. <div
  4253. class="xuan_right_box"
  4254. style="background: unset; padding: 0 10px"
  4255. v-if="
  4256. tType &&
  4257. ((tType == 2 && sIsOpen == true) ||
  4258. tType == 1 ||
  4259. tType == 4) &&
  4260. tool.tool.indexOf(4) != -1
  4261. "
  4262. >
  4263. <AskStatic
  4264. v-if="
  4265. worksStudent.length &&
  4266. worksStudent[toolIndex].length > 0
  4267. "
  4268. :askJSON="tool"
  4269. :checkJson="checkJson[toolIndex]"
  4270. ></AskStatic>
  4271. </div>
  4272. <div
  4273. v-if="
  4274. tType &&
  4275. ((tType == 2 && sIsOpen == true) ||
  4276. tType == 1 ||
  4277. tType == 4) &&
  4278. tool.tool.indexOf(4) != -1
  4279. "
  4280. class="worksBox"
  4281. >
  4282. <div
  4283. class="zuoyeYulan"
  4284. v-if="
  4285. worksStudent.length &&
  4286. worksStudent[toolIndex].length > 0
  4287. "
  4288. >
  4289. <div class="worksTop">
  4290. <div>作业预览</div>
  4291. <div
  4292. class="corOpen"
  4293. @click="contract(toolIndex)"
  4294. v-if="
  4295. (isCloseList[toolIndex].isCloseBoolean) &&
  4296. isCloseList[toolIndex].isClose == 0
  4297. "
  4298. >
  4299. 折叠
  4300. </div>
  4301. <div
  4302. class="corOpen"
  4303. @click="contract(toolIndex)"
  4304. v-if="isCloseList[toolIndex].isClose == 1"
  4305. >
  4306. 展开
  4307. </div>
  4308. </div>
  4309. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4310. </div>
  4311. <div>
  4312. <div
  4313. :id="'tool-' + toolIndex"
  4314. :style="{
  4315. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4316. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4317. }"
  4318. class="worksDetailBox"
  4319. v-if="
  4320. worksStudent.length &&
  4321. worksStudent[toolIndex].length > 0
  4322. "
  4323. >
  4324. <div
  4325. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4326. :key="wIndex"
  4327. class="isWorksName2"
  4328. @click="
  4329. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4330. "
  4331. >
  4332. {{ w.sName }}
  4333. <img
  4334. class="deleteImg deleteImg2"
  4335. src="../assets/deleteworks.png"
  4336. v-if="
  4337. w.userid == userid || tType == 1 || tType == 4
  4338. "
  4339. @click.stop="deleteWorks(w.wid)"
  4340. alt
  4341. />
  4342. </div>
  4343. <!-- <div class="works" style="
  4344. width: 200px;
  4345. height: 140px;
  4346. border-radius: 10px;
  4347. box-shadow: 0 0 6px 1px #dfdada;
  4348. overflow: hidden;
  4349. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4350. <div class="workImg">
  4351. <img src="../assets/icon/works/noImg.png" @click="
  4352. openTools(
  4353. 4,
  4354. toolIndex,
  4355. taskCount,
  4356. w.works,
  4357. w.sName
  4358. )
  4359. " alt />
  4360. </div>
  4361. <div class="worksName">
  4362. <div>{{ w.sName }}</div>
  4363. <div>{{ w.time }}</div>
  4364. </div>
  4365. </div> -->
  4366. </div>
  4367. </div>
  4368. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4369. 未提交
  4370. </div>
  4371. <div
  4372. class="noWorksS"
  4373. v-if="noWorksS && noWorksS[toolIndex].length"
  4374. >
  4375. <div
  4376. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4377. :key="sIndex"
  4378. class="noWorksName"
  4379. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4380. >
  4381. <el-tooltip effect="dark" :content="s.student" placement="top">
  4382. <span>{{ s.student }}</span>
  4383. </el-tooltip>
  4384. </div>
  4385. </div>
  4386. </div>
  4387. <div
  4388. v-if="
  4389. tType &&
  4390. ((tType == 2 && sIsOpen == true) ||
  4391. tType == 1 ||
  4392. tType == 4) &&
  4393. tool.tool.indexOf(45) != -1 &&
  4394. (tool.testJson.testJson[0].answer ||
  4395. tool.testJson.testJson[0].answer === 0) &&
  4396. checkJson[toolIndex].length
  4397. "
  4398. class="xuan_right_box"
  4399. >
  4400. <div
  4401. class="tool_right_box"
  4402. v-for="(item, index) in tool.testJson.testJson"
  4403. :key="index"
  4404. >
  4405. <div class="right_box_xuan" style="margin-right: 10px">
  4406. <span>正确率</span>
  4407. <span>{{
  4408. (checkJson[toolIndex][index].right
  4409. ? checkJson[toolIndex][index].right
  4410. : 0) + "%"
  4411. }}</span>
  4412. </div>
  4413. <div style="width: calc(100% - 30px);">
  4414. <el-tooltip
  4415. effect="light"
  4416. :content="index + 1 + '、' + item.teststitle"
  4417. placement="top"
  4418. popper-class="text_tooltip"
  4419. >
  4420. <div
  4421. style="
  4422. width: calc(100% - 130px);
  4423. display: flex;
  4424. white-space: nowrap;
  4425. overflow: hidden;
  4426. text-overflow: ellipsis;
  4427. word-break: break-word;
  4428. cursor: pointer;
  4429. "
  4430. class="renderedFor"
  4431. >
  4432. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4433. </div>
  4434. </el-tooltip>
  4435. </div>
  4436. </div>
  4437. </div>
  4438. <div
  4439. class="xuan_right_box"
  4440. style="background: unset; padding: 0 10px; width: 91.5%"
  4441. v-if="
  4442. tType &&
  4443. ((tType == 2 && sIsOpen == true) ||
  4444. tType == 1 ||
  4445. tType == 4) &&
  4446. tool.tool.indexOf(45) != -1
  4447. "
  4448. >
  4449. <AskStatic2
  4450. v-if="
  4451. worksStudent.length &&
  4452. worksStudent[toolIndex].length > 0
  4453. "
  4454. :askJSON="tool"
  4455. :checkJson="checkJson[toolIndex]"
  4456. ></AskStatic2>
  4457. </div>
  4458. <div
  4459. v-if="
  4460. tType &&
  4461. ((tType == 2 && sIsOpen == true) ||
  4462. tType == 1 ||
  4463. tType == 4) &&
  4464. tool.tool.indexOf(45) != -1
  4465. "
  4466. class="worksBox"
  4467. >
  4468. <div
  4469. class="zuoyeYulan"
  4470. v-if="
  4471. worksStudent.length &&
  4472. worksStudent[toolIndex].length > 0
  4473. "
  4474. >
  4475. <div class="worksTop">
  4476. <div>作业预览</div>
  4477. <div
  4478. class="corOpen"
  4479. @click="contract(toolIndex)"
  4480. v-if="
  4481. (isCloseList[toolIndex].isCloseBoolean) &&
  4482. isCloseList[toolIndex].isClose == 0
  4483. "
  4484. >
  4485. 折叠
  4486. </div>
  4487. <div
  4488. class="corOpen"
  4489. @click="contract(toolIndex)"
  4490. v-if="isCloseList[toolIndex].isClose == 1"
  4491. >
  4492. 展开
  4493. </div>
  4494. </div>
  4495. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4496. </div>
  4497. <div>
  4498. <div
  4499. :id="'tool-' + toolIndex"
  4500. :style="{
  4501. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4502. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4503. }"
  4504. class="worksDetailBox"
  4505. v-if="
  4506. worksStudent.length &&
  4507. worksStudent[toolIndex].length > 0
  4508. "
  4509. >
  4510. <div
  4511. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4512. :key="wIndex"
  4513. class="isWorksName2"
  4514. @click="
  4515. openTools(
  4516. 45,
  4517. toolIndex,
  4518. taskCount,
  4519. w.works,
  4520. w.sName
  4521. )
  4522. "
  4523. >
  4524. {{ w.sName }}
  4525. <img
  4526. class="deleteImg deleteImg2"
  4527. src="../assets/deleteworks.png"
  4528. v-if="
  4529. w.userid == userid || tType == 1 || tType == 4
  4530. "
  4531. @click.stop="deleteWorks(w.wid)"
  4532. alt
  4533. />
  4534. </div>
  4535. </div>
  4536. </div>
  4537. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4538. 未提交
  4539. </div>
  4540. <div
  4541. class="noWorksS"
  4542. v-if="noWorksS && noWorksS[toolIndex].length"
  4543. >
  4544. <div
  4545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4546. :key="sIndex"
  4547. class="noWorksName"
  4548. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4549. >
  4550. <el-tooltip effect="dark" :content="s.student" placement="top">
  4551. <span>{{ s.student }}</span>
  4552. </el-tooltip>
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div
  4557. v-if="
  4558. tType &&
  4559. ((tType == 2 && sIsOpen == true) ||
  4560. tType == 1 ||
  4561. tType == 4) &&
  4562. tool.tool.indexOf(69) != -1
  4563. "
  4564. class="worksBox"
  4565. >
  4566. <div
  4567. class="zuoyeYulan"
  4568. v-if="
  4569. worksStudent.length &&
  4570. worksStudent[toolIndex].length > 0
  4571. "
  4572. >
  4573. <div class="worksTop">
  4574. <div>作业预览</div>
  4575. <div
  4576. class="corOpen"
  4577. @click="contract(toolIndex)"
  4578. v-if="
  4579. (isCloseList[toolIndex].isCloseBoolean) &&
  4580. isCloseList[toolIndex].isClose == 0
  4581. "
  4582. >
  4583. 折叠
  4584. </div>
  4585. <div
  4586. class="corOpen"
  4587. @click="contract(toolIndex)"
  4588. v-if="isCloseList[toolIndex].isClose == 1"
  4589. >
  4590. 展开
  4591. </div>
  4592. </div>
  4593. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4594. </div>
  4595. <div>
  4596. <div
  4597. :id="'tool-' + toolIndex"
  4598. :style="{
  4599. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4600. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4601. }"
  4602. class="worksDetailBox"
  4603. v-if="
  4604. worksStudent.length &&
  4605. worksStudent[toolIndex].length > 0
  4606. "
  4607. >
  4608. <div
  4609. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4610. :key="wIndex"
  4611. class="isWorksName2"
  4612. style="width: 160px;height: 65px;line-height: 65px;"
  4613. @click="
  4614. openTools(
  4615. 69,
  4616. toolIndex,
  4617. taskCount,
  4618. w.works,
  4619. w.sName,
  4620. w.wid
  4621. )
  4622. "
  4623. >
  4624. {{ w.sName }}
  4625. <img
  4626. class="deleteImg1"
  4627. src="../assets/evaEnglish.png"
  4628. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4629. alt
  4630. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4631. />
  4632. <img
  4633. class="deleteImg deleteImg2"
  4634. src="../assets/deleteworks.png"
  4635. v-if="
  4636. w.userid == userid || tType == 1 || tType == 4
  4637. "
  4638. @click.stop="deleteWorks(w.wid)"
  4639. alt
  4640. />
  4641. </div>
  4642. </div>
  4643. </div>
  4644. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4645. 未提交
  4646. </div>
  4647. <div
  4648. class="noWorksS"
  4649. v-if="noWorksS && noWorksS[toolIndex].length"
  4650. >
  4651. <div
  4652. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4653. :key="sIndex"
  4654. class="noWorksName"
  4655. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4656. >
  4657. <el-tooltip effect="dark" :content="s.student" placement="top">
  4658. <span>{{ s.student }}</span>
  4659. </el-tooltip>
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <div
  4664. v-if="
  4665. tType &&
  4666. ((tType == 2 && sIsOpen == true) ||
  4667. tType == 1 ||
  4668. tType == 4) &&
  4669. tool.tool.indexOf(15) != -1
  4670. "
  4671. class="worksBox"
  4672. >
  4673. <div
  4674. class="zuoyeYulan"
  4675. v-if="
  4676. (worksStudent.length &&
  4677. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4678. "
  4679. >
  4680. <div class="worksTop">
  4681. <div>作业预览</div>
  4682. <div
  4683. class="corOpen"
  4684. @click="contract(toolIndex)"
  4685. v-if="
  4686. (isCloseList[toolIndex].isCloseBoolean) &&
  4687. isCloseList[toolIndex].isClose == 0
  4688. "
  4689. >
  4690. 折叠
  4691. </div>
  4692. <div
  4693. class="corOpen"
  4694. @click="contract(toolIndex)"
  4695. v-if="isCloseList[toolIndex].isClose == 1"
  4696. >
  4697. 展开
  4698. </div>
  4699. </div>
  4700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4701. </div>
  4702. <div
  4703. class="group_workBox"
  4704. v-for="(g, gindex) in courseGroup.group"
  4705. :key="gindex"
  4706. >
  4707. <div class="group_box">
  4708. <div class="group_title">
  4709. <el-tooltip
  4710. class="item"
  4711. effect="light"
  4712. :content="g.name"
  4713. placement="top"
  4714. >
  4715. <div class="group_name">{{ g.name }}</div>
  4716. </el-tooltip>
  4717. </div>
  4718. <div
  4719. class="group_work"
  4720. v-if="
  4721. g.works &&
  4722. g.works.length &&
  4723. g.works[toolIndex].length
  4724. "
  4725. >
  4726. <div
  4727. class="works"
  4728. v-for="(w, wIndex) in g.works[toolIndex]"
  4729. :key="wIndex"
  4730. >
  4731. <div
  4732. class="workImg"
  4733. style="
  4734. border-radius: 15px;
  4735. box-shadow: 0px 0px 5px 5px #eee;
  4736. "
  4737. >
  4738. <div
  4739. class="answerBg"
  4740. style="border-radius: 15px 15px 0 0"
  4741. @click="
  4742. commentOther(w, toolIndex, wIndex, null, g.id)
  4743. "
  4744. >
  4745. <div class="answerContent">
  4746. {{ JSON.parse(w.works)[0].answer }}
  4747. </div>
  4748. <div
  4749. class="answerScore"
  4750. v-if="w.score"
  4751. @click.stop="openScore(w)"
  4752. :class="{
  4753. rightW:
  4754. w.userid == userid ||
  4755. tType == 1 ||
  4756. tType == 4,
  4757. }"
  4758. >
  4759. {{ JSON.parse(w.score).wScore }}分
  4760. </div>
  4761. <div
  4762. class="answerScore"
  4763. @click.stop="openScore(w)"
  4764. v-else-if="courseDetail.userid == userid"
  4765. :class="{
  4766. rightW:
  4767. w.userid == userid ||
  4768. tType == 1 ||
  4769. tType == 4,
  4770. }"
  4771. >
  4772. 评分
  4773. </div>
  4774. <img
  4775. class="deleteImg"
  4776. src="../assets/deleteworks.png"
  4777. v-if="
  4778. w.userid == userid ||
  4779. tType == 1 ||
  4780. tType == 4
  4781. "
  4782. @click.stop="deleteWorks(w.wid)"
  4783. alt
  4784. />
  4785. </div>
  4786. <div class="comment">
  4787. <div class="worksName">
  4788. <div>{{ w.sName }}</div>
  4789. </div>
  4790. <div class="commentList">
  4791. <div
  4792. class="commentImg"
  4793. @click="
  4794. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4795. "
  4796. >
  4797. <img
  4798. :src="w.isLikes == true ? likes : noLikes"
  4799. alt=""
  4800. />
  4801. </div>
  4802. <div>{{ w.likesCount }}</div>
  4803. </div>
  4804. <div
  4805. class="commentList"
  4806. style="margin-right: 15px"
  4807. >
  4808. <div
  4809. class="commentImg"
  4810. @click="
  4811. commentOther(
  4812. w,
  4813. toolIndex,
  4814. wIndex,
  4815. null,
  4816. g.id
  4817. )
  4818. "
  4819. >
  4820. <img
  4821. src="../assets/icon/comment/comment.png"
  4822. alt=""
  4823. />
  4824. </div>
  4825. <div>{{ w.commentCount }}</div>
  4826. </div>
  4827. </div>
  4828. </div>
  4829. </div>
  4830. </div>
  4831. <div class="group_work" v-else>暂无提交作业</div>
  4832. </div>
  4833. </div>
  4834. <div
  4835. :id="'tool-' + toolIndex"
  4836. :style="{
  4837. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4838. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4839. }"
  4840. class="worksDetailBox"
  4841. v-if="
  4842. worksStudent.length &&
  4843. worksStudent[toolIndex].length > 0
  4844. "
  4845. >
  4846. <div
  4847. class="works"
  4848. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4849. :key="wIndex"
  4850. >
  4851. <div
  4852. class="workImg"
  4853. style="
  4854. border-radius: 15px;
  4855. box-shadow: 0px 0px 5px 5px #eee;
  4856. "
  4857. >
  4858. <!-- <img
  4859. src="../assets/icon/works/noImg.png"
  4860. @click="openTools(15, toolIndex, taskCount, w.works)"
  4861. alt=""
  4862. />-->
  4863. <div
  4864. class="answerBg"
  4865. style="border-radius: 15px 15px 0 0"
  4866. @click="commentOther(w, toolIndex, wIndex)"
  4867. >
  4868. <!-- <div>{{ w.sName }}</div> -->
  4869. <div class="answerContent">
  4870. {{ JSON.parse(w.works)[0].answer }}
  4871. </div>
  4872. <div
  4873. class="answerScore"
  4874. v-if="w.score"
  4875. @click.stop="openScore(w)"
  4876. :class="{
  4877. rightW:
  4878. w.userid == userid ||
  4879. tType == 1 ||
  4880. tType == 4,
  4881. }"
  4882. >
  4883. {{ JSON.parse(w.score).wScore }}分
  4884. </div>
  4885. <div
  4886. class="answerScore"
  4887. @click.stop="openScore(w)"
  4888. v-else-if="courseDetail.userid == userid"
  4889. :class="{
  4890. rightW:
  4891. w.userid == userid ||
  4892. tType == 1 ||
  4893. tType == 4,
  4894. }"
  4895. >
  4896. 评分
  4897. </div>
  4898. <img
  4899. class="deleteImg"
  4900. src="../assets/deleteworks.png"
  4901. v-if="
  4902. w.userid == userid || tType == 1 || tType == 4
  4903. "
  4904. @click.stop="deleteWorks(w.wid)"
  4905. alt
  4906. />
  4907. </div>
  4908. <div class="comment">
  4909. <div class="worksName">
  4910. <div>{{ w.sName }}</div>
  4911. </div>
  4912. <div class="commentList">
  4913. <div
  4914. class="commentImg"
  4915. @click="
  4916. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4917. "
  4918. >
  4919. <img
  4920. :src="w.isLikes == true ? likes : noLikes"
  4921. alt=""
  4922. />
  4923. </div>
  4924. <div>{{ w.likesCount }}</div>
  4925. </div>
  4926. <div class="commentList" style="margin-right: 15px">
  4927. <div
  4928. class="commentImg"
  4929. @click="commentOther(w, toolIndex, wIndex)"
  4930. >
  4931. <img
  4932. src="../assets/icon/comment/comment.png"
  4933. alt=""
  4934. />
  4935. </div>
  4936. <div>{{ w.commentCount }}</div>
  4937. </div>
  4938. </div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4943. 未提交
  4944. </div>
  4945. <div
  4946. class="noWorksS"
  4947. v-if="noWorksS && noWorksS[toolIndex].length"
  4948. >
  4949. <div
  4950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4951. :key="sIndex"
  4952. class="noWorksName"
  4953. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4954. >
  4955. <el-tooltip effect="dark" :content="s.student" placement="top">
  4956. <span>{{ s.student }}</span>
  4957. </el-tooltip>
  4958. </div>
  4959. </div>
  4960. </div>
  4961. <div
  4962. v-if="
  4963. tType &&
  4964. ((tType == 2 && sIsOpen == true) ||
  4965. tType == 1 ||
  4966. tType == 4) &&
  4967. tool.tool.indexOf(1) != -1
  4968. "
  4969. class="worksBox"
  4970. >
  4971. <div
  4972. class="zuoyeYulan"
  4973. v-if="
  4974. (worksStudent.length &&
  4975. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4976. "
  4977. >
  4978. <div class="worksTop">
  4979. <div>作业预览</div>
  4980. <div
  4981. class="corOpen"
  4982. @click="contract(toolIndex)"
  4983. v-if="
  4984. (isCloseList[toolIndex].isCloseBoolean) &&
  4985. isCloseList[toolIndex].isClose == 0
  4986. "
  4987. >
  4988. 折叠
  4989. </div>
  4990. <div
  4991. class="corOpen"
  4992. @click="contract(toolIndex)"
  4993. v-if="isCloseList[toolIndex].isClose == 1"
  4994. >
  4995. 展开
  4996. </div>
  4997. </div>
  4998. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4999. </div>
  5000. <div
  5001. class="group_workBox"
  5002. v-for="(g, gindex) in courseGroup.group"
  5003. :key="gindex"
  5004. >
  5005. <div class="group_box">
  5006. <div class="group_title">
  5007. <el-tooltip
  5008. class="item"
  5009. effect="light"
  5010. :content="g.name"
  5011. placement="top"
  5012. >
  5013. <div class="group_name">{{ g.name }}</div>
  5014. </el-tooltip>
  5015. </div>
  5016. <div
  5017. class="group_work"
  5018. v-if="
  5019. g.works &&
  5020. g.works.length &&
  5021. g.works[toolIndex].length
  5022. "
  5023. >
  5024. <div
  5025. class="works"
  5026. style="
  5027. width: 200px;
  5028. height: 140px;
  5029. margin: 10px 10px 10px 0;
  5030. border-radius: 15px;
  5031. box-shadow: 0 0 6px 1px #dfdada;
  5032. "
  5033. v-for="(w, wIndex) in g.works[toolIndex]"
  5034. :key="wIndex"
  5035. :class="w.type == 1 ? 'isTypeOne' : ''"
  5036. >
  5037. <div class="workImg">
  5038. <img
  5039. :src="w.works"
  5040. @click="previewImg(w.works,w)"
  5041. alt
  5042. />
  5043. <div
  5044. class="answerScore"
  5045. v-if="w.score"
  5046. @click.stop="openScore(w)"
  5047. :class="{
  5048. rightW:
  5049. w.userid == userid ||
  5050. tType == 1 ||
  5051. tType == 4,
  5052. }"
  5053. >
  5054. {{ JSON.parse(w.score).wScore }}分
  5055. </div>
  5056. <div
  5057. class="answerScore"
  5058. @click.stop="openScore(w)"
  5059. v-else-if="courseDetail.userid == userid"
  5060. :class="{
  5061. rightW:
  5062. w.userid == userid ||
  5063. tType == 1 ||
  5064. tType == 4,
  5065. }"
  5066. >
  5067. 评分
  5068. </div>
  5069. <img
  5070. class="deleteImg"
  5071. src="../assets/deleteworks.png"
  5072. v-if="
  5073. w.userid == userid || tType == 1 || tType == 4
  5074. "
  5075. @click.stop="deleteWorks(w.wid)"
  5076. alt
  5077. />
  5078. </div>
  5079. <div class="comment" style="min-width: 200px">
  5080. <div class="worksName">
  5081. <div>{{ w.sName }}</div>
  5082. </div>
  5083. <div class="commentList">
  5084. <div class="commentList">
  5085. <div
  5086. class="commentImg"
  5087. @click="
  5088. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5089. "
  5090. >
  5091. <img
  5092. :src="w.isLikes == true ? likes : noLikes"
  5093. alt=""
  5094. />
  5095. </div>
  5096. <div>{{ w.likesCount }}</div>
  5097. </div>
  5098. <div
  5099. class="commentList"
  5100. style="margin-right: 15px"
  5101. >
  5102. <div
  5103. class="commentImg"
  5104. @click="
  5105. commentOther(
  5106. w,
  5107. toolIndex,
  5108. wIndex,
  5109. null,
  5110. g.id
  5111. )
  5112. "
  5113. >
  5114. <img
  5115. src="../assets/icon/comment/comment.png"
  5116. alt=""
  5117. />
  5118. </div>
  5119. <div>{{ w.commentCount }}</div>
  5120. </div>
  5121. </div>
  5122. </div>
  5123. </div>
  5124. </div>
  5125. <div class="group_work" v-else>暂无提交作业</div>
  5126. </div>
  5127. </div>
  5128. <div
  5129. :id="'tool-' + toolIndex"
  5130. :style="{
  5131. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5132. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5133. }"
  5134. class="worksDetailBox"
  5135. v-if="
  5136. worksStudent.length &&
  5137. worksStudent[toolIndex].length > 0
  5138. "
  5139. >
  5140. <div
  5141. class="works"
  5142. style="
  5143. width: 200px;
  5144. height: 140px;
  5145. margin: 10px 10px 10px 0;
  5146. border-radius: 15px;
  5147. box-shadow: 0 0 6px 1px #dfdada;
  5148. "
  5149. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5150. :key="wIndex"
  5151. >
  5152. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5153. <div class="workImg">
  5154. <img
  5155. :src="w.works"
  5156. @click="previewImg(w.works,w)"
  5157. alt
  5158. />
  5159. <div
  5160. class="answerScore"
  5161. v-if="w.score"
  5162. @click.stop="openScore(w)"
  5163. :class="{
  5164. rightW:
  5165. w.userid == userid || tType == 1 || tType == 4,
  5166. }"
  5167. >
  5168. {{ JSON.parse(w.score).wScore }}分
  5169. </div>
  5170. <div
  5171. class="answerScore"
  5172. @click.stop="openScore(w)"
  5173. v-else-if="courseDetail.userid == userid"
  5174. :class="{
  5175. rightW:
  5176. w.userid == userid || tType == 1 || tType == 4,
  5177. }"
  5178. >
  5179. 评分
  5180. </div>
  5181. <img
  5182. class="deleteImg"
  5183. src="../assets/deleteworks.png"
  5184. v-if="
  5185. w.userid == userid || tType == 1 || tType == 4
  5186. "
  5187. @click.stop="deleteWorks(w.wid)"
  5188. alt
  5189. />
  5190. </div>
  5191. <div class="comment" style="min-width: 200px">
  5192. <div class="worksName">
  5193. <div>{{ w.sName }}</div>
  5194. </div>
  5195. <div class="commentList">
  5196. <div class="commentList">
  5197. <div
  5198. class="commentImg"
  5199. @click="
  5200. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5201. "
  5202. >
  5203. <img
  5204. :src="w.isLikes == true ? likes : noLikes"
  5205. alt=""
  5206. />
  5207. </div>
  5208. <div>{{ w.likesCount }}</div>
  5209. </div>
  5210. <div class="commentList" style="margin-right: 15px">
  5211. <div
  5212. class="commentImg"
  5213. @click="commentOther(w, toolIndex, wIndex)"
  5214. >
  5215. <img
  5216. src="../assets/icon/comment/comment.png"
  5217. alt=""
  5218. />
  5219. </div>
  5220. <div>{{ w.commentCount }}</div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5227. 未提交
  5228. </div>
  5229. <div
  5230. class="noWorksS"
  5231. v-if="noWorksS && noWorksS[toolIndex].length"
  5232. >
  5233. <div
  5234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5235. :key="sIndex"
  5236. class="noWorksName"
  5237. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5238. >
  5239. <el-tooltip effect="dark" :content="s.student" placement="top">
  5240. <span>{{ s.student }}</span>
  5241. </el-tooltip>
  5242. </div>
  5243. </div>
  5244. </div>
  5245. <div
  5246. v-if="
  5247. tType &&
  5248. ((tType == 2 && sIsOpen == true) ||
  5249. tType == 1 ||
  5250. tType == 4) &&
  5251. tool.tool.indexOf(3) != -1
  5252. "
  5253. class="worksBox"
  5254. >
  5255. <div
  5256. class="zuoyeYulan"
  5257. v-if="
  5258. (worksStudent.length &&
  5259. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5260. "
  5261. >
  5262. <div class="worksTop">
  5263. <div>作业预览</div>
  5264. <div
  5265. class="corOpen"
  5266. @click="contract(toolIndex)"
  5267. v-if="
  5268. (isCloseList[toolIndex].isCloseBoolean) &&
  5269. isCloseList[toolIndex].isClose == 0
  5270. "
  5271. >
  5272. 折叠
  5273. </div>
  5274. <div
  5275. class="corOpen"
  5276. @click="contract(toolIndex)"
  5277. v-if="isCloseList[toolIndex].isClose == 1"
  5278. >
  5279. 展开
  5280. </div>
  5281. </div>
  5282. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5283. </div>
  5284. <div
  5285. class="group_workBox"
  5286. v-for="(g, gindex) in courseGroup.group"
  5287. :key="gindex"
  5288. >
  5289. <div class="group_box">
  5290. <div class="group_title">
  5291. <el-tooltip
  5292. class="item"
  5293. effect="light"
  5294. :content="g.name"
  5295. placement="top"
  5296. >
  5297. <div class="group_name">{{ g.name }}</div>
  5298. </el-tooltip>
  5299. </div>
  5300. <div
  5301. class="group_work"
  5302. v-if="
  5303. g.works &&
  5304. g.works.length &&
  5305. g.works[toolIndex].length
  5306. "
  5307. >
  5308. <div
  5309. class="works"
  5310. style="
  5311. width: 200px;
  5312. height: 140px;
  5313. margin: 10px 10px 10px 0;
  5314. border-radius: 15px;
  5315. box-shadow: 0 0 6px 1px #dfdada;
  5316. "
  5317. v-for="(w, wIndex) in g.works[toolIndex]"
  5318. :key="wIndex"
  5319. :class="w.type == 1 ? 'isTypeOne' : ''"
  5320. >
  5321. <div class="workImg">
  5322. <img
  5323. :src="w.works"
  5324. @click="previewImg(w.works,w)"
  5325. alt
  5326. />
  5327. <div
  5328. class="answerScore"
  5329. v-if="w.score"
  5330. @click.stop="openScore(w)"
  5331. :class="{
  5332. rightW:
  5333. w.userid == userid ||
  5334. tType == 1 ||
  5335. tType == 4,
  5336. }"
  5337. >
  5338. {{ JSON.parse(w.score).wScore }}分
  5339. </div>
  5340. <div
  5341. class="answerScore"
  5342. @click.stop="openScore(w)"
  5343. v-else-if="courseDetail.userid == userid"
  5344. :class="{
  5345. rightW:
  5346. w.userid == userid ||
  5347. tType == 1 ||
  5348. tType == 4,
  5349. }"
  5350. >
  5351. 评分
  5352. </div>
  5353. <img
  5354. class="deleteImg"
  5355. src="../assets/deleteworks.png"
  5356. v-if="
  5357. w.userid == userid || tType == 1 || tType == 4
  5358. "
  5359. @click.stop="deleteWorks(w.wid)"
  5360. alt
  5361. />
  5362. </div>
  5363. <div class="comment" style="min-width: 200px">
  5364. <div class="worksName">
  5365. <div>{{ w.sName }}</div>
  5366. </div>
  5367. <div class="commentList">
  5368. <div class="commentList">
  5369. <div
  5370. class="commentImg"
  5371. @click="
  5372. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5373. "
  5374. >
  5375. <img
  5376. :src="w.isLikes == true ? likes : noLikes"
  5377. alt=""
  5378. />
  5379. </div>
  5380. <div>{{ w.likesCount }}</div>
  5381. </div>
  5382. <div
  5383. class="commentList"
  5384. style="margin-right: 15px"
  5385. >
  5386. <div
  5387. class="commentImg"
  5388. @click="
  5389. commentOther(
  5390. w,
  5391. toolIndex,
  5392. wIndex,
  5393. null,
  5394. g.id
  5395. )
  5396. "
  5397. >
  5398. <img
  5399. src="../assets/icon/comment/comment.png"
  5400. alt=""
  5401. />
  5402. </div>
  5403. <div>{{ w.commentCount }}</div>
  5404. </div>
  5405. </div>
  5406. </div>
  5407. </div>
  5408. </div>
  5409. <div class="group_work" v-else>暂无提交作业</div>
  5410. </div>
  5411. </div>
  5412. <div
  5413. :id="'tool-' + toolIndex"
  5414. :style="{
  5415. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5416. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5417. }"
  5418. class="worksDetailBox"
  5419. v-if="
  5420. worksStudent.length &&
  5421. worksStudent[toolIndex].length > 0
  5422. "
  5423. >
  5424. <div
  5425. class="works"
  5426. style="
  5427. width: 200px;
  5428. height: 140px;
  5429. margin: 10px 10px 10px 0;
  5430. border-radius: 15px;
  5431. box-shadow: 0 0 6px 1px #dfdada;
  5432. "
  5433. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5434. :key="wIndex"
  5435. >
  5436. <!-- @click="previewImg(w.works)" -->
  5437. <div class="workImg">
  5438. <img
  5439. :src="w.works"
  5440. @click="previewImg(w.works,w)"
  5441. alt
  5442. />
  5443. <div
  5444. class="answerScore"
  5445. v-if="w.score"
  5446. @click.stop="openScore(w)"
  5447. :class="{
  5448. rightW:
  5449. w.userid == userid || tType == 1 || tType == 4,
  5450. }"
  5451. >
  5452. {{ JSON.parse(w.score).wScore }}分
  5453. </div>
  5454. <div
  5455. class="answerScore"
  5456. @click.stop="openScore(w)"
  5457. v-else-if="courseDetail.userid == userid"
  5458. :class="{
  5459. rightW:
  5460. w.userid == userid || tType == 1 || tType == 4,
  5461. }"
  5462. >
  5463. 评分
  5464. </div>
  5465. <img
  5466. class="deleteImg"
  5467. src="../assets/deleteworks.png"
  5468. v-if="
  5469. w.userid == userid || tType == 1 || tType == 4
  5470. "
  5471. @click.stop="deleteWorks(w.wid)"
  5472. alt
  5473. />
  5474. </div>
  5475. <div class="comment" style="min-width: 200px">
  5476. <div class="worksName">
  5477. <div>{{ w.sName }}</div>
  5478. </div>
  5479. <div class="commentList">
  5480. <div class="commentList">
  5481. <div
  5482. class="commentImg"
  5483. @click="
  5484. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5485. "
  5486. >
  5487. <img
  5488. :src="w.isLikes == true ? likes : noLikes"
  5489. alt=""
  5490. />
  5491. </div>
  5492. <div>{{ w.likesCount }}</div>
  5493. </div>
  5494. <div class="commentList" style="margin-right: 15px">
  5495. <div
  5496. class="commentImg"
  5497. @click="commentOther(w, toolIndex, wIndex)"
  5498. >
  5499. <img
  5500. src="../assets/icon/comment/comment.png"
  5501. alt=""
  5502. />
  5503. </div>
  5504. <div>{{ w.commentCount }}</div>
  5505. </div>
  5506. </div>
  5507. </div>
  5508. </div>
  5509. </div>
  5510. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5511. 未提交
  5512. </div>
  5513. <div
  5514. class="noWorksS"
  5515. v-if="noWorksS && noWorksS[toolIndex].length"
  5516. >
  5517. <div
  5518. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5519. :key="sIndex"
  5520. class="noWorksName"
  5521. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5522. >
  5523. <el-tooltip effect="dark" :content="s.student" placement="top">
  5524. <span>{{ s.student }}</span>
  5525. </el-tooltip>
  5526. </div>
  5527. </div>
  5528. </div>
  5529. <div
  5530. v-if="
  5531. tType &&
  5532. ((tType == 2 && sIsOpen == true) ||
  5533. tType == 1 ||
  5534. tType == 4) &&
  5535. tool.tool.indexOf(6) != -1
  5536. "
  5537. class="worksBox"
  5538. >
  5539. <div
  5540. class="zuoyeYulan"
  5541. v-if="
  5542. (worksStudent.length &&
  5543. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5544. "
  5545. >
  5546. <div class="worksTop">
  5547. <div>作业预览</div>
  5548. <div
  5549. class="corOpen"
  5550. @click="contract(toolIndex)"
  5551. v-if="
  5552. (isCloseList[toolIndex].isCloseBoolean) &&
  5553. isCloseList[toolIndex].isClose == 0
  5554. "
  5555. >
  5556. 折叠
  5557. </div>
  5558. <div
  5559. class="corOpen"
  5560. @click="contract(toolIndex)"
  5561. v-if="isCloseList[toolIndex].isClose == 1"
  5562. >
  5563. 展开
  5564. </div>
  5565. </div>
  5566. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5567. </div>
  5568. <div
  5569. class="group_workBox"
  5570. v-for="(g, gindex) in courseGroup.group"
  5571. :key="gindex"
  5572. >
  5573. <div class="group_box">
  5574. <div class="group_title">
  5575. <el-tooltip
  5576. class="item"
  5577. effect="light"
  5578. :content="g.name"
  5579. placement="top"
  5580. >
  5581. <div class="group_name">{{ g.name }}</div>
  5582. </el-tooltip>
  5583. </div>
  5584. <div
  5585. class="group_work"
  5586. v-if="
  5587. g.works &&
  5588. g.works.length &&
  5589. g.works[toolIndex].length
  5590. "
  5591. >
  5592. <div
  5593. class="works"
  5594. style="
  5595. width: 200px;
  5596. height: 140px;
  5597. margin: 10px 10px 10px 0;
  5598. border-radius: 15px;
  5599. box-shadow: 0 0 6px 1px #dfdada;
  5600. "
  5601. v-for="(w, wIndex) in g.works[toolIndex]"
  5602. :key="wIndex"
  5603. :class="w.type == 1 ? 'isTypeOne' : ''"
  5604. >
  5605. <div class="workImg">
  5606. <img
  5607. :src="w.works"
  5608. @click="previewImg(w.works,w)"
  5609. alt
  5610. />
  5611. <div
  5612. class="answerScore"
  5613. v-if="w.score"
  5614. @click.stop="openScore(w)"
  5615. :class="{
  5616. rightW:
  5617. w.userid == userid ||
  5618. tType == 1 ||
  5619. tType == 4,
  5620. }"
  5621. >
  5622. {{ JSON.parse(w.score).wScore }}分
  5623. </div>
  5624. <div
  5625. class="answerScore"
  5626. @click.stop="openScore(w)"
  5627. v-else-if="courseDetail.userid == userid"
  5628. :class="{
  5629. rightW:
  5630. w.userid == userid ||
  5631. tType == 1 ||
  5632. tType == 4,
  5633. }"
  5634. >
  5635. 评分
  5636. </div>
  5637. <img
  5638. class="deleteImg"
  5639. src="../assets/deleteworks.png"
  5640. v-if="
  5641. w.userid == userid || tType == 1 || tType == 4
  5642. "
  5643. @click.stop="deleteWorks(w.wid)"
  5644. alt
  5645. />
  5646. </div>
  5647. <div class="comment" style="min-width: 200px">
  5648. <div class="worksName">
  5649. <div>{{ w.sName }}</div>
  5650. </div>
  5651. <div class="commentList">
  5652. <div class="commentList">
  5653. <div
  5654. class="commentImg"
  5655. @click="
  5656. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5657. "
  5658. >
  5659. <img
  5660. :src="w.isLikes == true ? likes : noLikes"
  5661. alt=""
  5662. />
  5663. </div>
  5664. <div>{{ w.likesCount }}</div>
  5665. </div>
  5666. <div
  5667. class="commentList"
  5668. style="margin-right: 15px"
  5669. >
  5670. <div
  5671. class="commentImg"
  5672. @click="
  5673. commentOther(
  5674. w,
  5675. toolIndex,
  5676. wIndex,
  5677. null,
  5678. g.id
  5679. )
  5680. "
  5681. >
  5682. <img
  5683. src="../assets/icon/comment/comment.png"
  5684. alt=""
  5685. />
  5686. </div>
  5687. <div>{{ w.commentCount }}</div>
  5688. </div>
  5689. </div>
  5690. </div>
  5691. </div>
  5692. </div>
  5693. <div class="group_work" v-else>暂无提交作业</div>
  5694. </div>
  5695. </div>
  5696. <div
  5697. :id="'tool-' + toolIndex"
  5698. :style="{
  5699. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5700. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5701. }"
  5702. class="worksDetailBox"
  5703. v-if="
  5704. worksStudent.length &&
  5705. worksStudent[toolIndex].length > 0
  5706. "
  5707. >
  5708. <div
  5709. class="works"
  5710. style="
  5711. width: 200px;
  5712. height: 140px;
  5713. margin: 10px 10px 10px 0;
  5714. border-radius: 15px;
  5715. box-shadow: 0 0 6px 1px #dfdada;
  5716. "
  5717. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5718. :key="wIndex"
  5719. >
  5720. <!-- @click="previewImg(w.works)" -->
  5721. <div class="workImg">
  5722. <img
  5723. :src="w.works"
  5724. @click="previewImg(w.works,w)"
  5725. alt
  5726. />
  5727. <div
  5728. class="answerScore"
  5729. v-if="w.score"
  5730. @click.stop="openScore(w)"
  5731. :class="{
  5732. rightW:
  5733. w.userid == userid || tType == 1 || tType == 4,
  5734. }"
  5735. >
  5736. {{ JSON.parse(w.score).wScore }}分
  5737. </div>
  5738. <div
  5739. class="answerScore"
  5740. @click.stop="openScore(w)"
  5741. v-else-if="courseDetail.userid == userid"
  5742. :class="{
  5743. rightW:
  5744. w.userid == userid || tType == 1 || tType == 4,
  5745. }"
  5746. >
  5747. 评分
  5748. </div>
  5749. <img
  5750. class="deleteImg"
  5751. src="../assets/deleteworks.png"
  5752. v-if="
  5753. w.userid == userid || tType == 1 || tType == 4
  5754. "
  5755. @click.stop="deleteWorks(w.wid)"
  5756. alt
  5757. />
  5758. </div>
  5759. <div class="comment" style="min-width: 200px">
  5760. <div class="worksName">
  5761. <div>{{ w.sName }}</div>
  5762. </div>
  5763. <div class="commentList">
  5764. <div class="commentList">
  5765. <div
  5766. class="commentImg"
  5767. @click="
  5768. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5769. "
  5770. >
  5771. <img
  5772. :src="w.isLikes == true ? likes : noLikes"
  5773. alt=""
  5774. />
  5775. </div>
  5776. <div>{{ w.likesCount }}</div>
  5777. </div>
  5778. <div class="commentList" style="margin-right: 15px">
  5779. <div
  5780. class="commentImg"
  5781. @click="commentOther(w, toolIndex, wIndex)"
  5782. >
  5783. <img
  5784. src="../assets/icon/comment/comment.png"
  5785. alt=""
  5786. />
  5787. </div>
  5788. <div>{{ w.commentCount }}</div>
  5789. </div>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. </div>
  5794. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5795. 未提交
  5796. </div>
  5797. <div
  5798. class="noWorksS"
  5799. v-if="noWorksS && noWorksS[toolIndex].length"
  5800. >
  5801. <div
  5802. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5803. :key="sIndex"
  5804. class="noWorksName"
  5805. >
  5806. <el-tooltip effect="dark" :content="s.student" placement="top">
  5807. <span>{{ s.student }}</span>
  5808. </el-tooltip>
  5809. </div>
  5810. </div>
  5811. </div>
  5812. <div
  5813. v-if="
  5814. tType &&
  5815. ((tType == 2 && sIsOpen == true) ||
  5816. tType == 1 ||
  5817. tType == 4) &&
  5818. tool.tool.indexOf(7) != -1
  5819. "
  5820. class="worksBox"
  5821. >
  5822. <div
  5823. class="zuoyeYulan"
  5824. v-if="
  5825. (worksStudent.length &&
  5826. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5827. "
  5828. >
  5829. <div class="worksTop">
  5830. <div>作业预览</div>
  5831. <div
  5832. class="corOpen"
  5833. @click="contract(toolIndex)"
  5834. v-if="
  5835. (isCloseList[toolIndex].isCloseBoolean) &&
  5836. isCloseList[toolIndex].isClose == 0
  5837. "
  5838. >
  5839. 折叠
  5840. </div>
  5841. <div
  5842. class="corOpen"
  5843. @click="contract(toolIndex)"
  5844. v-if="isCloseList[toolIndex].isClose == 1"
  5845. >
  5846. 展开
  5847. </div>
  5848. </div>
  5849. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5850. </div>
  5851. <div
  5852. class="group_workBox"
  5853. v-for="(g, gindex) in courseGroup.group"
  5854. :key="gindex"
  5855. >
  5856. <div class="group_box">
  5857. <div class="group_title">
  5858. <el-tooltip
  5859. class="item"
  5860. effect="light"
  5861. :content="g.name"
  5862. placement="top"
  5863. >
  5864. <div class="group_name">{{ g.name }}</div>
  5865. </el-tooltip>
  5866. </div>
  5867. <div
  5868. class="group_work"
  5869. v-if="
  5870. g.works &&
  5871. g.works.length &&
  5872. g.works[toolIndex].length
  5873. "
  5874. >
  5875. <div
  5876. class="works"
  5877. style="
  5878. width: 200px;
  5879. height: 140px;
  5880. margin: 10px 10px 10px 0;
  5881. border-radius: 15px;
  5882. box-shadow: 0 0 6px 1px #dfdada;
  5883. "
  5884. v-for="(w, wIndex) in g.works[toolIndex]"
  5885. :key="wIndex"
  5886. :class="w.type == 1 ? 'isTypeOne' : ''"
  5887. >
  5888. <div class="workImg">
  5889. <img
  5890. :src="w.works"
  5891. @click="previewImg(w.works,w)"
  5892. alt
  5893. />
  5894. <div
  5895. class="answerScore"
  5896. v-if="w.score"
  5897. @click.stop="openScore(w)"
  5898. :class="{
  5899. rightW:
  5900. w.userid == userid ||
  5901. tType == 1 ||
  5902. tType == 4,
  5903. }"
  5904. >
  5905. {{ JSON.parse(w.score).wScore }}分
  5906. </div>
  5907. <div
  5908. class="answerScore"
  5909. @click.stop="openScore(w)"
  5910. v-else-if="courseDetail.userid == userid"
  5911. :class="{
  5912. rightW:
  5913. w.userid == userid ||
  5914. tType == 1 ||
  5915. tType == 4,
  5916. }"
  5917. >
  5918. 评分
  5919. </div>
  5920. <img
  5921. class="deleteImg"
  5922. src="../assets/deleteworks.png"
  5923. v-if="
  5924. w.userid == userid || tType == 1 || tType == 4
  5925. "
  5926. @click.stop="deleteWorks(w.wid)"
  5927. alt
  5928. />
  5929. </div>
  5930. <div class="comment" style="min-width: 200px">
  5931. <div class="worksName">
  5932. <div>{{ w.sName }}</div>
  5933. </div>
  5934. <div class="commentList">
  5935. <div class="commentList">
  5936. <div
  5937. class="commentImg"
  5938. @click="
  5939. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5940. "
  5941. >
  5942. <img
  5943. :src="w.isLikes == true ? likes : noLikes"
  5944. alt=""
  5945. />
  5946. </div>
  5947. <div>{{ w.likesCount }}</div>
  5948. </div>
  5949. <div
  5950. class="commentList"
  5951. style="margin-right: 15px"
  5952. >
  5953. <div
  5954. class="commentImg"
  5955. @click="
  5956. commentOther(
  5957. w,
  5958. toolIndex,
  5959. wIndex,
  5960. null,
  5961. g.id
  5962. )
  5963. "
  5964. >
  5965. <img
  5966. src="../assets/icon/comment/comment.png"
  5967. alt=""
  5968. />
  5969. </div>
  5970. <div>{{ w.commentCount }}</div>
  5971. </div>
  5972. </div>
  5973. </div>
  5974. </div>
  5975. </div>
  5976. <div class="group_work" v-else>暂无提交作业</div>
  5977. </div>
  5978. </div>
  5979. <div
  5980. :id="'tool-' + toolIndex"
  5981. :style="{
  5982. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5983. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5984. }"
  5985. class="worksDetailBox"
  5986. v-if="
  5987. worksStudent.length &&
  5988. worksStudent[toolIndex].length > 0
  5989. "
  5990. >
  5991. <div
  5992. class="works"
  5993. style="
  5994. width: 200px;
  5995. height: 140px;
  5996. margin: 10px 10px 10px 0;
  5997. border-radius: 15px;
  5998. box-shadow: 0 0 6px 1px #dfdada;
  5999. "
  6000. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6001. :key="wIndex"
  6002. >
  6003. <!-- @click="previewImg(w.works)" -->
  6004. <div class="workImg">
  6005. <img
  6006. :src="w.works"
  6007. @click="previewImg(w.works,w)"
  6008. alt
  6009. />
  6010. <div
  6011. class="answerScore"
  6012. v-if="w.score"
  6013. @click.stop="openScore(w)"
  6014. :class="{
  6015. rightW:
  6016. w.userid == userid || tType == 1 || tType == 4,
  6017. }"
  6018. >
  6019. {{ JSON.parse(w.score).wScore }}分
  6020. </div>
  6021. <div
  6022. class="answerScore"
  6023. @click.stop="openScore(w)"
  6024. v-else-if="courseDetail.userid == userid"
  6025. :class="{
  6026. rightW:
  6027. w.userid == userid || tType == 1 || tType == 4,
  6028. }"
  6029. >
  6030. 评分
  6031. </div>
  6032. <img
  6033. class="deleteImg"
  6034. src="../assets/deleteworks.png"
  6035. v-if="
  6036. w.userid == userid || tType == 1 || tType == 4
  6037. "
  6038. @click.stop="deleteWorks(w.wid)"
  6039. alt
  6040. />
  6041. </div>
  6042. <div class="comment" style="min-width: 200px">
  6043. <div class="worksName">
  6044. <div>{{ w.sName }}</div>
  6045. </div>
  6046. <div class="commentList">
  6047. <div class="commentList">
  6048. <div
  6049. class="commentImg"
  6050. @click="
  6051. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6052. "
  6053. >
  6054. <img
  6055. :src="w.isLikes == true ? likes : noLikes"
  6056. alt=""
  6057. />
  6058. </div>
  6059. <div>{{ w.likesCount }}</div>
  6060. </div>
  6061. <div class="commentList" style="margin-right: 15px">
  6062. <div
  6063. class="commentImg"
  6064. @click="commentOther(w, toolIndex, wIndex)"
  6065. >
  6066. <img
  6067. src="../assets/icon/comment/comment.png"
  6068. alt=""
  6069. />
  6070. </div>
  6071. <div>{{ w.commentCount }}</div>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. </div>
  6076. </div>
  6077. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6078. 未提交
  6079. </div>
  6080. <div
  6081. class="noWorksS"
  6082. v-if="noWorksS && noWorksS[toolIndex].length"
  6083. >
  6084. <div
  6085. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6086. :key="sIndex"
  6087. class="noWorksName"
  6088. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6089. >
  6090. <el-tooltip effect="dark" :content="s.student" placement="top">
  6091. <span>{{ s.student }}</span>
  6092. </el-tooltip>
  6093. </div>
  6094. </div>
  6095. </div>
  6096. <div
  6097. v-if="
  6098. tType &&
  6099. ((tType == 2 && sIsOpen == true) ||
  6100. tType == 1 ||
  6101. tType == 4) &&
  6102. tool.tool.indexOf(26) != -1
  6103. "
  6104. class="worksBox"
  6105. >
  6106. <div
  6107. class="zuoyeYulan"
  6108. v-if="
  6109. worksStudent.length &&
  6110. worksStudent[toolIndex].length > 0
  6111. "
  6112. >
  6113. <div class="worksTop">
  6114. <div>作业预览</div>
  6115. <div
  6116. class="corOpen"
  6117. @click="contract(toolIndex)"
  6118. v-if="
  6119. (isCloseList[toolIndex].isCloseBoolean) &&
  6120. isCloseList[toolIndex].isClose == 0
  6121. "
  6122. >
  6123. 折叠
  6124. </div>
  6125. <div
  6126. class="corOpen"
  6127. @click="contract(toolIndex)"
  6128. v-if="isCloseList[toolIndex].isClose == 1"
  6129. >
  6130. 展开
  6131. </div>
  6132. </div>
  6133. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6134. </div>
  6135. <div
  6136. :id="'tool-' + toolIndex"
  6137. :style="{
  6138. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6139. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6140. }"
  6141. class="worksDetailBox"
  6142. v-if="
  6143. worksStudent.length &&
  6144. worksStudent[toolIndex].length > 0
  6145. "
  6146. >
  6147. <div
  6148. class="works"
  6149. style="width: 240px; height: 140px; overflow: hidden"
  6150. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6151. :key="wIndex"
  6152. :class="w.type == 1 ? 'isTypeOne' : ''"
  6153. >
  6154. <div class="workImg" v-if="w.type == 0">
  6155. <img
  6156. :src="w.works"
  6157. @click="previewImg(w.works,w)"
  6158. alt
  6159. />
  6160. <img
  6161. class="deleteImg"
  6162. src="../assets/deleteworks.png"
  6163. v-if="
  6164. w.userid == userid || tType == 1 || tType == 4
  6165. "
  6166. @click.stop="deleteWorks(w.wid)"
  6167. alt
  6168. />
  6169. </div>
  6170. <div class="workImg" v-if="w.type == 1">
  6171. <img :src="word" @click="openFile(w.works,w)" alt />
  6172. <img
  6173. class="deleteImg"
  6174. src="../assets/deleteworks.png"
  6175. v-if="
  6176. w.userid == userid || tType == 1 || tType == 4
  6177. "
  6178. @click.stop="deleteWorks(w.wid)"
  6179. alt
  6180. />
  6181. </div>
  6182. <div class="worksName">
  6183. <div>{{ w.sName }}</div>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6188. 未提交
  6189. </div>
  6190. <div
  6191. class="noWorksS"
  6192. v-if="noWorksS && noWorksS[toolIndex].length"
  6193. >
  6194. <div
  6195. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6196. :key="sIndex"
  6197. class="noWorksName"
  6198. >
  6199. <el-tooltip effect="dark" :content="s.student" placement="top">
  6200. <span>{{ s.student }}</span>
  6201. </el-tooltip>
  6202. </div>
  6203. </div>
  6204. </div>
  6205. <div
  6206. v-if="
  6207. tType &&
  6208. ((tType == 2 && sIsOpen == true) ||
  6209. tType == 1 ||
  6210. tType == 4) &&
  6211. tool.tool.indexOf(40) != -1
  6212. "
  6213. class="worksBox"
  6214. >
  6215. <div
  6216. class="zuoyeYulan"
  6217. v-if="
  6218. worksStudent.length &&
  6219. worksStudent[toolIndex].length > 0
  6220. "
  6221. >
  6222. <div class="worksTop">
  6223. <div>作业预览</div>
  6224. <div
  6225. class="corOpen"
  6226. @click="contract(toolIndex)"
  6227. v-if="
  6228. (isCloseList[toolIndex].isCloseBoolean) &&
  6229. isCloseList[toolIndex].isClose == 0
  6230. "
  6231. >
  6232. 折叠
  6233. </div>
  6234. <div
  6235. class="corOpen"
  6236. @click="contract(toolIndex)"
  6237. v-if="isCloseList[toolIndex].isClose == 1"
  6238. >
  6239. 展开
  6240. </div>
  6241. </div>
  6242. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6243. </div>
  6244. <div
  6245. :id="'tool-' + toolIndex"
  6246. :style="{
  6247. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6248. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6249. }"
  6250. class="worksDetailBox"
  6251. v-if="
  6252. worksStudent.length &&
  6253. worksStudent[toolIndex].length > 0
  6254. "
  6255. >
  6256. <div
  6257. class="works"
  6258. style="
  6259. width: 200px;
  6260. height: 140px;
  6261. margin: 10px 10px 10px 0;
  6262. border-radius: 15px;
  6263. box-shadow: 0 0 6px 1px #dfdada;
  6264. "
  6265. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6266. :key="wIndex"
  6267. :class="w.type == 1 ? 'isTypeOne' : ''"
  6268. >
  6269. <div class="workImg">
  6270. <img
  6271. src="../assets/icon/works/noImg.png"
  6272. @click="openPj(w.works, toolIndex)"
  6273. alt
  6274. />
  6275. <img
  6276. class="deleteImg"
  6277. src="../assets/deleteworks.png"
  6278. v-if="
  6279. w.userid == userid || tType == 1 || tType == 4
  6280. "
  6281. @click.stop="deleteWorks(w.wid)"
  6282. alt
  6283. />
  6284. </div>
  6285. <div class="comment" style="min-width: 200px">
  6286. <div class="worksName">
  6287. <div>{{ w.sName }}</div>
  6288. </div>
  6289. <div class="commentList">
  6290. <div class="commentList">
  6291. <div
  6292. class="commentImg"
  6293. @click="
  6294. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6295. "
  6296. >
  6297. <img
  6298. :src="w.isLikes == true ? likes : noLikes"
  6299. alt=""
  6300. />
  6301. </div>
  6302. <div>{{ w.likesCount }}</div>
  6303. </div>
  6304. <div class="commentList" style="margin-right: 15px">
  6305. <div
  6306. class="commentImg"
  6307. @click="commentOther(w, toolIndex, wIndex)"
  6308. >
  6309. <img
  6310. src="../assets/icon/comment/comment.png"
  6311. alt=""
  6312. />
  6313. </div>
  6314. <div>{{ w.commentCount }}</div>
  6315. </div>
  6316. </div>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6321. 未提交
  6322. </div>
  6323. <div
  6324. class="noWorksS"
  6325. v-if="noWorksS && noWorksS[toolIndex].length"
  6326. >
  6327. <div
  6328. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6329. :key="sIndex"
  6330. class="noWorksName"
  6331. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6332. >
  6333. <el-tooltip effect="dark" :content="s.student" placement="top">
  6334. <span>{{ s.student }}</span>
  6335. </el-tooltip>
  6336. </div>
  6337. </div>
  6338. </div>
  6339. <div
  6340. v-if="
  6341. tType &&
  6342. tType == 2 &&
  6343. !sIsOpen &&
  6344. tool.tool.indexOf(40) != -1
  6345. "
  6346. class="worksBox"
  6347. >
  6348. <div
  6349. class="zuoyeYulan"
  6350. v-if="workStudent[toolIndex].length > 0"
  6351. >
  6352. <span class="worksTitle">作业预览</span>
  6353. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6354. </div>
  6355. <div
  6356. class="worksDetailBox"
  6357. v-if="workStudent[toolIndex].length > 0"
  6358. >
  6359. <div
  6360. class="works"
  6361. style="
  6362. width: 200px;
  6363. height: 140px;
  6364. margin: 10px 10px 10px 0;
  6365. "
  6366. v-for="(w, wIndex) in workStudent[toolIndex]"
  6367. :key="wIndex"
  6368. >
  6369. <div class="workImg">
  6370. <img
  6371. src="../assets/icon/works/noImg.png"
  6372. @click="openPj(w.works, toolIndex)"
  6373. alt
  6374. />
  6375. <img
  6376. class="deleteImg"
  6377. src="../assets/deleteworks.png"
  6378. v-if="
  6379. w.userid == userid || tType == 1 || tType == 4
  6380. "
  6381. @click.stop="deleteWorks(w.wid)"
  6382. alt
  6383. />
  6384. </div>
  6385. <div class="worksName">
  6386. <div>{{ w.sName }}</div>
  6387. </div>
  6388. </div>
  6389. </div>
  6390. </div>
  6391. <div
  6392. v-if="
  6393. tType &&
  6394. ((tType == 2 && sIsOpen == true) ||
  6395. tType == 1 ||
  6396. tType == 4) &&
  6397. tool.tool.indexOf(41) != -1
  6398. "
  6399. >
  6400. <AnswerData2
  6401. v-if="
  6402. worksStudent.length &&
  6403. worksStudent[toolIndex].length > 0
  6404. "
  6405. :problemJson="tool.selectJson.answer"
  6406. :people="worksStudent[toolIndex]"
  6407. ></AnswerData2>
  6408. </div>
  6409. <div
  6410. v-if="
  6411. tType &&
  6412. ((tType == 2 && sIsOpen == true) ||
  6413. tType == 1 ||
  6414. tType == 4) &&
  6415. tool.tool.indexOf(41) != -1
  6416. "
  6417. class="worksBox"
  6418. >
  6419. <div
  6420. class="zuoyeYulan"
  6421. v-if="
  6422. worksStudent.length &&
  6423. worksStudent[toolIndex].length > 0
  6424. "
  6425. >
  6426. <div class="worksTop">
  6427. <div>作业预览</div>
  6428. <div
  6429. class="corOpen"
  6430. @click="contract(toolIndex)"
  6431. v-if="
  6432. (isCloseList[toolIndex].isCloseBoolean) &&
  6433. isCloseList[toolIndex].isClose == 0
  6434. "
  6435. >
  6436. 折叠
  6437. </div>
  6438. <div
  6439. class="corOpen"
  6440. @click="contract(toolIndex)"
  6441. v-if="isCloseList[toolIndex].isClose == 1"
  6442. >
  6443. 展开
  6444. </div>
  6445. </div>
  6446. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6447. </div>
  6448. <div
  6449. :id="'tool-' + toolIndex"
  6450. :style="{
  6451. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6452. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6453. }"
  6454. class="worksDetailBox"
  6455. v-if="
  6456. worksStudent.length &&
  6457. worksStudent[toolIndex].length > 0
  6458. "
  6459. >
  6460. <div
  6461. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6462. :key="wIndex"
  6463. class="isWorksName2"
  6464. @click="openXz(w, toolIndex)"
  6465. >
  6466. {{ w.sName }}
  6467. <img
  6468. class="deleteImg deleteImg2"
  6469. src="../assets/deleteworks.png"
  6470. v-if="w.userid == userid || tType == 1 || tType == 4"
  6471. @click.stop="deleteWorks(w.wid)"
  6472. alt
  6473. />
  6474. </div>
  6475. <!-- <div
  6476. class="works"
  6477. style="
  6478. width: 200px;
  6479. height: 140px;
  6480. margin: 10px 10px 10px 0;
  6481. border-radius: 15px;
  6482. box-shadow: 0 0 6px 1px #dfdada;
  6483. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6484. :class="w.type == 5 ? 'isTypeOne' : ''">
  6485. <div class="workImg">
  6486. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6487. </div>
  6488. <div class="worksName">
  6489. <div>{{ w.sName }}</div>
  6490. </div>
  6491. </div> -->
  6492. </div>
  6493. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6494. 未提交
  6495. </div>
  6496. <div
  6497. class="noWorksS"
  6498. v-if="noWorksS && noWorksS[toolIndex].length"
  6499. >
  6500. <div
  6501. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6502. :key="sIndex"
  6503. class="noWorksName"
  6504. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6505. >
  6506. <el-tooltip effect="dark" :content="s.student" placement="top">
  6507. <span>{{ s.student }}</span>
  6508. </el-tooltip>
  6509. </div>
  6510. </div>
  6511. </div>
  6512. <div
  6513. v-if="
  6514. tType &&
  6515. tType == 2 &&
  6516. !sIsOpen &&
  6517. tool.tool.indexOf(41) != -1
  6518. "
  6519. class="worksBox"
  6520. >
  6521. <div
  6522. class="zuoyeYulan"
  6523. v-if="workStudent[toolIndex].length > 0"
  6524. >
  6525. <span class="worksTitle">作业预览</span>
  6526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6527. </div>
  6528. <div
  6529. class="worksDetailBox"
  6530. v-if="workStudent[toolIndex].length > 0"
  6531. >
  6532. <div
  6533. class="works"
  6534. style="
  6535. width: 200px;
  6536. height: 140px;
  6537. margin: 10px 10px 10px 0;
  6538. "
  6539. v-for="(w, wIndex) in workStudent[toolIndex]"
  6540. :key="wIndex"
  6541. >
  6542. <div class="workImg">
  6543. <img
  6544. src="../assets/icon/works/noImg.png"
  6545. @click="openXz(w, toolIndex)"
  6546. alt
  6547. />
  6548. <img
  6549. class="deleteImg"
  6550. src="../assets/deleteworks.png"
  6551. v-if="
  6552. w.userid == userid || tType == 1 || tType == 4
  6553. "
  6554. @click.stop="deleteWorks(w.wid)"
  6555. alt
  6556. />
  6557. </div>
  6558. <div class="worksName">
  6559. <div>{{ w.sName }}</div>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. </div>
  6564. <div v-if="false" class="xuan_right_box">
  6565. <div
  6566. class="tool_right_box"
  6567. v-for="(item, index) in tool.sentenceList"
  6568. :key="index"
  6569. >
  6570. <div>
  6571. <span
  6572. style="word-break: break-all; white-space: normal"
  6573. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6574. >
  6575. </div>
  6576. <div class="right_box_xuan">
  6577. <span>正确率</span>
  6578. <span>{{
  6579. (checkJson[toolIndex][index].right
  6580. ? checkJson[toolIndex][index].right
  6581. : 0) + "%"
  6582. }}</span>
  6583. </div>
  6584. <div class="right_box_xuan">
  6585. <span>答对人数</span>
  6586. <span>{{
  6587. checkJson[toolIndex][index].rightPerson.length
  6588. }}</span>
  6589. </div>
  6590. </div>
  6591. </div>
  6592. <div
  6593. v-if="
  6594. tType &&
  6595. ((tType == 2 && sIsOpen == true) ||
  6596. tType == 1 ||
  6597. tType == 4) &&
  6598. tool.tool.indexOf(47) != -1
  6599. "
  6600. >
  6601. <!-- <AnswerData
  6602. v-if="
  6603. checkJson[toolIndex].length &&
  6604. (tool.sentenceList || tool.sentenceList.length > 0)
  6605. "
  6606. :people="checkJson[toolIndex]"
  6607. ></AnswerData> -->
  6608. <sortToolWorkShow v-if="
  6609. worksStudent[toolIndex].length
  6610. "
  6611. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6612. </div>
  6613. <div
  6614. v-if="
  6615. tType &&
  6616. tType == 2 &&
  6617. !sIsOpen &&
  6618. tool.tool.indexOf(47) != -1
  6619. "
  6620. class="worksBox"
  6621. >
  6622. <div
  6623. class="zuoyeYulan"
  6624. v-if="workStudent[toolIndex].length > 0"
  6625. >
  6626. <span class="worksTitle">作业预览</span>
  6627. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6628. </div>
  6629. <div
  6630. class="worksDetailBox"
  6631. v-if="workStudent[toolIndex].length > 0"
  6632. >
  6633. <div
  6634. class="works"
  6635. style="
  6636. width: 200px;
  6637. height: 140px;
  6638. margin: 10px 10px 10px 0;
  6639. "
  6640. v-for="(w, wIndex) in workStudent[toolIndex]"
  6641. :key="wIndex"
  6642. >
  6643. <!-- @click="openXz(w, toolIndex)" -->
  6644. <div class="workImg" @click="openSen(w, toolIndex)">
  6645. <img src="../assets/icon/works/noImg.png" alt />
  6646. <img
  6647. class="deleteImg"
  6648. src="../assets/deleteworks.png"
  6649. v-if="
  6650. w.userid == userid || tType == 1 || tType == 4
  6651. "
  6652. @click.stop="deleteWorks(w.wid)"
  6653. alt
  6654. />
  6655. </div>
  6656. <div class="worksName">
  6657. <div>
  6658. {{ w.sName }}
  6659. </div>
  6660. </div>
  6661. </div>
  6662. </div>
  6663. </div>
  6664. <div
  6665. v-if="
  6666. tType &&
  6667. ((tType == 2 && sIsOpen == true) ||
  6668. tType == 1 ||
  6669. tType == 4) &&
  6670. tool.tool.indexOf(47) != -1
  6671. "
  6672. class="worksBox"
  6673. >
  6674. <div
  6675. class="zuoyeYulan"
  6676. v-if="
  6677. worksStudent.length &&
  6678. worksStudent[toolIndex].length > 0
  6679. "
  6680. >
  6681. <div class="worksTop">
  6682. <div>作业预览</div>
  6683. <div
  6684. class="corOpen"
  6685. @click="contract(toolIndex)"
  6686. v-if="
  6687. (isCloseList[toolIndex].isCloseBoolean) &&
  6688. isCloseList[toolIndex].isClose == 0
  6689. "
  6690. >
  6691. 折叠
  6692. </div>
  6693. <div
  6694. class="corOpen"
  6695. @click="contract(toolIndex)"
  6696. v-if="isCloseList[toolIndex].isClose == 1"
  6697. >
  6698. 展开
  6699. </div>
  6700. </div>
  6701. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6702. </div>
  6703. <div
  6704. :id="'tool-' + toolIndex"
  6705. :style="{
  6706. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6707. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6708. }"
  6709. class="worksDetailBox"
  6710. v-if="
  6711. worksStudent.length &&
  6712. worksStudent[toolIndex].length > 0
  6713. "
  6714. >
  6715. <!-- @click="openXz(w, toolIndex)" -->
  6716. <div
  6717. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6718. :key="wIndex"
  6719. class="isWorksName2"
  6720. @click="openSen(w, toolIndex)"
  6721. >
  6722. {{ w.sName }}
  6723. <img
  6724. class="deleteImg deleteImg2"
  6725. src="../assets/deleteworks.png"
  6726. v-if="w.userid == userid || tType == 1 || tType == 4"
  6727. @click.stop="deleteWorks(w.wid)"
  6728. alt
  6729. />
  6730. </div>
  6731. </div>
  6732. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6733. 未提交
  6734. </div>
  6735. <div
  6736. class="noWorksS"
  6737. v-if="noWorksS && noWorksS[toolIndex].length"
  6738. >
  6739. <div
  6740. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6741. :key="sIndex"
  6742. class="noWorksName"
  6743. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6744. >
  6745. <el-tooltip effect="dark" :content="s.student" placement="top">
  6746. <span>{{ s.student }}</span>
  6747. </el-tooltip>
  6748. </div>
  6749. </div>
  6750. </div>
  6751. <div
  6752. v-if="
  6753. tType &&
  6754. ((tType == 2 && sIsOpen == true) ||
  6755. tType == 1 ||
  6756. tType == 4) &&
  6757. tool.tool.indexOf(48) != -1
  6758. "
  6759. class="worksBox"
  6760. >
  6761. <div
  6762. class="zuoyeYulan"
  6763. v-if="
  6764. worksStudent.length &&
  6765. worksStudent[toolIndex].length > 0
  6766. "
  6767. >
  6768. <div class="worksTop">
  6769. <div>作业预览</div>
  6770. <div
  6771. class="corOpen"
  6772. @click="contract(toolIndex)"
  6773. v-if="
  6774. (isCloseList[toolIndex].isCloseBoolean) &&
  6775. isCloseList[toolIndex].isClose == 0
  6776. "
  6777. >
  6778. 折叠
  6779. </div>
  6780. <div
  6781. class="corOpen"
  6782. @click="contract(toolIndex)"
  6783. v-if="isCloseList[toolIndex].isClose == 1"
  6784. >
  6785. 展开
  6786. </div>
  6787. </div>
  6788. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6789. </div>
  6790. <div
  6791. :id="'tool-' + toolIndex"
  6792. :style="{
  6793. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6794. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6795. }"
  6796. class="worksDetailBox"
  6797. v-if="
  6798. worksStudent.length &&
  6799. worksStudent[toolIndex].length > 0
  6800. "
  6801. >
  6802. <div
  6803. class="works"
  6804. style="
  6805. width: 200px;
  6806. height: 140px;
  6807. margin: 10px 10px 10px 0;
  6808. border-radius: 15px;
  6809. box-shadow: 0 0 6px 1px #dfdada;
  6810. "
  6811. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6812. :key="wIndex"
  6813. :class="w.type == 1 ? 'isTypeOne' : ''"
  6814. >
  6815. <div class="workImg">
  6816. <img :src="word" @click="openTable(w)" alt />
  6817. <!-- @click="openFile(w.works)" -->
  6818. <div
  6819. class="answerScore"
  6820. v-if="w.score"
  6821. @click.stop="openScore(w)"
  6822. :class="{
  6823. rightW:
  6824. w.userid == userid ||
  6825. tType == 1 ||
  6826. tType == 4 ||
  6827. w.ateacher == userid,
  6828. }"
  6829. >
  6830. {{ JSON.parse(w.score).wScore }}分
  6831. </div>
  6832. <div
  6833. class="answerScore"
  6834. @click.stop="openScore(w)"
  6835. v-else-if="courseDetail.userid == userid"
  6836. :class="{
  6837. rightW:
  6838. w.userid == userid ||
  6839. tType == 1 ||
  6840. tType == 4 ||
  6841. w.ateacher == userid,
  6842. }"
  6843. >
  6844. 评分
  6845. </div>
  6846. <img
  6847. class="deleteImg"
  6848. src="../assets/deleteworks.png"
  6849. v-if="
  6850. w.userid == userid || tType == 1 || tType == 4
  6851. "
  6852. @click.stop="deleteWorks(w.wid)"
  6853. alt
  6854. />
  6855. </div>
  6856. <div class="comment" style="min-width: 200px">
  6857. <div class="worksName">
  6858. <div>{{ w.sName }}</div>
  6859. </div>
  6860. <div class="commentList">
  6861. <div class="commentList">
  6862. <div
  6863. class="commentImg"
  6864. @click="
  6865. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6866. "
  6867. >
  6868. <img
  6869. :src="w.isLikes == true ? likes : noLikes"
  6870. alt=""
  6871. />
  6872. </div>
  6873. <div>{{ w.likesCount }}</div>
  6874. </div>
  6875. <div class="commentList" style="margin-right: 15px">
  6876. <div
  6877. class="commentImg"
  6878. @click="commentOther(w, toolIndex, wIndex)"
  6879. >
  6880. <img
  6881. src="../assets/icon/comment/comment.png"
  6882. alt=""
  6883. />
  6884. </div>
  6885. <div>{{ w.commentCount }}</div>
  6886. </div>
  6887. </div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6892. 未提交
  6893. </div>
  6894. <div
  6895. class="noWorksS"
  6896. v-if="noWorksS && noWorksS[toolIndex].length"
  6897. >
  6898. <div
  6899. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6900. :key="sIndex"
  6901. class="noWorksName"
  6902. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6903. >
  6904. <el-tooltip effect="dark" :content="s.student" placement="top">
  6905. <span>{{ s.student }}</span>
  6906. </el-tooltip>
  6907. </div>
  6908. </div>
  6909. </div>
  6910. <div
  6911. v-if="
  6912. tType &&
  6913. tType == 2 &&
  6914. !sIsOpen &&
  6915. tool.tool.indexOf(48) != -1
  6916. "
  6917. class="worksBox"
  6918. >
  6919. <div
  6920. class="zuoyeYulan"
  6921. v-if="workStudent[toolIndex].length > 0"
  6922. >
  6923. <span class="worksTitle">作业预览</span>
  6924. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6925. </div>
  6926. <div
  6927. class="worksDetailBox"
  6928. v-if="workStudent[toolIndex].length > 0"
  6929. >
  6930. <div
  6931. class="works"
  6932. style="
  6933. width: 200px;
  6934. height: 140px;
  6935. margin: 10px 10px 10px 0;
  6936. box-shadow: 0 0 6px 1px #dfdada;
  6937. "
  6938. v-for="(w, wIndex) in workStudent[toolIndex]"
  6939. :key="wIndex"
  6940. >
  6941. <div class="workImg">
  6942. <img :src="word" @click="openTable(w)" alt />
  6943. <div
  6944. class="answerScore"
  6945. v-if="w.score"
  6946. @click.stop="openScore(w)"
  6947. :class="{
  6948. rightW:
  6949. w.userid == userid || tType == 1 || tType == 4,
  6950. }"
  6951. >
  6952. {{ JSON.parse(w.score).wScore }}分
  6953. </div>
  6954. <div
  6955. class="answerScore"
  6956. @click.stop="openScore(w)"
  6957. v-else-if="courseDetail.userid == userid"
  6958. :class="{
  6959. rightW:
  6960. w.userid == userid || tType == 1 || tType == 4,
  6961. }"
  6962. >
  6963. 评分
  6964. </div>
  6965. <img
  6966. class="deleteImg"
  6967. src="../assets/deleteworks.png"
  6968. v-if="
  6969. w.userid == userid || tType == 1 || tType == 4
  6970. "
  6971. @click.stop="deleteWorks(w.wid)"
  6972. alt
  6973. />
  6974. </div>
  6975. <div class="worksName">
  6976. <div>{{ w.sName }}</div>
  6977. </div>
  6978. </div>
  6979. </div>
  6980. </div>
  6981. <div
  6982. v-if="
  6983. tType &&
  6984. ((tType == 2 && sIsOpen == true) ||
  6985. tType == 1 ||
  6986. tType == 4) &&
  6987. tool.tool.indexOf(52) != -1
  6988. "
  6989. class="worksBox"
  6990. >
  6991. <div
  6992. class="zuoyeYulan"
  6993. v-if="
  6994. worksStudent.length &&
  6995. worksStudent[toolIndex].length > 0
  6996. "
  6997. >
  6998. <div class="worksTop">
  6999. <div>作业预览</div>
  7000. <div
  7001. class="corOpen"
  7002. @click="contract(toolIndex)"
  7003. v-if="
  7004. (isCloseList[toolIndex].isCloseBoolean) &&
  7005. isCloseList[toolIndex].isClose == 0
  7006. "
  7007. >
  7008. 折叠
  7009. </div>
  7010. <div
  7011. class="corOpen"
  7012. @click="contract(toolIndex)"
  7013. v-if="isCloseList[toolIndex].isClose == 1"
  7014. >
  7015. 展开
  7016. </div>
  7017. </div>
  7018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7019. </div>
  7020. <div
  7021. :id="'tool-' + toolIndex"
  7022. :style="{
  7023. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7024. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7025. }"
  7026. class="worksDetailBox"
  7027. v-if="
  7028. worksStudent.length &&
  7029. worksStudent[toolIndex].length > 0
  7030. "
  7031. >
  7032. <div
  7033. class="works"
  7034. style="
  7035. width: 200px;
  7036. height: 140px;
  7037. margin: 10px 10px 10px 0;
  7038. border-radius: 15px;
  7039. box-shadow: 0 0 6px 1px #dfdada;
  7040. "
  7041. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7042. :key="wIndex"
  7043. :class="w.type == 1 ? 'isTypeOne' : ''"
  7044. >
  7045. <div class="workImg">
  7046. <img :src="word" @click="openWord(w)" alt />
  7047. <!-- @click="openFile(w.works)" -->
  7048. <div
  7049. class="answerScore"
  7050. v-if="w.score"
  7051. @click.stop="openScore(w)"
  7052. :class="{
  7053. rightW:
  7054. w.userid == userid ||
  7055. tType == 1 ||
  7056. tType == 4 ||
  7057. w.ateacher == userid,
  7058. }"
  7059. >
  7060. {{ JSON.parse(w.score).wScore }}分
  7061. </div>
  7062. <div
  7063. class="answerScore"
  7064. @click.stop="openScore(w)"
  7065. v-else-if="courseDetail.userid == userid"
  7066. :class="{
  7067. rightW:
  7068. w.userid == userid ||
  7069. tType == 1 ||
  7070. tType == 4 ||
  7071. w.ateacher == userid,
  7072. }"
  7073. >
  7074. 评分
  7075. </div>
  7076. <img
  7077. class="deleteImg"
  7078. src="../assets/deleteworks.png"
  7079. v-if="
  7080. w.userid == userid || tType == 1 || tType == 4
  7081. "
  7082. @click.stop="deleteWorks(w.wid)"
  7083. alt
  7084. />
  7085. </div>
  7086. <div class="comment" style="min-width: 200px">
  7087. <div class="worksName">
  7088. <div>{{ w.sName }}</div>
  7089. </div>
  7090. <div class="commentList">
  7091. <div class="commentList">
  7092. <div
  7093. class="commentImg"
  7094. @click="
  7095. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7096. "
  7097. >
  7098. <img
  7099. :src="w.isLikes == true ? likes : noLikes"
  7100. alt=""
  7101. />
  7102. </div>
  7103. <div>{{ w.likesCount }}</div>
  7104. </div>
  7105. <div class="commentList" style="margin-right: 15px">
  7106. <div
  7107. class="commentImg"
  7108. @click="commentOther(w, toolIndex, wIndex)"
  7109. >
  7110. <img
  7111. src="../assets/icon/comment/comment.png"
  7112. alt=""
  7113. />
  7114. </div>
  7115. <div>{{ w.commentCount }}</div>
  7116. </div>
  7117. </div>
  7118. </div>
  7119. </div>
  7120. </div>
  7121. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7122. 未提交
  7123. </div>
  7124. <div
  7125. class="noWorksS"
  7126. v-if="noWorksS && noWorksS[toolIndex].length"
  7127. >
  7128. <div
  7129. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7130. :key="sIndex"
  7131. class="noWorksName"
  7132. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7133. >
  7134. <el-tooltip effect="dark" :content="s.student" placement="top">
  7135. <span>{{ s.student }}</span>
  7136. </el-tooltip>
  7137. </div>
  7138. </div>
  7139. </div>
  7140. <div
  7141. v-if="
  7142. tType &&
  7143. tType == 2 &&
  7144. !sIsOpen &&
  7145. tool.tool.indexOf(52) != -1
  7146. "
  7147. class="worksBox"
  7148. >
  7149. <div
  7150. class="zuoyeYulan"
  7151. v-if="workStudent[toolIndex].length > 0"
  7152. >
  7153. <span class="worksTitle">作业预览</span>
  7154. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7155. </div>
  7156. <div
  7157. class="worksDetailBox"
  7158. v-if="workStudent[toolIndex].length > 0"
  7159. >
  7160. <div
  7161. class="works"
  7162. style="
  7163. width: 200px;
  7164. height: 140px;
  7165. margin: 10px 10px 10px 0;
  7166. box-shadow: 0 0 6px 1px #dfdada;
  7167. "
  7168. v-for="(w, wIndex) in workStudent[toolIndex]"
  7169. :key="wIndex"
  7170. >
  7171. <div class="workImg">
  7172. <img :src="word" @click="openWord(w)" alt />
  7173. <div
  7174. class="answerScore"
  7175. v-if="w.score"
  7176. @click.stop="openScore(w)"
  7177. :class="{
  7178. rightW:
  7179. w.userid == userid || tType == 1 || tType == 4,
  7180. }"
  7181. >
  7182. {{ JSON.parse(w.score).wScore }}分
  7183. </div>
  7184. <div
  7185. class="answerScore"
  7186. @click.stop="openScore(w)"
  7187. v-else-if="courseDetail.userid == userid"
  7188. :class="{
  7189. rightW:
  7190. w.userid == userid || tType == 1 || tType == 4,
  7191. }"
  7192. >
  7193. 评分
  7194. </div>
  7195. <img
  7196. class="deleteImg"
  7197. src="../assets/deleteworks.png"
  7198. v-if="
  7199. w.userid == userid || tType == 1 || tType == 4
  7200. "
  7201. @click.stop="deleteWorks(w.wid)"
  7202. alt
  7203. />
  7204. </div>
  7205. <div class="worksName">
  7206. <div>{{ w.sName }}</div>
  7207. </div>
  7208. </div>
  7209. </div>
  7210. </div>
  7211. <div
  7212. v-if="tool.tool.indexOf(49) != -1"
  7213. class="xuan_right_box"
  7214. style="margin: 0 15px 0 25px; width: 93%"
  7215. >
  7216. <div
  7217. v-if="courseDetail.userid == userid"
  7218. style="
  7219. display: flex;
  7220. justify-content: flex-end;
  7221. margin-right: 10px;
  7222. "
  7223. >
  7224. <el-button
  7225. type="primary"
  7226. size="small"
  7227. @click="addTools(49, toolIndex, taskCount)"
  7228. >分组设置</el-button
  7229. >
  7230. </div>
  7231. <div
  7232. v-if="groupStudentUid[toolIndex]"
  7233. class="group_staic_box"
  7234. >
  7235. <div
  7236. v-for="(gp, gd) in tool.groupJson.group"
  7237. :key="gd"
  7238. class="group_staic"
  7239. >
  7240. <span> {{ gp.name }}</span>
  7241. <span>
  7242. 目前人数{{
  7243. groupStudentUid[toolIndex][gd].length
  7244. }}人</span
  7245. >
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7250. <div
  7251. class="zuoyeYulan"
  7252. v-if="
  7253. worksStudent.length &&
  7254. worksStudent[toolIndex].length > 0
  7255. "
  7256. >
  7257. <span class="worksTitle">作业预览</span>
  7258. </div>
  7259. <div>
  7260. <div
  7261. class="group_workBox"
  7262. v-for="(g, gindex) in tool.groupJson.group"
  7263. :key="gindex"
  7264. >
  7265. <div
  7266. class="group_box"
  7267. v-if="
  7268. groupStudentUid[toolIndex] &&
  7269. worksStudent[toolIndex] &&
  7270. (worksStudent[toolIndex][gindex].length ||
  7271. groupStudentUid[toolIndex][gindex].indexOf(
  7272. userid
  7273. ) != -1)
  7274. "
  7275. >
  7276. <div class="group_title">
  7277. <el-tooltip
  7278. class="item"
  7279. effect="light"
  7280. :content="g.name"
  7281. placement="top"
  7282. >
  7283. <div class="group_name">{{ g.name }}</div>
  7284. </el-tooltip>
  7285. <el-button
  7286. type="primary"
  7287. v-if="
  7288. groupStudentUid[toolIndex][gindex].indexOf(
  7289. userid
  7290. ) != -1
  7291. "
  7292. @click="groupUpload(toolIndex, taskCount, gindex)"
  7293. >上传作业</el-button
  7294. >
  7295. </div>
  7296. <div class="group_work">
  7297. <div
  7298. class="works"
  7299. style="
  7300. width: 200px;
  7301. height: 140px;
  7302. margin: 10px 10px 10px 0;
  7303. border-radius: 15px;
  7304. box-shadow: 0 0 6px 1px #dfdada;
  7305. "
  7306. v-for="(w, wIndex) in worksStudent[toolIndex][
  7307. gindex
  7308. ]"
  7309. :key="wIndex"
  7310. :class="w.type == 1 ? 'isTypeOne' : ''"
  7311. >
  7312. <div class="workImg" v-if="w.type == 0">
  7313. <img
  7314. :src="w.works"
  7315. @click="previewImg(w.works,w)"
  7316. alt
  7317. />
  7318. <div
  7319. class="answerScore"
  7320. v-if="w.score"
  7321. @click.stop="openScore(w)"
  7322. :class="{
  7323. rightW:
  7324. w.userid == userid ||
  7325. tType == 1 ||
  7326. tType == 4 ||
  7327. w.ateacher == userid,
  7328. }"
  7329. >
  7330. {{ JSON.parse(w.score).wScore }}分
  7331. </div>
  7332. <div
  7333. class="answerScore"
  7334. @click.stop="openScore(w)"
  7335. v-else-if="courseDetail.userid == userid"
  7336. :class="{
  7337. rightW:
  7338. w.userid == userid ||
  7339. tType == 1 ||
  7340. tType == 4 ||
  7341. w.ateacher == userid,
  7342. }"
  7343. >
  7344. 评分
  7345. </div>
  7346. <img
  7347. class="deleteImg"
  7348. src="../assets/deleteworks.png"
  7349. v-if="
  7350. w.userid == userid ||
  7351. tType == 1 ||
  7352. tType == 4
  7353. "
  7354. @click.stop="deleteWorks(w.wid)"
  7355. alt
  7356. />
  7357. </div>
  7358. <div class="workImg" v-if="w.type == 1">
  7359. <img
  7360. :src="word"
  7361. @click="openFile(w.works,w)"
  7362. alt
  7363. />
  7364. <!-- @click="openFile(w.works)" -->
  7365. <div
  7366. class="answerScore"
  7367. v-if="w.score"
  7368. @click.stop="openScore(w)"
  7369. :class="{
  7370. rightW:
  7371. w.userid == userid ||
  7372. tType == 1 ||
  7373. tType == 4 ||
  7374. w.ateacher == userid,
  7375. }"
  7376. >
  7377. {{ JSON.parse(w.score).wScore }}分
  7378. </div>
  7379. <div
  7380. class="answerScore"
  7381. @click.stop="openScore(w)"
  7382. v-else-if="courseDetail.userid == userid"
  7383. :class="{
  7384. rightW:
  7385. w.userid == userid ||
  7386. tType == 1 ||
  7387. tType == 4 ||
  7388. w.ateacher == userid,
  7389. }"
  7390. >
  7391. 评分
  7392. </div>
  7393. <img
  7394. class="deleteImg"
  7395. src="../assets/deleteworks.png"
  7396. v-if="
  7397. w.userid == userid ||
  7398. tType == 1 ||
  7399. tType == 4
  7400. "
  7401. @click.stop="deleteWorks(w.wid)"
  7402. alt
  7403. />
  7404. </div>
  7405. <div class="workImg" v-if="w.type == 3">
  7406. <img
  7407. style="cursor: pointer"
  7408. :src="video"
  7409. @click="openVideo(w)"
  7410. alt
  7411. />
  7412. <!-- @click="openVideo(w.works)" -->
  7413. <div
  7414. class="answerScore"
  7415. v-if="w.score"
  7416. @click.stop="openScore(w)"
  7417. :class="{
  7418. rightW:
  7419. w.userid == userid ||
  7420. tType == 1 ||
  7421. tType == 4 ||
  7422. w.ateacher == userid,
  7423. }"
  7424. >
  7425. {{ JSON.parse(w.score).wScore }}分
  7426. </div>
  7427. <div
  7428. class="answerScore"
  7429. @click.stop="openScore(w)"
  7430. v-else-if="courseDetail.userid == userid"
  7431. :class="{
  7432. rightW:
  7433. w.userid == userid ||
  7434. tType == 1 ||
  7435. tType == 4 ||
  7436. w.ateacher == userid,
  7437. }"
  7438. >
  7439. 评分
  7440. </div>
  7441. <img
  7442. class="deleteImg"
  7443. src="../assets/deleteworks.png"
  7444. v-if="
  7445. w.userid == userid ||
  7446. tType == 1 ||
  7447. tType == 4
  7448. "
  7449. @click.stop="deleteWorks(w.wid)"
  7450. alt
  7451. />
  7452. </div>
  7453. <div class="workImg" v-if="w.type == 12">
  7454. <img
  7455. style="cursor: pointer"
  7456. :src="word2"
  7457. @click="downloadFile(w.works,w.userid)"
  7458. alt
  7459. />
  7460. <!-- @click="openVideo(w.works)" -->
  7461. <div
  7462. class="answerScore"
  7463. v-if="w.score"
  7464. @click.stop="openScore(w)"
  7465. :class="{
  7466. rightW:
  7467. w.userid == userid ||
  7468. tType == 1 ||
  7469. tType == 4 ||
  7470. w.ateacher == userid,
  7471. }"
  7472. >
  7473. {{ JSON.parse(w.score).wScore }}分
  7474. </div>
  7475. <div
  7476. class="answerScore"
  7477. @click.stop="openScore(w)"
  7478. v-else-if="courseDetail.userid == userid"
  7479. :class="{
  7480. rightW:
  7481. w.userid == userid ||
  7482. tType == 1 ||
  7483. tType == 4 ||
  7484. w.ateacher == userid,
  7485. }"
  7486. >
  7487. 评分
  7488. </div>
  7489. <img
  7490. class="deleteImg"
  7491. src="../assets/deleteworks.png"
  7492. v-if="
  7493. w.userid == userid ||
  7494. tType == 1 ||
  7495. tType == 4
  7496. "
  7497. @click.stop="deleteWorks(w.wid)"
  7498. alt
  7499. />
  7500. </div>
  7501. <div class="comment" style="min-width: 200px">
  7502. <div class="worksName">
  7503. <div>{{ w.sName }}</div>
  7504. </div>
  7505. <div class="commentList">
  7506. <div class="commentList">
  7507. <div
  7508. class="commentImg"
  7509. @click="
  7510. isLikes(
  7511. w.wid,
  7512. userid,
  7513. 1,
  7514. null,
  7515. w.isLikes,
  7516. w.sName
  7517. )
  7518. "
  7519. >
  7520. <img
  7521. :src="
  7522. w.isLikes == true ? likes : noLikes
  7523. "
  7524. alt=""
  7525. />
  7526. </div>
  7527. <div>{{ w.likesCount }}</div>
  7528. </div>
  7529. <div
  7530. class="commentList"
  7531. style="margin-right: 15px"
  7532. >
  7533. <div
  7534. class="commentImg"
  7535. @click="
  7536. commentOther(
  7537. w,
  7538. toolIndex,
  7539. wIndex,
  7540. gindex
  7541. )
  7542. "
  7543. >
  7544. <img
  7545. src="../assets/icon/comment/comment.png"
  7546. alt=""
  7547. />
  7548. </div>
  7549. <div>{{ w.commentCount }}</div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. </div>
  7560. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7561. 上传文件
  7562. <input
  7563. type="file"
  7564. accept="image/png, image/gif, image/jpeg"
  7565. style="display: none"
  7566. @change="beforeUpload1($event, 2, index)"
  7567. />
  7568. </div>-->
  7569. </div>
  7570. </div>
  7571. <!-- <div
  7572. class="vedioBox"
  7573. style="margin-top: 10px"
  7574. v-if="
  7575. courseDetail.userid == userid ||
  7576. (courseDetail.course_teacher &&
  7577. courseDetail.course_teacher.indexOf(userid) != -1)
  7578. "
  7579. :style="{
  7580. borderRadius:
  7581. !(
  7582. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7583. .toolChoose[0].tool &&
  7584. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7585. .toolChoose[0].tool.length > 0
  7586. ) &&
  7587. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7588. .taskDetail == '' &&
  7589. vChapterData[taskCount].length == 0 &&
  7590. fileC[taskCount].length == 0
  7591. ? '0 0 20px 20px'
  7592. : '20px',
  7593. }"
  7594. >
  7595. <div
  7596. class="queTop"
  7597. @click="isClose = !isClose"
  7598. style="
  7599. padding: 15px 0 15px 37px;
  7600. justify-content: space-between;
  7601. "
  7602. >
  7603. <div class="queTopTitle">新增工具</div>
  7604. <div class="queTopRight">
  7605. <div class="queTopClose" v-if="isClose == 0">
  7606. 展开
  7607. <div class="closeImg">
  7608. <img src="../assets/icon/newIcon/close.png" alt="" />
  7609. </div>
  7610. </div>
  7611. <div class="queTopClose" v-if="isClose == 1">
  7612. 折叠
  7613. <div class="openImg">
  7614. <img src="../assets/icon/newIcon/open.png" alt="" />
  7615. </div>
  7616. </div>
  7617. <el-button
  7618. style="margin: 0 30px 0 auto"
  7619. type="primary"
  7620. size="small"
  7621. v-if="isClose == 1 && checktoolArray.length > 0"
  7622. @click.stop="addToolChoose"
  7623. >确定</el-button
  7624. >
  7625. </div>
  7626. </div>
  7627. <div
  7628. class="tool_work_box"
  7629. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7630. >
  7631. <div class="tool_box">
  7632. <div class="tool_type_box">
  7633. <div class="chooseWho">
  7634. <div
  7635. :class="toolType == 0 ? 'isChooseActive' : ''"
  7636. @click="(toolType = 0), $forceUpdate()"
  7637. >
  7638. 互动类
  7639. </div>
  7640. <div
  7641. :class="toolType == 1 ? 'isChooseActive' : ''"
  7642. @click="(toolType = 1), $forceUpdate()"
  7643. >
  7644. 思维类
  7645. </div>
  7646. <div
  7647. :class="toolType == 2 ? 'isChooseActive' : ''"
  7648. @click="(toolType = 2), $forceUpdate()"
  7649. >
  7650. 测评类
  7651. </div>
  7652. <div
  7653. :class="toolType == 3 ? 'isChooseActive' : ''"
  7654. @click="(toolType = 3), $forceUpdate()"
  7655. >
  7656. 编程类
  7657. </div>
  7658. <div
  7659. :class="toolType == 5 ? 'isChooseActive' : ''"
  7660. @click="(toolType = 5), $forceUpdate()"
  7661. >
  7662. 学科类
  7663. </div>
  7664. </div>
  7665. </div>
  7666. <div>
  7667. <div class="toolSort" v-if="toolType == 0">
  7668. <div class="tool">
  7669. <div class="whiteBIcon" @click="addTools2(10)">
  7670. <img
  7671. src="../assets/icon/thirdToolList/time.png"
  7672. alt
  7673. />
  7674. <div style="margin: 5px 0">倒计时</div>
  7675. </div>
  7676. <div class="check" @click="addTools2(10)">
  7677. <img
  7678. src="../assets/icon/checkNo.png"
  7679. alt
  7680. v-if="checktoolArray.indexOf(10) == -1"
  7681. />
  7682. <div class="checkDiv" v-else>
  7683. <img src="../assets/icon/checkedIs.png" alt /><span
  7684. >已选择</span
  7685. >
  7686. </div>
  7687. </div>
  7688. </div>
  7689. <div class="tool">
  7690. <div class="whiteBIcon" @click="addTools2(65)">
  7691. <img
  7692. src="../assets/icon/firstToolList/pickPeople.png"
  7693. alt
  7694. />
  7695. <div style="margin: 5px 0">挑人</div>
  7696. </div>
  7697. <div class="check" @click="addTools2(65)">
  7698. <img
  7699. src="../assets/icon/checkNo.png"
  7700. alt
  7701. v-if="checktoolArray.indexOf(65) == -1"
  7702. />
  7703. <div class="checkDiv" v-else>
  7704. <img src="../assets/icon/checkedIs.png" alt /><span
  7705. >已选择</span
  7706. >
  7707. </div>
  7708. </div>
  7709. </div>
  7710. </div>
  7711. <div class="toolSort" v-if="toolType == 1">
  7712. <div class="tool">
  7713. <div class="whiteBIcon" @click="addTools2(7)">
  7714. <img
  7715. src="../assets/icon/secondToolList/mindNetwork.png"
  7716. alt
  7717. />
  7718. <div style="margin: 5px 0">思维网格</div>
  7719. </div>
  7720. <div class="check" @click="addTools2(7)">
  7721. <img
  7722. src="../assets/icon/checkNo.png"
  7723. alt
  7724. v-if="checktoolArray.indexOf(7) == -1"
  7725. />
  7726. <div class="checkDiv" v-else>
  7727. <img src="../assets/icon/checkedIs.png" alt /><span
  7728. >已选择</span
  7729. >
  7730. </div>
  7731. </div>
  7732. </div>
  7733. <div class="tool">
  7734. <div class="whiteBIcon" @click="addTools2(1)">
  7735. <img
  7736. src="../assets/icon/secondToolList/whiteBoard.png"
  7737. alt
  7738. />
  7739. <div style="margin: 5px 0">电子白板</div>
  7740. </div>
  7741. <div class="check" @click="addTools2(1)">
  7742. <img
  7743. src="../assets/icon/checkNo.png"
  7744. alt
  7745. v-if="checktoolArray.indexOf(1) == -1"
  7746. />
  7747. <div class="checkDiv" v-else>
  7748. <img src="../assets/icon/checkedIs.png" alt /><span
  7749. >已选择</span
  7750. >
  7751. </div>
  7752. </div>
  7753. </div>
  7754. <div class="tool">
  7755. <div class="whiteBIcon" @click="addTools2(52)">
  7756. <img
  7757. src="../assets/icon/fourthToolList/text.png"
  7758. alt
  7759. />
  7760. <div style="margin: 5px 0">文档</div>
  7761. </div>
  7762. <div class="check" @click="addTools2(52)">
  7763. <img
  7764. src="../assets/icon/checkNo.png"
  7765. alt
  7766. v-if="checktoolArray.indexOf(52) == -1"
  7767. />
  7768. <div class="checkDiv" v-else>
  7769. <img src="../assets/icon/checkedIs.png" alt /><span
  7770. >已选择</span
  7771. >
  7772. </div>
  7773. </div>
  7774. </div>
  7775. <div class="tool">
  7776. <div class="whiteBIcon" @click="addTools2(3)">
  7777. <img
  7778. src="../assets/icon/secondToolList/mindMapping.png"
  7779. alt
  7780. />
  7781. <div style="margin: 5px 0">思维导图</div>
  7782. </div>
  7783. <div class="check" @click="addTools2(3)">
  7784. <img
  7785. src="../assets/icon/checkNo.png"
  7786. alt
  7787. v-if="checktoolArray.indexOf(3) == -1"
  7788. />
  7789. <div class="checkDiv" v-else>
  7790. <img src="../assets/icon/checkedIs.png" alt /><span
  7791. >已选择</span
  7792. >
  7793. </div>
  7794. </div>
  7795. </div>
  7796. <div class="tool">
  7797. <div class="whiteBIcon" @click="addTools2(48)">
  7798. <img
  7799. src="../assets/icon/fourthToolList/table.png"
  7800. alt
  7801. />
  7802. <div style="margin: 5px 0">表格</div>
  7803. </div>
  7804. <div class="check" @click="addTools2(48)">
  7805. <img
  7806. src="../assets/icon/checkNo.png"
  7807. alt
  7808. v-if="checktoolArray.indexOf(48) == -1"
  7809. />
  7810. <div class="checkDiv" v-else>
  7811. <img src="../assets/icon/checkedIs.png" alt /><span
  7812. >已选择</span
  7813. >
  7814. </div>
  7815. </div>
  7816. </div>
  7817. </div>
  7818. <div class="toolSort" v-if="toolType == 6">
  7819. <div v-show="tooC == 49">
  7820. <img
  7821. @click="addTools(tooC, toolIndex, taskCount)"
  7822. src="../assets/icon/fourthToolList/group.png"
  7823. alt
  7824. />
  7825. <div style="margin: 5px 0">学生分组</div>
  7826. </div>
  7827. </div>
  7828. <div class="toolSort" v-if="toolType == 2">
  7829. <div class="tool">
  7830. <div class="whiteBIcon" @click="addTools2(16)">
  7831. <img
  7832. src="../assets/icon/thirdToolList/work.png"
  7833. alt
  7834. />
  7835. <div style="margin: 5px 0">作业提交</div>
  7836. </div>
  7837. <div class="check" @click="addTools2(16)">
  7838. <img
  7839. src="../assets/icon/checkNo.png"
  7840. alt
  7841. v-if="checktoolArray.indexOf(16) == -1"
  7842. />
  7843. <div class="checkDiv" v-else>
  7844. <img src="../assets/icon/checkedIs.png" alt /><span
  7845. >已选择</span
  7846. >
  7847. </div>
  7848. </div>
  7849. </div>
  7850. <div class="tool">
  7851. <div class="whiteBIcon" @click="addTools2(50)">
  7852. <img
  7853. src="../assets/icon/thirdToolList/plwork.png"
  7854. alt
  7855. />
  7856. <div style="margin: 5px 0">批量上传</div>
  7857. </div>
  7858. <div class="check" @click="addTools2(50)">
  7859. <img
  7860. src="../assets/icon/checkNo.png"
  7861. alt
  7862. v-if="checktoolArray.indexOf(50) == -1"
  7863. />
  7864. <div class="checkDiv" v-else>
  7865. <img src="../assets/icon/checkedIs.png" alt /><span
  7866. >已选择</span
  7867. >
  7868. </div>
  7869. </div>
  7870. </div>
  7871. </div>
  7872. <div class="toolSort" v-if="toolType == 3">
  7873. <div class="tool">
  7874. <div class="whiteBIcon" @click="addTools2(18)">
  7875. <img
  7876. src="../assets/icon/thirdToolList/trainPlatform.png"
  7877. alt
  7878. />
  7879. <div style="margin: 5px 0">训练平台</div>
  7880. </div>
  7881. <div class="check" @click="addTools2(18)">
  7882. <img
  7883. src="../assets/icon/checkNo.png"
  7884. alt
  7885. v-if="checktoolArray.indexOf(18) == -1"
  7886. />
  7887. <div class="checkDiv" v-else>
  7888. <img src="../assets/icon/checkedIs.png" alt /><span
  7889. >已选择</span
  7890. >
  7891. </div>
  7892. </div>
  7893. </div>
  7894. <div class="tool">
  7895. <div class="whiteBIcon" @click="addTools2(21)">
  7896. <img
  7897. src="../assets/icon/fourthToolList/program.png"
  7898. alt
  7899. />
  7900. <div style="margin: 5px 0">AIoT Blockly</div>
  7901. </div>
  7902. <div class="check" @click="addTools2(21)">
  7903. <img
  7904. src="../assets/icon/checkNo.png"
  7905. alt
  7906. v-if="checktoolArray.indexOf(21) == -1"
  7907. />
  7908. <div class="checkDiv" v-else>
  7909. <img src="../assets/icon/checkedIs.png" alt /><span
  7910. >已选择</span
  7911. >
  7912. </div>
  7913. </div>
  7914. </div>
  7915. <div class="tool">
  7916. <div class="whiteBIcon" @click="addTools2(23)">
  7917. <img
  7918. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7919. alt
  7920. />
  7921. <div style="margin: 5px 0">AI Python</div>
  7922. </div>
  7923. <div class="check" @click="addTools2(23)">
  7924. <img
  7925. src="../assets/icon/checkNo.png"
  7926. alt
  7927. v-if="checktoolArray.indexOf(23) == -1"
  7928. />
  7929. <div class="checkDiv" v-else>
  7930. <img src="../assets/icon/checkedIs.png" alt /><span
  7931. >已选择</span
  7932. >
  7933. </div>
  7934. </div>
  7935. </div>
  7936. <div class="tool">
  7937. <div class="whiteBIcon" @click="addTools2(24)">
  7938. <img
  7939. src="../assets/icon/fourthToolList/AIprogram.png"
  7940. alt
  7941. />
  7942. <div style="margin: 5px 0">AI Blockly</div>
  7943. </div>
  7944. <div class="check" @click="addTools2(24)">
  7945. <img
  7946. src="../assets/icon/checkNo.png"
  7947. alt
  7948. v-if="checktoolArray.indexOf(24) == -1"
  7949. />
  7950. <div class="checkDiv" v-else>
  7951. <img src="../assets/icon/checkedIs.png" alt /><span
  7952. >已选择</span
  7953. >
  7954. </div>
  7955. </div>
  7956. </div>
  7957. <div class="tool">
  7958. <div class="whiteBIcon" @click="addTools2(32)">
  7959. <img
  7960. src="../assets/icon/thirdToolList/code.png"
  7961. alt
  7962. />
  7963. <div style="margin: 5px 0">源码编辑</div>
  7964. </div>
  7965. <div class="check" @click="addTools2(32)">
  7966. <img
  7967. src="../assets/icon/checkNo.png"
  7968. alt
  7969. v-if="checktoolArray.indexOf(32) == -1"
  7970. />
  7971. <div class="checkDiv" v-else>
  7972. <img src="../assets/icon/checkedIs.png" alt /><span
  7973. >已选择</span
  7974. >
  7975. </div>
  7976. </div>
  7977. </div>
  7978. <div class="tool">
  7979. <div class="whiteBIcon" @click="addTools2(57)">
  7980. <img
  7981. src="../assets/icon/fourthToolList/cocopi.png"
  7982. alt
  7983. />
  7984. <div style="margin: 5px 0">CocoPi</div>
  7985. </div>
  7986. <div class="check" @click="addTools2(57)">
  7987. <img
  7988. src="../assets/icon/checkNo.png"
  7989. alt
  7990. v-if="checktoolArray.indexOf(57) == -1"
  7991. />
  7992. <div class="checkDiv" v-else>
  7993. <img src="../assets/icon/checkedIs.png" alt /><span
  7994. >已选择</span
  7995. >
  7996. </div>
  7997. </div>
  7998. </div>
  7999. <div class="tool">
  8000. <div class="whiteBIcon" @click="addTools2(63)">
  8001. <img
  8002. src="../assets/icon/fourthToolList/Wood.png"
  8003. alt
  8004. />
  8005. <div style="margin: 5px 0">海龟编程</div>
  8006. </div>
  8007. <div class="check" @click="addTools2(63)">
  8008. <img
  8009. src="../assets/icon/checkNo.png"
  8010. alt
  8011. v-if="checktoolArray.indexOf(63) == -1"
  8012. />
  8013. <div class="checkDiv" v-else>
  8014. <img src="../assets/icon/checkedIs.png" alt /><span
  8015. >已选择</span
  8016. >
  8017. </div>
  8018. </div>
  8019. </div>
  8020. </div>
  8021. <div class="toolSort" v-if="toolType == 5">
  8022. <div class="tool">
  8023. <div class="whiteBIcon" @click="addTools2(28)">
  8024. <img
  8025. src="../assets/icon/secondToolList/translation.png"
  8026. alt
  8027. />
  8028. <div style="margin: 5px 0">翻译</div>
  8029. </div>
  8030. <div class="check" @click="addTools2(28)">
  8031. <img
  8032. src="../assets/icon/checkNo.png"
  8033. alt
  8034. v-if="checktoolArray.indexOf(28) == -1"
  8035. />
  8036. <div class="checkDiv" v-else>
  8037. <img src="../assets/icon/checkedIs.png" alt /><span
  8038. >已选择</span
  8039. >
  8040. </div>
  8041. </div>
  8042. </div>
  8043. <div class="tool">
  8044. <div class="whiteBIcon" @click="addTools2(31)">
  8045. <img
  8046. src="../assets/icon/secondToolList/networkPanel.png"
  8047. alt
  8048. />
  8049. <div style="margin: 5px 0">数字画板</div>
  8050. </div>
  8051. <div class="check" @click="addTools2(31)">
  8052. <img
  8053. src="../assets/icon/checkNo.png"
  8054. alt
  8055. v-if="checktoolArray.indexOf(31) == -1"
  8056. />
  8057. <div class="checkDiv" v-else>
  8058. <img src="../assets/icon/checkedIs.png" alt /><span
  8059. >已选择</span
  8060. >
  8061. </div>
  8062. </div>
  8063. </div>
  8064. <div class="tool">
  8065. <div class="whiteBIcon" @click="addTools2(39)">
  8066. <img
  8067. src="../assets/icon/secondToolList/GeoGebra.png"
  8068. alt
  8069. />
  8070. <div style="margin: 5px 0">GeoGebra</div>
  8071. </div>
  8072. <div class="check" @click="addTools2(39)">
  8073. <img
  8074. src="../assets/icon/checkNo.png"
  8075. alt
  8076. v-if="checktoolArray.indexOf(39) == -1"
  8077. />
  8078. <div class="checkDiv" v-else>
  8079. <img src="../assets/icon/checkedIs.png" alt /><span
  8080. >已选择</span
  8081. >
  8082. </div>
  8083. </div>
  8084. </div>
  8085. <div class="tool">
  8086. <div class="whiteBIcon" @click="addTools2(66)">
  8087. <img
  8088. src="../assets/icon/secondToolList/formulaEdi.png"
  8089. alt
  8090. />
  8091. <div style="margin: 5px 0">公式编辑</div>
  8092. </div>
  8093. <div class="check" @click="addTools2(66)">
  8094. <img
  8095. src="../assets/icon/checkNo.png"
  8096. alt
  8097. v-if="checktoolArray.indexOf(66) == -1"
  8098. />
  8099. <div class="checkDiv" v-else>
  8100. <img src="../assets/icon/checkedIs.png" alt /><span
  8101. >已选择</span
  8102. >
  8103. </div>
  8104. </div>
  8105. </div>
  8106. <div class="tool">
  8107. <div class="whiteBIcon" @click="addTools2(67)">
  8108. <img
  8109. src="../assets/icon/secondToolList/molStr.png"
  8110. alt
  8111. />
  8112. <div style="margin: 5px 0">分子结构</div>
  8113. </div>
  8114. <div class="check" @click="addTools2(67)">
  8115. <img
  8116. src="../assets/icon/checkNo.png"
  8117. alt
  8118. v-if="checktoolArray.indexOf(67) == -1"
  8119. />
  8120. <div class="checkDiv" v-else>
  8121. <img src="../assets/icon/checkedIs.png" alt /><span
  8122. >已选择</span
  8123. >
  8124. </div>
  8125. </div>
  8126. </div>
  8127. <div class="tool">
  8128. <div class="whiteBIcon" @click="addTools2(68)">
  8129. <img
  8130. src="../assets/icon/secondToolList/timeAxis.png"
  8131. alt
  8132. />
  8133. <div style="margin: 5px 0">时间轴</div>
  8134. </div>
  8135. <div class="check" @click="addTools2(68)">
  8136. <img
  8137. src="../assets/icon/checkNo.png"
  8138. alt
  8139. v-if="checktoolArray.indexOf(68) == -1"
  8140. />
  8141. <div class="checkDiv" v-else>
  8142. <img src="../assets/icon/checkedIs.png" alt /><span
  8143. >已选择</span
  8144. >
  8145. </div>
  8146. </div>
  8147. </div>
  8148. </div>
  8149. <div class="toolSort" v-if="toolType == 7">
  8150. <div class="tool">
  8151. <div class="whiteBIcon" @click="addTools2(40)">
  8152. <img
  8153. src="../assets/icon/secondToolList/eval.png"
  8154. alt
  8155. />
  8156. <div style="margin: 5px 0">个人评价</div>
  8157. </div>
  8158. <div class="check" @click="addTools2(40)">
  8159. <img
  8160. src="../assets/icon/checkNo.png"
  8161. alt
  8162. v-if="checktoolArray.indexOf(40) == -1"
  8163. />
  8164. <div class="checkDiv" v-else>
  8165. <img src="../assets/icon/checkedIs.png" alt /><span
  8166. >已选择</span
  8167. >
  8168. </div>
  8169. </div>
  8170. </div>
  8171. </div>
  8172. <div class="toolSort" v-if="toolType == 4">
  8173. <div class="tool">
  8174. <div class="whiteBIcon" @click="addTools2(26)">
  8175. <img
  8176. src="../assets/icon/thirdToolList/courseDesign.png"
  8177. alt
  8178. />
  8179. <div style="margin: 5px 0">课程设计</div>
  8180. </div>
  8181. <div class="check" @click="addTools2(26)">
  8182. <img
  8183. src="../assets/icon/checkNo.png"
  8184. alt
  8185. v-if="checktoolArray.indexOf(26) == -1"
  8186. />
  8187. <div class="checkDiv" v-else>
  8188. <img src="../assets/icon/checkedIs.png" alt /><span
  8189. >已选择</span
  8190. >
  8191. </div>
  8192. </div>
  8193. </div>
  8194. <div class="tool">
  8195. <div class="whiteBIcon" @click="addTools2(25)">
  8196. <img
  8197. src="../assets/icon/thirdToolList/evalua.png"
  8198. alt
  8199. />
  8200. <div style="margin: 5px 0">目标管理</div>
  8201. </div>
  8202. <div class="check" @click="addTools2(25)">
  8203. <img
  8204. src="../assets/icon/checkNo.png"
  8205. alt
  8206. v-if="checktoolArray.indexOf(25) == -1"
  8207. />
  8208. <div class="checkDiv" v-else>
  8209. <img src="../assets/icon/checkedIs.png" alt /><span
  8210. >已选择</span
  8211. >
  8212. </div>
  8213. </div>
  8214. </div>
  8215. </div>
  8216. </div>
  8217. </div>
  8218. </div>
  8219. </div> -->
  8220. <div
  8221. class="vedioBox"
  8222. style="margin-top: 10px; border-radius: 20px"
  8223. v-if="
  8224. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8225. .eList &&
  8226. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8227. .eList.length &&
  8228. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8229. .eList.length > 0 &&
  8230. tType != 2
  8231. "
  8232. >
  8233. <div
  8234. class="queTop"
  8235. style="
  8236. font-size: 20px;
  8237. padding: 15px 0 15px 37px;
  8238. font-weight: bold;
  8239. "
  8240. >
  8241. <!-- <div class="question" style="width: 30px">
  8242. <img src="../assets/icon/toolIcon.png" alt />
  8243. </div>
  8244. <div class="queTitle">
  8245. <div>工具</div>
  8246. </div>-->
  8247. 评一评
  8248. </div>
  8249. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8250. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8251. <el-table
  8252. :data="
  8253. chapInfoList[courseType].chapterInfo[0].taskJson[
  8254. taskCount
  8255. ].eList
  8256. "
  8257. :header-cell-style="{ background: '#F0F4FA' }"
  8258. :row-class-name="tableRowClassName"
  8259. border
  8260. stripe
  8261. style="width: 100%"
  8262. >
  8263. <el-table-column
  8264. label="评价名称"
  8265. align="center"
  8266. >
  8267. <template slot-scope="scope"
  8268. ><div>{{ scope.row.value }}</div></template
  8269. >
  8270. </el-table-column>
  8271. <el-table-column
  8272. label="评价描述"
  8273. align="center"
  8274. >
  8275. <template slot-scope="scope"
  8276. ><div>
  8277. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8278. </div></template
  8279. >
  8280. </el-table-column>
  8281. <el-table-column label="目标" align="center">
  8282. <template slot-scope="scope"
  8283. ><div>
  8284. {{
  8285. scope.row.target
  8286. ? scope.row.target[scope.row.target.length - 1]
  8287. : "-"
  8288. }}
  8289. </div></template
  8290. ></el-table-column
  8291. >
  8292. </el-table>
  8293. <!-- <div
  8294. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8295. .chapterInfo[0].taskJson[taskCount].eList"
  8296. :key="eIndex"
  8297. class="elist_input_box"
  8298. >
  8299. <div style="width: 95%">
  8300. <div
  8301. style="
  8302. display: flex;
  8303. flex-direction: row;
  8304. flex-wrap: nowrap;
  8305. align-items: center;
  8306. "
  8307. >
  8308. <div style="max-width: calc(100% - 285px)">
  8309. <span>{{ eItem.value }}</span>
  8310. </div>
  8311. <div
  8312. style="
  8313. padding-left: 25px;
  8314. display: flex;
  8315. flex-direction: row;
  8316. align-items: center;
  8317. "
  8318. >
  8319. <el-rate
  8320. v-model="eItem.score"
  8321. :colors="colors"
  8322. disabled
  8323. ></el-rate>
  8324. </div>
  8325. </div>
  8326. <div class="elist_inptu_text" style="padding-left: 10px">
  8327. <span v-if="eItem.detail != ''">{{
  8328. eItem.detail
  8329. }}</span>
  8330. <span v-else style="color: #b2b1b3; font-size: 14px"
  8331. >暂无描述...</span
  8332. >
  8333. </div>
  8334. </div>
  8335. </div> -->
  8336. </div>
  8337. <div
  8338. v-if="evalua"
  8339. style="
  8340. border: 1px solid #e5e5e5;
  8341. max-width: 650px;
  8342. width: 100%;
  8343. margin-top: 20px;
  8344. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8345. "
  8346. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8347. >
  8348. <div class="e_add_top">
  8349. <div class="e_add_title" style="width: 100%">
  8350. <!-- <span>目标管理名称</span> -->
  8351. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8352. <img
  8353. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8354. src="../assets/line.png"
  8355. class="cru_line"
  8356. style="
  8357. width: 125px;
  8358. height: 20px;
  8359. bottom: -10px;
  8360. left: 5px;
  8361. "
  8362. />
  8363. <!-- <el-input
  8364. v-model="eTitle"
  8365. placeholder="请输入名称"
  8366. @change="setMindData"
  8367. ></el-input>-->
  8368. <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>
  8369. <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>
  8370. </div>
  8371. </div>
  8372. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8373. <div class="e_add_list_pbox">
  8374. <div class="e_add_list_pbox_title">
  8375. <!-- <span class="type_title">切换模式</span> -->
  8376. <div class="type_content">
  8377. <span
  8378. :class="{ active: typeMode == 1 }"
  8379. @click="typeMode = 1"
  8380. >目标树</span
  8381. >
  8382. <span
  8383. :class="{ active: typeMode == 2 }"
  8384. @click="typeMode = 2"
  8385. >目标罗盘</span
  8386. >
  8387. <!-- <span
  8388. :class="{ active: typeMode == 3 }"
  8389. @click="typeMode = 3"
  8390. >目标看板</span
  8391. > -->
  8392. </div>
  8393. </div>
  8394. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8395. <Mind
  8396. :showBar="false"
  8397. :mindData="data"
  8398. style="width: 100%"
  8399. v-show="typeMode == 1"
  8400. ></Mind>
  8401. <Sunburst
  8402. :Josn="eJson"
  8403. :num="eJSONNum"
  8404. style="width: 100%"
  8405. v-if="typeMode == 2"
  8406. ></Sunburst>
  8407. <SeeBoard
  8408. :Josn="eJson"
  8409. :num="eJSONNum"
  8410. :ename="eTitle"
  8411. style="width: 100%"
  8412. v-if="typeMode == 3"
  8413. >
  8414. </SeeBoard>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. </div>
  8419. </div>
  8420. </div>
  8421. <!-- <div
  8422. class="project_box"
  8423. style="margin-top: 15px; padding-bottom: 30px"
  8424. >
  8425. <div
  8426. style="
  8427. display: flex;
  8428. flex-wrap: nowrap;
  8429. flex-direction: column;
  8430. position: relative;
  8431. "
  8432. >
  8433. <div class="queTop">
  8434. <div class="question">
  8435. <img src="../assets/icon/homeWork.png" alt="" />
  8436. </div>
  8437. <div class="queTitle">
  8438. <div>作业提交<span>(提交图文视频等)</span></div>
  8439. <div>:任务:{{ task.task }}</div>
  8440. </div>
  8441. </div>
  8442. <div class="ediBottom">
  8443. <div
  8444. class="addEditor"
  8445. style="margin-top: 23px"
  8446. @click="openAddWork"
  8447. v-if="!isNoHomeWork"
  8448. >
  8449. 选择文件
  8450. </div>
  8451. <div
  8452. class="addEditor"
  8453. style="margin-top: 23px"
  8454. @click="openAddWork"
  8455. v-else
  8456. >
  8457. 已提交
  8458. </div>
  8459. </div>
  8460. </div>
  8461. </div>-->
  8462. </div>
  8463. </div>
  8464. <el-dialog
  8465. title="作业提交"
  8466. :visible.sync="dialogVisible"
  8467. :append-to-body="true"
  8468. width="500px"
  8469. :before-close="handleClose"
  8470. class="dialog_change"
  8471. >
  8472. <div class="marginT">
  8473. <div>上传文件</div>
  8474. <div style="display: flex; gap: 10px">
  8475. <div
  8476. class="chapter_add"
  8477. @click="addImg($event)"
  8478. v-if="studyJuri[0].cover.length == 0"
  8479. >
  8480. <div class="up_photo">
  8481. <img src="../assets/icon/uploadImg.png" alt />
  8482. </div>
  8483. <!-- <input
  8484. type="file"
  8485. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8486. style="display: none"
  8487. @change="beforeUpload1($event, 1)"
  8488. /> -->
  8489. <input
  8490. type="file"
  8491. accept="*"
  8492. style="display: none"
  8493. @change="beforeUpload1($event, 1)"
  8494. />
  8495. <!-- <input
  8496. type="file"
  8497. accept="image/*"
  8498. capture="camera"
  8499. style="display: none"
  8500. @change="beforeUpload1($event, 1)"
  8501. /> -->
  8502. </div>
  8503. <div
  8504. class="chapter_add"
  8505. @click="addImg($event)"
  8506. v-if="studyJuri[0].cover.length == 0"
  8507. >
  8508. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8509. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8510. </div>
  8511. <input
  8512. type="file"
  8513. accept="image/*"
  8514. capture="camera"
  8515. style="display: none"
  8516. @change="beforeUpload1($event, 1)"
  8517. />
  8518. </div>
  8519. </div>
  8520. <div
  8521. class="chapter_add"
  8522. style="
  8523. display: flex;
  8524. width: 100%;
  8525. flex-direction: row;
  8526. flex-wrap: wrap;
  8527. justify-content: flex-start;
  8528. padding: 15px 0;
  8529. "
  8530. v-if="studyJuri[0].cover.length > 0"
  8531. >
  8532. <div class="upCover">
  8533. <img
  8534. :src="studyJuri[0].cover[0].url"
  8535. alt
  8536. v-if="fileType == 0"
  8537. />
  8538. <img :src="word" alt v-else-if="fileType == 1" />
  8539. <img :src="video" alt v-else-if="fileType == 2" />
  8540. <img :src="word2" alt v-else-if="fileType == 3" />
  8541. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8542. <div class="deleteWord" @click="clean(1)">
  8543. <img src="../assets/icon/deleteWorks.png" alt />
  8544. </div>
  8545. </div>
  8546. </div>
  8547. </div>
  8548. <div
  8549. class="upload_send"
  8550. @click="addCourseWorks(taskCount)"
  8551. v-if="!proVisible"
  8552. >
  8553. 提交
  8554. </div>
  8555. </el-dialog>
  8556. </div>
  8557. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8558. <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(
  8559. '/courseDetail?userid=' +
  8560. userid +
  8561. '&oid=' +
  8562. oid +
  8563. '&org=' +
  8564. org +
  8565. '&cid=' +
  8566. classId +
  8567. '&courseId=' +
  8568. id +
  8569. '&tType=' +
  8570. tType +
  8571. '&screenType=' +
  8572. screenType+
  8573. '&role=' +
  8574. role
  8575. )"></classRoomHelper>
  8576. <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(
  8577. '/courseDetail?userid=' +
  8578. userid +
  8579. '&oid=' +
  8580. oid +
  8581. '&org=' +
  8582. org +
  8583. '&cid=' +
  8584. classId +
  8585. '&courseId=' +
  8586. id +
  8587. '&tType=' +
  8588. tType +
  8589. '&screenType=' +
  8590. screenType+
  8591. '&role=' +
  8592. role
  8593. )"></studentClassRoomHelper>
  8594. </div>
  8595. <div
  8596. class="pButton"
  8597. @click="(pzDialog = true), selectPz()"
  8598. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8599. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8600. >
  8601. <!-- 批 -->
  8602. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8603. </div>
  8604. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8605. <div class="pzTop2">
  8606. <!-- <div>评论</div>
  8607. <div @click="pzDialog = false">
  8608. <img src="../assets/close1.png" alt="" />
  8609. </div> -->
  8610. <div class="checkbox">
  8611. <!-- <div class="check" style="font-size: 25px; position: unset">
  8612. 评论
  8613. </div> -->
  8614. <div class="cb-tabList">
  8615. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8616. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8617. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8618. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8619. </div>
  8620. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8621. <el-option label="时间降序" :value="1"></el-option>
  8622. <el-option label="时间升序" :value="2"></el-option>
  8623. <el-option label="我的评课" :value="3"></el-option>
  8624. </el-select>
  8625. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8626. </div>
  8627. </div>
  8628. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8629. <div class="pzListBox" v-if="pzList && pzList.length">
  8630. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8631. <div class="pzNavTop">
  8632. <div>评</div>
  8633. <div>
  8634. {{
  8635. pz.username && pz.username.length > 5
  8636. ? pz.username.substring(0, 5) + "..."
  8637. : pz.username
  8638. }}的评论
  8639. </div>
  8640. <div
  8641. class="pzDelete"
  8642. v-if="pz.userid == userid"
  8643. @click="deletePz(pz.id)"
  8644. >
  8645. 删除
  8646. </div>
  8647. </div>
  8648. <div
  8649. @click="checkImg(getImgList(pz.content))"
  8650. class="pzContent cont"
  8651. v-html="pz.content"
  8652. v-if="pz.type == '1'"
  8653. ></div>
  8654. <div class="pzContent" v-if="pz.type == '2'">
  8655. <audio :src="pz.content" controls="controls" ref="audio">
  8656. Your browser does not support the audio element.
  8657. </audio>
  8658. </div>
  8659. <div class="pzContent" v-if="pz.type == '3'">
  8660. <img
  8661. :src="pz.content"
  8662. style="width: 90%; margin: 0 auto; display: block"
  8663. @click="previewImg(pz.content)"
  8664. />
  8665. </div>
  8666. <div class="timeAndReply">
  8667. <div class="time">
  8668. {{ pz.time }}
  8669. </div>
  8670. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8671. </div>
  8672. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8673. <div
  8674. v-for="(h, hIndex) in pz.hfList"
  8675. :key="hIndex"
  8676. class="hfItem"
  8677. >
  8678. <div class="whoReplyWho">
  8679. <div class="hfName">{{ h.username }}</div>
  8680. <div class="hfImg">
  8681. <img src="../assets/icon/newIcons/right.png" alt="" />
  8682. </div>
  8683. <div class="hfName">{{ pz.username }}</div>
  8684. </div>
  8685. <div class="hfContent" v-html="h.content"></div>
  8686. <div class="hfBottom">
  8687. <div class="hfTime">{{ h.time }}</div>
  8688. <div
  8689. class="deleteHfItem"
  8690. @click="deleteReply(h.id)"
  8691. v-if="userid == h.userid"
  8692. >
  8693. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8694. </div>
  8695. </div>
  8696. </div>
  8697. </div>
  8698. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8699. <div class="replyInput">
  8700. <el-input v-model="reply[pzIndex]"></el-input>
  8701. </div>
  8702. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8703. </div> -->
  8704. </div>
  8705. </div>
  8706. <div class="noPz" v-else>
  8707. <img src="../assets/icon/noPz.png" alt="" />
  8708. </div>
  8709. <div class="addPzButton">
  8710. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8711. 添加评论
  8712. </div>
  8713. <!-- <div class="img1">
  8714. <div @click="(addPzDialog = true), (pzType = 2)">
  8715. <img src="../assets/audio.png" /><span>音频</span>
  8716. </div>
  8717. </div> -->
  8718. </div>
  8719. </div>
  8720. <div class="scoreList" v-if="commentTagShow==1">
  8721. <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"/>
  8722. </div>
  8723. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8724. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8725. </div>
  8726. </div>
  8727. <div
  8728. v-if="toolDialogVisible == true"
  8729. class="toolMask"
  8730. @click="toolDialogVisible = false"
  8731. ></div>
  8732. <div v-if="toolDialogVisible == true" class="addToolCss">
  8733. <div class="toolTop">
  8734. <div style="font-weight: bold">新增工具</div>
  8735. <div @click="toolDialogVisible = false">
  8736. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8737. </div>
  8738. </div>
  8739. <div class="tool_box">
  8740. <div class="tool_type_box">
  8741. <div class="chooseWho">
  8742. <div
  8743. :class="toolType == 0 ? 'isChooseActive' : ''"
  8744. @click="(toolType = 0), $forceUpdate()"
  8745. >
  8746. 互动类
  8747. </div>
  8748. <div
  8749. :class="toolType == 1 ? 'isChooseActive' : ''"
  8750. @click="(toolType = 1), $forceUpdate()"
  8751. >
  8752. 思维类
  8753. </div>
  8754. <div
  8755. :class="toolType == 2 ? 'isChooseActive' : ''"
  8756. @click="(toolType = 2), $forceUpdate()"
  8757. >
  8758. 测评类
  8759. </div>
  8760. <div
  8761. :class="toolType == 3 ? 'isChooseActive' : ''"
  8762. @click="(toolType = 3), $forceUpdate()"
  8763. >
  8764. 编程类
  8765. </div>
  8766. <div
  8767. :class="toolType == 5 ? 'isChooseActive' : ''"
  8768. @click="(toolType = 5), $forceUpdate()"
  8769. >
  8770. 学科类
  8771. </div>
  8772. </div>
  8773. </div>
  8774. <div>
  8775. <div class="toolSort" v-if="toolType == 0">
  8776. <div
  8777. class="tool"
  8778. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8779. @click="addTools2(10)"
  8780. >
  8781. <div class="whiteBIcon">
  8782. <img src="../assets/icon/thirdToolList/time.png" alt />
  8783. <div style="margin: 5px 0">倒计时</div>
  8784. </div>
  8785. <div class="check">
  8786. <div
  8787. v-if="checktoolArray.indexOf(10) == -1"
  8788. class="noChoose"
  8789. ></div>
  8790. <div v-else class="isChoose"></div>
  8791. </div>
  8792. </div>
  8793. <div
  8794. class="tool"
  8795. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8796. @click="addTools2(65)"
  8797. >
  8798. <div class="whiteBIcon">
  8799. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8800. <div style="margin: 5px 0">挑人</div>
  8801. </div>
  8802. <div class="check">
  8803. <div
  8804. v-if="checktoolArray.indexOf(65) == -1"
  8805. class="noChoose"
  8806. ></div>
  8807. <div v-else class="isChoose"></div>
  8808. </div>
  8809. </div>
  8810. </div>
  8811. <div class="toolSort" v-if="toolType == 1">
  8812. <div
  8813. class="tool"
  8814. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8815. @click="addTools2(7)"
  8816. >
  8817. <div class="whiteBIcon">
  8818. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8819. <div style="margin: 5px 0">思维网格</div>
  8820. </div>
  8821. <div class="check">
  8822. <div
  8823. v-if="checktoolArray.indexOf(7) == -1"
  8824. class="noChoose"
  8825. ></div>
  8826. <div v-else class="isChoose"></div>
  8827. </div>
  8828. </div>
  8829. <div
  8830. class="tool"
  8831. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8832. @click="addTools2(1)"
  8833. >
  8834. <div class="whiteBIcon">
  8835. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8836. <div style="margin: 5px 0">电子白板</div>
  8837. </div>
  8838. <div class="check">
  8839. <div
  8840. v-if="checktoolArray.indexOf(1) == -1"
  8841. class="noChoose"
  8842. ></div>
  8843. <div v-else class="isChoose"></div>
  8844. </div>
  8845. </div>
  8846. <div
  8847. class="tool"
  8848. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8849. @click="addTools2(52)"
  8850. >
  8851. <div class="whiteBIcon">
  8852. <img src="../assets/icon/fourthToolList/text.png" alt />
  8853. <div style="margin: 5px 0">文档</div>
  8854. </div>
  8855. <div class="check">
  8856. <div
  8857. v-if="checktoolArray.indexOf(52) == -1"
  8858. class="noChoose"
  8859. ></div>
  8860. <div v-else class="isChoose"></div>
  8861. </div>
  8862. </div>
  8863. <div
  8864. class="tool"
  8865. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8866. @click="addTools2(3)"
  8867. >
  8868. <div class="whiteBIcon">
  8869. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8870. <div style="margin: 5px 0">思维导图</div>
  8871. </div>
  8872. <div class="check">
  8873. <div
  8874. v-if="checktoolArray.indexOf(3) == -1"
  8875. class="noChoose"
  8876. ></div>
  8877. <div v-else class="isChoose"></div>
  8878. </div>
  8879. </div>
  8880. <div
  8881. class="tool"
  8882. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8883. @click="addTools2(48)"
  8884. >
  8885. <div class="whiteBIcon">
  8886. <img src="../assets/icon/fourthToolList/table.png" alt />
  8887. <div style="margin: 5px 0">表格</div>
  8888. </div>
  8889. <div class="check">
  8890. <div
  8891. v-if="checktoolArray.indexOf(48) == -1"
  8892. class="noChoose"
  8893. ></div>
  8894. <div v-else class="isChoose"></div>
  8895. </div>
  8896. </div>
  8897. </div>
  8898. <div class="toolSort" v-if="toolType == 6">
  8899. <div v-show="tooC == 49">
  8900. <img
  8901. @click="addTools(tooC, toolIndex, taskCount)"
  8902. src="../assets/icon/fourthToolList/group.png"
  8903. alt
  8904. />
  8905. <div style="margin: 5px 0">学生分组</div>
  8906. </div>
  8907. </div>
  8908. <div class="toolSort" v-if="toolType == 2">
  8909. <div
  8910. class="tool"
  8911. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8912. @click="addTools2(16)"
  8913. >
  8914. <div class="whiteBIcon">
  8915. <img src="../assets/icon/thirdToolList/work.png" alt />
  8916. <div style="margin: 5px 0">作业提交</div>
  8917. </div>
  8918. <div class="check">
  8919. <div
  8920. v-if="checktoolArray.indexOf(16) == -1"
  8921. class="noChoose"
  8922. ></div>
  8923. <div v-else class="isChoose"></div>
  8924. </div>
  8925. </div>
  8926. <div
  8927. class="tool"
  8928. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8929. @click="addTools2(50)"
  8930. >
  8931. <div class="whiteBIcon">
  8932. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8933. <div style="margin: 5px 0">批量上传</div>
  8934. </div>
  8935. <div class="check">
  8936. <div
  8937. v-if="checktoolArray.indexOf(50) == -1"
  8938. class="noChoose"
  8939. ></div>
  8940. <div v-else class="isChoose"></div>
  8941. </div>
  8942. </div>
  8943. </div>
  8944. <div class="toolSort" v-if="toolType == 3">
  8945. <div
  8946. class="tool"
  8947. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8948. @click="addTools2(18)"
  8949. >
  8950. <div class="whiteBIcon">
  8951. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8952. <div style="margin: 5px 0">训练平台</div>
  8953. </div>
  8954. <div class="check">
  8955. <div
  8956. v-if="checktoolArray.indexOf(18) == -1"
  8957. class="noChoose"
  8958. ></div>
  8959. <div v-else class="isChoose"></div>
  8960. </div>
  8961. </div>
  8962. <div
  8963. class="tool"
  8964. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8965. @click="addTools2(21)"
  8966. >
  8967. <div class="whiteBIcon">
  8968. <img src="../assets/icon/fourthToolList/program.png" alt />
  8969. <div style="margin: 5px 0">AIoT Blockly</div>
  8970. </div>
  8971. <div class="check">
  8972. <div
  8973. v-if="checktoolArray.indexOf(21) == -1"
  8974. class="noChoose"
  8975. ></div>
  8976. <div v-else class="isChoose"></div>
  8977. </div>
  8978. </div>
  8979. <div
  8980. class="tool"
  8981. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8982. @click="addTools2(23)"
  8983. >
  8984. <div class="whiteBIcon">
  8985. <img
  8986. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8987. alt
  8988. />
  8989. <div style="margin: 5px 0">AI Python</div>
  8990. </div>
  8991. <div class="check">
  8992. <div
  8993. v-if="checktoolArray.indexOf(23) == -1"
  8994. class="noChoose"
  8995. ></div>
  8996. <div v-else class="isChoose"></div>
  8997. </div>
  8998. </div>
  8999. <div
  9000. class="tool"
  9001. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9002. @click="addTools2(24)"
  9003. >
  9004. <div class="whiteBIcon">
  9005. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  9006. <div style="margin: 5px 0">AI Blockly</div>
  9007. </div>
  9008. <div class="check">
  9009. <div
  9010. v-if="checktoolArray.indexOf(24) == -1"
  9011. class="noChoose"
  9012. ></div>
  9013. <div v-else class="isChoose"></div>
  9014. </div>
  9015. </div>
  9016. <div
  9017. class="tool"
  9018. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9019. @click="addTools2(32)"
  9020. >
  9021. <div class="whiteBIcon">
  9022. <img src="../assets/icon/thirdToolList/code.png" alt />
  9023. <div style="margin: 5px 0">源码编辑</div>
  9024. </div>
  9025. <div class="check">
  9026. <div
  9027. v-if="checktoolArray.indexOf(32) == -1"
  9028. class="noChoose"
  9029. ></div>
  9030. <div v-else class="isChoose"></div>
  9031. </div>
  9032. </div>
  9033. <div
  9034. class="tool"
  9035. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9036. @click="addTools2(57)"
  9037. >
  9038. <div class="whiteBIcon">
  9039. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  9040. <div style="margin: 5px 0">CocoPi</div>
  9041. </div>
  9042. <div class="check">
  9043. <div
  9044. v-if="checktoolArray.indexOf(57) == -1"
  9045. class="noChoose"
  9046. ></div>
  9047. <div v-else class="isChoose"></div>
  9048. </div>
  9049. </div>
  9050. <div
  9051. class="tool"
  9052. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9053. @click="addTools2(63)"
  9054. >
  9055. <div class="whiteBIcon">
  9056. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  9057. <div style="margin: 5px 0">海龟编程</div>
  9058. </div>
  9059. <div class="check">
  9060. <div
  9061. v-if="checktoolArray.indexOf(63) == -1"
  9062. class="noChoose"
  9063. ></div>
  9064. <div v-else class="isChoose"></div>
  9065. </div>
  9066. </div>
  9067. <div
  9068. class="tool"
  9069. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9070. @click="addTools2(71)"
  9071. >
  9072. <div class="whiteBIcon">
  9073. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  9074. <div style="margin: 5px 0">AI智能体</div>
  9075. </div>
  9076. <div class="check">
  9077. <div
  9078. v-if="checktoolArray.indexOf(71) == -1"
  9079. class="noChoose"
  9080. ></div>
  9081. <div v-else class="isChoose"></div>
  9082. </div>
  9083. </div>
  9084. </div>
  9085. <div class="toolSort" v-if="toolType == 7">
  9086. <div
  9087. class="tool"
  9088. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9089. @click="addTools2(40)"
  9090. >
  9091. <div class="whiteBIcon">
  9092. <img src="../assets/icon/secondToolList/eval.png" alt />
  9093. <div style="margin: 5px 0">个人评价</div>
  9094. </div>
  9095. <div class="check">
  9096. <div
  9097. v-if="checktoolArray.indexOf(40) == -1"
  9098. class="noChoose"
  9099. ></div>
  9100. <div v-else class="isChoose"></div>
  9101. </div>
  9102. </div>
  9103. </div>
  9104. <div class="toolSort" v-if="toolType == 5">
  9105. <div
  9106. class="tool"
  9107. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9108. @click="addTools2(28)"
  9109. >
  9110. <div class="whiteBIcon">
  9111. <img src="../assets/icon/secondToolList/translation.png" alt />
  9112. <div style="margin: 5px 0">翻译</div>
  9113. </div>
  9114. <div class="check">
  9115. <div
  9116. v-if="checktoolArray.indexOf(28) == -1"
  9117. class="noChoose"
  9118. ></div>
  9119. <div v-else class="isChoose"></div>
  9120. </div>
  9121. </div>
  9122. <div
  9123. class="tool"
  9124. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9125. @click="addTools2(31)"
  9126. >
  9127. <div class="whiteBIcon">
  9128. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9129. <div style="margin: 5px 0">数字画板</div>
  9130. </div>
  9131. <div class="check">
  9132. <div
  9133. v-if="checktoolArray.indexOf(31) == -1"
  9134. class="noChoose"
  9135. ></div>
  9136. <div v-else class="isChoose"></div>
  9137. </div>
  9138. </div>
  9139. <div
  9140. class="tool"
  9141. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9142. @click="addTools2(39)"
  9143. >
  9144. <div class="whiteBIcon">
  9145. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9146. <div style="margin: 5px 0">GeoGebra</div>
  9147. </div>
  9148. <div class="check">
  9149. <div
  9150. v-if="checktoolArray.indexOf(39) == -1"
  9151. class="noChoose"
  9152. ></div>
  9153. <div v-else class="isChoose"></div>
  9154. </div>
  9155. </div>
  9156. <div
  9157. class="tool"
  9158. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9159. @click="addTools2(66)"
  9160. >
  9161. <div class="whiteBIcon">
  9162. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9163. <div style="margin: 5px 0">公式编辑</div>
  9164. </div>
  9165. <div class="check">
  9166. <div
  9167. v-if="checktoolArray.indexOf(66) == -1"
  9168. class="noChoose"
  9169. ></div>
  9170. <div v-else class="isChoose"></div>
  9171. </div>
  9172. </div>
  9173. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9174. <div class="whiteBIcon" @click="addTools2(67)">
  9175. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9176. <div style="margin: 5px 0">分子结构</div>
  9177. </div>
  9178. <div class="check" @click="addTools2(67)">
  9179. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9180. <div v-else class="isChoose"></div>
  9181. </div>
  9182. </div> -->
  9183. <div
  9184. class="tool"
  9185. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9186. @click="addTools2(68)"
  9187. >
  9188. <div class="whiteBIcon">
  9189. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9190. <div style="margin: 5px 0">时间轴</div>
  9191. </div>
  9192. <div class="check">
  9193. <div
  9194. v-if="checktoolArray.indexOf(68) == -1"
  9195. class="noChoose"
  9196. ></div>
  9197. <div v-else class="isChoose"></div>
  9198. </div>
  9199. </div>
  9200. <!-- <div
  9201. class="tool"
  9202. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9203. @click="addTools2(69)"
  9204. >
  9205. <div class="whiteBIcon">
  9206. <img src="../assets/icon/secondToolList/english.png" alt />
  9207. <div style="margin: 5px 0">英语写作</div>
  9208. </div>
  9209. <div class="check">
  9210. <div
  9211. v-if="checktoolArray.indexOf(69) == -1"
  9212. class="noChoose"
  9213. ></div>
  9214. <div v-else class="isChoose"></div>
  9215. </div>
  9216. </div> -->
  9217. </div>
  9218. <div class="toolSort" v-if="toolType == 4">
  9219. <div
  9220. class="tool"
  9221. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9222. @click="addTools2(26)"
  9223. >
  9224. <div class="whiteBIcon">
  9225. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9226. <div style="margin: 5px 0">课程设计</div>
  9227. </div>
  9228. <div class="check">
  9229. <div
  9230. v-if="checktoolArray.indexOf(26) == -1"
  9231. class="noChoose"
  9232. ></div>
  9233. <div v-else class="isChoose"></div>
  9234. </div>
  9235. </div>
  9236. <div
  9237. class="tool"
  9238. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9239. @click="addTools2(25)"
  9240. >
  9241. <div class="whiteBIcon">
  9242. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9243. <div style="margin: 5px 0">目标管理</div>
  9244. </div>
  9245. <div class="check">
  9246. <div
  9247. v-if="checktoolArray.indexOf(25) == -1"
  9248. class="noChoose"
  9249. ></div>
  9250. <div v-else class="isChoose"></div>
  9251. </div>
  9252. </div>
  9253. </div>
  9254. </div>
  9255. </div>
  9256. <span
  9257. slot="footer"
  9258. class="dialog-footer"
  9259. style="display: block; text-align: center; padding: 0 0 10px 0"
  9260. >
  9261. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9262. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9263. </span>
  9264. </div>
  9265. <div
  9266. v-if="replyDialogVisible == true"
  9267. class="addDialogCss"
  9268. v-el-drag-dialog
  9269. >
  9270. <div class="pzTop">
  9271. <div class="teacherPz">
  9272. <div class="teacherPzImg">
  9273. <img src="../assets/icon/teacherPz.png" alt="" />
  9274. </div>
  9275. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9276. </div>
  9277. <div @click="replyDialogVisible = false">
  9278. <img src="../assets/close1.png" class="pzClose" alt="" />
  9279. </div>
  9280. </div>
  9281. <div class="addPzBox">
  9282. <!-- <div class="addPzCheck">
  9283. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9284. >文本</span
  9285. >
  9286. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9287. >音频</span
  9288. >
  9289. </div> -->
  9290. <div style="height: calc(100% - 50px)">
  9291. <editor-bar
  9292. class="binfo_input pzConText"
  9293. style="width: 100% !important; margin: 0 auto"
  9294. placeholder="请输入回复描述"
  9295. v-model="reply"
  9296. @change="change"
  9297. ></editor-bar>
  9298. </div>
  9299. <div class="addTextCss" @click="addHf">确定</div>
  9300. </div>
  9301. </div>
  9302. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9303. <div class="pzTop">
  9304. <div class="teacherPz">
  9305. <div class="teacherPzImg">
  9306. <img src="../assets/icon/teacherPz.png" alt="" />
  9307. </div>
  9308. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9309. </div>
  9310. <div @click="addPzDialog = false">
  9311. <img src="../assets/close1.png" class="pzClose" alt="" />
  9312. </div>
  9313. </div>
  9314. <div class="addPzBox">
  9315. <div class="addPzCheck">
  9316. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9317. >文本</span
  9318. >
  9319. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9320. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9321. >音频</span
  9322. >
  9323. </div>
  9324. <div style="height: calc(100% - 95px)">
  9325. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9326. v-if="pzType == 1"></textarea> -->
  9327. <editor-bar
  9328. class="binfo_input pzConText"
  9329. style="width: 100% !important"
  9330. placeholder="请输入任务描述"
  9331. v-model="pzConText"
  9332. @change="change"
  9333. v-if="pzType == 1"
  9334. ></editor-bar>
  9335. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9336. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9337. <div @click="addImg($event)">
  9338. <el-button type="primary">上传图片</el-button>
  9339. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9340. @change="beforeUpload1($event, 4)" />
  9341. </div>
  9342. </div> -->
  9343. </div>
  9344. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9345. 确定
  9346. </div>
  9347. </div>
  9348. </div>
  9349. <div v-if="proVisible" class="mask">
  9350. <div class="progressBox">
  9351. <!-- <div id="closePro" class="closeCss">
  9352. <img src="../assets/icon/close.png" alt />
  9353. </div> -->
  9354. <div class="lbox">
  9355. <img src="../assets/loading.gif" />上传中,请稍后
  9356. </div>
  9357. <div style="margin-bottom: 10px">
  9358. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9359. </div>
  9360. <el-progress
  9361. :text-inside="true"
  9362. :stroke-width="20"
  9363. :percentage="progress"
  9364. style="width: 80%"
  9365. ></el-progress>
  9366. </div>
  9367. </div>
  9368. <div v-if="proVisible2" class="mask">
  9369. <div class="progressBox">
  9370. <div class="lbox">
  9371. <img src="../assets/loading.gif" />上传中,请稍后
  9372. </div>
  9373. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9374. </div>
  9375. </div>
  9376. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9377. <img width="100%" :src="dialogImageUrl" alt />
  9378. </el-dialog>
  9379. <el-dialog
  9380. :title="noteName != '' ? noteName : '查看问卷'"
  9381. :visible.sync="dialogVisible5"
  9382. :append-to-body="true"
  9383. width="1000px"
  9384. :before-close="handleClose"
  9385. class="dialog_diy dialog_diy3"
  9386. >
  9387. <div>
  9388. <div
  9389. class="a_add_title"
  9390. style="
  9391. display: flex;
  9392. flex-direction: row;
  9393. align-items: center;
  9394. justify-content: center;
  9395. "
  9396. >
  9397. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9398. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9399. </div>
  9400. <div class="a_addBox">
  9401. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9402. 题目内容
  9403. </div>
  9404. <div
  9405. class="a_add_box"
  9406. v-for="(item1, index1) in askJson.askCount"
  9407. :key="index1"
  9408. >
  9409. <div class="a_add_head">
  9410. <div style="display: flex">
  9411. <span class="askIndex"> {{ index1 + 1 }}</span>
  9412. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9413. </div>
  9414. <img
  9415. v-if="askJson.askJson[index1].img"
  9416. :src="askJson.askJson[index1].img"
  9417. style="height: 300px; margin-top: 10px; max-width: 100%"
  9418. />
  9419. </div>
  9420. <div class="a_add_body">
  9421. <div class="a_add_input">
  9422. <el-radio-group
  9423. v-model="radio[index1]"
  9424. v-if="
  9425. askJson.askJson[index1].type == '1' ||
  9426. !askJson.askJson[index1].type
  9427. "
  9428. >
  9429. <el-radio
  9430. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9431. .checkList"
  9432. :key="checkIndex"
  9433. :label="checkIndex"
  9434. :disabled="isAnswer"
  9435. class="redioStyle"
  9436. ><span v-html="item2"></span
  9437. ></el-radio>
  9438. </el-radio-group>
  9439. <el-checkbox-group
  9440. v-model="radio[index1]"
  9441. v-if="askJson.askJson[index1].type == '2'"
  9442. >
  9443. <el-checkbox
  9444. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9445. .checkList"
  9446. :key="checkIndex1"
  9447. :label="checkIndex1"
  9448. :disabled="isAnswer"
  9449. class="redioStyle"
  9450. ><span v-html="item2"></span>
  9451. </el-checkbox>
  9452. </el-checkbox-group>
  9453. </div>
  9454. </div>
  9455. </div>
  9456. </div>
  9457. </div>
  9458. <span slot="footer" class="dialog-footer">
  9459. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9460. >取 消</el-button
  9461. >
  9462. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9463. >确 定</el-button
  9464. >
  9465. </span>
  9466. </el-dialog>
  9467. <el-dialog
  9468. :title="noteName != '' ? noteName : '查看问卷'"
  9469. :visible.sync="dialogVisible5Teacher"
  9470. :append-to-body="true"
  9471. width="1000px"
  9472. :before-close="handleClose"
  9473. class="dialog_diy dialog_diy3"
  9474. >
  9475. <div>
  9476. <div class="w_name">
  9477. 学生姓名:<span>{{ sStudent.student }}</span>
  9478. </div>
  9479. <div
  9480. class="a_add_title"
  9481. style="
  9482. display: flex;
  9483. flex-direction: row;
  9484. align-items: center;
  9485. justify-content: center;
  9486. "
  9487. >
  9488. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9489. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9490. </div>
  9491. <div class="a_addBox">
  9492. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9493. 题目内容
  9494. </div>
  9495. <div
  9496. class="a_add_box"
  9497. v-for="(item1, index1) in askJson.askCount"
  9498. :key="index1"
  9499. >
  9500. <div class="a_add_head">
  9501. <div style="display: flex">
  9502. <span class="askIndex">{{ index1 + 1 }}</span>
  9503. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9504. </div>
  9505. <img
  9506. v-if="askJson.askJson[index1].img"
  9507. :src="askJson.askJson[index1].img"
  9508. style="height: 300px; margin-top: 10px; max-width: 100%"
  9509. />
  9510. </div>
  9511. <div class="a_add_body">
  9512. <div class="a_add_input">
  9513. <el-radio-group
  9514. v-model="radio[index1]"
  9515. v-if="
  9516. askJson.askJson[index1].type == '1' ||
  9517. !askJson.askJson[index1].type
  9518. "
  9519. >
  9520. <el-radio
  9521. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9522. .checkList"
  9523. :key="checkIndex"
  9524. :label="checkIndex"
  9525. :disabled="isAnswer"
  9526. class="redioStyle"
  9527. ><span v-html="item2"></span
  9528. ></el-radio>
  9529. </el-radio-group>
  9530. <el-checkbox-group
  9531. v-model="radio[index1]"
  9532. v-if="askJson.askJson[index1].type == '2'"
  9533. >
  9534. <el-checkbox
  9535. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9536. .checkList"
  9537. :key="checkIndex1"
  9538. :label="checkIndex1"
  9539. :disabled="isAnswer"
  9540. class="redioStyle"
  9541. ><span v-html="item2"></span>
  9542. </el-checkbox>
  9543. </el-checkbox-group>
  9544. </div>
  9545. </div>
  9546. </div>
  9547. </div>
  9548. </div>
  9549. <span slot="footer" class="dialog-footer">
  9550. <el-button
  9551. @click="dialogVisible5Teacher = false"
  9552. v-show="noteName == ''"
  9553. >取 消</el-button
  9554. >
  9555. <el-button
  9556. type="primary"
  9557. @click="addStudentAskTeacher"
  9558. v-show="noteName == ''"
  9559. >确 定</el-button
  9560. >
  9561. </span>
  9562. </el-dialog>
  9563. <el-dialog
  9564. :title="noteName != '' ? noteName : '查看选择题'"
  9565. :visible.sync="dialogVisibleChoice"
  9566. :append-to-body="true"
  9567. width="1000px"
  9568. :before-close="handleClose"
  9569. class="dialog_diy dialog_diy3"
  9570. >
  9571. <div>
  9572. <!-- <div class="a_add_title" style="
  9573. display: flex;
  9574. flex-direction: row;
  9575. align-items: center;
  9576. justify-content: center;
  9577. ">
  9578. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9579. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9580. </div> -->
  9581. <div class="a_addBox">
  9582. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9583. 题目内容
  9584. </div>
  9585. <div
  9586. class="a_add_box"
  9587. v-for="(item1, index1) in testJson.testCount"
  9588. :key="index1"
  9589. >
  9590. <div class="a_add_head">
  9591. <div style="display: flex;">
  9592. <span class="askIndex">{{ index1 + 1 }}</span>
  9593. <div
  9594. v-if="testJson.testJson[index1].type == '1'"
  9595. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9596. >
  9597. (单选题)
  9598. </div>
  9599. <div
  9600. v-if="testJson.testJson[index1].type == '2'"
  9601. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9602. >
  9603. (多选题)
  9604. </div>
  9605. <div class="renderedFor"><span>题目:</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9606. </div>
  9607. <img
  9608. v-if="testJson.testJson[index1].img"
  9609. :src="testJson.testJson[index1].img"
  9610. style="height: 300px; margin-top: 10px; max-width: 100%"
  9611. />
  9612. </div>
  9613. <div
  9614. class="timuImgBox"
  9615. v-if="
  9616. testJson.testJson[index1].timuList &&
  9617. testJson.testJson[index1].timuList.length
  9618. "
  9619. >
  9620. <div
  9621. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9622. :key="tIndex"
  9623. class="timuImg"
  9624. @click.stop="previewImg(timg.src)"
  9625. >
  9626. <img :src="timg.src" alt="" />
  9627. </div>
  9628. </div>
  9629. <div class="a_add_body">
  9630. <div class="a_add_input">
  9631. <el-radio-group
  9632. v-model="radio[index1]"
  9633. v-if="testJson.testJson[index1].type == '1'"
  9634. >
  9635. <div class="radioBox">
  9636. <el-radio
  9637. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9638. .checkList"
  9639. :key="checkIndex"
  9640. :label="checkIndex"
  9641. :disabled="isAnswer"
  9642. class="redioStyle"
  9643. >
  9644. <div
  9645. style="margin-right: 10px"
  9646. v-if="item2 && item2.imgType && item2.imgType == 1"
  9647. >
  9648. <div class="inImg" @click.stop="previewImg(item2.src)">
  9649. <img :src="item2.src" alt="" />
  9650. </div>
  9651. </div>
  9652. <span v-else v-html="item2"></span>
  9653. </el-radio>
  9654. </div>
  9655. </el-radio-group>
  9656. <el-checkbox-group
  9657. v-model="radio[index1]"
  9658. v-if="testJson.testJson[index1].type == '2'"
  9659. >
  9660. <div class="radioBox">
  9661. <el-checkbox
  9662. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9663. .checkList"
  9664. :key="checkIndex"
  9665. :label="checkIndex"
  9666. :disabled="isAnswer"
  9667. class="redioStyle"
  9668. >
  9669. <div
  9670. style="margin-right: 10px"
  9671. v-if="item2 && item2.imgType && item2.imgType == 1"
  9672. >
  9673. <div class="inImg" @click.stop="previewImg(item2.src)">
  9674. <img :src="item2.src" alt="" />
  9675. </div>
  9676. </div>
  9677. <span v-else v-html="item2"></span>
  9678. </el-checkbox>
  9679. </div>
  9680. </el-checkbox-group>
  9681. </div>
  9682. </div>
  9683. </div>
  9684. </div>
  9685. </div>
  9686. <span slot="footer" class="dialog-footer">
  9687. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9688. >取 消</el-button
  9689. >
  9690. <el-button
  9691. type="primary"
  9692. @click="addStudentTest"
  9693. v-show="noteName == ''"
  9694. >确 定</el-button
  9695. >
  9696. </span>
  9697. </el-dialog>
  9698. <el-dialog
  9699. :title="noteName != '' ? noteName : '查看选择题'"
  9700. :visible.sync="dialogVisibleChoiceTeacher"
  9701. :append-to-body="true"
  9702. width="1000px"
  9703. :before-close="handleClose"
  9704. class="dialog_diy dialog_diy3"
  9705. >
  9706. <div>
  9707. <div class="w_name">
  9708. 学生姓名:<span>{{ sStudent.student }}</span>
  9709. </div>
  9710. <div class="a_addBox">
  9711. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9712. 题目内容
  9713. </div>
  9714. <div
  9715. class="a_add_box"
  9716. v-for="(item1, index1) in testJson.testCount"
  9717. :key="index1"
  9718. >
  9719. <div class="a_add_head">
  9720. <div style="display: flex">
  9721. <span class="askIndex">{{ index1 + 1 }}</span>
  9722. <div
  9723. v-if="testJson.testJson[index1].type == '1'"
  9724. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9725. >
  9726. (单选题)
  9727. </div>
  9728. <div
  9729. v-if="testJson.testJson[index1].type == '2'"
  9730. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9731. >
  9732. (多选题)
  9733. </div>
  9734. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9735. </div>
  9736. <img
  9737. v-if="testJson.testJson[index1].img"
  9738. :src="testJson.testJson[index1].img"
  9739. style="height: 300px; margin-top: 10px; max-width: 100%"
  9740. />
  9741. </div>
  9742. <div
  9743. class="timuImgBox"
  9744. v-if="
  9745. testJson.testJson[index1].timuList &&
  9746. testJson.testJson[index1].timuList.length
  9747. "
  9748. >
  9749. <div
  9750. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9751. :key="tIndex"
  9752. class="timuImg"
  9753. @click.stop="previewImg(timg.src)"
  9754. >
  9755. <img :src="timg.src" alt="" />
  9756. </div>
  9757. </div>
  9758. <div class="a_add_body">
  9759. <div class="a_add_input">
  9760. <el-radio-group
  9761. v-model="radio[index1]"
  9762. v-if="testJson.testJson[index1].type == '1'"
  9763. >
  9764. <div class="radioBox">
  9765. <el-radio
  9766. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9767. .checkList"
  9768. :key="checkIndex"
  9769. :label="checkIndex"
  9770. :disabled="isAnswer"
  9771. class="redioStyle"
  9772. >
  9773. <div
  9774. style="margin-right: 10px"
  9775. v-if="item2 && item2.imgType && item2.imgType == 1"
  9776. >
  9777. <div class="inImg" @click.stop="previewImg(item2.src)">
  9778. <img :src="item2.src" alt="" />
  9779. </div>
  9780. </div>
  9781. <span v-else v-html="item2"></span>
  9782. </el-radio>
  9783. </div>
  9784. </el-radio-group>
  9785. <el-checkbox-group
  9786. v-model="radio[index1]"
  9787. v-if="testJson.testJson[index1].type == '2'"
  9788. >
  9789. <div class="radioBox">
  9790. <el-checkbox
  9791. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9792. .checkList"
  9793. :key="checkIndex"
  9794. :label="checkIndex"
  9795. :disabled="isAnswer"
  9796. class="redioStyle"
  9797. >
  9798. <div
  9799. style="margin-right: 10px"
  9800. v-if="item2 && item2.imgType && item2.imgType == 1"
  9801. >
  9802. <div class="inImg" @click.stop="previewImg(item2.src)">
  9803. <img :src="item2.src" alt="" />
  9804. </div>
  9805. </div>
  9806. <span v-else v-html="item2"></span>
  9807. </el-checkbox>
  9808. </div>
  9809. </el-checkbox-group>
  9810. </div>
  9811. </div>
  9812. </div>
  9813. </div>
  9814. </div>
  9815. <span slot="footer" class="dialog-footer">
  9816. <el-button
  9817. @click="dialogVisibleChoiceTeacher = false"
  9818. v-show="noteName == ''"
  9819. >取 消</el-button
  9820. >
  9821. <el-button
  9822. type="primary"
  9823. @click="addStudentTestTeacher"
  9824. v-show="noteName == ''"
  9825. >确 定</el-button
  9826. >
  9827. </span>
  9828. </el-dialog>
  9829. <el-dialog
  9830. title="查看富文本"
  9831. :visible.sync="dialogVisible1"
  9832. :append-to-body="true"
  9833. width="500px"
  9834. :before-close="handleClose"
  9835. class="dialog_diy textCss"
  9836. >
  9837. <el-form style="font-size: 20px">
  9838. <el-form-item label="文本标题" class="textTitle">
  9839. <div style="font-size: 20px">{{ text.name }}</div>
  9840. </el-form-item>
  9841. <div>富文本内容</div>
  9842. <div
  9843. v-html="text.url"
  9844. style="font-size: 18px; padding: 40px 0 0 0"
  9845. ></div>
  9846. </el-form>
  9847. <span slot="footer" class="dialog-footer">
  9848. <el-button type="primary" @click="dialogVisible1 = false"
  9849. >确定</el-button
  9850. >
  9851. </span>
  9852. </el-dialog>
  9853. <el-dialog
  9854. title="文件预览"
  9855. :visible.sync="dialogVisible3"
  9856. width="50%"
  9857. :before-close="handleClose"
  9858. class="dialog_diy"
  9859. :class="{ fullStyle: full }"
  9860. >
  9861. <div slot="title" class="header-title">
  9862. <div style="color: #fff">文件预览</div>
  9863. <div style="position: absolute; top: 19px; right: 50px">
  9864. <img
  9865. src="../assets/full.png"
  9866. style="height: 16px; cursor: pointer"
  9867. alt=""
  9868. @click="fullTools"
  9869. />
  9870. </div>
  9871. </div>
  9872. <pdf
  9873. v-if="showPDF"
  9874. :pdfUrl="pptImgUrl"
  9875. style="width: 100%; height: 520px; overflow: auto"
  9876. :class="{ fullStyle: full }"
  9877. ></pdf>
  9878. <iframe
  9879. v-else
  9880. :src="pptImgUrl"
  9881. frameborder="0"
  9882. width="100%"
  9883. height="600"
  9884. :class="{ fullStyle: full }"
  9885. ></iframe>
  9886. </el-dialog>
  9887. <el-dialog
  9888. title="文件预览"
  9889. :visible.sync="dialogVisible6"
  9890. width="50%"
  9891. :before-close="handleClose"
  9892. class="dialog_diy"
  9893. >
  9894. <iframe
  9895. :src="pptImgUrl1"
  9896. frameborder="0"
  9897. width="100%"
  9898. height="600"
  9899. ></iframe>
  9900. </el-dialog>
  9901. <el-dialog
  9902. title="提示"
  9903. :visible.sync="dialogVisible4"
  9904. :append-to-body="true"
  9905. width="800px"
  9906. :before-close="handleClose"
  9907. class="dialog_diy notice"
  9908. >
  9909. <div>此功能暂未开放!</div>
  9910. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9911. </el-dialog>
  9912. <el-dialog
  9913. title="问答"
  9914. :visible.sync="answerDialogVisible"
  9915. :append-to-body="true"
  9916. width="800px"
  9917. :before-close="handleClose"
  9918. class="dialog_diy"
  9919. >
  9920. <div>
  9921. <div
  9922. style="
  9923. display: flex;
  9924. flex-wrap: nowrap;
  9925. flex-direction: column;
  9926. position: relative;
  9927. "
  9928. >
  9929. <div class="queTop" style="padding: 20px 0 20px 0">
  9930. <div class="question">
  9931. <img src="../assets/icon/question.png" alt />
  9932. </div>
  9933. <div class="queTitle">
  9934. <div style="width: 90px; min-width: 90px">提问:</div>
  9935. <div>{{ answerQ }}</div>
  9936. </div>
  9937. </div>
  9938. <div class="ediBottom">
  9939. <textarea
  9940. rows="6"
  9941. class="binfo_input"
  9942. cols
  9943. style="width: 95%; height: 120px"
  9944. v-model="questionAnswer"
  9945. ></textarea>
  9946. </div>
  9947. </div>
  9948. </div>
  9949. <div slot="footer">
  9950. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9951. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9952. </div>
  9953. </el-dialog>
  9954. <el-dialog
  9955. title="问答"
  9956. :visible.sync="answerDialogVisibleTeacher"
  9957. :append-to-body="true"
  9958. width="800px"
  9959. :before-close="handleClose"
  9960. class="dialog_diy"
  9961. >
  9962. <div>
  9963. <div class="w_name">
  9964. 学生姓名:<span>{{ sStudent.student }}</span>
  9965. </div>
  9966. <div
  9967. style="
  9968. display: flex;
  9969. flex-wrap: nowrap;
  9970. flex-direction: column;
  9971. position: relative;
  9972. "
  9973. >
  9974. <div class="queTop" style="padding: 20px 0 20px 0">
  9975. <div class="question">
  9976. <img src="../assets/icon/question.png" alt />
  9977. </div>
  9978. <div class="queTitle">
  9979. <div style="width: 90px; min-width: 90px">提问:</div>
  9980. <div>{{ answerQ }}</div>
  9981. </div>
  9982. </div>
  9983. <div class="ediBottom">
  9984. <textarea
  9985. rows="6"
  9986. class="binfo_input"
  9987. cols
  9988. style="width: 95%; height: 120px"
  9989. v-model="questionAnswer"
  9990. ></textarea>
  9991. </div>
  9992. </div>
  9993. </div>
  9994. <div slot="footer">
  9995. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9996. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9997. </div>
  9998. </el-dialog>
  9999. <el-dialog
  10000. title="倒计时"
  10001. :visible.sync="timeDialogVisible"
  10002. :append-to-body="true"
  10003. width="800px"
  10004. :before-close="handleClose"
  10005. class="dialog_diy"
  10006. >
  10007. <div>
  10008. <div style="margin-bottom: 20px; color: #999">
  10009. 提示:点击“+”或“-”修改倒计时时长。
  10010. </div>
  10011. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10012. </div>
  10013. <div slot="footer">
  10014. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10015. </div>
  10016. </el-dialog>
  10017. <el-dialog
  10018. title="权限设置"
  10019. :visible.sync="juriVisible"
  10020. :append-to-body="true"
  10021. width="400px"
  10022. :before-close="handleClose"
  10023. class="dialog_diy"
  10024. >
  10025. <div>
  10026. <div class="open_box">
  10027. <div class="switch_box">
  10028. <span>允许学生查看所有作业</span>
  10029. <el-switch
  10030. v-model="sIsOpen"
  10031. active-text=""
  10032. class="switchCss"
  10033. @change="updateSLook"
  10034. ></el-switch>
  10035. </div>
  10036. <div
  10037. class="switch_box"
  10038. v-if="
  10039. (courseDetail.userid == userid ||
  10040. (courseDetail.course_teacher &&
  10041. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10042. "
  10043. >
  10044. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10045. <span>禁止学生查看阶段</span>
  10046. <el-switch
  10047. v-model="IsLookOpen"
  10048. active-text=""
  10049. class="switchCss"
  10050. @change="updateLookOpen"
  10051. ></el-switch>
  10052. </div>
  10053. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  10054. (courseDetail.course_teacher &&
  10055. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  10056. <span>开启跟随模式</span>
  10057. <el-switch
  10058. v-model="IsFollow"
  10059. active-text=""
  10060. class="switchCss"
  10061. @change="updateFollow"
  10062. ></el-switch>
  10063. </div>
  10064. <div class="switch_box" v-if="courseDetail.userid == userid">
  10065. <span>允许学生查看内容资料</span>
  10066. <el-switch
  10067. v-model="IsStulook"
  10068. active-text=""
  10069. class="switchCss"
  10070. @change="updateIsStulook"
  10071. ></el-switch>
  10072. </div>
  10073. </div>
  10074. </div>
  10075. <div slot="footer">
  10076. <el-button
  10077. style="background: #409efe; color: #fff"
  10078. @click="juriVisible = false"
  10079. >关 闭</el-button
  10080. >
  10081. </div>
  10082. </el-dialog>
  10083. <el-dialog
  10084. title="查看视频"
  10085. :visible.sync="videoVisible"
  10086. :append-to-body="true"
  10087. width="1000px"
  10088. :before-close="handleClose"
  10089. class="dialog_diy1"
  10090. >
  10091. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10092. <video-player
  10093. class="video-player vjs-custom-skin"
  10094. :playsinline="true"
  10095. :options="videoDetail"
  10096. @play="onPlayerPlay($event)"
  10097. style="width: 100%; height: 100%"
  10098. ></video-player>
  10099. </div>
  10100. <div slot="footer">
  10101. <el-button
  10102. style="background: #409efe; color: #fff"
  10103. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10104. >
  10105. 关 闭</el-button
  10106. >
  10107. </div>
  10108. </el-dialog>
  10109. <el-dialog
  10110. title="查看详情"
  10111. :visible.sync="commentDialogVisible"
  10112. :append-to-body="true"
  10113. width="800px"
  10114. :before-close="handleClose"
  10115. class="dialog_diy"
  10116. >
  10117. <div class="commentTop">
  10118. <div class="studentDetail">
  10119. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10120. <div class="nameAndTime">
  10121. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10122. <div>{{ commentDetail.time }}</div>
  10123. </div>
  10124. <div
  10125. class="returnBtn"
  10126. style="margin-left: auto; width: 80px"
  10127. v-if="
  10128. commentDetail.works &&
  10129. commentDetail.type == 0 &&
  10130. (tType == 1 || tType == 4)
  10131. "
  10132. @click="
  10133. showPicturePaint(
  10134. commentDetail.img ? commentDetail.img : commentDetail.works
  10135. )
  10136. "
  10137. >
  10138. 教师批注
  10139. </div>
  10140. </div>
  10141. <div
  10142. class="worksAnswer"
  10143. v-if="commentDetail.works && commentDetail.type == 2"
  10144. >
  10145. {{ JSON.parse(commentDetail.works)[0].answer }}
  10146. </div>
  10147. <div
  10148. class="worksAnswer"
  10149. v-if="commentDetail.works && commentDetail.type == 1"
  10150. >
  10151. <img
  10152. src="../assets/teacherWork.png"
  10153. v-if="commentDetail.ateacher"
  10154. class="w_teachert"
  10155. />
  10156. <pdf
  10157. v-if="showPDF"
  10158. :pdfUrl="pptImgUrl"
  10159. style="width: 100%; height: 520px; overflow: auto"
  10160. :class="{ fullStyle: full }"
  10161. ></pdf>
  10162. <iframe
  10163. v-else
  10164. :src="pptImgUrl"
  10165. frameborder="0"
  10166. width="100%"
  10167. height="600"
  10168. :class="{ fullStyle: full }"
  10169. ></iframe>
  10170. </div>
  10171. <div
  10172. class="worksAnswer"
  10173. v-if="commentDetail.works && commentDetail.type == 0"
  10174. >
  10175. <img
  10176. src="../assets/teacherWork.png"
  10177. v-if="commentDetail.ateacher"
  10178. class="w_teachert"
  10179. style="right: 105px"
  10180. />
  10181. <img
  10182. :src="commentDetail.works"
  10183. alt=""
  10184. @click="previewImg(commentDetail.works)"
  10185. />
  10186. </div>
  10187. <div
  10188. class="worksAnswer"
  10189. v-if="commentDetail.works && commentDetail.type == 3"
  10190. >
  10191. <img
  10192. src="../assets/teacherWork.png"
  10193. v-if="commentDetail.ateacher"
  10194. class="w_teachert"
  10195. />
  10196. <video-player
  10197. class="video-player vjs-custom-skin"
  10198. :playsinline="true"
  10199. :options="videoDetail"
  10200. @play="onPlayerPlay($event)"
  10201. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10202. ></video-player>
  10203. </div>
  10204. <div
  10205. class="worksAnswer"
  10206. v-if="commentDetail.works && commentDetail.type == 10"
  10207. >
  10208. <div class="cont" v-html="commentDetail.works.text"></div>
  10209. </div>
  10210. <div
  10211. class="worksAnswer codeFileBox"
  10212. v-if="commentDetail.works && commentDetail.type == 12"
  10213. @click="downloadFile(commentDetail.works)"
  10214. >
  10215. <img src="../assets/icon/codeFile.png" />
  10216. <div>点击下载文件</div>
  10217. </div>
  10218. <div
  10219. class="worksAnswer codeFileBox"
  10220. v-if="commentDetail.works && commentDetail.type == 15"
  10221. @click="
  10222. openCocoPi(
  10223. 57,
  10224. commentIndexJson.toolIndex,
  10225. commentDetail.userid,
  10226. commentDetail.sName
  10227. )
  10228. "
  10229. >
  10230. <img src="../assets/icon/codeFile.png" />
  10231. <div>点击打开CocoPi</div>
  10232. </div>
  10233. <div
  10234. class="worksAnswer"
  10235. v-if="commentDetail.works && commentDetail.type == 13"
  10236. >
  10237. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10238. </div>
  10239. <div
  10240. class="worksAnswer"
  10241. v-if="commentDetail.works && commentDetail.type == 4"
  10242. >
  10243. <div class="evalCss">
  10244. <div class="nav">请选择星星进行评分</div>
  10245. <div class="middleBox" v-if="eScore.eStar">
  10246. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10247. <div class="nameAndrate">
  10248. <div>{{ e.value }}</div>
  10249. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10250. </div>
  10251. <div v-if="e.detail">{{ e.detail }}</div>
  10252. </div>
  10253. <div class="bz">
  10254. <textarea
  10255. disabled
  10256. rows="4"
  10257. class="pj"
  10258. style="
  10259. padding: 10px 5px;
  10260. width: 70%;
  10261. background: #f7f6f9;
  10262. font-size: 14px;
  10263. text-indent: 10px;
  10264. color: #000;
  10265. "
  10266. cols
  10267. v-model="eScore.eBzText"
  10268. placeholder="请输入评价内容..."
  10269. ></textarea>
  10270. </div>
  10271. </div>
  10272. </div>
  10273. </div>
  10274. <div class="comment">
  10275. <div class="commentList">
  10276. <div class="commentImg">
  10277. <img
  10278. @click="
  10279. isLikes(
  10280. commentDetail.wid,
  10281. userid,
  10282. 1,
  10283. null,
  10284. commentDetail.isLikes,
  10285. commentDetail.sName
  10286. )
  10287. "
  10288. :src="commentDetail.isLikes == true ? likes : noLikes"
  10289. alt=""
  10290. />
  10291. </div>
  10292. <div>{{ commentDetail.likesCount }}</div>
  10293. </div>
  10294. <div class="commentList">
  10295. <div class="commentImg">
  10296. <img src="../assets/icon/comment/comment.png" alt="" />
  10297. </div>
  10298. <div>{{ commentDetail.commentCount }}</div>
  10299. </div>
  10300. </div>
  10301. <div class="drawPBox" v-if="commentDetail.img">
  10302. <span>教师批注</span>
  10303. <img
  10304. :src="commentDetail.img"
  10305. alt=""
  10306. @click="previewImg(commentDetail.img)"
  10307. />
  10308. <span
  10309. class="deleteImg"
  10310. v-if="tType == 1 || tType == 4"
  10311. @click.stop="deletePicturePaint(commentDetail.wid)"
  10312. style="
  10313. font-size: 14px;
  10314. width: auto !important;
  10315. color: #b4b4b4;
  10316. top: unset;
  10317. bottom: 0;
  10318. border: none;
  10319. padding: 0;
  10320. height: auto !important;
  10321. margin: 0;
  10322. "
  10323. >删除</span
  10324. >
  10325. </div>
  10326. </div>
  10327. <div class="commentBox">
  10328. <div class="pl">评论:</div>
  10329. <div style="max-height: 200px; overflow: auto">
  10330. <div
  10331. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10332. style="padding: 10px 0 0 0"
  10333. >
  10334. <div
  10335. class="studentDetail"
  10336. style="padding-top: 10px"
  10337. v-for="(co, coIndex) in commentDetail.commentJson"
  10338. :key="coIndex"
  10339. >
  10340. <div class="tx" style="min-width: 50px">
  10341. <img src="../assets/avatar.png" alt="" />
  10342. </div>
  10343. <div class="plPerson">
  10344. <div class="plName">
  10345. <div>{{ co.commentPeople }}</div>
  10346. <div style="margin-left: 5px">
  10347. {{ co.commentTime }}
  10348. </div>
  10349. <div
  10350. class="deleteComment"
  10351. v-if="userid == co.userid"
  10352. @click="deleteComment(co.wid)"
  10353. >
  10354. 删除
  10355. </div>
  10356. </div>
  10357. <div class="plContent">{{ co.commentText }}</div>
  10358. </div>
  10359. </div>
  10360. </div>
  10361. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10362. </div>
  10363. </div>
  10364. <div style="margin-top: 10px">
  10365. <div class="displayBox">
  10366. <div
  10367. style="
  10368. color: #556db4;
  10369. font-size: 14px;
  10370. font-weight: bold;
  10371. padding-bottom: 10px;
  10372. "
  10373. >
  10374. 评价
  10375. </div>
  10376. <div class="easy_comment" v-if="false">
  10377. <div
  10378. v-for="(p, pIndex) in PlTextList"
  10379. :key="pIndex"
  10380. @click="fastText(p, 1)"
  10381. >
  10382. {{ p }}
  10383. </div>
  10384. </div>
  10385. </div>
  10386. <div>
  10387. <textarea
  10388. rows="3"
  10389. class="pj"
  10390. style="padding: 10px 5px"
  10391. cols
  10392. v-model="commentText"
  10393. placeholder="请输入评论"
  10394. ></textarea>
  10395. </div>
  10396. </div>
  10397. <div slot="footer">
  10398. <el-button
  10399. @click="
  10400. (commentDialogVisible = false),
  10401. (commentIndexJson = {}),
  10402. videoDetail.sources && videoDetail.sources[0]
  10403. ? (videoDetail.sources[0].src = '')
  10404. : ''
  10405. "
  10406. >取 消</el-button
  10407. >
  10408. <el-button
  10409. type="primary"
  10410. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10411. >确 定</el-button
  10412. >
  10413. </div>
  10414. </el-dialog>
  10415. <el-dialog
  10416. title="查看文档"
  10417. :visible.sync="fullDialogVisible"
  10418. :append-to-body="true"
  10419. width="100%"
  10420. :before-close="handleClose"
  10421. :show-close="false"
  10422. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10423. >
  10424. <div slot="title" class="header-title">
  10425. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10426. <div v-else style="color: #fff">查看文档</div>
  10427. <div
  10428. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10429. style="
  10430. cursor: pointer;
  10431. position: absolute;
  10432. top: 20px;
  10433. right: 20px;
  10434. color: #fff;
  10435. "
  10436. >
  10437. 退出全屏
  10438. </div>
  10439. </div>
  10440. <div style="height: 100%;position: relative;">
  10441. <el-button
  10442. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10443. size="medium"
  10444. type="primary"
  10445. @click="
  10446. () => {
  10447. (fullDialogVisible = false),
  10448. changeSplitScreenBehavior({ code: 99 });
  10449. }
  10450. "
  10451. style="
  10452. cursor: pointer;
  10453. position: absolute;
  10454. top: 10px;
  10455. right: 20px;
  10456. color: #fff;
  10457. "
  10458. >
  10459. 退出全屏
  10460. </el-button>
  10461. <div
  10462. class="wheel"
  10463. v-if="fulltype == 1"
  10464. style="
  10465. box-shadow: 0 0 6px 1px #f2f2f2;
  10466. width: 100%;
  10467. height:100%;
  10468. background: #f1f1f1;
  10469. "
  10470. >
  10471. <div class="title" style="width: 100%; box-sizing: border-box">
  10472. 查看文档
  10473. </div>
  10474. <el-form class="textBox" style="height: 90%">
  10475. <el-form-item class="textTitle">
  10476. <div style="font-size: 22px">
  10477. {{ fullUrl.name }}
  10478. </div>
  10479. </el-form-item>
  10480. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10481. <div
  10482. v-html="fullUrl.url"
  10483. class="textContent"
  10484. style="height: auto"
  10485. ></div>
  10486. </el-form>
  10487. </div>
  10488. <div
  10489. class="wheel"
  10490. v-else-if="
  10491. (fulltype == 2 || fulltype == 4) &&
  10492. fullUrl.indexOf(
  10493. 'https://view.officeapps.live.com/op/view.aspx?src='
  10494. ) != -1
  10495. "
  10496. style="width: 100%;height:100%; margin: 0 auto"
  10497. >
  10498. <iframe
  10499. style="width: 100%; height: 100%; border: none"
  10500. :src="fullUrl"
  10501. ></iframe>
  10502. </div>
  10503. <!-- <iframe
  10504. v-else-if="fulltype == 2"
  10505. style="width: 100%; height: 100%; border: none"
  10506. :src="fullUrl"
  10507. security="restricted"
  10508. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10509. ></iframe> -->
  10510. <iframe
  10511. style="width: 100%; height: 100%; border: none"
  10512. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10513. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  10514. :src="fullUrl"
  10515. ></iframe>
  10516. <iframe
  10517. style="width: 100%; height: 100%; border: none"
  10518. security="restricted"
  10519. v-else-if="(fulltype == 2 || fulltype == 4)"
  10520. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10521. :src="fullUrl"
  10522. ></iframe>
  10523. <pdf
  10524. v-else-if="fulltype == 3"
  10525. :pdfUrl="fullUrl"
  10526. style="width: 100%; height: 100%; overflow: auto"
  10527. ></pdf>
  10528. <iframe
  10529. style="width: 100%; height: 100%; border: none"
  10530. security="restricted"
  10531. v-if="(fulltype == 16)"
  10532. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10533. :src="fullUrl"
  10534. ></iframe>
  10535. </div>
  10536. <!-- <div slot="footer">
  10537. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10538. </div> -->
  10539. </el-dialog>
  10540. <el-dialog
  10541. title="个人评价"
  10542. :visible.sync="studentEvalDialogVisible"
  10543. :append-to-body="true"
  10544. width="800px"
  10545. :before-close="handleClose"
  10546. class="dialog_diy"
  10547. >
  10548. <div class="evalCss">
  10549. <div class="nav">请选择星星进行评分</div>
  10550. <div class="middleBox" v-if="eScore.eStar">
  10551. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10552. <div class="nameAndrate">
  10553. <div>{{ e.value }}</div>
  10554. <el-rate
  10555. v-model="eScore.eStar[eIndex]"
  10556. :disabled="isStar"
  10557. ></el-rate>
  10558. </div>
  10559. <div v-if="e.detail">{{ e.detail }}</div>
  10560. </div>
  10561. <div class="easy_comment" v-if="false">
  10562. <div
  10563. v-for="(p, pIndex) in PlTextList"
  10564. :key="pIndex"
  10565. @click="fastText(p, 2)"
  10566. >
  10567. {{ p }}
  10568. </div>
  10569. </div>
  10570. <div class="bz">
  10571. <textarea
  10572. :disabled="isStar"
  10573. rows="4"
  10574. class="pj"
  10575. style="
  10576. padding: 10px 5px;
  10577. width: 70%;
  10578. background: #f7f6f9;
  10579. font-size: 14px;
  10580. text-indent: 10px;
  10581. "
  10582. cols
  10583. v-model="eScore.eBzText"
  10584. placeholder="请输入评价内容..."
  10585. ></textarea>
  10586. </div>
  10587. </div>
  10588. </div>
  10589. <div slot="footer">
  10590. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10591. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10592. >确 定</el-button
  10593. >
  10594. </div>
  10595. </el-dialog>
  10596. <el-dialog
  10597. title="个人评价"
  10598. :visible.sync="studentEvalDialogVisibleTeacher"
  10599. :append-to-body="true"
  10600. width="800px"
  10601. :before-close="handleClose"
  10602. class="dialog_diy"
  10603. >
  10604. <div class="w_name">
  10605. 学生姓名:<span>{{ sStudent.student }}</span>
  10606. </div>
  10607. <div class="evalCss">
  10608. <div class="nav">请选择星星进行评分</div>
  10609. <div class="middleBox" v-if="eScore.eStar">
  10610. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10611. <div class="nameAndrate">
  10612. <div>{{ e.value }}</div>
  10613. <el-rate
  10614. v-model="eScore.eStar[eIndex]"
  10615. :disabled="isStar"
  10616. ></el-rate>
  10617. </div>
  10618. <div v-if="e.detail">{{ e.detail }}</div>
  10619. </div>
  10620. <div class="easy_comment" v-if="false">
  10621. <div
  10622. v-for="(p, pIndex) in PlTextList"
  10623. :key="pIndex"
  10624. @click="fastText(p, 2)"
  10625. >
  10626. {{ p }}
  10627. </div>
  10628. </div>
  10629. <div class="bz">
  10630. <textarea
  10631. :disabled="isStar"
  10632. rows="4"
  10633. class="pj"
  10634. style="
  10635. padding: 10px 5px;
  10636. width: 70%;
  10637. background: #f7f6f9;
  10638. font-size: 14px;
  10639. text-indent: 10px;
  10640. "
  10641. cols
  10642. v-model="eScore.eBzText"
  10643. placeholder="请输入评价内容..."
  10644. ></textarea>
  10645. </div>
  10646. </div>
  10647. </div>
  10648. <div slot="footer">
  10649. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10650. >取 消</el-button
  10651. >
  10652. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10653. >确 定</el-button
  10654. >
  10655. </div>
  10656. </el-dialog>
  10657. <el-dialog
  10658. title="选择匹配"
  10659. :visible.sync="dialogVisibleSelect"
  10660. :append-to-body="true"
  10661. width="90%"
  10662. :before-close="handleClose"
  10663. class="dialog_diy dialog_diy3"
  10664. >
  10665. <div v-if="selectJson">
  10666. <div class="select_box2">
  10667. <div class="select_box2_title">
  10668. <div>选择匹配</div>
  10669. <div>请选择对应的答案进行答题!</div>
  10670. </div>
  10671. <div class="select_box2_box">
  10672. <div class="select_box2_img">
  10673. <img
  10674. :src="selectJson.url"
  10675. @click="previewImg(selectJson.url)"
  10676. alt=""
  10677. />
  10678. </div>
  10679. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10680. <div style="padding-top: 15px">
  10681. <div class="select_answer_title" v-if="isSelect">
  10682. {{ selectAnswer.stu }}
  10683. </div>
  10684. <div class="select_answer_title" v-else>
  10685. 根据题目选择对应答案
  10686. </div>
  10687. <div
  10688. class="select_box2_answer_box"
  10689. v-for="(item2, checkIndex) in selectJson.select"
  10690. :key="checkIndex"
  10691. >
  10692. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10693. <el-select
  10694. :disabled="isSelect"
  10695. v-model="selectAnswer.answer[checkIndex]"
  10696. placeholder="请选择正确答案"
  10697. >
  10698. <el-option
  10699. v-for="(e, eIndex) in selectJson.select"
  10700. :key="eIndex"
  10701. :label="e"
  10702. :value="eIndex"
  10703. >
  10704. </el-option>
  10705. </el-select>
  10706. </div>
  10707. </div>
  10708. <div
  10709. class="rightAnswerCss"
  10710. v-if="isSelect && (tType == 1 || tType == 4)"
  10711. >
  10712. <div
  10713. v-for="(a, aIndex) in selectJson.answer"
  10714. :key="aIndex"
  10715. class="rightAnswer"
  10716. >
  10717. <div
  10718. v-if="selectAnswer.answer[aIndex] === a"
  10719. style="color: #767de1"
  10720. >
  10721. 回答正确
  10722. </div>
  10723. <div v-else>回答错误</div>
  10724. <div
  10725. style="margin-left: 10px"
  10726. v-if="selectAnswer.answer[aIndex] !== a"
  10727. >
  10728. 正确答案:
  10729. </div>
  10730. <div
  10731. :class="
  10732. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10733. "
  10734. >
  10735. {{ selectJson.select[a] }}
  10736. </div>
  10737. </div>
  10738. </div>
  10739. </div>
  10740. <div class="upAnswerCss">
  10741. <el-button
  10742. type="primary"
  10743. @click="addSelectAnswer"
  10744. v-if="!isSelect"
  10745. >提交答案</el-button
  10746. >
  10747. </div>
  10748. </div>
  10749. </div>
  10750. </div>
  10751. </el-dialog>
  10752. <el-dialog
  10753. title="选择匹配"
  10754. :visible.sync="dialogVisibleSelectTeacher"
  10755. :append-to-body="true"
  10756. width="90%"
  10757. :before-close="handleClose"
  10758. class="dialog_diy dialog_diy3"
  10759. >
  10760. <div v-if="selectJson">
  10761. <div class="w_name">
  10762. 学生姓名:<span>{{ sStudent.student }}</span>
  10763. </div>
  10764. <div class="select_box2">
  10765. <div class="select_box2_title">
  10766. <div>选择匹配</div>
  10767. <div>请选择对应的答案进行答题!</div>
  10768. </div>
  10769. <div class="select_box2_box">
  10770. <div class="select_box2_img">
  10771. <img
  10772. :src="selectJson.url"
  10773. @click="previewImg(selectJson.url)"
  10774. alt=""
  10775. />
  10776. </div>
  10777. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10778. <div style="padding-top: 15px">
  10779. <div class="select_answer_title" v-if="isSelect">
  10780. {{ selectAnswer.stu }}
  10781. </div>
  10782. <div class="select_answer_title" v-else>
  10783. 根据题目选择对应答案
  10784. </div>
  10785. <div
  10786. class="select_box2_answer_box"
  10787. v-for="(item2, checkIndex) in selectJson.select"
  10788. :key="checkIndex"
  10789. >
  10790. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10791. <el-select
  10792. :disabled="isSelect"
  10793. v-model="selectAnswer.answer[checkIndex]"
  10794. placeholder="请选择正确答案"
  10795. >
  10796. <el-option
  10797. v-for="(e, eIndex) in selectJson.select"
  10798. :key="eIndex"
  10799. :label="e"
  10800. :value="eIndex"
  10801. >
  10802. </el-option>
  10803. </el-select>
  10804. </div>
  10805. </div>
  10806. <div
  10807. class="rightAnswerCss"
  10808. v-if="isSelect && (tType == 1 || tType == 4)"
  10809. >
  10810. <div
  10811. v-for="(a, aIndex) in selectJson.answer"
  10812. :key="aIndex"
  10813. class="rightAnswer"
  10814. >
  10815. <div
  10816. v-if="selectAnswer.answer[aIndex] === a"
  10817. style="color: #767de1"
  10818. >
  10819. 回答正确
  10820. </div>
  10821. <div v-else>回答错误</div>
  10822. <div
  10823. style="margin-left: 10px"
  10824. v-if="selectAnswer.answer[aIndex] !== a"
  10825. >
  10826. 正确答案:
  10827. </div>
  10828. <div
  10829. :class="
  10830. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10831. "
  10832. >
  10833. {{ selectJson.select[a] }}
  10834. </div>
  10835. </div>
  10836. </div>
  10837. </div>
  10838. <div class="upAnswerCss">
  10839. <el-button
  10840. type="primary"
  10841. @click="addSelectAnswerTeacher"
  10842. v-if="!isSelect"
  10843. >提交答案</el-button
  10844. >
  10845. </div>
  10846. </div>
  10847. </div>
  10848. </div>
  10849. </el-dialog>
  10850. <el-dialog
  10851. title="教师评分"
  10852. :visible.sync="dialogVisibleScore"
  10853. :append-to-body="true"
  10854. width="800px"
  10855. :before-close="handleClose"
  10856. class="dialog_diy"
  10857. >
  10858. <div>
  10859. <div class="studentDetail">
  10860. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10861. <div class="nameAndTime">
  10862. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10863. <div>{{ commentDetail.time }}</div>
  10864. </div>
  10865. </div>
  10866. <div
  10867. class="worksAnswer"
  10868. v-if="commentDetail.works && commentDetail.type == 2"
  10869. >
  10870. {{ JSON.parse(commentDetail.works)[0].answer }}
  10871. </div>
  10872. <div
  10873. class="worksAnswer"
  10874. v-if="commentDetail.works && commentDetail.type == 1"
  10875. >
  10876. <pdf
  10877. v-if="showPDF"
  10878. :pdfUrl="pptImgUrl"
  10879. style="width: 100%; height: 520px; overflow: auto"
  10880. :class="{ fullStyle: full }"
  10881. ></pdf>
  10882. <iframe
  10883. v-else
  10884. :src="pptImgUrl"
  10885. frameborder="0"
  10886. width="100%"
  10887. height="600"
  10888. :class="{ fullStyle: full }"
  10889. ></iframe>
  10890. </div>
  10891. <div
  10892. class="worksAnswer"
  10893. v-if="commentDetail.works && commentDetail.type == 0"
  10894. >
  10895. <img
  10896. :src="commentDetail.works"
  10897. alt=""
  10898. @click="previewImg(commentDetail.works)"
  10899. />
  10900. </div>
  10901. <div
  10902. class="worksAnswer"
  10903. v-if="commentDetail.works && commentDetail.type == 3"
  10904. >
  10905. <video-player
  10906. class="video-player vjs-custom-skin"
  10907. :playsinline="true"
  10908. :options="videoDetail"
  10909. @play="onPlayerPlay($event)"
  10910. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10911. ></video-player>
  10912. </div>
  10913. <div
  10914. class="worksAnswer codeFileBox"
  10915. v-if="commentDetail.works && commentDetail.type == 12"
  10916. @click="downloadFile(commentDetail.works)"
  10917. >
  10918. <img src="../assets/icon/codeFile.png" />
  10919. <div>点击下载文件</div>
  10920. </div>
  10921. <div
  10922. class="worksAnswer codeFileBox"
  10923. v-if="commentDetail.works && commentDetail.type == 15"
  10924. @click="
  10925. openCocoPi(
  10926. 57,
  10927. commentIndexJson.toolIndex,
  10928. commentDetail.userid,
  10929. commentDetail.sName
  10930. )
  10931. "
  10932. >
  10933. <img src="../assets/icon/codeFile.png" />
  10934. <div>点击打开CocoPi</div>
  10935. </div>
  10936. <div
  10937. class="worksAnswer"
  10938. v-if="commentDetail.works && commentDetail.type == 13"
  10939. >
  10940. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10941. </div>
  10942. <div class="scoreBox">
  10943. <span class="t">请输入分数</span>
  10944. <el-input-number
  10945. :disabled="courseDetail.userid != userid"
  10946. v-model="wScore"
  10947. :controls="false"
  10948. :min="0"
  10949. :max="100"
  10950. ></el-input-number>
  10951. </div>
  10952. <div class="scoreDetailBox">
  10953. <span class="t">评分评论</span>
  10954. <el-input
  10955. type="textarea"
  10956. :rows="5"
  10957. :disabled="courseDetail.userid != userid"
  10958. resize="none"
  10959. v-model="scoreDetail"
  10960. placeholder="请输入对学生的评价"
  10961. >
  10962. </el-input>
  10963. </div>
  10964. </div>
  10965. <span slot="footer" class="dialog-footer">
  10966. <el-button
  10967. @click="
  10968. (dialogVisibleScore = false),
  10969. (commentIndexJson = {}),
  10970. videoDetail.sources && videoDetail.sources[0]
  10971. ? (videoDetail.sources[0].src = '')
  10972. : ''
  10973. "
  10974. >取 消</el-button
  10975. >
  10976. <el-button
  10977. type="primary"
  10978. v-if="courseDetail.userid == userid"
  10979. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10980. >确 定
  10981. </el-button>
  10982. </span>
  10983. </el-dialog>
  10984. <el-dialog
  10985. title="排序"
  10986. :visible.sync="dialogVisibleSentence"
  10987. :append-to-body="true"
  10988. width="1000px"
  10989. :before-close="handleClose"
  10990. class="dialog_diy dialog_diy3"
  10991. >
  10992. <div>
  10993. <div class="sentenBox">
  10994. <div
  10995. v-for="(st, stIndex) in sentenceList"
  10996. :key="stIndex"
  10997. style="padding-bottom: 20px"
  10998. >
  10999. <div
  11000. style="padding: 15px 0 10px 20px"
  11001. class="sentenceTitle"
  11002. :index="stIndex + 1"
  11003. >
  11004. 题目{{ stIndex + 1 }}:请选择正确顺序
  11005. </div>
  11006. <div class="cardList" v-if="st.chooseSenList">
  11007. <div class="cardBox">
  11008. <div
  11009. v-for="(r, rIndex) in st.chooseSenList"
  11010. :key="rIndex"
  11011. @click="returnCard(r, stIndex, rIndex)"
  11012. >
  11013. <el-tooltip
  11014. class="item"
  11015. effect="light"
  11016. :content="r"
  11017. placement="top"
  11018. v-if="r != '' && r != undefined"
  11019. >
  11020. <div
  11021. :class="{
  11022. isCard: r,
  11023. isChooseCard: r == '' || r == undefined,
  11024. }"
  11025. >
  11026. <div>{{ r }}</div>
  11027. </div>
  11028. </el-tooltip>
  11029. <div
  11030. :class="{
  11031. isCard: r,
  11032. isChooseCard: r == '' || r == undefined,
  11033. }"
  11034. v-else
  11035. >
  11036. <div>{{ r }}</div>
  11037. </div>
  11038. </div>
  11039. </div>
  11040. </div>
  11041. <div class="cardList" v-if="st.addChangeSen">
  11042. <div class="cardBox">
  11043. <div
  11044. v-for="(s, sIndex) in st.addChangeSen"
  11045. :key="sIndex"
  11046. @click="setRightAnswer(s, stIndex, sIndex)"
  11047. >
  11048. <el-tooltip
  11049. class="item"
  11050. effect="light"
  11051. :content="s"
  11052. placement="top"
  11053. v-if="s != '' && s != undefined"
  11054. >
  11055. <div
  11056. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11057. >
  11058. <div>{{ s }}</div>
  11059. </div>
  11060. </el-tooltip>
  11061. <div
  11062. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11063. v-else
  11064. >
  11065. <div>{{ s }}</div>
  11066. </div>
  11067. </div>
  11068. </div>
  11069. </div>
  11070. </div>
  11071. </div>
  11072. </div>
  11073. <span slot="footer" class="dialog-footer">
  11074. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11075. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11076. </span>
  11077. </el-dialog>
  11078. <el-dialog
  11079. title="排序"
  11080. :visible.sync="dialogVisibleSentenceTeacher"
  11081. :append-to-body="true"
  11082. width="1000px"
  11083. :before-close="handleClose"
  11084. class="dialog_diy dialog_diy3"
  11085. >
  11086. <div>
  11087. <div class="w_name">
  11088. 学生姓名:<span>{{ sStudent.student }}</span>
  11089. </div>
  11090. <div class="sentenBox">
  11091. <div
  11092. v-for="(st, stIndex) in sentenceList"
  11093. :key="stIndex"
  11094. style="padding-bottom: 20px"
  11095. >
  11096. <div
  11097. style="padding: 15px 0 10px 20px"
  11098. class="sentenceTitle"
  11099. :index="stIndex + 1"
  11100. >
  11101. 题目{{ stIndex + 1 }}:请选择正确顺序
  11102. </div>
  11103. <div class="cardList" v-if="st.chooseSenList">
  11104. <div class="cardBox">
  11105. <div
  11106. v-for="(r, rIndex) in st.chooseSenList"
  11107. :key="rIndex"
  11108. @click="returnCard(r, stIndex, rIndex)"
  11109. >
  11110. <el-tooltip
  11111. class="item"
  11112. effect="light"
  11113. :content="r"
  11114. placement="top"
  11115. v-if="r != '' && r != undefined"
  11116. >
  11117. <div
  11118. :class="{
  11119. isCard: r,
  11120. isChooseCard: r == '' || r == undefined,
  11121. }"
  11122. >
  11123. <div>{{ r }}</div>
  11124. </div>
  11125. </el-tooltip>
  11126. <div
  11127. :class="{
  11128. isCard: r,
  11129. isChooseCard: r == '' || r == undefined,
  11130. }"
  11131. v-else
  11132. >
  11133. <div>{{ r }}</div>
  11134. </div>
  11135. </div>
  11136. </div>
  11137. </div>
  11138. <div class="cardList" v-if="st.addChangeSen">
  11139. <div class="cardBox">
  11140. <div
  11141. v-for="(s, sIndex) in st.addChangeSen"
  11142. :key="sIndex"
  11143. @click="setRightAnswer(s, stIndex, sIndex)"
  11144. >
  11145. <el-tooltip
  11146. class="item"
  11147. effect="light"
  11148. :content="s"
  11149. placement="top"
  11150. v-if="s != '' && s != undefined"
  11151. >
  11152. <div
  11153. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11154. >
  11155. <div>{{ s }}</div>
  11156. </div>
  11157. </el-tooltip>
  11158. <div
  11159. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11160. v-else
  11161. >
  11162. <div>{{ s }}</div>
  11163. </div>
  11164. </div>
  11165. </div>
  11166. </div>
  11167. </div>
  11168. </div>
  11169. </div>
  11170. <span slot="footer" class="dialog-footer">
  11171. <el-button @click="dialogVisibleSentenceTeacher = false"
  11172. >取 消</el-button
  11173. >
  11174. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11175. </span>
  11176. </el-dialog>
  11177. <el-dialog
  11178. title="排序"
  11179. :visible.sync="dialogVisibleSentence1"
  11180. :append-to-body="true"
  11181. width="1000px"
  11182. :before-close="handleClose"
  11183. class="dialog_diy dialog_diy3"
  11184. >
  11185. <div>
  11186. <div class="sentenBox">
  11187. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11188. {{ sentenceList1.stuName }}的作业
  11189. </div>
  11190. <div
  11191. v-for="(st, stIndex) in sentenceList1"
  11192. :key="stIndex"
  11193. style="padding-bottom: 20px"
  11194. >
  11195. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11196. 第{{ stIndex + 1 }}题
  11197. </div>
  11198. <div class="isWrong">
  11199. <div class="cardList1" v-if="st.chooseSenList">
  11200. <div class="cardBox">
  11201. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11202. <el-tooltip
  11203. class="item"
  11204. effect="light"
  11205. :content="s"
  11206. placement="top"
  11207. >
  11208. <div class="isCard">
  11209. <div>{{ s }}</div>
  11210. </div>
  11211. </el-tooltip>
  11212. </div>
  11213. </div>
  11214. <div class="cardAnswerBox">
  11215. 组成句子:{{ st.chooseSenList.join(" ") }}
  11216. </div>
  11217. </div>
  11218. <div v-if="tType == 2" class="isTj">
  11219. <div class="isTjImg">
  11220. <img src="../assets/icon/conSentences/right.png" alt="" />
  11221. </div>
  11222. <div>已提交</div>
  11223. </div>
  11224. <div
  11225. class="answerRight isTj"
  11226. v-if="
  11227. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11228. (tType == 1 || tType == 4)
  11229. "
  11230. >
  11231. <div class="isTjImg">
  11232. <img src="../assets/icon/conSentences/right.png" alt="" />
  11233. </div>
  11234. <div>回答正确</div>
  11235. </div>
  11236. <div
  11237. class="answerRight isTj"
  11238. v-if="
  11239. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11240. (tType == 1 || tType == 4)
  11241. "
  11242. >
  11243. <div class="isTjImg">
  11244. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11245. </div>
  11246. <div>回答错误</div>
  11247. </div>
  11248. </div>
  11249. <div
  11250. v-if="
  11251. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11252. (tType == 1 || tType == 4)
  11253. "
  11254. >
  11255. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11256. <div
  11257. class="cardList"
  11258. v-if="st.rightAnswer"
  11259. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11260. >
  11261. <div class="cardBox">
  11262. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11263. <el-tooltip
  11264. class="item"
  11265. effect="light"
  11266. :content="r"
  11267. placement="top"
  11268. >
  11269. <div class="isCard1">
  11270. <div>{{ r }}</div>
  11271. </div>
  11272. </el-tooltip>
  11273. </div>
  11274. </div>
  11275. <div class="cardAnswerBox">
  11276. 组成句子:{{ st.rightAnswer.join(" ") }}
  11277. </div>
  11278. </div>
  11279. </div>
  11280. </div>
  11281. </div>
  11282. </div>
  11283. <span slot="footer" class="dialog-footer">
  11284. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11285. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11286. >确 定</el-button
  11287. >
  11288. </span>
  11289. </el-dialog>
  11290. <el-dialog
  11291. title="教师提交作业"
  11292. :visible.sync="dialogVisibleWorks"
  11293. :append-to-body="true"
  11294. width="500px"
  11295. :before-close="handleClose"
  11296. class="dialog_change"
  11297. >
  11298. <div class="marginT">
  11299. <div class="w_name">
  11300. 学生姓名:<span>{{ sStudent.student }}</span>
  11301. </div>
  11302. <div>上传文件</div>
  11303. <div style="display: flex; gap: 10px">
  11304. <div
  11305. class="chapter_add"
  11306. @click="addImg($event)"
  11307. v-if="studyJuri[0].cover.length == 0"
  11308. >
  11309. <div class="up_photo">
  11310. <img src="../assets/icon/uploadImg.png" alt />
  11311. </div>
  11312. <!-- <input
  11313. type="file"
  11314. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11315. style="display: none"
  11316. @change="beforeUpload1($event, 1)"
  11317. /> -->
  11318. <input
  11319. type="file"
  11320. accept="*"
  11321. style="display: none"
  11322. @change="beforeUpload1($event, 1)"
  11323. />
  11324. <!-- <input
  11325. type="file"
  11326. accept="image/*"
  11327. capture="camera"
  11328. style="display: none"
  11329. @change="beforeUpload1($event, 1)"
  11330. /> -->
  11331. </div>
  11332. <div
  11333. class="chapter_add"
  11334. @click="addImg($event)"
  11335. v-if="studyJuri[0].cover.length == 0"
  11336. >
  11337. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11338. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11339. </div>
  11340. <input
  11341. type="file"
  11342. accept="image/*"
  11343. capture="camera"
  11344. style="display: none"
  11345. @change="beforeUpload1($event, 1)"
  11346. />
  11347. </div>
  11348. </div>
  11349. <!-- capture="camera" -->
  11350. <div
  11351. class="chapter_add"
  11352. style="
  11353. display: flex;
  11354. width: 100%;
  11355. flex-direction: row;
  11356. flex-wrap: wrap;
  11357. justify-content: flex-start;
  11358. padding: 15px 0;
  11359. "
  11360. v-if="studyJuri[0].cover.length > 0"
  11361. >
  11362. <div class="upCover">
  11363. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11364. <img :src="word" alt v-else-if="fileType == 1" />
  11365. <img :src="video" alt v-else-if="fileType == 2" />
  11366. <img :src="word2" alt v-else-if="fileType == 3" />
  11367. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11368. <div class="deleteWord" @click="clean(1)">
  11369. <img src="../assets/icon/deleteWorks.png" alt />
  11370. </div>
  11371. </div>
  11372. </div>
  11373. </div>
  11374. <div
  11375. class="upload_send"
  11376. @click="addCourseWorksTeacher(taskCount)"
  11377. v-if="!proVisible"
  11378. >
  11379. 提交
  11380. </div>
  11381. </el-dialog>
  11382. <ImgDraw
  11383. :drawShow="drawShow"
  11384. @closeDraw="closeDraw"
  11385. @addImgDraw="addImgDraw"
  11386. :bg="bg"
  11387. ></ImgDraw>
  11388. <el-dialog
  11389. title="表格"
  11390. :visible.sync="dialogVisibleTable"
  11391. :append-to-body="true"
  11392. width="95%"
  11393. :before-close="handleClose"
  11394. class="dialog_diy"
  11395. >
  11396. <el-form>
  11397. <div
  11398. style="
  11399. display: flex;
  11400. align-items: center;
  11401. justify-content: space-between;
  11402. "
  11403. >
  11404. <span>表格内容</span>
  11405. <el-button type="primary" size="small" @click="returnTableText"
  11406. >还原模板</el-button
  11407. >
  11408. </div>
  11409. <Table
  11410. v-model="tableJson.text"
  11411. @change="change"
  11412. v-if="dialogVisibleTable"
  11413. ></Table>
  11414. </el-form>
  11415. <span slot="footer" class="dialog-footer">
  11416. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11417. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11418. </span>
  11419. </el-dialog>
  11420. <el-dialog
  11421. title="表格"
  11422. :visible.sync="dialogVisibleTableTeacher"
  11423. :append-to-body="true"
  11424. width="95%"
  11425. :before-close="handleClose"
  11426. class="dialog_diy"
  11427. >
  11428. <el-form>
  11429. <div class="w_name">
  11430. 学生姓名:<span>{{ sStudent.student }}</span>
  11431. </div>
  11432. <div>表格内容</div>
  11433. <Table
  11434. v-model="tableJson.text"
  11435. @change="change"
  11436. v-if="dialogVisibleTableTeacher"
  11437. ></Table>
  11438. </el-form>
  11439. <span slot="footer" class="dialog-footer">
  11440. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11441. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11442. </span>
  11443. </el-dialog>
  11444. <el-dialog
  11445. title="文档"
  11446. :visible.sync="dialogVisibleWord"
  11447. :append-to-body="true"
  11448. width="95%"
  11449. :before-close="handleClose"
  11450. class="dialog_diy"
  11451. >
  11452. <el-form>
  11453. <div
  11454. style="
  11455. display: flex;
  11456. align-items: center;
  11457. justify-content: space-between;
  11458. "
  11459. >
  11460. <span>文档内容</span>
  11461. <el-button type="primary" size="small" @click="returnWordText"
  11462. >还原模板</el-button
  11463. >
  11464. </div>
  11465. <editor-bar
  11466. v-model="wordJson.text"
  11467. v-if="dialogVisibleWord"
  11468. ></editor-bar>
  11469. </el-form>
  11470. <span slot="footer" class="dialog-footer">
  11471. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11472. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11473. </span>
  11474. </el-dialog>
  11475. <el-dialog
  11476. title="文档"
  11477. :visible.sync="dialogVisibleWordTeacher"
  11478. :append-to-body="true"
  11479. width="95%"
  11480. :before-close="handleClose"
  11481. class="dialog_diy"
  11482. >
  11483. <el-form>
  11484. <div class="w_name">
  11485. 学生姓名:<span>{{ sStudent.student }}</span>
  11486. </div>
  11487. <div>文档内容</div>
  11488. <editor-bar
  11489. v-model="wordJson.text"
  11490. v-if="dialogVisibleWordTeacher"
  11491. ></editor-bar>
  11492. </el-form>
  11493. <span slot="footer" class="dialog-footer">
  11494. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11495. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11496. </span>
  11497. </el-dialog>
  11498. <el-dialog
  11499. title="表格"
  11500. :visible.sync="dialogVisibleTable2"
  11501. :append-to-body="true"
  11502. width="95%"
  11503. :before-close="handleClose"
  11504. class="dialog_diy"
  11505. >
  11506. <el-form>
  11507. <div class="cont" v-html="tableJson.text"></div>
  11508. </el-form>
  11509. <span slot="footer" class="dialog-footer">
  11510. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11511. </span>
  11512. </el-dialog>
  11513. <el-dialog
  11514. title="文档"
  11515. :visible.sync="dialogVisibleTable3"
  11516. :append-to-body="true"
  11517. width="95%"
  11518. :before-close="handleClose"
  11519. class="dialog_diy"
  11520. >
  11521. <el-form>
  11522. <div class="cont" v-html="tableJson.text"></div>
  11523. </el-form>
  11524. <span slot="footer" class="dialog-footer">
  11525. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11526. </span>
  11527. </el-dialog>
  11528. <el-dialog
  11529. title="分组设置"
  11530. :visible.sync="dialogVisibleGroup"
  11531. :append-to-body="true"
  11532. width="95%"
  11533. :before-close="handleClose"
  11534. class="dialog_diy"
  11535. >
  11536. <div v-if="dialogVisibleGroup">
  11537. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11538. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11539. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11540. </div>
  11541. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11542. @click="lockChair">
  11543. 锁定位置
  11544. </div>
  11545. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11546. 解锁位置
  11547. </div> -->
  11548. <div class="group_switch">
  11549. <span>开放选座</span>
  11550. <el-switch
  11551. v-model="islock"
  11552. active-text=""
  11553. class="switchCss"
  11554. @change="lockChair"
  11555. ></el-switch>
  11556. </div>
  11557. <div
  11558. type="primary"
  11559. @click="updateGroup"
  11560. class="returnBtn"
  11561. style="background-color: #225bc7"
  11562. >
  11563. 分组设置
  11564. </div>
  11565. </div>
  11566. <div>
  11567. <div
  11568. class="g_d_box"
  11569. v-if="groupJson.group && groupStudent[toolindex]"
  11570. >
  11571. <div
  11572. class="g_d_group"
  11573. v-for="(g, gindex) in groupJson.group"
  11574. :key="gindex"
  11575. >
  11576. <div class="g_d_group_chair">
  11577. <div v-if="groupJson.number > 1">
  11578. <span
  11579. :class="{
  11580. isChair:
  11581. groupStudent[toolindex][gindex] &&
  11582. groupStudent[toolindex][gindex][0],
  11583. updateChair:
  11584. courseDetail.userid == userid &&
  11585. groupStudent[toolindex][gindex] &&
  11586. groupStudent[toolindex][gindex][0] &&
  11587. groupJson.islock == 2,
  11588. }"
  11589. ><span
  11590. class="updateChairBtn"
  11591. @click="
  11592. updateGroupChair(
  11593. groupStudent[toolindex][gindex] &&
  11594. groupStudent[toolindex][gindex][0]
  11595. )
  11596. "
  11597. >修改</span
  11598. ></span
  11599. ><span>{{
  11600. groupStudent[toolindex][gindex] &&
  11601. groupStudent[toolindex][gindex][0]
  11602. ? groupStudent[toolindex][gindex] &&
  11603. groupStudent[toolindex][gindex][0].name
  11604. : "空位置"
  11605. }}</span>
  11606. </div>
  11607. <div v-if="groupJson.number > 4">
  11608. <span
  11609. :class="{
  11610. isChair:
  11611. groupStudent[toolindex][gindex] &&
  11612. groupStudent[toolindex][gindex][4],
  11613. updateChair:
  11614. courseDetail.userid == userid &&
  11615. groupStudent[toolindex][gindex] &&
  11616. groupStudent[toolindex][gindex][4] &&
  11617. groupJson.islock == 2,
  11618. }"
  11619. ><span
  11620. class="updateChairBtn"
  11621. @click="
  11622. updateGroupChair(
  11623. groupStudent[toolindex][gindex] &&
  11624. groupStudent[toolindex][gindex][4]
  11625. )
  11626. "
  11627. >修改</span
  11628. ></span
  11629. ><span>{{
  11630. groupStudent[toolindex][gindex] &&
  11631. groupStudent[toolindex][gindex][4]
  11632. ? groupStudent[toolindex][gindex] &&
  11633. groupStudent[toolindex][gindex][4].name
  11634. : "空位置"
  11635. }}</span>
  11636. </div>
  11637. <div v-if="groupJson.number > 8">
  11638. <span
  11639. :class="{
  11640. isChair:
  11641. groupStudent[toolindex][gindex] &&
  11642. groupStudent[toolindex][gindex][8],
  11643. updateChair:
  11644. courseDetail.userid == userid &&
  11645. groupStudent[toolindex][gindex] &&
  11646. groupStudent[toolindex][gindex][8] &&
  11647. groupJson.islock == 2,
  11648. }"
  11649. ><span
  11650. class="updateChairBtn"
  11651. @click="
  11652. updateGroupChair(
  11653. groupStudent[toolindex][gindex] &&
  11654. groupStudent[toolindex][gindex][8]
  11655. )
  11656. "
  11657. >修改</span
  11658. ></span
  11659. ><span>{{
  11660. groupStudent[toolindex][gindex] &&
  11661. groupStudent[toolindex][gindex][8]
  11662. ? groupStudent[toolindex][gindex] &&
  11663. groupStudent[toolindex][gindex][8].name
  11664. : "空位置"
  11665. }}</span>
  11666. </div>
  11667. </div>
  11668. <div class="g_d_group_tableBox">
  11669. <div class="g_d_group_chair2">
  11670. <div v-if="groupJson.number > 2">
  11671. <span
  11672. :class="{
  11673. isChair:
  11674. groupStudent[toolindex][gindex] &&
  11675. groupStudent[toolindex][gindex][2],
  11676. updateChair:
  11677. courseDetail.userid == userid &&
  11678. groupStudent[toolindex][gindex] &&
  11679. groupStudent[toolindex][gindex][2] &&
  11680. groupJson.islock == 2,
  11681. }"
  11682. ><span
  11683. class="updateChairBtn"
  11684. @click="
  11685. updateGroupChair(
  11686. groupStudent[toolindex][gindex] &&
  11687. groupStudent[toolindex][gindex][2]
  11688. )
  11689. "
  11690. >修改</span
  11691. ></span
  11692. ><span>{{
  11693. groupStudent[toolindex][gindex] &&
  11694. groupStudent[toolindex][gindex][2]
  11695. ? groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][2].name
  11697. : "空位置"
  11698. }}</span>
  11699. </div>
  11700. <div v-if="groupJson.number > 6">
  11701. <span
  11702. :class="{
  11703. isChair:
  11704. groupStudent[toolindex][gindex] &&
  11705. groupStudent[toolindex][gindex][6],
  11706. updateChair:
  11707. courseDetail.userid == userid &&
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][6] &&
  11710. groupJson.islock == 2,
  11711. }"
  11712. ><span
  11713. class="updateChairBtn"
  11714. @click="
  11715. updateGroupChair(
  11716. groupStudent[toolindex][gindex] &&
  11717. groupStudent[toolindex][gindex][6]
  11718. )
  11719. "
  11720. >修改</span
  11721. ></span
  11722. ><span>{{
  11723. groupStudent[toolindex][gindex] &&
  11724. groupStudent[toolindex][gindex][6]
  11725. ? groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][6].name
  11727. : "空位置"
  11728. }}</span>
  11729. </div>
  11730. </div>
  11731. <div class="g_d_group_table">
  11732. <div>
  11733. {{ g.name }}
  11734. </div>
  11735. <div>
  11736. <div
  11737. v-if="
  11738. courseDetail.userid == userid && groupJson.islock == 2
  11739. "
  11740. @click="deleteGroupChair(gindex)"
  11741. >
  11742. 移除组员
  11743. </div>
  11744. <div
  11745. @click="selectGroup(gindex)"
  11746. v-else-if="
  11747. groupStudentUid[toolindex] &&
  11748. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11749. "
  11750. >
  11751. 加入分组
  11752. </div>
  11753. <div
  11754. @click="
  11755. exitGroup(
  11756. groupStudent[toolindex][gindex] &&
  11757. groupStudent[toolindex][gindex][
  11758. groupStudentUid[toolindex][gindex].indexOf(userid)
  11759. ].id
  11760. )
  11761. "
  11762. v-else-if="
  11763. groupStudentUid[toolindex] &&
  11764. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11765. "
  11766. >
  11767. 退出分组
  11768. </div>
  11769. </div>
  11770. </div>
  11771. <div class="g_d_group_chair2">
  11772. <div v-if="groupJson.number > 3">
  11773. <span
  11774. :class="{
  11775. isChair:
  11776. groupStudent[toolindex][gindex] &&
  11777. groupStudent[toolindex][gindex][3],
  11778. updateChair:
  11779. courseDetail.userid == userid &&
  11780. groupStudent[toolindex][gindex] &&
  11781. groupStudent[toolindex][gindex][3] &&
  11782. groupJson.islock == 2,
  11783. }"
  11784. ><span
  11785. class="updateChairBtn"
  11786. @click="
  11787. updateGroupChair(
  11788. groupStudent[toolindex][gindex] &&
  11789. groupStudent[toolindex][gindex][3]
  11790. )
  11791. "
  11792. >修改</span
  11793. ></span
  11794. ><span>{{
  11795. groupStudent[toolindex][gindex] &&
  11796. groupStudent[toolindex][gindex][3]
  11797. ? groupStudent[toolindex][gindex] &&
  11798. groupStudent[toolindex][gindex][3].name
  11799. : "空位置"
  11800. }}</span>
  11801. </div>
  11802. <div v-if="groupJson.number > 7">
  11803. <span
  11804. :class="{
  11805. isChair:
  11806. groupStudent[toolindex][gindex] &&
  11807. groupStudent[toolindex][gindex][7],
  11808. updateChair:
  11809. courseDetail.userid == userid &&
  11810. groupStudent[toolindex][gindex] &&
  11811. groupStudent[toolindex][gindex][7] &&
  11812. groupJson.islock == 2,
  11813. }"
  11814. ><span
  11815. class="updateChairBtn"
  11816. @click="
  11817. updateGroupChair(
  11818. groupStudent[toolindex][gindex] &&
  11819. groupStudent[toolindex][gindex][7]
  11820. )
  11821. "
  11822. >修改</span
  11823. ></span
  11824. ><span>{{
  11825. groupStudent[toolindex][gindex] &&
  11826. groupStudent[toolindex][gindex][7]
  11827. ? groupStudent[toolindex][gindex] &&
  11828. groupStudent[toolindex][gindex][7].name
  11829. : "空位置"
  11830. }}</span>
  11831. </div>
  11832. </div>
  11833. </div>
  11834. <div class="g_d_group_chair">
  11835. <div v-if="groupJson.number > 1">
  11836. <span
  11837. :class="{
  11838. isChair:
  11839. groupStudent[toolindex][gindex] &&
  11840. groupStudent[toolindex][gindex][1],
  11841. updateChair:
  11842. courseDetail.userid == userid &&
  11843. groupStudent[toolindex][gindex] &&
  11844. groupStudent[toolindex][gindex][1] &&
  11845. groupJson.islock == 2,
  11846. }"
  11847. ><span
  11848. class="updateChairBtn"
  11849. @click="
  11850. updateGroupChair(
  11851. groupStudent[toolindex][gindex] &&
  11852. groupStudent[toolindex][gindex][1]
  11853. )
  11854. "
  11855. >修改</span
  11856. ></span
  11857. ><span>{{
  11858. groupStudent[toolindex][gindex] &&
  11859. groupStudent[toolindex][gindex][1]
  11860. ? groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][1].name
  11862. : "空位置"
  11863. }}</span>
  11864. </div>
  11865. <div v-if="groupJson.number > 5">
  11866. <span
  11867. :class="{
  11868. isChair:
  11869. groupStudent[toolindex][gindex] &&
  11870. groupStudent[toolindex][gindex][5],
  11871. updateChair:
  11872. courseDetail.userid == userid &&
  11873. groupStudent[toolindex][gindex] &&
  11874. groupStudent[toolindex][gindex][5] &&
  11875. groupJson.islock == 2,
  11876. }"
  11877. ><span
  11878. class="updateChairBtn"
  11879. @click="
  11880. updateGroupChair(
  11881. groupStudent[toolindex][gindex] &&
  11882. groupStudent[toolindex][gindex][5]
  11883. )
  11884. "
  11885. >修改</span
  11886. ></span
  11887. ><span>{{
  11888. groupStudent[toolindex][gindex] &&
  11889. groupStudent[toolindex][gindex][5]
  11890. ? groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][5].name
  11892. : "空位置"
  11893. }}</span>
  11894. </div>
  11895. <div v-if="groupJson.number > 9">
  11896. <span
  11897. :class="{
  11898. isChair:
  11899. groupStudent[toolindex][gindex] &&
  11900. groupStudent[toolindex][gindex][9],
  11901. updateChair:
  11902. courseDetail.userid == userid &&
  11903. groupStudent[toolindex][gindex] &&
  11904. groupStudent[toolindex][gindex][9] &&
  11905. groupJson.islock == 2,
  11906. }"
  11907. ><span
  11908. class="updateChairBtn"
  11909. @click="
  11910. updateGroupChair(
  11911. groupStudent[toolindex][gindex] &&
  11912. groupStudent[toolindex][gindex][9]
  11913. )
  11914. "
  11915. >修改</span
  11916. ></span
  11917. ><span>{{
  11918. groupStudent[toolindex][gindex] &&
  11919. groupStudent[toolindex][gindex][9]
  11920. ? groupStudent[toolindex][gindex] &&
  11921. groupStudent[toolindex][gindex][9].name
  11922. : "空位置"
  11923. }}</span>
  11924. </div>
  11925. </div>
  11926. </div>
  11927. </div>
  11928. </div>
  11929. </div>
  11930. <span slot="footer" class="dialog-footer">
  11931. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11932. </span>
  11933. </el-dialog>
  11934. <el-dialog
  11935. title="分组设置"
  11936. :visible.sync="dialogVisibleGroup2"
  11937. :append-to-body="true"
  11938. width="650px"
  11939. :before-close="handleClose"
  11940. class="dialog_diy"
  11941. >
  11942. <div class="groupBox">
  11943. <div v-if="groupJson2.group" class="groupContent">
  11944. <div class="groupTitle">请设置小组数量及名称</div>
  11945. <div
  11946. v-for="(item, index) in groupJson2.group"
  11947. :key="index"
  11948. class="groupName"
  11949. >
  11950. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11951. <el-input
  11952. v-model="item.name"
  11953. placeholder="请输入名称..."
  11954. style="width: 250px"
  11955. ></el-input>
  11956. <!-- <div class="groupBtn">
  11957. <el-button type="primary" size="small" @click="addGroup(index)">
  11958. 添加</el-button>
  11959. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11960. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11961. </div> -->
  11962. </div>
  11963. </div>
  11964. <div class="groupContent">
  11965. <div class="groupTitle">请设置每组人数</div>
  11966. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11967. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11968. <el-input
  11969. v-model="groupJson2.number"
  11970. style="width: 150px"
  11971. placeholder="请输入2-10的数字"
  11972. @change="numberPan"
  11973. ></el-input>
  11974. </div>
  11975. </div>
  11976. <span slot="footer" class="dialog-footer">
  11977. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11978. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11979. </span>
  11980. </el-dialog>
  11981. <el-dialog
  11982. title="作业提交"
  11983. :visible.sync="dialogVisibleGroupWork"
  11984. :append-to-body="true"
  11985. width="500px"
  11986. :before-close="handleClose"
  11987. class="dialog_change"
  11988. >
  11989. <div class="marginT">
  11990. <div>上传文件</div>
  11991. <div
  11992. class="chapter_add"
  11993. @click="addImg($event)"
  11994. v-if="studyJuri[0].cover.length == 0"
  11995. >
  11996. <div class="up_photo">
  11997. <img src="../assets/icon/uploadImg.png" alt />
  11998. </div>
  11999. <!-- <input
  12000. type="file"
  12001. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12002. style="display: none"
  12003. @change="beforeUpload1($event, 1)"
  12004. /> -->
  12005. <input
  12006. type="file"
  12007. accept="*"
  12008. style="display: none"
  12009. @change="beforeUpload1($event, 1)"
  12010. />
  12011. </div>
  12012. <!-- capture="camera" -->
  12013. <div
  12014. class="chapter_add"
  12015. style="
  12016. display: flex;
  12017. width: 100%;
  12018. flex-direction: row;
  12019. flex-wrap: wrap;
  12020. justify-content: flex-start;
  12021. padding: 15px 0;
  12022. "
  12023. v-if="studyJuri[0].cover.length > 0"
  12024. >
  12025. <div class="upCover">
  12026. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12027. <img :src="word" alt v-else-if="fileType == 1" />
  12028. <img :src="video" alt v-else-if="fileType == 2" />
  12029. <img :src="word2" alt v-else-if="fileType == 3" />
  12030. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12031. <div class="deleteWord" @click="clean(1)">
  12032. <img src="../assets/icon/deleteWorks.png" alt />
  12033. </div>
  12034. </div>
  12035. </div>
  12036. </div>
  12037. <div
  12038. class="upload_send"
  12039. @click="addCourseWorks2(taskCount)"
  12040. v-if="!proVisible"
  12041. >
  12042. 提交
  12043. </div>
  12044. </el-dialog>
  12045. <el-dialog
  12046. title="修改分组"
  12047. :visible.sync="dialogVisibleUpdateGroup"
  12048. :append-to-body="true"
  12049. width="350px"
  12050. :before-close="handleClose"
  12051. class="dialog_diy"
  12052. >
  12053. <div>
  12054. <h2>
  12055. {{ this.updateGroupUser.name }}
  12056. </h2>
  12057. <div style="color: rgb(171 171 171); margin-top: 10px">
  12058. 请选择要进入的分组
  12059. </div>
  12060. <el-radio-group v-model="checkChair">
  12061. <el-radio
  12062. style="display: block; margin-top: 20px"
  12063. v-for="(item, index) in updateGroupArray"
  12064. :label="item.label"
  12065. :key="index"
  12066. >{{ item.name }}</el-radio
  12067. >
  12068. </el-radio-group>
  12069. </div>
  12070. <span slot="footer" class="dialog-footer">
  12071. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12072. <el-button type="primary" @click="updateChair">确定</el-button>
  12073. </span>
  12074. </el-dialog>
  12075. <el-dialog
  12076. title="移除组员"
  12077. :visible.sync="dialogVisibleDeleteGroup"
  12078. :append-to-body="true"
  12079. width="350px"
  12080. :before-close="handleClose"
  12081. class="dialog_diy"
  12082. >
  12083. <div>
  12084. <h2>
  12085. {{ this.deleteGroupArray.name }}
  12086. </h2>
  12087. <div style="color: rgb(171 171 171); margin-top: 10px">
  12088. 请选择要删除的组员
  12089. </div>
  12090. <el-checkbox-group v-model="checkDeleteGroup">
  12091. <el-checkbox
  12092. style="display: flex; margin-top: 20px"
  12093. v-for="(item, index) in deleteGroupUser"
  12094. :label="item.userid"
  12095. :key="index"
  12096. >{{ item.name }}</el-checkbox
  12097. >
  12098. </el-checkbox-group>
  12099. </div>
  12100. <span slot="footer" class="dialog-footer">
  12101. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12102. <el-button type="primary" @click="deleteChair">确定</el-button>
  12103. </span>
  12104. </el-dialog>
  12105. <el-dialog
  12106. title="批量上传"
  12107. :visible.sync="dialogVisiblePl"
  12108. :append-to-body="true"
  12109. width="700px"
  12110. :before-close="handleClose"
  12111. class="dialog_change"
  12112. >
  12113. <div class="marginT">
  12114. <div class="plworkBox">
  12115. <div
  12116. class="chapter_add"
  12117. style="
  12118. display: flex;
  12119. width: 150px;
  12120. flex-direction: row;
  12121. flex-wrap: wrap;
  12122. justify-content: flex-start;
  12123. margin: 0 10px 10px 0;
  12124. "
  12125. v-for="(item, index) in plworkFile"
  12126. :key="index"
  12127. >
  12128. <div class="upCover2">
  12129. <img
  12130. :src="item.url"
  12131. alt
  12132. v-if="item.fileType == 1"
  12133. @click="previewImg(item.url)"
  12134. />
  12135. <img :src="word" alt v-else-if="item.fileType == 4" />
  12136. <img :src="video" alt v-else />
  12137. <!-- <span class="picName">{{ item.name }}</span> -->
  12138. <!-- <el-input
  12139. v-model="item.username"
  12140. placeholder="请输入学生名字"
  12141. style="margin-top: 10px"
  12142. ></el-input> -->
  12143. <div
  12144. class="pl_select_box"
  12145. @click="
  12146. getUpdateMore(true, checkUpload(), item.username, index)
  12147. "
  12148. >
  12149. {{ getSName(item.username) }}
  12150. </div>
  12151. <!-- <el-select
  12152. style="margin-top: 10px"
  12153. v-model="item.username"
  12154. filterable
  12155. allow-create
  12156. placeholder="请选择学生"
  12157. >
  12158. <el-option
  12159. v-for="item1 in checkUpload()"
  12160. :key="item1.userid"
  12161. :label="item1.name ? item1.name : item1.username"
  12162. :value="item1.userid"
  12163. >
  12164. </el-option>
  12165. </el-select> -->
  12166. <div class="deleteWord" @click="clean2(index)">
  12167. <img src="../assets/icon/deleteWorks.png" alt />
  12168. </div>
  12169. </div>
  12170. </div>
  12171. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12172. <div class="up_photo2">
  12173. <img src="../assets/icon/plwork.png" alt />
  12174. <span>点击上传文件</span>
  12175. </div>
  12176. <input
  12177. type="file"
  12178. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12179. multiple="multiple"
  12180. style="display: none"
  12181. @change="beforeUpload3($event, 6)"
  12182. />
  12183. </div>
  12184. </div>
  12185. </div>
  12186. <!-- capture="camera" -->
  12187. <div
  12188. class="upload_send"
  12189. @click="addCourseWorksPl(taskCount)"
  12190. v-if="!proVisible2"
  12191. >
  12192. 提交
  12193. </div>
  12194. </el-dialog>
  12195. <el-dialog
  12196. title="修改名称"
  12197. :visible.sync="dialogVisibleSname"
  12198. width="500px"
  12199. :before-close="handleClose"
  12200. class="dialog_diy"
  12201. center
  12202. >
  12203. <div
  12204. style="
  12205. text-align: center;
  12206. display: flex;
  12207. align-items: center;
  12208. justify-content: center;
  12209. "
  12210. >
  12211. <span class="tian1">名称</span>
  12212. <div
  12213. class="pl_select_box"
  12214. style="margin-left: 10px; width: 200px"
  12215. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12216. >
  12217. {{ getSName(worksSName) }}
  12218. </div>
  12219. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12220. placeholder="请选择学生">
  12221. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12222. :value="item.userid">
  12223. </el-option>
  12224. </el-select> -->
  12225. <!-- <el-input
  12226. v-model="worksSName"
  12227. style="width: 250px; margin: 15px 0px"
  12228. ></el-input> -->
  12229. </div>
  12230. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12231. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12232. <el-button type="primary" @click="updateName">确 定</el-button>
  12233. </span>
  12234. </el-dialog>
  12235. <el-dialog
  12236. title="英语写作"
  12237. :visible.sync="engDialogVisible"
  12238. :append-to-body="true"
  12239. width="800px"
  12240. :before-close="handleClose"
  12241. class="dialog_diy"
  12242. >
  12243. <onlineWrite
  12244. v-if="engDialogVisible"
  12245. :englishList="englishList"
  12246. :myAnswerList1="myAnswerList1"
  12247. :userid="userid"
  12248. ref="engJson"
  12249. ></onlineWrite>
  12250. <span slot="footer" class="dialog-footer">
  12251. <el-button @click="engDialogVisible = false">取 消</el-button>
  12252. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12253. </span>
  12254. </el-dialog>
  12255. <el-dialog
  12256. title="英语写作"
  12257. :visible.sync="engUpdateDialogVisible"
  12258. :append-to-body="true"
  12259. width="800px"
  12260. :before-close="handleClose"
  12261. class="dialog_diy fullStyle"
  12262. >
  12263. <div class="engUpBox">
  12264. <div class="engUpTop">
  12265. <div class="engTitle">
  12266. <div>作文题目:</div>
  12267. <div>{{ englishList1.engTitle }}</div>
  12268. </div>
  12269. <div class="engText">
  12270. <div>作文内容:</div>
  12271. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12272. </div>
  12273. </div>
  12274. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12275. <div class="oldBox">
  12276. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12277. <div class="oldText">
  12278. <div class="detailBox">
  12279. <div class="oldDetail">
  12280. <div>标题:</div>
  12281. <div>{{ oldEnglishJson.engTitle }} </div>
  12282. </div>
  12283. <div class="oldDetail1">
  12284. <div>正文:</div>
  12285. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12286. </div>
  12287. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12288. <div>图片:</div>
  12289. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12290. </div>
  12291. </div>
  12292. </div>
  12293. </div>
  12294. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12295. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12296. <div class="oldText">
  12297. <div class="detailBox" style="position: relative;">
  12298. <div class="oldDetail">
  12299. <div>标题:</div>
  12300. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12301. <div v-else v-html="newEnglishList.engTitle"></div>
  12302. </div>
  12303. <div class="oldDetail">
  12304. <div>正文:</div>
  12305. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12306. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12307. </div>
  12308. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12309. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12310. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12311. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12312. </div>
  12313. </div>
  12314. </div>
  12315. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12316. <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">
  12317. <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>
  12318. <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>
  12319. </div>
  12320. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12321. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12322. <div class="detailBox" style="position: relative;">
  12323. <div class="oldDetail">
  12324. <div>标题:</div>
  12325. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12326. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12327. </div>
  12328. <div class="oldDetail">
  12329. <div>正文:</div>
  12330. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12331. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12332. </div>
  12333. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12334. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12335. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12336. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12337. </div>
  12338. </div>
  12339. <div class="oldText" v-else-if="newEngIndex == -1">
  12340. <div class="detailBox" style="position: relative;">
  12341. <div class="oldDetail">
  12342. <div>标题:</div>
  12343. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12344. <div v-else v-html="newEnglishList.engTitle"></div>
  12345. </div>
  12346. <div class="oldDetail">
  12347. <div>正文:</div>
  12348. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12349. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12350. </div>
  12351. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12352. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12353. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12354. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12355. </div>
  12356. </div>
  12357. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12358. <div class="detailBox" style="position: relative;">
  12359. <div class="oldDetail">
  12360. <div>标题:</div>
  12361. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12362. <div v-else>
  12363. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12364. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12365. </div>
  12366. </div>
  12367. <div class="oldDetail">
  12368. <div>正文:</div>
  12369. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12370. <div v-else>
  12371. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12372. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12373. </div>
  12374. </div>
  12375. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12376. <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>
  12377. <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>
  12378. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12379. </div>
  12380. </div>
  12381. </div>
  12382. </div>
  12383. </div>
  12384. <span slot="footer" class="dialog-footer">
  12385. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12386. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12387. </span>
  12388. </el-dialog>
  12389. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12390. <interVideo
  12391. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12392. :videoJson="videoJson"
  12393. :userid="userid"
  12394. :id="id"
  12395. :courseType="courseType"
  12396. :taskCount="taskCount"
  12397. :toolindex="toolindex"
  12398. :videoType="videoType"
  12399. ></interVideo>
  12400. <UpdateMore
  12401. :dialogVisibleMember.sync="dialogVisibleMember"
  12402. :cList="uploadStudentJuri"
  12403. :userid="userid"
  12404. :searchTN="worksSName2"
  12405. @setPlname="setPlname"
  12406. ></UpdateMore>
  12407. <!-- <wordCloud
  12408. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12409. :data="wordCloudData"
  12410. ></wordCloud> -->
  12411. <el-dialog
  12412. title="词云"
  12413. :visible.sync="dialogVisibleWordCloud"
  12414. width="30%"
  12415. class="dialog_diy"
  12416. :before-close="handleClose">
  12417. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12418. </el-dialog>
  12419. <el-dialog
  12420. title="挑人"
  12421. :visible.sync="dialogVisiblePickPeople"
  12422. width="650px"
  12423. :before-close="handleClose"
  12424. class="dialog_diy"
  12425. center
  12426. >
  12427. <div class="pick_box">
  12428. <div
  12429. class="noWorksName"
  12430. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12431. v-for="(item, index) in uploadStudentJuri"
  12432. :key="index"
  12433. @click="pickStudent(item)"
  12434. >
  12435. {{ item.name }}
  12436. </div>
  12437. </div>
  12438. </el-dialog>
  12439. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12440. :englishVoiceJson='englishVoiceJson'
  12441. :userid="userid"
  12442. :id="id"
  12443. :courseType="courseType"
  12444. :taskCount="taskCount"
  12445. :toolindex="toolindex"
  12446. @selectSWorks="selectSWorks"
  12447. @selectStudent="selectStudent"
  12448. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12449. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12450. :userid="userid"
  12451. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12452. :commentDetail="commentDetail"
  12453. :courseDetail="courseDetail"
  12454. :wScore="wScore"
  12455. :scoreDetail="scoreDetail"
  12456. @selectSWorks="selectSWorks"
  12457. @selectStudent="selectStudent"></checkEnglishVoice>
  12458. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12459. <choseWorksDetailDialog
  12460. ref="choseWorksDetailDialogRef"
  12461. :worksStudentData="worksStudent"
  12462. :noWorksSData="noWorksS"
  12463. :chapInfoListData="chapInfoList"
  12464. :courseType="courseType"
  12465. :taskCount="taskCount"
  12466. :tType="tType"
  12467. :sIsOpen="sIsOpen"
  12468. :courseDetail="courseDetail"
  12469. :groupStudent2="groupStudent"
  12470. :groupStudentUid2="groupStudentUid"
  12471. :oid="oid"
  12472. :org="org"
  12473. @getCourseDetail="getCourseDetail"
  12474. @selectSLook="selectSLook"
  12475. @selectSWorks="selectSWorks"
  12476. @selectStudent="selectStudent"
  12477. @deleteWorks="deleteWorks"
  12478. @openTools="openTools"
  12479. @openWord="openWord"
  12480. @openScore="openScore"
  12481. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12482. />
  12483. <el-dialog
  12484. :visible.sync="confirmOpenDig"
  12485. width="500px"
  12486. :modal="false"
  12487. class="confirmOpenDigCss dialog_diyCopy"
  12488. :before-close="handleClose">
  12489. <div style="display: flex;align-items: center;">
  12490. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12491. <span>“{{ courseDetail.title }}”开课啦</span>
  12492. </div>
  12493. <div style="margin: 20px 0 35px;">
  12494. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12495. <div>要认真听讲哦~</div>
  12496. </div>
  12497. <div style="text-align: center;">
  12498. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12499. </div>
  12500. </el-dialog>
  12501. <appStoreC ref="appStoreC"
  12502. :sStudent="sStudent"
  12503. :courseType="courseType"
  12504. :taskCount="taskCount"
  12505. :toolindex="toolindex"
  12506. @selectSWorks="selectSWorks"
  12507. @selectStudent="selectStudent"
  12508. ></appStoreC>
  12509. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12510. </div>
  12511. </template>
  12512. <script>
  12513. import "../common/aws-sdk-2.235.1.min.js";
  12514. // import pdf from "./components/pdf3";
  12515. import pdf from "./components/vpdf";
  12516. import AskStatic from "./components/askStatic";
  12517. import AskStatic2 from "./components/askStatic2";
  12518. import AnswerData2 from "./components/answerData2";
  12519. import AnswerData from "./components/answerData";
  12520. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  12521. import EditorBar from "./tools/wangEnduit.vue";
  12522. import Table from "./tools/table.vue";
  12523. import Time from "./tools/time.vue";
  12524. import Mind from "./tools/jsmind.vue";
  12525. import Sunburst from "./tools/sunburst";
  12526. import SeeBoard from "./tools/seeBoard";
  12527. import * as imageConversion from "image-conversion";
  12528. import Audio from "./components/audio.vue";
  12529. import ImgDraw from "./tools/imgDraw/imgDraw";
  12530. import { Empty } from "element-ui";
  12531. import RecordRTC from "recordrtc";
  12532. import interVideo from "./interVideo/index.vue";
  12533. import UpdateMore from "./updateMore/updateMore.vue";
  12534. import wordCloud from "./wordCloud/index.vue";
  12535. import axios from "axios";
  12536. import JSZip from "jszip";
  12537. import FileSaver from "file-saver";
  12538. import onlineWrite from "./components/onlineWrite";
  12539. import englishEva from "./components/englishEva";
  12540. import * as Diff from 'diff'
  12541. import EnglishVoice from './EnglishVoice2/index.vue'
  12542. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12543. import correctText from './components/correctText.vue'
  12544. import scoreItem from './scoreList/scoreItem.vue'
  12545. import scoreZong from './scoreZong/index.vue'
  12546. import classRoomHelper from './classRoomHelper/index.vue'
  12547. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  12548. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12549. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12550. import { v4 as uuidv4 } from "uuid";
  12551. var OpenCC = require("opencc-js");
  12552. import choseWordCloud from './components/choseWordCloud.vue'
  12553. import appStoreC from "./components/appStoreC.vue";
  12554. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12555. import { myMixin } from "@/mixins/mixin.js"
  12556. import { tools as toolsList } from "@/common/tools2.js";
  12557. import katex from 'katex'
  12558. import 'katex/dist/katex.min.css'
  12559. let converter = OpenCC.Converter({
  12560. from: "hk",
  12561. to: "cn"
  12562. });
  12563. const getFile = (url) => {
  12564. return new Promise((resolve, reject) => {
  12565. var credentials = {
  12566. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12567. secretAccessKey: "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",
  12568. }; //秘钥形式的登录上传
  12569. window.AWS.config.update(credentials);
  12570. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12571. let url2 = url;
  12572. let _url2 = "";
  12573. if (
  12574. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12575. ) {
  12576. _url2 = url2.split(
  12577. "https://view.officeapps.live.com/op/view.aspx?src="
  12578. )[1];
  12579. } else {
  12580. _url2 = url2;
  12581. }
  12582. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12583. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12584. var params = {
  12585. Bucket: "ccrb",
  12586. Key: name
  12587. };
  12588. s3.getObject(params, function (err, data) {
  12589. if (err) {
  12590. console.log(err, err.stack)
  12591. resolve({ data: 1 });
  12592. }else {
  12593. resolve({ data: data.Body });
  12594. console.log(data);
  12595. } // sxuccessful response
  12596. });
  12597. // axios({
  12598. // method: "get",
  12599. // url,
  12600. // responseType: "blob",
  12601. // })
  12602. // .then((data) => {
  12603. // resolve({ data: data.data });
  12604. // })
  12605. // .catch((error) => {
  12606. // resolve({ data: 1 });
  12607. // // reject(error.toString());
  12608. // });
  12609. });
  12610. };
  12611. export default {
  12612. mixins: [ myMixin ],
  12613. components: {
  12614. choseWordCloud,
  12615. EditorBar,
  12616. Time,
  12617. pdf,
  12618. AskStatic,
  12619. AskStatic2,
  12620. Mind,
  12621. Sunburst,
  12622. SeeBoard,
  12623. AnswerData2,
  12624. AnswerData,
  12625. sortToolWorkShow,
  12626. Audio,
  12627. ImgDraw,
  12628. Table,
  12629. interVideo,
  12630. UpdateMore,
  12631. wordCloud,
  12632. onlineWrite,
  12633. englishEva,
  12634. EnglishVoice,
  12635. checkEnglishVoice,
  12636. correctText,
  12637. scoreItem,
  12638. classRoomHelper,
  12639. scoreZong,
  12640. statisticalAnalysis,
  12641. choseWorksDetailDialog,
  12642. appStoreC,
  12643. cocoFlowDia,
  12644. studentClassRoomHelper
  12645. },
  12646. data() {
  12647. return {
  12648. // 学校或者组织随机码
  12649. Code2:'',
  12650. startTime: "",
  12651. // 是否允许学生查看内容资料 2不可以 1可以
  12652. IsStulook:false,
  12653. homeWorkLoading:false,
  12654. wordCloudKey: 0,
  12655. bg: null,
  12656. drawShow: false,
  12657. dialogVisible: false,
  12658. dialogVisiblePl: false,
  12659. commentDialogVisible: false,
  12660. dialogVisibleMember: false,
  12661. dialogVisibleWordCloud: false,
  12662. videoVisible: false,
  12663. isStar: false,
  12664. studentEvalDialogVisible: false,
  12665. studentEvalDialogVisibleTeacher: false,
  12666. dialogVisibleSelect: false,
  12667. dialogVisibleSelectTeacher: false,
  12668. dialogVisibleScore: false,
  12669. dialogVisibleENScore: false,
  12670. dialogVisibleSentence: false,
  12671. dialogVisibleSentenceTeacher: false,
  12672. dialogVisibleSentence1: false,
  12673. dialogVisibleWorks: false,
  12674. dialogVisibleTable: false,
  12675. dialogVisibleTableTeacher: false,
  12676. dialogVisibleWord: false,
  12677. dialogVisibleWordTeacher: false,
  12678. dialogVisibleTable2: false,
  12679. dialogVisibleTable3: false,
  12680. dialogVisibleGroupWork: false,
  12681. dialogVisibleUpdateGroup: false,
  12682. dialogVisibleDeleteGroup: false,
  12683. dialogVisibleSname: false,
  12684. dialogVisibleVideo: false,
  12685. dialogVisiblePickPeople: false,
  12686. engDialogVisible: false,
  12687. engUpdateDialogVisible: false,
  12688. engEvaDialogVisible: false,
  12689. evaEngJson: {
  12690. teacherJson: {},
  12691. studentJson: {},
  12692. message: {},
  12693. },
  12694. isNoUserid:false,
  12695. engListLength:0,
  12696. engWid:"",
  12697. newEnglishList:{
  12698. engTitle:"",
  12699. engText:"",
  12700. },
  12701. newEnglishList1:[],
  12702. oldEnglishJson:{},
  12703. oldEnglishJson1:{},
  12704. englishList1:{},
  12705. englishList:{},
  12706. myAnswerList1:{},
  12707. topHeight:0,
  12708. newEngIndex:-1,
  12709. englishToolIndex:0,
  12710. worksSName: "",
  12711. classJuri: [],
  12712. uploadStudentJuri: [],
  12713. uploadCid: "",
  12714. snameWid: "",
  12715. sStudent: {},
  12716. sTool: "",
  12717. bzText: "",
  12718. commentDetail: [],
  12719. selectAnswer: [],
  12720. videoDetail: {},
  12721. selectJson: {},
  12722. eScore: { eBzText: "", eStar: [] },
  12723. id: this.$route.query.courseId,
  12724. userid: this.$route.query.userid,
  12725. classId: this.$route.query.cid,
  12726. role: this.$route.query.role,
  12727. // courseTypeLine: this.$route.query.type,
  12728. oid: this.$route.query.oid,
  12729. org: this.$route.query.org,
  12730. tType: this.$route.query.tType,
  12731. courseType: this.$route.query.type,
  12732. screenType: this.$route.query.screenType,
  12733. tcid2: this.$route.query.tcid,
  12734. tcid: "",
  12735. pptImgUrl: "",
  12736. pptImgUrl1: "",
  12737. commentText: "",
  12738. full: false,
  12739. sIsOpen: false,
  12740. IsLookOpen: false,
  12741. IsFollow: false,
  12742. pzDialog: false,
  12743. contentDialog: false,
  12744. mlDialog: false,
  12745. type: 1,
  12746. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12747. sentenceList1: [],
  12748. tableJson: [],
  12749. tableJsonO: [],
  12750. wordJson: [],
  12751. wordJsonO: [],
  12752. vedio: [],
  12753. text: [],
  12754. textList: [],
  12755. line: [],
  12756. lineList: [],
  12757. chapTools: [],
  12758. chapToolList: [],
  12759. file: [],
  12760. fileC: [],
  12761. vedioTime: [],
  12762. upToolImg: "",
  12763. preTime: 0,
  12764. rateList: {
  12765. ca: 0,
  12766. },
  12767. rateParams: [],
  12768. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12769. studyJuri: [
  12770. {
  12771. content: "",
  12772. cover: [],
  12773. upVedio: [],
  12774. upFile: [],
  12775. },
  12776. ],
  12777. isClose: 0,
  12778. plworkFile: [],
  12779. mr: require("../assets/vedioPic.png"),
  12780. word: require("../assets/icon/isWord.png"),
  12781. word2: require("../assets/icon/word2.png"),
  12782. video: require("../assets/icon/isVideo.png"),
  12783. noLikes: require("../assets/icon/comment/noLikes.png"),
  12784. likes: require("../assets/icon/comment/likes.png"),
  12785. scoreImg: require("../assets/score.png"),
  12786. courseDetail: {},
  12787. reply: "",
  12788. isSelect: false,
  12789. chapInfo: [],
  12790. chapInfoList: [],
  12791. taskCount: 0,
  12792. imgList: [],
  12793. noImgList: [],
  12794. pzList: [],
  12795. timeWorkList: [],
  12796. PlTextList: [
  12797. "Excellent!",
  12798. "nice!",
  12799. "很有创意!",
  12800. "还不错哦~",
  12801. "继续努力哦~",
  12802. ],
  12803. isClickNav: "",
  12804. navId: "",
  12805. playerOptions: {
  12806. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12807. autoplay: false, //如果true,浏览器准备好时开始回放。
  12808. muted: false, // 默认情况下将会消除任何音频。
  12809. loop: false, // 导致视频一结束就重新开始。
  12810. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12811. language: "zh-CN",
  12812. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12813. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12814. sources: [
  12815. {
  12816. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12817. src: "", //url地址require("../../assets/media/aaa.mp4")
  12818. },
  12819. ],
  12820. // poster: require("../../assets/tu31.png"), //你的封面地址
  12821. // poster: dataRes.imgUrl, //你的封面地址
  12822. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12823. controlBar: {
  12824. timeDivider: true, //当前时间和持续时间的分隔符
  12825. durationDisplay: true, //显示持续时间
  12826. remainingTimeDisplay: false, //是否显示剩余时间功能
  12827. fullscreenToggle: true, //全屏按钮
  12828. },
  12829. },
  12830. playerOptions1: {
  12831. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12832. autoplay: false, //如果true,浏览器准备好时开始回放。
  12833. muted: false, // 默认情况下将会消除任何音频。
  12834. loop: false, // 导致视频一结束就重新开始。
  12835. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12836. language: "zh-CN",
  12837. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12838. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12839. sources: [
  12840. {
  12841. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12842. src: "", //url地址require("../../assets/media/aaa.mp4")
  12843. },
  12844. ],
  12845. // poster: require("../../assets/tu31.png"), //你的封面地址
  12846. // poster: dataRes.imgUrl, //你的封面地址
  12847. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12848. controlBar: {
  12849. timeDivider: true, //当前时间和持续时间的分隔符
  12850. durationDisplay: true, //显示持续时间
  12851. remainingTimeDisplay: false, //是否显示剩余时间功能
  12852. fullscreenToggle: true, //全屏按钮
  12853. },
  12854. },
  12855. playerO: {},
  12856. noneBtnImg: false,
  12857. proVisible: false,
  12858. proVisible2: false,
  12859. progress: 0,
  12860. isFinishSize: 0,
  12861. isAllSize: 0,
  12862. questionAnswer: "",
  12863. answerQ: "", //问答标题
  12864. rateJson: [],
  12865. wbCount: 0,
  12866. wordCount: 0,
  12867. mindCount: 0,
  12868. askCount: 0,
  12869. noteCount: 0,
  12870. mindNetWorkCount: 0,
  12871. libraryCount: 0,
  12872. workCount: 0,
  12873. timeCount: 0,
  12874. answerCount: 0,
  12875. trainCount: 0,
  12876. evalCount: 0,
  12877. dialogImageUrl: "",
  12878. pictureDialog: false,
  12879. toolTypeList: [],
  12880. dialogVisible1: false,
  12881. dialogVisible2: false,
  12882. dialogVisible3: false,
  12883. dialogVisible6: false,
  12884. dialogVisible4: false,
  12885. isNoHomeWork: false,
  12886. dialogVisible5: false,
  12887. dialogVisible5Teacher: false,
  12888. dialogVisibleChoice: false,
  12889. dialogVisibleChoiceTeacher: false,
  12890. answerDialogVisible: false,
  12891. answerDialogVisibleTeacher: false,
  12892. juriVisible: false,
  12893. timeDialogVisible: false,
  12894. replyDialogVisible: false,
  12895. toolDialogVisible: false,
  12896. replyIndex: 0,
  12897. replyPid: "",
  12898. radio: [],
  12899. isAsk: false,
  12900. askJson: {
  12901. askCount: 1,
  12902. askTitle: "",
  12903. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12904. },
  12905. testJson: {},
  12906. videoType:0,
  12907. checkJson: [],
  12908. askList: [],
  12909. answerList: [],
  12910. navList: [],
  12911. addPzDialog: false,
  12912. pzConText: "",
  12913. worksStudent: [],
  12914. isCloseList: [],
  12915. workStudent: [],
  12916. groupStudent: [],
  12917. groupStudentUid: [],
  12918. noWorksS: [],
  12919. isWorksS: [],
  12920. noWorksStudent: [],
  12921. toolindex: 0,
  12922. toolDetailIndex: null,
  12923. groupIndex: 0,
  12924. workTypeB: false,
  12925. workTypeC: false,
  12926. isAnswer: false,
  12927. isHovered: false,
  12928. isHovered1: false,
  12929. isHovered2: false,
  12930. commentTagShow:0,
  12931. timer: null,
  12932. timer2: null,
  12933. opertimer: null,
  12934. showType: '',
  12935. fileType: 0,
  12936. showPDF: false,
  12937. noteName: "",
  12938. evaJuri: [],
  12939. evalua: "",
  12940. eTitle: "",
  12941. eName: "",
  12942. eJson: {},
  12943. fid: "", //一级
  12944. sid: "", //二级
  12945. tid: "", //二级
  12946. typeMode: 1,
  12947. eJSONNum: 0,
  12948. Etype: 1,
  12949. data: {
  12950. meta: {
  12951. name: "example",
  12952. author: "dd@163.com",
  12953. version: "0.2",
  12954. },
  12955. format: "node_array",
  12956. data: [{ id: "root", isroot: true, topic: "" }],
  12957. },
  12958. fullDialogVisible: false,
  12959. fulltype: "",
  12960. fullUrl: "",
  12961. commentIndexJson: {},
  12962. Stbodywidth: 0,
  12963. ispzType: 0,
  12964. pzType: 1,
  12965. wScore: 0,
  12966. scoreDetail: "",
  12967. videoStart: false,
  12968. recorder: null,
  12969. groupJson: {},
  12970. islock: false,
  12971. groupJson2: {},
  12972. dialogVisibleGroup: false,
  12973. dialogVisibleGroup2: false,
  12974. updateGroupArray: [],
  12975. updateGroupUser: {},
  12976. deleteGroupUser: [],
  12977. deleteGroupArray: {},
  12978. checkChair: "",
  12979. checkDeleteGroup: [],
  12980. inviteCode: "",
  12981. courseGroupStudent: [],
  12982. courseGroupStudentUid: [],
  12983. courseGroup: {},
  12984. isGroup: false,
  12985. // toolIndex: null,
  12986. tool: {},
  12987. isWorkTool: [
  12988. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12989. ], //, 40
  12990. videoJson: {},
  12991. toolType: 0,
  12992. checktoolArray: [],
  12993. vChapterData: [],
  12994. isUpdateToolDetail: false,
  12995. isUpdateToolDetail1: false,
  12996. updateToolDetailInner: "",
  12997. checkboxList: [],
  12998. plIndex: "",
  12999. worksSName2: "",
  13000. worksSid: "",
  13001. wordCloudData: [],
  13002. isPickStudent: [],
  13003. pzStype: 1,
  13004. myAnList: {},
  13005. userMes:{},
  13006. downLoading: false,
  13007. greyType: false,
  13008. correctWord: [],
  13009. isUpdateText: "",
  13010. EnglishVoiceDialog: false,
  13011. englishVoiceJson: {},
  13012. englishVoiceJsonWork:[],
  13013. scoreList:{
  13014. listdata:[],
  13015. isScoreList:[],
  13016. },
  13017. classRoomHelperWidth: '85px',
  13018. orgArray:[],
  13019. oidArray:[],
  13020. toolsList: toolsList,
  13021. splitScreenData:{
  13022. isOpen:false,
  13023. userId:"",
  13024. uid:"",
  13025. myUid:"",
  13026. loading:false,
  13027. behavior:null,
  13028. },
  13029. confirmOpenDig:false,
  13030. confirmOpenDigData:'',
  13031. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  13032. diffKey:"1",
  13033. getCourseGroupLoading: false,
  13034. selectSWorksLoading:false,
  13035. selectStudentLoading:false,
  13036. selectSLookLoading:false,
  13037. getPickLoading:false,
  13038. selectPzLoading:false,
  13039. getSplitScreenDataLoading:false,
  13040. };
  13041. },
  13042. methods: {
  13043. // 获取学校或组织随机码
  13044. getCode2(){
  13045. let params = {
  13046. oid: this.oid,
  13047. org: this.org
  13048. };
  13049. this.ajax
  13050. .get(this.$store.state.api + "getCode2", params)
  13051. .then(res => {
  13052. this.Code2 = res.data[0][0].code2
  13053. })
  13054. .catch(err => {
  13055. console.error(err);
  13056. });
  13057. },
  13058. //查看应用中心作业
  13059. openCocoFlow(w){
  13060. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13061. },
  13062. getAIJ(){
  13063. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13064. let oid = res.data[0];
  13065. let org = res.data[1];
  13066. let oidArray = [];
  13067. let orgArray = [];
  13068. oid.forEach(i=>oidArray.push(i.oid))
  13069. org.forEach(i=>orgArray.push(i.oid))
  13070. this.orgArray = orgArray;
  13071. this.oidArray = oidArray;
  13072. })
  13073. },
  13074. insertMemorandum(_html){//保存行为操作
  13075. //variable
  13076. //btn
  13077. let params = [{
  13078. uid:this.userid,
  13079. courseId:this.id+(this.tcid2?this.tcid2:''),
  13080. content:_html
  13081. }]
  13082. console.log("👇👇")
  13083. console.log(params)
  13084. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13085. if(res.data==1){
  13086. console.log('保存操作成功')
  13087. }else{
  13088. console.log('保存操作失败')
  13089. }
  13090. }).catch(e=>{
  13091. console.log('保存操作失败')
  13092. console.log(e)
  13093. })
  13094. },
  13095. gx(){
  13096. this.$forceUpdate();
  13097. },
  13098. isUpdateCorrect(t,p){
  13099. if(this.greyType == false){
  13100. this.isUpdateText = t;
  13101. this.greyType = true;
  13102. }else{
  13103. if(p == 1){
  13104. this.newEnglishList.engText = this.isUpdateText;
  13105. }else if(p == 2){
  13106. this.oldEnglishJson1.engText = this.isUpdateText;
  13107. }else if(p == 3){
  13108. this.newEnglishList.engText = this.isUpdateText;
  13109. }else{
  13110. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13111. }
  13112. this.greyType = false
  13113. }
  13114. },
  13115. aiCorrect(t,p){
  13116. let aiText = "";
  13117. const loading = this.$loading.service({
  13118. background: "rgba(255, 255, 255)",
  13119. target: document.querySelectorAll(".loadingText")[0],
  13120. });
  13121. let param = {
  13122. model: "gpt-3.5-turbo",
  13123. temperature: 0,
  13124. max_tokens: 2048,
  13125. top_p: 1,
  13126. frequency_penalty: 0,
  13127. presence_penalty: 0,
  13128. messages: [
  13129. {
  13130. role: "user",
  13131. content:
  13132. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13133. },
  13134. ],
  13135. uid: this.userid,
  13136. stream: false,
  13137. };
  13138. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13139. (res) => {
  13140. if (
  13141. res.data.FunctionResponse &&
  13142. res.data.FunctionResponse.result &&
  13143. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13144. ) {
  13145. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13146. return;
  13147. }
  13148. aiText =
  13149. res.data.FunctionResponse.choices[0].message.content;
  13150. aiText = aiText.replace(/%/g,"%25");
  13151. // let w = "";
  13152. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13153. // for(var k = 0;k<a.length;k++){
  13154. // //diffWordsWithSpace
  13155. // if(a.length > 1){
  13156. // if(a[k].added == true){
  13157. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13158. // }else if(a[k].removed == true){
  13159. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13160. // }else{
  13161. // w += '<span>' + a[k].value + '</span>';
  13162. // }
  13163. // }else{
  13164. // if(p == 1){
  13165. // w = this.newEnglishList.engText;
  13166. // }else if(p == 2){
  13167. // w = this.oldEnglishJson1.engText;
  13168. // }else if(p == 3){
  13169. // w = this.newEnglishList.engText;
  13170. // }else{
  13171. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13172. // }
  13173. // }
  13174. // }
  13175. if(p == 1){
  13176. this.newEnglishList.engText = aiText;
  13177. }else if(p == 2){
  13178. this.oldEnglishJson1.engText = aiText;
  13179. }else if(p == 3){
  13180. this.newEnglishList.engText = aiText;
  13181. }else{
  13182. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13183. }
  13184. loading.close();
  13185. },
  13186. (err) => {
  13187. console.log(err);
  13188. loading.close();
  13189. }
  13190. );
  13191. },
  13192. addToolChoose() {
  13193. if (!this.checktoolArray.length) {
  13194. this.$message.error("请选择要添加的任务");
  13195. return;
  13196. }
  13197. if (
  13198. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13199. this.taskCount
  13200. ].toolChoose[0].tool.length
  13201. ) {
  13202. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13203. this.taskCount
  13204. ].toolChoose[0].tool = this.checktoolArray;
  13205. } else {
  13206. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13207. this.taskCount
  13208. ].toolChoose.push({
  13209. tool: this.checktoolArray,
  13210. toolDetail: "",
  13211. toolType: 0,
  13212. askCount: 1,
  13213. askTitle: "",
  13214. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13215. });
  13216. }
  13217. let params = [
  13218. {
  13219. cid: this.id,
  13220. chapters: JSON.stringify(this.chapInfoList),
  13221. uid: this.userid,
  13222. unitIndex: this.courseType,
  13223. },
  13224. ];
  13225. this.ajax
  13226. .post(this.$store.state.api + "updateWorkNew4", params)
  13227. .then((res) => {
  13228. this.$message({
  13229. message: "添加成功",
  13230. type: "success",
  13231. });
  13232. this.checktoolArray = [];
  13233. this.getCourseDetail(2);
  13234. this.checkBz(
  13235. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13236. this.taskCount
  13237. ].toolChoose.length - 1
  13238. );
  13239. this.toolDialogVisible = false;
  13240. this.refreshCourse();
  13241. this.$forceUpdate();
  13242. })
  13243. .catch((err) => {
  13244. console.error(err);
  13245. });
  13246. },
  13247. checkBz(index) {
  13248. this.isUpdateToolDetail = false;
  13249. this.$forceUpdate();
  13250. setTimeout(() => {
  13251. document.scrollingElement.scrollTop =
  13252. document.querySelectorAll(".filebox")[index].offsetTop +
  13253. document.querySelector(".student_body").offsetTop;
  13254. }, 500);
  13255. },
  13256. updateToolDetail(i, type) {
  13257. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13258. this.toolDetailIndex = i
  13259. this.isUpdateToolDetail1 = true;
  13260. setTimeout(() => {
  13261. this.updateToolDetailInner = JSON.parse(
  13262. JSON.stringify(
  13263. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13264. this.taskCount
  13265. ].toolChoose[i].toolDetail
  13266. )
  13267. );
  13268. document.querySelector(".checkTextArea").focus();
  13269. }, 0);
  13270. } else if((this.isUpdateToolDetail1 && type != 2)){
  13271. // this.toolDetailIndex = i;
  13272. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13273. this.taskCount
  13274. ].toolChoose[i].toolDetail = JSON.parse(
  13275. JSON.stringify(this.updateToolDetailInner)
  13276. );
  13277. let params = [
  13278. {
  13279. cid: this.id,
  13280. chapters: JSON.stringify(this.chapInfoList),
  13281. uid: this.userid,
  13282. unitIndex: this.courseType,
  13283. },
  13284. ];
  13285. this.ajax
  13286. .post(this.$store.state.api + "updateWorkNew4", params)
  13287. .then((res) => {
  13288. this.isUpdateToolDetail1 = false;
  13289. this.$message({
  13290. message: "修改成功",
  13291. type: "success",
  13292. });
  13293. this.toolDetailIndex = null;
  13294. this.updateToolDetailInner = "";
  13295. this.getCourseDetail(2);
  13296. this.$forceUpdate();
  13297. })
  13298. .catch((err) => {
  13299. console.error(err);
  13300. });
  13301. } else if((this.isUpdateToolDetail1 && type == 2)){
  13302. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13303. this.taskCount
  13304. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13305. JSON.stringify(this.updateToolDetailInner)
  13306. );
  13307. let params = [
  13308. {
  13309. cid: this.id,
  13310. chapters: JSON.stringify(this.chapInfoList),
  13311. uid: this.userid,
  13312. unitIndex: this.courseType,
  13313. },
  13314. ];
  13315. this.ajax
  13316. .post(this.$store.state.api + "updateWorkNew4", params)
  13317. .then((res) => {
  13318. this.$message({
  13319. message: "修改成功",
  13320. type: "success",
  13321. });
  13322. this.toolDetailIndex = i;
  13323. this.isUpdateToolDetail1 = true;
  13324. setTimeout(() => {
  13325. this.updateToolDetailInner = JSON.parse(
  13326. JSON.stringify(
  13327. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13328. this.taskCount
  13329. ].toolChoose[i].toolDetail
  13330. )
  13331. );
  13332. document.querySelector(".checkTextArea").focus();
  13333. }, 0);
  13334. this.getCourseDetail(2);
  13335. this.$forceUpdate();
  13336. })
  13337. .catch((err) => {
  13338. console.error(err);
  13339. });
  13340. }
  13341. },
  13342. jumpGj(i, j, k, l) {
  13343. for (var z = 0; z < this.navList.length; z++) {
  13344. for (var q = 0; q < this.navList[z].task.length; q++) {
  13345. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13346. this.navList[z].task[q].tool[w].isTool = false;
  13347. }
  13348. }
  13349. }
  13350. this.navList[i].task[j].tool[k].isTool =
  13351. !this.navList[i].task[j].tool[k].isTool;
  13352. var a = document.scrollingElement;
  13353. this.navId = ""
  13354. let target = document.querySelector(`#gj${k}`);
  13355. if (target) {
  13356. // target.scrollIntoView(true);
  13357. // setTimeout(() => {
  13358. // a.scrollTop = a.scrollTop - 150;
  13359. // }, 0);
  13360. target.scrollIntoView();
  13361. setTimeout(()=>{
  13362. let scrollBody = document.querySelector('.body_student').parentElement
  13363. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13364. }, 0);
  13365. }
  13366. let flag = this.courseType == i;
  13367. let flag2 = this.taskCount == j
  13368. if (l) {
  13369. this.courseType = i;
  13370. // this.navId = l;
  13371. this.taskCount = j;
  13372. this.selectPz();
  13373. this.getHomeWork();
  13374. this.getCourseDetail(2);
  13375. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13376. if(flag){
  13377. if(flag2){
  13378. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13379. }else{
  13380. 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>`)
  13381. }
  13382. }else{
  13383. 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>`)
  13384. }
  13385. }
  13386. if ((this.courseDetail.userid == this.userid ||
  13387. (this.courseDetail.course_teacher &&
  13388. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  13389. this.IsFollow) {
  13390. this.setCTask();
  13391. }
  13392. // var b = this.$refs["bz" + k][0];
  13393. // a.scrollTop = b.offsetTop;
  13394. },
  13395. addTools2(i) {
  13396. if (i == 4) {
  13397. // this.openTools2(4);
  13398. this.$message.error("暂未开放");
  13399. return;
  13400. }
  13401. if (i == 45) {
  13402. // this.openTools2(45);
  13403. this.$message.error("暂未开放");
  13404. return;
  13405. }
  13406. if (i == 47) {
  13407. // this.openTools2(47);
  13408. this.$message.error("暂未开放");
  13409. return;
  13410. }
  13411. if (i == 49) {
  13412. // this.openTools2(49);
  13413. this.$message.error("暂未开放");
  13414. return;
  13415. }
  13416. if (i == 62) {
  13417. // this.openTools(itemTaskIndex, 62, toolIndex);
  13418. this.$message.error("暂未开放");
  13419. return;
  13420. }
  13421. if (i == 15) {
  13422. // this.openTools(itemTaskIndex, 15, toolIndex);
  13423. this.$message.error("暂未开放");
  13424. return;
  13425. }
  13426. if (i == 40) {
  13427. // this.openTools(itemTaskIndex, 40, toolIndex);
  13428. this.$message.error("暂未开放");
  13429. return;
  13430. }
  13431. if (i == 41) {
  13432. // this.openTools(itemTaskIndex, 41, toolIndex);
  13433. this.$message.error("暂未开放");
  13434. return;
  13435. }
  13436. if (i == 42) {
  13437. // this.openTools(itemTaskIndex, 42, toolIndex);
  13438. this.$message.error("暂未开放");
  13439. return;
  13440. }
  13441. if (this.checktoolArray.length > 0) {
  13442. if (this.checktoolArray.indexOf(i) != -1) {
  13443. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13444. } else {
  13445. this.checktoolArray = [];
  13446. this.checktoolArray.push(i);
  13447. }
  13448. } else {
  13449. this.checktoolArray.push(i);
  13450. }
  13451. this.$forceUpdate();
  13452. },
  13453. jump() {
  13454. window.topU.postMessage({ tools: "43" }, "*");
  13455. },
  13456. getUpdateMore(f, checkboxList, searchTN, index) {
  13457. this.dialogVisibleMember = f;
  13458. this.checkboxList = checkboxList;
  13459. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13460. this.plIndex = index;
  13461. },
  13462. setPlname(a) {
  13463. if (this.plworkFile.length) {
  13464. this.plworkFile[this.plIndex].username = a;
  13465. } else {
  13466. this.worksSName = a;
  13467. }
  13468. this.dialogVisibleMember = false;
  13469. },
  13470. previewImg(url,w=null) {
  13471. this.$hevueImgPreview(url);
  13472. if(w){
  13473. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13474. }
  13475. },
  13476. checkImg(list) {
  13477. if (!list.length) {
  13478. return;
  13479. }
  13480. this.$hevueImgPreview({
  13481. multiple: true, // 开启多图预览模式
  13482. imgList: list, // 需要预览的多图数组
  13483. });
  13484. },
  13485. change(val) {
  13486. console.log(val);
  13487. },
  13488. goTo(path) {
  13489. this.$router.push(path);
  13490. },
  13491. handlePictureCardPreview(url) {
  13492. this.dialogImageUrl = url;
  13493. this.pictureDialog = true;
  13494. },
  13495. clean(type) {
  13496. if (type == 1) {
  13497. this.studyJuri[0].cover.splice(0, 1);
  13498. } else if (type == 2) {
  13499. this.studyJuri[0].upVedio.splice(0, 1);
  13500. } else {
  13501. this.studyJuri[0].upFile.splice(0, 1);
  13502. }
  13503. },
  13504. clean2(index) {
  13505. this.plworkFile.splice(index, 1);
  13506. },
  13507. handleClose(done) {
  13508. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13509. this.videoDetail.sources[0].src = "";
  13510. }
  13511. this.commentIndexJson = {};
  13512. done();
  13513. },
  13514. fullTools() {
  13515. this.full = !this.full;
  13516. },
  13517. imgChange(file, fileList, type) {
  13518. if (type == 1) {
  13519. var _tmp = this.studyJuri[0].cover;
  13520. } else if (type == 2) {
  13521. var _tmp = this.studyJuri[0].upVedio;
  13522. } else {
  13523. var _tmp = this.studyJuri[0].upFile;
  13524. }
  13525. this.noneBtnImg = _tmp.length >= 1;
  13526. },
  13527. setContent(bool) {
  13528. this.contentDialog = bool;
  13529. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13530. document.querySelector(".workd_media").style.height = "650px";
  13531. } else if (document.querySelector(".workd_media")) {
  13532. document.querySelector(".workd_media").style.height = "auto";
  13533. }
  13534. },
  13535. setContent2(bool) {
  13536. this.mlDialog = bool;
  13537. if (
  13538. bool &&
  13539. this.contentDialog &&
  13540. document.querySelector(".workd_media")
  13541. ) {
  13542. document.querySelector(".workd_media").style.height = "650px";
  13543. } else if (document.querySelector(".workd_media")) {
  13544. document.querySelector(".workd_media").style.height = "auto";
  13545. }
  13546. this.$forceUpdate();
  13547. },
  13548. openToolAll() {
  13549. this.toolDialogVisible = true;
  13550. },
  13551. addImg(e) {
  13552. var el = e.currentTarget;
  13553. // this.$message.success('触发上传')
  13554. el.getElementsByTagName("input")[0].click();
  13555. e.target.value = "";
  13556. },
  13557. addSelectAnswer() {
  13558. let params = [
  13559. {
  13560. uid: this.userid,
  13561. cid: this.id,
  13562. stage: this.courseType,
  13563. task: this.taskCount,
  13564. tool: this.toolindex,
  13565. content: this.selectAnswer.answer,
  13566. type: 7,
  13567. },
  13568. ];
  13569. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13570. this.homeWorkLoading = true
  13571. this.ajax
  13572. .post(this.$store.state.api + "addCourseWorks", params)
  13573. .then((res) => {
  13574. this.$message({
  13575. message: "提交成功",
  13576. type: "success",
  13577. });
  13578. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13579. setTimeout(() => {
  13580. this.homeWorkLoading = false
  13581. }, 500);
  13582. this.dialogVisibleSelect = false;
  13583. // this.selectAnswer = {};
  13584. this.selectSWorks();
  13585. this.selectStudent();
  13586. })
  13587. .catch((err) => {
  13588. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13589. setTimeout(() => {
  13590. this.homeWorkLoading = false
  13591. }, 500);
  13592. this.$message.error("提交失败");
  13593. console.error(err);
  13594. });
  13595. },
  13596. addSelectAnswerTeacher() {
  13597. let params = [
  13598. {
  13599. uid: this.sStudent.userid,
  13600. cid: this.id,
  13601. stage: this.courseType,
  13602. task: this.taskCount,
  13603. tool: this.toolindex,
  13604. content: this.selectAnswer.answer,
  13605. type: 7,
  13606. },
  13607. ];
  13608. this.ajax
  13609. .post(this.$store.state.api + "addCourseWorks", params)
  13610. .then((res) => {
  13611. this.$message({
  13612. message: "提交成功",
  13613. type: "success",
  13614. });
  13615. this.dialogVisibleSelectTeacher = false;
  13616. // this.selectAnswer = {};
  13617. this.selectSWorks();
  13618. this.selectStudent();
  13619. })
  13620. .catch((err) => {
  13621. this.$message.error("提交失败");
  13622. console.error(err);
  13623. });
  13624. },
  13625. addSenWorks() {
  13626. for (var i = 0; i < this.sentenceList.length; i++) {
  13627. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13628. if (
  13629. this.sentenceList[i].chooseSenList[j] == undefined ||
  13630. this.sentenceList[i].chooseSenList[j] == ""
  13631. ) {
  13632. this.$message.error("请将答案填写完整!");
  13633. return;
  13634. }
  13635. }
  13636. }
  13637. let params = [
  13638. {
  13639. uid: this.userid,
  13640. cid: this.id,
  13641. stage: this.courseType,
  13642. task: this.taskCount,
  13643. tool: this.toolindex,
  13644. content: JSON.stringify(this.sentenceList),
  13645. type: 9,
  13646. },
  13647. ];
  13648. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13649. this.homeWorkLoading = true
  13650. this.ajax
  13651. .post(this.$store.state.api + "addCourseWorks", params)
  13652. .then((res) => {
  13653. this.$message({
  13654. message: "提交成功",
  13655. type: "success",
  13656. });
  13657. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13658. setTimeout(() => {
  13659. this.homeWorkLoading = false
  13660. }, 500);
  13661. this.dialogVisibleSentence = false;
  13662. // this.selectAnswer = {};
  13663. this.selectSWorks();
  13664. this.selectStudent();
  13665. })
  13666. .catch((err) => {
  13667. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13668. setTimeout(() => {
  13669. this.homeWorkLoading = false
  13670. }, 500);
  13671. this.$message.error("提交失败");
  13672. console.error(err);
  13673. });
  13674. },
  13675. addSenWorksTeacher() {
  13676. for (var i = 0; i < this.sentenceList.length; i++) {
  13677. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13678. if (
  13679. this.sentenceList[i].chooseSenList[j] == undefined ||
  13680. this.sentenceList[i].chooseSenList[j] == ""
  13681. ) {
  13682. this.$message.error("请将答案填写完整!");
  13683. return;
  13684. }
  13685. }
  13686. }
  13687. let params = [
  13688. {
  13689. uid: this.sStudent.userid,
  13690. cid: this.id,
  13691. stage: this.courseType,
  13692. task: this.taskCount,
  13693. tool: this.toolindex,
  13694. content: JSON.stringify(this.sentenceList),
  13695. type: 9,
  13696. },
  13697. ];
  13698. this.ajax
  13699. .post(this.$store.state.api + "addCourseWorks", params)
  13700. .then((res) => {
  13701. this.$message({
  13702. message: "提交成功",
  13703. type: "success",
  13704. });
  13705. this.dialogVisibleSentenceTeacher = false;
  13706. // this.selectAnswer = {};
  13707. this.selectSWorks();
  13708. this.selectStudent();
  13709. })
  13710. .catch((err) => {
  13711. this.$message.error("提交失败");
  13712. console.error(err);
  13713. });
  13714. },
  13715. returnTableText() {
  13716. this.$confirm("确定还原此模板吗?", "提示", {
  13717. confirmButtonText: "确定",
  13718. cancelButtonText: "取消",
  13719. type: "warning",
  13720. })
  13721. .then(() => {
  13722. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13723. })
  13724. .catch(() => {});
  13725. },
  13726. addTableWorks() {
  13727. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13728. this.homeWorkLoading = true
  13729. let params = [
  13730. {
  13731. uid: this.userid,
  13732. cid: this.id,
  13733. stage: this.courseType,
  13734. task: this.taskCount,
  13735. tool: this.toolindex,
  13736. content: JSON.stringify(this.tableJson),
  13737. type: 10,
  13738. },
  13739. ];
  13740. this.ajax
  13741. .post(this.$store.state.api + "addCourseWorks", params)
  13742. .then((res) => {
  13743. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13744. this.$message({
  13745. message: "提交成功",
  13746. type: "success",
  13747. });
  13748. this.dialogVisibleTable = false;
  13749. setTimeout(() => {
  13750. this.homeWorkLoading = false
  13751. }, 500);
  13752. // this.selectAnswer = {};
  13753. this.selectSWorks();
  13754. this.selectStudent();
  13755. })
  13756. .catch((err) => {
  13757. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13758. setTimeout(() => {
  13759. this.homeWorkLoading = false
  13760. }, 500);
  13761. this.$message.error("提交失败");
  13762. console.error(err);
  13763. });
  13764. },
  13765. tableRowClassName({ row, rowIndex }) {
  13766. if ((rowIndex + 1) % 2 === 0) {
  13767. return "even_row";
  13768. } else {
  13769. return "";
  13770. }
  13771. },
  13772. addTableWorksTeacher() {
  13773. let params = [
  13774. {
  13775. uid: this.sStudent.userid,
  13776. cid: this.id,
  13777. stage: this.courseType,
  13778. task: this.taskCount,
  13779. tool: this.toolindex,
  13780. content: JSON.stringify(this.tableJson),
  13781. type: 10,
  13782. },
  13783. ];
  13784. this.ajax
  13785. .post(this.$store.state.api + "addCourseWorks", params)
  13786. .then((res) => {
  13787. this.$message({
  13788. message: "提交成功",
  13789. type: "success",
  13790. });
  13791. this.dialogVisibleTableTeacher = false;
  13792. // this.selectAnswer = {};
  13793. this.selectSWorks();
  13794. this.selectStudent();
  13795. })
  13796. .catch((err) => {
  13797. this.$message.error("提交失败");
  13798. console.error(err);
  13799. });
  13800. },
  13801. returnWordText() {
  13802. this.$confirm("确定还原此模板吗?", "提示", {
  13803. confirmButtonText: "确定",
  13804. cancelButtonText: "取消",
  13805. type: "warning",
  13806. })
  13807. .then(() => {
  13808. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13809. })
  13810. .catch(() => {});
  13811. },
  13812. addWordWorks() {
  13813. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13814. this.homeWorkLoading = true
  13815. let params = [
  13816. {
  13817. uid: this.userid,
  13818. cid: this.id,
  13819. stage: this.courseType,
  13820. task: this.taskCount,
  13821. tool: this.toolindex,
  13822. content: JSON.stringify(this.wordJson),
  13823. type: 13,
  13824. atool: 52,
  13825. },
  13826. ];
  13827. this.ajax
  13828. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13829. .then((res) => {
  13830. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13831. this.$message({
  13832. message: "提交成功",
  13833. type: "success",
  13834. });
  13835. this.dialogVisibleWord = false;
  13836. setTimeout(() => {
  13837. this.homeWorkLoading = false
  13838. }, 500);
  13839. // this.selectAnswer = {};
  13840. this.selectSWorks();
  13841. this.selectStudent();
  13842. })
  13843. .catch((err) => {
  13844. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13845. setTimeout(() => {
  13846. this.homeWorkLoading = false
  13847. }, 500);
  13848. this.$message.error("提交失败");
  13849. console.error(err);
  13850. });
  13851. },
  13852. addWordWorksTeacher() {
  13853. let params = [
  13854. {
  13855. uid: this.sStudent.userid,
  13856. cid: this.id,
  13857. stage: this.courseType,
  13858. task: this.taskCount,
  13859. tool: this.toolindex,
  13860. content: JSON.stringify(this.wordJson),
  13861. type: 13,
  13862. atool: 52,
  13863. },
  13864. ];
  13865. this.ajax
  13866. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13867. .then((res) => {
  13868. this.$message({
  13869. message: "提交成功",
  13870. type: "success",
  13871. });
  13872. this.dialogVisibleWordTeacher = false;
  13873. // this.selectAnswer = {};
  13874. this.selectSWorks();
  13875. this.selectStudent();
  13876. })
  13877. .catch((err) => {
  13878. this.$message.error("提交失败");
  13879. console.error(err);
  13880. });
  13881. },
  13882. addCourseWorks(i) {
  13883. var typesql;
  13884. if (this.fileType === 0) {
  13885. typesql = 1;
  13886. } else if (this.fileType === 1) {
  13887. typesql = 4;
  13888. } else if (this.fileType === 2) {
  13889. typesql = 5;
  13890. } else if (this.fileType === 3) {
  13891. typesql = 12;
  13892. }
  13893. if (!this.studyJuri[0].cover[0].url) {
  13894. this.$message.error("请上传文件");
  13895. return;
  13896. }
  13897. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13898. this.homeWorkLoading = true
  13899. let params = [
  13900. {
  13901. uid: this.userid,
  13902. cid: this.id,
  13903. stage: this.courseType,
  13904. task: i,
  13905. tool: this.toolindex,
  13906. content: this.studyJuri[0].cover[0].url,
  13907. type: typesql,
  13908. },
  13909. ];
  13910. this.ajax
  13911. .post(this.$store.state.api + "addCourseWorksR", params)
  13912. .then((res) => {
  13913. this.$message({
  13914. message: "提交成功",
  13915. type: "success",
  13916. });
  13917. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13918. setTimeout(() => {
  13919. this.homeWorkLoading = false
  13920. }, 500);
  13921. this.studyJuri[0].cover = [];
  13922. this.dialogVisible = false;
  13923. this.getCourseDetail(2);
  13924. })
  13925. .catch((err) => {
  13926. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13927. setTimeout(() => {
  13928. this.homeWorkLoading = false
  13929. }, 500);
  13930. this.$message.error("提交失败");
  13931. console.error(err);
  13932. });
  13933. },
  13934. addCourseWorksPl(i) {
  13935. let _files = this.plworkFile;
  13936. var c = 1;
  13937. for (var k = 0; k < _files.length; k++) {
  13938. if (!_files[k].username) {
  13939. c = 2;
  13940. }
  13941. }
  13942. if (c == 2) {
  13943. this.$message.error("请填写学生姓名");
  13944. return;
  13945. }
  13946. let params = [
  13947. {
  13948. ateacher: this.userid,
  13949. cid: this.id,
  13950. stage: this.courseType,
  13951. task: i,
  13952. tool: this.toolindex,
  13953. content: JSON.stringify(_files),
  13954. },
  13955. ];
  13956. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13957. this.homeWorkLoading = true
  13958. this.ajax
  13959. .post(this.$store.state.api + "addCourseWorksPl", params)
  13960. .then((res) => {
  13961. this.$message({
  13962. message: "提交成功",
  13963. type: "success",
  13964. });
  13965. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13966. setTimeout(() => {
  13967. this.homeWorkLoading = false
  13968. }, 500);
  13969. this.plworkFile = [];
  13970. this.dialogVisiblePl = false;
  13971. this.getCourseDetail(2);
  13972. })
  13973. .catch((err) => {
  13974. this.$message.error("提交失败");
  13975. setTimeout(() => {
  13976. this.homeWorkLoading = false
  13977. }, 500);
  13978. console.error(err);
  13979. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13980. });
  13981. },
  13982. addCourseWorks2(i) {
  13983. var typesql;
  13984. if (this.fileType === 0) {
  13985. typesql = 0;
  13986. } else if (this.fileType === 1) {
  13987. typesql = 1;
  13988. } else if (this.fileType === 2) {
  13989. typesql = 3;
  13990. } else if (this.fileType === 3) {
  13991. typesql = 12;
  13992. }
  13993. if (!this.studyJuri[0].cover[0].url) {
  13994. this.$message.error("请上传文件");
  13995. return;
  13996. }
  13997. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13998. this.homeWorkLoading = true
  13999. let params = [
  14000. {
  14001. uid: this.userid,
  14002. cid: this.id,
  14003. stage: this.courseType,
  14004. task: i,
  14005. tool: this.toolindex,
  14006. content: JSON.stringify({
  14007. type: typesql,
  14008. groupIndex: this.groupIndex,
  14009. url: this.studyJuri[0].cover[0].url,
  14010. }),
  14011. type: 11,
  14012. atool: 49,
  14013. text: "",
  14014. },
  14015. ];
  14016. this.ajax
  14017. .post(this.$store.state.api + "addCourseWorks5", params)
  14018. .then((res) => {
  14019. this.$message({
  14020. message: "提交成功",
  14021. type: "success",
  14022. });
  14023. setTimeout(() => {
  14024. this.homeWorkLoading = false
  14025. }, 500);
  14026. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14027. type: typesql,
  14028. groupIndex: this.groupIndex,
  14029. url: this.studyJuri[0].cover[0].url,
  14030. }),type: "course_tool_sub" }, "success")
  14031. this.studyJuri[0].cover = [];
  14032. this.dialogVisibleGroupWork = false;
  14033. this.getCourseDetail(2);
  14034. })
  14035. .catch((err) => {
  14036. this.$message.error("提交失败");
  14037. setTimeout(() => {
  14038. this.homeWorkLoading = false
  14039. }, 500);
  14040. console.error(err);
  14041. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14042. type: typesql,
  14043. groupIndex: this.groupIndex,
  14044. url: this.studyJuri[0].cover[0].url,
  14045. }),type: "course_tool_sub" }, err)
  14046. });
  14047. },
  14048. addEnglishWork() {
  14049. this.myAnList = this.$refs['engJson'].myAnswerList;
  14050. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14051. this.$message.error("请输入作文标题和正文!");
  14052. return;
  14053. }
  14054. let params = [
  14055. {
  14056. uid: this.userid,
  14057. cid: this.id,
  14058. stage: this.courseType,
  14059. task: this.taskCount,
  14060. tool: this.englishToolIndex,
  14061. content: JSON.stringify(this.myAnList),
  14062. type: 16,
  14063. atool: 69,
  14064. text: "",
  14065. },
  14066. ];
  14067. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14068. this.homeWorkLoading = true
  14069. this.ajax
  14070. .post(this.$store.state.api + "addCourseWorks5", params)
  14071. .then((res) => {
  14072. this.$message({
  14073. message: "提交成功",
  14074. type: "success",
  14075. });
  14076. setTimeout(() => {
  14077. this.homeWorkLoading = false
  14078. }, 500);
  14079. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14080. data: JSON.stringify(this.myAnList),
  14081. type: "course_tool_sub" }, "success")
  14082. this.myAnList = {};
  14083. this.englishList = {};
  14084. this.englishToolIndex = 0;
  14085. this.engDialogVisible = false;
  14086. this.selectSWorks();
  14087. this.selectStudent();
  14088. })
  14089. .catch((err) => {
  14090. this.$message.error("提交失败");
  14091. console.error(err);
  14092. setTimeout(() => {
  14093. this.homeWorkLoading = false
  14094. }, 500);
  14095. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14096. data: JSON.stringify(this.myAnList),
  14097. type: "course_tool_sub" }, err)
  14098. });
  14099. },
  14100. addCourseWorksGong(i, data, tool) {
  14101. let params = [
  14102. {
  14103. uid: this.userid,
  14104. cid: this.id,
  14105. stage: this.courseType,
  14106. task: this.taskCount,
  14107. tool: i,
  14108. content: data,
  14109. type: 12,
  14110. atool: tool,
  14111. text: "",
  14112. },
  14113. ];
  14114. this.ajax
  14115. .post(this.$store.state.api + "addCourseWorks5", params)
  14116. .then((res) => {
  14117. this.$message({
  14118. message: "提交成功",
  14119. type: "success",
  14120. });
  14121. this.studyJuri[0].cover = [];
  14122. this.selectSWorks();
  14123. this.selectStudent();
  14124. })
  14125. .catch((err) => {
  14126. this.$message.error("提交失败");
  14127. console.error(err);
  14128. });
  14129. },
  14130. addCourseWorksGongTeacher(i, data, tool) {
  14131. let params = [
  14132. {
  14133. uid: this.sStudent.userid,
  14134. cid: this.id,
  14135. stage: this.courseType,
  14136. task: this.taskCount,
  14137. tool: i,
  14138. content: data,
  14139. type: 12,
  14140. atool: tool,
  14141. text: "",
  14142. },
  14143. ];
  14144. this.ajax
  14145. .post(this.$store.state.api + "addCourseWorks5", params)
  14146. .then((res) => {
  14147. this.$message({
  14148. message: "提交成功",
  14149. type: "success",
  14150. });
  14151. this.studyJuri[0].cover = [];
  14152. this.dialogVisibleWorks = false;
  14153. this.selectSWorks();
  14154. this.selectStudent();
  14155. })
  14156. .catch((err) => {
  14157. this.$message.error("提交失败");
  14158. console.error(err);
  14159. });
  14160. },
  14161. addCourseWorksGongPl(i, data, tool, type) {
  14162. let params = [
  14163. {
  14164. uid: this.sStudent.userid,
  14165. cid: this.id,
  14166. stage: this.courseType,
  14167. task: this.taskCount,
  14168. tool: i,
  14169. content: data,
  14170. type: type,
  14171. atool: tool,
  14172. text: "",
  14173. },
  14174. ];
  14175. this.ajax
  14176. .post(this.$store.state.api + "addCourseWorks5", params)
  14177. .then((res) => {
  14178. this.$message({
  14179. message: "提交成功",
  14180. type: "success",
  14181. });
  14182. this.studyJuri[0].cover = [];
  14183. this.dialogVisibleWorks = false;
  14184. this.selectSWorks();
  14185. this.selectStudent();
  14186. })
  14187. .catch((err) => {
  14188. this.$message.error("提交失败");
  14189. console.error(err);
  14190. });
  14191. },
  14192. addCourseWorksTeacher(i) {
  14193. var typesql;
  14194. if (this.sTool == 32) {
  14195. this.addCourseWorksGongTeacher(
  14196. this.toolindex,
  14197. this.studyJuri[0].cover[0].url,
  14198. this.sTool
  14199. );
  14200. return;
  14201. }
  14202. if (this.fileType === 0) {
  14203. typesql = 1;
  14204. } else if (this.fileType === 1) {
  14205. typesql = 4;
  14206. } else if (this.fileType === 2) {
  14207. typesql = 5;
  14208. } else if (this.fileType === 3) {
  14209. typesql = 12;
  14210. }
  14211. if (this.sTool == 50) {
  14212. this.addCourseWorksGongPl(
  14213. this.toolindex,
  14214. this.studyJuri[0].cover[0].url,
  14215. this.sTool,
  14216. typesql
  14217. );
  14218. return;
  14219. }
  14220. if (!this.studyJuri[0].cover[0].url) {
  14221. this.$message.error("请上传文件");
  14222. return;
  14223. }
  14224. let params = [
  14225. {
  14226. uid: this.sStudent.userid,
  14227. cid: this.id,
  14228. stage: this.courseType,
  14229. task: i,
  14230. tool: this.toolindex,
  14231. content: this.studyJuri[0].cover[0].url,
  14232. type: typesql,
  14233. ateacher: this.userid,
  14234. },
  14235. ];
  14236. this.ajax
  14237. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14238. .then((res) => {
  14239. this.$message({
  14240. message: "提交成功",
  14241. type: "success",
  14242. });
  14243. this.studyJuri[0].cover = [];
  14244. this.dialogVisibleWorks = false;
  14245. this.getCourseDetail(2);
  14246. })
  14247. .catch((err) => {
  14248. this.$message.error("提交失败");
  14249. console.error(err);
  14250. });
  14251. },
  14252. selectUploadStudent(type) {
  14253. const loading = this.$loading.service({
  14254. background: "rgba(255, 255, 255, 0.7)",
  14255. target: document.body,
  14256. });
  14257. let params = {
  14258. cid: this.uploadCid,
  14259. oid: this.oid,
  14260. cn: "",
  14261. };
  14262. this.ajax
  14263. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14264. .then((res) => {
  14265. loading.close();
  14266. var studentK = [];
  14267. if (this.isWorksS[this.toolindex].length > 0) {
  14268. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14269. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14270. }
  14271. studentK = studentK.join(",");
  14272. }
  14273. this.uploadStudentJuri = res.data[0].filter((el) => {
  14274. return studentK.indexOf(el.userid) == -1;
  14275. });
  14276. if (this.worksSName && this.worksSid) {
  14277. this.uploadStudentJuri.push({
  14278. userid: this.worksSid,
  14279. name: this.worksSName,
  14280. });
  14281. }
  14282. if (type == 1) {
  14283. this.plworkFile = [];
  14284. this.dialogVisibleSname = true;
  14285. } else if (type == 2) {
  14286. this.dialogVisiblePl = true;
  14287. }
  14288. })
  14289. .catch((err) => {
  14290. loading.close();
  14291. console.error(err);
  14292. });
  14293. },
  14294. selectPickStudent() {
  14295. const loading = this.$loading.service({
  14296. background: "rgba(255, 255, 255, 0.7)",
  14297. target: document.body,
  14298. });
  14299. let params = {
  14300. cid: this.uploadCid,
  14301. oid: this.oid,
  14302. cn: "",
  14303. };
  14304. this.ajax
  14305. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14306. .then((res) => {
  14307. loading.close();
  14308. this.uploadStudentJuri = res.data[0];
  14309. this.dialogVisiblePickPeople = true;
  14310. })
  14311. .catch((err) => {
  14312. loading.close();
  14313. console.error(err);
  14314. });
  14315. },
  14316. arrayToArray(arrayo, arrayt) {
  14317. let array1 = arrayo;
  14318. let array2 = arrayt;
  14319. let commonElements = [];
  14320. for (let i = 0; i < array1.length; i++) {
  14321. for (let j = 0; j < array2.length; j++) {
  14322. if (array1[i] === array2[j]) {
  14323. commonElements.push(array1[i]);
  14324. }
  14325. }
  14326. }
  14327. return commonElements;
  14328. },
  14329. selectWorksStudent() {
  14330. let params = {
  14331. oid: this.oid,
  14332. cid: this.courseDetail.juri,
  14333. };
  14334. this.ajax
  14335. .get(this.$store.state.api + "selectWorksStudent", params)
  14336. .then((res) => {
  14337. var a = res.data[0];
  14338. for (var i = 0; i < this.isWorksS.length; i++) {
  14339. this.noWorksS[i] = [];
  14340. var studentK = [];
  14341. if (this.isWorksS[i].length > 0) {
  14342. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14343. studentK.push(this.isWorksS[i][z].uid);
  14344. }
  14345. studentK = studentK.join(",");
  14346. for (var j = 0; j < a.length; j++) {
  14347. if (studentK.indexOf(a[j].userid) == -1) {
  14348. if (this.tcid) {
  14349. // a[j].classid.indexOf(this.tcid) != -1
  14350. if (
  14351. this.arrayToArray(
  14352. a[j].classid.split(","),
  14353. this.tcid.split(",")
  14354. ).length
  14355. ) {
  14356. this.noWorksS[i].push({
  14357. student: a[j].name,
  14358. userid: a[j].userid,
  14359. });
  14360. }
  14361. } else {
  14362. this.noWorksS[i].push({
  14363. student: a[j].name,
  14364. userid: a[j].userid,
  14365. });
  14366. }
  14367. }
  14368. }
  14369. } else {
  14370. for (var k = 0; k < a.length; k++) {
  14371. if (this.tcid) {
  14372. if (
  14373. this.arrayToArray(
  14374. a[k].classid.split(","),
  14375. this.tcid.split(",")
  14376. ).length
  14377. ) {
  14378. this.noWorksS[i].push({
  14379. student: a[k].name,
  14380. userid: a[k].userid,
  14381. });
  14382. }
  14383. } else {
  14384. this.noWorksS[i].push({
  14385. student: a[k].name,
  14386. userid: a[k].userid,
  14387. });
  14388. }
  14389. }
  14390. }
  14391. }
  14392. this.$forceUpdate();
  14393. if (
  14394. Object.keys(this.commentDetail).length &&
  14395. Object.keys(this.commentIndexJson).length &&
  14396. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14397. ) {
  14398. let a = 1;
  14399. let c = this.commentIndexJson;
  14400. if (
  14401. this.commentIndexJson.gindex ||
  14402. this.commentIndexJson.gindex === 0
  14403. ) {
  14404. for (
  14405. var i = 0;
  14406. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14407. i++
  14408. ) {
  14409. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14410. groupA: for (var k = 0; k < _el.length; k++) {
  14411. let el = _el[k];
  14412. if (el.wid == this.commentDetail.wid) {
  14413. a = 2;
  14414. this.commentOther(
  14415. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14416. this.commentIndexJson.toolIndex,
  14417. k,
  14418. this.commentIndexJson.gindex
  14419. );
  14420. break groupA;
  14421. }
  14422. }
  14423. }
  14424. if (a === 1) {
  14425. this.commentDetail = [];
  14426. this.commentIndexJson = {};
  14427. this.commentDialogVisible = false;
  14428. this.$message("此作业已被删除");
  14429. }
  14430. } else {
  14431. if (this.isGroup && this.commentIndexJson.gid) {
  14432. groupA: for (
  14433. var i = 0;
  14434. i < this.courseGroup.group.length;
  14435. i++
  14436. ) {
  14437. let _group = this.courseGroup.group[i];
  14438. if (_group.id == this.commentIndexJson.gid) {
  14439. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14440. for (var k = 0; k < _el2.length; k++) {
  14441. let el2 = _el2[k];
  14442. if (el2.wid == this.commentDetail.wid) {
  14443. a = 2;
  14444. this.commentOther(
  14445. _el2[k],
  14446. this.commentIndexJson.toolIndex,
  14447. k,
  14448. null,
  14449. this.commentIndexJson.gid
  14450. );
  14451. break groupA;
  14452. }
  14453. }
  14454. }
  14455. }
  14456. }
  14457. if (a == 1) {
  14458. for (
  14459. var i = 0;
  14460. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14461. i++
  14462. ) {
  14463. let el =
  14464. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14465. if (el.wid == this.commentDetail.wid) {
  14466. a = 2;
  14467. this.commentOther(
  14468. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14469. this.commentIndexJson.toolIndex,
  14470. i
  14471. );
  14472. break;
  14473. }
  14474. }
  14475. }
  14476. if (a === 1) {
  14477. this.commentDetail = [];
  14478. this.commentIndexJson = {};
  14479. this.commentDialogVisible = false;
  14480. this.$message("此作业已被删除");
  14481. }
  14482. }
  14483. }
  14484. })
  14485. .catch((err) => {
  14486. console.error(err);
  14487. });
  14488. },
  14489. selectStudent() {
  14490. if(this.selectStudentLoading) return
  14491. this.selectStudentLoading = true
  14492. //学生查看自己作业
  14493. let params = {
  14494. uid: this.userid,
  14495. cid: this.id,
  14496. s: this.courseType,
  14497. t: this.taskCount,
  14498. };
  14499. this.ajax
  14500. .get(this.$store.state.api + "selectStudentWorks", params)
  14501. .then((res) => {
  14502. var a =
  14503. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14504. this.taskCount
  14505. ].toolChoose;
  14506. var b = res.data[0];
  14507. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14508. var y = [
  14509. "AVI",
  14510. "NAVI",
  14511. "MPEG",
  14512. "ASF",
  14513. "MOV",
  14514. "WMV",
  14515. "3GP",
  14516. "RM",
  14517. "RMVB",
  14518. "FLV",
  14519. "F4V",
  14520. "H.264",
  14521. "H.265",
  14522. "REAL VIDEO",
  14523. "MKV",
  14524. "WebM",
  14525. "HDDVD",
  14526. "MP4",
  14527. "MPG",
  14528. "M4V",
  14529. "MGV",
  14530. "OGV",
  14531. "QTM",
  14532. "STR",
  14533. "AMC",
  14534. "DVX",
  14535. "EVO",
  14536. "DAT",
  14537. "OGG",
  14538. "OGM",
  14539. ];
  14540. for (var i = 0; i < a.length; i++) {
  14541. this.workStudent[i] = [];
  14542. for (var j = 0; j < b.length; j++) {
  14543. if (i == b[j].tool) {
  14544. if (
  14545. (b[j].type == 1 ||
  14546. b[j].type == 4 ||
  14547. b[j].type == 5 ||
  14548. b[j].type == 6 ||
  14549. b[j].type == 12 ||
  14550. b[j].type == 7) &&
  14551. a[i].tool[0] != 15 &&
  14552. a[i].tool[0] != 4 &&
  14553. a[i].tool[0] != 45 &&
  14554. a[i].tool[0] != 50 &&
  14555. a[i].tool[0] != 32 &&
  14556. a[i].tool[0] != 57 &&
  14557. a[i].tool[0] != 52 &&
  14558. a[i].tool[0] != 69
  14559. ) {
  14560. if (
  14561. c.indexOf(
  14562. b[j].content
  14563. .split(".")
  14564. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14565. ) != -1 &&
  14566. a[i].tool[0] == 16 &&
  14567. b[j].atool != 50
  14568. ) {
  14569. this.workStudent[i].push({
  14570. works: b[j].content,
  14571. sName: b[j].name,
  14572. score: b[j].score,
  14573. img: b[j].img,
  14574. type: 1,
  14575. time: b[j].time,
  14576. userid: b[j].userid,
  14577. wid: b[j].id,
  14578. });
  14579. } else if (
  14580. y.indexOf(
  14581. b[j].content
  14582. .split(".")
  14583. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14584. ) != -1 &&
  14585. a[i].tool[0] == 16 &&
  14586. b[j].atool != 50
  14587. ) {
  14588. this.workStudent[i].push({
  14589. userid: b[j].userid,
  14590. wid: b[j].id,
  14591. works: b[j].content,
  14592. sName: b[j].name,
  14593. score: b[j].score,
  14594. img: b[j].img,
  14595. type: 3,
  14596. time: b[j].time,
  14597. });
  14598. } else if (b[j].type == 6 && b[j].atool != 50) {
  14599. this.workStudent[i].push({
  14600. userid: b[j].userid,
  14601. wid: b[j].id,
  14602. works: b[j].content,
  14603. sName: b[j].name,
  14604. score: b[j].score,
  14605. img: b[j].img,
  14606. type: 4,
  14607. time: b[j].time,
  14608. });
  14609. } else if (b[j].type == 7 && b[j].atool != 50) {
  14610. this.workStudent[i].push({
  14611. userid: b[j].userid,
  14612. wid: b[j].id,
  14613. works: b[j].content,
  14614. sName: b[j].name,
  14615. score: b[j].score,
  14616. img: b[j].img,
  14617. type: 5,
  14618. time: b[j].time,
  14619. });
  14620. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14621. this.workStudent[i].push({
  14622. works: b[j].content,
  14623. sName: b[j].name,
  14624. score: b[j].score,
  14625. img: b[j].img,
  14626. type: 12,
  14627. time: b[j].time,
  14628. userid: b[j].userid,
  14629. wid: b[j].id,
  14630. });
  14631. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14632. this.workStudent[i].push({
  14633. works: b[j].content,
  14634. sName: b[j].name,
  14635. score: b[j].score,
  14636. img: b[j].img,
  14637. type: 0,
  14638. time: b[j].time,
  14639. userid: b[j].userid,
  14640. wid: b[j].id,
  14641. });
  14642. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14643. this.workStudent[i].push({
  14644. works: b[j].content,
  14645. sName: b[j].name,
  14646. score: b[j].score,
  14647. img: b[j].img,
  14648. type: 0,
  14649. time: b[j].time,
  14650. userid: b[j].userid,
  14651. wid: b[j].id,
  14652. });
  14653. }
  14654. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14655. this.workStudent[i].push({
  14656. works: b[j].content,
  14657. sName: b[j].name,
  14658. score: b[j].score,
  14659. img: b[j].img,
  14660. type: 2,
  14661. time: b[j].time,
  14662. userid: b[j].userid,
  14663. wid: b[j].id,
  14664. });
  14665. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14666. this.workStudent[i].push({
  14667. works: b[j].content,
  14668. sName: b[j].name,
  14669. score: b[j].score,
  14670. img: b[j].img,
  14671. type: 20,
  14672. time: b[j].time,
  14673. userid: b[j].userid,
  14674. wid: b[j].id,
  14675. });
  14676. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14677. //问卷
  14678. this.workStudent[i].push({
  14679. works: b[j].content,
  14680. sName: b[j].name,
  14681. score: b[j].score,
  14682. img: b[j].img,
  14683. type: 2,
  14684. time: b[j].time,
  14685. userid: b[j].userid,
  14686. wid: b[j].id,
  14687. });
  14688. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14689. //选择题
  14690. this.workStudent[i].push({
  14691. works: b[j].content,
  14692. sName: b[j].name,
  14693. score: b[j].score,
  14694. img: b[j].img,
  14695. type: 8,
  14696. time: b[j].time,
  14697. userid: b[j].userid,
  14698. wid: b[j].id,
  14699. });
  14700. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14701. //选择题
  14702. this.workStudent[i].push({
  14703. works: b[j].content,
  14704. sName: b[j].name,
  14705. score: b[j].score,
  14706. img: b[j].img,
  14707. type: 9,
  14708. time: b[j].time,
  14709. userid: b[j].userid,
  14710. wid: b[j].id,
  14711. });
  14712. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14713. //选择题
  14714. this.workStudent[i].push({
  14715. works: b[j].content,
  14716. sName: b[j].name,
  14717. score: b[j].score,
  14718. img: b[j].img,
  14719. type: 10,
  14720. time: b[j].time,
  14721. userid: b[j].userid,
  14722. wid: b[j].id,
  14723. });
  14724. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14725. //选择题
  14726. this.workStudent[i].push({
  14727. works: b[j].content,
  14728. sName: b[j].name,
  14729. score: b[j].score,
  14730. img: b[j].img,
  14731. type: 13,
  14732. time: b[j].time,
  14733. userid: b[j].userid,
  14734. wid: b[j].id,
  14735. });
  14736. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14737. //选择题
  14738. this.workStudent[i].push({
  14739. works: b[j].content,
  14740. sName: b[j].name,
  14741. score: b[j].score,
  14742. img: b[j].img,
  14743. type: 12,
  14744. time: b[j].time,
  14745. userid: b[j].userid,
  14746. wid: b[j].id,
  14747. });
  14748. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14749. //选择题
  14750. this.workStudent[i].push({
  14751. works: b[j].content,
  14752. sName: b[j].name,
  14753. score: b[j].score,
  14754. img: b[j].img,
  14755. type: 12,
  14756. time: b[j].time,
  14757. userid: b[j].userid,
  14758. wid: b[j].id,
  14759. });
  14760. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14761. //选择题
  14762. this.workStudent[i].push({
  14763. works: b[j].content,
  14764. sName: b[j].name,
  14765. score: b[j].score,
  14766. img: b[j].img,
  14767. type: 15,
  14768. time: b[j].time,
  14769. userid: b[j].userid,
  14770. wid: b[j].id,
  14771. });
  14772. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14773. //英语写作
  14774. this.workStudent[i].push({
  14775. works: b[j].content,
  14776. sName: b[j].name,
  14777. score: b[j].score,
  14778. img: b[j].img,
  14779. type: 16,
  14780. time: b[j].time,
  14781. userid: b[j].userid,
  14782. wid: b[j].id,
  14783. aiCode: b[j].aiCode,
  14784. teacherCode: b[j].teacherCode
  14785. });
  14786. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14787. //英语口语
  14788. this.workStudent[i].push({
  14789. works: b[j].content,
  14790. sName: b[j].name,
  14791. score: b[j].score,
  14792. img: b[j].img,
  14793. type: 17,
  14794. time: b[j].time,
  14795. userid: b[j].userid,
  14796. wid: b[j].id,
  14797. });
  14798. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14799. //英语口语
  14800. this.workStudent[i].push({
  14801. works: b[j].content,
  14802. sName: b[j].name,
  14803. score: b[j].score,
  14804. img: b[j].img,
  14805. type: 14,
  14806. time: b[j].time,
  14807. userid: b[j].userid,
  14808. wid: b[j].id,
  14809. });
  14810. }
  14811. }
  14812. }
  14813. }
  14814. this.selectStudentLoading = false
  14815. })
  14816. .catch((err) => {
  14817. this.selectStudentLoading = false
  14818. console.error(err);
  14819. });
  14820. },
  14821. openVideo(w) {
  14822. this.videoDetail = {};
  14823. this.playerOptions1.sources[0].src = w.works;
  14824. this.videoDetail = this.playerOptions1;
  14825. this.videoVisible = true;
  14826. },
  14827. isLikes(wid, uid, t, c, isLikes,sName) {
  14828. if (isLikes == false) {
  14829. let params = [
  14830. {
  14831. wid: wid,
  14832. lid: uid,
  14833. t: t,
  14834. c: c,
  14835. },
  14836. ];
  14837. this.ajax
  14838. .post(this.$store.state.api + "insertComment", params)
  14839. .then((res) => {
  14840. this.$message({
  14841. message: "点赞成功",
  14842. type: "success",
  14843. });
  14844. this.selectSWorks();
  14845. this.selectStudent();
  14846. if(this.tType==1){
  14847. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14848. }
  14849. })
  14850. .catch((err) => {
  14851. this.$message.error("点赞失败");
  14852. console.error(err);
  14853. });
  14854. } else {
  14855. let params = {
  14856. wid: wid,
  14857. lid: uid,
  14858. type: t,
  14859. };
  14860. this.ajax
  14861. .get(this.$store.state.api + "deleteComment", params)
  14862. .then((res) => {
  14863. this.$message({
  14864. message: "取消点赞成功",
  14865. type: "success",
  14866. });
  14867. this.selectSWorks();
  14868. this.selectStudent();
  14869. })
  14870. .catch((err) => {
  14871. console.error(err);
  14872. });
  14873. }
  14874. },
  14875. deleteComment(wid) {
  14876. this.$confirm("确定删除此评论吗?", "提示", {
  14877. confirmButtonText: "确定",
  14878. cancelButtonText: "取消",
  14879. type: "warning",
  14880. })
  14881. .then(() => {
  14882. let params = {
  14883. id: wid,
  14884. };
  14885. this.ajax
  14886. .get(this.$store.state.api + "deleteComment2", params)
  14887. .then((res) => {
  14888. this.$message({
  14889. message: "删除评论成功",
  14890. type: "success",
  14891. });
  14892. this.selectSWorks();
  14893. this.selectStudent();
  14894. })
  14895. .catch((err) => {
  14896. console.error(err);
  14897. });
  14898. })
  14899. .catch(() => {});
  14900. },
  14901. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14902. this.commentIndexJson = {
  14903. toolIndex: toolIndex,
  14904. wIndex: wIndex,
  14905. gindex: gindex,
  14906. gid: gid,
  14907. };
  14908. this.commentDetail = [];
  14909. this.commentDialogVisible = true;
  14910. this.commentDetail = w;
  14911. if (w.works && w.type == 1) {
  14912. // this.pptImgUrl = "";
  14913. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14914. if (
  14915. a.indexOf(
  14916. w.works
  14917. .split(".")
  14918. [w.works.split(".").length - 1].toLocaleUpperCase()
  14919. ) != -1
  14920. ) {
  14921. let _uuurl = await this.checkLink(w.works);
  14922. this.pptImgUrl =
  14923. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14924. this.showPDF = false;
  14925. } else if (
  14926. w.works
  14927. .split(".")
  14928. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14929. ) {
  14930. this.pptImgUrl = w.works;
  14931. this.showPDF = true;
  14932. }
  14933. } else if (w.works && w.type == 3) {
  14934. this.videoDetail = {};
  14935. this.playerOptions1.sources[0].src = w.works;
  14936. this.videoDetail = this.playerOptions1;
  14937. // this.videoVisible = true;
  14938. } else if (w.works && w.type == 4) {
  14939. this.eScore = JSON.parse(w.works);
  14940. this.rateJson =
  14941. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14942. this.taskCount
  14943. ].toolChoose[toolIndex].rateJson;
  14944. } else if (w.works && w.type == 10) {
  14945. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14946. } else if (w.works && w.type == 13) {
  14947. this.wordJson =
  14948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14949. this.taskCount
  14950. ].toolChoose[toolIndex].wordJson;
  14951. }
  14952. },
  14953. async openScore(w, index) {
  14954. this.wScore = 0;
  14955. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14956. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14957. this.commentDetail = [];
  14958. if(w.type == 17){
  14959. this.dialogVisibleENScore = true;
  14960. }else{
  14961. this.dialogVisibleScore = true;
  14962. }
  14963. this.commentDetail = w;
  14964. if (w.works && w.type == 1) {
  14965. this.pptImgUrl = "";
  14966. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14967. if (
  14968. a.indexOf(
  14969. w.works
  14970. .split(".")
  14971. [w.works.split(".").length - 1].toLocaleUpperCase()
  14972. ) != -1
  14973. ) {
  14974. let _uuurl = await this.checkLink(w.works);
  14975. this.pptImgUrl =
  14976. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14977. this.showPDF = false;
  14978. } else if (
  14979. w.works
  14980. .split(".")
  14981. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14982. ) {
  14983. this.pptImgUrl = w.works;
  14984. this.showPDF = true;
  14985. }
  14986. } else if (w.works && w.type == 3) {
  14987. this.videoDetail = {};
  14988. this.playerOptions1.sources[0].src = w.works;
  14989. this.videoDetail = this.playerOptions1;
  14990. }else if(w.type == 17){
  14991. let englishVoiceJson = {}
  14992. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14993. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14994. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14995. .toolChoose[index].englishVoiceJson
  14996. : {};
  14997. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14998. }
  14999. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15000. },
  15001. addComment(wid, uid, t,detail) {
  15002. if (this.commentText == "") {
  15003. this.$message.error("请输入评论");
  15004. return;
  15005. }
  15006. let params2 = [
  15007. {
  15008. wid: wid,
  15009. lid: uid,
  15010. t: t,
  15011. },
  15012. ];
  15013. this.ajax
  15014. .post(this.$store.state.api + "getComment", params2)
  15015. .then((res) => {
  15016. if (res.data[0].length > 0) {
  15017. this.$message.error("一个作业只能评论一条");
  15018. } else {
  15019. let params = [
  15020. {
  15021. wid: wid,
  15022. lid: uid,
  15023. t: t,
  15024. c: this.commentText,
  15025. },
  15026. ];
  15027. this.ajax
  15028. .post(this.$store.state.api + "insertComment", params)
  15029. .then((res) => {
  15030. this.$message({
  15031. message: "评论成功",
  15032. type: "success",
  15033. });
  15034. this.commentText = "";
  15035. this.selectSWorks();
  15036. this.selectStudent();
  15037. if(this.tType!=2){
  15038. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15039. }
  15040. })
  15041. .catch((err) => {
  15042. this.$message.error("评论失败");
  15043. console.error(err);
  15044. });
  15045. }
  15046. })
  15047. .catch((err) => {
  15048. // this.$message.error("评论失败");
  15049. console.error(err);
  15050. });
  15051. },
  15052. scoreWork(wid,sName) {
  15053. if (this.wScore == 0) {
  15054. this.$message.error("请评分");
  15055. return;
  15056. }
  15057. let params = [
  15058. {
  15059. wid: wid,
  15060. score: JSON.stringify({
  15061. wScore: this.wScore,
  15062. detail: this.scoreDetail,
  15063. }),
  15064. },
  15065. ];
  15066. this.ajax
  15067. .post(this.$store.state.api + "scoreWork", params)
  15068. .then((res) => {
  15069. this.$message({
  15070. message: "评分成功",
  15071. type: "success",
  15072. });
  15073. this.wScore = 0;
  15074. this.scoreDetail = "";
  15075. this.dialogVisibleScore = false;
  15076. this.selectSWorks();
  15077. this.selectStudent();
  15078. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15079. })
  15080. .catch((err) => {
  15081. this.$message.error("评分失败");
  15082. console.error(err);
  15083. });
  15084. },
  15085. openXz(w, i) {
  15086. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15087. .taskJson[this.taskCount].toolChoose[i].selectJson
  15088. ? JSON.parse(
  15089. JSON.stringify(
  15090. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15091. this.taskCount
  15092. ].toolChoose[i].selectJson
  15093. )
  15094. )
  15095. : { url: "", select: [], answer: [] };
  15096. var a = w.works.split(",");
  15097. for (var k = 0; k < a.length; k++) {
  15098. a[k] = parseInt(a[k]);
  15099. }
  15100. this.selectAnswer = { answer: a, stu: w.sName };
  15101. this.isSelect = true;
  15102. this.dialogVisibleSelect = true;
  15103. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15104. },
  15105. openSen(w, i) {
  15106. console.log("openSen")
  15107. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15108. this.sentenceList1 = JSON.parse(w.works);
  15109. this.sentenceList1.stuName = w.sName;
  15110. this.dialogVisibleSentence1 = true;
  15111. },
  15112. openPj(w, toolindex) {
  15113. console.log("openPJ")
  15114. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15115. this.isStar = true;
  15116. this.eScore = JSON.parse(w);
  15117. this.rateJson =
  15118. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15119. this.taskCount
  15120. ].toolChoose[toolindex].rateJson;
  15121. this.studentEvalDialogVisible = true;
  15122. },
  15123. openEnglishEva(id,i){
  15124. let params = {
  15125. wid: id
  15126. };
  15127. this.ajax
  15128. .get(this.$store.state.api + "selectEngWork", params)
  15129. .then((res) => {
  15130. this.evaEngJson.message = res.data[0][0];
  15131. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15132. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15133. .toolChoose[i].englishList;
  15134. this.engEvaDialogVisible = true;
  15135. })
  15136. .catch((err) => {
  15137. console.error(err);
  15138. });
  15139. },
  15140. deleteWorks(id) {
  15141. this.$confirm("确定删除此作业吗?", "提示", {
  15142. confirmButtonText: "确定",
  15143. cancelButtonText: "取消",
  15144. type: "warning",
  15145. })
  15146. .then(() => {
  15147. let params = [
  15148. {
  15149. id: id,
  15150. },
  15151. ];
  15152. this.ajax
  15153. .post(this.$store.state.api + "deleteCourseWork", params)
  15154. .then((res) => {
  15155. this.$message({
  15156. message: "删除成功",
  15157. type: "success",
  15158. });
  15159. this.selectStudent();
  15160. this.selectSWorks();
  15161. this.selectSLook();
  15162. })
  15163. .catch((err) => {
  15164. this.$message.error("网络异常");
  15165. console.error(err);
  15166. });
  15167. })
  15168. .catch(() => {});
  15169. },
  15170. selectSWorks(gindex) {
  15171. if(this.selectSWorksLoading) return
  15172. this.selectSWorksLoading = true
  15173. //教师查看全部作业
  15174. let params = {
  15175. cid: this.id,
  15176. s: this.courseType,
  15177. t: this.taskCount,
  15178. };
  15179. this.ajax
  15180. .get(this.$store.state.api + "selectSWorks", params)
  15181. .then((res) => {
  15182. var a =
  15183. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15184. this.taskCount
  15185. ].toolChoose;
  15186. var b = res.data[0];
  15187. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15188. var y = [
  15189. "AVI",
  15190. "NAVI",
  15191. "MPEG",
  15192. "ASF",
  15193. "MOV",
  15194. "WMV",
  15195. "3GP",
  15196. "RM",
  15197. "RMVB",
  15198. "FLV",
  15199. "F4V",
  15200. "H.264",
  15201. "H.265",
  15202. "REAL VIDEO",
  15203. "MKV",
  15204. "WebM",
  15205. "HDDVD",
  15206. "MP4",
  15207. "MPG",
  15208. "M4V",
  15209. "MGV",
  15210. "OGV",
  15211. "QTM",
  15212. "STR",
  15213. "AMC",
  15214. "DVX",
  15215. "EVO",
  15216. "DAT",
  15217. "OGG",
  15218. "OGM",
  15219. ];
  15220. var d = res.data[1];
  15221. var e = res.data[2];
  15222. var f = res.data[3];
  15223. let _worksStudent = [];
  15224. var _worksStudent2 = [];
  15225. for (var i = 0; i < a.length; i++) {
  15226. _worksStudent[i] = [];
  15227. _worksStudent2[i] = [];
  15228. if (
  15229. !this.isCloseList[i] ||
  15230. this.isCloseList[i].isClose == undefined
  15231. ) {
  15232. this.isCloseList[i] = { isClose: 0 };
  15233. }
  15234. this.groupStudent[i] = [];
  15235. this.groupStudentUid[i] = [];
  15236. if (this.isGroup) {
  15237. for (
  15238. var groupI = 0;
  15239. groupI < this.courseGroup.group.length;
  15240. groupI++
  15241. ) {
  15242. this.courseGroup.group[groupI].works[i] = [];
  15243. }
  15244. }
  15245. this.isWorksS[i] = [];
  15246. this.checkJson[i] = [];
  15247. if (a[i].tool[0] == 49) {
  15248. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15249. this.groupStudent[i][gA] = [];
  15250. this.groupStudentUid[i][gA] = [];
  15251. _worksStudent[i][gA] = [];
  15252. _worksStudent2[i][gA] = [];
  15253. this.isCloseList[i][gA] = [];
  15254. // debugger
  15255. for (var g = 0; g < f.length; g++) {
  15256. if (
  15257. f[g].ttype == 2 &&
  15258. this.tcid &&
  15259. this.arrayToArray(
  15260. (f[g].classid ? f[g].classid.split(",") : []),
  15261. this.tcid.split(",")
  15262. ).length == 0
  15263. ) {
  15264. continue;
  15265. }
  15266. let _classId = this.arrayToArray(
  15267. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15268. this.classId ? this.classId.split(",") : []
  15269. )
  15270. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15271. (f[g].classid ? f[g].classid.split(",") : []),
  15272. this.tcid.split(",")
  15273. ).length !== 0 || this.arrayToArray(
  15274. (f[g].classid ? f[g].classid.split(",") : []),
  15275. _classId
  15276. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15277. this.groupStudent[i][gA].push(f[g]);
  15278. this.groupStudentUid[i][gA].push(f[g].userid);
  15279. }
  15280. }
  15281. }
  15282. this.$forceUpdate();
  15283. }
  15284. for (var j = 0; j < b.length; j++) {
  15285. if (
  15286. b[j].ttype == 2 &&
  15287. this.tcid &&
  15288. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15289. .length == 0
  15290. ) {
  15291. continue;
  15292. }
  15293. var likesCount = 0;
  15294. var commentCount = 0;
  15295. var isLikes = false;
  15296. var commentJson = [];
  15297. var likeJson = [];
  15298. var data = b[j];
  15299. if (i == b[j].tool) {
  15300. if (data.type == 2 && a[i].tool[0] == 4) {
  15301. // if(JSON.parse(data.content)[0].anwer){
  15302. var checkL =
  15303. JSON.parse(data.content)[0].anwer instanceof Array
  15304. ? JSON.parse(data.content)[0].anwer
  15305. : JSON.parse(data.content)[0].anwer.split(",");
  15306. for (var z = 0; z < checkL.length; z++) {
  15307. if (!this.checkJson[i][z]) {
  15308. this.checkJson[i].push({
  15309. checkCount: [],
  15310. checkPerson: [],
  15311. rightPerson: [],
  15312. });
  15313. }
  15314. if (!this.checkJson[i][z].checkCount.length) {
  15315. this.checkJson[i][z].checkCount = [];
  15316. let _askItemCount = JSON.parse(data.content)[0].askJson
  15317. .askJson[z].askItem;
  15318. for (var aic = 0; aic < _askItemCount; aic++) {
  15319. this.checkJson[i][z].checkCount.push(0);
  15320. }
  15321. }
  15322. if (checkL[z] instanceof Array) {
  15323. if (
  15324. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15325. checkL[z].sort().join(",")
  15326. ) {
  15327. this.checkJson[i][z].rightPerson.push(data.name);
  15328. }
  15329. for (var q = 0; q < checkL[z].length; q++) {
  15330. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15331. ? this.checkJson[i][z].checkPerson[
  15332. parseInt(checkL[z][q])
  15333. ].push(data.name)
  15334. : (this.checkJson[i][z].checkPerson[
  15335. parseInt(checkL[z][q])
  15336. ] = [data.name]);
  15337. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15338. ? this.checkJson[i][z].checkCount[
  15339. parseInt(checkL[z][q])
  15340. ]++
  15341. : (this.checkJson[i][z].checkCount[
  15342. parseInt(checkL[z][q])
  15343. ] = 1);
  15344. }
  15345. } else {
  15346. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15347. this.checkJson[i][z].rightPerson.push(data.name);
  15348. }
  15349. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15350. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15351. ? this.checkJson[i][z].checkPerson[
  15352. parseInt(checkL[z])
  15353. ].push(data.name)
  15354. : (this.checkJson[i][z].checkPerson[
  15355. parseInt(checkL[z])
  15356. ] = [data.name]);
  15357. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15358. ? this.checkJson[i][z].checkCount[
  15359. parseInt(checkL[z])
  15360. ]++
  15361. : (this.checkJson[i][z].checkCount[
  15362. parseInt(checkL[z])
  15363. ] = 1);
  15364. }
  15365. }
  15366. }
  15367. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15368. var checkL = JSON.parse(data.content)[0].anwer;
  15369. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  15370. continue
  15371. }
  15372. console.log('选择题')
  15373. for (var z = 0; z < checkL.length; z++) {
  15374. if (!this.checkJson[i][z]) {
  15375. this.checkJson[i].push({
  15376. checkCount: [],
  15377. checkPerson: [],
  15378. rightPerson: [],
  15379. });
  15380. }
  15381. if (!this.checkJson[i][z].checkCount.length) {
  15382. this.checkJson[i][z].checkCount = [];
  15383. let _askItemCount = JSON.parse(data.content)[0].testJson
  15384. .testJson[z].testItem;
  15385. for (var aic = 0; aic < _askItemCount; aic++) {
  15386. this.checkJson[i][z].checkCount.push(0);
  15387. }
  15388. }
  15389. if (checkL[z] instanceof Array) {
  15390. if (
  15391. JSON.parse(data.content)[0]
  15392. .testJson.testJson[z].answer.sort()
  15393. .join(",") == checkL[z].sort().join(",")
  15394. ) {
  15395. this.checkJson[i][z].rightPerson.push(data.name);
  15396. }
  15397. for (var q = 0; q < checkL[z].length; q++) {
  15398. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15399. ? this.checkJson[i][z].checkPerson[
  15400. parseInt(checkL[z][q])
  15401. ].push(data.name)
  15402. : (this.checkJson[i][z].checkPerson[
  15403. parseInt(checkL[z][q])
  15404. ] = [data.name]);
  15405. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15406. ? this.checkJson[i][z].checkCount[
  15407. parseInt(checkL[z][q])
  15408. ]++
  15409. : (this.checkJson[i][z].checkCount[
  15410. parseInt(checkL[z][q])
  15411. ] = 1);
  15412. }
  15413. } else {
  15414. if (
  15415. JSON.parse(data.content)[0].testJson.testJson[z]
  15416. .answer == checkL[z]
  15417. ) {
  15418. this.checkJson[i][z].rightPerson.push(data.name);
  15419. }
  15420. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15421. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15422. ? this.checkJson[i][z].checkPerson[
  15423. parseInt(checkL[z])
  15424. ].push(data.name)
  15425. : (this.checkJson[i][z].checkPerson[
  15426. parseInt(checkL[z])
  15427. ] = [data.name]);
  15428. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15429. ? this.checkJson[i][z].checkCount[
  15430. parseInt(checkL[z])
  15431. ]++
  15432. : (this.checkJson[i][z].checkCount[
  15433. parseInt(checkL[z])
  15434. ] = 1);
  15435. }
  15436. }
  15437. }
  15438. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15439. var checkL = JSON.parse(data.content);
  15440. for (var z = 0; z < checkL.length; z++) {
  15441. if (!this.checkJson[i][z]) {
  15442. this.checkJson[i].push({
  15443. checkCount: [],
  15444. checkPerson: [],
  15445. rightPerson: [],
  15446. });
  15447. }
  15448. this.checkJson[i][z].checkPerson.push(data.name);
  15449. if (
  15450. checkL[z].chooseSenList.toString() ==
  15451. checkL[z].rightAnswer.toString()
  15452. ) {
  15453. this.checkJson[i][z].rightPerson.push(data.name);
  15454. }
  15455. }
  15456. }
  15457. for (var k = 0; k < d.length; k++) {
  15458. //点赞
  15459. if (d[k].workId == b[j].id) {
  15460. likesCount++;
  15461. likeJson.push(d[k])
  15462. if (d[k].likesId == this.userid) {
  15463. isLikes = true;
  15464. }
  15465. }
  15466. }
  15467. for (var l = 0; l < e.length; l++) {
  15468. //评论
  15469. if (e[l].workId == b[j].id) {
  15470. if (e[l].comment != "") {
  15471. commentCount++;
  15472. commentJson.push({
  15473. commentText: e[l].comment,
  15474. commentTime: e[l].commentTime,
  15475. commentPeople: e[l].commentPeople,
  15476. userid: e[l].userid,
  15477. wid: e[l].id,
  15478. });
  15479. }
  15480. }
  15481. }
  15482. if (
  15483. (b[j].type == 1 ||
  15484. b[j].type == 4 ||
  15485. b[j].type == 5 ||
  15486. b[j].type == 6 ||
  15487. b[j].type == 12 ||
  15488. b[j].type == 7) &&
  15489. a[i].tool[0] != 15 &&
  15490. a[i].tool[0] != 4 &&
  15491. a[i].tool[0] != 45 &&
  15492. a[i].tool[0] != 50 &&
  15493. a[i].tool[0] != 32 &&
  15494. a[i].tool[0] != 57 &&
  15495. a[i].tool[0] != 52
  15496. ) {
  15497. if (
  15498. c.indexOf(
  15499. b[j].content
  15500. .split(".")
  15501. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15502. ) != -1 &&
  15503. a[i].tool[0] == 16 &&
  15504. b[j].atool != 50
  15505. ) {
  15506. let _works = {
  15507. userid: b[j].userid,
  15508. ateacher: b[j].ateacher,
  15509. wid: b[j].id,
  15510. works: b[j].content,
  15511. sName: b[j].name,
  15512. type: 1,
  15513. ttype:b[j].ttype,
  15514. time: b[j].time,
  15515. score: b[j].score,
  15516. img: b[j].img,
  15517. likesCount: likesCount,
  15518. commentCount: commentCount,
  15519. isLikes: isLikes,
  15520. commentJson: commentJson,
  15521. likeJson:likeJson
  15522. };
  15523. if (this.isGroup) {
  15524. let isGw = 1;
  15525. for (
  15526. var groupI = 0;
  15527. groupI < this.courseGroup.group.length;
  15528. groupI++
  15529. ) {
  15530. let gid = this.courseGroup.group[groupI].id;
  15531. if (
  15532. this.courseGroupStudentUid[gid].indexOf(
  15533. b[j].userid
  15534. ) != -1
  15535. ) {
  15536. isGw = 2;
  15537. this.courseGroup.group[groupI].works[i].push(_works);
  15538. break;
  15539. }
  15540. }
  15541. if (isGw == 1) {
  15542. _worksStudent[i].push(_works);
  15543. }
  15544. } else {
  15545. _worksStudent[i].push(_works);
  15546. }
  15547. _worksStudent2[i].push(_works);
  15548. this.isWorksS[i].push({
  15549. uid: b[j].userid,
  15550. sName: b[j].name,
  15551. });
  15552. } else if (
  15553. y.indexOf(
  15554. b[j].content
  15555. .split(".")
  15556. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15557. ) != -1 &&
  15558. a[i].tool[0] == 16 &&
  15559. b[j].atool != 50
  15560. ) {
  15561. let _works = {
  15562. userid: b[j].userid,
  15563. ateacher: b[j].ateacher,
  15564. wid: b[j].id,
  15565. works: b[j].content,
  15566. sName: b[j].name,
  15567. type: 3,
  15568. ttype:b[j].ttype,
  15569. time: b[j].time,
  15570. score: b[j].score,
  15571. img: b[j].img,
  15572. likesCount: likesCount,
  15573. commentCount: commentCount,
  15574. isLikes: isLikes,
  15575. commentJson: commentJson,
  15576. likeJson:likeJson
  15577. };
  15578. if (this.isGroup) {
  15579. let isGw = 1;
  15580. for (
  15581. var groupI = 0;
  15582. groupI < this.courseGroup.group.length;
  15583. groupI++
  15584. ) {
  15585. let gid = this.courseGroup.group[groupI].id;
  15586. if (
  15587. this.courseGroupStudentUid[gid].indexOf(
  15588. b[j].userid
  15589. ) != -1
  15590. ) {
  15591. isGw = 2;
  15592. this.courseGroup.group[groupI].works[i].push(_works);
  15593. break;
  15594. }
  15595. }
  15596. if (isGw == 1) {
  15597. _worksStudent[i].push(_works);
  15598. }
  15599. } else {
  15600. _worksStudent[i].push(_works);
  15601. }
  15602. _worksStudent2[i].push(_works);
  15603. this.isWorksS[i].push({
  15604. uid: b[j].userid,
  15605. sName: b[j].name,
  15606. });
  15607. } else if (b[j].type == 6 && b[j].atool != 50) {
  15608. let _works = {
  15609. userid: b[j].userid,
  15610. ateacher: b[j].ateacher,
  15611. wid: b[j].id,
  15612. works: b[j].content,
  15613. sName: b[j].name,
  15614. type: 4,
  15615. ttype:b[j].ttype,
  15616. time: b[j].time,
  15617. score: b[j].score,
  15618. img: b[j].img,
  15619. likesCount: likesCount,
  15620. commentCount: commentCount,
  15621. isLikes: isLikes,
  15622. commentJson: commentJson,
  15623. likeJson:likeJson
  15624. };
  15625. _worksStudent[i].push(_works);
  15626. _worksStudent2[i].push(_works);
  15627. this.isWorksS[i].push({
  15628. uid: b[j].userid,
  15629. sName: b[j].name,
  15630. });
  15631. } else if (b[j].type == 7 && b[j].atool != 50) {
  15632. let _work = {
  15633. userid: b[j].userid,
  15634. ateacher: b[j].ateacher,
  15635. wid: b[j].id,
  15636. works: b[j].content,
  15637. sName: b[j].name,
  15638. type: 5,
  15639. ttype:b[j].ttype,
  15640. time: b[j].time,
  15641. score: b[j].score,
  15642. img: b[j].img,
  15643. likesCount: likesCount,
  15644. commentCount: commentCount,
  15645. isLikes: isLikes,
  15646. commentJson: commentJson,
  15647. likeJson:likeJson
  15648. };
  15649. _worksStudent[i].push(_work);
  15650. _worksStudent2[i].push(_work);
  15651. this.isWorksS[i].push({
  15652. uid: b[j].userid,
  15653. sName: b[j].name,
  15654. });
  15655. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15656. let _works = {
  15657. userid: b[j].userid,
  15658. ateacher: b[j].ateacher,
  15659. wid: b[j].id,
  15660. works: b[j].content,
  15661. sName: b[j].name,
  15662. type: 12,
  15663. ttype:b[j].ttype,
  15664. time: b[j].time,
  15665. score: b[j].score,
  15666. img: b[j].img,
  15667. likesCount: likesCount,
  15668. commentCount: commentCount,
  15669. isLikes: isLikes,
  15670. commentJson: commentJson,
  15671. likeJson:likeJson
  15672. };
  15673. if (this.isGroup) {
  15674. let isGw = 1;
  15675. for (
  15676. var groupI = 0;
  15677. groupI < this.courseGroup.group.length;
  15678. groupI++
  15679. ) {
  15680. let gid = this.courseGroup.group[groupI].id;
  15681. if (
  15682. this.courseGroupStudentUid[gid].indexOf(
  15683. b[j].userid
  15684. ) != -1
  15685. ) {
  15686. isGw = 2;
  15687. this.courseGroup.group[groupI].works[i].push(_works);
  15688. break;
  15689. }
  15690. }
  15691. if (isGw == 1) {
  15692. _worksStudent[i].push(_works);
  15693. }
  15694. } else {
  15695. _worksStudent[i].push(_works);
  15696. }
  15697. _worksStudent2[i].push(_works);
  15698. this.isWorksS[i].push({
  15699. uid: b[j].userid,
  15700. sName: b[j].name,
  15701. });
  15702. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15703. let _works = {
  15704. userid: b[j].userid,
  15705. ateacher: b[j].ateacher,
  15706. wid: b[j].id,
  15707. works: b[j].content,
  15708. sName: b[j].name,
  15709. type: 0,
  15710. ttype:b[j].ttype,
  15711. time: b[j].time,
  15712. score: b[j].score,
  15713. img: b[j].img,
  15714. likesCount: likesCount,
  15715. commentCount: commentCount,
  15716. isLikes: isLikes,
  15717. commentJson: commentJson,
  15718. likeJson:likeJson
  15719. };
  15720. if (this.isGroup) {
  15721. let isGw = 1;
  15722. for (
  15723. var groupI = 0;
  15724. groupI < this.courseGroup.group.length;
  15725. groupI++
  15726. ) {
  15727. let gid = this.courseGroup.group[groupI].id;
  15728. if (
  15729. this.courseGroupStudentUid[gid].indexOf(
  15730. b[j].userid
  15731. ) != -1
  15732. ) {
  15733. isGw = 2;
  15734. this.courseGroup.group[groupI].works[i].push(_works);
  15735. break;
  15736. }
  15737. }
  15738. if (isGw == 1) {
  15739. _worksStudent[i].push(_works);
  15740. }
  15741. } else {
  15742. _worksStudent[i].push(_works);
  15743. }
  15744. _worksStudent2[i].push(_works);
  15745. this.isWorksS[i].push({
  15746. uid: b[j].userid,
  15747. sName: b[j].name,
  15748. });
  15749. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15750. let _works = {
  15751. userid: b[j].userid,
  15752. ateacher: b[j].ateacher,
  15753. wid: b[j].id,
  15754. works: b[j].content,
  15755. sName: b[j].name,
  15756. type: 0,
  15757. ttype:b[j].ttype,
  15758. time: b[j].time,
  15759. score: b[j].score,
  15760. img: b[j].img,
  15761. likesCount: likesCount,
  15762. commentCount: commentCount,
  15763. isLikes: isLikes,
  15764. commentJson: commentJson,
  15765. likeJson:likeJson
  15766. };
  15767. if (this.isGroup) {
  15768. let isGw = 1;
  15769. for (
  15770. var groupI = 0;
  15771. groupI < this.courseGroup.group.length;
  15772. groupI++
  15773. ) {
  15774. let gid = this.courseGroup.group[groupI].id;
  15775. if (
  15776. this.courseGroupStudentUid[gid].indexOf(
  15777. b[j].userid
  15778. ) != -1
  15779. ) {
  15780. isGw = 2;
  15781. this.courseGroup.group[groupI].works[i].push(_works);
  15782. break;
  15783. }
  15784. }
  15785. if (isGw == 1) {
  15786. _worksStudent[i].push(_works);
  15787. }
  15788. } else {
  15789. _worksStudent[i].push(_works);
  15790. }
  15791. _worksStudent2[i].push(_works);
  15792. this.isWorksS[i].push({
  15793. uid: b[j].userid,
  15794. sName: b[j].name,
  15795. });
  15796. }
  15797. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15798. let _works = {
  15799. userid: b[j].userid,
  15800. ateacher: b[j].ateacher,
  15801. wid: b[j].id,
  15802. works: b[j].content,
  15803. sName: b[j].name,
  15804. type: 2,
  15805. ttype:b[j].ttype,
  15806. time: b[j].time,
  15807. score: b[j].score,
  15808. img: b[j].img,
  15809. likesCount: likesCount,
  15810. commentCount: commentCount,
  15811. isLikes: isLikes,
  15812. commentJson: commentJson,
  15813. likeJson:likeJson
  15814. };
  15815. if (this.isGroup) {
  15816. let isGw = 1;
  15817. for (
  15818. var groupI = 0;
  15819. groupI < this.courseGroup.group.length;
  15820. groupI++
  15821. ) {
  15822. let gid = this.courseGroup.group[groupI].id;
  15823. if (
  15824. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15825. -1
  15826. ) {
  15827. isGw = 2;
  15828. this.courseGroup.group[groupI].works[i].push(_works);
  15829. break;
  15830. }
  15831. }
  15832. if (isGw == 1) {
  15833. _worksStudent[i].push(_works);
  15834. }
  15835. } else {
  15836. _worksStudent[i].push(_works);
  15837. }
  15838. _worksStudent2[i].push(_works);
  15839. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15840. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15841. let _works = {
  15842. userid: b[j].userid,
  15843. ateacher: b[j].ateacher,
  15844. wid: b[j].id,
  15845. works: b[j].content,
  15846. sName: b[j].name,
  15847. type: 20,
  15848. ttype:b[j].ttype,
  15849. time: b[j].time,
  15850. score: b[j].score,
  15851. img: b[j].img,
  15852. likesCount: likesCount,
  15853. commentCount: commentCount,
  15854. isLikes: isLikes,
  15855. commentJson: commentJson,
  15856. likeJson:likeJson
  15857. };
  15858. if (this.isGroup) {
  15859. let isGw = 1;
  15860. for (
  15861. var groupI = 0;
  15862. groupI < this.courseGroup.group.length;
  15863. groupI++
  15864. ) {
  15865. let gid = this.courseGroup.group[groupI].id;
  15866. if (
  15867. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15868. -1
  15869. ) {
  15870. isGw = 2;
  15871. this.courseGroup.group[groupI].works[i].push(_works);
  15872. break;
  15873. }
  15874. }
  15875. if (isGw == 1) {
  15876. _worksStudent[i].push(_works);
  15877. }
  15878. } else {
  15879. _worksStudent[i].push(_works);
  15880. }
  15881. _worksStudent2[i].push(_works);
  15882. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15883. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  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: 2,
  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 == 8 && a[i].tool[0] == 45) {
  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: 8,
  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 == 9 && a[i].tool[0] == 47) {
  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: 9,
  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 == 10 && a[i].tool[0] == 48) {
  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: 10,
  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 == 13 && a[i].tool[0] == 52) {
  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: 13,
  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. likeJson:likeJson
  15989. };
  15990. _worksStudent[i].push(_work);
  15991. _worksStudent2[i].push(_work);
  15992. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15993. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15994. //选择题
  15995. let _work = {
  15996. userid: b[j].userid,
  15997. ateacher: b[j].ateacher,
  15998. wid: b[j].id,
  15999. works: b[j].content,
  16000. sName: b[j].name,
  16001. type: 16,
  16002. ttype:b[j].ttype,
  16003. time: b[j].time,
  16004. score: b[j].score,
  16005. img: b[j].img,
  16006. likesCount: likesCount,
  16007. commentCount: commentCount,
  16008. isLikes: isLikes,
  16009. commentJson: commentJson,
  16010. aiCode: b[j].aiCode,
  16011. teacherCode: b[j].teacherCode,
  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 == 17 && a[i].tool[0] == 70) {
  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: 17,
  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 == 14 && a[i].tool[0] == 62) {
  16040. //交互视频
  16041. let _work = {
  16042. userid: b[j].userid,
  16043. ateacher: b[j].ateacher,
  16044. wid: b[j].id,
  16045. works: b[j].content,
  16046. sName: b[j].name,
  16047. type: 14,
  16048. ttype:b[j].ttype,
  16049. time: b[j].time,
  16050. score: b[j].score,
  16051. img: b[j].img,
  16052. likesCount: likesCount,
  16053. commentCount: commentCount,
  16054. isLikes: isLikes,
  16055. commentJson: commentJson,
  16056. likeJson:likeJson
  16057. };
  16058. _worksStudent[i].push(_work);
  16059. _worksStudent2[i].push(_work);
  16060. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16061. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16062. let _gindex = JSON.parse(b[j].content);
  16063. if (
  16064. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16065. b[j].userid
  16066. ) != -1
  16067. ) {
  16068. let _work = {
  16069. userid: b[j].userid,
  16070. ateacher: b[j].ateacher,
  16071. wid: b[j].id,
  16072. works: _gindex.url,
  16073. sName: b[j].name,
  16074. type: _gindex.type,
  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][_gindex.groupIndex].push(_work);
  16086. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16087. }
  16088. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16089. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16090. let _work = {
  16091. userid: b[j].userid,
  16092. ateacher: b[j].ateacher,
  16093. wid: b[j].id,
  16094. works: b[j].content,
  16095. sName: b[j].name ? b[j].name : b[j].userid,
  16096. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16097. ttype:b[j].ttype,
  16098. time: b[j].time,
  16099. score: b[j].score,
  16100. img: b[j].img,
  16101. likesCount: likesCount,
  16102. commentCount: commentCount,
  16103. isLikes: isLikes,
  16104. commentJson: commentJson,
  16105. likeJson:likeJson
  16106. };
  16107. _worksStudent[i].push(_work);
  16108. _worksStudent2[i].push(_work);
  16109. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16110. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16111. let _work = {
  16112. userid: b[j].userid,
  16113. ateacher: b[j].ateacher,
  16114. wid: b[j].id,
  16115. works: b[j].content,
  16116. sName: b[j].name ? b[j].name : b[j].userid,
  16117. type: 12,
  16118. ttype:b[j].ttype,
  16119. time: b[j].time,
  16120. score: b[j].score,
  16121. img: b[j].img,
  16122. likesCount: likesCount,
  16123. commentCount: commentCount,
  16124. isLikes: isLikes,
  16125. commentJson: commentJson,
  16126. likeJson:likeJson
  16127. };
  16128. _worksStudent[i].push(_work);
  16129. _worksStudent2[i].push(_work);
  16130. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16131. } else if (
  16132. a[i].tool[0] == 57 &&
  16133. b[j].atool == 57 &&
  16134. b[j].type == 12
  16135. ) {
  16136. let _work = {
  16137. userid: b[j].userid,
  16138. ateacher: b[j].ateacher,
  16139. wid: b[j].id,
  16140. works: b[j].content,
  16141. sName: b[j].name ? b[j].name : b[j].userid,
  16142. type: 12,
  16143. ttype:b[j].ttype,
  16144. time: b[j].time,
  16145. score: b[j].score,
  16146. img: b[j].img,
  16147. likesCount: likesCount,
  16148. commentCount: commentCount,
  16149. isLikes: isLikes,
  16150. commentJson: commentJson,
  16151. likeJson:likeJson
  16152. };
  16153. _worksStudent[i].push(_work);
  16154. _worksStudent2[i].push(_work);
  16155. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16156. } else if (
  16157. a[i].tool[0] == 57 &&
  16158. b[j].atool == 57 &&
  16159. b[j].type == 15
  16160. ) {
  16161. let _work = {
  16162. userid: b[j].userid,
  16163. ateacher: b[j].ateacher,
  16164. wid: b[j].id,
  16165. works: b[j].content,
  16166. sName: b[j].name ? b[j].name : b[j].userid,
  16167. type: 15,
  16168. ttype:b[j].ttype,
  16169. time: b[j].time,
  16170. score: b[j].score,
  16171. img: b[j].img,
  16172. likesCount: likesCount,
  16173. commentCount: commentCount,
  16174. isLikes: isLikes,
  16175. commentJson: commentJson,
  16176. likeJson:likeJson
  16177. };
  16178. _worksStudent[i].push(_work);
  16179. _worksStudent2[i].push(_work);
  16180. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16181. }
  16182. }
  16183. }
  16184. if (_worksStudent[i] && _worksStudent[i].length) {
  16185. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16186. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16187. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16188. var scoreA = parseFloat(jscoreA);
  16189. var scoreB = parseFloat(jscoreB);
  16190. if (scoreA == scoreB) {
  16191. return b.likesCount - a.likesCount;
  16192. }
  16193. return scoreB - scoreA;
  16194. });
  16195. if (this.isGroup) {
  16196. for (
  16197. var groupI = 0;
  16198. groupI < this.courseGroup.group.length;
  16199. groupI++
  16200. ) {
  16201. this.courseGroup.group[groupI].works[i] =
  16202. this.courseGroup.group[groupI].works[i].sort(function (
  16203. a,
  16204. b
  16205. ) {
  16206. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16207. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16208. var scoreA = parseFloat(jscoreA);
  16209. var scoreB = parseFloat(jscoreB);
  16210. if (scoreA == scoreB) {
  16211. return b.likesCount - a.likesCount;
  16212. }
  16213. return scoreB - scoreA;
  16214. });
  16215. }
  16216. }
  16217. }
  16218. }
  16219. this.timeWorkList = _worksStudent2;
  16220. for (var i = 0; i < a.length; i++) {
  16221. for (var j = 0; j < b.length; j++) {
  16222. var data = b[j];
  16223. if (i == b[j].tool) {
  16224. if (data.type == 2 || data.type == 8) {
  16225. for (var z = 0; z < this.checkJson[i].length; z++) {
  16226. this.checkJson[i][z].checkPerent = [];
  16227. this.checkJson[i][z].right = Math.round(
  16228. (this.checkJson[i][z].rightPerson.length /
  16229. parseInt(_worksStudent[i].length)) *
  16230. 100
  16231. );
  16232. let aaaa = this.checkJson[i][z];
  16233. for (
  16234. var k = 0;
  16235. k < this.checkJson[i][z].checkCount.length;
  16236. k++
  16237. ) {
  16238. this.checkJson[i][z].checkPerent.push(
  16239. Math.round(
  16240. (this.checkJson[i][z].checkCount[k] /
  16241. parseInt(_worksStudent[i].length)) *
  16242. 100
  16243. )
  16244. );
  16245. }
  16246. }
  16247. } else if (data.type == 9) {
  16248. for (var z = 0; z < this.checkJson[i].length; z++) {
  16249. this.checkJson[i][z].checkPerent = [];
  16250. this.checkJson[i][z].right = Math.round(
  16251. (this.checkJson[i][z].rightPerson.length /
  16252. this.checkJson[i][z].checkPerson.length) *
  16253. 100
  16254. );
  16255. }
  16256. }
  16257. }
  16258. }
  16259. }
  16260. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16261. this.joinGroup(gindex);
  16262. }
  16263. this.worksStudent = _worksStudent;
  16264. this.selectWorksStudent();
  16265. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16266. this.$nextTick(()=>{
  16267. setTimeout(()=>{
  16268. setTimeout(()=>{
  16269. this.panToolHeight('tool-'+ci);
  16270. }, 500)
  16271. }, 0)
  16272. })
  16273. }
  16274. this.selectSWorksLoading = false
  16275. })
  16276. .catch((err) => {
  16277. this.selectSWorksLoading = false
  16278. console.error(err);
  16279. });
  16280. },
  16281. pngToWhiteBg(file) {
  16282. const _file = file;
  16283. let read = new FileReader();
  16284. read.readAsDataURL(file); // 文件转base64
  16285. return new Promise((resolve, reject) => {
  16286. read.onload = (e) => {
  16287. let img = new Image();
  16288. img.src = e.target.result;
  16289. img.onload = async () => {
  16290. // 生成canvas
  16291. let canvas = document.createElement("canvas");
  16292. let context = canvas.getContext("2d");
  16293. // 绘制图片到canvas上
  16294. canvas.width = img.width;
  16295. canvas.height = img.height;
  16296. // 在canvas绘制前填充白色背景
  16297. context.fillStyle = "#fff";
  16298. context.fillRect(0, 0, canvas.width, canvas.height);
  16299. context.drawImage(img, 0, 0);
  16300. let base64 = canvas.toDataURL(file["type"], 1);
  16301. let newFile = this.dataUrlToFile(base64, _file);
  16302. resolve(newFile);
  16303. };
  16304. };
  16305. });
  16306. },
  16307. dataUrlToFile(dataurl, file) {
  16308. let arr = dataurl.split(","),
  16309. mime = arr[0].match(/:(.*?);/)[1],
  16310. bstr = atob(arr[1]),
  16311. n = bstr.length,
  16312. u8arr = new Uint8Array(n);
  16313. while (n--) {
  16314. u8arr[n] = bstr.charCodeAt(n);
  16315. }
  16316. // return new Blob([u8arr], { type: mime });
  16317. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16318. type: mime,
  16319. });
  16320. },
  16321. async beforeUpload1(event, type, i) {
  16322. // this.$message.success('进入上传')
  16323. var file = "";
  16324. if (type == 5) {
  16325. file = event;
  16326. } else {
  16327. file = event.target.files[0];
  16328. }
  16329. var credentials = {
  16330. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16331. secretAccessKey: "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",
  16332. }; //秘钥形式的登录上传
  16333. window.AWS.config.update(credentials);
  16334. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16335. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16336. var _this = this;
  16337. _this.progress = 0;
  16338. _this.proVisible = true;
  16339. _this.isFinishSize = 0;
  16340. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16341. var b = [
  16342. "DOC",
  16343. "DOCX",
  16344. "DOCM",
  16345. "DOTM",
  16346. "DOTX",
  16347. "PPTX",
  16348. "PPSX",
  16349. "PPT",
  16350. "PPS",
  16351. "PPTM",
  16352. "POTM",
  16353. "PPAM",
  16354. "POTX",
  16355. "PPSM",
  16356. ];
  16357. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16358. var photoA = [
  16359. "BMP",
  16360. "GIF",
  16361. "PNG",
  16362. "JPEG",
  16363. "JPEG",
  16364. "JPG",
  16365. "TIF",
  16366. "PCX",
  16367. "TGA",
  16368. "EXIF",
  16369. "FPX",
  16370. "SVG",
  16371. "APNG",
  16372. ];
  16373. // if (
  16374. // b.indexOf(
  16375. // file.name
  16376. // .split(".")
  16377. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16378. // ) != -1
  16379. // ) {
  16380. // if (file.size / 1024 / 1024 > 10) {
  16381. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16382. // return;
  16383. // }
  16384. // } else if (
  16385. // excelA.indexOf(
  16386. // file.name
  16387. // .split(".")
  16388. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16389. // ) != "-1"
  16390. // ) {
  16391. // if (file.size / 1024 / 1024 > 5) {
  16392. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16393. // return;
  16394. // }
  16395. // }
  16396. if (
  16397. photoA.indexOf(
  16398. file.name
  16399. .split(".")
  16400. [file.name.split(".").length - 1].toLocaleUpperCase()
  16401. ) != -1 &&
  16402. type != 4
  16403. ) {
  16404. // const blob = await imageConversion.compress(file, 0.8)
  16405. file = await this.pngToWhiteBg(file);
  16406. const blob = await imageConversion.compressAccurately(file, 256);
  16407. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16408. file = new File([blob], file.name, { type: file.type });
  16409. }
  16410. if (file) {
  16411. var params = {
  16412. Key:
  16413. file.name.split(".")[0] +
  16414. new Date().getTime() +
  16415. "." +
  16416. file.name.split(".")[file.name.split(".").length - 1],
  16417. ContentType: file.type,
  16418. Body: file,
  16419. "Access-Control-Allow-Credentials": "*",
  16420. ACL: "public-read",
  16421. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16422. var options = {
  16423. // partSize: 2048 * 1024 * 1024,
  16424. partSize: 1024 * 1024 * 1024,
  16425. queueSize: 2,
  16426. leavePartsOnError: true,
  16427. };
  16428. bucket
  16429. .upload(params, options)
  16430. .on("httpUploadProgress", function (evt) {
  16431. //这里可以写进度条
  16432. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16433. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16434. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16435. })
  16436. .send(function (err, data) {
  16437. _this.progress = 100;
  16438. _this.isFinishSize = _this.isAllSize;
  16439. setTimeout(() => {
  16440. _this.proVisible = false;
  16441. }, 1000);
  16442. if (err) {
  16443. var a = _this.$refs.upload1.uploadFiles;
  16444. a.splice(a.length - 1, a.length);
  16445. _this.$message.error("上传失败");
  16446. } else {
  16447. // _this.$message.success('上传成功')
  16448. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16449. var c = [
  16450. "AVI",
  16451. "NAVI",
  16452. "MPEG",
  16453. "ASF",
  16454. "MOV",
  16455. "WMV",
  16456. "3GP",
  16457. "RM",
  16458. "RMVB",
  16459. "FLV",
  16460. "F4V",
  16461. "H.264",
  16462. "H.265",
  16463. "REAL VIDEO",
  16464. "MKV",
  16465. "WebM",
  16466. "HDDVD",
  16467. "MP4",
  16468. "MPG",
  16469. "M4V",
  16470. "MGV",
  16471. "OGV",
  16472. "QTM",
  16473. "STR",
  16474. "AMC",
  16475. "DVX",
  16476. "EVO",
  16477. "DAT",
  16478. "OGG",
  16479. "OGM",
  16480. ];
  16481. if (type == 1) {
  16482. _this.studyJuri[0].cover.push({
  16483. name: file.name,
  16484. url: data.Location,
  16485. uid: file.uid,
  16486. });
  16487. if (
  16488. c.indexOf(
  16489. _this.studyJuri[0].cover[0].url
  16490. .split(".")
  16491. [
  16492. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16493. ].toLocaleUpperCase()
  16494. ) != -1
  16495. ) {
  16496. _this.fileType = 2;
  16497. } else if (
  16498. b.indexOf(
  16499. _this.studyJuri[0].cover[0].url
  16500. .split(".")
  16501. [
  16502. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16503. ].toLocaleUpperCase()
  16504. ) != -1
  16505. ) {
  16506. _this.fileType = 1;
  16507. } else if (
  16508. photoA.indexOf(
  16509. _this.studyJuri[0].cover[0].url
  16510. .split(".")
  16511. [
  16512. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16513. ].toLocaleUpperCase()
  16514. ) != -1
  16515. ) {
  16516. _this.fileType = 0;
  16517. } else {
  16518. _this.fileType = 3;
  16519. }
  16520. _this.imgChange(null, null, type);
  16521. } else if (type == 2) {
  16522. _this.upToolImg = data.Location;
  16523. _this.imgChange(null, null, type);
  16524. _this.addCourseWorks(i);
  16525. } else if (type == 4) {
  16526. _this.addPz("3", data.Location);
  16527. } else if (type == 5) {
  16528. _this.addImgDrawImG(data.Location);
  16529. } else if (type == 6) {
  16530. var _ftype = 1;
  16531. if (
  16532. c.indexOf(
  16533. data.Location.split(".")[
  16534. data.Location.split(".").length - 1
  16535. ].toLocaleUpperCase()
  16536. ) != -1
  16537. ) {
  16538. _ftype = 5;
  16539. } else if (
  16540. b.indexOf(
  16541. data.Location.split(".")[
  16542. data.Location.split(".").length - 1
  16543. ].toLocaleUpperCase()
  16544. ) != -1
  16545. ) {
  16546. _ftype = 4;
  16547. } else {
  16548. _ftype = 1;
  16549. }
  16550. _this.plworkFile.push({
  16551. name: file.name,
  16552. url: data.Location,
  16553. uid: file.uid,
  16554. fileType: _ftype,
  16555. username:
  16556. _this.plworkFile.length > 10
  16557. ? _this.plworkFile.length + 1
  16558. : "0" + (_this.plworkFile.length + 1),
  16559. });
  16560. } else if (type == 7) {
  16561. _this.addCourseWorksGong(i, data.Location, 32);
  16562. } else if (type == 8) {
  16563. _this.addCourseWorksGong(i, data.Location, 57);
  16564. }
  16565. _this.imgChange(null, null, type);
  16566. console.log(data.Location);
  16567. // _this.$message.success('上传成功'+data.Location)
  16568. }
  16569. });
  16570. }
  16571. },
  16572. async beforeUpload3(event, type, i) {
  16573. // this.$message.success('进入上传')
  16574. let file = "";
  16575. let cfindex2 = 0;
  16576. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16577. file = event.target.files[cfindex];
  16578. var credentials = {
  16579. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16580. secretAccessKey: "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",
  16581. }; //秘钥形式的登录上传
  16582. window.AWS.config.update(credentials);
  16583. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16584. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16585. var _this = this;
  16586. // _this.progress = 0;
  16587. _this.proVisible2 = true;
  16588. var b = [
  16589. "DOC",
  16590. "DOCX",
  16591. "DOCM",
  16592. "DOTM",
  16593. "DOTX",
  16594. "PPTX",
  16595. "PPSX",
  16596. "PPT",
  16597. "PPS",
  16598. "PPTM",
  16599. "POTM",
  16600. "PPAM",
  16601. "POTX",
  16602. "PPSM",
  16603. ];
  16604. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16605. var photoA = [
  16606. "BMP",
  16607. "GIF",
  16608. "PNG",
  16609. "JPEG",
  16610. "JPG",
  16611. "TIF",
  16612. "PCX",
  16613. "TGA",
  16614. "EXIF",
  16615. "FPX",
  16616. "SVG",
  16617. "APNG",
  16618. ];
  16619. if (
  16620. photoA.indexOf(
  16621. file.name
  16622. .split(".")
  16623. [file.name.split(".").length - 1].toLocaleUpperCase()
  16624. ) != -1 &&
  16625. type != 4
  16626. ) {
  16627. // const blob = await imageConversion.compress(file, 0.8)
  16628. file = await this.pngToWhiteBg(file);
  16629. const blob = await imageConversion.compressAccurately(file, 256);
  16630. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16631. file = new File([blob], file.name, { type: file.type });
  16632. }
  16633. if (file) {
  16634. var params = {
  16635. Key:
  16636. file.name.split(".")[0] +
  16637. new Date().getTime() +
  16638. "." +
  16639. file.name.split(".")[file.name.split(".").length - 1],
  16640. ContentType: file.type,
  16641. Body: file,
  16642. "Access-Control-Allow-Credentials": "*",
  16643. ACL: "public-read",
  16644. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16645. var options = {
  16646. // partSize: 2048 * 1024 * 1024,
  16647. partSize: 1024 * 1024 * 1024,
  16648. queueSize: 2,
  16649. leavePartsOnError: true,
  16650. };
  16651. bucket
  16652. .upload(params, options)
  16653. .on("httpUploadProgress", function (evt) {
  16654. //这里可以写进度条
  16655. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16656. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16657. })
  16658. .send(function (err, data) {
  16659. // _this.progress = 100;
  16660. cfindex2++;
  16661. setTimeout(() => {
  16662. if (
  16663. cfindex2 == event.target.files.length - 1 ||
  16664. cfindex2 > event.target.files.length - 1
  16665. ) {
  16666. _this.proVisible2 = false;
  16667. }
  16668. }, 1000);
  16669. if (err) {
  16670. var a = _this.$refs.upload1.uploadFiles;
  16671. a.splice(a.length - 1, a.length);
  16672. _this.$message.error("上传失败");
  16673. } else {
  16674. // _this.$message.success('上传成功')
  16675. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16676. var c = [
  16677. "AVI",
  16678. "NAVI",
  16679. "MPEG",
  16680. "ASF",
  16681. "MOV",
  16682. "WMV",
  16683. "3GP",
  16684. "RM",
  16685. "RMVB",
  16686. "FLV",
  16687. "F4V",
  16688. "H.264",
  16689. "H.265",
  16690. "REAL VIDEO",
  16691. "MKV",
  16692. "WebM",
  16693. "HDDVD",
  16694. "MP4",
  16695. "MPG",
  16696. "M4V",
  16697. "MGV",
  16698. "OGV",
  16699. "QTM",
  16700. "STR",
  16701. "AMC",
  16702. "DVX",
  16703. "EVO",
  16704. "DAT",
  16705. "OGG",
  16706. "OGM",
  16707. ];
  16708. if (type == 1) {
  16709. _this.studyJuri[0].cover.push({
  16710. name: file.name,
  16711. url: data.Location,
  16712. uid: file.uid,
  16713. });
  16714. if (
  16715. c.indexOf(
  16716. _this.studyJuri[0].cover[0].url
  16717. .split(".")
  16718. [
  16719. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16720. ].toLocaleUpperCase()
  16721. ) != -1
  16722. ) {
  16723. _this.fileType = 2;
  16724. } else if (
  16725. b.indexOf(
  16726. _this.studyJuri[0].cover[0].url
  16727. .split(".")
  16728. [
  16729. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16730. ].toLocaleUpperCase()
  16731. ) != -1
  16732. ) {
  16733. _this.fileType = 1;
  16734. } else {
  16735. _this.fileType = 0;
  16736. }
  16737. _this.imgChange(null, null, type);
  16738. } else if (type == 2) {
  16739. _this.upToolImg = data.Location;
  16740. _this.imgChange(null, null, type);
  16741. _this.addCourseWorks(i);
  16742. } else if (type == 4) {
  16743. _this.addPz("3", data.Location);
  16744. } else if (type == 5) {
  16745. _this.addImgDrawImG(data.Location);
  16746. } else if (type == 6) {
  16747. var _ftype = 1;
  16748. if (
  16749. c.indexOf(
  16750. data.Location.split(".")[
  16751. data.Location.split(".").length - 1
  16752. ].toLocaleUpperCase()
  16753. ) != -1
  16754. ) {
  16755. _ftype = 5;
  16756. } else if (
  16757. b.indexOf(
  16758. data.Location.split(".")[
  16759. data.Location.split(".").length - 1
  16760. ].toLocaleUpperCase()
  16761. ) != -1
  16762. ) {
  16763. _ftype = 4;
  16764. } else {
  16765. _ftype = 1;
  16766. }
  16767. _this.plworkFile.push({
  16768. name: file.name,
  16769. url: data.Location,
  16770. uid: file.uid,
  16771. fileType: _ftype,
  16772. username:
  16773. _this.plworkFile.length + 1 > 9
  16774. ? _this.plworkFile.length + 1
  16775. : "0" + (_this.plworkFile.length + 1),
  16776. });
  16777. }
  16778. _this.imgChange(null, null, type);
  16779. console.log(data.Location);
  16780. // _this.$message.success('上传成功'+data.Location)
  16781. }
  16782. });
  16783. }
  16784. }
  16785. },
  16786. beforeUpload2(event, type) {
  16787. var file = event.target.files[0];
  16788. var credentials = {
  16789. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16790. secretAccessKey: "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",
  16791. }; //秘钥形式的登录上传
  16792. window.AWS.config.update(credentials);
  16793. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16794. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16795. var _this = this;
  16796. _this.progress = 0;
  16797. _this.proVisible = true;
  16798. if (file) {
  16799. var params = {
  16800. Key:
  16801. file.name.split(".")[0] +
  16802. new Date().getTime() +
  16803. "." +
  16804. file.name.split(".")[file.name.split(".").length - 1],
  16805. ContentType: file.type,
  16806. Body: file,
  16807. "Access-Control-Allow-Credentials": "*",
  16808. ACL: "public-read",
  16809. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16810. var options = {
  16811. partSize: 2048 * 1024 * 1024,
  16812. queueSize: 2,
  16813. leavePartsOnError: true,
  16814. };
  16815. bucket
  16816. .upload(params, options)
  16817. .on("httpUploadProgress", function (evt) {
  16818. //这里可以写进度条
  16819. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16820. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16821. })
  16822. .send(function (err, data) {
  16823. _this.progress = 100;
  16824. setTimeout(() => {
  16825. _this.proVisible = false;
  16826. }, 1000);
  16827. if (err) {
  16828. var a = _this.$refs.upload1.uploadFiles;
  16829. a.splice(a.length - 1, a.length);
  16830. _this.$message.error("上传失败");
  16831. } else {
  16832. if (type == 2) {
  16833. _this.studyJuri[0].upVedio.push({
  16834. name: file.name,
  16835. url: data.Location,
  16836. uid: file.uid,
  16837. });
  16838. _this.imgChange(null, null, type);
  16839. } else if (type == 3) {
  16840. _this.studyJuri[0].upFile.push({
  16841. name: file.name,
  16842. url: data.Location,
  16843. uid: file.uid,
  16844. });
  16845. _this.imgChange(null, null, type);
  16846. }
  16847. console.log(data.Location);
  16848. }
  16849. });
  16850. }
  16851. },
  16852. allScrell() {
  16853. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16854. },
  16855. nextOrpreSteps(t) {
  16856. if (this.IsFollow && this.tType == 2) {
  16857. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16858. return;
  16859. }
  16860. var b = this.chapInfoList.length - 1;
  16861. if (t == 0) {
  16862. if (this.courseType == 0) {
  16863. if (this.taskCount == 0) {
  16864. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16865. if (this.IsLookOpen) {
  16866. if (
  16867. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16868. ) {
  16869. if (
  16870. this.courseDetail.userid != this.userid &&
  16871. (!this.courseDetail.course_teacher ||
  16872. (this.courseDetail.course_teacher &&
  16873. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16874. ) {
  16875. this.$message.error("任务未解锁");
  16876. } else {
  16877. this.$message.error("上一任务未解锁");
  16878. }
  16879. return;
  16880. }
  16881. }
  16882. this.navList[this.courseType].isOpen = false;
  16883. this.courseType = b;
  16884. this.taskCount =
  16885. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16886. .length - 1;
  16887. this.navList[this.courseType].isOpen = true;
  16888. } else {
  16889. this.taskCount--;
  16890. }
  16891. } else {
  16892. if (this.taskCount == 0) {
  16893. this.navList[this.courseType].isOpen = false;
  16894. this.courseType--;
  16895. this.taskCount =
  16896. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16897. .length - 1;
  16898. this.navList[this.courseType].isOpen = true;
  16899. } else {
  16900. this.taskCount--;
  16901. }
  16902. }
  16903. } else {
  16904. if (this.courseType == b) {
  16905. if (
  16906. this.taskCount ==
  16907. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16908. 1
  16909. ) {
  16910. this.navList[this.courseType].isOpen = false;
  16911. this.courseType = 0;
  16912. this.taskCount = 0;
  16913. this.navList[this.courseType].isOpen = true;
  16914. } else {
  16915. var bbb = parseInt(this.taskCount) + 1;
  16916. if (
  16917. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16918. .isLook &&
  16919. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16920. (this.courseDetail.course_teacher &&
  16921. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16922. this.IsLookOpen
  16923. ) {
  16924. this.$message.error("任务未解锁");
  16925. return;
  16926. }
  16927. this.taskCount++;
  16928. if (this.IsLookOpen) {
  16929. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16930. this.taskCount
  16931. ].isLook = true;
  16932. this.addCourseState(3);
  16933. }
  16934. }
  16935. } else {
  16936. if (
  16937. this.taskCount ==
  16938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16939. 1
  16940. ) {
  16941. var bbb = parseInt(this.courseType) + 1;
  16942. if (
  16943. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16944. this.courseDetail.userid != this.userid &&
  16945. (!this.courseDetail.course_teacher ||
  16946. (this.courseDetail.course_teacher &&
  16947. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16948. this.IsLookOpen
  16949. ) {
  16950. this.$message.error("任务未解锁");
  16951. return;
  16952. }
  16953. this.navList[this.courseType].isOpen = false;
  16954. this.courseType++;
  16955. this.taskCount = 0;
  16956. this.navList[this.courseType].isOpen = true;
  16957. } else {
  16958. var bbb = parseInt(this.taskCount) + 1;
  16959. if (
  16960. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16961. .isLook &&
  16962. this.courseDetail.userid != this.userid &&
  16963. (!this.courseDetail.course_teacher ||
  16964. (this.courseDetail.course_teacher &&
  16965. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16966. this.IsLookOpen
  16967. ) {
  16968. this.$message.error("任务未解锁");
  16969. return;
  16970. }
  16971. this.taskCount++;
  16972. }
  16973. if (this.IsLookOpen) {
  16974. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16975. this.taskCount
  16976. ].isLook = true;
  16977. this.addCourseState(3);
  16978. }
  16979. }
  16980. // if (
  16981. // this.taskCount ==
  16982. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16983. // ) {
  16984. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16985. // } else {
  16986. // this.taskCount++;
  16987. // }
  16988. }
  16989. document.scrollingElement.scrollTop = 0;
  16990. this.showType = 7;
  16991. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16992. // if (this.vedio[this.taskCount].length > 0) {
  16993. // var a =
  16994. // document.getElementsByClassName("box_course")[this.taskCount]
  16995. // .offsetHeight;
  16996. // document.getElementsByClassName("vedioList")[
  16997. // this.taskCount
  16998. // ].style.height = a + "px";
  16999. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17000. // a - 40 + "px";
  17001. // }
  17002. this.isNoHomeWork = false;
  17003. (this.studyJuri = [
  17004. {
  17005. content: "",
  17006. cover: [],
  17007. upVedio: [],
  17008. upFile: [],
  17009. },
  17010. ]),
  17011. (this.radio = []);
  17012. this.isClickNav = "";
  17013. this.selectPz();
  17014. this.getHomeWork();
  17015. this.getCourseDetail(2);
  17016. this.$forceUpdate();
  17017. if ((this.courseDetail.userid == this.userid ||
  17018. (this.courseDetail.course_teacher &&
  17019. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17020. this.setCTask();
  17021. }
  17022. },
  17023. openTask(s, n, i,ctype) {
  17024. // 这段代码没用开启了跟随学生侧边栏会隐藏掉
  17025. if (this.IsFollow && this.tType == 2) {
  17026. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17027. return;
  17028. }
  17029. if (this.IsLookOpen &&
  17030. this.courseDetail.userid != this.userid &&
  17031. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17032. if (
  17033. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17034. this.courseDetail.userid != this.userid &&
  17035. (!this.courseDetail.course_teacher ||
  17036. (this.courseDetail.course_teacher &&
  17037. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17038. ) {
  17039. this.$message.error("任务未解锁");
  17040. return;
  17041. }
  17042. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17043. if (
  17044. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17045. .isLook
  17046. ) {
  17047. this.$message.error("上一任务未解锁");
  17048. return;
  17049. }
  17050. } else if (s > this.courseType) {
  17051. if (n > 0) {
  17052. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17053. this.$message.error("上一任务未解锁");
  17054. return;
  17055. }
  17056. } else {
  17057. if (
  17058. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17059. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17060. ].isLook
  17061. ) {
  17062. this.$message.error("上一任务未解锁");
  17063. return;
  17064. }
  17065. }
  17066. }
  17067. }
  17068. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  17069. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17070. return;
  17071. }
  17072. let flag = this.courseType==s;
  17073. this.courseType = s;
  17074. this.navId = i;
  17075. this.taskCount = n;
  17076. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17077. if(ctype == 2){
  17078. this.navList[s].task[n].isOpen = true
  17079. }else{
  17080. this.navList[this.courseType].task[this.taskCount].isOpen =
  17081. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17082. }
  17083. if (this.IsLookOpen) {
  17084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17085. this.taskCount
  17086. ].isLook = true;
  17087. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17088. this.addCourseState(3,yym);
  17089. }
  17090. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17091. this.isCloseList[ci].isClose = 0;
  17092. this.isCloseList[ci].isCloseBoolean = false;
  17093. this.$nextTick(()=>{
  17094. setTimeout(()=>{
  17095. setTimeout(()=>{
  17096. this.panToolHeight('tool-'+ci);
  17097. }, 0)
  17098. }, 0)
  17099. })
  17100. }
  17101. this.showType = 0;
  17102. this.isNoHomeWork = false;
  17103. (this.studyJuri = [
  17104. {
  17105. content: "",
  17106. cover: [],
  17107. upVedio: [],
  17108. upFile: [],
  17109. },
  17110. ]),
  17111. (this.radio = []);
  17112. document.scrollingElement.scrollTop = 0;
  17113. // setTimeout(() => {
  17114. // let a = document.getElementById(i);
  17115. // if (a.offsetTop - 110 == 0) {
  17116. // window.scrollTo(0, 0);
  17117. // } else {
  17118. // window.scrollTo(0, a.offsetTop);
  17119. // }
  17120. // }, 0);
  17121. for (var z = 0; z < this.navList.length; z++) {
  17122. for (var q = 0; q < this.navList[z].task.length; q++) {
  17123. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17124. this.navList[z].task[q].tool[w].isTool = false;
  17125. }
  17126. }
  17127. }
  17128. this.selectPz();
  17129. this.getHomeWork();
  17130. this.getCourseDetail(2);
  17131. if ((this.courseDetail.userid == this.userid ||
  17132. (this.courseDetail.course_teacher &&
  17133. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17134. this.setCTask();
  17135. }
  17136. if(flag){
  17137. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17138. }else{
  17139. 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>`)
  17140. }
  17141. },
  17142. get(i) {
  17143. if (this.IsFollow && this.tType == 2) {
  17144. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17145. return;
  17146. }
  17147. // for(var k=0;k<this.navList.length;k++){
  17148. // this.navList[k].isOpen = false;
  17149. // }
  17150. // this.navList[i].isOpen = true;
  17151. let a = this.navList[i].isOpen
  17152. this.navList[i].isOpen = !this.navList[i].isOpen;
  17153. this.$forceUpdate()
  17154. if (this.navList[i].isOpen) {
  17155. this.openTask(i, 0, (i + "-0"),2);
  17156. }
  17157. },
  17158. addQuestion() {
  17159. this.answerList.push({
  17160. answerTitle: this.answerQ,
  17161. answer: this.questionAnswer,
  17162. });
  17163. let params = [
  17164. {
  17165. uid: this.userid,
  17166. cid: this.id,
  17167. stage: this.courseType,
  17168. task: this.taskCount,
  17169. tool: this.toolindex,
  17170. content: JSON.stringify(this.answerList),
  17171. type: 3,
  17172. },
  17173. ];
  17174. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17175. this.homeWorkLoading = true
  17176. this.ajax
  17177. .post(this.$store.state.api + "addCourseWorks", params)
  17178. .then((res) => {
  17179. this.$message({
  17180. message: "提交成功",
  17181. type: "success",
  17182. });
  17183. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17184. setTimeout(() => {
  17185. this.homeWorkLoading = false
  17186. }, 500);
  17187. this.answerList = [];
  17188. this.answerDialogVisible = false;
  17189. this.selectStudent();
  17190. this.selectSWorks();
  17191. this.selectSLook();
  17192. })
  17193. .catch((err) => {
  17194. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17195. setTimeout(() => {
  17196. this.homeWorkLoading = false
  17197. }, 500);
  17198. this.$message.error("提交失败");
  17199. console.error(err);
  17200. });
  17201. },
  17202. addQuestionTeacher() {
  17203. this.answerList.push({
  17204. answerTitle: this.answerQ,
  17205. answer: this.questionAnswer,
  17206. });
  17207. let params = [
  17208. {
  17209. uid: this.sStudent.userid,
  17210. cid: this.id,
  17211. stage: this.courseType,
  17212. task: this.taskCount,
  17213. tool: this.toolindex,
  17214. content: JSON.stringify(this.answerList),
  17215. type: 3,
  17216. ateacher: this.userid,
  17217. },
  17218. ];
  17219. this.ajax
  17220. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17221. .then((res) => {
  17222. this.$message({
  17223. message: "提交成功",
  17224. type: "success",
  17225. });
  17226. this.answerList = [];
  17227. this.questionAnswer = "";
  17228. this.answerDialogVisibleTeacher = false;
  17229. this.selectStudent();
  17230. this.selectSWorks();
  17231. this.selectSLook();
  17232. })
  17233. .catch((err) => {
  17234. this.$message.error("提交失败");
  17235. console.error(err);
  17236. });
  17237. },
  17238. refreshCourse() {
  17239. // window.location.reload();
  17240. this.navList = [];
  17241. this.getCourseDetail(1);
  17242. },
  17243. getCourseDetail(type, gindex) {
  17244. let loading;
  17245. if (type != 2) {
  17246. loading = this.$loading.service({
  17247. background: "rgba(255, 255, 255, 0.7)",
  17248. target: document.querySelector(".student_table"),
  17249. });
  17250. }
  17251. this.downLoading = false
  17252. // this.navList[0].isOpen = false;
  17253. // this.navList[this.courseType].isOpen = true;
  17254. // this.courseType = this.courseTypeLine;
  17255. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17256. let params = {
  17257. courseId: this.id,
  17258. };
  17259. this.ajax
  17260. .get(this.$store.state.api + "selectCourseDetail3", params)
  17261. .then((res) => {
  17262. if ((this.courseDetail.userid == this.userid ||
  17263. (this.courseDetail.course_teacher &&
  17264. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17265. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17266. }
  17267. if (type != 2) {
  17268. loading.close();
  17269. if (
  17270. this.courseType >
  17271. JSON.parse(res.data[0][0].chapters).length - 1
  17272. ) {
  17273. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17274. }
  17275. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17276. .chapterInfo[0].taskJson;
  17277. var b = [
  17278. "AVI",
  17279. "NAVI",
  17280. "MPEG",
  17281. "ASF",
  17282. "MOV",
  17283. "WMV",
  17284. "3GP",
  17285. "RM",
  17286. "RMVB",
  17287. "FLV",
  17288. "F4V",
  17289. "H.264",
  17290. "H.265",
  17291. "REAL VIDEO",
  17292. "MKV",
  17293. "WebM",
  17294. "HDDVD",
  17295. "MP4",
  17296. "MPG",
  17297. "M4V",
  17298. "MGV",
  17299. "OGV",
  17300. "QTM",
  17301. "STR",
  17302. "AMC",
  17303. "DVX",
  17304. "EVO",
  17305. "DAT",
  17306. "OGG",
  17307. "OGM",
  17308. "MP3",
  17309. ];
  17310. let _chapterData = [];
  17311. for (var i = 0; i < a.length; i++) {
  17312. var c = a[i].chapterData;
  17313. this.vedio[i] = [];
  17314. this.textList[i] = [];
  17315. this.lineList[i] = [];
  17316. this.chapToolList[i] = [];
  17317. this.file[i] = [];
  17318. this.fileC[i] = [];
  17319. _chapterData[i] = c.filter((el) => {
  17320. return el.type != 12;
  17321. });
  17322. this.fileC[i] = c.filter((el) => {
  17323. return el.type == 12;
  17324. });
  17325. if (this.tType == 2) {
  17326. if (this.fileC[i].length) {
  17327. let yym1 = this.fileC[i].filter(e=>{
  17328. if(!converter(e.name).includes(converter("教案"))){
  17329. return e
  17330. }
  17331. })
  17332. this.fileC[i] = yym1
  17333. }
  17334. }
  17335. // else if (c[j].type == 12) {
  17336. // this.fileC[i].push(c[j]);
  17337. // }
  17338. for (var j = 0; j < c.length; j++) {
  17339. if (c[j].type == 7) {
  17340. this.chapToolList[i].push(c[j]);
  17341. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17342. this.lineList[i].push(c[j]);
  17343. } else if (c[j].type == 6) {
  17344. this.textList[i].push(c[j]);
  17345. } else {
  17346. if (
  17347. b.indexOf(
  17348. c[j].url
  17349. .split(".")
  17350. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17351. ) != -1
  17352. ) {
  17353. this.vedio[i].push(c[j]);
  17354. } else {
  17355. this.file[i].push(c[j]);
  17356. }
  17357. }
  17358. }
  17359. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17360. d.sources[0].src =
  17361. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17362. this.playerO[i] = d;
  17363. }
  17364. this.courseDetail = res.data[0][0];
  17365. if(this.tType == 2){
  17366. this.tcid = this.arrayToArray(
  17367. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17368. this.classId ? this.classId.split(",") : []
  17369. ).join(",");
  17370. }else{
  17371. this.tcid = this.arrayToArray(
  17372. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17373. this.tcid2 ? this.tcid2.split(",") : []
  17374. ).join(",");
  17375. }
  17376. this.evalua = res.data[0][0].evaId;
  17377. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17378. this.courseType
  17379. ];
  17380. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17381. if (this.tcid && res.data[1].length) {
  17382. let _inviteA = [];
  17383. for (var ik = 0; ik < res.data[1].length; ik++) {
  17384. _inviteA.push({
  17385. cid: res.data[1][ik].classid,
  17386. ic: res.data[1][ik].code,
  17387. });
  17388. }
  17389. for (var ik = 0; ik < _inviteA.length; ik++) {
  17390. if (
  17391. this.arrayToArray(
  17392. _inviteA[ik].cid.split(","),
  17393. this.tcid.split(",")
  17394. ).length
  17395. ) {
  17396. this.inviteCode = _inviteA[ik].ic;
  17397. break;
  17398. }
  17399. }
  17400. }
  17401. for (var l = 0; l < this.chapInfoList.length; l++) {
  17402. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17403. for (var m = 0; m < w.length; m++) {
  17404. w[m].id = l + "-" + m;
  17405. }
  17406. }
  17407. if (
  17408. _chapterData[this.taskCount].length &&
  17409. _chapterData[this.taskCount][0].type == 2
  17410. ) {
  17411. this.showType = 0;
  17412. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17413. } else {
  17414. if (_chapterData[this.taskCount].length > 0) {
  17415. let _url = _chapterData[this.taskCount][0].url;
  17416. if (
  17417. _chapterData[this.taskCount][0].type == 8 ||
  17418. _chapterData[this.taskCount][0].type == 14 ||
  17419. _chapterData[this.taskCount][0].type == 15
  17420. ) {
  17421. this.showType = 2;
  17422. if (
  17423. _url.indexOf("https://") == -1 &&
  17424. _url.indexOf("http://") == -1
  17425. ) {
  17426. _url = "https://" + _url;
  17427. }
  17428. this.pptImgUrl1 = _url;
  17429. } else if (_chapterData[this.taskCount][0].type == 3) {
  17430. if (
  17431. _url
  17432. .split(".")
  17433. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17434. ) {
  17435. this.showType = 3;
  17436. this.pptImgUrl1 = _url;
  17437. } else if (
  17438. this.isAssetTypeAnImage(
  17439. _url
  17440. .split(".")
  17441. [_url.split(".").length - 1].toLocaleLowerCase()
  17442. )
  17443. ) {
  17444. this.showType = 4;
  17445. this.pptImgUrl1 = _url;
  17446. } else {
  17447. this.showType = 2;
  17448. this.pptImgUrl1 =
  17449. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17450. encodeURIComponent(_url);
  17451. }
  17452. } else if (_chapterData[this.taskCount][0].type == 13) {
  17453. this.showType = 4;
  17454. this.pptImgUrl1 = _url;
  17455. } else if (_chapterData[this.taskCount][0].type == 6) {
  17456. this.showType = 1;
  17457. this.text = this.textList[this.taskCount][0];
  17458. } else if (_chapterData[this.taskCount][0].type == 16) {
  17459. this.showType = 16;
  17460. this.pptImgUrl1 = _url;
  17461. } else if (_chapterData[this.taskCount][0].type == 17) {
  17462. this.showType = 16;
  17463. this.pptImgUrl1 = _url;
  17464. }
  17465. }
  17466. }
  17467. this.isClickNav = 0;
  17468. if (
  17469. !_chapterData[this.taskCount].length ||
  17470. _chapterData[this.taskCount][0].type == 12
  17471. ) {
  17472. this.isClickNav = "";
  17473. this.showType = "";
  17474. }
  17475. if (this.tType == 2) {
  17476. _chapterData.forEach((e,i)=>{
  17477. if (e.length) {
  17478. let yym = e.filter(k=>{
  17479. if(!converter(k.name).includes(converter("教案"))){
  17480. return k
  17481. }
  17482. })
  17483. _chapterData[i] = yym
  17484. }
  17485. })
  17486. }
  17487. this.vChapterData = _chapterData;
  17488. } else {
  17489. this.showType = 0;
  17490. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17491. .chapterInfo[0].taskJson;
  17492. var b = [
  17493. "AVI",
  17494. "NAVI",
  17495. "MPEG",
  17496. "ASF",
  17497. "MOV",
  17498. "WMV",
  17499. "3GP",
  17500. "RM",
  17501. "RMVB",
  17502. "FLV",
  17503. "F4V",
  17504. "H.264",
  17505. "H.265",
  17506. "REAL VIDEO",
  17507. "MKV",
  17508. "WebM",
  17509. "HDDVD",
  17510. "MP4",
  17511. "MPG",
  17512. "M4V",
  17513. "MGV",
  17514. "OGV",
  17515. "QTM",
  17516. "STR",
  17517. "AMC",
  17518. "DVX",
  17519. "EVO",
  17520. "DAT",
  17521. "OGG",
  17522. "OGM",
  17523. "MP3",
  17524. ];
  17525. let _chapterData = [];
  17526. for (var i = 0; i < a.length; i++) {
  17527. var c = a[i].chapterData;
  17528. this.vedio[i] = [];
  17529. this.textList[i] = [];
  17530. this.lineList[i] = [];
  17531. this.chapToolList[i] = [];
  17532. this.file[i] = [];
  17533. this.fileC[i] = [];
  17534. _chapterData[i] = c.filter((el) => {
  17535. return el.type != 12;
  17536. });
  17537. this.fileC[i] = c.filter((el) => {
  17538. return el.type == 12;
  17539. });
  17540. if (this.tType == 2) {
  17541. if (this.fileC[i].length) {
  17542. let yym1 = this.fileC[i].filter(e=>{
  17543. if(!converter(e.name).includes(converter("教案"))){
  17544. return e
  17545. }
  17546. })
  17547. this.fileC[i] = yym1
  17548. }
  17549. }
  17550. for (var j = 0; j < c.length; j++) {
  17551. if (c[j].type == 7) {
  17552. this.chapToolList[i].push(c[j]);
  17553. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17554. this.lineList[i].push(c[j]);
  17555. } else if (c[j].type == 6) {
  17556. this.textList[i].push(c[j]);
  17557. } else {
  17558. if (
  17559. b.indexOf(
  17560. c[j].url
  17561. .split(".")
  17562. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17563. ) != -1
  17564. ) {
  17565. this.vedio[i].push(c[j]);
  17566. } else {
  17567. this.file[i].push(c[j]);
  17568. }
  17569. }
  17570. }
  17571. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17572. d.sources[0].src =
  17573. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17574. this.playerO[i] = d;
  17575. }
  17576. if (
  17577. _chapterData[this.taskCount].length &&
  17578. _chapterData[this.taskCount][0].type == 2
  17579. ) {
  17580. this.showType = 0;
  17581. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17582. } else {
  17583. if (_chapterData[this.taskCount].length > 0) {
  17584. let _url = _chapterData[this.taskCount][0].url;
  17585. if (
  17586. _chapterData[this.taskCount][0].type == 8 ||
  17587. _chapterData[this.taskCount][0].type == 14 ||
  17588. _chapterData[this.taskCount][0].type == 15
  17589. ) {
  17590. this.showType = 2;
  17591. if (
  17592. _url.indexOf("https://") == -1 &&
  17593. _url.indexOf("http://") == -1
  17594. ) {
  17595. _url = "https://" + _url;
  17596. }
  17597. this.pptImgUrl1 = _url;
  17598. } else if (_chapterData[this.taskCount][0].type == 3) {
  17599. if (
  17600. _url
  17601. .split(".")
  17602. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17603. ) {
  17604. this.showType = 3;
  17605. this.pptImgUrl1 = _url;
  17606. } else if (
  17607. this.isAssetTypeAnImage(
  17608. _url
  17609. .split(".")
  17610. [_url.split(".").length - 1].toLocaleLowerCase()
  17611. )
  17612. ) {
  17613. this.showType = 4;
  17614. this.pptImgUrl1 = _url;
  17615. } else {
  17616. this.showType = 2;
  17617. this.pptImgUrl1 =
  17618. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17619. encodeURIComponent(_url);
  17620. }
  17621. } else if (_chapterData[this.taskCount][0].type == 13) {
  17622. this.showType = 4;
  17623. this.pptImgUrl1 = _url;
  17624. } else if (_chapterData[this.taskCount][0].type == 6) {
  17625. this.showType = 1;
  17626. this.text = this.textList[this.taskCount][0];
  17627. } else if (_chapterData[this.taskCount][0].type == 16) {
  17628. this.showType = 16;
  17629. this.pptImgUrl1 = _url;
  17630. } else if (_chapterData[this.taskCount][0].type == 17) {
  17631. this.showType = 16;
  17632. this.pptImgUrl1 = _url;
  17633. }
  17634. }
  17635. }
  17636. this.isClickNav = 0;
  17637. if (
  17638. !_chapterData[this.taskCount].length ||
  17639. _chapterData[this.taskCount][0].type == 12
  17640. ) {
  17641. this.isClickNav = "";
  17642. this.showType = "";
  17643. }
  17644. console.log('_chapterData66666',_chapterData);
  17645. if (this.tType == 2) {
  17646. _chapterData.forEach((e,i)=>{
  17647. if (e.length) {
  17648. let yym = e.filter(k=>{
  17649. if(!converter(k.name).includes(converter("教案"))){
  17650. return k
  17651. }
  17652. })
  17653. _chapterData[i] = yym
  17654. }
  17655. })
  17656. }
  17657. this.vChapterData = _chapterData;
  17658. this.$forceUpdate();
  17659. }
  17660. // else {
  17661. // this.courseDetail = res.data[0][0];
  17662. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17663. // }
  17664. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17665. if (type == 10) {
  17666. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17667. console.log('this.userid',this.userid);
  17668. if (this.courseDetail.userid == this.userid) {
  17669. // 开局关闭学生查看内容
  17670. this.StulookMode(true)
  17671. // 开局打开跟随模式
  17672. this.followingMode(true)
  17673. }
  17674. }
  17675. let _this = this;
  17676. if (_this.timer) {
  17677. clearInterval(_this.timer);
  17678. _this.timer = null;
  17679. }
  17680. if (_this.tcid) {
  17681. _this.getCourseGroup(gindex);
  17682. } else {
  17683. _this.selectSWorks(gindex);
  17684. }
  17685. _this.selectStudent();
  17686. _this.selectSLook();
  17687. _this.getPick();
  17688. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17689. // _this.setCTask();
  17690. // }
  17691. if (_this.dialogVisibleGroup) {
  17692. _this.groupJson =
  17693. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17694. _this.taskCount
  17695. ].toolChoose[_this.toolindex].groupJson;
  17696. }
  17697. _this.$nextTick(() => {
  17698. setTimeout(() => {
  17699. _this.checkEva();
  17700. }, 1000);
  17701. });
  17702. _this.timer = setInterval(function () {
  17703. // _this.getCourseDetail(2);
  17704. if (_this.tcid) {
  17705. _this.getCourseGroup();
  17706. } else {
  17707. _this.selectSWorks();
  17708. }
  17709. _this.selectStudent();
  17710. _this.selectSLook();
  17711. _this.getPick();
  17712. // _this.getSplitScreenData();
  17713. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17714. // _this.setCTask();
  17715. // }
  17716. if (_this.dialogVisibleGroup) {
  17717. _this.groupJson =
  17718. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17719. _this.taskCount
  17720. ].toolChoose[_this.toolindex].groupJson;
  17721. }
  17722. if (_this.tType == 4 || _this.ispzType == 4) {
  17723. _this.selectPz();
  17724. }
  17725. }, 5000);
  17726. if (_this.timer2 == null) {
  17727. _this.timer2 = setInterval(()=> {
  17728. _this.getSplitScreenData();//获取分屏数据
  17729. }, 5000);
  17730. }
  17731. _this.$nextTick(function () {
  17732. setTimeout(() => {
  17733. // var a =
  17734. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17735. // document.getElementsByClassName("vedioList")[0].style.height =
  17736. // a + "px";
  17737. // document.getElementsByClassName("navBox")[0].style.height =
  17738. // a - 40 + "px";
  17739. // if (_this.vedio[_this.taskCount].length > 0) {
  17740. // _this.vedioTime = [];
  17741. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17742. // _this.vedioTime[i] = document.getElementsByClassName(
  17743. // "vjs-duration-display"
  17744. // )[i].textContent;
  17745. // }
  17746. // }
  17747. }, 1000);
  17748. });
  17749. })
  17750. .catch((err) => {
  17751. loading.close();
  17752. console.error(err);
  17753. });
  17754. },
  17755. getCourseGroup(gindex) {
  17756. if(this.getCourseGroupLoading) return
  17757. this.getCourseGroupLoading = true
  17758. let params = {
  17759. cid: this.id,
  17760. classid: this.tcid ? this.tcid : "1",
  17761. };
  17762. this.ajax
  17763. .get(this.$store.state.api + "getCourseGroup", params)
  17764. .then((res) => {
  17765. if (res.data && res.data[0].length) {
  17766. if (!this.isGroup) {
  17767. let courseGroup = JSON.parse(res.data[0][0].group);
  17768. courseGroup.group = courseGroup.group.filter((el) => {
  17769. el.works = [];
  17770. return el;
  17771. });
  17772. if (courseGroup.isopen == 2) {
  17773. this.isGroup = false;
  17774. this.selectSWorks(gindex);
  17775. return;
  17776. }
  17777. this.courseGroup = courseGroup;
  17778. let groupPerson = res.data[1];
  17779. let group = JSON.parse(res.data[0][0].group).group;
  17780. let courseGroupStudent = {};
  17781. let courseGroupStudentUid = {};
  17782. for (var i = 0; i < group.length; i++) {
  17783. courseGroupStudent[group[i].id] = [];
  17784. courseGroupStudentUid[group[i].id] = [];
  17785. for (var j = 0; j < groupPerson.length; j++) {
  17786. if (groupPerson[j].groupCid == group[i].id) {
  17787. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17788. courseGroupStudentUid[group[i].id].push(
  17789. groupPerson[j].userid
  17790. );
  17791. }
  17792. }
  17793. }
  17794. this.courseGroupStudent = courseGroupStudent;
  17795. this.courseGroupStudentUid = courseGroupStudentUid;
  17796. }
  17797. if (this.courseGroup.isopen == 2) {
  17798. this.isGroup = false;
  17799. } else {
  17800. this.isGroup = true;
  17801. }
  17802. this.selectSWorks(gindex);
  17803. } else {
  17804. this.selectSWorks(gindex);
  17805. this.isGroup = false;
  17806. }
  17807. this.getCourseGroupLoading = false
  17808. })
  17809. .catch((err) => {
  17810. this.getCourseGroupLoading = false
  17811. // this.$message.error("网络不佳");
  17812. console.error(err);
  17813. });
  17814. },
  17815. setOperationTime() {
  17816. let _this = this;
  17817. if (_this.opertimer) {
  17818. clearInterval(_this.opertimer);
  17819. _this.opertimer = null;
  17820. }
  17821. _this.opertimer = setInterval(() => {
  17822. _this.setoTime("600");
  17823. }, 600000);
  17824. },
  17825. setoTime(time) {
  17826. let params = [
  17827. {
  17828. uid: this.userid,
  17829. cid: this.id,
  17830. type: "2",
  17831. time: time,
  17832. },
  17833. ];
  17834. this.ajax
  17835. .post(this.$store.state.api + "addOperationTimeT2", params)
  17836. .then((res) => {})
  17837. .catch((err) => {
  17838. console.error(err);
  17839. });
  17840. },
  17841. addPz(type, content) {
  17842. if (type == "1" && this.pzConText == "") {
  17843. this.$message.error("评论不能为空!");
  17844. return;
  17845. }
  17846. let params = [
  17847. {
  17848. cid: this.id,
  17849. uid: this.userid,
  17850. s: this.courseType,
  17851. t: this.taskCount,
  17852. c: type == "1" ? this.pzConText : content,
  17853. type: type,
  17854. },
  17855. ];
  17856. this.ajax
  17857. .post(this.$store.state.api + "addPz2", params)
  17858. .then((res) => {
  17859. this.$message({
  17860. message: "添加成功",
  17861. type: "success",
  17862. });
  17863. this.pzConText = "";
  17864. this.addPzDialog = false;
  17865. this.selectPz();
  17866. if(this.tType!=2){
  17867. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17868. }
  17869. })
  17870. .catch((err) => {
  17871. this.$message.error("添加失败");
  17872. console.error(err);
  17873. });
  17874. },
  17875. setReplyIndex(id, i) {
  17876. this.replyIndex = i;
  17877. this.replyPid = id;
  17878. this.replyDialogVisible = true;
  17879. },
  17880. addHf() {
  17881. if (this.reply == "") {
  17882. this.$message.error("回复不能为空!");
  17883. return;
  17884. }
  17885. let params = [
  17886. {
  17887. cid: this.id,
  17888. uid: this.userid,
  17889. s: this.courseType,
  17890. t: this.taskCount,
  17891. type: "1",
  17892. ct: 2,
  17893. pid: this.replyPid,
  17894. c: this.reply,
  17895. },
  17896. ];
  17897. this.ajax
  17898. .post(this.$store.state.api + "addHf", params)
  17899. .then((res) => {
  17900. this.reply = "";
  17901. this.$message({
  17902. message: "回复成功",
  17903. type: "success",
  17904. });
  17905. this.replyDialogVisible = false;
  17906. this.selectPz();
  17907. })
  17908. .catch((err) => {
  17909. this.$message.error("回复失败");
  17910. console.error(err);
  17911. });
  17912. },
  17913. deletePz(id) {
  17914. this.$confirm("确定删除此评论吗?", "提示", {
  17915. confirmButtonText: "确定",
  17916. cancelButtonText: "取消",
  17917. type: "warning",
  17918. })
  17919. .then(() => {
  17920. let params = [
  17921. {
  17922. id: id,
  17923. },
  17924. ];
  17925. this.ajax
  17926. .post(this.$store.state.api + "deletePz", params)
  17927. .then((res) => {
  17928. this.$message({
  17929. message: "删除成功",
  17930. type: "success",
  17931. });
  17932. this.selectPz();
  17933. })
  17934. .catch((err) => {
  17935. this.$message.error("网络异常");
  17936. console.error(err);
  17937. });
  17938. })
  17939. .catch(() => {});
  17940. },
  17941. deleteReply(id) {
  17942. this.$confirm("确定删除此回复吗?", "提示", {
  17943. confirmButtonText: "确定",
  17944. cancelButtonText: "取消",
  17945. type: "warning",
  17946. })
  17947. .then(() => {
  17948. let params = [
  17949. {
  17950. id: id,
  17951. },
  17952. ];
  17953. this.ajax
  17954. .post(this.$store.state.api + "deleteReply", params)
  17955. .then((res) => {
  17956. this.$message({
  17957. message: "删除成功",
  17958. type: "success",
  17959. });
  17960. this.selectPz();
  17961. })
  17962. .catch((err) => {
  17963. this.$message.error("网络异常");
  17964. console.error(err);
  17965. });
  17966. })
  17967. .catch(() => {});
  17968. },
  17969. setPz() {
  17970. if (this.ispzType == 4) {
  17971. this.ispzType = 0;
  17972. this.pzDialog = false;
  17973. return;
  17974. }
  17975. this.ispzType = 4;
  17976. this.pzDialog = true;
  17977. this.selectPz();
  17978. },
  17979. selectPz() {
  17980. if(this.selectPzLoading) return
  17981. this.selectPzLoading = true
  17982. let params = {
  17983. cid: this.id,
  17984. s: this.courseType,
  17985. t: this.taskCount,
  17986. type: this.pzStype,
  17987. uid: this.userid,
  17988. };
  17989. this.ajax
  17990. .get(this.$store.state.api + "selectPzListType", params)
  17991. .then((res) => {
  17992. this.pzList = res.data[0];
  17993. var a = res.data[1];
  17994. for (var i = 0; i < a.length; i++) {
  17995. for (var j = 0; j < this.pzList.length; j++) {
  17996. if (!this.pzList[j].hfList) {
  17997. this.pzList[j].hfList = [];
  17998. }
  17999. if (a[i].pid == this.pzList[j].id) {
  18000. this.pzList[j].hfList.push(a[i]);
  18001. }
  18002. }
  18003. }
  18004. this.selectPzLoading = false
  18005. })
  18006. .catch((err) => {
  18007. this.selectPzLoading = false
  18008. console.error(err);
  18009. });
  18010. },
  18011. // selectHf() {
  18012. // let params = {
  18013. // cid: this.id,
  18014. // s: this.courseType,
  18015. // t: this.taskCount,
  18016. // };
  18017. // this.ajax
  18018. // .get(this.$store.state.api + "selectHfList", params)
  18019. // .then((res) => {
  18020. // var a = res.data[0];
  18021. // for (var i = 0; i < a.length; i++) {
  18022. // for (var j = 0; j < this.pzList.length; j++) {
  18023. // if (!this.pzList[i].hfList) {
  18024. // this.pzList[i].hfList = [];
  18025. // }
  18026. // if (a[i].pid == this.pzList[j].id) {
  18027. // this.pzList[i].hfList.push(a[i]);
  18028. // }
  18029. // }
  18030. // }
  18031. // })
  18032. // .catch((err) => {
  18033. // console.error(err);
  18034. // });
  18035. // },
  18036. updateSLook() {
  18037. let params = {
  18038. sopen: this.sIsOpen == false ? 1 : 2,
  18039. cid: this.id,
  18040. };
  18041. this.ajax
  18042. .get(this.$store.state.api + "updateCourseSLook", params)
  18043. .then((res) => {
  18044. if (this.sIsOpen == true) {
  18045. this.$message({
  18046. message: "权限设置成功",
  18047. type: "success",
  18048. });
  18049. } else {
  18050. this.$message({
  18051. message: "权限关闭成功",
  18052. type: "success",
  18053. });
  18054. }
  18055. })
  18056. .catch((err) => {
  18057. console.error(err);
  18058. });
  18059. },
  18060. updateIsStulook(){
  18061. let params = [
  18062. {
  18063. sopen: this.IsStulook == false ? 2 : 1,
  18064. cid: this.id
  18065. }
  18066. ];
  18067. this.ajax
  18068. .post(this.$store.state.api + "updateCourseStulook", params)
  18069. .then(res => {
  18070. if (this.IsStulook == true) {
  18071. this.$message({
  18072. message: "学生查看内容资料权限已开启",
  18073. type: "success"
  18074. });
  18075. } else {
  18076. this.$message({
  18077. message: "关闭学生查看内容资料权限",
  18078. type: "success"
  18079. });
  18080. }
  18081. // this.setCTask();
  18082. })
  18083. .catch(err => {
  18084. console.error(err);
  18085. });
  18086. },
  18087. updateFollow() {
  18088. let params = [
  18089. {
  18090. sopen: this.IsFollow == false ? 1 : 2,
  18091. cid: this.id,
  18092. },
  18093. ];
  18094. this.ajax
  18095. .post(this.$store.state.api + "updateCourseFollow", params)
  18096. .then((res) => {
  18097. if (this.IsFollow == true) {
  18098. this.$message({
  18099. message: "跟随模式已开启",
  18100. type: "success",
  18101. });
  18102. } else {
  18103. this.$message({
  18104. message: "跟随模式已关闭",
  18105. type: "success",
  18106. });
  18107. }
  18108. this.setCTask();
  18109. })
  18110. .catch((err) => {
  18111. console.error(err);
  18112. });
  18113. },
  18114. setCTask() {
  18115. let params = [
  18116. {
  18117. sopen: this.courseType + "-" + this.taskCount,
  18118. cid: this.id,
  18119. },
  18120. ];
  18121. this.ajax
  18122. .post(this.$store.state.api + "updateCourseFollowC", params)
  18123. .then((res) => {})
  18124. .catch((err) => {
  18125. console.error(err);
  18126. });
  18127. },
  18128. updateLookOpen() {
  18129. let params = [
  18130. {
  18131. sopen: this.IsLookOpen == false ? 1 : 2,
  18132. cid: this.id,
  18133. },
  18134. ];
  18135. this.ajax
  18136. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18137. .then((res) => {
  18138. if (this.IsLookOpen == true) {
  18139. // if (this.courseType != 0 && this.taskCount != 0) {
  18140. // this.openTask(0, 0, "0-0");
  18141. // }
  18142. this.$message({
  18143. message: "权限设置成功",
  18144. type: "success",
  18145. });
  18146. } else {
  18147. this.$message({
  18148. message: "权限关闭成功",
  18149. type: "success",
  18150. });
  18151. }
  18152. this.getCourseState(2);
  18153. })
  18154. .catch((err) => {
  18155. console.error(err);
  18156. });
  18157. },
  18158. selectSLook() {
  18159. if(this.selectSLookLoading) return
  18160. this.selectSLookLoading = true
  18161. let params = {
  18162. cid: this.id,
  18163. };
  18164. this.ajax
  18165. .get(this.$store.state.api + "selectCourseSLook", params)
  18166. .then((res) => {
  18167. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18168. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18169. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18170. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18171. if (!this.IsLookOpen) {
  18172. this.setNavList();
  18173. }else {
  18174. this.getCourseState(1);
  18175. }
  18176. if ((this.IsFollow && this.tType == 2)) {
  18177. this.setContent2(false);
  18178. let _followC = res.data[0][0].followC.split("-");
  18179. if (
  18180. this.courseType != _followC[0] ||
  18181. this.taskCount != _followC[1]
  18182. ) {
  18183. this.navList[this.courseType].isOpen = false;
  18184. this.courseType = _followC[0];
  18185. this.navList[this.courseType].isOpen = true;
  18186. this.taskCount = parseInt(_followC[1]);
  18187. this.navId = res.data[0][0].followC;
  18188. document.scrollingElement.scrollTop = 0;
  18189. this.getCourseDetail(2);
  18190. }
  18191. }
  18192. this.selectSLookLoading = false
  18193. })
  18194. .catch((err) => {
  18195. this.selectSLookLoading = false
  18196. console.error(err);
  18197. });
  18198. },
  18199. setNavList() {
  18200. if (this.navList.length == 0) {
  18201. this.navList = [];
  18202. var copyList = [];
  18203. for (var l = 0; l < this.chapInfoList.length; l++) {
  18204. var q = this.chapInfoList[l].dyName;
  18205. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18206. var e;
  18207. copyList.push({
  18208. dyName: q,
  18209. isOpen: l === 0 ? true : false,
  18210. task: [],
  18211. });
  18212. for (var r = 0; r < w.length; r++) {
  18213. e = w[r].task;
  18214. if (this.chapInfoList[l].easy == 1) {
  18215. copyList[l].task.push({
  18216. taskName: q,
  18217. id: l + "-" + r,
  18218. isLook: w[r].isLook,
  18219. isOpen: r === 0 ? true : false,
  18220. tool: [],
  18221. });
  18222. } else {
  18223. copyList[l].task.push({
  18224. taskName: e,
  18225. id: l + "-" + r,
  18226. isLook: w[r].isLook,
  18227. isOpen: r === 0 ? true : false,
  18228. tool: [],
  18229. });
  18230. }
  18231. var t = w[r].toolChoose;
  18232. for (var k = 0; k < t.length; k++) {
  18233. var tool = t[k].tool[0];
  18234. copyList[l].task[r].tool.push({
  18235. tool: tool,
  18236. isTool: false,
  18237. });
  18238. }
  18239. // this.navId = this.navId ? this.navId : l + "-" + r;
  18240. // this.navId = l + "-" + r;
  18241. }
  18242. }
  18243. this.navList = copyList;
  18244. this.navList[0].isOpen = false;
  18245. this.navList[this.courseType].isOpen = true;
  18246. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18247. } else {
  18248. this.setNavList2();
  18249. }
  18250. },
  18251. setNavList2() {
  18252. for (var l = 0; l < this.chapInfoList.length; l++) {
  18253. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18254. for (var r = 0; r < w.length; r++) {
  18255. this.navList[l].task[r].isLook = w[r].isLook;
  18256. }
  18257. }
  18258. if (
  18259. this.IsLookOpen &&
  18260. !this.navList[this.courseType].task[this.taskCount].isLook
  18261. ) {
  18262. this.openTask(0, 0, "0-0");
  18263. }
  18264. this.$forceUpdate();
  18265. },
  18266. getCourseState(type) {
  18267. let params = {
  18268. cid: this.id,
  18269. };
  18270. this.ajax
  18271. .get(this.$store.state.api + "getCourseState", params)
  18272. .then((res) => {
  18273. // if (res.data[0].length > 0) {
  18274. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18275. // }
  18276. if (res.data[0].length > 0 && type == 1) {
  18277. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18278. this.setNavList();
  18279. this.$forceUpdate();
  18280. } else if (res.data[0].length > 0 && type == 2) {
  18281. this.addCourseState(2);
  18282. } else {
  18283. // this.addCourseState(1);
  18284. }
  18285. })
  18286. .catch((err) => {
  18287. console.error(err);
  18288. });
  18289. },
  18290. addCourseState(type,val = '') {
  18291. let _state = val ? val : this.chapInfoList;
  18292. // this.courseType this.taskCount
  18293. if (type == 1 || type == 2) {
  18294. for (var i = 0; i < _state.length; i++) {
  18295. let el = _state[i].chapterInfo[0].taskJson;
  18296. for (var j = 0; j < el.length; j++) {
  18297. // if (i == 0 && j == 0) {
  18298. // el[j].isLook = true;
  18299. // } else {
  18300. // el[j].isLook = false;
  18301. // }
  18302. if (
  18303. this.courseType > i ||
  18304. (this.courseType == i && this.taskCount + 1 > j)
  18305. ) {
  18306. el[j].isLook = true;
  18307. } else {
  18308. el[j].isLook = false;
  18309. }
  18310. }
  18311. }
  18312. }
  18313. let params = [
  18314. {
  18315. cid: this.id,
  18316. state: JSON.stringify(_state),
  18317. },
  18318. ];
  18319. // 这两个接口是一样的type无所谓了
  18320. this.ajax
  18321. .post(
  18322. this.$store.state.api +
  18323. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18324. params
  18325. )
  18326. .then((res) => {
  18327. if (this.IsLookOpen) {
  18328. this.setNavList();
  18329. }
  18330. if (type == 3 && type == 2) {
  18331. this.getCourseState(1);
  18332. }
  18333. })
  18334. .catch((err) => {
  18335. console.error(err);
  18336. });
  18337. },
  18338. getHomeWork() {
  18339. let params = {
  18340. cid: this.id,
  18341. stage: this.courseType,
  18342. task: this.taskCount,
  18343. uid: this.userid,
  18344. };
  18345. this.ajax
  18346. .get(this.$store.state.api + "selectWork", params)
  18347. .then((res) => {
  18348. if (res.data[0].length > 0) {
  18349. this.studyJuri = JSON.parse(res.data[0][0].content);
  18350. this.isNoHomeWork = true;
  18351. }
  18352. })
  18353. .catch((err) => {
  18354. console.error(err);
  18355. });
  18356. },
  18357. isAssetTypeAnImage(ext) {
  18358. return (
  18359. [
  18360. "png",
  18361. "jpg",
  18362. "jpeg",
  18363. "bmp",
  18364. "gif",
  18365. "webp",
  18366. "psd",
  18367. "svg",
  18368. "tiff",
  18369. ].indexOf(ext) !== -1
  18370. );
  18371. },
  18372. switchVideo(media) {
  18373. this.playerO = {};
  18374. this.playerOptions.poster = "";
  18375. this.playerOptions.sources[0].src = media;
  18376. this.playerO = this.playerOptions;
  18377. },
  18378. onPlayerPlay() {},
  18379. onPlayerTimeupdate(player) {
  18380. let gklog = player.cache_.currentTime; //当前播放的秒数
  18381. let a = player.cache_.duration; //视频的总时长
  18382. let gklog2 = parseInt(gklog);
  18383. // if(gklog2 == '3'){
  18384. // player.pause()
  18385. // setTimeout(()=>{
  18386. // player.currentTime(gklog2+1)
  18387. // player.play()
  18388. // },1000)
  18389. // }
  18390. console.log(" onPlayerTimeupdate!", gklog);
  18391. console.log(" onPlayerTimeupdate!", gklog2);
  18392. },
  18393. lookVedio(u, i) {
  18394. this.isClickNav = "";
  18395. // this.playerOptions.sources[0].src = u;
  18396. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18397. d.sources[0].src = u;
  18398. this.playerO[this.taskCount] = d;
  18399. this.showType = 0;
  18400. // this.isClickNav = "video" + i;
  18401. this.isClickNav = i;
  18402. this.$forceUpdate();
  18403. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18404. },
  18405. lookText(i, t) {
  18406. this.isClickNav = "";
  18407. // this.text = this.textList[i][t];
  18408. this.text = this.vChapterData[i][t];
  18409. // this.dialogVisible1 = true;
  18410. this.showType = 1;
  18411. // this.isClickNav = "text" + t;
  18412. this.isClickNav = t;
  18413. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18414. },
  18415. lookTools(i, t) {
  18416. this.chapTools = this.chapToolList[i][t];
  18417. this.dialogVisible2 = true;
  18418. },
  18419. async openFile(f,w) {
  18420. this.pptImgUrl = "";
  18421. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18422. if (
  18423. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18424. -1
  18425. ) {
  18426. let _uuurl = await this.checkLink(f);
  18427. this.pptImgUrl =
  18428. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18429. this.showPDF = false;
  18430. this.dialogVisible3 = true;
  18431. } else if (
  18432. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18433. ) {
  18434. this.pptImgUrl = f;
  18435. this.showPDF = true;
  18436. this.dialogVisible3 = true;
  18437. }
  18438. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18439. },
  18440. openTable(f) {
  18441. this.tableJson = JSON.parse(f.works);
  18442. this.dialogVisibleTable2 = true;
  18443. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18444. },
  18445. openWord(f) {
  18446. this.tableJson = JSON.parse(f.works);
  18447. this.dialogVisibleTable3 = true;
  18448. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18449. },
  18450. doUrl(url, i) {
  18451. this.isClickNav = "";
  18452. this.pptImgUrl1 = "";
  18453. this.showType = 2;
  18454. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18455. url = "https://" + url;
  18456. }
  18457. this.pptImgUrl1 = "";
  18458. this.diffKey = new Date().getTime();
  18459. setTimeout(() => {
  18460. this.pptImgUrl1 = url;
  18461. }, 500);
  18462. // this.isClickNav = "line" + i;
  18463. this.isClickNav = i;
  18464. this.$forceUpdate();
  18465. },
  18466. checkPhoto(f, i) {
  18467. this.showType = 4;
  18468. this.pptImgUrl1 = f.url;
  18469. this.isClickNav = i;
  18470. this.$forceUpdate();
  18471. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18472. },
  18473. checkHtml(f, i){
  18474. this.showType = 16;
  18475. this.pptImgUrl1 = f.url;
  18476. this.isClickNav = i;
  18477. this.$forceUpdate();
  18478. },
  18479. async downFile(f, i) {
  18480. this.isClickNav = "";
  18481. this.pptImgUrl1 = "";
  18482. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18483. if (
  18484. a.indexOf(
  18485. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18486. ) != -1
  18487. ) {
  18488. let _uuurl = await this.checkLink(f.url);
  18489. this.pptImgUrl1 =
  18490. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18491. // this.dialogVisible3 = true;
  18492. this.showType = 2;
  18493. } else if (
  18494. this.isAssetTypeAnImage(
  18495. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18496. )
  18497. ) {
  18498. this.showType = 4;
  18499. this.pptImgUrl1 = f.url;
  18500. } else if (
  18501. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18502. "PDF"
  18503. ) {
  18504. this.pptImgUrl1 = f.url;
  18505. // this.dialogVisible3 = true;
  18506. this.showType = 3;
  18507. } else {
  18508. window.open(this.file[i].url);
  18509. }
  18510. // this.isClickNav = "word" + i;
  18511. this.isClickNav = i;
  18512. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18513. },
  18514. downFileList(i) {
  18515. window.open(this.noImgList[i].url);
  18516. },
  18517. openAddWork() {
  18518. this.dialogVisible = true;
  18519. },
  18520. addBzWorks() {
  18521. let params = [
  18522. {
  18523. uid: this.userid,
  18524. cid: this.id,
  18525. stage: this.courseType,
  18526. task: this.taskCount,
  18527. tool: this.toolindex,
  18528. content: JSON.stringify(this.eScore),
  18529. type: 6,
  18530. },
  18531. ];
  18532. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18533. this.homeWorkLoading = true
  18534. this.ajax
  18535. .post(this.$store.state.api + "addCourseWorks", params)
  18536. .then((res) => {
  18537. this.$message({
  18538. message: "提交成功",
  18539. type: "success",
  18540. });
  18541. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18542. setTimeout(() => {
  18543. this.homeWorkLoading = false
  18544. }, 500);
  18545. this.eScore = { eBzText: "", eStar: [] };
  18546. this.studentEvalDialogVisible = false;
  18547. this.selectSWorks();
  18548. })
  18549. .catch((err) => {
  18550. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18551. setTimeout(() => {
  18552. this.homeWorkLoading = false
  18553. }, 500);
  18554. this.$message.error("提交失败");
  18555. console.error(err);
  18556. });
  18557. },
  18558. addBzWorksTeacher() {
  18559. let params = [
  18560. {
  18561. uid: this.sStudent.userid,
  18562. cid: this.id,
  18563. stage: this.courseType,
  18564. task: this.taskCount,
  18565. tool: this.toolindex,
  18566. content: JSON.stringify(this.eScore),
  18567. type: 6,
  18568. },
  18569. ];
  18570. this.ajax
  18571. .post(this.$store.state.api + "addCourseWorks", params)
  18572. .then((res) => {
  18573. this.$message({
  18574. message: "提交成功",
  18575. type: "success",
  18576. });
  18577. this.eScore = { eBzText: "", eStar: [] };
  18578. this.studentEvalDialogVisibleTeacher = false;
  18579. this.selectSWorks();
  18580. })
  18581. .catch((err) => {
  18582. this.$message.error("提交失败");
  18583. console.error(err);
  18584. });
  18585. },
  18586. addStudentAsk() {
  18587. if (!this.radio.length) {
  18588. this.$message.error("请选择选项");
  18589. return;
  18590. }
  18591. for (var i = 0; i < this.askJson.askCount; i++) {
  18592. if (
  18593. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18594. (this.radio[i] !== 0 && !this.radio[i])
  18595. ) {
  18596. this.$message.error("请选择选项");
  18597. return;
  18598. }
  18599. }
  18600. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18601. let params = [
  18602. {
  18603. uid: this.userid,
  18604. cid: this.id,
  18605. stage: this.courseType,
  18606. task: this.taskCount,
  18607. tool: this.toolindex,
  18608. content: JSON.stringify(this.askList),
  18609. type: 2,
  18610. },
  18611. ];
  18612. // console.log('params',params);
  18613. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18614. this.homeWorkLoading = true
  18615. this.ajax
  18616. .post(this.$store.state.api + "addCourseWorks", params)
  18617. .then((res) => {
  18618. this.$message({
  18619. message: "提交成功",
  18620. type: "success",
  18621. });
  18622. setTimeout(() => {
  18623. this.homeWorkLoading = false
  18624. }, 500);
  18625. this.askList = [];
  18626. this.dialogVisible5 = false;
  18627. this.selectStudent();
  18628. this.selectSWorks();
  18629. this.selectSLook();
  18630. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18631. })
  18632. .catch((err) => {
  18633. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18634. setTimeout(() => {
  18635. this.homeWorkLoading = false
  18636. }, 500);
  18637. this.$message.error("提交失败");
  18638. console.error(err);
  18639. });
  18640. },
  18641. addStudentAskTeacher() {
  18642. if (!this.radio.length) {
  18643. this.$message.error("请选择选项");
  18644. return;
  18645. }
  18646. for (var i = 0; i < this.askJson.askCount; i++) {
  18647. if (
  18648. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18649. (this.radio[i] !== 0 && !this.radio[i])
  18650. ) {
  18651. this.$message.error("请选择选项");
  18652. return;
  18653. }
  18654. }
  18655. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18656. let params = [
  18657. {
  18658. uid: this.sStudent.userid,
  18659. cid: this.id,
  18660. stage: this.courseType,
  18661. task: this.taskCount,
  18662. tool: this.toolindex,
  18663. content: JSON.stringify(this.askList),
  18664. type: 2,
  18665. },
  18666. ];
  18667. this.ajax
  18668. .post(this.$store.state.api + "addCourseWorks", params)
  18669. .then((res) => {
  18670. this.$message({
  18671. message: "提交成功",
  18672. type: "success",
  18673. });
  18674. this.askList = [];
  18675. this.dialogVisible5Teacher = false;
  18676. this.selectStudent();
  18677. this.selectSWorks();
  18678. this.selectSLook();
  18679. })
  18680. .catch((err) => {
  18681. this.$message.error("提交失败");
  18682. console.error(err);
  18683. });
  18684. },
  18685. addStudentTest() {
  18686. if (!this.radio.length) {
  18687. this.$message.error("请选择选项");
  18688. return;
  18689. }
  18690. for (var i = 0; i < this.testJson.testCount; i++) {
  18691. if (
  18692. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18693. (this.radio[i] !== 0 && !this.radio[i])
  18694. ) {
  18695. this.$message.error("请选择选项");
  18696. return;
  18697. }
  18698. }
  18699. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18700. let params = [
  18701. {
  18702. uid: this.userid,
  18703. cid: this.id,
  18704. stage: this.courseType,
  18705. task: this.taskCount,
  18706. tool: this.toolindex,
  18707. content: JSON.stringify(this.askList),
  18708. type: 8,
  18709. },
  18710. ];
  18711. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18712. this.homeWorkLoading = true
  18713. this.ajax
  18714. .post(this.$store.state.api + "addCourseWorks", params)
  18715. .then((res) => {
  18716. this.$message({
  18717. message: "提交成功",
  18718. type: "success",
  18719. });
  18720. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18721. setTimeout(() => {
  18722. this.homeWorkLoading = false
  18723. }, 500);
  18724. this.askList = [];
  18725. this.dialogVisibleChoice = false;
  18726. this.selectStudent();
  18727. this.selectSWorks();
  18728. this.selectSLook();
  18729. })
  18730. .catch((err) => {
  18731. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18732. setTimeout(() => {
  18733. this.homeWorkLoading = false
  18734. }, 500);
  18735. this.$message.error("提交失败");
  18736. console.error(err);
  18737. });
  18738. },
  18739. addStudentTestTeacher() {
  18740. if (!this.radio.length) {
  18741. this.$message.error("请选择选项");
  18742. return;
  18743. }
  18744. for (var i = 0; i < this.testJson.testCount; i++) {
  18745. if (
  18746. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18747. (this.radio[i] !== 0 && !this.radio[i])
  18748. ) {
  18749. this.$message.error("请选择选项");
  18750. return;
  18751. }
  18752. }
  18753. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18754. let params = [
  18755. {
  18756. uid: this.sStudent.userid,
  18757. cid: this.id,
  18758. stage: this.courseType,
  18759. task: this.taskCount,
  18760. tool: this.toolindex,
  18761. content: JSON.stringify(this.askList),
  18762. type: 8,
  18763. },
  18764. ];
  18765. this.ajax
  18766. .post(this.$store.state.api + "addCourseWorks", params)
  18767. .then((res) => {
  18768. this.$message({
  18769. message: "提交成功",
  18770. type: "success",
  18771. });
  18772. this.askList = [];
  18773. this.dialogVisibleChoiceTeacher = false;
  18774. this.selectStudent();
  18775. this.selectSWorks();
  18776. this.selectSLook();
  18777. })
  18778. .catch((err) => {
  18779. this.$message.error("提交失败");
  18780. console.error(err);
  18781. });
  18782. },
  18783. addWork() {
  18784. if (this.studyJuri[0].content == "") {
  18785. this.$message.error("请将信息填写完整");
  18786. return;
  18787. } else if (this.studyJuri[0].cover.length == 0) {
  18788. this.$message.error("请将信息填写完整");
  18789. return;
  18790. } else if (this.studyJuri[0].upVedio.length == 0) {
  18791. this.$message.error("请将信息填写完整");
  18792. return;
  18793. }
  18794. if (this.isNoHomeWork) {
  18795. this.$confirm(
  18796. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18797. "提示",
  18798. {
  18799. confirmButtonText: "确定",
  18800. cancelButtonText: "取消",
  18801. type: "warning",
  18802. }
  18803. )
  18804. .then(() => {
  18805. let params = [
  18806. {
  18807. uid: this.userid,
  18808. cid: this.id,
  18809. stage: this.courseType,
  18810. task: this.taskCount,
  18811. content: JSON.stringify(this.studyJuri),
  18812. },
  18813. ];
  18814. this.ajax
  18815. .post(this.$store.state.api + "addWorks", params)
  18816. .then((res) => {
  18817. this.$message({
  18818. message: "提交成功",
  18819. type: "success",
  18820. });
  18821. this.isNoHomeWork = true;
  18822. this.dialogVisible = false;
  18823. })
  18824. .catch((err) => {
  18825. this.$message.error("提交失败");
  18826. console.error(err);
  18827. });
  18828. })
  18829. .catch(() => {});
  18830. } else {
  18831. let params = [
  18832. {
  18833. uid: this.userid,
  18834. cid: this.id,
  18835. stage: this.courseType,
  18836. task: this.taskCount,
  18837. content: JSON.stringify(this.studyJuri),
  18838. },
  18839. ];
  18840. this.ajax
  18841. .post(this.$store.state.api + "addWorks", params)
  18842. .then((res) => {
  18843. this.$message({
  18844. message: "提交成功",
  18845. type: "success",
  18846. });
  18847. this.isNoHomeWork = true;
  18848. this.dialogVisible = false;
  18849. })
  18850. .catch((err) => {
  18851. this.$message.error("提交失败");
  18852. console.error(err);
  18853. });
  18854. }
  18855. },
  18856. selectCount() {
  18857. let params = {
  18858. cid: this.id,
  18859. chid: this.courseType,
  18860. uid: this.userid,
  18861. };
  18862. this.ajax
  18863. .get(this.$store.state.api + "selectToolsCount", params)
  18864. .then((res) => {
  18865. for (var i = 0; i < res.data[0].length; i++) {
  18866. if (res.data[0][i].tools == 1) {
  18867. this.wbCount = res.data[0][i].count;
  18868. } else if (res.data[0][i].tools == 2) {
  18869. this.wordCount = res.data[0][i].count;
  18870. } else if (res.data[0][i].tools == 3) {
  18871. this.mindCount = res.data[0][i].count;
  18872. } else if (res.data[0][i].tools == 4) {
  18873. this.askCount = res.data[0][i].count;
  18874. } else if (res.data[0][i].tools == 6) {
  18875. this.noteCount = res.data[0][i].count;
  18876. } else if (res.data[0][i].tools == 7) {
  18877. this.mindNetWorkCount = res.data[0][i].count;
  18878. } else if (res.data[0][i].tools == 8) {
  18879. this.libraryCount = res.data[0][i].count;
  18880. } else if (res.data[0][i].tools == 16) {
  18881. this.workCount = res.data[0][i].count;
  18882. } else if (res.data[0][i].tools == 10) {
  18883. this.timeCount = res.data[0][i].count;
  18884. } else if (res.data[0][i].tools == 15) {
  18885. this.answerCount = res.data[0][i].count;
  18886. } else if (res.data[0][i].tools == 18) {
  18887. this.trainCount = res.data[0][i].count;
  18888. }
  18889. }
  18890. })
  18891. .catch((err) => {
  18892. console.error(err);
  18893. });
  18894. },
  18895. openTools(t, i, index, c, sName,id) {
  18896. var z = JSON.parse(c);
  18897. this.noteName = sName;
  18898. if (t == 4) {
  18899. this.radio = [];
  18900. this.isAnswer = false;
  18901. let b = z[0].anwer;
  18902. this.radio = b;
  18903. this.askJson = z[0].askJson;
  18904. this.isAnswer = true;
  18905. this.dialogVisible5 = true;
  18906. } else if (t == 45) {
  18907. this.radio = [];
  18908. this.isAnswer = false;
  18909. let b = z[0].anwer;
  18910. this.radio = b;
  18911. this.testJson = z[0].testJson;
  18912. this.isAnswer = true;
  18913. this.dialogVisibleChoice = true;
  18914. }else if(t == 69){
  18915. this.oldEnglishJson1 = {}
  18916. this.oldEnglishJson = {}
  18917. this.englishList1 = {}
  18918. this.newEngIndex = -1;
  18919. this.isNoUserid = false;
  18920. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18921. .toolChoose[i].englishList;
  18922. this.oldEnglishJson = z;
  18923. this.engWid = id;
  18924. this.newEnglishList = { engTitle:"",engText:"" }
  18925. this.newEnglishList1 = []
  18926. this.selectEngC(id,z);
  18927. }else if(t == 62){
  18928. this.videoType = 1;
  18929. this.videoJson = {};
  18930. this.videoJson = JSON.parse(c);
  18931. // this.videoJson =
  18932. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18933. // index
  18934. // ].toolChoose[i].videoJson;
  18935. this.dialogVisibleVideo = true;
  18936. //this.dialog
  18937. }
  18938. // else if (t == 15) {
  18939. // this.answerQ = "";
  18940. // this.questionAnswer = "";
  18941. // this.answerQ = z[0].answerTitle;
  18942. // this.questionAnswer = z[0].answer;
  18943. // this.answerDialogVisible = true;
  18944. // }
  18945. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18946. },
  18947. fastText(p, t) {
  18948. if (t == 1) {
  18949. this.commentText += p;
  18950. } else {
  18951. this.eScore.eBzText += p;
  18952. }
  18953. },
  18954. addTools(t, i, index) {
  18955. var a = 0;
  18956. // this.taskCount = index;
  18957. this.toolindex = i;
  18958. if (t == 1) {
  18959. if (this.wbCount > 0) {
  18960. this.updateCount(this.wbCount, t);
  18961. } else {
  18962. this.wbCount++;
  18963. a = this.wbCount;
  18964. this.toolsCount(a, t);
  18965. }
  18966. window.topU.postMessage(
  18967. {
  18968. tools: "1",
  18969. cid: this.id,
  18970. stage: this.courseType,
  18971. task: this.taskCount,
  18972. tool: i,
  18973. },
  18974. "*"
  18975. );
  18976. } else if (t == 2) {
  18977. if (this.wordCount > 0) {
  18978. this.updateCount(this.wordCount, t);
  18979. } else {
  18980. this.wordCount++;
  18981. a = this.wordCount;
  18982. this.toolsCount(a, t);
  18983. }
  18984. window.topU.postMessage({ tools: "2" }, "*");
  18985. } else if (t == 3) {
  18986. if (this.mindCount > 0) {
  18987. this.updateCount(this.mindCount, t);
  18988. } else {
  18989. this.mindCount++;
  18990. a = this.mindCount;
  18991. this.toolsCount(a, t);
  18992. }
  18993. window.topU.postMessage(
  18994. {
  18995. tools: "3",
  18996. cid: this.id,
  18997. stage: this.courseType,
  18998. task: this.taskCount,
  18999. tool: i,
  19000. },
  19001. "*"
  19002. );
  19003. } else if (t == 4) {
  19004. this.radio = [];
  19005. this.noteName = "";
  19006. this.isAnswer = false;
  19007. if (this.askCount > 0) {
  19008. this.updateCount(this.askCount, t);
  19009. } else {
  19010. this.askCount++;
  19011. a = this.askCount;
  19012. this.toolsCount(a, t);
  19013. }
  19014. if (!this.dialogVisible2) {
  19015. this.askJson.askJson =
  19016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19017. index
  19018. ].toolChoose[i].askJson;
  19019. this.askJson.askTitle =
  19020. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19021. index
  19022. ].toolChoose[i].askTitle;
  19023. this.askJson.askCount =
  19024. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19025. index
  19026. ].toolChoose[i].askCount;
  19027. } else {
  19028. this.askJson.askJson = this.chapTools.askJson.askJson;
  19029. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19030. this.askJson.askCount = this.chapTools.askJson.askCount;
  19031. }
  19032. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19033. if (this.askJson.askJson[k].type == "2") {
  19034. this.radio.push([]);
  19035. } else {
  19036. this.radio.push("");
  19037. }
  19038. }
  19039. this.dialogVisible5 = true;
  19040. // window.topU.postMessage({ tools: "4" }, "*");
  19041. } else if (t == 45) {
  19042. this.noteName = "";
  19043. this.radio = [];
  19044. this.isAnswer = false;
  19045. if (this.askCount > 0) {
  19046. this.updateCount(this.askCount, t);
  19047. } else {
  19048. this.askCount++;
  19049. a = this.askCount;
  19050. this.toolsCount(a, t);
  19051. }
  19052. this.testJson =
  19053. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19054. index
  19055. ].toolChoose[i].testJson;
  19056. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19057. if (this.testJson.testJson[k].type == "2") {
  19058. this.radio.push([]);
  19059. } else {
  19060. this.radio.push("");
  19061. }
  19062. }
  19063. this.dialogVisibleChoice = true;
  19064. // window.topU.postMessage({ tools: "4" }, "*");
  19065. } else if (t == 5) {
  19066. if (this.scoreCount > 0) {
  19067. this.updateCount(this.scoreCount, t);
  19068. } else {
  19069. this.scoreCount++;
  19070. a = this.scoreCount;
  19071. this.toolsCount(a, t);
  19072. }
  19073. this.dialogVisible4 = true;
  19074. // window.topU.postMessage({ tools: "5" }, "*");
  19075. } else if (t == 6) {
  19076. if (this.noteCount > 0) {
  19077. this.updateCount(this.noteCount, t);
  19078. } else {
  19079. this.noteCount++;
  19080. a = this.noteCount;
  19081. this.toolsCount(a, t);
  19082. }
  19083. window.topU.postMessage(
  19084. {
  19085. tools: "6",
  19086. cid: this.id,
  19087. stage: this.courseType,
  19088. task: this.taskCount,
  19089. tool: i,
  19090. },
  19091. "*"
  19092. );
  19093. } else if (t == 7) {
  19094. if (this.mindNetWorkCount > 0) {
  19095. this.updateCount(this.mindNetWorkCount, t);
  19096. } else {
  19097. this.mindNetWorkCount++;
  19098. a = this.mindNetWorkCount;
  19099. this.toolsCount(a, t);
  19100. }
  19101. window.topU.postMessage(
  19102. {
  19103. tools: "7",
  19104. cid: this.id,
  19105. stage: this.courseType,
  19106. task: this.taskCount,
  19107. tool: i,
  19108. },
  19109. "*"
  19110. );
  19111. } else if (t == 16) {
  19112. if (this.workCount > 0) {
  19113. this.updateCount(this.workCount, t);
  19114. } else {
  19115. this.workCount++;
  19116. a = this.workCount;
  19117. this.toolsCount(a, t);
  19118. }
  19119. this.dialogVisible = true;
  19120. } else if (t == 50) {
  19121. if (this.tType == 2) {
  19122. this.$message.error("不支持学生使用");
  19123. return;
  19124. }
  19125. this.plworkFile = [];
  19126. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19127. if (!this.uploadCid) {
  19128. this.$message.error(
  19129. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19130. );
  19131. return;
  19132. }
  19133. // this.uploadCid =
  19134. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19135. // index
  19136. // ].toolChoose[i].uploadJson[0];
  19137. this.selectUploadStudent(2);
  19138. } else if (t == 8) {
  19139. if (this.libraryCount > 0) {
  19140. this.updateCount(this.libraryCount, t);
  19141. } else {
  19142. this.libraryCount++;
  19143. a = this.libraryCount;
  19144. this.toolsCount(a, t);
  19145. }
  19146. window.topU.postMessage({ tools: "8" }, "*");
  19147. } else if (t == 17) {
  19148. if (this.libraryCount > 0) {
  19149. this.updateCount(this.libraryCount, t);
  19150. } else {
  19151. this.libraryCount++;
  19152. a = this.libraryCount;
  19153. this.toolsCount(a, t);
  19154. }
  19155. window.topU.postMessage({ tools: "17" }, "*");
  19156. } else if (t == 18) {
  19157. if (this.trainCount > 0) {
  19158. this.updateCount(this.trainCount, t);
  19159. } else {
  19160. this.trainCount++;
  19161. a = this.trainCount;
  19162. this.toolsCount(a, t);
  19163. }
  19164. window.topU.postMessage({ tools: "18" }, "*");
  19165. } else if (t == 10) {
  19166. if (this.timeCount > 0) {
  19167. this.updateCount(this.timeCount, t);
  19168. } else {
  19169. this.timeCount++;
  19170. a = this.timeCount;
  19171. this.toolsCount(a, t);
  19172. }
  19173. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19174. .taskJson[index].toolChoose[i].preTime
  19175. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19176. .toolChoose[i].preTime
  19177. : "";
  19178. this.timeDialogVisible = true;
  19179. } else if (t == 15) {
  19180. this.answerQ = "";
  19181. this.questionAnswer = "";
  19182. if (this.answerCount > 0) {
  19183. this.updateCount(this.answerCount, t);
  19184. } else {
  19185. this.answerCount++;
  19186. a = this.answerCount;
  19187. this.toolsCount(a, t);
  19188. }
  19189. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19190. .taskJson[index].toolChoose[i].answerQ
  19191. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19192. .toolChoose[i].answerQ
  19193. : "";
  19194. this.answerDialogVisible = true;
  19195. } else if (t == 21) {
  19196. window.topU.postMessage({ tools: "21" }, "*");
  19197. } else if (t == 22) {
  19198. window.topU.postMessage({ tools: "22" }, "*");
  19199. } else if (t == 23) {
  19200. window.topU.postMessage({ tools: "23" }, "*");
  19201. } else if (t == 24) {
  19202. window.topU.postMessage({ tools: "24" }, "*");
  19203. } else if (t == 25) {
  19204. window.topU.postMessage({ tools: "25" }, "*");
  19205. } else if (t == 31) {
  19206. window.topU.postMessage({ tools: "31" }, "*");
  19207. } else if (t == 28) {
  19208. window.topU.postMessage({ tools: "28" }, "*");
  19209. } else if (t == 37) {
  19210. window.topU.postMessage({ tools: "37" }, "*");
  19211. } else if (t == 38) {
  19212. window.topU.postMessage({ tools: "38" }, "*");
  19213. } else if (t == 39) {
  19214. window.topU.postMessage({ tools: "39" }, "*");
  19215. } else if (t == 32) {
  19216. window.topU.postMessage({ tools: "32" }, "*");
  19217. } else if (t == 66) {
  19218. window.topU.postMessage({ tools: "66" }, "*");
  19219. } else if (t == 67) {
  19220. window.topU.postMessage({ tools: "67" }, "*");
  19221. } else if (t == 68) {
  19222. window.topU.postMessage({ tools: "68" }, "*");
  19223. } else if (t == 57) {
  19224. // window.topU.postMessage({ tools: "57" }, "*");
  19225. window.topU.postMessage(
  19226. {
  19227. tools: "57u",
  19228. cid: this.id,
  19229. stage: this.courseType,
  19230. task: this.taskCount,
  19231. tool: i,
  19232. },
  19233. "*"
  19234. );
  19235. } else if (t == 58) {
  19236. window.topU.postMessage({ tools: "58" }, "*");
  19237. } else if (t == 59) {
  19238. window.topU.postMessage({ tools: "59" }, "*");
  19239. } else if (t == 60) {
  19240. window.topU.postMessage({ tools: "60" }, "*");
  19241. } else if (t == 61) {
  19242. window.topU.postMessage({ tools: "61" }, "*");
  19243. } else if (t == 63) {
  19244. window.topU.postMessage({ tools: "63" }, "*");
  19245. } else if (t == 71) {
  19246. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19247. // this.$message.error("该工具不可使用");
  19248. // return
  19249. // }
  19250. window.topU.postMessage({ tools: "71" }, "*");
  19251. } else if (t == 72) {
  19252. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19253. .taskJson[index].toolChoose[i].appJson
  19254. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19255. .toolChoose[i].appJson
  19256. : "";
  19257. if(!item || !item.url){
  19258. this.$message.error("应用连接为空, 请到课程管理中添加");
  19259. return;
  19260. }
  19261. if (!document.fullscreenElement) {
  19262. this.enterFullScreen();
  19263. }
  19264. this.$refs.appStoreC.getData(item.url,this.userid)
  19265. // window.open(item.url, "_blank");
  19266. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19267. } else if (t == 69) {
  19268. if (this.worksStudent[i].length) {
  19269. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19270. if (this.userid == this.worksStudent[i][k].userid) {
  19271. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19272. break;
  19273. } else {
  19274. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19275. }
  19276. }
  19277. } else {
  19278. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19279. }
  19280. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19281. .taskJson[index].toolChoose[i].englishList
  19282. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19283. .toolChoose[i].englishList
  19284. : {};
  19285. this.englishToolIndex = i;
  19286. this.myAnList = this.myAnswerList1;
  19287. this.engDialogVisible = true;
  19288. } else if (t == 70) {
  19289. if (this.worksStudent[i].length) {
  19290. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19291. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19292. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19293. break;
  19294. } else {
  19295. this.englishVoiceJsonWork = [];
  19296. }
  19297. }
  19298. } else {
  19299. this.englishVoiceJsonWork = [];
  19300. }
  19301. let englishVoiceJson = {}
  19302. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19303. .taskJson[index].toolChoose[i].englishVoiceJson
  19304. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19305. .toolChoose[i].englishVoiceJson
  19306. : {};
  19307. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19308. this.EnglishVoiceDialog = true;
  19309. } else if (t == 65) {
  19310. if (this.tType == 2) {
  19311. this.$message.error("不支持学生使用");
  19312. return;
  19313. }
  19314. this.uploadCid = this.tcid;
  19315. if (!this.uploadCid) {
  19316. this.$message.error(
  19317. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19318. );
  19319. return;
  19320. }
  19321. this.selectPickStudent();
  19322. } else if (t == 26) {
  19323. window.topU.postMessage(
  19324. {
  19325. tools: "26",
  19326. cid: this.id,
  19327. stage: this.courseType,
  19328. task: this.taskCount,
  19329. tool: i,
  19330. },
  19331. "*"
  19332. );
  19333. } else if (t == 40) {
  19334. if (this.evalCount > 0) {
  19335. this.updateCount(this.evalCount, t);
  19336. } else {
  19337. this.evalCount++;
  19338. a = this.evalCount;
  19339. this.toolsCount(a, t);
  19340. }
  19341. this.eScore = { eBzText: "", eStar: [] };
  19342. if (this.worksStudent[i].length) {
  19343. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19344. if (this.userid == this.worksStudent[i][k].userid) {
  19345. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19346. this.rateJson =
  19347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19348. index
  19349. ].toolChoose[i].rateJson;
  19350. break;
  19351. } else {
  19352. this.rateJson =
  19353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19354. index
  19355. ].toolChoose[i].rateJson;
  19356. }
  19357. }
  19358. } else {
  19359. this.rateJson =
  19360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19361. index
  19362. ].toolChoose[i].rateJson;
  19363. }
  19364. this.isStar = false;
  19365. this.studentEvalDialogVisible = true;
  19366. } else if (t == 41) {
  19367. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19368. .taskJson[index].toolChoose[i].selectJson
  19369. ? JSON.parse(
  19370. JSON.stringify(
  19371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19372. index
  19373. ].toolChoose[i].selectJson
  19374. )
  19375. )
  19376. : { url: "", select: [], answer: [] };
  19377. if (this.worksStudent[i].length) {
  19378. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19379. if (this.userid == this.worksStudent[i][k].userid) {
  19380. var a = this.worksStudent[i][k].works.split(",");
  19381. for (var ki = 0; ki < a.length; ki++) {
  19382. a[ki] = parseInt(a[ki]);
  19383. }
  19384. this.selectAnswer = {
  19385. answer: a,
  19386. stu: this.worksStudent[i][k].sName,
  19387. };
  19388. break;
  19389. } else {
  19390. this.selectAnswer = { answer: [], stu: "" };
  19391. }
  19392. }
  19393. } else {
  19394. this.selectAnswer = { answer: [], stu: "" };
  19395. }
  19396. this.isSelect = false;
  19397. this.dialogVisibleSelect = true;
  19398. } else if (t == 44) {
  19399. window.topU.postMessage({ tools: "44" }, "*");
  19400. } else if (t == 47) {
  19401. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19402. .taskJson[index].toolChoose[i].sentenceList
  19403. ? JSON.parse(
  19404. JSON.stringify(
  19405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19406. index
  19407. ].toolChoose[i].sentenceList
  19408. )
  19409. )
  19410. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19411. for (var q = 0; q < this.sentenceList.length; q++) {
  19412. this.sentenceList[q].chooseSenList = [];
  19413. this.sentenceList[q].addChangeSen = [];
  19414. this.sentenceList[q].addChangeSen = JSON.parse(
  19415. JSON.stringify(this.sentenceList[q].addSentence)
  19416. );
  19417. this.sentenceList[q].chooseSenList.length =
  19418. this.sentenceList[q].rightAnswer.length;
  19419. }
  19420. this.dialogVisibleSentence = true;
  19421. } else if (t == 48) {
  19422. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19423. .taskJson[index].toolChoose[i].tableJson
  19424. ? JSON.parse(
  19425. JSON.stringify(
  19426. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19427. index
  19428. ].toolChoose[i].tableJson
  19429. )
  19430. )
  19431. : { text: "" };
  19432. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19433. if (this.worksStudent[i].length) {
  19434. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19435. if (this.userid == this.worksStudent[i][k].userid) {
  19436. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19437. break;
  19438. }
  19439. }
  19440. }
  19441. this.dialogVisibleTable = true;
  19442. } else if (t == 52) {
  19443. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19444. .taskJson[index].toolChoose[i].wordJson
  19445. ? JSON.parse(
  19446. JSON.stringify(
  19447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19448. index
  19449. ].toolChoose[i].wordJson
  19450. )
  19451. )
  19452. : { text: "" };
  19453. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19454. if (this.worksStudent[i].length) {
  19455. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19456. if (this.userid == this.worksStudent[i][k].userid) {
  19457. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19458. break;
  19459. }
  19460. }
  19461. }
  19462. this.dialogVisibleWord = true;
  19463. } else if (t == 49) {
  19464. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19465. return
  19466. }
  19467. this.groupJson =
  19468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19469. index
  19470. ].toolChoose[i].groupJson;
  19471. this.islock = this.groupJson.islock == 1 ? true : false;
  19472. this.dialogVisibleGroup = true;
  19473. } else if (t == 62) {
  19474. this.videoType = 0;
  19475. this.videoJson = {};
  19476. this.videoJson =
  19477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19478. index
  19479. ].toolChoose[i].videoJson;
  19480. this.dialogVisibleVideo = true;
  19481. }
  19482. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19483. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19484. },
  19485. teacherWorkSubmit(t, i, index, s) {
  19486. console.log('t',t);
  19487. if(t == 72) return
  19488. this.sStudent = s;
  19489. this.toolindex = i;
  19490. this.sTool = t;
  19491. if (this.tType !== "1" && this.tType !== "4") {
  19492. return;
  19493. }
  19494. if (t == 16 || t == 32 || t == 50) {
  19495. this.dialogVisibleWorks = true;
  19496. } else if (t == 15) {
  19497. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19498. .taskJson[index].toolChoose[i].answerQ
  19499. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19500. .toolChoose[i].answerQ
  19501. : "";
  19502. this.questionAnswer = "";
  19503. this.answerDialogVisibleTeacher = true; //问答
  19504. } else if (t == 52) {
  19505. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19506. .taskJson[index].toolChoose[i].wordJson
  19507. ? JSON.parse(
  19508. JSON.stringify(
  19509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19510. index
  19511. ].toolChoose[i].wordJson
  19512. )
  19513. )
  19514. : { text: "" };
  19515. if (this.worksStudent[i].length) {
  19516. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19517. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19518. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19519. break;
  19520. }
  19521. }
  19522. }
  19523. this.dialogVisibleWordTeacher = true; //文档
  19524. } else if (t == 4) {
  19525. this.radio = [];
  19526. this.noteName = "";
  19527. this.isAnswer = false;
  19528. if (this.askCount > 0) {
  19529. this.updateCount(this.askCount, t);
  19530. } else {
  19531. this.askCount++;
  19532. a = this.askCount;
  19533. this.toolsCount(a, t);
  19534. }
  19535. if (!this.dialogVisible2) {
  19536. this.askJson.askJson =
  19537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19538. index
  19539. ].toolChoose[i].askJson;
  19540. this.askJson.askTitle =
  19541. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19542. index
  19543. ].toolChoose[i].askTitle;
  19544. this.askJson.askCount =
  19545. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19546. index
  19547. ].toolChoose[i].askCount;
  19548. } else {
  19549. this.askJson.askJson = this.chapTools.askJson.askJson;
  19550. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19551. this.askJson.askCount = this.chapTools.askJson.askCount;
  19552. }
  19553. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19554. if (this.askJson.askJson[k].type == "2") {
  19555. this.radio.push([]);
  19556. } else {
  19557. this.radio.push("");
  19558. }
  19559. }
  19560. this.dialogVisible5Teacher = true;
  19561. } else if (t == 45) {
  19562. this.noteName = "";
  19563. this.radio = [];
  19564. this.isAnswer = false;
  19565. if (this.askCount > 0) {
  19566. this.updateCount(this.askCount, t);
  19567. } else {
  19568. this.askCount++;
  19569. a = this.askCount;
  19570. this.toolsCount(a, t);
  19571. }
  19572. this.testJson =
  19573. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19574. index
  19575. ].toolChoose[i].testJson;
  19576. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19577. if (this.testJson.testJson[k].type == "2") {
  19578. this.radio.push([]);
  19579. } else {
  19580. this.radio.push("");
  19581. }
  19582. }
  19583. this.dialogVisibleChoiceTeacher = true;
  19584. } else if (t == 41) {
  19585. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19586. .taskJson[index].toolChoose[i].selectJson
  19587. ? JSON.parse(
  19588. JSON.stringify(
  19589. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19590. index
  19591. ].toolChoose[i].selectJson
  19592. )
  19593. )
  19594. : { url: "", select: [], answer: [] };
  19595. if (this.worksStudent[i].length) {
  19596. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19597. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19598. var a = this.worksStudent[i][k].works.split(",");
  19599. for (var ki = 0; ki < a.length; ki++) {
  19600. a[ki] = parseInt(a[ki]);
  19601. }
  19602. this.selectAnswer = {
  19603. answer: a,
  19604. stu: this.worksStudent[i][k].sName,
  19605. };
  19606. break;
  19607. } else {
  19608. this.selectAnswer = { answer: [], stu: "" };
  19609. }
  19610. }
  19611. } else {
  19612. this.selectAnswer = { answer: [], stu: "" };
  19613. }
  19614. this.isSelect = false;
  19615. this.dialogVisibleSelectTeacher = true;
  19616. } else if (t == 47) {
  19617. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19618. .taskJson[index].toolChoose[i].sentenceList
  19619. ? JSON.parse(
  19620. JSON.stringify(
  19621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19622. index
  19623. ].toolChoose[i].sentenceList
  19624. )
  19625. )
  19626. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19627. for (var q = 0; q < this.sentenceList.length; q++) {
  19628. this.sentenceList[q].chooseSenList = [];
  19629. this.sentenceList[q].addChangeSen = [];
  19630. this.sentenceList[q].addChangeSen = JSON.parse(
  19631. JSON.stringify(this.sentenceList[q].addSentence)
  19632. );
  19633. this.sentenceList[q].chooseSenList.length =
  19634. this.sentenceList[q].rightAnswer.length;
  19635. }
  19636. this.dialogVisibleSentenceTeacher = true;
  19637. } else if (t == 48) {
  19638. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19639. .taskJson[index].toolChoose[i].tableJson
  19640. ? JSON.parse(
  19641. JSON.stringify(
  19642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19643. index
  19644. ].toolChoose[i].tableJson
  19645. )
  19646. )
  19647. : { text: "" };
  19648. if (this.worksStudent[i].length) {
  19649. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19650. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19651. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19652. break;
  19653. }
  19654. }
  19655. }
  19656. this.dialogVisibleTableTeacher = true;
  19657. } else if (t == 40) {
  19658. if (this.evalCount > 0) {
  19659. this.updateCount(this.evalCount, t);
  19660. } else {
  19661. this.evalCount++;
  19662. a = this.evalCount;
  19663. this.toolsCount(a, t);
  19664. }
  19665. this.eScore = { eBzText: "", eStar: [] };
  19666. if (this.worksStudent[i].length) {
  19667. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19668. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19669. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19670. this.rateJson =
  19671. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19672. index
  19673. ].toolChoose[i].rateJson;
  19674. break;
  19675. } else {
  19676. this.rateJson =
  19677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19678. index
  19679. ].toolChoose[i].rateJson;
  19680. }
  19681. }
  19682. } else {
  19683. this.rateJson =
  19684. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19685. index
  19686. ].toolChoose[i].rateJson;
  19687. }
  19688. this.isStar = false;
  19689. this.studentEvalDialogVisibleTeacher = true;
  19690. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19691. window.topU.postMessage(
  19692. {
  19693. tools: t + "teacher",
  19694. cid: this.id,
  19695. stage: this.courseType,
  19696. task: this.taskCount,
  19697. tool: i,
  19698. student: this.sStudent,
  19699. },
  19700. "*"
  19701. );
  19702. }else if (t == 72) {
  19703. if (!document.fullscreenElement) {
  19704. this.enterFullScreen();
  19705. }
  19706. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19707. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19708. }
  19709. },
  19710. openCocoPi(tool, i, uid, uname) {
  19711. let student = {
  19712. userid: uid,
  19713. student: uname,
  19714. };
  19715. if (tool == 57) {
  19716. window.topU.postMessage(
  19717. {
  19718. tools: tool + "teacher",
  19719. cid: this.id,
  19720. stage: this.courseType,
  19721. task: this.taskCount,
  19722. tool: i,
  19723. student: student,
  19724. },
  19725. "*"
  19726. );
  19727. }
  19728. },
  19729. setRightAnswer(s, i, j) {
  19730. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19731. if (
  19732. this.sentenceList[i].chooseSenList[q] == undefined ||
  19733. this.sentenceList[i].chooseSenList[q] == ""
  19734. ) {
  19735. this.sentenceList[i].chooseSenList[q] = s;
  19736. this.sentenceList[i].addChangeSen[j] = "";
  19737. break;
  19738. }
  19739. }
  19740. this.$forceUpdate();
  19741. },
  19742. returnCard(r, i, j) {
  19743. var a = this.sentenceList[i].addSentence.indexOf(r);
  19744. this.sentenceList[i].chooseSenList[j] = "";
  19745. this.sentenceList[i].addChangeSen[a] = r;
  19746. this.$forceUpdate();
  19747. },
  19748. // addSentenceTool() {
  19749. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19750. // this.taskCount
  19751. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19752. // this.sentenceList = [
  19753. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19754. // ];
  19755. // this.dialogVisibleSentence = false;
  19756. // },
  19757. toolsCount(a, t) {
  19758. let params = {
  19759. cid: this.id,
  19760. chid: this.courseType,
  19761. uid: this.userid,
  19762. tid: t,
  19763. count: a,
  19764. };
  19765. this.ajax
  19766. .get(this.$store.state.api + "insertToolsCount", params)
  19767. .then((res) => {
  19768. this.selectCount();
  19769. })
  19770. .catch((err) => {
  19771. console.error(err);
  19772. });
  19773. },
  19774. updateCount(c, t) {
  19775. c++;
  19776. let params = {
  19777. cid: this.id,
  19778. chid: this.courseType,
  19779. uid: this.userid,
  19780. tid: t,
  19781. count: c,
  19782. };
  19783. this.ajax
  19784. .get(this.$store.state.api + "updateToolsCount", params)
  19785. .then((res) => {
  19786. this.selectCount();
  19787. })
  19788. .catch((err) => {
  19789. console.error(err);
  19790. });
  19791. },
  19792. checkEva() {
  19793. if (this.evalua != "") {
  19794. for (var i = 0; i < this.evaJuri.length; i++) {
  19795. if (this.evalua == this.evaJuri[i].id) {
  19796. this.eTitle = this.evaJuri[i].title;
  19797. this.eJson = JSON.parse(this.evaJuri[i].content);
  19798. }
  19799. }
  19800. this.$forceUpdate();
  19801. setTimeout(() => {
  19802. this.setMindData();
  19803. }, 0);
  19804. }
  19805. },
  19806. selectEva() {
  19807. let params = {
  19808. oid: this.oid,
  19809. };
  19810. this.ajax
  19811. .get(this.$store.state.api + "selectAllEvaluation", params)
  19812. .then((res) => {
  19813. this.evaJuri = res.data[0];
  19814. })
  19815. .catch((err) => {
  19816. console.error(err);
  19817. });
  19818. },
  19819. setMindData() {
  19820. this.data.data = [];
  19821. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19822. let _eJson = Object.keys(this.eJson);
  19823. let _e = this.eJson;
  19824. for (let i = 0; i < _eJson.length; i++) {
  19825. let element = _e[_eJson[i]];
  19826. this.data.data.push({
  19827. id: element.id,
  19828. parentid: "root",
  19829. topic: element.name,
  19830. });
  19831. let _eJsonc = Object.keys(element.child);
  19832. let _e2 = element.child;
  19833. for (let j = 0; j < _eJsonc.length; j++) {
  19834. let _ec = _e2[_eJsonc[j]];
  19835. this.data.data.push({
  19836. id: _ec.id,
  19837. parentid: element.id,
  19838. topic: _ec.name,
  19839. });
  19840. let _eJsonz = Object.keys(_ec.child);
  19841. let _e3 = _ec.child;
  19842. for (let z = 0; z < _eJsonz.length; z++) {
  19843. let _ez = _e3[_eJsonz[z]];
  19844. this.data.data.push({
  19845. id: _ez.id,
  19846. parentid: _ec.id,
  19847. topic: _ez.name,
  19848. });
  19849. }
  19850. }
  19851. }
  19852. this.$forceUpdate();
  19853. },
  19854. checkFileFull(type, url) {
  19855. this.fullDialogVisible = true;
  19856. this.fulltype = type;
  19857. this.fullUrl = url;
  19858. },
  19859. async checkFileFull1(t, f) {
  19860. this.fullDialogVisible = true;
  19861. if (t == 6) {
  19862. this.fulltype = 1;
  19863. this.fullUrl = JSON.parse(JSON.stringify(f));
  19864. } else if (t == 8 ) {
  19865. this.fulltype = 2;
  19866. this.fullUrl = f.url;
  19867. }else if (t == 15) {
  19868. this.diffKey = new Date().getTime();
  19869. this.fulltype = 4;
  19870. this.fullUrl = f.url;
  19871. } else if (t == 16) {
  19872. this.fulltype = 16;
  19873. this.fullUrl = f.url;
  19874. } else if (
  19875. t == 3 &&
  19876. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19877. "PDF"
  19878. ) {
  19879. this.fulltype = 3;
  19880. this.fullUrl = f.url;
  19881. } else if (t == 3) {
  19882. this.fulltype = 2;
  19883. let _uuurl = await this.checkLink(f.url);
  19884. this.fullUrl =
  19885. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19886. }
  19887. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19888. },
  19889. openSname(n, id, i, uid) {
  19890. this.snameWid = id;
  19891. this.worksSName = n;
  19892. this.worksSid = uid == n ? "" : uid;
  19893. this.toolindex = i;
  19894. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19895. if (!this.uploadCid) {
  19896. this.$message.error(
  19897. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19898. );
  19899. return;
  19900. }
  19901. this.selectUploadStudent(1);
  19902. },
  19903. updateName() {
  19904. let params = {
  19905. n: this.worksSName,
  19906. cid: this.snameWid,
  19907. };
  19908. this.ajax
  19909. .get(this.$store.state.api + "updateCourseWorksName", params)
  19910. .then((res) => {
  19911. this.$message({
  19912. message: "修改成功",
  19913. type: "success",
  19914. });
  19915. this.dialogVisibleSname = false;
  19916. this.getCourseDetail(2);
  19917. this.snameWid = "";
  19918. this.worksSName = "";
  19919. })
  19920. .catch((err) => {
  19921. console.error(err);
  19922. });
  19923. },
  19924. downloadFile2(f) {
  19925. // const loading = this.$loading.service({
  19926. // background: "rgba(255, 255, 255, 0.7)",
  19927. // target: document.body,
  19928. // text: "文件加载中...",
  19929. // });
  19930. // let url2 = f.url;
  19931. // let _url2 = "";
  19932. // if (
  19933. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19934. // ) {
  19935. // _url2 = url2.split(
  19936. // "https://view.officeapps.live.com/op/view.aspx?src="
  19937. // )[1];
  19938. // } else {
  19939. // _url2 = url2;
  19940. // }
  19941. // let params = {
  19942. // url: _url2,
  19943. // name: f.name,
  19944. // };
  19945. // this.ajax
  19946. // .get(this.$store.state.api + "download", params)
  19947. // .then((res) => {
  19948. // loading.close();
  19949. // let content = res.data.data.data;
  19950. // let ab = new ArrayBuffer(content.length);
  19951. // let view = new Uint8Array(ab);
  19952. // for (var i = 0; i < content.length; ++i) {
  19953. // view[i] = content[i];
  19954. // }
  19955. // let elink = document.createElement("a");
  19956. // elink.download = f.name;
  19957. // elink.style.display = "none";
  19958. // let blob = new Blob([ab], {
  19959. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19960. // });
  19961. // elink.href = URL.createObjectURL(blob);
  19962. // document.body.appendChild(elink);
  19963. // elink.click();
  19964. // document.body.removeChild(elink);
  19965. // })
  19966. // .catch((err) => {
  19967. // loading.close();
  19968. // console.error(err);
  19969. // });
  19970. var credentials = {
  19971. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19972. secretAccessKey: "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",
  19973. }; //秘钥形式的登录上传
  19974. window.AWS.config.update(credentials);
  19975. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19976. let url2 = f.url;
  19977. let _url2 = "";
  19978. if (
  19979. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19980. ) {
  19981. _url2 = url2.split(
  19982. "https://view.officeapps.live.com/op/view.aspx?src="
  19983. )[1];
  19984. } else {
  19985. _url2 = url2;
  19986. }
  19987. let _this = this;
  19988. _this.downLoading = true
  19989. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19990. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19991. var params = {
  19992. Bucket: "ccrb",
  19993. Key: name
  19994. };
  19995. s3.getObject(params, function (err, data) {
  19996. _this.downLoading = false
  19997. if (err) console.log(err, err.stack); // an error occurred
  19998. else {
  19999. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20000. let a = document.createElement("a");
  20001. a.name = f.name;
  20002. a.href = url;
  20003. a.download = f.name;
  20004. a.click();
  20005. console.log(data);
  20006. } // sxuccessful response
  20007. });
  20008. return;
  20009. let url = f.url;
  20010. let _url = "";
  20011. if (
  20012. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20013. ) {
  20014. _url = url.split(
  20015. "https://view.officeapps.live.com/op/view.aspx?src="
  20016. )[1];
  20017. } else {
  20018. _url = url;
  20019. }
  20020. _this.downLoading = true
  20021. let x = new XMLHttpRequest();
  20022. x.open("GET", _url, true);
  20023. x.responseType = "blob";
  20024. x.onload = function () {
  20025. _this.downLoading = false
  20026. let url = window.URL.createObjectURL(new Blob([x.response]));
  20027. let a = document.createElement("a");
  20028. a.name = f.name;
  20029. a.href = url;
  20030. a.download = f.name;
  20031. a.click();
  20032. };
  20033. x.send();
  20034. },
  20035. downloadFile(url,uid) {
  20036. if (this.tType == 1 || this.userid == uid) {
  20037. // this.$message.info("查看作业-下载文件")
  20038. var credentials = {
  20039. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20040. secretAccessKey: "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",
  20041. }; //秘钥形式的登录上传
  20042. window.AWS.config.update(credentials);
  20043. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20044. let url2 = url;
  20045. let _url2 = "";
  20046. if (
  20047. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20048. ) {
  20049. _url2 = url2.split(
  20050. "https://view.officeapps.live.com/op/view.aspx?src="
  20051. )[1];
  20052. } else {
  20053. _url2 = url2;
  20054. }
  20055. const loading2 = this.$loading.service({
  20056. background: "rgba(255, 255, 255, 0.7)",
  20057. target: document.body,
  20058. text: "文件加载中...",
  20059. });
  20060. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20061. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20062. var params = {
  20063. Bucket: "ccrb",
  20064. Key: name
  20065. };
  20066. s3.getObject(params, function (err, data) {
  20067. loading2.close();
  20068. if (err) console.log(err, err.stack); // an error occurred
  20069. else {
  20070. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20071. let a = document.createElement("a");
  20072. a.name = name;
  20073. a.href = url;
  20074. a.download = name;
  20075. a.click();
  20076. console.log(data);
  20077. } // sxuccessful response
  20078. });
  20079. }
  20080. return;
  20081. let _this = this;
  20082. let _url = "";
  20083. if (
  20084. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20085. ) {
  20086. _url = url.split(
  20087. "https://view.officeapps.live.com/op/view.aspx?src="
  20088. )[1];
  20089. } else {
  20090. _url = url;
  20091. }
  20092. const x = new XMLHttpRequest();
  20093. x.open("GET", _url, true);
  20094. x.responseType = "blob";
  20095. // this.downLoading = true
  20096. const loading = _this.$loading.service({
  20097. background: "rgba(255, 255, 255, 0.7)",
  20098. target: document.body,
  20099. text: "文件加载中...",
  20100. });
  20101. // _this.$message.success("文件下载中...");
  20102. x.onload = function (e) {
  20103. loading.close();
  20104. let content = x.response;
  20105. let elink = document.createElement("a");
  20106. elink.download = decodeURI(
  20107. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20108. );
  20109. elink.style.display = "none";
  20110. let blob = new Blob([content]);
  20111. elink.href = URL.createObjectURL(blob);
  20112. document.body.appendChild(elink);
  20113. elink.click();
  20114. document.body.removeChild(elink);
  20115. };
  20116. x.send();
  20117. },
  20118. openLine(url) {
  20119. window.open(url);
  20120. },
  20121. resize() {
  20122. if (document.getElementsByClassName("box_course").length) {
  20123. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20124. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20125. if (this.showType == 2 || this.showType == 3) {
  20126. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20127. document.getElementsByClassName("navBox")[0].style.height =
  20128. a - 40 + 0+ "px";
  20129. }
  20130. } else {
  20131. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20132. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20133. }
  20134. }
  20135. }
  20136. this.Stbodywidth =
  20137. document.getElementsByClassName("student_body").length &&
  20138. document.getElementsByClassName("student_body")[0].offsetWidth;
  20139. },
  20140. closeDraw() {
  20141. this.bg = null;
  20142. this.drawShow = false;
  20143. },
  20144. showPicturePaint(url) {
  20145. let params = {
  20146. img: url,
  20147. };
  20148. this.ajax
  20149. .get(this.$store.state.api + "imgToBase64", params)
  20150. .then((res) => {
  20151. this.drawShow = true;
  20152. this.bg = res.data[0].img;
  20153. })
  20154. .catch((err) => {
  20155. console.error(err);
  20156. });
  20157. },
  20158. addImgDraw(base64) {
  20159. let file = { name: "批注图.png" };
  20160. let img = this.dataUrlToFile(base64, file);
  20161. this.beforeUpload1(img, 5);
  20162. },
  20163. addImgDrawImG(url) {
  20164. // console.log(url);
  20165. let params = [
  20166. {
  20167. wid: this.commentDetail.wid,
  20168. img: url,
  20169. },
  20170. ];
  20171. this.ajax
  20172. .post(this.$store.state.api + "updateCourseWorks", params)
  20173. .then((res) => {
  20174. this.$message({
  20175. message: "提交成功",
  20176. type: "success",
  20177. });
  20178. this.drawShow = false;
  20179. this.bg = "";
  20180. this.selectSWorks();
  20181. this.selectStudent();
  20182. })
  20183. .catch((err) => {
  20184. this.$message.error("提交失败");
  20185. console.error(err);
  20186. });
  20187. },
  20188. deletePicturePaint() {
  20189. this.$confirm("确定删除此批注吗?", "提示", {
  20190. confirmButtonText: "确定",
  20191. cancelButtonText: "取消",
  20192. type: "warning",
  20193. })
  20194. .then(() => {
  20195. let params = [
  20196. {
  20197. wid: this.commentDetail.wid,
  20198. img: "",
  20199. },
  20200. ];
  20201. this.ajax
  20202. .post(this.$store.state.api + "updateCourseWorks", params)
  20203. .then((res) => {
  20204. this.$message({
  20205. message: "删除成功",
  20206. type: "success",
  20207. });
  20208. this.selectSWorks();
  20209. this.selectStudent();
  20210. })
  20211. .catch((err) => {
  20212. this.$message.error("删除失败");
  20213. console.error(err);
  20214. });
  20215. })
  20216. .catch(() => {});
  20217. },
  20218. getAudioVideo(constraintsData) {
  20219. if (navigator.mediaDevices === undefined) {
  20220. navigator.mediaDevices = {};
  20221. }
  20222. if (navigator.mediaDevices.getUserMedia === undefined) {
  20223. navigator.mediaDevices.getUserMedia = function (constraints) {
  20224. // 首先,如果有getUserMedia的话,就获得它
  20225. var getUserMedia =
  20226. navigator.getUserMedia ||
  20227. navigator.webkitGetUserMedia ||
  20228. navigator.mozGetUserMedia ||
  20229. navigator.msGetUserMedia;
  20230. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20231. if (!getUserMedia) {
  20232. return Promise.reject({ code: 404 });
  20233. }
  20234. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20235. return new Promise(function (resolve, reject) {
  20236. getUserMedia.call(navigator, constraints, resolve, reject);
  20237. });
  20238. };
  20239. }
  20240. return navigator.mediaDevices.getUserMedia(constraintsData);
  20241. },
  20242. /**
  20243. * 开始录制
  20244. */
  20245. startRecording(callback) {
  20246. let _function = (screenStream) => {
  20247. this.addStreamStopListener(screenStream, () => {
  20248. console.log("流停止监听");
  20249. this.stopRecording();
  20250. this.$emit("streamStop", {});
  20251. // this.stopRecording();
  20252. });
  20253. var options = {
  20254. type: "video",
  20255. mimeType: "video/webm",
  20256. disableLogs: false,
  20257. getNativeBlob: false, // enable it for longer recordings
  20258. ignoreMutedMedia: false,
  20259. };
  20260. // this.video.srcObject = screenStream;
  20261. this.recorder = RecordRTC(screenStream, options);
  20262. this.recorder.startRecording();
  20263. this.recorder.screen = screenStream;
  20264. this.videoStart = true;
  20265. // callback(true);
  20266. };
  20267. this.getAudioVideo({ audio: true })
  20268. .then((res) => {
  20269. this.captureScreen(_function, true);
  20270. console.log("已点击允许,开启成功");
  20271. })
  20272. .catch((err) => {
  20273. // console.log('浏览器不支持,请更换浏览器')
  20274. // } else {
  20275. this.captureScreen(_function, false);
  20276. console.log("请检查是否存在麦克风");
  20277. });
  20278. },
  20279. /**
  20280. * 停止录制
  20281. */
  20282. stopRecording(callback) {
  20283. this.recorder.stopRecording(() => {
  20284. // this.video.src = this.video.srcObject = null;
  20285. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20286. const url = URL.createObjectURL(this.recorder.getBlob());
  20287. const a = document.createElement("a"); //this.fileName+
  20288. let videoFile = new File(
  20289. [this.recorder.getBlob()],
  20290. this.courseDetail.title + "录屏.mp4",
  20291. {
  20292. type: "video/mp4",
  20293. }
  20294. );
  20295. let downloadUrl = URL.createObjectURL(videoFile);
  20296. if(this.$refs.classRoomHelperRef){
  20297. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20298. }
  20299. document.body.appendChild(a);
  20300. a.style.display = "none";
  20301. a.href = url;
  20302. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20303. a.click();
  20304. this.recorder.screen.stop();
  20305. this.recorder.destroy();
  20306. this.recorder = null;
  20307. this.videoStart = false;
  20308. // callback(false);
  20309. });
  20310. },
  20311. //初始化
  20312. captureScreen(callback, type) {
  20313. if (navigator.getDisplayMedia) {
  20314. //录制结束,文件下载
  20315. navigator
  20316. .getDisplayMedia({
  20317. video: true,
  20318. })
  20319. .then((screenStream) => {
  20320. if (type) {
  20321. navigator.mediaDevices
  20322. .getUserMedia({ audio: true })
  20323. .then((mic) => {
  20324. screenStream.addTrack(mic.getTracks()[0]);
  20325. callback(screenStream);
  20326. });
  20327. } else {
  20328. callback(screenStream);
  20329. }
  20330. })
  20331. .catch(function (error) {
  20332. console.log("error", error);
  20333. });
  20334. } else if (navigator.mediaDevices.getDisplayMedia) {
  20335. navigator.mediaDevices
  20336. .getDisplayMedia({
  20337. video: true,
  20338. })
  20339. .then((screenStream) => {
  20340. if (type) {
  20341. navigator.mediaDevices
  20342. .getUserMedia({ audio: true })
  20343. .then((mic) => {
  20344. screenStream.addTrack(mic.getTracks()[0]);
  20345. callback(screenStream);
  20346. });
  20347. } else {
  20348. callback(screenStream);
  20349. }
  20350. })
  20351. .catch(function (error) {
  20352. console.log("error", error);
  20353. });
  20354. } else {
  20355. var error = "getDisplayMedia API are not supported in this browser.";
  20356. console.log("error", error);
  20357. alert(error);
  20358. }
  20359. },
  20360. //流监听
  20361. addStreamStopListener(stream, callback) {
  20362. stream.addEventListener(
  20363. "ended",
  20364. function () {
  20365. callback();
  20366. callback = function () {};
  20367. },
  20368. false
  20369. );
  20370. stream.addEventListener(
  20371. "inactive",
  20372. function () {
  20373. callback();
  20374. callback = function () {};
  20375. },
  20376. false
  20377. );
  20378. stream.getTracks().forEach(function (track) {
  20379. track.addEventListener(
  20380. "ended",
  20381. function () {
  20382. callback();
  20383. callback = function () {};
  20384. },
  20385. false
  20386. );
  20387. track.addEventListener(
  20388. "inactive",
  20389. function () {
  20390. callback();
  20391. callback = function () {};
  20392. },
  20393. false
  20394. );
  20395. });
  20396. },
  20397. updateGroup() {
  20398. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20399. this.dialogVisibleGroup2 = true;
  20400. },
  20401. numberPan() {
  20402. if (
  20403. /[^\d]/.test(this.groupJson.number) ||
  20404. this.groupJson.number < 2 ||
  20405. this.groupJson.number > 10
  20406. ) {
  20407. this.$message.error("请输入2-10的数字");
  20408. this.groupJson.number = "";
  20409. }
  20410. },
  20411. updateGroupJson() {
  20412. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20413. if (
  20414. this.groupStudentUid[this.toolindex][i].length >
  20415. this.groupJson2.number
  20416. ) {
  20417. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20418. return;
  20419. }
  20420. }
  20421. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20422. this.islock = this.groupJson.islock == 1 ? true : false;
  20423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20424. this.taskCount
  20425. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20426. let params = [
  20427. {
  20428. cid: this.id,
  20429. chapters: JSON.stringify(this.chapInfoList),
  20430. uid: this.userid,
  20431. unitIndex: this.courseType,
  20432. },
  20433. ];
  20434. this.ajax
  20435. .post(this.$store.state.api + "updateWorkNew4", params)
  20436. .then((res) => {
  20437. this.$message.success("设置成功");
  20438. this.getCourseDetail(2);
  20439. this.dialogVisibleGroup2 = false;
  20440. this.groupJson2 = {};
  20441. this.$forceUpdate();
  20442. })
  20443. .catch((err) => {
  20444. this.$message.error("网络不佳");
  20445. console.error(err);
  20446. });
  20447. },
  20448. lockChair() {
  20449. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20450. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20451. this.updateGroupJson();
  20452. },
  20453. selectGroup(index) {
  20454. this.getCourseDetail(2, index);
  20455. },
  20456. joinGroup(index) {
  20457. if (this.groupJson.islock == 2) {
  20458. this.$message.error("位置已被锁定,无法加入");
  20459. return;
  20460. }
  20461. if (
  20462. this.groupStudent[this.toolindex][index].length >
  20463. this.groupJson.number ||
  20464. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20465. ) {
  20466. this.$message.error("位置已满,无法加入");
  20467. return;
  20468. }
  20469. let params = [
  20470. {
  20471. cid: this.id,
  20472. stage: this.courseType,
  20473. task: this.taskCount,
  20474. tool: this.toolindex,
  20475. g: index,
  20476. uid: this.userid,
  20477. },
  20478. ];
  20479. this.ajax
  20480. .post(this.$store.state.api + "joinGroup", params)
  20481. .then((res) => {
  20482. this.$message.success("加入成功");
  20483. this.getCourseDetail(2);
  20484. })
  20485. .catch((err) => {
  20486. this.$message.error("网络不佳");
  20487. console.error(err);
  20488. });
  20489. },
  20490. exitGroup(id) {
  20491. if (this.groupJson.islock == 2) {
  20492. this.$message.error("位置已被锁定,无法退出");
  20493. return;
  20494. }
  20495. let params = [
  20496. {
  20497. gid: id,
  20498. },
  20499. ];
  20500. this.ajax
  20501. .post(this.$store.state.api + "exitGroup", params)
  20502. .then((res) => {
  20503. this.$message.success("退出成功");
  20504. this.getCourseDetail(2);
  20505. })
  20506. .catch((err) => {
  20507. this.$message.error("网络不佳");
  20508. console.error(err);
  20509. });
  20510. },
  20511. groupUpload(index, task, gindex) {
  20512. this.taskCount = task;
  20513. this.toolindex = index;
  20514. this.groupIndex = gindex;
  20515. this.dialogVisibleGroupWork = true;
  20516. },
  20517. updateGroupChair(user) {
  20518. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20519. el.label = index;
  20520. return index != user.group;
  20521. });
  20522. this.updateGroupUser = user;
  20523. this.dialogVisibleUpdateGroup = true;
  20524. },
  20525. updateChair() {
  20526. if (
  20527. this.groupStudent[this.toolindex][this.checkChair].length >
  20528. this.groupJson.number ||
  20529. this.groupStudent[this.toolindex][this.checkChair].length ==
  20530. this.groupJson.number
  20531. ) {
  20532. this.$message.error("位置已满,无法加入");
  20533. return;
  20534. }
  20535. let params = [
  20536. {
  20537. cid: this.id,
  20538. stage: this.courseType,
  20539. task: this.taskCount,
  20540. tool: this.toolindex,
  20541. g: this.checkChair,
  20542. uid: this.updateGroupUser.userid,
  20543. },
  20544. ];
  20545. this.ajax
  20546. .post(this.$store.state.api + "joinGroup", params)
  20547. .then((res) => {
  20548. this.$message.success("修改成功");
  20549. this.updateGroupUser = {};
  20550. this.checkChair = "";
  20551. this.updateGroupArray = {};
  20552. this.dialogVisibleUpdateGroup = false;
  20553. this.getCourseDetail(2);
  20554. })
  20555. .catch((err) => {
  20556. this.$message.error("网络不佳");
  20557. console.error(err);
  20558. });
  20559. },
  20560. deleteGroupChair(gindex) {
  20561. this.checkDeleteGroup = [];
  20562. this.deleteGroupUser = JSON.parse(
  20563. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20564. );
  20565. this.deleteGroupArray = this.groupJson.group[gindex];
  20566. this.groupIndex = gindex;
  20567. this.dialogVisibleDeleteGroup = true;
  20568. },
  20569. async deleteChair() {
  20570. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20571. const gid =
  20572. this.groupStudent[this.toolindex][this.groupIndex][
  20573. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20574. this.checkDeleteGroup[i]
  20575. )
  20576. ];
  20577. let params = [
  20578. {
  20579. gid: gid.id,
  20580. },
  20581. ];
  20582. var a = await this.deleteChairA(params);
  20583. if (i == this.checkDeleteGroup.length - 1) {
  20584. this.$message.success("退出成功");
  20585. this.dialogVisibleDeleteGroup = false;
  20586. this.deleteGroupUser = [];
  20587. this.deleteGroupArray = {};
  20588. this.groupIndex = "";
  20589. this.checkDeleteGroup = [];
  20590. this.getCourseDetail(2);
  20591. }
  20592. }
  20593. },
  20594. deleteChairA(params) {
  20595. return new Promise((resolve, reject) => {
  20596. this.ajax
  20597. .post(this.$store.state.api + "exitGroup", params)
  20598. .then((res) => {
  20599. resolve(1);
  20600. })
  20601. .catch((err) => {
  20602. this.$message.error("网络不佳");
  20603. console.error(err);
  20604. });
  20605. });
  20606. },
  20607. contract(i) {
  20608. if (this.isCloseList[i].isClose == 0) {
  20609. this.isCloseList[i].isClose = 1;
  20610. } else {
  20611. this.isCloseList[i].isClose = 0;
  20612. }
  20613. this.$forceUpdate();
  20614. },
  20615. openWordCloud(toolindex) {
  20616. this.wordCloudData = '';
  20617. let array = [];
  20618. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20619. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20620. array.push({ name: works });
  20621. }
  20622. if (this.isGroup) {
  20623. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20624. let works = this.courseGroup.group[i].works[toolindex];
  20625. for (var j = 0; j < works.length; j++) {
  20626. let answer = JSON.parse(works[j].works)[0].answer;
  20627. array.push({ name: answer });
  20628. }
  20629. }
  20630. }
  20631. let _result = ''
  20632. array.forEach(e=>{
  20633. _result +=e.name+','
  20634. })
  20635. this.wordCloudData = _result;
  20636. this.dialogVisibleWordCloud = true;
  20637. this.wordCloudKey += 1;
  20638. },
  20639. uploadWorks(i) {
  20640. this.$confirm("确定导出作业吗?", "提示", {
  20641. confirmButtonText: "确定",
  20642. cancelButtonText: "取消",
  20643. type: "warning",
  20644. })
  20645. .then(() => {
  20646. const loading = this.$loading.service({
  20647. background: "rgba(255, 255, 255, 0.7)",
  20648. target: document.body,
  20649. text: "文件加载中...",
  20650. });
  20651. const _worksStudent = this.worksStudent;
  20652. let url = [];
  20653. var counts = {};
  20654. for (var l = 0; l < _worksStudent[i].length; l++) {
  20655. var item = _worksStudent[i][l];
  20656. var name = item.sName;
  20657. if (!counts.hasOwnProperty(name)) {
  20658. counts[name] = 0;
  20659. } else {
  20660. counts[name]++;
  20661. }
  20662. if (counts[name] > 0) {
  20663. item.sName += " (" + counts[name] + ")";
  20664. }
  20665. }
  20666. for (var l = 0; l < _worksStudent[i].length; l++) {
  20667. var item = _worksStudent[i][l];
  20668. if (
  20669. item.works.indexOf(
  20670. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20671. ) !== -1 &&
  20672. item.works.indexOf("img") === -1
  20673. ) {
  20674. url.push({ name: item.sName, url: item.works });
  20675. }
  20676. }
  20677. // var toolList = [
  20678. // { name: "电子白板", tool: 1 },
  20679. // { name: "思维导图", tool: 3 },
  20680. // { name: "协同文档", tool: 6 },
  20681. // { name: "思维网格", tool: 7 },
  20682. // { name: "素材库", tool: 8 },
  20683. // { name: "学习资料", tool: 17 },
  20684. // { name: "便签", tool: 2 },
  20685. // { name: "问卷调查", tool: 4 },
  20686. // { name: "选择题", tool: 45 },
  20687. // { name: "倒计时", tool: 10 },
  20688. // { name: "问答", tool: 15 },
  20689. // { name: "课程设计", tool: 26 },
  20690. // { name: "训练服务器", tool: 18 },
  20691. // { name: "作业提交", tool: 16 },
  20692. // { name: "批量上传", tool: 50 },
  20693. // { name: "AIoT Blockly", tool: 21 },
  20694. // { name: "AI Python", tool: 23 },
  20695. // { name: "AI Blockly", tool: 24 },
  20696. // { name: "目标管理", tool: 25 },
  20697. // { name: "数学画板", tool: 31 },
  20698. // { name: "翻译", tool: 28 },
  20699. // { name: "魔盒识字", tool: 37 },
  20700. // { name: "数学画板", tool: 31 },
  20701. // { name: "24点", tool: 38 },
  20702. // { name: "GeoGebra", tool: 39 },
  20703. // { name: "源码编辑", tool: 32 },
  20704. // { name: "个人评价", tool: 40 },
  20705. // { name: "选择匹配", tool: 41 },
  20706. // { name: "汉字宫", tool: 44 },
  20707. // { name: "排序", tool: 47 },
  20708. // { name: "表格", tool: 48 },
  20709. // { name: "文档", tool: 52 },
  20710. // { name: "学生分组", tool: 49 },
  20711. // { name: "CocoPi", tool: 57 },
  20712. // { name: "模拟驾驶", tool: 58 },
  20713. // { name: "路径搜索", tool: 59 },
  20714. // { name: "深度学习", tool: 60 },
  20715. // { name: "全历史", tool: 61 },
  20716. // { name: "交互视频", tool: 62 },
  20717. // { name: "海龟编程", tool: 63 },
  20718. // { name: "挑人", tool: 65 },
  20719. // { name: "公式编辑", tool: 66 },
  20720. // { name: "分子结构", tool: 67 },
  20721. // { name: "时间轴", tool: 68 },
  20722. // ];
  20723. // var toolName = "";
  20724. // for(var w = 0;w<toolList.length;w++){
  20725. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20726. // toolName = toolList[w].name;
  20727. // }
  20728. // }
  20729. console.log(url);
  20730. this.downLoadAll(url, loading);
  20731. })
  20732. .catch(() => {});
  20733. },
  20734. downLoadAll(url, loading) {
  20735. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20736. const zip = new JSZip();
  20737. const cache = {};
  20738. const promises = [];
  20739. data.forEach((item) => {
  20740. const promise = getFile(item.url).then((data) => {
  20741. if (data.data != 1) {
  20742. // 下载文件, 并存成ArrayBuffer对象
  20743. const file_name =
  20744. item.name +
  20745. "." +
  20746. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20747. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20748. cache[file_name] = data.data;
  20749. }
  20750. });
  20751. promises.push(promise);
  20752. });
  20753. Promise.all(promises).then(() => {
  20754. zip.generateAsync({ type: "blob" }).then((content) => {
  20755. // 生成二进制流
  20756. FileSaver.saveAs(
  20757. content,
  20758. this.courseDetail.title + "-" + "作业提交工具.zip"
  20759. ); // 利用file-saver保存文件 自定义文件名
  20760. setTimeout(() => {
  20761. loading.close();
  20762. }, 2000);
  20763. });
  20764. });
  20765. },
  20766. pickStudent(stu) {
  20767. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20768. return;
  20769. }
  20770. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20771. confirmButtonText: "确定",
  20772. cancelButtonText: "取消",
  20773. type: "warning",
  20774. })
  20775. .then(() => {
  20776. let params = [
  20777. {
  20778. uid: stu.userid,
  20779. cid: this.id,
  20780. stage: this.courseType,
  20781. task: this.taskCount,
  20782. tool: this.toolindex,
  20783. },
  20784. ];
  20785. this.ajax
  20786. .post(this.$store.state.api + "updateCoursePick", params)
  20787. .then((res) => {
  20788. this.$message.success("操作成功");
  20789. this.getPick();
  20790. })
  20791. .catch((err) => {
  20792. this.$message.error("网络不佳");
  20793. console.error(err);
  20794. });
  20795. })
  20796. .catch(() => {});
  20797. },
  20798. selectUser(){
  20799. let params = {
  20800. userid: this.userid,
  20801. };
  20802. this.ajax
  20803. .get(this.$store.state.api + "selectUser", params)
  20804. .then((res) => {
  20805. this.userMes = res.data[0];
  20806. })
  20807. .catch((err) => {
  20808. console.error(err);
  20809. });
  20810. },
  20811. setEngText(i){
  20812. this.newEngIndex = i;
  20813. this.$forceUpdate();
  20814. },
  20815. addCorrect(){
  20816. this.$confirm("你确定提交批改嘛?", "提示", {
  20817. confirmButtonText: "确定",
  20818. showCancelButton: false,
  20819. closeOnClickModal: false,
  20820. type: "warning",
  20821. })
  20822. .then(() => {
  20823. let params = {
  20824. cid: this.id,
  20825. s: parseInt(this.courseType),
  20826. t: this.taskCount,
  20827. tool: this.toolindex,
  20828. wid: this.engWid,
  20829. c: this.userid,
  20830. 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) : "",
  20831. };
  20832. this.ajax
  20833. .get(this.$store.state.api + "addEngC", params)
  20834. .then((res) => {
  20835. this.$message.success("提交成功");
  20836. this.engUpdateDialogVisible = false;
  20837. })
  20838. .catch((err) => {
  20839. console.error(err);
  20840. });
  20841. })
  20842. .catch(() => {});
  20843. },
  20844. selectEngC(id,z){
  20845. let params = {
  20846. workid: id,
  20847. };
  20848. this.ajax
  20849. .get(this.$store.state.api + "selectEngC", params)
  20850. .then((res) => {
  20851. if(res.data[0].length == 0){
  20852. this.newEnglishList.engTitle = z.engTitle;
  20853. this.newEnglishList.engText = z.engText;
  20854. }else{
  20855. var a = res.data[0];
  20856. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20857. if(this.userMes[0].type == 2){
  20858. var snum = 0;
  20859. for(var i = 0;i<a.length;i++){
  20860. if(this.userMes[0].userid == a[i].correct){
  20861. this.newEnglishList = JSON.parse(a[i].cWork);
  20862. snum = 1;
  20863. }
  20864. }
  20865. if(snum == 0){
  20866. this.newEnglishList = { engTitle:"",engText:"" };
  20867. this.newEnglishList.engTitle = z.engTitle;
  20868. this.newEnglishList.engText = z.engText;
  20869. }
  20870. }else if(this.userMes[0].type == 1){
  20871. var num = 0;
  20872. for(var w= 0;w<a.length;w++){
  20873. if(this.userMes[0].userid == a[w].correct){
  20874. num = 1;
  20875. }
  20876. }
  20877. if(num == 0){
  20878. this.isNoUserid = true;
  20879. var c = JSON.parse(JSON.stringify(z));
  20880. this.oldEnglishJson1 = c;
  20881. }else{
  20882. this.isNoUserid = false;
  20883. }
  20884. var b = a.sort((item, index) => {
  20885. console.log(item)
  20886. if (item.correct === this.userMes[0].userid) {
  20887. return -1; // 将a移到前面
  20888. } else if (index.correct === this.userMes[0].userid) {
  20889. return 1; // 将b移到前面
  20890. } else {
  20891. return 0; // 保持默认顺序
  20892. }
  20893. });
  20894. for(var p = 0;p<b.length;p++){
  20895. for(var y = 0;y<ppp.length;y++){
  20896. if(b[p].id == ppp[y].id){
  20897. b[p].cWork = JSON.parse(ppp[y].cWork);
  20898. break
  20899. }
  20900. }
  20901. }
  20902. this.newEnglishList1 = b;
  20903. }
  20904. }
  20905. this.greyType = false;
  20906. setTimeout(() => {
  20907. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20908. if(this.newEnglishList1.length > 0){
  20909. if(this.isNoUserid == true){
  20910. this.engListLength = this.newEnglishList1.length + 1;
  20911. this.newEngIndex = -1;
  20912. }else{
  20913. this.engListLength = this.newEnglishList1.length;
  20914. this.newEngIndex = 0;
  20915. }
  20916. }
  20917. if(this.userMes[0].type == 2){
  20918. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20919. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20920. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20921. }else if(this.newEngIndex == -1){
  20922. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20923. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20924. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20925. }
  20926. }, 500);
  20927. this.engUpdateDialogVisible = true;
  20928. this.$forceUpdate();
  20929. })
  20930. .catch((err) => {
  20931. console.error(err);
  20932. });
  20933. },
  20934. getPick() {
  20935. if(this.getPickLoading) return
  20936. this.getPickLoading = true
  20937. let params = {
  20938. cid: this.id,
  20939. };
  20940. this.ajax
  20941. .get(this.$store.state.api + "getPick", params)
  20942. .then((res) => {
  20943. let array = [];
  20944. for (var i = 0; i < res.data[0].length; i++) {
  20945. array.push(res.data[0][i].userid);
  20946. }
  20947. this.isPickStudent = array;
  20948. if (array.indexOf(this.userid) !== -1) {
  20949. this.$confirm("你被老师选到啦!", "提示", {
  20950. confirmButtonText: "确定",
  20951. showCancelButton: false,
  20952. closeOnClickModal: false,
  20953. type: "warning",
  20954. })
  20955. .then(() => {
  20956. let pa = [
  20957. {
  20958. uid: this.userid,
  20959. cid: this.id,
  20960. },
  20961. ];
  20962. this.ajax
  20963. .post(this.$store.state.api + "deletePick", pa)
  20964. .then((res) => {
  20965. this.getPick();
  20966. })
  20967. .catch((err) => {
  20968. this.$message.error("网络不佳");
  20969. console.error(err);
  20970. });
  20971. })
  20972. .catch(() => {});
  20973. }
  20974. this.getPickLoading = false
  20975. })
  20976. .catch((err) => {
  20977. this.getPickLoading = false
  20978. this.$message.error("网络不佳");
  20979. console.error(err);
  20980. });
  20981. },
  20982. foldEva() {
  20983. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20985. } else {
  20986. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20987. setTimeout(() => {
  20988. this.checkEva();
  20989. setTimeout(() => {
  20990. this.checkEva();
  20991. }, 500);
  20992. }, 0);
  20993. }
  20994. this.$forceUpdate();
  20995. },
  20996. panToolHeight(tool) {
  20997. var _tool = document.querySelectorAll('#'+tool)[0]
  20998. var _toolA = _tool ? _tool.offsetHeight : 0
  20999. var _toolC = 0
  21000. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21001. let boolean2 = (_toolA > _toolC) ? true : false
  21002. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21003. this.$forceUpdate();
  21004. },
  21005. async checkLink(url) {
  21006. console.log(url)
  21007. let _url = url
  21008. try {
  21009. const response = await fetch(url);
  21010. if(!response.ok){
  21011. _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]))
  21012. }
  21013. console.log(response.ok)
  21014. } catch (error) {
  21015. console.error('Error checking link:', error);
  21016. // console.log(false)
  21017. _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]))
  21018. }
  21019. // console.log(_url)
  21020. return _url
  21021. },
  21022. getScoreList(){
  21023. let params = {
  21024. cid: this.id,
  21025. };
  21026. this.ajax
  21027. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21028. .then((res) => {
  21029. let result = res.data;
  21030. this.scoreList.datalist = result[0];
  21031. this.scoreList.isScoreList = result[1];
  21032. })
  21033. .catch((err) => {
  21034. console.error(err);
  21035. });
  21036. },
  21037. setClassRoomHelperWidth(width){
  21038. this.classRoomHelperWidth = width
  21039. },
  21040. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21041. this.$refs.choseWorksDetailDialogRef.open({
  21042. toolType:tooc,
  21043. tType: this.tType,
  21044. toolIndex: toolIndex
  21045. });
  21046. this.changeSplitScreenBehavior({
  21047. code: 1,
  21048. form: {
  21049. toolType:tooc,
  21050. toolIndex: toolIndex,
  21051. courseType: this.courseType,
  21052. taskCount: this.taskCount,
  21053. type: 0
  21054. }
  21055. });
  21056. },
  21057. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21058. this.$refs.statisticalAnalysisRef.open({
  21059. worksStudent: this.worksStudent[toolIndex],
  21060. tType: this.tType,
  21061. toolIndex: toolIndex
  21062. });
  21063. this.changeSplitScreenBehavior({
  21064. code: 2,
  21065. form: {
  21066. toolType:4,
  21067. courseType: this.courseType,
  21068. taskCount: this.taskCount,
  21069. toolIndex: toolIndex,
  21070. type: 0
  21071. }
  21072. });
  21073. },
  21074. statisticalAnalysisRefresh(toolIndex) {
  21075. this.$refs.statisticalAnalysisRef.refreshData({
  21076. worksStudent: this.worksStudent[toolIndex],
  21077. tType: this.tType,
  21078. toolIndex: toolIndex
  21079. });
  21080. },
  21081. async splitScreenBehavior(type = 0) {
  21082. // return;
  21083. if (this.splitScreenData.loading)
  21084. return this.$message.info("操作过快,请稍等");
  21085. if (type == 0) {
  21086. //关闭分屏
  21087. this.splitScreenData.isOpen = false;
  21088. // this.splitScreenData.userId = "";
  21089. // this.splitScreenData.uid = "";
  21090. this.splitScreenData.behavior = null;
  21091. await this.updateSplitScreenData(1);
  21092. this.$message.success("已关闭分屏模式");
  21093. this.studentFreePreview(false);
  21094. this.OpenJobPreview(false);
  21095. // this.followingMode(false);
  21096. } else if (type == 1) {
  21097. //开启分屏
  21098. this.splitScreenData.isOpen = true;
  21099. this.splitScreenData.userId = this.userid;
  21100. this.splitScreenData.uid = this.splitScreenData.myUid;
  21101. this.splitScreenData.behavior = null;
  21102. let status = await this.updateSplitScreenData(0);
  21103. this.changeSplitScreenBehavior({form:{}})
  21104. if (status == 1) {
  21105. this.$message.success("已开启分屏");
  21106. this.studentFreePreview(false);
  21107. this.OpenJobPreview(true);
  21108. // this.followingMode(true);
  21109. } else {
  21110. this.splitScreenData.isOpen = false;
  21111. this.splitScreenData.userId = "";
  21112. this.splitScreenData.uid = "";
  21113. this.splitScreenData.behavior = null;
  21114. this.$message.success("分屏开启失败");
  21115. }
  21116. }
  21117. },
  21118. enterFullScreen() {
  21119. let element = document.documentElement;
  21120. if (element.requestFullscreen) {
  21121. element.requestFullscreen();
  21122. } else if (element.mozRequestFullScreen) { /* Firefox */
  21123. element.mozRequestFullScreen();
  21124. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21125. element.webkitRequestFullscreen();
  21126. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21127. element.msRequestFullscreen();
  21128. }
  21129. },
  21130. exitFullScreen() {
  21131. if (document.exitFullscreen) {
  21132. document.exitFullscreen();
  21133. } else if (document.mozCancelFullScreen) { /* Firefox */
  21134. document.mozCancelFullScreen();
  21135. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21136. document.webkitExitFullscreen();
  21137. } else if (document.msExitFullscreen) { /* IE/Edge */
  21138. document.msExitFullscreen();
  21139. }
  21140. },
  21141. confirmOpen(){
  21142. this.splitScreenData.isOpen = true;
  21143. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21144. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21145. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21146. this.confirmOpenDig = false
  21147. if (!document.fullscreenElement) {
  21148. this.enterFullScreen();
  21149. }
  21150. // if (this.timer2) {
  21151. // clearInterval(this.timer2);
  21152. // this.timer2 = null;
  21153. // }
  21154. // this.timer2 = setInterval(()=> {
  21155. // this.getSplitScreenData();//获取分屏数据
  21156. // }, 5000);
  21157. this.$message.success("分屏模式已开启");
  21158. },
  21159. // 获取分屏数据
  21160. getSplitScreenData() {
  21161. // return;
  21162. // if (this.tType != 1) return;
  21163. if(this.getSplitScreenDataLoading) return
  21164. this.getSplitScreenDataLoading = true
  21165. let params = {
  21166. cid: this.id
  21167. };
  21168. this.ajax
  21169. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21170. .then(async res => {
  21171. let data = res.data[0][0]["splitScreenData"];
  21172. console.log("获取了分屏数:", data);
  21173. if (data) {
  21174. data = JSON.parse(data);
  21175. if (
  21176. !this.splitScreenData.isOpen &&
  21177. data.isOpen &&
  21178. this.splitScreenData.myUid == data.uid
  21179. ) {
  21180. this.splitScreenData.isOpen = false;
  21181. this.splitScreenData.userId = "";
  21182. this.splitScreenData.uid = "";
  21183. this.splitScreenData.behavior = null;
  21184. await this.updateSplitScreenData(1);
  21185. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21186. this.confirmOpenDig = true
  21187. this.confirmOpenDigData = data
  21188. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21189. this.splitScreenData.isOpen = false;
  21190. this.splitScreenData.userId = "";
  21191. this.splitScreenData.uid = "";
  21192. this.splitScreenData.behavior = null;
  21193. this.$message.error("已结束分屏模式");
  21194. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21195. this.splitScreenData.isOpen = true;
  21196. this.splitScreenData.uid = data.uid;
  21197. this.splitScreenData.userId = data.userId;
  21198. this.splitScreenData.behavior = data.behavior;
  21199. }
  21200. this.doSplitScreenBehavior();
  21201. } else {
  21202. if (this.splitScreenData.isOpen) {
  21203. this.splitScreenData.isOpen = false;
  21204. this.splitScreenData.userId = "";
  21205. this.splitScreenData.uid = "";
  21206. this.splitScreenData.behavior = null;
  21207. this.$message.error("已结束分屏模式");
  21208. // if (this.timer2) {
  21209. // clearInterval(this.timer2);
  21210. // this.timer2 = null;
  21211. // }
  21212. // this.timer2 = setInterval(()=> {
  21213. // this.getSplitScreenData();//获取分屏数据
  21214. // }, 5000);
  21215. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21216. confirmButtonText: '确定', //确认按钮的文字
  21217. showCancelButton: false, //是否显示取消按钮
  21218. showClose: false, //是否显示关闭按钮
  21219. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21220. type: "warning",
  21221. })
  21222. .then(() => {
  21223. if (document.fullscreenElement) {
  21224. this.exitFullScreen();
  21225. }
  21226. })
  21227. .catch(() => {});
  21228. }
  21229. }
  21230. this.getSplitScreenDataLoading = false
  21231. })
  21232. .catch(e => {
  21233. this.getSplitScreenDataLoading = false
  21234. console.log("获取分屏数出错:", e);
  21235. });
  21236. },
  21237. // 操作
  21238. doSplitScreenBehavior() {
  21239. if (
  21240. this.splitScreenData.isOpen &&
  21241. this.splitScreenData.uid != this.splitScreenData.myUid
  21242. ) {
  21243. let behavior = this.splitScreenData.behavior;
  21244. if (behavior) {
  21245. // console.log('behavior',behavior);
  21246. // this.toolindex = behavior.form.toolType
  21247. // 初始状态
  21248. if (behavior.code === 99) {
  21249. //初始化
  21250. this.fullDialogVisible = false;
  21251. if(this.$refs.choseWorksDetailDialogRef.show){
  21252. this.$refs.choseWorksDetailDialogRef.close();
  21253. }
  21254. if(this.$refs.statisticalAnalysisRef.show){
  21255. this.$refs.statisticalAnalysisRef.close();
  21256. }
  21257. }
  21258. // 文件列表
  21259. if (behavior.code === 0) {
  21260. //开启内容列表弹窗
  21261. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21262. }else{
  21263. this.fullDialogVisible = false;
  21264. }
  21265. // 打开工具
  21266. if (behavior.code === 1) {
  21267. //关于选择题的作业详细的操作
  21268. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21269. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21270. this.courseType = behavior.form.courseType;
  21271. this.taskCount = behavior.form.taskCount;
  21272. }
  21273. this.$nextTick(() => {
  21274. if (this.$refs.choseWorksDetailDialogRef.show) {
  21275. //已经打开了
  21276. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21277. } else {
  21278. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21279. }
  21280. });
  21281. }else{
  21282. this.$refs.choseWorksDetailDialogRef.close()
  21283. }
  21284. // 问卷调查
  21285. if(behavior.code === 2){
  21286. if(this.$refs.statisticalAnalysisRef.show){
  21287. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21288. }else{
  21289. this.$refs.statisticalAnalysisRef.open({
  21290. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21291. tType: this.tType,
  21292. toolIndex: behavior.form.toolIndex
  21293. });
  21294. }
  21295. }else{
  21296. this.$refs.statisticalAnalysisRef.close();
  21297. }
  21298. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21299. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21300. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21301. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21302. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21303. if (behavior.form.courseType != this.courseType ||
  21304. behavior.form.taskCount != this.taskCount ||
  21305. behavior.form.toolType != this.toolindex
  21306. ) {
  21307. var a = document.scrollingElement;
  21308. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21309. if (target) {
  21310. target.scrollIntoView(true);
  21311. setTimeout(()=>{
  21312. let scrollBody = document.querySelector('.body_student').parentElement
  21313. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21314. }, 0);
  21315. // setTimeout(() => {
  21316. // a.scrollTop = 0
  21317. // }, 0);
  21318. }
  21319. }
  21320. if(this.courseType !=behavior.form.courseType){
  21321. this.courseType = behavior.form.courseType;
  21322. }
  21323. if(this.taskCount !=behavior.form.taskCount){
  21324. this.taskCount = behavior.form.taskCount;
  21325. }
  21326. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21327. this.toolindex = behavior.form.toolType;
  21328. }
  21329. // if(behavior.form.navId){
  21330. // this.navId = behavior.form.navId
  21331. // }
  21332. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21333. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21334. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21335. this.getCourseDetail()
  21336. }
  21337. this.setContent2(false)
  21338. }
  21339. } else {
  21340. }
  21341. }
  21342. },
  21343. // 修改分屏数据
  21344. updateSplitScreenData(empty = 0) {
  21345. return new Promise(resolve => {
  21346. if(this.userid!==this.courseDetail.userid){
  21347. if(!this.courseDetail.userid){
  21348. return setTimeout(()=>{
  21349. this.updateSplitScreenData(empty)
  21350. },2000)
  21351. }
  21352. return;
  21353. };
  21354. if (
  21355. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21356. this.splitScreenData.userId == this.userid
  21357. ) {
  21358. this.splitScreenData.loading = true;
  21359. let params = [
  21360. {
  21361. cid: this.id,
  21362. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21363. }
  21364. ];
  21365. this.ajax
  21366. .post(
  21367. this.$store.state.api + "update_courseSplitScreenData",
  21368. params
  21369. )
  21370. .then(res => {
  21371. this.splitScreenData.loading = false;
  21372. if (res.data == 1) {
  21373. resolve(1);
  21374. console.log("修改分屏数据成功");
  21375. }
  21376. })
  21377. .catch(e => {
  21378. this.splitScreenData.loading = false;
  21379. console.log("修改分屏数据失败", e);
  21380. resoleve(0);
  21381. });
  21382. } else if (empty == 2 && this.tType == 1) {
  21383. console.log("清空清空清空清空")
  21384. let params = [
  21385. {
  21386. cid: this.id,
  21387. nData: ""
  21388. }
  21389. ];
  21390. return this.ajax
  21391. .post(
  21392. this.$store.state.api + "update_courseSplitScreenData",
  21393. params
  21394. )
  21395. .then(_ => resolve(1))
  21396. .catch(_ => resolve(0));
  21397. } else {
  21398. return resolve(0);
  21399. }
  21400. });
  21401. },
  21402. // 修改分屏数据
  21403. changeSplitScreenBehavior(newValue) {
  21404. if (
  21405. this.splitScreenData.isOpen &&
  21406. this.splitScreenData.uid == this.splitScreenData.myUid
  21407. ) {
  21408. let _behavior = null;
  21409. if(!newValue){
  21410. _behavior = {}
  21411. }else{
  21412. _behavior = newValue
  21413. }
  21414. if(_behavior.form){
  21415. _behavior.form.taskCount = this.taskCount;
  21416. _behavior.form.courseType = this.courseType
  21417. }else{
  21418. _behavior.form = {
  21419. taskCount:this.taskCount,
  21420. courseType:this.courseType,
  21421. }
  21422. }
  21423. this.splitScreenData.behavior = _behavior;
  21424. this.updateSplitScreenData(0);
  21425. }
  21426. },
  21427. studentFreePreview(flag) {
  21428. this.IsLookOpen = flag;
  21429. this.updateLookOpen();
  21430. this.followingMode(flag)
  21431. },
  21432. OpenJobPreview(flag) {
  21433. this.sIsOpen = flag;
  21434. this.updateSLook();
  21435. },
  21436. followingMode(flag) {
  21437. this.IsFollow = flag;
  21438. this.updateFollow();
  21439. },
  21440. StulookMode(flag) {
  21441. this.IsStulook = flag;
  21442. this.updateIsStulook();
  21443. },
  21444. },
  21445. directives: {
  21446. // 使用局部注册指令的方式
  21447. resize: {
  21448. // 指令的名称
  21449. bind(el, binding) {
  21450. // el为绑定的元素,binding为绑定给指令的对象
  21451. let width = "",
  21452. height = "";
  21453. function isReize() {
  21454. const style = document.defaultView.getComputedStyle(el);
  21455. if (width !== style.width || height !== style.height) {
  21456. binding.value(); // 关键
  21457. }
  21458. width = style.width;
  21459. height = style.height;
  21460. }
  21461. el.__vueSetInterval__ = setInterval(isReize, 300);
  21462. },
  21463. unbind(el) {
  21464. clearInterval(el.__vueSetInterval__);
  21465. },
  21466. },
  21467. autoHeight: {
  21468. update(el, binding) {
  21469. const { value } = binding
  21470. if (value && typeof value === 'number') {
  21471. el.style.height = `${value}px`
  21472. } else {
  21473. el.style.height = 'auto'
  21474. }
  21475. },
  21476. componentUpdated(el) {
  21477. el.style.height = `${el.scrollHeight}px`
  21478. },
  21479. },
  21480. },
  21481. beforeDestroy() {
  21482. window.onresize = null;
  21483. clearInterval(this.timer);
  21484. this.timer = null;
  21485. clearInterval(this.timer2);
  21486. this.timer2 = null;
  21487. clearInterval(this.opertimer);
  21488. this.opertimer = null;
  21489. this.updateSplitScreenData(1);
  21490. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21491. let endTime = new Date().toLocaleString("zh-CN", {
  21492. hour12: false,
  21493. timeZone: "Asia/Shanghai"
  21494. }).replace(/\//g, "-")
  21495. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21496. this.syncClassData({
  21497. courseId: this.id,
  21498. title: this.courseDetail.title,
  21499. courseGrade: this.tcid2 ? this.tcid2 : '',
  21500. courseTime: courseTime,
  21501. startTime: this.startTime,
  21502. endTime: endTime,
  21503. })
  21504. console.log('同步数据')
  21505. }
  21506. },
  21507. computed: {
  21508. renderedFormula2() {
  21509. return function(val){
  21510. // 处理换行符和HTML实体
  21511. const normalized = val
  21512. .replace(/&amp;/g, '&')
  21513. .replace(/<br\/?>/g, '\n');
  21514. // 匹配行内公式($...$)和块级公式($$...$$)
  21515. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21516. try {
  21517. return katex.renderToString(expr.trim(), {
  21518. displayMode: false,
  21519. throwOnError: false,
  21520. macros: {
  21521. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21522. }
  21523. });
  21524. } catch (e) {
  21525. console.warn('KaTeX渲染失败:', e);
  21526. return `<span style="color:red">${expr}</span>`;
  21527. }
  21528. })
  21529. }
  21530. },
  21531. renderedFormula() {
  21532. return function(val){
  21533. try {
  21534. // 判断是否含有HTML标签,<tag ...>...</tag>
  21535. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21536. if (!hasTag) {
  21537. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21538. // 纯文本,整体渲染
  21539. try {
  21540. return katex.renderToString(val.trim(), {
  21541. throwOnError: false,
  21542. strict: false,
  21543. output: "htmlAndMathml"
  21544. });
  21545. } catch (e) {
  21546. return val; // 渲染失败原样输出
  21547. }
  21548. } else {
  21549. // 有标签,对每个标签内容渲染
  21550. return val.replace(
  21551. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21552. (match, tag, attrs, inner) => {
  21553. let html;
  21554. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21555. try {
  21556. html = katex.renderToString(inner.trim(), {
  21557. throwOnError: false,
  21558. strict: false,
  21559. output: "htmlAndMathml"
  21560. });
  21561. } catch (e) {
  21562. html = inner;
  21563. }
  21564. return `<${tag}${attrs}>${html}</${tag}>`;
  21565. }
  21566. );
  21567. }
  21568. } catch (e) {
  21569. console.error('KaTeX渲染错误:', e);
  21570. return val;
  21571. }
  21572. }
  21573. },
  21574. isAndroid() {
  21575. return /Android/i.test(navigator.userAgent);
  21576. },
  21577. contentConvent() {
  21578. return function (c) {
  21579. return c
  21580. ? c
  21581. .replaceAll(/\r\n/g, "<br/>")
  21582. .replaceAll(/\n/g, "<br/>")
  21583. .replaceAll(/\s/g, "&nbsp")
  21584. : "";
  21585. };
  21586. },
  21587. commentRight(){
  21588. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21589. return "35px";
  21590. }
  21591. return `calc(${this.classRoomHelperWidth} + 5px)`
  21592. // if(this.$refs["classRoomHelperRef"].type==0){
  21593. // return "100px";
  21594. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21595. // return "502px"
  21596. // }else{
  21597. // return "0px"
  21598. // }
  21599. },
  21600. checkUpload() {
  21601. return function () {
  21602. var studentK = [];
  21603. if (this.plworkFile.length > 0) {
  21604. for (var z = 0; z < this.plworkFile.length; z++) {
  21605. studentK.push(this.plworkFile[z].username);
  21606. }
  21607. studentK = studentK.join(",");
  21608. }
  21609. var a = this.uploadStudentJuri.filter((el) => {
  21610. return studentK.indexOf(el.userid) == -1;
  21611. });
  21612. return a;
  21613. };
  21614. },
  21615. getSName() {
  21616. return function (name) {
  21617. var check = name;
  21618. this.uploadStudentJuri.forEach((el) => {
  21619. if (el.userid == check) {
  21620. check = el.name ? el.name : el.username;
  21621. }
  21622. });
  21623. return check;
  21624. };
  21625. },
  21626. getImgList() {
  21627. return function (val) {
  21628. let srcList = []; // 定义一个数组用来接收后面的img地址
  21629. val.replace(
  21630. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21631. function (match, capture) {
  21632. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21633. srcList.push(capture);
  21634. }
  21635. );
  21636. return srcList;
  21637. };
  21638. },
  21639. retrnToolHeight(){
  21640. return function (tool) {
  21641. var _tool = document.querySelectorAll('#'+tool)[0]
  21642. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21643. };
  21644. },
  21645. Correct() {
  21646. return function (c) {
  21647. let w = "";
  21648. let a = this.correctWord;
  21649. for(var k = 0;k<a.length;k++){
  21650. //diffWordsWithSpace
  21651. if(a.length > 1){
  21652. if(a[k].added == true){
  21653. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21654. }else if(a[k].removed == true){
  21655. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21656. }else{
  21657. w += '<span>' + a[k].value + '</span>';
  21658. }
  21659. }else{
  21660. w = c
  21661. }
  21662. //diffChars方法
  21663. // if(a.length > 1){
  21664. // if(w == ""){
  21665. // if(a[k].added == true){
  21666. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21667. // }else if(a[k].removed == true){
  21668. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21669. // }
  21670. // }else{
  21671. // if(k == a.length - 1){
  21672. // if(a[k].added == true){
  21673. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21674. // }else if(a[k].removed == true){
  21675. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21676. // }
  21677. // }else{
  21678. // if(a[k].added == true){
  21679. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21680. // }else if(a[k].removed == true){
  21681. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21682. // }
  21683. // }
  21684. // }
  21685. // }else{
  21686. // w = c
  21687. // }
  21688. }
  21689. c = w;
  21690. return c;
  21691. };
  21692. },
  21693. },
  21694. mounted() {
  21695. this.setoTime("1");
  21696. this.startTime = new Date().toLocaleString("zh-CN", {
  21697. hour12: false,
  21698. timeZone: "Asia/Shanghai"
  21699. }).replace(/\//g, "-");
  21700. // if (this.tType == 1) {
  21701. // // 开局关闭学生查看内容
  21702. // this.StulookMode(false)
  21703. // // 开局打开跟随模式
  21704. // this.followingMode(true)
  21705. // }
  21706. document.body.addEventListener("click", (e) => {
  21707. if (this.isUpdateToolDetail1) {
  21708. this.updateToolDetail(this.toolDetailIndex);
  21709. }
  21710. });
  21711. this.getCode2()
  21712. this.setOperationTime();
  21713. this.selectEva();
  21714. this.getCourseDetail(10);
  21715. this.selectCount();
  21716. this.getHomeWork();
  21717. this.selectUser();
  21718. this.getAIJ();
  21719. this.updateSplitScreenData(2);
  21720. this.splitScreenData.myUid = uuidv4();
  21721. this.contentDialog = false;
  21722. this.setContent2(true);
  21723. if (this.tType == 4) {
  21724. this.pzDialog = true;
  21725. this.selectPz();
  21726. }
  21727. // 获取评分列表
  21728. this.getScoreList()
  21729. document.scrollingElement.scrollTop = 0;
  21730. window.addEventListener("resize", () => {
  21731. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21732. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21733. if (this.showType == 2 || this.showType == 3) {
  21734. document.getElementsByClassName("navBox")[0].style.height =
  21735. a - 40 + 0+ "px";
  21736. } else {
  21737. document.getElementsByClassName("navBox")[0].style.height =
  21738. a - 40 + "px";
  21739. }
  21740. });
  21741. // let _this = this;
  21742. // setTimeout(() => {
  21743. // _this.vedioTime = [];
  21744. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21745. // _this.vedioTime[i] = document.getElementsByClassName(
  21746. // "vjs-duration-display"
  21747. // )[i].textContent;
  21748. // }
  21749. // }, 1000);
  21750. try{
  21751. if (this.screenType == 2) {
  21752. window.topU.postMessage({ allScreen: 4 }, "*");
  21753. } else if (this.screenType == 3) {
  21754. window.topU.postMessage({ allScreen: 5 }, "*");
  21755. } else if (this.screenType == 1) {
  21756. window.topU.postMessage({ allScreen: 6 }, "*");
  21757. }
  21758. }catch(e){
  21759. console.log(e)
  21760. }
  21761. },
  21762. };
  21763. </script>
  21764. <style scoped>
  21765. @media screen and (max-width: 1280px) {
  21766. /* .courseIndex > div:first-child(2) {
  21767. width: 15% !important;
  21768. } */
  21769. /* .navText {
  21770. width: 120px !important;
  21771. } */
  21772. .evaCss {
  21773. flex-direction: column !important;
  21774. align-items: center !important;
  21775. }
  21776. .elist_input {
  21777. width: 90% !important;
  21778. }
  21779. .dialog_diy1 >>> .el-dialog {
  21780. width: 100% !important;
  21781. }
  21782. .rightWidthCss {
  21783. width: 100% !important;
  21784. }
  21785. .dialog_diy3 >>> .el-dialog {
  21786. width: 100% !important;
  21787. }
  21788. .addToolCss {
  21789. right: 0 !important;
  21790. width: 100% !important;
  21791. min-width: unset !important;
  21792. }
  21793. }
  21794. .evaCssMax {
  21795. flex-direction: column !important;
  21796. align-items: center !important;
  21797. }
  21798. .dialog_diy >>> .el-dialog {
  21799. margin-top: 10vh !important;
  21800. }
  21801. .body_student {
  21802. width: 77%;
  21803. height: 100%;
  21804. position: absolute;
  21805. left: 22%;
  21806. top: 0;
  21807. }
  21808. .student_head {
  21809. width: 100%;
  21810. margin: 20px auto 0;
  21811. padding-bottom: 20px;
  21812. display: flex;
  21813. flex-direction: column;
  21814. flex-wrap: nowrap;
  21815. align-items: flex-start;
  21816. justify-content: flex-start;
  21817. }
  21818. .pb_left {
  21819. width: 15%;
  21820. margin-right: 10px;
  21821. background: rgb(255, 255, 255);
  21822. position: fixed;
  21823. height: calc(100% - 40px);
  21824. border-radius: 20px;
  21825. padding-bottom: 15px;
  21826. box-sizing: border-box;
  21827. }
  21828. .wheel > img,
  21829. .project > img,
  21830. .star > img,
  21831. .evaluate > img,
  21832. .up_photo > img,
  21833. .chapter_add > img,
  21834. .deleteWord > img,
  21835. .question > img,
  21836. .homework > img {
  21837. width: 100%;
  21838. height: 100%;
  21839. }
  21840. .upCover > img {
  21841. width: 131px;
  21842. height: 69px;
  21843. object-fit: cover;
  21844. }
  21845. .upCover {
  21846. width: calc(100% / 3.5);
  21847. position: relative;
  21848. margin: 0 15px 10px 0;
  21849. display: flex;
  21850. flex-direction: column;
  21851. flex-wrap: nowrap;
  21852. justify-content: center;
  21853. align-content: center;
  21854. align-items: center;
  21855. height: fit-content;
  21856. }
  21857. .upCover2 {
  21858. width: 100%;
  21859. position: relative;
  21860. margin: 0 15px 10px 0;
  21861. display: flex;
  21862. flex-direction: column;
  21863. flex-wrap: nowrap;
  21864. justify-content: center;
  21865. align-content: center;
  21866. align-items: center;
  21867. }
  21868. .upCover2 > img {
  21869. width: 100%;
  21870. height: 90px;
  21871. object-fit: contain;
  21872. }
  21873. .chapter_add {
  21874. width: 120px;
  21875. position: relative;
  21876. text-align: center;
  21877. }
  21878. .isAddThings {
  21879. margin-top: 20px;
  21880. position: relative;
  21881. text-align: center;
  21882. background: #f7f8fa;
  21883. height: 90px;
  21884. width: 90px;
  21885. display: flex;
  21886. flex-direction: column;
  21887. justify-content: center;
  21888. }
  21889. .deleteWord {
  21890. width: 22px;
  21891. height: 22px;
  21892. position: absolute;
  21893. right: -5px;
  21894. top: -5px;
  21895. cursor: pointer;
  21896. }
  21897. .box_course {
  21898. /* width: 60%; */
  21899. width: calc(100% - 300px);
  21900. }
  21901. .wheel {
  21902. width: 100%;
  21903. /* height: 100%; */
  21904. height: 650px;
  21905. }
  21906. .right_box {
  21907. display: flex;
  21908. flex-direction: column;
  21909. margin-left: 30px;
  21910. justify-content: space-around;
  21911. }
  21912. .right_box_title {
  21913. font-size: 23px;
  21914. }
  21915. .people {
  21916. display: flex;
  21917. }
  21918. .student_body {
  21919. width: 100%;
  21920. margin: 0 auto;
  21921. margin-top: 10px;
  21922. padding: 0 0 20px;
  21923. }
  21924. .study_top {
  21925. margin-top: 100px;
  21926. width: 100%;
  21927. height: auto;
  21928. padding-bottom: 20px;
  21929. margin-left: 2px;
  21930. min-height: 90%;
  21931. }
  21932. .study_top .checkbox {
  21933. display: flex;
  21934. align-items: center;
  21935. padding: 15px 0 15px 30px;
  21936. flex: 0 0 auto;
  21937. font-weight: bold;
  21938. border-bottom: 1px solid #eee;
  21939. }
  21940. .study_top .check {
  21941. padding-bottom: 5px;
  21942. text-align: center;
  21943. cursor: pointer;
  21944. height: 30px;
  21945. box-sizing: border-box;
  21946. display: flex;
  21947. }
  21948. .study_top .checked {
  21949. border-bottom: 4px solid #3fc6a0;
  21950. padding-bottom: 5px;
  21951. color: #3fc6a0;
  21952. display: flex;
  21953. height: 35px;
  21954. }
  21955. .study_top .checked > div,
  21956. .study_top .check > div {
  21957. margin-right: 5px;
  21958. }
  21959. .videoTop {
  21960. display: flex;
  21961. flex-direction: row;
  21962. justify-content: space-between;
  21963. background: #fff;
  21964. align-items: center;
  21965. width: 95%;
  21966. padding: 20px;
  21967. }
  21968. .filebox {
  21969. display: flex;
  21970. flex-wrap: wrap;
  21971. flex-direction: column;
  21972. padding: 0 0 5px;
  21973. position: relative;
  21974. }
  21975. .filebox:before {
  21976. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21977. position: absolute;
  21978. top: 20px;
  21979. left: 13px;
  21980. border-left: 2px dotted #cad1dc;
  21981. height: calc(100% - 15px);
  21982. }
  21983. .toolHeng2 > div:last-child::before {
  21984. height: calc(100% - 43px);
  21985. }
  21986. .filebox .tooldetail {
  21987. width: calc(100%);
  21988. margin: 0px 12px;
  21989. padding: 12px;
  21990. line-height: 30px;
  21991. word-break: break-word;
  21992. background: #ffffff;
  21993. border-radius: 8px 8px 8px 8px;
  21994. opacity: 1;
  21995. border: 1px solid #cad1dc;
  21996. overflow:hidden;
  21997. box-sizing:border-box;
  21998. }
  21999. .file {
  22000. display: flex;
  22001. flex-direction: column;
  22002. align-items: center;
  22003. justify-content: center;
  22004. cursor: pointer;
  22005. width: 200px;
  22006. }
  22007. .file div {
  22008. margin-top: 10px;
  22009. width: 150px;
  22010. text-align: center;
  22011. overflow: hidden;
  22012. white-space: nowrap;
  22013. text-overflow: ellipsis;
  22014. }
  22015. .media {
  22016. display: flex;
  22017. flex-direction: column;
  22018. align-items: center;
  22019. justify-content: center;
  22020. margin: 0 20px 20px 0;
  22021. cursor: pointer;
  22022. margin: 12px 0 5px 15px;
  22023. overflow: hidden;
  22024. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22025. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22026. box-sizing: border-box;
  22027. }
  22028. .media img {
  22029. height: 90px;
  22030. width: 160px;
  22031. object-fit: cover;
  22032. }
  22033. .media .title {
  22034. padding: 5px;
  22035. text-align: left;
  22036. width: 100%;
  22037. box-sizing: border-box;
  22038. }
  22039. .media .btn {
  22040. width: 100%;
  22041. height: 35px;
  22042. line-height: 35px;
  22043. color: #fff;
  22044. background: #606060;
  22045. text-align: center;
  22046. overflow: hidden;
  22047. white-space: nowrap;
  22048. text-overflow: ellipsis;
  22049. }
  22050. .detail_content_top {
  22051. width: 100%;
  22052. padding: 25px 0 25px 0;
  22053. }
  22054. .detail_title {
  22055. text-align: center;
  22056. font-size: 24px;
  22057. }
  22058. .detail_time {
  22059. font-size: 13px;
  22060. padding: 15px 0 0 40px;
  22061. }
  22062. .detail_content {
  22063. line-height: 2pc;
  22064. width: 90%;
  22065. margin: 0 auto;
  22066. padding-top: 30px;
  22067. text-indent: 30px;
  22068. overflow: auto;
  22069. height: 200px;
  22070. }
  22071. .score_box >>> .el-rate {
  22072. margin-left: 10px;
  22073. }
  22074. .dialog_change >>> .el-dialog {
  22075. border-radius: 5px;
  22076. }
  22077. .dialog_change >>> .el-dialog__header {
  22078. background: #f2f2f2;
  22079. text-align: center;
  22080. }
  22081. .dialog_change >>> .el-dialog__title {
  22082. line-height: 5px;
  22083. }
  22084. .dialog_change >>> .el-dialog__body {
  22085. background: #fff;
  22086. padding: 10px 20px;
  22087. }
  22088. .score_box {
  22089. display: flex;
  22090. align-items: center;
  22091. margin-bottom: 18px;
  22092. margin-top: 20px;
  22093. }
  22094. .up_photo {
  22095. width: 120px;
  22096. cursor: pointer;
  22097. margin-top: 10px;
  22098. }
  22099. .up_photo2 {
  22100. width: 180px;
  22101. box-sizing: border-box;
  22102. min-width: 180px;
  22103. height: 180px;
  22104. max-height: 180px;
  22105. min-height: 180px;
  22106. cursor: pointer;
  22107. display: flex;
  22108. flex-direction: column;
  22109. align-items: center;
  22110. justify-content: center;
  22111. background: rgb(242, 246, 255);
  22112. /* padding: 25px; */
  22113. margin-bottom: 10px;
  22114. }
  22115. .up_photo2 img {
  22116. width: 50%;
  22117. height: auto;
  22118. }
  22119. .up_photo2 span {
  22120. color: #898989;
  22121. }
  22122. .plworkBox {
  22123. display: flex;
  22124. align-items: center;
  22125. margin-top: 10px;
  22126. flex-wrap: wrap;
  22127. }
  22128. .upload_send {
  22129. margin: 30px auto 30px;
  22130. width: 60%;
  22131. background: #3681fc;
  22132. text-align: center;
  22133. height: 35px;
  22134. line-height: 35px;
  22135. color: #fff;
  22136. border-radius: 5px;
  22137. cursor: pointer;
  22138. }
  22139. .marginT {
  22140. margin-top: 20px;
  22141. }
  22142. .cd_content_steps {
  22143. display: flex;
  22144. width: 90%;
  22145. justify-content: space-around;
  22146. border-top: 1px solid #eeeeee;
  22147. }
  22148. .cd_steps_box {
  22149. display: flex;
  22150. justify-content: center;
  22151. align-items: center;
  22152. flex-direction: column;
  22153. cursor: pointer;
  22154. }
  22155. .first {
  22156. display: flex;
  22157. align-items: center;
  22158. margin: 15px 0 20px 0;
  22159. font-size: 20px;
  22160. }
  22161. .first > div:nth-child(2) {
  22162. font-size: 16px !important;
  22163. padding-left: 10px;
  22164. line-height: 26px;
  22165. box-sizing: border-box;
  22166. }
  22167. .blue_box_one {
  22168. text-align: center;
  22169. color: #fff;
  22170. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22171. border-radius: 7px;
  22172. margin: 10px;
  22173. cursor: pointer;
  22174. width: 95%;
  22175. height: 45px;
  22176. display: flex;
  22177. flex-direction: row;
  22178. justify-content: flex-start;
  22179. align-items: center;
  22180. }
  22181. .blue_box_one > div:nth-child(1) {
  22182. line-height: 30px;
  22183. margin: 0 5px 0 10px;
  22184. width: 30%;
  22185. min-width: 70px;
  22186. border-radius: 4px;
  22187. }
  22188. .blue_box_one > div:nth-child(2) {
  22189. white-space: nowrap;
  22190. text-overflow: ellipsis;
  22191. overflow: hidden;
  22192. word-break: break-all;
  22193. width: 70%;
  22194. text-align: left;
  22195. margin-right: 10px;
  22196. max-width: calc(100% - 85px);
  22197. }
  22198. .blue_box_one > div:nth-child(2):hover {
  22199. overflow: hidden;
  22200. text-overflow: ellipsis;
  22201. white-space: nowrap;
  22202. cursor: pointer;
  22203. }
  22204. .upFile {
  22205. margin: 0 auto;
  22206. width: 120px;
  22207. background: #3681fc;
  22208. color: #fff;
  22209. height: 30px;
  22210. text-align: center;
  22211. line-height: 30px;
  22212. border-radius: 5px;
  22213. font-size: 14px;
  22214. cursor: pointer;
  22215. }
  22216. .courseTitle {
  22217. width: 85%;
  22218. margin: 10px auto 26px auto;
  22219. display: flex;
  22220. flex-direction: row;
  22221. align-items: center;
  22222. justify-content: space-between;
  22223. text-align: center;
  22224. }
  22225. .courseTitle .ctitle {
  22226. font-size: 20px;
  22227. font-weight: bold;
  22228. color: #0e1e33;
  22229. white-space: nowrap;
  22230. overflow: hidden;
  22231. text-overflow: ellipsis;
  22232. }
  22233. .inviteBox {
  22234. font-size: 14px;
  22235. /* margin-top: 5px; */
  22236. color: #00000099;
  22237. text-align: center;
  22238. }
  22239. .courseTitle >>> .el-tooltip {
  22240. width: 100%;
  22241. white-space: nowrap;
  22242. overflow: hidden;
  22243. text-overflow: ellipsis;
  22244. word-break: break-word;
  22245. }
  22246. .ml {
  22247. margin-left: 20px;
  22248. color: #5b7dba;
  22249. border-left: 3px solid #5b7dba;
  22250. padding-left: 5px;
  22251. font-weight: bold;
  22252. }
  22253. .return {
  22254. width: 2rem;
  22255. height: 2rem;
  22256. cursor: pointer;
  22257. }
  22258. .return > img {
  22259. width: 100%;
  22260. height: 100%;
  22261. }
  22262. .returnBtn {
  22263. width: 86px;
  22264. height: 36px;
  22265. background: #3681fc;
  22266. border-radius: 4px;
  22267. color: #fff;
  22268. text-align: center;
  22269. line-height: 36px;
  22270. margin-right: 20px;
  22271. cursor: pointer;
  22272. font-size: 14px;
  22273. font-weight: 400;
  22274. display: flex;
  22275. flex-direction: row;
  22276. flex-wrap: nowrap;
  22277. align-items: center;
  22278. justify-content: center;
  22279. }
  22280. .reBtnIcon,
  22281. .commentIcon,
  22282. .vedioIcon,
  22283. .vedioIcon1 {
  22284. /* width: 36px; */
  22285. height: 36px;
  22286. border-radius: 4px;
  22287. position: relative;
  22288. /* background: #e0eafb; */
  22289. background: #0061ff;
  22290. cursor: pointer;
  22291. margin-right: 12px;
  22292. display: flex;
  22293. align-items: center;
  22294. padding: 0 10px;
  22295. box-sizing: border-box;
  22296. font-size: 14px;
  22297. color: #fff;
  22298. }
  22299. .reBtnIcon::before,
  22300. .commentIcon::before,
  22301. .vedioIcon::before,
  22302. .vedioIcon1::before {
  22303. content: "";
  22304. display: block;
  22305. background-size: 100% 100%;
  22306. background-repeat: no-repeat;
  22307. width: 20px;
  22308. height: 20px;
  22309. margin-right: 5px;
  22310. /* position: absolute; */
  22311. /* top: 8px;
  22312. left: 8px; */
  22313. }
  22314. .vedioIcon1 {
  22315. background: #f63564;
  22316. }
  22317. .reBtnIcon::before {
  22318. background-image: url("../assets/icon/newIcons/refresh.png");
  22319. }
  22320. .commentIcon::before {
  22321. background-image: url("../assets/icon/newIcons/comment.png");
  22322. }
  22323. .vedioIcon::before {
  22324. background-image: url("../assets/icon/newIcons/transcribe.png");
  22325. }
  22326. .vedioIcon1::before {
  22327. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22328. background-image: url("../assets/icon/newIcons/transcribe.png");
  22329. }
  22330. .tool {
  22331. display: flex;
  22332. flex-direction: column;
  22333. flex-wrap: nowrap;
  22334. width: 13%;
  22335. margin: 0 30px;
  22336. align-items: center;
  22337. position: relative;
  22338. padding: 10px 25px;
  22339. cursor: pointer;
  22340. }
  22341. .whiteBIcon {
  22342. width: 150px;
  22343. }
  22344. .whiteBIcon > img {
  22345. width: 100%;
  22346. height: 100%;
  22347. }
  22348. .mask {
  22349. background-color: rgba(0, 0, 0, 0);
  22350. position: fixed;
  22351. top: 0;
  22352. left: 0;
  22353. width: 100%;
  22354. height: 100%;
  22355. z-index: 20000;
  22356. display: flex;
  22357. align-items: center;
  22358. justify-content: center;
  22359. }
  22360. .progressBox {
  22361. width: 500px;
  22362. height: 180px;
  22363. background: #fff;
  22364. border-radius: 10px;
  22365. box-shadow: 0 0 6px 1px #bfbfbf;
  22366. display: flex;
  22367. align-items: center;
  22368. justify-content: center;
  22369. flex-direction: column;
  22370. position: relative;
  22371. color: #6c6c6c;
  22372. }
  22373. .progressBox >>> .el-progress-bar__outer {
  22374. background-color: #d1dfff !important;
  22375. }
  22376. .progressBox .lbox {
  22377. height: 50px;
  22378. font-size: 19px;
  22379. display: flex;
  22380. align-items: center;
  22381. color: #747474;
  22382. }
  22383. .progressBox .lbox img {
  22384. width: 40px;
  22385. margin-right: 20px;
  22386. }
  22387. .closeCss {
  22388. position: absolute;
  22389. top: 8px;
  22390. right: 8px;
  22391. cursor: pointer;
  22392. width: 20px;
  22393. height: 20px;
  22394. }
  22395. .closeCss > img {
  22396. width: 100%;
  22397. height: 100%;
  22398. }
  22399. .uploadVedio {
  22400. display: flex;
  22401. flex-direction: column;
  22402. flex-wrap: nowrap;
  22403. justify-content: center;
  22404. align-items: center;
  22405. margin: 0 15px 10px 0;
  22406. }
  22407. .uploadVedio > img {
  22408. width: 30px;
  22409. height: 30px;
  22410. }
  22411. .uploadVedio > span {
  22412. white-space: nowrap;
  22413. overflow: hidden;
  22414. text-overflow: ellipsis;
  22415. width: 75px;
  22416. margin-top: 7px;
  22417. }
  22418. .picName {
  22419. white-space: nowrap;
  22420. overflow: hidden;
  22421. text-overflow: ellipsis;
  22422. width: 75px;
  22423. margin-top: 7px;
  22424. }
  22425. .new_top {
  22426. display: flex;
  22427. background: #fff;
  22428. flex-direction: row;
  22429. justify-content: flex-start;
  22430. align-items: center;
  22431. height: 60px;
  22432. position: fixed;
  22433. top: 20px;
  22434. left: 22%;
  22435. width: 77%;
  22436. z-index: 999;
  22437. border-radius: 12px 12px 0 0;
  22438. border-bottom: 1px solid #cad1dc;
  22439. padding: 10px 0;
  22440. }
  22441. .new_topFixed {
  22442. width: 100%;
  22443. height: 40px;
  22444. position: fixed;
  22445. top: 0px;
  22446. display: block;
  22447. background: #f2f2f2;
  22448. z-index: 998;
  22449. }
  22450. .before {
  22451. position: absolute;
  22452. background: #c3dad4;
  22453. width: 6px;
  22454. height: 100%;
  22455. }
  22456. .courseIndex {
  22457. display: flex;
  22458. flex-direction: row;
  22459. align-items: center;
  22460. width: calc(100% - 745px);
  22461. }
  22462. .courseIndex > div:nth-child(1) {
  22463. margin: 0 0 0 10px;
  22464. font-size: 20px;
  22465. min-width: 100px;
  22466. font-weight: bold;
  22467. border-left: 4px solid #3363b9;
  22468. height: 32px;
  22469. text-align: center;
  22470. line-height: 35px;
  22471. }
  22472. .courseIndex > div:nth-child(2) {
  22473. font-size: 20px;
  22474. /* width: 300px; */
  22475. max-width: calc(100% - 105px);
  22476. white-space: nowrap;
  22477. overflow: hidden;
  22478. text-overflow: ellipsis;
  22479. }
  22480. .courseIndex > div:nth-child(3) {
  22481. border-bottom: 1px solid #d7d7d7;
  22482. padding-bottom: 5px;
  22483. background: #3681fc;
  22484. width: 55px;
  22485. min-width: 55px;
  22486. border-radius: 5px;
  22487. color: #fff;
  22488. text-align: center;
  22489. height: 20px;
  22490. line-height: 26px;
  22491. font-size: 14px;
  22492. margin: 0 0 0 10px;
  22493. }
  22494. .course_text {
  22495. padding: 20px 0 0 15px;
  22496. text-indent: 30px;
  22497. width: 80%;
  22498. min-height: 20px;
  22499. }
  22500. .vedioList {
  22501. background: #f2f2f2;
  22502. border: 1px solid #ececec;
  22503. /* width: 38.8%; */
  22504. /* width: 300px; */
  22505. width: 100%;
  22506. height: 445px;
  22507. border-radius: 10px;
  22508. overflow: hidden;
  22509. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22510. }
  22511. .vedioNav {
  22512. margin: 10px 0 0 15px;
  22513. border-bottom: 1px solid #d7d7d7;
  22514. padding-bottom: 5px;
  22515. background: #3681fc;
  22516. width: 55px;
  22517. min-width: 55px;
  22518. border-radius: 5px;
  22519. color: #fff;
  22520. text-align: center;
  22521. height: 20px;
  22522. line-height: 26px;
  22523. font-size: 14px;
  22524. }
  22525. .queTop {
  22526. display: flex;
  22527. padding: 20px 0 20px 30px;
  22528. width: 100%;
  22529. flex-direction: row;
  22530. justify-content: flex-start;
  22531. align-items: center;
  22532. box-sizing: border-box;
  22533. }
  22534. .queTopTitle {
  22535. display: flex;
  22536. flex-direction: row;
  22537. flex-wrap: nowrap;
  22538. align-items: center;
  22539. font-weight: bold;
  22540. font-size: 20px;
  22541. color: rgb(14, 30, 51);
  22542. }
  22543. .queTopTitle::before {
  22544. content: "";
  22545. width: 2px;
  22546. height: 22px;
  22547. background: #3681fc;
  22548. border-radius: 3px;
  22549. display: block;
  22550. margin: 2px 6px 0 0;
  22551. }
  22552. .queTopRight {
  22553. display: flex;
  22554. flex-direction: row;
  22555. flex-wrap: nowrap;
  22556. align-items: center;
  22557. }
  22558. .queTopClose {
  22559. margin-right: 20px;
  22560. cursor: pointer;
  22561. position: relative;
  22562. display: flex;
  22563. }
  22564. .closeImg,
  22565. .openImg {
  22566. width: 25px;
  22567. height: 25px;
  22568. position: absolute;
  22569. left: -20px;
  22570. top: -1px;
  22571. }
  22572. .closeImg > img,
  22573. .openImg > img {
  22574. width: 100%;
  22575. height: 100%;
  22576. }
  22577. .question {
  22578. width: 40px;
  22579. margin-right: 10px;
  22580. margin-top: 7px;
  22581. }
  22582. .queTitle {
  22583. margin-left: 5px;
  22584. font-size: 25px;
  22585. display: flex;
  22586. align-items: center;
  22587. }
  22588. .addEditor {
  22589. width: 100px;
  22590. height: 30px;
  22591. background: #42cda6;
  22592. color: #fff;
  22593. border-radius: 5px;
  22594. text-align: center;
  22595. line-height: 30px;
  22596. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22597. cursor: pointer;
  22598. }
  22599. /* .vedioName {
  22600. cursor: pointer;
  22601. margin: 0px 0px 10px 5px;
  22602. white-space: nowrap;
  22603. overflow: hidden;
  22604. text-overflow: ellipsis;
  22605. width: 100%;
  22606. } */
  22607. .vedioTime {
  22608. width: 35px;
  22609. position: absolute;
  22610. color: #fff;
  22611. bottom: 0px;
  22612. right: 0px;
  22613. text-align: center;
  22614. background: #46411f;
  22615. height: 20px;
  22616. font-size: 14px;
  22617. line-height: 20px;
  22618. }
  22619. .homework {
  22620. width: 200px;
  22621. display: flex;
  22622. flex-direction: column;
  22623. flex-wrap: nowrap;
  22624. align-items: center;
  22625. cursor: pointer;
  22626. }
  22627. .homebox {
  22628. display: flex;
  22629. flex-wrap: wrap;
  22630. flex-direction: row;
  22631. justify-content: flex-start;
  22632. align-items: center;
  22633. padding: 15px 0;
  22634. }
  22635. .isChooseActive {
  22636. color: #3681fc !important;
  22637. font-weight: bold !important;
  22638. }
  22639. .chooseWho {
  22640. display: flex;
  22641. width: 100%;
  22642. flex-direction: row;
  22643. flex-wrap: nowrap;
  22644. justify-content: flex-start;
  22645. padding-bottom: 10px;
  22646. }
  22647. .chooseWho > div {
  22648. cursor: pointer;
  22649. padding-bottom: 10px;
  22650. margin: 0 30px 0 0;
  22651. font-weight: 400;
  22652. color: #0e1e33;
  22653. }
  22654. .addPoint > div > img {
  22655. cursor: pointer;
  22656. width: 85px;
  22657. border-radius: 15px;
  22658. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22659. }
  22660. .addPoint > div {
  22661. display: flex;
  22662. flex-direction: column;
  22663. flex-wrap: nowrap;
  22664. align-items: center;
  22665. }
  22666. .isBorder > div {
  22667. margin: 0 0 10px 0;
  22668. align-items: flex-start !important;
  22669. }
  22670. .noiframeBox {
  22671. display: flex;
  22672. flex-wrap: wrap;
  22673. }
  22674. .iframeBox iframe {
  22675. width: 100%;
  22676. height: 800px;
  22677. border: none;
  22678. margin-bottom: 20px;
  22679. border: 1px solid #ccc;
  22680. }
  22681. .upload_toolBtn {
  22682. background: #3681fc;
  22683. color: #fff;
  22684. width: 110px;
  22685. text-align: center;
  22686. height: 35px;
  22687. line-height: 35px;
  22688. font-size: 14px;
  22689. border-radius: 5px;
  22690. cursor: pointer;
  22691. position: absolute;
  22692. right: 10px;
  22693. bottom: 0;
  22694. }
  22695. .binfo_input,
  22696. .pj {
  22697. font: inherit;
  22698. color: currentColor;
  22699. width: 100%;
  22700. margin: 0;
  22701. padding: 15px 14px;
  22702. display: block;
  22703. min-width: 0;
  22704. outline: none;
  22705. box-sizing: content-box;
  22706. background: none;
  22707. -webkit-tap-highlight-color: transparent;
  22708. border: 1px solid rgba(0, 0, 0, 0.23);
  22709. border-radius: 4px;
  22710. box-sizing: border-box;
  22711. resize: none;
  22712. }
  22713. .binfo_input:focus-visible {
  22714. border: 1px solid rgba(61, 103, 188);
  22715. }
  22716. .dialog_diy >>> .el-dialog__header,
  22717. .dialog_diy1 >>> .el-dialog__header {
  22718. background: #454545 !important;
  22719. padding: 15px 20px;
  22720. }
  22721. .dialog_diy >>> .el-dialog__title,
  22722. .dialog_diy1 >>> .el-dialog__title {
  22723. color: #fff;
  22724. }
  22725. .dialog_diy >>> .el-dialog__headerbtn,
  22726. .dialog_diy1 >>> .el-dialog__headerbtn {
  22727. top: 19px;
  22728. }
  22729. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22730. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22731. color: #fff;
  22732. }
  22733. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22734. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22735. color: #fff;
  22736. }
  22737. .dialog_diy1 >>> .el-dialog__body {
  22738. padding: 0;
  22739. }
  22740. .dialog_diy >>> .el-dialog__body,
  22741. .dialog_diy >>> .el-dialog__footer,
  22742. .dialog_diy1 >>> .el-dialog__footer {
  22743. background: #fafafa;
  22744. }
  22745. .a_addBox {
  22746. padding: 0 0 0 15px;
  22747. }
  22748. .a_add_box {
  22749. padding: 10px;
  22750. background: #fff;
  22751. margin-bottom: 10px;
  22752. border-radius: 5px;
  22753. box-shadow: 0 0 5px 0 #d5d5d5;
  22754. }
  22755. .a_add_head {
  22756. display: flex;
  22757. align-items: flex-start;
  22758. /* justify-content: space-between; */
  22759. flex-direction: column;
  22760. /* flex-direction: row; */
  22761. margin: 10px 0 20px 0;
  22762. font-size: 18px;
  22763. width: 100%;
  22764. }
  22765. .askIndex {
  22766. background: #3681fc;
  22767. border-radius: 50%;
  22768. color: #fff;
  22769. width: 25px;
  22770. height: 25px;
  22771. min-width: 25px;
  22772. min-height: 25px;
  22773. text-align: center;
  22774. line-height: 25px;
  22775. margin-right: 5px;
  22776. }
  22777. .a_add_head .a_add_head_input {
  22778. width: 300px;
  22779. }
  22780. .a_add_head .a_add_head_div {
  22781. display: flex;
  22782. align-items: center;
  22783. justify-content: space-between;
  22784. }
  22785. .a_add_body {
  22786. display: flex;
  22787. align-items: center;
  22788. }
  22789. .a_add_input {
  22790. display: flex;
  22791. align-items: center;
  22792. flex-wrap: wrap;
  22793. width: 100%;
  22794. }
  22795. .a_add_input >>> .el-radio-group,
  22796. .a_add_input >>> .el-checkbox-group {
  22797. width: 100%;
  22798. }
  22799. .a_add_input >>> .el-radio,
  22800. .a_add_input >>> .el-checkbox {
  22801. display: flex;
  22802. flex-direction: row;
  22803. flex-wrap: nowrap;
  22804. align-items: center;
  22805. padding: 15px 0;
  22806. }
  22807. .a_add_input >>> .el-radio:not(:last-child),
  22808. .a_add_input >>> .el-checkbox:not(:last-child) {
  22809. width: 100%;
  22810. border-bottom: 1px solid #efefef;
  22811. }
  22812. .redioStyle >>> .el-radio__label {
  22813. font-size: 18px;
  22814. }
  22815. .redioStyle >>> .el-radio__label > span,
  22816. .redioStyle >>> .el-checkbox__label > span {
  22817. word-break: break-all;
  22818. white-space: normal;
  22819. }
  22820. .redioStyle >>> .el-checkbox__label {
  22821. font-size: 18px;
  22822. }
  22823. .toolHeng2 {
  22824. width: 100%;
  22825. padding-left: 15px;
  22826. box-sizing: border-box;
  22827. }
  22828. .workNav {
  22829. font-size: 20px;
  22830. font-weight: bold;
  22831. color: #0e1e33;
  22832. display: flex;
  22833. flex-direction: row;
  22834. flex-wrap: nowrap;
  22835. align-items: center;
  22836. padding: 15px 0 15px 0;
  22837. }
  22838. .workNav::before {
  22839. content: "";
  22840. width: 2px;
  22841. height: 22px;
  22842. background: #3681fc;
  22843. border-radius: 3px;
  22844. display: block;
  22845. margin: 2px 6px 0 0;
  22846. }
  22847. .toolHeng {
  22848. display: flex;
  22849. flex-direction: row;
  22850. flex-wrap: wrap;
  22851. justify-content: flex-start;
  22852. align-items: center;
  22853. width: 100%;
  22854. }
  22855. .toolHeng > div {
  22856. padding-left: 20px;
  22857. }
  22858. .isWidth {
  22859. width: 20%;
  22860. }
  22861. .textTitle {
  22862. display: flex;
  22863. flex-direction: row;
  22864. flex-wrap: nowrap;
  22865. align-items: center;
  22866. width: 95%;
  22867. }
  22868. .textTitle >>> .el-form-item__label {
  22869. font-size: 22px;
  22870. color: #918f8f;
  22871. width: 100px;
  22872. }
  22873. .textTitle >>> .el-form-item__content {
  22874. width: calc(100% - 100px);
  22875. }
  22876. .textCss >>> .el-dialog {
  22877. width: 800px !important;
  22878. height: 400px;
  22879. background: #fafafa;
  22880. }
  22881. .textCss >>> .el-dialog__body {
  22882. margin: 55px 8% 0 8%;
  22883. padding: 0 !important;
  22884. }
  22885. .textCss >>> .el-dialog__footer {
  22886. padding-top: 38px;
  22887. }
  22888. .toolsCss >>> .el-dialog__body {
  22889. padding: 20px;
  22890. }
  22891. .lineCss >>> .el-dialog__body {
  22892. display: flex;
  22893. flex-direction: row;
  22894. align-items: center;
  22895. justify-content: center;
  22896. }
  22897. .newNav {
  22898. display: flex;
  22899. flex-direction: row;
  22900. align-items: baseline;
  22901. justify-content: flex-start;
  22902. }
  22903. .navListItem {
  22904. width: calc(100% - 20px);
  22905. height: 50px;
  22906. margin: 0px auto 10px;
  22907. display: flex;
  22908. flex-direction: row;
  22909. flex-wrap: nowrap;
  22910. align-items: center;
  22911. justify-content: space-between;
  22912. background: #f0f4fa;
  22913. border-radius: 6px 6px 6px 6px;
  22914. }
  22915. .navText {
  22916. cursor: pointer;
  22917. white-space: nowrap;
  22918. overflow: hidden;
  22919. text-overflow: ellipsis;
  22920. width: 220px;
  22921. padding: 0 10px;
  22922. font-weight: 400;
  22923. color: #0e1e33;
  22924. }
  22925. .downIcon {
  22926. width: 20px;
  22927. min-width: 20px;
  22928. height: 20px;
  22929. margin-right: 15px;
  22930. cursor: pointer;
  22931. }
  22932. .downIcon > img {
  22933. width: 100%;
  22934. height: 100%;
  22935. }
  22936. .noVedio {
  22937. display: flex;
  22938. flex-direction: row;
  22939. justify-content: center;
  22940. align-content: center;
  22941. }
  22942. .noNavText {
  22943. cursor: pointer;
  22944. margin: 0px 0px 10px 5px;
  22945. width: 112px;
  22946. }
  22947. .listNoVedio {
  22948. margin: 0 0 0 30px;
  22949. width: 97%;
  22950. }
  22951. .video-player >>> .video-js {
  22952. height: 100%;
  22953. }
  22954. .hangVedioList {
  22955. width: 90% !important;
  22956. height: 150px !important;
  22957. margin: 20px 0 0 30px;
  22958. }
  22959. .hangVedio {
  22960. width: 100%;
  22961. height: 170px !important;
  22962. align-items: flex-start !important;
  22963. }
  22964. .hangHand {
  22965. height: 150px !important;
  22966. }
  22967. .twoChild {
  22968. width: 95%;
  22969. margin: 10px;
  22970. border-radius: 5px;
  22971. background: #f2f2f2;
  22972. display: flex;
  22973. flex-direction: column;
  22974. flex-wrap: nowrap;
  22975. justify-content: flex-start;
  22976. align-items: flex-start;
  22977. transition: all 0.5s;
  22978. overflow: hidden;
  22979. height: 0;
  22980. background: #e7f3ff;
  22981. }
  22982. .twoChild > div:nth-child(1) {
  22983. margin-top: 5px;
  22984. }
  22985. .navChild {
  22986. width: 100%;
  22987. cursor: pointer;
  22988. margin-bottom: 10px;
  22989. position: relative;
  22990. }
  22991. .navChild img {
  22992. position: absolute;
  22993. right: 11px;
  22994. width: 15px;
  22995. top: 50%;
  22996. transform: translateY(-50%);
  22997. }
  22998. .navActive,
  22999. .toolActive {
  23000. height: auto !important;
  23001. overflow: auto !important;
  23002. /* padding-bottom: 16px; */
  23003. }
  23004. .toolActive {
  23005. padding: 0;
  23006. }
  23007. .navTask {
  23008. display: flex;
  23009. flex-direction: row;
  23010. flex-wrap: nowrap;
  23011. align-items: center;
  23012. align-content: flex-start;
  23013. height: 40px;
  23014. justify-content: flex-start;
  23015. padding: 0 10px;
  23016. width: 100%;
  23017. box-sizing: border-box;
  23018. }
  23019. .navTaskname {
  23020. white-space: nowrap;
  23021. text-overflow: ellipsis;
  23022. overflow: hidden;
  23023. word-break: break-all;
  23024. padding-left: 5px;
  23025. }
  23026. .openTaskActive {
  23027. /* background-color: #e0eafb !important;
  23028. color: #0061ff; */
  23029. color:#fff;
  23030. background: rgb(55, 129, 252) !important;
  23031. }
  23032. .iframeName {
  23033. margin: 5px 0;
  23034. border-left: 4px solid #41c4a4;
  23035. padding-left: 4px;
  23036. }
  23037. .toolTitle {
  23038. margin: 0px 0px 20px;
  23039. font-size: 20px;
  23040. font-weight: 500;
  23041. border-left: 4px solid #41c4a4;
  23042. padding-left: 4px;
  23043. }
  23044. .cru_selectBox {
  23045. overflow: auto;
  23046. width: 95%;
  23047. margin: 17px auto 0;
  23048. height: calc(100% - 40px - 21px - 20px - 17px);
  23049. background: #fff;
  23050. border-radius: 8px;
  23051. }
  23052. .cru_selectBox::-webkit-scrollbar,
  23053. .study_top::-webkit-scrollbar,
  23054. .textContent::-webkit-scrollbar {
  23055. /*滚动条整体样式*/
  23056. width: 6px;
  23057. /*高宽分别对应横竖滚动条的尺寸*/
  23058. height: 6px;
  23059. }
  23060. /*定义滚动条轨道 内阴影+圆角*/
  23061. .cru_selectBox::-webkit-scrollbar-track,
  23062. .study_top::-webkit-scrollbar-track,
  23063. .textContent::-webkit-scrollbar {
  23064. border-radius: 10px;
  23065. background-color: #b8bdc9;
  23066. }
  23067. /*定义滑块 内阴影+圆角*/
  23068. .cru_selectBox::-webkit-scrollbar-thumb,
  23069. .study_top::-webkit-scrollbar-thumb,
  23070. .textContent::-webkit-scrollbar-thumb {
  23071. border-radius: 10px;
  23072. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23073. background-color: #2c5ab3;
  23074. }
  23075. .vedioBox {
  23076. border-radius: 0 0 20px 20px;
  23077. background: #fff;
  23078. overflow: auto;
  23079. }
  23080. .taskBox {
  23081. width: 98%;
  23082. background: #f0f4fa;
  23083. margin: 10px auto;
  23084. padding: 0 10px;
  23085. border-radius: 4px;
  23086. box-sizing: border-box;
  23087. }
  23088. .vedioTaskBox {
  23089. width: 100%;
  23090. display: flex;
  23091. flex-direction: row;
  23092. flex-wrap: nowrap;
  23093. align-items: flex-start;
  23094. position: relative;
  23095. }
  23096. .toolBox {
  23097. margin: 15px 0 0 25px;
  23098. display: flex;
  23099. position: relative;
  23100. padding: 18px 20px;
  23101. border-top-left-radius: 5px;
  23102. border-top-right-radius: 5px;
  23103. width: 90%;
  23104. }
  23105. .btnAll {
  23106. position: absolute;
  23107. right: 0;
  23108. display: flex;
  23109. flex-direction: row;
  23110. flex-wrap: nowrap;
  23111. align-items: center;
  23112. }
  23113. .btnLeft,
  23114. .btnRight {
  23115. display: flex;
  23116. flex-direction: row;
  23117. flex-wrap: nowrap;
  23118. align-items: center;
  23119. padding: 5px 0;
  23120. }
  23121. .btnLeft {
  23122. border-right: 1px solid #cad1dc;
  23123. }
  23124. .btnLeft > .custom-tooltip {
  23125. background: #3681fc;
  23126. color: #fff;
  23127. }
  23128. .last:hover {
  23129. background: #3383fa !important;
  23130. color: #fff;
  23131. border: 1px solid #3383fa !important;
  23132. }
  23133. .last,
  23134. .returnBtn1 {
  23135. width: 90px;
  23136. height: 36px;
  23137. background: #ffffff;
  23138. border-radius: 4px;
  23139. border: 1px solid #0061ff;
  23140. color: #0061ff;
  23141. cursor: pointer;
  23142. display: flex;
  23143. flex-direction: row;
  23144. flex-wrap: nowrap;
  23145. align-items: center;
  23146. justify-content: center;
  23147. margin-left: 12px;
  23148. }
  23149. .returnBtn1 {
  23150. background: #f0f4fa;
  23151. border-radius: 4px;
  23152. border: 1px solid #cad1dc;
  23153. margin: 0 12px;
  23154. }
  23155. .lastImg {
  23156. min-width: 15px;
  23157. width: 15px;
  23158. height: 15px;
  23159. display: flex;
  23160. }
  23161. .lastText {
  23162. padding: 0 5px 0 5px;
  23163. box-sizing: border-box;
  23164. font-size: 14px;
  23165. }
  23166. .lastImg > img {
  23167. width: 100%;
  23168. height: 100%;
  23169. }
  23170. /* .vedioTimeBox {
  23171. display: flex;
  23172. flex-direction: row;
  23173. align-items: center;
  23174. flex-wrap: nowrap;
  23175. position: relative;
  23176. } */
  23177. .navBox {
  23178. background: #fff;
  23179. height: calc(100% - 40px);
  23180. overflow-y: auto;
  23181. overflow-x: hidden;
  23182. }
  23183. .worksBox {
  23184. margin: 0 0 10px 25px;
  23185. border-bottom: 1px solid #eeeeee;
  23186. padding: 18px 20px;
  23187. border-radius: 4px;
  23188. width: 90%;
  23189. }
  23190. .worksBTitle {
  23191. font-size: 20px;
  23192. padding-bottom: 15px;
  23193. border-bottom: 1px solid #eeeeee;
  23194. display: flex;
  23195. align-items: center;
  23196. }
  23197. .greenBox {
  23198. width: 5px;
  23199. height: 30px;
  23200. background: #63b6fa;
  23201. margin-right: 5px;
  23202. }
  23203. .worksDetailBox {
  23204. display: flex;
  23205. width: 100%;
  23206. flex-direction: row;
  23207. flex-wrap: wrap;
  23208. align-items: flex-end;
  23209. justify-content: flex-start;
  23210. padding: 15px 5px;
  23211. box-sizing: border-box;
  23212. }
  23213. .works {
  23214. display: flex;
  23215. flex-direction: column;
  23216. flex-wrap: nowrap;
  23217. align-items: flex-start;
  23218. justify-content: flex-start;
  23219. align-content: center;
  23220. max-width: 240px;
  23221. width: calc(100% / 3 - 10px);
  23222. height: auto;
  23223. margin-right: 10px;
  23224. margin-bottom: 10px;
  23225. overflow: hidden;
  23226. height: 140px;
  23227. box-shadow: 0 0 6px 1px #dfdada;
  23228. border-radius: 15px;
  23229. }
  23230. .workImg {
  23231. width: 100%;
  23232. /* height: calc(100% - 40px); */
  23233. height: 105px;
  23234. position: relative;
  23235. }
  23236. .workImg > img {
  23237. width: 100%;
  23238. height: 100%;
  23239. object-fit: contain;
  23240. cursor: pointer;
  23241. }
  23242. .worksName {
  23243. height: 40px;
  23244. line-height: 40px;
  23245. display: flex;
  23246. width: 100%;
  23247. flex-direction: row;
  23248. flex-wrap: nowrap;
  23249. justify-content: space-between;
  23250. align-items: center;
  23251. margin: 0 0 0 10px;
  23252. }
  23253. .worksName > div:nth-child(1) {
  23254. width: 110px;
  23255. white-space: nowrap;
  23256. overflow: hidden;
  23257. text-overflow: ellipsis;
  23258. }
  23259. .worksName > div:nth-child(2) {
  23260. color: #b7b4b5;
  23261. }
  23262. .noWorksS {
  23263. padding: 15px 0;
  23264. display: flex;
  23265. flex-direction: row;
  23266. flex-wrap: wrap;
  23267. align-items: center;
  23268. justify-content: flex-start;
  23269. }
  23270. .noWorksName,
  23271. .isWorksName,
  23272. .isWorksName2 {
  23273. background: #ddebf8;
  23274. color: #000;
  23275. width: 90px;
  23276. height: 25px;
  23277. text-align: center;
  23278. line-height: 25px;
  23279. border-radius: 4px;
  23280. margin: 10px 15px 10px 0;
  23281. white-space: nowrap;
  23282. overflow: hidden;
  23283. padding: 5px;
  23284. text-overflow: ellipsis;
  23285. cursor: pointer;
  23286. border: 1px solid #ddebf8;
  23287. }
  23288. .noWorksName {
  23289. background: #fff;
  23290. color: #0061ff;
  23291. border: 1px solid #0061ff;
  23292. }
  23293. .noWorksName > span{
  23294. max-width: 100%;
  23295. display: block;
  23296. overflow: hidden;
  23297. text-overflow: ellipsis;
  23298. white-space: nowrap;
  23299. }
  23300. .noWorksName2 {
  23301. background: #fff;
  23302. color: #0061ff;
  23303. width: 90px;
  23304. height: 25px;
  23305. text-align: center;
  23306. line-height: 25px;
  23307. border-radius: 4px;
  23308. margin: 10px 15px 10px 0;
  23309. white-space: nowrap;
  23310. overflow: hidden;
  23311. padding: 5px;
  23312. text-overflow: ellipsis;
  23313. cursor: pointer;
  23314. border: 1px solid #0061ff;
  23315. }
  23316. .noWorksName2 > span {
  23317. max-width: 100%;
  23318. display: block;
  23319. overflow: hidden;
  23320. text-overflow: ellipsis;
  23321. white-space: nowrap;
  23322. }
  23323. .isWorksName2 {
  23324. width: 100px;
  23325. height: 40px;
  23326. line-height: 40px;
  23327. position: relative;
  23328. background: #dae6f9;
  23329. }
  23330. .isWorksName {
  23331. background: #e7ebf1 !important;
  23332. width: 100px;
  23333. height: 40px;
  23334. line-height: 40px;
  23335. position: relative;
  23336. color: #acb4bf;
  23337. border: 1px solid #cad1dc !important;
  23338. }
  23339. .isSelectName,
  23340. .noWorksName:hover {
  23341. background: #3383fa !important;
  23342. color: #fff !important;
  23343. border: 1px solid #3383fa !important;
  23344. }
  23345. .title {
  23346. background: #1e5cc9;
  23347. /* width: 98%; */
  23348. height: 45px;
  23349. color: #fff;
  23350. line-height: 45px;
  23351. padding-left: 20px;
  23352. box-sizing: border-box;
  23353. }
  23354. .textBox {
  23355. font-size: 20px;
  23356. width: 90%;
  23357. display: flex;
  23358. flex-direction: column;
  23359. align-items: center;
  23360. margin: 20px auto 0;
  23361. max-height: calc(100% - 75px);
  23362. overflow: auto;
  23363. }
  23364. .textContent {
  23365. font-size: 18px;
  23366. width: 95%;
  23367. max-width: 95%;
  23368. }
  23369. .answerBg {
  23370. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23371. background-size: 100% 100%;
  23372. width: 100%;
  23373. height: 100%;
  23374. color: #fff;
  23375. text-align: center;
  23376. display: flex;
  23377. flex-direction: column;
  23378. flex-wrap: nowrap;
  23379. align-items: center;
  23380. position: relative;
  23381. justify-content: center;
  23382. }
  23383. /* .answerBg > div:nth-child(1) { */
  23384. /* font-size: 22px;
  23385. padding: 25px 0 10px; */
  23386. /* } */
  23387. .answerContent {
  23388. width: 215px;
  23389. max-height: 60px;
  23390. word-break: break-all;
  23391. text-align: center;
  23392. /* white-space: nowrap; */
  23393. overflow: hidden;
  23394. text-overflow: ellipsis;
  23395. /* padding: 23px 0 0; */
  23396. -webkit-line-clamp: 3;
  23397. -webkit-box-orient: vertical;
  23398. display: -webkit-box;
  23399. font-size: 15px;
  23400. cursor: pointer;
  23401. }
  23402. .elist_input_box {
  23403. display: flex;
  23404. align-items: flex-start;
  23405. flex-wrap: nowrap;
  23406. padding: 10px 0 15px 30px;
  23407. flex-direction: column;
  23408. }
  23409. .elist_input {
  23410. /* width: 40%; */
  23411. width: 45%;
  23412. margin: 20px;
  23413. }
  23414. .elist_input .elist_input_box input {
  23415. font: inherit;
  23416. color: currentColor;
  23417. width: 200px;
  23418. padding: 8px 14px;
  23419. display: block;
  23420. min-width: 0;
  23421. outline: none;
  23422. border: 1px solid rgba(0, 0, 0, 0.23);
  23423. border-radius: 4px;
  23424. box-sizing: border-box;
  23425. background: #fff;
  23426. margin: 0 20px 0 0;
  23427. }
  23428. .elist_input .elist_input_box span {
  23429. height: 36px;
  23430. line-height: 36px;
  23431. color: rgb(82, 82, 82);
  23432. }
  23433. .elist_input .elist_input_box .remove {
  23434. height: 20px;
  23435. width: 20px;
  23436. background-size: 100% 100%;
  23437. background-position: unset;
  23438. margin-left: 5px;
  23439. }
  23440. .elist_input_box >>> .el-rate {
  23441. display: flex;
  23442. height: 36px;
  23443. align-items: center;
  23444. }
  23445. .elist_input_box .elist_inptu_text {
  23446. min-height: 50px;
  23447. /* width: 500px;
  23448. max-height: 150px; */
  23449. width: 100%;
  23450. line-height: 50px;
  23451. color: rgb(82, 82, 82);
  23452. overflow: auto;
  23453. text-indent: 5px;
  23454. background: #f7f6f9;
  23455. border-radius: 10px;
  23456. }
  23457. .elist_input_box .elist_inptu_text input {
  23458. width: 500px;
  23459. }
  23460. .elist_input_box >>> .el-rate__icon {
  23461. font-size: 24px;
  23462. }
  23463. .isClick {
  23464. background: #4d9def;
  23465. }
  23466. .bzBox {
  23467. display: flex;
  23468. flex-direction: row;
  23469. align-items: center;
  23470. }
  23471. .bzBox .yCss {
  23472. width: 7px;
  23473. height: 7px;
  23474. background: #fff;
  23475. margin: 0 16px 0 6px;
  23476. border-radius: 50%;
  23477. border: 5px solid #3681fc;
  23478. z-index: 99;
  23479. }
  23480. .bzBox > div:nth-child(2) {
  23481. font-size: 18px;
  23482. font-weight: bold;
  23483. color: #0e1e33;
  23484. }
  23485. .navTitile {
  23486. padding: 0 0px 0 15px;
  23487. font-size: 16px;
  23488. font-weight: bold;
  23489. color: #0e1e33;
  23490. height: 40px;
  23491. line-height: 40px;
  23492. }
  23493. .isTypeOne {
  23494. width: 240px;
  23495. height: 170px;
  23496. /* border: 1px solid #f8f8f8; */
  23497. border-radius: 10px;
  23498. box-shadow: 0 0 6px 1px #dfdada;
  23499. }
  23500. .e_add_top {
  23501. display: flex;
  23502. justify-content: space-between;
  23503. padding: 10px 20px;
  23504. border-radius: 3px;
  23505. background: #fff;
  23506. }
  23507. .e_add_title2 {
  23508. display: flex;
  23509. align-items: center;
  23510. }
  23511. .e_add_title2 span {
  23512. width: 40px;
  23513. }
  23514. .e_add_title {
  23515. display: flex;
  23516. align-items: center;
  23517. color: #b8b8b8;
  23518. font-size: 18px;
  23519. position: relative;
  23520. height: 40px;
  23521. width: 100%;
  23522. }
  23523. .e_add_title span {
  23524. margin-right: 10px;
  23525. }
  23526. .e_add_title .el_input {
  23527. width: 300px;
  23528. }
  23529. .e_add_title >>> .el-input__inner {
  23530. width: 400px;
  23531. }
  23532. /* .e_add_btn {
  23533. } */
  23534. .e_add_content {
  23535. display: flex;
  23536. width: 100%;
  23537. max-width: 650px;
  23538. height: 550px;
  23539. }
  23540. .e_add_list {
  23541. background: #fff;
  23542. height: 500px;
  23543. width: 210px;
  23544. position: relative;
  23545. margin: 15px 5px 0 0;
  23546. flex-shrink: 0;
  23547. display: flex;
  23548. flex-direction: column;
  23549. }
  23550. .e_add_list_title {
  23551. font-size: 20px;
  23552. width: 100%;
  23553. box-sizing: border-box;
  23554. padding: 15px 40px;
  23555. text-align: center;
  23556. border-bottom: 1px solid #eaeaea;
  23557. position: relative;
  23558. display: flex;
  23559. align-items: center;
  23560. justify-content: center;
  23561. height: 57px;
  23562. background: #f6f6f6;
  23563. }
  23564. .e_add_list_title span {
  23565. overflow: hidden;
  23566. white-space: nowrap;
  23567. text-overflow: ellipsis;
  23568. }
  23569. .e_add_list_title img {
  23570. position: absolute;
  23571. right: 15px;
  23572. width: 25px;
  23573. cursor: pointer;
  23574. top: 50%;
  23575. transform: translateY(-50%);
  23576. }
  23577. .e_add_list_body {
  23578. height: calc(100% - 187px);
  23579. overflow: auto;
  23580. }
  23581. .e_add_list_child {
  23582. width: 100%;
  23583. display: flex;
  23584. align-items: center;
  23585. justify-content: center;
  23586. position: relative;
  23587. box-sizing: border-box;
  23588. padding: 15px 40px;
  23589. text-align: center;
  23590. }
  23591. .e_add_list_child span {
  23592. overflow: hidden;
  23593. white-space: nowrap;
  23594. text-overflow: ellipsis;
  23595. cursor: pointer;
  23596. }
  23597. .e_add_list_child img {
  23598. position: absolute;
  23599. right: 10px;
  23600. width: 21px;
  23601. cursor: pointer;
  23602. top: 50%;
  23603. transform: translateY(-50%);
  23604. }
  23605. .e_add_list_child + .e_add_list_child {
  23606. border-top: 1px solid #eaeaea;
  23607. }
  23608. .e_add_list_child .active {
  23609. color: #409eff;
  23610. }
  23611. .e_add_list_btn {
  23612. position: absolute;
  23613. bottom: 0;
  23614. height: 50px;
  23615. background: rgb(120, 120, 254);
  23616. width: 100%;
  23617. color: #fff;
  23618. font-size: 16px;
  23619. text-align: center;
  23620. line-height: 50px;
  23621. cursor: pointer;
  23622. }
  23623. .e_add_list_detail {
  23624. position: absolute;
  23625. bottom: 0;
  23626. height: 130px;
  23627. background: rgb(120, 120, 254);
  23628. width: 100%;
  23629. color: #fff;
  23630. font-size: 16px;
  23631. display: flex;
  23632. align-items: center;
  23633. justify-content: center;
  23634. }
  23635. .e_add_list_detail textarea {
  23636. height: 90%;
  23637. width: 95%;
  23638. border: none;
  23639. resize: none;
  23640. outline: none;
  23641. padding: 5px;
  23642. box-sizing: border-box;
  23643. }
  23644. .e_add_list_pbox {
  23645. width: 100%;
  23646. max-width: 650px;
  23647. /* height: 600px; */
  23648. }
  23649. .e_add_list_pbox_title {
  23650. height: 50px;
  23651. background: #fff;
  23652. display: flex;
  23653. align-items: center;
  23654. width: 100%;
  23655. box-sizing: border-box;
  23656. padding: 0 20px;
  23657. }
  23658. .type_title {
  23659. font-size: 18px;
  23660. font-weight: 700;
  23661. }
  23662. .type_content {
  23663. font-size: 16px;
  23664. /* margin-left: 30px; */
  23665. }
  23666. .type_content span + span {
  23667. margin-left: 20px;
  23668. }
  23669. .type_content span {
  23670. cursor: pointer;
  23671. padding-bottom: 5px;
  23672. box-sizing: border-box;
  23673. }
  23674. .type_content .active {
  23675. color: #409eff;
  23676. border-bottom: 2px solid #409eff;
  23677. }
  23678. .e_add_list_pbox_content {
  23679. height: calc(100% - 50px);
  23680. display: flex;
  23681. align-items: center;
  23682. width: 100%;
  23683. background: #fff;
  23684. }
  23685. .evaCss {
  23686. display: flex;
  23687. flex-direction: row;
  23688. flex-wrap: nowrap;
  23689. align-items: flex-start;
  23690. padding: 0 0 20px;
  23691. }
  23692. .cru_line {
  23693. position: absolute;
  23694. bottom: 0px;
  23695. transition: all 0.5s;
  23696. left: 0px;
  23697. width: 125px;
  23698. margin-left: -25px;
  23699. }
  23700. .isNoMessage {
  23701. width: 20%;
  23702. margin: 25% auto 0;
  23703. }
  23704. .isNoMessage > img {
  23705. width: 100%;
  23706. height: 100%;
  23707. }
  23708. .fullStyle >>> .el-dialog__body {
  23709. height: 100% !important;
  23710. }
  23711. .fullStyle >>> .el-dialog,
  23712. .fullStyle {
  23713. width: 100% !important;
  23714. max-width: 100% !important;
  23715. height: 100% !important;
  23716. margin: 0 !important;
  23717. }
  23718. .full_diy >>> .el-dialog {
  23719. margin: 0 !important;
  23720. height: 100%;
  23721. padding: 4px;
  23722. }
  23723. .full_diy >>> .el-dialog__body {
  23724. height: calc(100% - 100px);
  23725. }
  23726. .full_diy2 >>> .el-dialog__body {
  23727. height: calc(100% - 50px);
  23728. padding: 0;
  23729. }
  23730. .switchCss {
  23731. /* width: 100%; */
  23732. display: flex;
  23733. flex-direction: row;
  23734. flex-wrap: nowrap;
  23735. align-items: center;
  23736. /* justify-content: center; */
  23737. }
  23738. .isClickNav {
  23739. /* color: #499eef; */
  23740. color: #000;
  23741. }
  23742. .commentImg {
  23743. width: 25px;
  23744. height: 25px;
  23745. cursor: pointer;
  23746. }
  23747. .commentImg > img {
  23748. width: 100%;
  23749. height: 100%;
  23750. }
  23751. .comment {
  23752. background: #f9f9f9;
  23753. border-radius: 0 0 4px 4px;
  23754. display: flex;
  23755. flex-direction: row;
  23756. flex-wrap: nowrap;
  23757. align-items: center;
  23758. justify-content: flex-end;
  23759. height: 35px;
  23760. }
  23761. .commentList {
  23762. display: flex;
  23763. flex-direction: row;
  23764. flex-wrap: nowrap;
  23765. align-items: center;
  23766. justify-content: center;
  23767. align-content: center;
  23768. /* margin-left: 15px; */
  23769. /* margin-left: 8px; */
  23770. }
  23771. .scoreImg {
  23772. width: 17px;
  23773. height: 17px;
  23774. }
  23775. .studentDetail {
  23776. display: flex;
  23777. flex-direction: row;
  23778. flex-wrap: nowrap;
  23779. /* align-items: center; */
  23780. align-items: flex-start;
  23781. }
  23782. .tx {
  23783. width: 50px;
  23784. }
  23785. .tx > img {
  23786. width: 100%;
  23787. height: 100%;
  23788. }
  23789. .nameAndTime {
  23790. display: flex;
  23791. flex-direction: column;
  23792. flex-wrap: nowrap;
  23793. align-items: flex-start;
  23794. margin-left: 10px;
  23795. }
  23796. .worksAnswer {
  23797. color: #4078dd;
  23798. margin: 10px 0;
  23799. font-size: 16px;
  23800. position: relative;
  23801. }
  23802. .worksAnswer > img {
  23803. width: 500px;
  23804. height: 300px;
  23805. object-fit: contain;
  23806. margin: 0 auto;
  23807. display: block;
  23808. }
  23809. .commentTop {
  23810. border-bottom: 1px solid #eaeaea;
  23811. padding-bottom: 10px;
  23812. }
  23813. .commentBox {
  23814. padding-top: 15px;
  23815. }
  23816. .pl {
  23817. font-size: 18px;
  23818. }
  23819. .plPerson {
  23820. width: 100%;
  23821. }
  23822. .plName {
  23823. display: flex;
  23824. flex-direction: row;
  23825. flex-wrap: nowrap;
  23826. align-items: baseline;
  23827. color: #78787a;
  23828. width: 100%;
  23829. }
  23830. .deleteComment {
  23831. cursor: pointer;
  23832. margin-left: auto;
  23833. color: #237ade;
  23834. }
  23835. .plContent {
  23836. margin-top: 5px;
  23837. }
  23838. .evalCss {
  23839. background: #fff;
  23840. font-size: 18px;
  23841. }
  23842. .nav {
  23843. color: #9d9d9d;
  23844. padding: 5px 0 15px 20px;
  23845. }
  23846. .middleBox {
  23847. padding: 5px 0 15px 20px;
  23848. }
  23849. .pfBox {
  23850. padding-bottom: 30px;
  23851. }
  23852. .nameAndrate {
  23853. display: flex;
  23854. flex-direction: row;
  23855. flex-wrap: nowrap;
  23856. align-items: center;
  23857. padding-bottom: 10px;
  23858. height: 30px;
  23859. line-height: 30px;
  23860. }
  23861. .nameAndrate > div {
  23862. margin-left: 10px;
  23863. color: #000;
  23864. height: 30px;
  23865. }
  23866. .nameAndrate >>> .el-rate__icon {
  23867. font-size: 28px !important;
  23868. }
  23869. .pfBox > div:nth-child(2) {
  23870. background: #f7f6f9;
  23871. width: 400px;
  23872. min-height: 45px;
  23873. border-radius: 10px;
  23874. font-size: 16px;
  23875. display: flex;
  23876. flex-wrap: wrap;
  23877. align-items: center;
  23878. padding: 10px 20px;
  23879. box-sizing: border-box;
  23880. color: #000;
  23881. }
  23882. .bz {
  23883. display: flex;
  23884. flex-direction: row;
  23885. flex-wrap: nowrap;
  23886. align-items: flex-start;
  23887. }
  23888. .bz > div {
  23889. padding: 0 10px;
  23890. }
  23891. .select_box2_title {
  23892. background: #fff;
  23893. border-radius: 5px;
  23894. padding: 15px 10px;
  23895. box-sizing: border-box;
  23896. margin-bottom: 10px;
  23897. display: flex;
  23898. flex-direction: row;
  23899. flex-wrap: nowrap;
  23900. align-items: center;
  23901. }
  23902. .select_box2_title > div:nth-child(2) {
  23903. margin-left: 10px;
  23904. color: #c4c4c4;
  23905. }
  23906. .select_box2_box {
  23907. display: flex;
  23908. height: 500px;
  23909. }
  23910. .select_box2_img {
  23911. width: calc(100% - 310px);
  23912. height: 100%;
  23913. overflow: auto;
  23914. background: #fff;
  23915. border-radius: 5px;
  23916. }
  23917. .select_box2_img img {
  23918. width: 100%;
  23919. }
  23920. .select_box2_answer {
  23921. background: #fff;
  23922. margin-left: 10px;
  23923. border-radius: 5px;
  23924. width: 300px;
  23925. overflow: auto;
  23926. height: 90%;
  23927. display: flex;
  23928. flex-direction: column;
  23929. align-items: flex-start;
  23930. padding-top: 10px;
  23931. box-sizing: border-box;
  23932. position: relative;
  23933. }
  23934. .select_answer_title {
  23935. padding: 0 0 15px 20px;
  23936. color: #c4c4c4;
  23937. }
  23938. .select_box2_answer_box {
  23939. margin: 0 0 10px 20px;
  23940. width: 85%;
  23941. display: flex;
  23942. flex-direction: row;
  23943. flex-wrap: nowrap;
  23944. align-items: center;
  23945. }
  23946. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23947. color: #000;
  23948. }
  23949. .upAnswerCss {
  23950. position: absolute;
  23951. bottom: 15px;
  23952. right: 15px;
  23953. }
  23954. .upAnswerCss >>> .el-button {
  23955. width: 95px;
  23956. height: 35px;
  23957. line-height: 35px;
  23958. padding: 0;
  23959. }
  23960. .rightWidthCss {
  23961. width: 60%;
  23962. display: flex;
  23963. flex-direction: row;
  23964. align-items: flex-start;
  23965. }
  23966. .rightAnswer {
  23967. display: flex;
  23968. flex-direction: row;
  23969. flex-wrap: nowrap;
  23970. align-items: center;
  23971. color: red;
  23972. margin-bottom: 31px;
  23973. }
  23974. .rightAnswerCss {
  23975. display: flex;
  23976. flex-direction: column;
  23977. flex-wrap: nowrap;
  23978. padding-top: 60px;
  23979. }
  23980. .blueCss {
  23981. color: #767de1;
  23982. margin-left: 10px;
  23983. }
  23984. .redCss {
  23985. color: red;
  23986. }
  23987. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23988. color: rgb(0 123 255) !important;
  23989. }
  23990. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23991. color: rgb(0 123 255) !important;
  23992. }
  23993. .zuoyeYulan {
  23994. padding-top: 0;
  23995. font-size: 18px;
  23996. display: flex;
  23997. align-items: flex-end;
  23998. }
  23999. .buttonA {
  24000. margin-left: 10px;
  24001. padding: 0;
  24002. }
  24003. .displayBox {
  24004. margin-bottom: 10px;
  24005. display: block;
  24006. border-bottom: 3px solid #eee;
  24007. display: flex;
  24008. align-items: center;
  24009. }
  24010. .easy_comment {
  24011. width: calc(100% - 90px);
  24012. margin-left: 10px;
  24013. display: flex;
  24014. flex-wrap: wrap;
  24015. }
  24016. .easy_comment > div {
  24017. border: 1px solid #4a4a4a;
  24018. color: #666;
  24019. border-radius: 15px;
  24020. padding: 5px 10px;
  24021. font-size: 16px;
  24022. margin-bottom: 10px;
  24023. margin-right: 5px;
  24024. cursor: pointer;
  24025. }
  24026. .easy_comment div:hover {
  24027. border: 1px solid #f7ba2a;
  24028. color: #c69217;
  24029. }
  24030. .xuan_right_box {
  24031. padding: 10px 0;
  24032. background: #f0f4fa;
  24033. margin: 0 15px 0 25px;
  24034. border-bottom-left-radius: 5px;
  24035. border-bottom-right-radius: 5px;
  24036. width: 91.5%;
  24037. }
  24038. .tool_right_box {
  24039. display: flex;
  24040. align-items: center;
  24041. }
  24042. .tool_right_box >>> .katex {
  24043. font-size: 16px;
  24044. }
  24045. .tool_right_box + .tool_right_box {
  24046. margin-top: 10px;
  24047. }
  24048. .right_box_xuan {
  24049. border-radius: 5px;
  24050. padding: 5px;
  24051. margin-left: 10px;
  24052. min-width: 85px;
  24053. background: #fff;
  24054. color: #0061ff;
  24055. border: 1px solid #0061ff;
  24056. font-size: 14px;
  24057. }
  24058. .pButton:hover {
  24059. opacity: 1 !important;
  24060. }
  24061. .pButton {
  24062. position: fixed;
  24063. text-align: center;
  24064. cursor: pointer;
  24065. z-index: 999;
  24066. right: 20px;
  24067. top: 110px;
  24068. width: 50px;
  24069. height: 50px;
  24070. display: flex;
  24071. align-items: center;
  24072. justify-content: center;
  24073. border-radius: 5px;
  24074. }
  24075. .pzClass {
  24076. width: calc(100% - 340px);
  24077. }
  24078. .newDialogCss {
  24079. /* position: fixed;
  24080. right: 5%;
  24081. top: 50%;
  24082. width: 340px;
  24083. transform: translateY(-50%);
  24084. height: 60%;
  24085. box-shadow: 0px 0 8px 0px #555555;
  24086. border-radius: 15px;
  24087. z-index: 999; */
  24088. position: fixed;
  24089. right: 20px;
  24090. top: 101px;
  24091. width: 330px;
  24092. height: calc(100% - 80px);
  24093. z-index: 999;
  24094. background: #fff;
  24095. border-top-right-radius: 0px;
  24096. border-bottom-right-radius: 0px;
  24097. overflow: hidden;
  24098. }
  24099. .newDialogCss>.scoreList{
  24100. width:100%;
  24101. height:100%;
  24102. box-sizing:border-box;
  24103. padding:10px 15px;
  24104. overflow:auto;
  24105. padding-bottom:80px;
  24106. }
  24107. .pzTop {
  24108. color: #fff;
  24109. background: #000;
  24110. display: flex;
  24111. flex-direction: row;
  24112. flex-wrap: nowrap;
  24113. align-items: center;
  24114. justify-content: space-between;
  24115. height: 40px;
  24116. border-radius: 15px 15px 0 0;
  24117. user-select: none;
  24118. }
  24119. .pzTop2 .checkbox {
  24120. display: flex;
  24121. align-items: center;
  24122. padding: 5px 10px;
  24123. flex: 0 0 auto;
  24124. font-weight: bold;
  24125. border-bottom: 1px solid #eee;
  24126. justify-content: space-between;
  24127. }
  24128. .checkbox>.cb-tabList{
  24129. display:flex;
  24130. align-items:center;
  24131. }
  24132. .cb-tabList>div{
  24133. margin-right:20px;
  24134. font-weight:400;
  24135. cursor:pointer;
  24136. }
  24137. .cb-tabList>.cb-tabItem{
  24138. color:#1684FC;
  24139. position:relative;
  24140. }
  24141. .cb-tabItem::after{
  24142. content:"";
  24143. width:100%;
  24144. height:2px;
  24145. background:#1684FC;
  24146. position:absolute;
  24147. bottom:-5px;
  24148. left:0
  24149. }
  24150. .pzTop2 .check {
  24151. text-align: center;
  24152. cursor: pointer;
  24153. box-sizing: border-box;
  24154. display: flex;
  24155. }
  24156. .pzTop2 img {
  24157. width: 25px;
  24158. cursor: pointer;
  24159. }
  24160. .pzTop > div:nth-child(1) {
  24161. padding-left: 10px;
  24162. }
  24163. .pzTop > div:nth-child(2) {
  24164. width: 15px;
  24165. height: 15px;
  24166. padding-right: 10px;
  24167. cursor: pointer;
  24168. }
  24169. .pzTop > div:nth-child(2) > img {
  24170. width: 100%;
  24171. height: 100%;
  24172. }
  24173. .pzBox,
  24174. .noPzBox {
  24175. height: calc(100% - 60px);
  24176. /* background: #ededed; */
  24177. background: #fff;
  24178. /* border-radius: 0 0 15px 15px; */
  24179. }
  24180. .noPzBox {
  24181. display: flex;
  24182. flex-direction: column;
  24183. flex-wrap: nowrap;
  24184. justify-content: center;
  24185. align-items: center;
  24186. }
  24187. .pzList {
  24188. background: #f7f7f7;
  24189. width: 90%;
  24190. margin: 0 auto 15px;
  24191. border-radius: 5px;
  24192. }
  24193. .pzNavTop {
  24194. display: flex;
  24195. flex-direction: row;
  24196. flex-wrap: nowrap;
  24197. padding: 10px 10px 0 10px;
  24198. align-items: center;
  24199. }
  24200. .pzDelete {
  24201. cursor: pointer;
  24202. margin-left: auto;
  24203. font-size: 14px;
  24204. color: #afafaf;
  24205. }
  24206. .pzNavTop > div:nth-child(1) {
  24207. background: #3760af;
  24208. width: 35px;
  24209. height: 35px;
  24210. color: #fff;
  24211. text-align: center;
  24212. line-height: 35px;
  24213. border-radius: 50%;
  24214. font-size: 14px;
  24215. }
  24216. .pzNavTop > div:nth-child(2) {
  24217. font-size: 18px;
  24218. color: #959595;
  24219. margin-left: 5px;
  24220. }
  24221. .pzContent {
  24222. padding: 10px;
  24223. word-break: break-word;
  24224. }
  24225. .pzContent audio {
  24226. width: 100%;
  24227. }
  24228. .pzContent audio::-webkit-media-controls-panel {
  24229. background: #fff;
  24230. }
  24231. .pzContent >>> img {
  24232. max-width: 100%;
  24233. }
  24234. .pzListBox {
  24235. padding-top: 15px;
  24236. height: calc(100% - 110px);
  24237. overflow: auto;
  24238. }
  24239. .addPzButton {
  24240. position: relative;
  24241. margin-top: 3px;
  24242. width: 100%;
  24243. }
  24244. .addPzButton .img1 {
  24245. position: absolute;
  24246. top: 50%;
  24247. right: 25px;
  24248. transform: translateY(-50%);
  24249. height: 100%;
  24250. display: flex;
  24251. align-items: center;
  24252. }
  24253. .addPzButton .img1 div {
  24254. display: flex;
  24255. }
  24256. .addPzButton .img1 div img {
  24257. width: 28px;
  24258. margin-left: 10px;
  24259. cursor: pointer;
  24260. }
  24261. .addPzButton .img1 div span {
  24262. font-size: 14px;
  24263. margin: 4px 0 0 3px;
  24264. color: #afafaf;
  24265. }
  24266. .addPz {
  24267. background: #4b79ce;
  24268. width: 100px;
  24269. color: #fff;
  24270. font-size: 12px;
  24271. height: 30px;
  24272. margin: 0 auto;
  24273. text-align: center;
  24274. line-height: 30px;
  24275. border-radius: 10px;
  24276. cursor: pointer;
  24277. }
  24278. .addDialogCss {
  24279. position: fixed;
  24280. width: 600px;
  24281. height: 70%;
  24282. min-height: 450px;
  24283. box-shadow: 0px 0 8px 0px #555555;
  24284. border-radius: 15px;
  24285. z-index: 999;
  24286. left: 50%;
  24287. top: 50%;
  24288. margin: -18% 0 0 -300px;
  24289. }
  24290. .teacherPz {
  24291. display: flex;
  24292. flex-direction: row;
  24293. align-items: center;
  24294. flex-wrap: nowrap;
  24295. }
  24296. .teacherPzImg {
  24297. width: 30px;
  24298. height: 30px;
  24299. }
  24300. .teacherPzImg > img {
  24301. width: 100%;
  24302. height: 100%;
  24303. }
  24304. .addPzBox {
  24305. height: calc(100% - 40px);
  24306. background: #ededed;
  24307. border-bottom-left-radius: 15px;
  24308. border-bottom-right-radius: 15px;
  24309. }
  24310. .pzAudioClass {
  24311. margin: 15px 14px;
  24312. background: #fff;
  24313. height: 100%;
  24314. display: flex;
  24315. justify-content: center;
  24316. align-items: center;
  24317. }
  24318. .pzConText {
  24319. width: 95%;
  24320. height: 100%;
  24321. margin: 10px auto 0;
  24322. border: none;
  24323. background: #fff;
  24324. border-radius: 0px;
  24325. }
  24326. .pzConText >>> .text {
  24327. height: calc(100% - 82px);
  24328. }
  24329. .addTextCss {
  24330. background: #4b79ce;
  24331. width: 80px;
  24332. height: 30px;
  24333. text-align: center;
  24334. color: #fff;
  24335. line-height: 30px;
  24336. border-radius: 10px;
  24337. margin: 10px auto 0;
  24338. cursor: pointer;
  24339. }
  24340. .pzConText:focus-visible {
  24341. border: none !important;
  24342. }
  24343. .maxWidth {
  24344. width: 1000px;
  24345. }
  24346. .noPz {
  24347. width: 150px;
  24348. margin: 0 auto 20%;
  24349. }
  24350. .noPz > img {
  24351. width: 100%;
  24352. height: 100%;
  24353. }
  24354. .timeAndReply {
  24355. display: flex;
  24356. flex-direction: row;
  24357. flex-wrap: nowrap;
  24358. justify-content: space-between;
  24359. align-items: center;
  24360. font-size: 14px;
  24361. box-sizing: border-box;
  24362. padding: 0 10px 10px 0px;
  24363. }
  24364. .timeAndReply .time {
  24365. color: #bfbfbf;
  24366. padding: 0 0 0 10px;
  24367. box-sizing: border-box;
  24368. }
  24369. .timeAndReply > div:last-child {
  24370. cursor: pointer;
  24371. color: #777;
  24372. }
  24373. /* table 样式 */
  24374. .cont >>> table {
  24375. border-top: 1px solid #ccc;
  24376. border-left: 1px solid #ccc;
  24377. }
  24378. .cont >>> table td,
  24379. .cont >>> table th {
  24380. border-bottom: 1px solid #ccc;
  24381. border-right: 1px solid #ccc;
  24382. /* padding: 20px 5px; */
  24383. padding: 5px 10px;
  24384. max-width: 0px;
  24385. height: 30px;
  24386. vertical-align: baseline;
  24387. box-sizing: border-box;
  24388. }
  24389. .cont >>> table th {
  24390. border-bottom: 2px solid #ccc;
  24391. text-align: center;
  24392. }
  24393. /* blockquote 样式 */
  24394. .cont >>> blockquote {
  24395. display: block;
  24396. border-left: 8px solid #d0e5f2;
  24397. padding: 5px 10px;
  24398. margin: 10px 0;
  24399. line-height: 1.4;
  24400. font-size: 100%;
  24401. background-color: #f1f1f1;
  24402. }
  24403. /* code 样式 */
  24404. .cont >>> code {
  24405. display: inline-block;
  24406. /* *display: inline; */
  24407. zoom: 1;
  24408. background-color: #f1f1f1;
  24409. border-radius: 3px;
  24410. padding: 3px 5px;
  24411. margin: 0 3px;
  24412. }
  24413. .cont >>> pre code {
  24414. display: block;
  24415. }
  24416. /* ul ol 样式 */
  24417. .cont >>> ul,
  24418. ol {
  24419. margin: 10px 0 10px 20px;
  24420. }
  24421. .addPzCheck {
  24422. display: flex;
  24423. flex-direction: row;
  24424. flex-wrap: nowrap;
  24425. padding: 10px 15px 0;
  24426. }
  24427. .addPzCheck span {
  24428. cursor: pointer;
  24429. padding-bottom: 5px;
  24430. font-weight: bold;
  24431. }
  24432. .addPzCheck span + span {
  24433. margin-left: 10px;
  24434. }
  24435. .addPzCheck .isChooseActive {
  24436. color: #3e88f4;
  24437. border-bottom: 2px solid #2f80f3;
  24438. }
  24439. /* code 样式 */
  24440. .cont {
  24441. /* -webkit-user-modify: read-write; */
  24442. overflow-wrap: break-word;
  24443. -webkit-line-break: after-white-space;
  24444. word-break: break-word;
  24445. white-space: pre-line;
  24446. }
  24447. .scoreBox,
  24448. .scoreDetailBox {
  24449. display: flex;
  24450. align-items: center;
  24451. justify-content: flex-start;
  24452. margin-top: 20px;
  24453. font-size: 18px;
  24454. width: 100%;
  24455. }
  24456. .scoreBox .t,
  24457. .scoreDetailBox .t {
  24458. margin-right: 10px;
  24459. width: 100px;
  24460. text-align: right;
  24461. }
  24462. .scoreDetailBox {
  24463. align-items: flex-start;
  24464. }
  24465. .scoreDetailBox >>> .el-textarea {
  24466. width: calc(100% - 200px);
  24467. }
  24468. .scoreBox >>> .el-input {
  24469. width: 130px;
  24470. font-size: 38px;
  24471. }
  24472. .scoreBox >>> .el-input__inner {
  24473. height: 60px;
  24474. }
  24475. .answerScore {
  24476. position: absolute;
  24477. top: 10px;
  24478. right: 10px;
  24479. background: #0000008f;
  24480. border-radius: 5px;
  24481. padding: 3px 5px;
  24482. font-size: 14px;
  24483. color: #fff;
  24484. cursor: pointer;
  24485. }
  24486. .open_box .switch_box {
  24487. width: 100%;
  24488. margin: 0 auto;
  24489. display: flex;
  24490. justify-content: space-between;
  24491. }
  24492. .open_box .switch_box + .switch_box {
  24493. margin-top: 10px;
  24494. }
  24495. .deleteImg,.deleteImg1 {
  24496. width: 25px !important;
  24497. height: 25px !important;
  24498. cursor: pointer;
  24499. position: absolute;
  24500. top: 10px;
  24501. right: 10px;
  24502. }
  24503. .deleteImg2 {
  24504. width: 23px !important;
  24505. height: 23px !important;
  24506. top: 5px;
  24507. right: 5px;
  24508. }
  24509. .deleteImg1{
  24510. width: 23px !important;
  24511. height: 23px !important;
  24512. top: 5px !important;
  24513. right: 30px !important;
  24514. }
  24515. .rightW {
  24516. right: 40px;
  24517. }
  24518. .drawPBox {
  24519. display: flex;
  24520. flex-direction: column;
  24521. position: relative;
  24522. }
  24523. .drawPBox span {
  24524. font-size: 18px;
  24525. color: #606266;
  24526. padding-bottom: 10px;
  24527. margin: 10px 0;
  24528. border-bottom: 1px solid #eaeaea;
  24529. }
  24530. .drawPBox img {
  24531. width: 500px;
  24532. height: 300px;
  24533. object-fit: contain;
  24534. cursor: pointer;
  24535. margin: 0 auto;
  24536. }
  24537. .sentenBox {
  24538. background: #fff;
  24539. height: 450px;
  24540. overflow: auto;
  24541. background-image: url("../assets/icon/conSentences/stuBg.png");
  24542. background-position: 102%;
  24543. background-repeat: no-repeat;
  24544. background-size: 60%;
  24545. }
  24546. .addSen {
  24547. background: #409efe;
  24548. width: 90px;
  24549. color: #fff;
  24550. height: 35px;
  24551. text-align: center;
  24552. line-height: 35px;
  24553. border-radius: 5px;
  24554. float: right;
  24555. margin: 10px 20px 0 0;
  24556. cursor: pointer;
  24557. }
  24558. .sentenTop {
  24559. display: flex;
  24560. flex-direction: row;
  24561. flex-wrap: nowrap;
  24562. align-items: center;
  24563. padding: 55px 0 0 20px;
  24564. box-sizing: border-box;
  24565. }
  24566. .sentenTop > div:nth-child(2) {
  24567. width: 300px;
  24568. margin: 0 15px;
  24569. }
  24570. .sentenTop > div:nth-child(3) {
  24571. background: #409efe;
  24572. color: #fff;
  24573. width: 65px;
  24574. height: 35px;
  24575. text-align: center;
  24576. line-height: 35px;
  24577. border-radius: 5px;
  24578. cursor: pointer;
  24579. }
  24580. .cardList,
  24581. .cardList1 {
  24582. padding: 10px 0 10px 0;
  24583. display: flex;
  24584. flex-direction: row;
  24585. flex-wrap: wrap;
  24586. align-items: center;
  24587. box-sizing: border-box;
  24588. border-bottom: 1px solid #f4f4f4;
  24589. width: 98%;
  24590. margin: 0 auto;
  24591. min-width: 60%;
  24592. max-width: 85%;
  24593. }
  24594. .cardList1 {
  24595. padding: 10px 0 10px 10px !important;
  24596. margin: 0 !important;
  24597. }
  24598. .cardBox {
  24599. display: flex;
  24600. flex-direction: row;
  24601. flex-wrap: wrap;
  24602. align-items: center;
  24603. align-content: center;
  24604. }
  24605. .cardBox > div {
  24606. margin-bottom: 10px;
  24607. }
  24608. .isCard,
  24609. .isChooseCard,
  24610. .noCard,
  24611. .isCard1 {
  24612. min-width: 130px;
  24613. width: auto;
  24614. height: 60px;
  24615. text-align: center;
  24616. line-height: 60px;
  24617. font-size: 20px;
  24618. cursor: pointer;
  24619. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24620. background-size: cover;
  24621. transition: all 2s;
  24622. margin-right: 20px;
  24623. background-size: 100% 100%;
  24624. padding: 0 20px;
  24625. box-sizing: border-box;
  24626. }
  24627. .isCard > div,
  24628. .noCard > div,
  24629. .isCard1 > div {
  24630. white-space: nowrap;
  24631. overflow: hidden;
  24632. text-overflow: ellipsis;
  24633. width: 100%;
  24634. margin: 0 auto;
  24635. }
  24636. .noCard {
  24637. background-image: none;
  24638. }
  24639. .isCard1 {
  24640. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24641. }
  24642. .isChooseCard {
  24643. background-image: none;
  24644. border: 1px dashed #b9b9b9;
  24645. border-radius: 10px;
  24646. }
  24647. .card {
  24648. width: 130px;
  24649. height: 60px;
  24650. }
  24651. .card > img {
  24652. width: 100%;
  24653. height: 100%;
  24654. }
  24655. .rightCardBox {
  24656. margin: 10px 0 0 10px;
  24657. }
  24658. .rightCardBox > div:nth-child(1) {
  24659. margin-bottom: 10px;
  24660. }
  24661. .cardCss {
  24662. display: flex;
  24663. flex-direction: column;
  24664. flex-wrap: nowrap;
  24665. align-items: center;
  24666. border-bottom: 3px solid #b4c3d3;
  24667. padding: 0 0 5px 0;
  24668. margin-right: 10px;
  24669. }
  24670. .cardCss > div:nth-child(2) {
  24671. background: #5b7b9d;
  24672. color: #fff;
  24673. width: 20px;
  24674. height: 20px;
  24675. border-radius: 50%;
  24676. text-align: center;
  24677. line-height: 20px;
  24678. }
  24679. .isWrong {
  24680. display: flex;
  24681. flex-direction: row;
  24682. flex-wrap: nowrap;
  24683. align-content: center;
  24684. align-items: center;
  24685. }
  24686. .answerRight {
  24687. width: 25%;
  24688. }
  24689. .isTj {
  24690. display: flex;
  24691. flex-direction: row;
  24692. flex-wrap: nowrap;
  24693. align-items: center;
  24694. }
  24695. .isTj > div:nth-child(2) {
  24696. color: #727070;
  24697. margin-left: 10px;
  24698. }
  24699. .isTjImg {
  24700. width: 30px;
  24701. height: 30px;
  24702. }
  24703. .isTjImg > img {
  24704. width: 100%;
  24705. height: 100%;
  24706. }
  24707. .cardAnswerBox {
  24708. font-size: 18px;
  24709. width: 97%;
  24710. border: 5px;
  24711. padding: 0;
  24712. border-radius: 5px;
  24713. margin: 10px auto;
  24714. word-break: break-word;
  24715. }
  24716. .w_name {
  24717. margin-bottom: 10px;
  24718. }
  24719. .w_name span {
  24720. font-size: 16px;
  24721. }
  24722. .w_teachert {
  24723. width: 50px !important;
  24724. position: absolute;
  24725. height: auto !important;
  24726. z-index: 10;
  24727. right: 25px;
  24728. top: -25px;
  24729. }
  24730. /* .group_workBox {
  24731. } */
  24732. .group_workBox + .group_workBox {
  24733. margin-top: 20px;
  24734. }
  24735. .group_box {
  24736. padding-bottom: 20px;
  24737. border-bottom: 2px solid #f0f0f0;
  24738. margin-top: 10px;
  24739. }
  24740. .group_title {
  24741. display: flex;
  24742. align-items: center;
  24743. justify-content: space-between;
  24744. width: 95%;
  24745. }
  24746. .group_name {
  24747. background-image: url(../assets/icon/groupN.png);
  24748. width: 220px;
  24749. background-size: 100% 100%;
  24750. height: 67px;
  24751. padding: 0 20px 0 43px;
  24752. box-sizing: border-box;
  24753. line-height: 63px;
  24754. color: #fff;
  24755. overflow: hidden;
  24756. white-space: nowrap;
  24757. text-overflow: ellipsis;
  24758. }
  24759. .group_work {
  24760. width: 100%;
  24761. padding: 0 10px;
  24762. box-sizing: border-box;
  24763. display: flex;
  24764. flex-wrap: wrap;
  24765. }
  24766. .g_d_box {
  24767. display: flex;
  24768. flex-flow: wrap;
  24769. justify-content: space-around;
  24770. }
  24771. .g_d_box .isChair {
  24772. background-image: url(../assets/avatar.png) !important;
  24773. }
  24774. .g_d_group {
  24775. width: 500px;
  24776. margin-bottom: 80px;
  24777. }
  24778. .g_d_group_chair {
  24779. display: flex;
  24780. align-items: center;
  24781. justify-content: center;
  24782. }
  24783. .g_d_group_chair > div + div {
  24784. margin-left: 30px;
  24785. }
  24786. .g_d_group_chair > div,
  24787. .g_d_group_chair2 > div {
  24788. display: flex;
  24789. flex-direction: column;
  24790. align-items: center;
  24791. }
  24792. .g_d_group_chair > div > span:nth-child(1),
  24793. .g_d_group_chair2 > div > span:nth-child(1) {
  24794. background-image: url(../assets/icon/chair.png);
  24795. width: 50px;
  24796. height: 50px;
  24797. display: block;
  24798. background-size: 100% 100%;
  24799. }
  24800. .g_d_group_tableBox {
  24801. display: flex;
  24802. align-items: center;
  24803. justify-content: center;
  24804. }
  24805. .g_d_group_chair2 {
  24806. display: flex;
  24807. flex-direction: column;
  24808. align-items: center;
  24809. justify-content: center;
  24810. }
  24811. .g_d_group_chair2 > div + div {
  24812. margin-top: 10px;
  24813. }
  24814. .g_d_group_table {
  24815. background-image: url(../assets/icon/groupBg.png);
  24816. width: 354px;
  24817. height: 196px;
  24818. background-size: 100% 100%;
  24819. display: flex;
  24820. align-items: center;
  24821. justify-content: center;
  24822. flex-direction: column;
  24823. color: #fff;
  24824. }
  24825. .g_d_group_table > div:nth-child(1) {
  24826. font-size: 24px;
  24827. margin-bottom: 5px;
  24828. }
  24829. .g_d_group_table > div:nth-child(2) div {
  24830. cursor: pointer;
  24831. background: #2e77bf;
  24832. padding: 4px 10px;
  24833. border-radius: 5px;
  24834. }
  24835. /* .groupBox {
  24836. } */
  24837. .groupContent + .groupContent {
  24838. margin-top: 30px;
  24839. }
  24840. .groupTitle {
  24841. font-size: 24px;
  24842. color: rgb(80, 80, 80);
  24843. margin-bottom: 20px;
  24844. }
  24845. .groupName {
  24846. display: flex;
  24847. align-items: center;
  24848. }
  24849. .groupn {
  24850. font-size: 15px;
  24851. margin-right: 10px;
  24852. }
  24853. .groupName + .groupName {
  24854. margin-top: 15px;
  24855. }
  24856. .groupBtn {
  24857. margin-left: 10px;
  24858. }
  24859. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24860. text-align: left;
  24861. }
  24862. .g_d_btnBox {
  24863. display: flex;
  24864. justify-content: flex-end;
  24865. align-items: center;
  24866. margin-bottom: 20px;
  24867. }
  24868. .updateChair {
  24869. position: relative;
  24870. }
  24871. .updateChairBtn {
  24872. position: absolute;
  24873. width: 50px;
  24874. height: 50px;
  24875. overflow: hidden;
  24876. /* display: flex; */
  24877. align-items: center;
  24878. justify-content: center;
  24879. background: #00000087;
  24880. color: #fff;
  24881. border-radius: 50px;
  24882. display: none;
  24883. cursor: pointer;
  24884. }
  24885. .updateChair:hover .updateChairBtn {
  24886. display: flex;
  24887. }
  24888. .group_staic_box {
  24889. display: flex;
  24890. padding: 30px 40px 10px;
  24891. flex-wrap: wrap;
  24892. }
  24893. .group_staic {
  24894. /* width: 50%; */
  24895. margin-bottom: 20px;
  24896. display: flex;
  24897. align-items: center;
  24898. }
  24899. .group_staic span:nth-child(1) {
  24900. width: 150px;
  24901. text-align: right;
  24902. margin-right: 15px;
  24903. }
  24904. .group_staic span:nth-child(2) {
  24905. background: rgb(0 123 255);
  24906. color: #fff;
  24907. border-radius: 5px;
  24908. padding: 5px;
  24909. }
  24910. .codeFileBox {
  24911. height: 300px;
  24912. background: #fff;
  24913. display: flex;
  24914. align-items: center;
  24915. justify-content: center;
  24916. }
  24917. .codeFileBox img {
  24918. width: 200px;
  24919. margin: 0;
  24920. height: auto;
  24921. }
  24922. .codeFileBox div {
  24923. background: rgb(80, 142, 226);
  24924. color: #fff;
  24925. padding: 10px 20px;
  24926. border-radius: 25px;
  24927. cursor: pointer;
  24928. margin-left: 15px;
  24929. }
  24930. .radioBox {
  24931. display: flex;
  24932. flex-direction: column;
  24933. flex-wrap: nowrap;
  24934. align-items: flex-start;
  24935. }
  24936. .radioBox > div {
  24937. margin: 10px 0 0 10px;
  24938. }
  24939. /* .radioBox >>> .el-radio__input,
  24940. .radioBox >>> .el-checkbox__inner {
  24941. margin-left: 10px;
  24942. } */
  24943. .radioBox >>> .el-radio__label,
  24944. .radioBox >>> .el-checkbox__label {
  24945. display: flex;
  24946. align-items: center;
  24947. width: 100%;
  24948. }
  24949. .radioBox >>> .el-radio__label > span {
  24950. width: 100%;
  24951. display: -webkit-box;
  24952. overflow: hidden;
  24953. white-space: normal !important;
  24954. text-overflow: ellipsis;
  24955. word-wrap: break-word;
  24956. }
  24957. .inImg {
  24958. width: 100px;
  24959. cursor: pointer;
  24960. }
  24961. .inImg > img {
  24962. width: 100%;
  24963. height: 100%;
  24964. object-fit: cover;
  24965. }
  24966. .timuImgBox {
  24967. margin: 10px 0;
  24968. display: flex;
  24969. flex-direction: column;
  24970. flex-wrap: wrap;
  24971. align-items: flex-start;
  24972. }
  24973. .timuImg {
  24974. width: 150px;
  24975. margin: 5px 0;
  24976. cursor: pointer;
  24977. }
  24978. .timuImg > img {
  24979. width: 100%;
  24980. height: 100%;
  24981. object-fit: cover;
  24982. }
  24983. .worksTop {
  24984. display: flex;
  24985. flex-direction: row;
  24986. align-items: flex-end;
  24987. }
  24988. .worksTitle{
  24989. display: flex;
  24990. flex-direction: row;
  24991. flex-wrap: nowrap;
  24992. align-items: center;
  24993. }
  24994. .worksTitle::before,.worksTop::before{
  24995. content: '';
  24996. display: block;
  24997. width: 3px;
  24998. height: 20px;
  24999. background: #0061FF;
  25000. border-radius: 3px;
  25001. margin: 0 5px 0 0;
  25002. }
  25003. .corOpen {
  25004. margin: 0 0 0 10px;
  25005. font-size: 14px;
  25006. cursor: pointer;
  25007. color: #505050;
  25008. }
  25009. .corOpen:hover {
  25010. color: #499eef;
  25011. }
  25012. .navCorOpenBox {
  25013. display: flex;
  25014. flex-direction: row;
  25015. align-items: center;
  25016. justify-content: space-between;
  25017. height: 55px;
  25018. background: #ffffff;
  25019. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25020. border-radius: 8px 8px 0px 0px;
  25021. z-index: 9;
  25022. position: relative;
  25023. }
  25024. .navCorOpen {
  25025. padding-right: 15px;
  25026. cursor: pointer;
  25027. width: 45px;
  25028. display: flex;
  25029. }
  25030. .navCorOpen > img {
  25031. width: 100%;
  25032. height: 100%;
  25033. }
  25034. .mlImg {
  25035. width: 40px !important;
  25036. min-width: 40px;
  25037. cursor: pointer;
  25038. transform: rotate(180deg);
  25039. }
  25040. .mlImg > img {
  25041. width: 100%;
  25042. height: 100%;
  25043. }
  25044. .navLeftCss {
  25045. width: 100% !important;
  25046. left: 0 !important;
  25047. }
  25048. .isContentCss {
  25049. width: 100% !important;
  25050. }
  25051. .isAllWidth {
  25052. width: 100% !important;
  25053. }
  25054. .group_switch {
  25055. margin-right: 10px;
  25056. height: 30px;
  25057. display: flex;
  25058. align-items: center;
  25059. }
  25060. .group_switch > span {
  25061. margin-right: 5px;
  25062. }
  25063. .fileC_box {
  25064. padding-top: 15px;
  25065. }
  25066. .fileC_box > .fileC_title {
  25067. padding: 10px 5px 14px 10px;
  25068. border-top: 1px solid #cad1dc;
  25069. font-size: 14px;
  25070. font-weight: 400;
  25071. color: #cad1dc;
  25072. width: calc(100% - 20px);
  25073. margin: 0 auto;
  25074. box-sizing: border-box;
  25075. }
  25076. .pl_select_box {
  25077. height: 40px;
  25078. line-height: 40px;
  25079. width: 100%;
  25080. cursor: pointer;
  25081. padding: 0 20px;
  25082. box-sizing: border-box;
  25083. border-radius: 5px;
  25084. border: 1px solid #d6d6d6;
  25085. white-space: nowrap;
  25086. overflow: hidden;
  25087. text-overflow: ellipsis;
  25088. background: #fff;
  25089. text-align: left;
  25090. }
  25091. .newButton {
  25092. width: 102px;
  25093. height: 36px;
  25094. background: #e7ebf1;
  25095. border-radius: 4px;
  25096. color: #0e1e33;
  25097. font-weight: 400;
  25098. font-size: 14px;
  25099. border: none;
  25100. float: right;
  25101. margin-left: 10px;
  25102. }
  25103. .el-table >>> .even_row {
  25104. background-color: #f0f4fa;
  25105. }
  25106. .stageBoxCss,
  25107. .stageBoxIsCss {
  25108. display: flex;
  25109. flex-direction: row;
  25110. flex-wrap: nowrap;
  25111. align-items: center;
  25112. height: 50px;
  25113. border-bottom: 1px solid #e2f5fc;
  25114. cursor: pointer;
  25115. width: 100%;
  25116. }
  25117. .stageBoxIsCss {
  25118. background: #0061ff;
  25119. color: #fff;
  25120. border-radius: 8px;
  25121. }
  25122. .stageItemTitle {
  25123. display: flex;
  25124. flex-direction: row;
  25125. flex-wrap: nowrap;
  25126. align-items: center;
  25127. margin-left: 15px;
  25128. width: calc(100% - 50px);
  25129. }
  25130. /* .stageNav{ */
  25131. /* font-weight: bold; */
  25132. /* } */
  25133. .stageItemTitle > div:first-child {
  25134. min-width: 55px;
  25135. }
  25136. .stageItemTitle > div:last-child {
  25137. max-width: 242px;
  25138. white-space: nowrap;
  25139. overflow: hidden;
  25140. text-overflow: ellipsis;
  25141. word-break: break-word;
  25142. width: calc(100% - 55px);
  25143. }
  25144. .closeTri,
  25145. .closeTri1 {
  25146. min-width: 15px;
  25147. width: 15px;
  25148. height: 15px;
  25149. transition: all .5s;
  25150. }
  25151. .closeTri1 {
  25152. padding-left: 10px;
  25153. cursor: pointer;
  25154. }
  25155. .closeTri > img,
  25156. .closeTri1 > img {
  25157. width: 100%;
  25158. height: 100%;
  25159. /* transition: all .5s; */
  25160. }
  25161. .noToolBlue {
  25162. min-width: 10px;
  25163. width: 10px;
  25164. height: 10px;
  25165. background: #0061ff;
  25166. border-radius: 50%;
  25167. margin-left: 13px;
  25168. }
  25169. .stageChild,
  25170. .toolChild {
  25171. height: 0;
  25172. overflow: hidden;
  25173. transition: all 0.5s;
  25174. }
  25175. /* .toolChild { */
  25176. /* margin: 0 0 0 17px;
  25177. padding: 0 0 0 20px;
  25178. border-left: 1px solid #d7d7d7; */
  25179. /* } */
  25180. .toolChild > div + div{
  25181. margin-top:5px;
  25182. }
  25183. .gjCss {
  25184. display: flex;
  25185. flex-direction: row;
  25186. flex-wrap: nowrap;
  25187. align-items: center;
  25188. padding: 10px 0 10px 40px;
  25189. box-sizing: border-box;
  25190. font-size: 14px;
  25191. cursor: pointer;
  25192. border-radius:5px;
  25193. }
  25194. .toolChild > div {
  25195. position: relative;
  25196. width:100%;
  25197. }
  25198. /* .toolChild > div::before { */
  25199. /* content: "";
  25200. width: 15px;
  25201. height: 1px;
  25202. background: #cad1dc;
  25203. position: absolute;
  25204. top: 24px;
  25205. left: -20px;
  25206. display: block; */
  25207. /* } */
  25208. .isGjCss {
  25209. /* color: #0061ff; */
  25210. color:#fff;
  25211. background: rgb(55, 129, 252);
  25212. /* background-color: #e0eafb !important;
  25213. color: #0061ff !important; */
  25214. }
  25215. .navItem {
  25216. background: #ffffff;
  25217. border-radius: 4px;
  25218. width: 100%;
  25219. margin: 10px auto;
  25220. position: relative;
  25221. height: 40px;
  25222. display: flex;
  25223. flex-direction: row;
  25224. flex-wrap: nowrap;
  25225. align-items: center;
  25226. }
  25227. .navItemList {
  25228. display: flex;
  25229. flex-direction: row;
  25230. flex-wrap: nowrap;
  25231. align-items: center;
  25232. padding: 0 13px;
  25233. cursor: pointer;
  25234. width: calc(100% - 60px);
  25235. height: 100%;
  25236. }
  25237. .navItemList > div:first-child {
  25238. /* min-width: 60px; */
  25239. min-width:fit-content;
  25240. }
  25241. .navItemList > div:last-child {
  25242. width: calc(100% - 80px);
  25243. white-space: nowrap;
  25244. overflow: hidden;
  25245. text-overflow: ellipsis;
  25246. word-break: break-word;
  25247. }
  25248. /* .isItemList > div {
  25249. color: #fff !important;
  25250. } */
  25251. .tool_work_box {
  25252. width: 100%;
  25253. padding: 0 37px 0;
  25254. box-sizing: border-box;
  25255. }
  25256. .tool_box {
  25257. width: 100%;
  25258. padding: 0 0 0 20px;
  25259. }
  25260. .tool_type_box {
  25261. display: flex;
  25262. flex-direction: row;
  25263. align-items: baseline;
  25264. flex-wrap: nowrap;
  25265. justify-content: flex-start;
  25266. position: relative;
  25267. }
  25268. .toolSort {
  25269. display: flex;
  25270. flex-direction: row;
  25271. flex-wrap: wrap;
  25272. justify-content: flex-start;
  25273. align-items: flex-start;
  25274. padding: 0 0 15px 0;
  25275. }
  25276. .toolSort > div {
  25277. margin: 0 10px 0 0;
  25278. width: 135px;
  25279. box-sizing: border-box;
  25280. border: 2px solid transparent;
  25281. }
  25282. .tools {
  25283. width: 100%;
  25284. display: flex;
  25285. flex-direction: column;
  25286. flex-wrap: nowrap;
  25287. align-items: flex-start;
  25288. }
  25289. .whiteBIcon {
  25290. width: fit-content;
  25291. cursor: pointer;
  25292. display: flex;
  25293. flex-direction: column;
  25294. flex-wrap: nowrap;
  25295. align-items: center;
  25296. font-size: 14px;
  25297. }
  25298. .tool:hover {
  25299. border: 2px solid #a5c7ff;
  25300. border-radius: 5px;
  25301. }
  25302. .whiteBIcon > img {
  25303. width: 65px;
  25304. height: 100%;
  25305. }
  25306. .whiteBIcon > img {
  25307. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25308. border-radius: 15px;
  25309. }
  25310. .check {
  25311. /* width: 20px;
  25312. height: 20px; */
  25313. cursor: pointer;
  25314. margin: 10px 0;
  25315. position: absolute;
  25316. right: 2px;
  25317. top: -5px;
  25318. }
  25319. .noChoose,
  25320. .isChoose {
  25321. width: 15px;
  25322. height: 15px;
  25323. border-radius: 50%;
  25324. border: 1px solid #adadad;
  25325. }
  25326. .isChoose {
  25327. border: 4px solid #0363ff !important;
  25328. width: 10px;
  25329. height: 10px;
  25330. }
  25331. .isToolChoose {
  25332. border: 2px solid #5394ff !important;
  25333. border-radius: 5px;
  25334. box-shadow: 0 0 6px 0px #5394ff;
  25335. }
  25336. .checkDiv {
  25337. display: flex;
  25338. align-items: center;
  25339. }
  25340. .checkDiv span {
  25341. margin-left: 5px;
  25342. color: #858585;
  25343. }
  25344. .check img {
  25345. width: 20px;
  25346. height: 20px;
  25347. }
  25348. .lockTaskIcon {
  25349. width: 20px;
  25350. height: 20px;
  25351. position: absolute;
  25352. right: 10px;
  25353. top: 5px;
  25354. }
  25355. .lockTaskIcon > img {
  25356. width: 100%;
  25357. height: 100%;
  25358. }
  25359. .pick_box {
  25360. display: flex;
  25361. align-items: flex-start;
  25362. flex-wrap: wrap;
  25363. }
  25364. .selectBox {
  25365. width: 110px;
  25366. margin-left: 10px;
  25367. margin: 0 10px 0 auto;
  25368. }
  25369. .selectBox >>> .el-input__inner {
  25370. height: 30px;
  25371. line-height: 30px;
  25372. }
  25373. .selectBox >>> .el-input__icon {
  25374. line-height: 30px;
  25375. }
  25376. .sentenceTitle {
  25377. display: flex;
  25378. flex-direction: row;
  25379. flex-wrap: nowrap;
  25380. align-items: center;
  25381. }
  25382. .sentenceTitle::before {
  25383. content: attr(index);
  25384. background: #3681fc;
  25385. border-radius: 50%;
  25386. color: #fff;
  25387. width: 25px;
  25388. height: 25px;
  25389. min-width: 25px;
  25390. min-height: 25px;
  25391. text-align: center;
  25392. line-height: 25px;
  25393. margin-right: 5px;
  25394. }
  25395. .hfBox {
  25396. padding: 10px;
  25397. box-sizing: border-box;
  25398. }
  25399. .whoReplyWho {
  25400. display: flex;
  25401. flex-direction: row;
  25402. flex-wrap: nowrap;
  25403. align-items: baseline;
  25404. justify-content: flex-start;
  25405. }
  25406. .hfBottom {
  25407. display: flex;
  25408. flex-direction: row;
  25409. flex-wrap: nowrap;
  25410. align-items: center;
  25411. justify-content: space-between;
  25412. font-size: 14px;
  25413. }
  25414. .deleteHfItem {
  25415. cursor: pointer;
  25416. width: 20px;
  25417. height: 20px;
  25418. }
  25419. .deleteHfItem > img {
  25420. width: 100%;
  25421. height: 100%;
  25422. }
  25423. .whoReplyWho > .hfImg {
  25424. width: 12px;
  25425. height: 12px;
  25426. margin: 0 5px;
  25427. }
  25428. .whoReplyWho > .hfImg > img {
  25429. width: 100%;
  25430. height: 100%;
  25431. }
  25432. .hfContent {
  25433. padding-top: 10px;
  25434. box-sizing: border-box;
  25435. display: -webkit-box;
  25436. overflow: hidden;
  25437. white-space: normal !important;
  25438. text-overflow: ellipsis;
  25439. word-wrap: break-word;
  25440. -webkit-box-orient: vertical;
  25441. }
  25442. .hfTime {
  25443. text-align: left;
  25444. box-sizing: border-box;
  25445. padding: 10px 0 10px 0px;
  25446. color: #bfbfbf;
  25447. font-size: 14px;
  25448. }
  25449. .btnAllNT {
  25450. position: fixed;
  25451. bottom: 100px;
  25452. right: 40px;
  25453. z-index: 999;
  25454. display: flex;
  25455. flex-direction: row;
  25456. }
  25457. .btnAllNT > img {
  25458. cursor: pointer;
  25459. width: 80px;
  25460. }
  25461. .toolMask {
  25462. position: fixed;
  25463. width: 100%;
  25464. height: 100%;
  25465. background: #3f3c3c;
  25466. opacity: 0.5;
  25467. top: 0;
  25468. left: 0;
  25469. z-index: 999;
  25470. }
  25471. .addToolCss {
  25472. position: fixed;
  25473. z-index: 999;
  25474. background: #fff;
  25475. right: 5%;
  25476. bottom: 18%;
  25477. min-width: 1035px;
  25478. min-height: 300px;
  25479. border-radius: 10px;
  25480. box-shadow: 0 0 8px 1px #b2b2b2;
  25481. }
  25482. .toolTop {
  25483. display: flex;
  25484. flex-direction: row;
  25485. flex-wrap: nowrap;
  25486. justify-content: space-between;
  25487. align-items: center;
  25488. padding: 20px;
  25489. }
  25490. .toolTop > div:nth-child(2) {
  25491. width: 15px;
  25492. height: 15px;
  25493. padding-right: 10px;
  25494. cursor: pointer;
  25495. }
  25496. .toolTop > div:nth-child(2) > img {
  25497. width: 100%;
  25498. height: 100%;
  25499. }
  25500. .fullStyle>>>.el-dialog__body {
  25501. height: calc(100% - 125px) !important;
  25502. box-sizing: border-box;
  25503. padding: 30px 0 !important;
  25504. background: #fff !important;
  25505. }
  25506. .fullStyle>>>.el-dialog {
  25507. width: 100% !important;
  25508. max-width: 100% !important;
  25509. height: 100% !important;
  25510. margin: 0 !important;
  25511. }
  25512. .fullStyle {
  25513. width: 100% !important;
  25514. max-width: 100% !important;
  25515. height: 100% !important;
  25516. margin: 0 auto !important;
  25517. }
  25518. .fullStyle>>>.el-dialog__footer{
  25519. background: #fff !important;
  25520. }
  25521. .engUpBox {
  25522. width: 100%;
  25523. height: 100%;
  25524. }
  25525. .engTitle,
  25526. .engText {
  25527. display: flex;
  25528. flex-direction: row;
  25529. flex-wrap: nowrap;
  25530. align-items: flex-start;
  25531. padding: 0 20px 20px 20px;
  25532. box-sizing: border-box;
  25533. }
  25534. .engTitle > .div:first-child,
  25535. .engText > div:first-child {
  25536. min-width: 75px;
  25537. }
  25538. .correctBox{
  25539. width: 100%;
  25540. display: flex;
  25541. flex-direction: row;
  25542. flex-wrap: nowrap;
  25543. align-items: flex-start;
  25544. }
  25545. .oldBox{
  25546. width: 50%;
  25547. height: 100%;
  25548. display: flex;
  25549. flex-direction: column;
  25550. flex-wrap: nowrap;
  25551. align-items: center;
  25552. border-top: 1px solid #d9d9d9;
  25553. border-left: 1px solid #d9d9d9;
  25554. border-right: 1px solid #d9d9d9;
  25555. }
  25556. .oldBox>div:first-child{
  25557. width: 100%;
  25558. text-align: center;
  25559. background: #d9d9d9;
  25560. height: 35px;
  25561. line-height: 35px;
  25562. font-weight: bold;
  25563. }
  25564. .oldText{
  25565. width: 100%;
  25566. height: calc(100% - 35px);
  25567. overflow: auto;
  25568. margin: 10px 0;
  25569. display: flex;
  25570. flex-direction: column;
  25571. flex-wrap: nowrap;
  25572. align-content: center;
  25573. align-items: center;
  25574. }
  25575. .detailBox{
  25576. width: 50%;
  25577. padding: 10px;
  25578. background: #f6f6f6;
  25579. border-radius: 5px;
  25580. }
  25581. .oldDetail,.oldDetail1{
  25582. padding-bottom: 30px;
  25583. }
  25584. .oldImg{
  25585. width:30px;
  25586. height: 30px;
  25587. }
  25588. .oldImg>img{
  25589. width: 100%;
  25590. height: 100%;
  25591. }
  25592. .allName{
  25593. min-width: 200px;
  25594. white-space: nowrap;
  25595. overflow: hidden;
  25596. text-overflow: ellipsis;
  25597. word-break: break-word;
  25598. cursor: pointer;
  25599. text-align: center;
  25600. border: 1px solid #bcc2cc;
  25601. box-sizing: border-box;
  25602. }
  25603. .engUpTop{
  25604. max-height: 300px;
  25605. overflow: auto;
  25606. }
  25607. .isUpdateToolDetailClass{
  25608. padding: 0 !important;
  25609. }
  25610. .isUpdateToolDetailClass textarea{
  25611. padding:12px;
  25612. font-size: 16px;
  25613. min-height:100%;
  25614. width: 100%;
  25615. box-sizing:border-box;
  25616. outline: none;
  25617. border:none;
  25618. line-height: 30px;
  25619. resize: none;
  25620. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25621. color: #838383;
  25622. }
  25623. .show_taskD {
  25624. min-width: fit-content;
  25625. margin-left: 10px;
  25626. display: flex;
  25627. align-items: center;
  25628. font-size: 14px;
  25629. cursor: pointer;
  25630. color: #717c8d;
  25631. }
  25632. .show_taskD > img {
  25633. width: 15px;
  25634. margin-right: 5px;
  25635. transition: 0.2s all;
  25636. transform: rotate(-90deg);
  25637. }
  25638. .show_taskD.show > img {
  25639. transform: rotate(0deg);
  25640. }
  25641. .correctCss{
  25642. position: absolute;
  25643. bottom: -70px;
  25644. background: #409eff;
  25645. color: #fff;
  25646. }
  25647. .dialog_diyCopy >>> .el-dialog__header {
  25648. display: none !important;
  25649. }
  25650. .dialog_diyCopy >>> .el-dialog__body {
  25651. padding: 0 !important;
  25652. height: 100% !important;
  25653. }
  25654. .confirmOpenDigCss > div{
  25655. font-size: 14px;
  25656. color: rgba(0, 0, 0, 0.6);
  25657. }
  25658. .confirmOpenDigCss >>> .el-dialog{
  25659. border-radius: 6px;
  25660. }
  25661. .confirmOpenDigCss >>> .el-dialog__body{
  25662. padding: 25px !important;
  25663. }
  25664. .confirmOpenDigCss > span{
  25665. font-size: 16px;
  25666. font-weight: 600;
  25667. color: rgba(0, 0, 0, 0.8);
  25668. }
  25669. div::-webkit-scrollbar {
  25670. width: 10px;
  25671. height: 6px;
  25672. }
  25673. .Ovh{
  25674. margin: 5px 0;
  25675. width: 4em;
  25676. -webkit-line-clamp: 2;
  25677. display: -webkit-box;
  25678. -webkit-box-orient: vertical;
  25679. overflow: hidden;
  25680. text-overflow: ellipsis;
  25681. }
  25682. .renderedFor >>> .katex {
  25683. font-size: 18px;
  25684. width: 100%;
  25685. white-space: normal;
  25686. font-family: '黑体' !important;
  25687. }
  25688. .renderedFor >>> .katex .base{
  25689. display: inline !important;
  25690. display: contents !important;
  25691. }
  25692. .renderedFor>>> .katex .base .cjk_fallback{
  25693. white-space: normal !important;
  25694. display: inline !important;
  25695. }
  25696. .notop >>> .vjs-fluid{
  25697. padding-top: 0 !important;
  25698. }
  25699. </style>